Server IP : 202.29.229.35 / Your IP : 18.119.120.88 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/stdcard/ |
Upload File : |
<!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> </head> <body> <?php //รูปแบบ วัดเดือน ปี เกิด $today=getdate(); $curday=date("j"); $curmonth=date("n"); $curyear=$today["year"]; $thai_n=array("มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฏาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"); $thai_e=array("January","February","March","April","May","June","July","August","September","October","November","December"); $c_month = $thai_n[$curmonth - 1]; $curdate=date("$curyear-$curmonth-$curday"); $cyear=$curyear+543; $cdate=date("$curday/$curmonth/$cyear"); $datenull=date("0000-00-00"); $thai_day_arr=array("อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัสบดี","ศุกร์","เสาร์"); $eng_date = strtotime("$curyear-$curmonth-$curday"); $startyear = 2000; $endyear = $curyear+5; // ตัวอย่าง การเรียกใช้ $thai_day = $thai_day_arr[date("w",$eng_dat ?> <h1> </h1> <form action="print_card.php" method="post" enctype="multipart/form-data" name="form1" id="form1"> <table width="100%" border="0" cellspacing="5" cellpadding="2"> <tr> <td colspan="2" align="center" valign="top"><h1>วิทยาลัยเทคนิคลพบุรี</h1> <h1>ประมวลผลเลขที่บัตรประจำตัวนักเรียนนักศึกษา</h1></td> </tr> <tr> <td width="200" align="right" valign="top">ประมวลผลด้วยปีการศึกษาที่เข้า :</td> <td width="300" align="left" valign="top"><label for="years"></label> <input name="years" type="text" id="years" size="25" /> *เช่น 2557</td> </tr> <tr> <td width="200" align="right" valign="top">ประมวลผลด้วยรหัสกลุ่ม :</td> <td width="300" align="left" valign="top"><label for="years"></label> <input name="group_id" type="text" id="group_id" size="25" /> *เช่น 57210101</td> </tr> <tr> <td width="200" align="right" valign="top">ประมวลผลด้วยรหัสประจำตัวนักศึกษา :</td> <td width="300" align="left" valign="top"><label for="student_id"></label> <input name="student_id" type="text" id="student_id" size="25" /> *เช่น5721010001</td> </tr> <tr> <td align="right" valign="top">วันที่ออกบัตร :</td> <td align="left" valign="top"><table border="0" cellspacing="0" cellpadding="5"> <tr> <td><select id="d" size="1" name="d" style="width:50px" class="validate[required]"> <option value="">วันที่:</option> <? $dmy=explode("/",$birthday_th); for($numday=1;$numday<= 31;$numday++) { if($dmy[0]==$numday) $dSe1="SELECTED"; else $dSe1=""; ?> <option value="<? echo $numday;?>" <? echo $dSe1; ?>> <? echo $numday;?></option> <? } ?> </select></td> <td><select id="m" size="1" name="m" style="width:150px" class="validate[required]"> <option value="">----------เดือน:----------</option> <? for($nums=0;$nums<= count($thai_n)-1;$nums++) { if($dmy[1]==$nums+1) $dSe2="SELECTED"; else $dSe2=""; ?> <option value="<? echo $nums+1;?>" <? echo $dSe2; ?>> <? echo $thai_n[$nums];?></option> <? } ?> </select></td> <td><select id="y" name="y" style="width:70px" class="validate[required]"> <option value="">ปี พ.ศ.:</option> <? $thiyear=0; echo $startyear ." ". $endyear; for($num=$startyear;$num<=$endyear;$num++) { $thiyear = $num+543; if($dmy[2]==$thiyear) $dSe3="SELECTED"; else $dSe3=""; ?> <option value="<? echo $thiyear;?>" <? echo $dSe3; ?>> <? echo $thiyear;?></option> <? } ?> </select></td> </tr> </table></td> </tr> <tr> <td align="right" valign="top">วันที่บัตรหมดอายุ :</td> <td align="left" valign="top"><table border="0" cellspacing="0" cellpadding="5"> <tr> <td><select id="d2" size="1" name="d2" style="width:50px" class="validate[required]"> <option value="">วันที่:</option> <? $dmy=explode("/",$birthday_th); for($numday=1;$numday<= 31;$numday++) { if($dmy[0]==$numday) $dSe11="SELECTED"; else $dSe11=""; ?> <option value="<? echo $numday;?>" <? echo $dSe11; ?>> <? echo $numday;?></option> <? } ?> </select></td> <td><select id="m2" size="1" name="m2" style="width:150px" class="validate[required]"> <option value="">----------เดือน:----------</option> <? for($nums=0;$nums<= count($thai_n)-1;$nums++) { if($dmy[1]==$nums+1) $dSe21="SELECTED"; else $dSe21=""; ?> <option value="<? echo $nums+1;?>" <? echo $dSe21; ?>> <? echo $thai_n[$nums];?></option> <? } ?> </select></td> <td><select id="y2" name="y2" style="width:70px" class="validate[required]"> <option value="">ปี พ.ศ.:</option> <? $thiyear=0; echo $startyear ." ". $endyear; for($num=$startyear;$num<=$endyear;$num++) { $thiyear = $num+543; if($dmy[2]==$thiyear) $dSe31="SELECTED"; else $dSe31=""; ?> <option value="<? echo $thiyear;?>" <? echo $dSe31; ?>> <? echo $thiyear;?></option> <? } ?> </select></td> </tr> </table></td> </tr> <tr> <td colspan="2" align="center" valign="top"><input type="submit" name="button" id="button" value="Submit" /> <input type="reset" name="button2" id="button2" value="Reset" /></td> </tr> </table> </form> <p> </p> <p> </p> <p> </p> </body> </html>