Location: PHPKode > scripts > ECW commerce shop > ecw-commerce-shop-6-03/more.php
<?
require ("./conf.php");


$sql="select * from  $table_orders WHERE (id='$tid')";
$res=mysql_query("$sql");
@$usrc=mysql_fetch_array($res);
$sql="$usrc[2]";
$res=mysql_query("$sql");


echo "<table cellpading='1' align='center' cellspacing='1' width='600' bgcolor='#FFFFFF'>
<td class='hd2'>$lang[DOI] <u><i>$tid</i></u> $lang[user]: <i><u>$usrc[6]<i></u> </td></tr></table>";

echo "<table cellpading='1' align='center' cellspacing='1' width='600' bgcolor='#ddddee'>";
echo"<td class='menu'>$lang[id]:</td><td class='menu'>$lang[Title]:</td>
     <td class='menu'>$lang[Category]:</td><td class='menu'>$lang[Company]:</td>
     <td class='menu'>$lang[Price]: </td><td class='menu'>$lang[Number]: </td></tr>";
$n=0;

$arr_zam=split("\|", $usrc[18],5);
while ( @$catt=mysql_fetch_array($res) )
 {$tpp=$zamovl[$catt[0]];
  $new_arr=split("=", $arr_zam[$n],5);
  echo "</tr><td class='hd1'>$catt[1]</td><td class='hd1'>$catt[2]</td><td class='hd1'>$catt[4]</td>".
       "<td class='hd1'>$catt[5]</td>".
       "<td class='hd1'>$catt[6]</td>".
       "<td class='hd1'>$new_arr[1]</td>".
       "</tr>\n";
$n++;
 }
// echo ">>$usrc[4] $sum*($usrc[4]/100)";

$tot=$usrc[3]-($usrc[3]*($usrc[4]/100));
echo "</table>";
echo "<table cellspacing='0' align='center' cellpading='0' width='600'>";
echo "<td width=395></td><td class=title>$lang[Totalprice]: </td><td class=title>$ $usrc[3]</td></td></tr>".
     "<td width=395></td><td class=title>$lang[Discount]:  </td><td class=title>$usrc[4] %</td></td></tr>".
     "<td width=395></td><td class=title>$lang[Pricewithdiscount]: </td><td class=title>$ $tot</td></td></tr>";

echo "</table>";
echo "<input type='button' value='$lang[Cw]' onclick='javascript:window.close();'> </center>";
?>
Return current item: ECW commerce shop