location.replace('./pd.html?modea=pd_type');"; break; case("del"): $query="select * from pd_type where id_no='$id_no'"; $pt1_db=mysql_query($query); query_chk($pt1_db,"pt1_db error"); $pt1=mysql_fetch_array($pt1_db); $query="update products set pd_type='' where pd_type='$pt1[pd_type]'"; $pd_update=mysql_query($query); query_chk($pd_update,"pd_update"); $query="delete from pd_type where id_no='$id_no'"; $pt_del=mysql_query($query); query_chk($pt_del,"pt_del error"); print ""; break; case("edit"): $query="select * from pd_type where id_no='$id_no'"; $pt1_db=mysql_query($query); query_chk($pt1_db,"pt1_db error"); $pt1=mysql_fetch_array($pt1_db); $pt1_sel[$pt1[main_dp]]="selected"; break; case("update"): $query="select * from pd_type where id_no='$id_no'"; $pt1_db=mysql_query($query); query_chk($pt1_db,"pt1_db error"); $pt1=mysql_fetch_array($pt1_db); $query="update products set pd_type='$pd_type' where pd_type='$pt1[pd_type]'"; $pd_update=mysql_query($query); query_chk($pd_update,"pd_update"); $query="update pd_type set pd_type='$pd_type',subject='$subject',main_dp='$main_dp' where id_no='$id_no'"; $pt_update=mysql_query($query); query_chk($pt_update,"pt_update error"); break; } $query="select * from pd_type where pd_type!='ÀϹÝ' order by id_no DESC"; $pt_db=mysql_query($query); query_chk($pt_db,"pt_db error"); #¸ñ·Ï Ãâ·Â °ü·Ã º¯¼ö ½ÃÀÛ $ln=30; #ÇÑÆäÀÌÁö¿¡ Ãâ·ÂµÉ ¸ñ·Ï¼ö $pn=5; #ÆäÀÌÁö¹øÈ£ Ãâ·Â¼ö $pln=mysql_num_rows($pt_db); #Àüü ¸ñ·Ï¼ö $plp=ceil($pln/$ln); #Àüü ÆäÀÌÁö¼ö if($page<1){$page=1;} if($page>$plp){$page=$plp;} $epn=ceil($page/$pn)*$pn; $pn_n=$epn+1; $pn_p=$epn-($pn*2)+1; if($epn>$plp){ $epn=$plp; } $spn=$epn-$pn; #½ÃÀÛÆäÀÌÁö¹øÈ£ if($spn<0){$spn=0;} $spl=($page-1)*$ln; #¸ñ·Ï ½ÃÀÛ¹øÈ£ $limit=" limit $spl,$ln"; #¸ñ·Ï Ãâ·Â °ü·Ã º¯¼ö ³¡ $query=$query." ".$limit; $pt_db=mysql_query($query); query_chk($pt_db,"pt_db error"); ?>
"; } ?>
Å׸¶ ¼³¸í Á¦Ç°¼ö ÄÚµå ¼±ÅÃ
$pt[pd_type]
$pt[subject]
$pd_num $pt_type
1){ echo" [óÀ½] [ÀÌÀü]-"; } else{ echo" [óÀ½][ÀÌÀü]-"; } for($i=$spn+1;$i<=$epn;$i++){ if($i==$page){ $ii="$i"; } else{ $ii="".$i.""; } echo"[".$ii."]"; } if($epn<$plp){ echo" -[´ÙÀ½] [³¡]"; } else{ echo" -[´ÙÀ½][³¡]"; } ?>
Å׸¶ ¼³¸í µð½ºÇ÷¹ÀÌÄÚµå ¼±ÅÃ

:: µð½ºÇ÷¹ÀÌ ÄÚµå´Â °¢ ½ºÅ²ÀÇ ¸ÞÀÎ ÆäÀÌÁöÀÇ ÄÚµå À§Ä¡¿¡ Ç¥½ÃµË´Ï´Ù.
:: µð½ºÇ÷¹ÀÌ Äڵ尡 ¾øÀ» °æ¿ì ÅØ½ºÆ® ¸ñ·ÏÀ¸·Î Ãâ·Â µË´Ï´Ù.

Å׸¶ ¼³¸í µð½ºÇ÷¹ÀÌÄÚµå ¼±ÅÃ

:: µð½ºÇ÷¹ÀÌ ÄÚµå´Â °¢ ½ºÅ²ÀÇ ¸ÞÀÎ ÆäÀÌÁöÀÇ ÄÚµå À§Ä¡¿¡ Ç¥½ÃµË´Ï´Ù.
:: µð½ºÇ÷¹ÀÌ Äڵ尡 ¾øÀ» °æ¿ì ÅØ½ºÆ® ¸ñ·ÏÀ¸·Î Ãâ·Â µË´Ï´Ù.