Location: PHPKode > scripts > ECW commerce shop > ecw-commerce-shop-6-03/myform.php
<?
echo "
<table width='640'  align='center' cellpadding='0' cellspacing='1' bgcolor='#ECECEC'>
<tr>";
for ($ii=1;$ii<=$edit_fild_count;$ii++) $tempcol[$ii]=${"col$ii"};

for ($i=1;$i<=$edit_fild_count;$i++)
{
echo "<td><SELECT name='col".$i."'>";

if ($tempcol[$i] == "") 
{
    

     $tmpi=$i;
    for ($ii=1;$ii<=$fild_count;$ii++)
    {
     if ($i>$fild_count){$tmpi=$fild_count;}
     if ($ii==$tmpi)
     {
     echo"<option value='".$fild_def[$ii]."' selected >".$fild_def[$ii]."</option>";
     }
     else
     {
     echo"<option value='".$fild_def[$ii]."'>".$fild_def[$ii]."</option>";
     }	
    }
    
}
else
{
    for ($ii=1;$ii<=$fild_count;$ii++)
    {
     if ($fild_def[$ii] == $tempcol[$i])
     {
     echo"<option value='".$fild_def[$ii]."' selected >".$fild_def[$ii]."</option>";
     }
     else
     {
     echo"<option value='".$fild_def[$ii]."'>".$fild_def[$ii]."</option>";
     }	
    }


}
echo "</SELECT>
</td>";
}
?>
Return current item: ECW commerce shop