ػҧŻѵѡ¹ дѺҵ 駷 69 (ʾ.)
TH; while (!feof($objFopen)) { $file = fgets($objFopen, 4096); $ord=substr($file,10,2); $area=substr($file,strpos($file,".")+3,strpos($file,"")-strpos($file,".")-4); $f1=substr($file,strpos($file," ")+5,3); $f2=substr($file,strpos($file,"ѹѺ 1 ")+19,3); $f3=substr($file,strpos($file,"ѹѺ 2 ")+19,3); $ft=substr($file,strpos($file,"Ѻҧ ")+16,3); $gd=substr($file,strpos($file,"ͧ ")+4,3); $sv=substr($file,strpos($file,"Թ ")+4,3); $bz=substr($file,strpos($file,"ᴧ ")+4,3); $tt=$gd+$sv+$bz; $sql="update es_spp set rg_name='$area', rg_gd='$gd',rg_sv='$sv',rg_bn='$bz', rg_1='$f1',rg_2='$f2',rg_3='$f3' where rg_ord='$ord' "; mysql_query($sql); } } $sql="select * from es_spp order by rg_gd desc,rg_sv desc,rg_bn desc"; $result=mysql_query($sql); $rw=1; while ($db=mysql_fetch_array($result)) { $tt=$db[rg_gd]+$db[rg_sv]+$db[rg_bn]; $tt2=$db[rg_1]+$db[rg_2]+$db[rg_3]; if ($rw%2) { $cl='#ffd8b0'; } else { $cl='#ffeedd'; } $rname=trim($db[rg_name]); $sql1="select * from es_area where ar_name='$rname' "; $result1=mysql_query($sql1); $db1=mysql_fetch_array($result1); echo << TB; $rw++; } echo <<

TF; ?>

ʾ. ͧ 1 ͧ 2
$rw $db[rg_name] $db[rg_gd] $db[rg_sv] $db[rg_bn] $tt $db[rg_1] $db[rg_2] $db[rg_3] $tt2