@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux adweb87 2.6.32-754.el6.x86_64 #1 SMP Tue Jun 19 21:26:04 UTC 2018 x86_64
Current Path :
/
home
/
sanchung
/
public_html
/
admin
/
_poll
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/_poll/poll_modify.php
<? $sql = "select * from adw_poll where code='$code' && p_type='M'"; $row = mysql_fetch_array(mysql_query($sql)); echo" <script> function formchk(form){ if(!form.subject.value){ alert('¼³¹®Á¶»ç Á¦¸ñÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä '); form.subject.focus(); return false;; } form.submit(); } </script> <table width='100%' cellpadding='0' cellspacing='1' border='0'> <form name='infoform' method='post' action='./_poll/proc.php' onsubmit='return formchk()'> <input type='hidden' name='mode' value='modify'> <input type='hidden' name='code' value='$code'> <tr height='30'> <td><b>¼³¹®µî·Ï</b></td> </tr> <tr> <td style='border:1 solid #CCCCCC'> <TABLE width='100%' cellpadding='0' cellspacing='2' align='center' border='0' bgcolor='#FFFFFF'> <col width='20%' bgcolor='#EEEEEE' align='left' style='padding-left:15'></col> <col bgcolor='#F6F6F6' style='padding-left:10'></col> <TR height='30'> <th>¼³¹®Á¶»ç Á¦¸ñ</th> <TD><input type=text name='subject' value='$row[subject]' size=50 class='inputT'></TD> </TR>"; $__res = $mysql->res("adw_poll", "*", "where code='$code' && p_type='S' order by num asc"); $kk = 1; while($__row = mysql_fetch_array($__res)){ echo" <TR height='30'> <th>Ç׸ñ³»¿ë ".$kk++."</th> <TD><input type=text name='subsubject[$__row[num]]' value='$__row[subject]' size=40 class='inputT'></TD> </TR>"; } echo" <TR height='30'> <th>ÇöÀç»óÅÂ</th> <TD><select name='stat' style='font-size:9pt'> <option value='1' "; if($row[stat] == "1") echo "selected"; echo" style='color:#0000FF'> ¼³¹® ÁøÇàÁß </option> <option value='0' "; if($row[stat] == "0") echo "selected"; echo" style='color:#FF0000'> ¼³¹® Á¾·á </option> </select></td> </tr> <TR height='30'> <th>Ãâ·ÂÀ¯¹«</th> <TD><input type='radio' name='disp' value='Y' "; if($row[disp] == "Y") echo "checked"; echo"> Ãâ·ÂÇÔ <input type='radio' name='disp' value='N' "; if($row[disp] == "N") echo "checked"; echo"> Ãâ·Â¾ÈÇÔ </td> </tr> <TR height='30'> <th>¼³¹® ½ÃÀÛÀÏ</th> <td><input type='text' name='sdate' size='10' value='$row[sdate]' readonly onclick=\"makeCal('infoform', this.name)\"></td> </TR> <TR height='30'> <th>¼³¹® Á¾·áÀÏ</th> <td><input type='text' name='edate' size='10' value='$row[edate]' readonly onclick=\"makeCal('infoform', this.name)\"></td> </TR> </TABLE> </td> </tr> <tr height='40'> <td align=center> <input type='submit' value=' ¼³¹® ¼öÁ¤ '> <input type='button' value=' ¼öÁ¤ Ãë¼Ò' onClick=\"location.href=('?amode=poll_list');\"> </td> </tr> </form> </table> "; ?>