Server IP : 202.29.229.35 / Your IP : 18.117.8.176 Web Server : Apache System : Linux aapanel2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 User : www ( 1001) PHP Version : 5.5.38 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /www/wwwroot/www.ivecr2.ac.th/system_admin/ |
Upload File : |
<?php session_start(); if($_SESSION['r_statuslogin'] != 1){ echo '<script language="javascript">alert("สำหรับผู้ดูแลระบบเท่านั้น")</script>'; echo'<meta http-equiv="refresh" content="0;url=../index.php">'; exit(); } $adID=$_GET['adID']; $sqlwork1="select * from tbladmin where adID='$adID'"; $resqlwork1=mysql_query($sqlwork1,$connect1); $numrow=mysql_num_rows($resqlwork1); $rs=mysql_fetch_array($resqlwork1); $dpID=$rs['addepartmentID']; $workname=$rs['addepartment']; $admin_pic=$rs['adPhoto']; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script> <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" /> </head> <body> <p><center> <h2>ข้อมูลกลุ่มงาน</h2></center></p> <form action="?i=subject_nameaEditOK" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="700" border="0" align="center" cellpadding="5" cellspacing="0"> <tr> <td align="right" valign="top"> </td> <td align="left" valign="top"><a href="?i=subject_nameall"><< ย้อนกลับ</a></td> </tr> <tr> <td width="200" align="right" valign="top">ชื่อแผนกวิชา/งาน :</td> <td width="500" align="left" valign="top"><select name="selectwork" id="selectwork"> <option value="<?php echo $dpID; ?>"><?php echo $workname; ?></option> <?php $sqlad="select * from tbl_departmentall order by daNodpt ASC"; $resqlad=mysql_query($sqlad,$connect1); while($rsad=mysql_fetch_array($resqlad)){ ?> <option value="<?php echo $rsad['daNodpt'];?>"><?php echo $rsad['daFname']; ?></option> <?php }//end while ?> </select> <?php //echo $rs['addepartment']; ?></td> </tr> <tr> <td width="200" align="right" valign="top">ชื่อผู้ใช้ระบบงาน :</td> <td width="500" align="left" valign="top"> <label for="adFname"></label> <input name="adFname" type="text" id="adFname" size="20" value="<?php echo $rs['adFname']; ?>" /> <label for="adLname"></label> <input name="adLname" type="text" id="adLname" size="30" value="<?php echo $rs['adLname']; ?>" /></td> </tr> <tr> <td align="right" valign="top">แนบรูป :</td> <td align="left" valign="top"> <?php if($admin_pic != ""){?> <img alt="" src="./file_pictureadmin/<?php echo $admin_pic;?>" width="150" /> <?php }else{ echo ""; }?><br /> <label for="filePIC"></label> <input type="file" name="filePIC" id="filePIC" /></td> </tr> <tr> <td width="200" align="right" valign="top">Username :</td> <td width="500" align="left" valign="top"><label for="aduser"></label> <span id="sprytextfield2"> <input name="aduser" type="text" id="aduser" size="40" maxlength="15" value="<?php echo $rs['adUser']; ?>" /> <span class="textfieldRequiredMsg">* ใส่ได้ไม่เกิน 15 ตัวอักษร</span><span class="textfieldMaxCharsMsg">* ใส่ได้ไม่เกิน 15 ตัวอักษร</span></span></td> </tr> <tr> <td width="200" align="right" valign="top">Password :</td> <td width="500" align="left" valign="top"><label for="adpass"></label> <input name="adpass" type="text" id="adpass" size="40" maxlength="15" /> </td> </tr> <tr> <td width="200" align="right" valign="top"> </td> <td width="500" align="left" valign="top"><input type="submit" name="button" id="button" value="บันทึก" /> <input name="adID" type="hidden" id="adID" value="<?php echo $rs['adID'];?>" /> <input type="hidden" name="photo_old" id="photo_old" value="<?php echo $rs['adPhoto'];?>" /> <input type="hidden" name="adpassold" id="adpassold" value="<?php echo $rs['adPass'];?>" /></td> </tr> <tr> <td width="200" align="right" valign="top"> </td> <td width="500" align="left" valign="top"> </td> </tr> <tr> <td width="200" align="right" valign="top"> </td> <td width="500" align="left" valign="top"> </td> </tr> </table> </form> <script type="text/javascript"> var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1", "none", {maxChars:15}); var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2", "none", {maxChars:15}); </script> </body> </html>