Ciao, andate a questo indirizzo:
http://www.emiliorescigno.it/prova/index.htm (si tratta di una prova)
il problema è che pur lavorando lo script correttamente, la valuta
relativa ai prezzi delle singole opzioni per foto continua a rimanere
in dollari. Il totale generale invece viene espresso in euro.
Potete mica darmi una mano?
Vi allego il files deputato al corretto inserimento del segno della valuta per aiutarvi a darmi, se ci riuscite, una mano a capire.
Dove ho trovato il segno del dollaro ho provveduto a sostituire quello dell'euro con il risultato che vi ho descritto piu' sopra e che potete vedere all'indirizzo indicato.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="BreezeBrowser, www.breezesys.com">
<script language="javascript" src="settings.js">document.write("Error include file 'settings.js' not found")</script>
<script language="javascript">
<!--
var totalPrice = 0
var status = 0
var numColumns = 4
var column = -1
var url = new String(window.location)
i = url.indexOf("?")
if (i > 0)
{
status = 1
}
function reviewOrder()
{
top.frames[1].location = "index2.htm?status"
}
function thumbnail(imageNumber, caption, url, image, width, height, file)
{
if (status)
{
// output the order status
// first get the order quantities for each print size
var qty_size_1 = this.eval("top.frames[0].document.orders.prints_size_1_"+imageNumber+".val ue")
var qty_size_2 = this.eval("top.frames[0].document.orders.prints_size_2_"+imageNumber+".val ue")
var qty_size_3 = this.eval("top.frames[0].document.orders.prints_size_3_"+imageNumber+".val ue")
// if any prints are ordered we need to output image and order details
if (qty_size_1 > 0 || qty_size_2 > 0 || qty_size_3 > 0)
{
// output the image first
document.write('<td valign="bottom" align="center">')
document.write('<a href="' + url + '" target="photo">')
document.write('[img]' + image + '[/img]')
document.write('</a>
' + file + '</td><td>')
// now output details of each print size ordered
document.write('<table border="0"><tr><td>Print Size</td><td>Qty</td><td>Price</td></tr>')
price = qty_size_1 * price_size_1
totalPrice += price
if (qty_size_1 > 0)
{
document.write('<td>' + size_1_text + '</td><td>' + qty_size_1 + '</td><td>€' + price)
document.write('<input type="hidden" name="' + file + ' ' + size_1_text + ' prints" value="' + qty_size_1 + '"></td></tr>')
}
price = qty_size_2 * price_size_2
totalPrice += price
if (qty_size_2 > 0)
{
document.write('<td>' + size_2_text + '</td><td>' + qty_size_2 + '</td><td>€' + price)
document.write('<input type="hidden" name="' + file + ' ' + size_2_text + ' prints" value="' + qty_size_2 + '"></td></tr>')
}
price = qty_size_3 * price_size_3
totalPrice += price
if (qty_size_3 > 0)
{
document.write('<td>' + size_3_text + '</td><td>' + qty_size_3 + '</td><td>€' + price)
document.write('<input type="hidden" name="' + file + ' ' + size_3_text + ' prints" value="' + qty_size_3 + '"></td></tr>')
}
document.write('</table>')
document.write('</td></tr><tr>')
}
}
else
{
// index page along the top of the page - output the image
// and hidden fields to hold the order quantities
document.write('<td valign="bottom" align="center">')
document.write('<a href="' + url + '" target="photo" name="' + imageNumber +'">')
document.write('[img]' + image + '[/img]')
document.write('</a>
<font size="-1">' + file + '</font>')
document.write('<input type="hidden" name="prints_size_1_' + imageNumber +'" value="0">')
document.write('<input type="hidden" name="prints_size_2_' + imageNumber +'" value="0">')
document.write('<input type="hidden" name="prints_size_3_' + imageNumber +'" value="0">')
document.write('</td>')
}
}
// -->
</script>
<title>foto prova</title>
</head>
<body bgcolor="black" text="gray" link="#aaaaaa" vlink="#aaaaaa" alink="#aaaaaa">
<script language="javascript">
<!--
if (status)
{
document.write('<center>\n<h1>Order Status</h1>')
document.write('<input type="button" value="Back" onClick="history.back()">\n
Please click on the image to revise your order')
}
document.write('<form ACTION="' + formmail_script + '" METHOD="POST" NAME="orders" TARGET="photo">')
document.write('<input type="hidden" name="recipient" value="' + email_address + '">');
document.write('<input type="hidden" name="subject" value="' + email_subject + '">');
document.write('<input type="hidden" name="realname" value="' + email_sender + '">');
if (status) document.write('<table border="1"><tr>')
else document.write('<table><tr>')
thumbnail(1, "", "rescigno-wedding1.htm", "rescigno-wedding1_thm.jpg", 80, 120, "rescigno-wedding1.jpg")
thumbnail(2, "", "rescigno-wedding2.htm", "rescigno-wedding2_thm.jpg", 80, 120, "rescigno-wedding2.jpg")
thumbnail(3, "", "rescigno-wedding3.htm", "rescigno-wedding3_thm.jpg", 80, 120, "rescigno-wedding3.jpg")
thumbnail(4, "", "rescigno-wedding4.htm", "rescigno-wedding4_thm.jpg", 120, 80, "rescigno-wedding4.jpg")
thumbnail(5, "", "rescigno-wedding5.htm", "rescigno-wedding5_thm.jpg", 80, 120, "rescigno-wedding5.jpg")
thumbnail(6, "", "rescigno-wedding6.htm", "rescigno-wedding6_thm.jpg", 80, 120, "rescigno-wedding6.jpg")
thumbnail(7, "", "rescigno-wedding7.htm", "rescigno-wedding7_thm.jpg", 80, 120, "rescigno-wedding7.jpg")
thumbnail(8, "", "rescigno-wedding8.htm", "rescigno-wedding8_thm.jpg", 80, 120, "rescigno-wedding8.jpg")
document.write('</tr></table>')
if (status)
{
document.write('
Order total: €' + totalPrice + '</p>\n')
document.write('
Your email address: <input type="text" size="30" name="email"></p>\n')
document.write('
<input type="submit" value="Place Order"></p>')
}
document.write('</form>')
if (status)
{
document.write('Print this page')
document.write("</center>Note: In order to use this template for a real ordering system you need to edit settings.js and change formmail_script so that it points to a suitable CGI script to receive the order. Most ISPs have standard 'form to email' scripts which can be used to extract data from a form and email it to you. Often this is a script called formmail.pl which can be found at <a href='http://worldwidemart.com/scripts/formmail.shtml'>http://worldwidemart.com/scripts/formmail.shtml<a>
");
}
// -->
</script>
</body>
</html>