日期:2014-05-17 浏览次数:20514 次
foreach ($p_slist2 as $value => $caption)
{
echo "<option value=$value ";
if ($p_setto2 == $value)
{
echo "selected";
}
echo "> $caption</option>";
}
for($i=1,$len=count($p_slist2);$i<=$len;$i++) {
if($i == $p_settos2) echo "<option value='$i' selected>$i</option>";
else echo "<option value='$i' >$i</option>";
}