<html><head><script>function setfocus(){document.FormName.x.focus();}</script></head><a name="inicio"></a><body bgcolor=#ABB0C2 onload=setfocus()>
<table width=100%><tr><td width=35%><font size=6><b>N</b><i>um</i><b>T</b><i>o</i><b>W</b><i>ord</i></td><td width=35%></td><td><a href=#credits>credits</a></td><td><a href=mailto:josegiambruno@adinet.com.uy>email-me</a> </td></tr></table>
<table width=100% border=0><tr><td width=15%><form name=FormName action=example.php method=post><input name=x type=text size=5><input type="submit" value="Send"></form></td><td width=37%></td><td valign=top><table border=1><tr><td bgcolor=#BCC0CF>Enter a number between 0,01 and 999999999,99</td></tr></table></td></tr></table><?php
/***
*************************************************************
*** Instrucciones requeridas para obtener el valor en texto
*** de un numero:
***
require_once('numtoword.php');
$resultinwords=new numtoword;
$result=$resultinwords->en($x); // english
*** (opcionales) [sp] // spanish
*** [fr] // francaise
*** [pt] // portuguese
*** [it] // italiano
*** [de] // germany
*************************************************************/
require_once('numtoword.php');
if (isset($x)){
echo "<br><table width=100% cellspacing=8><tr><td width=34% bgcolor=#BCC0CF align=center> </td><td width=33% bgcolor=#BCC0CF align=right><b>$x</td>";
$coma="the number is an integer";
$dot=chr(46);
$buscar=strstr($x,",");
$buscarpunto=strstr($x,$dot);
$cosex=strlen($buscar);
if ($cosex>0){
$coma="decimal point is comma";
}
if (strlen($buscarpunto>0)){
$coma="decimal point is dot";
}
echo "<td width=33% bgcolor=#BCC0CF align=center>".$coma."</td></tr></table>";
$resultinwords=new numtoword;
$result=$resultinwords->sp($x);
echo "<table border=1 width=100%><tr><td>";
echo "<b><i>(sp) - </i></b>".$result;
echo "<hr>";
$result=$resultinwords->en($x);
echo "<b><i>(en) - </i></b>".$result."<hr>";
$result=$resultinwords->fr($x);
echo "<b><i>(fr) - </i></b>".$result."<hr>";
$result=$resultinwords->de($x);
echo "<b><i>(de) - </i></b>".$result."<hr>";
$result=$resultinwords->pt($x);
echo "<b><i>(pt) - </i></b>".$result."<hr>";
$result=$resultinwords->it($x);
echo "<b><i>(it) - </i></b>".$result;//."<hr>";
echo "</td></tr></table>";
}
?>
<pre>
<a name="htoadd">
To add your language:
</a>
<a name="credits">
Credits to Adriana(aleman), Sara(french), Violetta of Sicilia(italiano).
<a href=#inicio>back</a>
</a>
</body></html>
|