Server IP : 202.29.229.35 / Your IP : 3.17.146.235 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/ |
Upload File : |
<?php @session_start(); $host="202.29.229.40"; $user_name="root"; $pass_word="LBtech!2012"; $dbname="lbtech_db"; /* $host="localhost"; $user_name="root"; $pass_word="1234"; $db="stdcard_db"; */ @mysql_connect($host,$user_name,$pass_word) or die ("can not connect to server"); mysql_query("SET NAMES utf8"); @mysql_select_db($dbname) or die("can not select database"); //include("connect/connect.php"); /* if($_SESSION['start_login'] != 1){ echo '<META HTTP-EQUIV="Refresh" CONTENT="0;URL=http://std-card.lbtech.ac.th/login.php">'; exit(); } */ //รูปแบบ วัดเดือน ปี เกิด $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 ?> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>System Card</title> <link href="dist/css/bootstrap.min.css" rel="stylesheet"> </head> <body> <h1 style="text-align:center;">พิมพ์แบบรายงาน บนศ.3 </h1> <div class="container"> <fieldset> <legend> <p> </p> <center> <h3><a href="index.php">กลับหน้าหลัก</a></h3> </center> <form name="form1" method="post" action="showallPhotostd.php"> <table width="800" border="0" align="center" cellpadding="5" cellspacing="5"> <tr> <td width="223" align="right" valign="top">วิทยาลัยในสังกัดสถาบันฯ :</td> <td width="542"><select name="tecSchool" id="dpm_ID4" class="validate[required]"> <option selected value="" >-------------เลือก---------------</option> <?php $sqlsc="select * from tbl_school order by scID ASC"; $resultsc=mysql_query($sqlsc); while($rssc=mysql_fetch_array($resultsc)){ ?> <option value="<?php echo $rssc['subscID'];?>"><?php echo $rssc['scName'];?></option> <?php }//end while dpm ?> </select></td> </tr> <tr> <td align="right" valign="top"> </td> <td> </td> </tr> <tr> <td align="right" valign="top">สาขาวิชาที่เปิดสอน : </td> <td><select name="tecSub" id="tecSub" class="validate[required]"> <option selected value="" >-------------เลือก---------------</option> <?php $sqldpm="select * from tbl_dptsubject"; $resultdpm=mysql_query($sqldpm); while($rsdpm=mysql_fetch_array($resultdpm)){ ?> <option value="<?php echo $rsdpm['sbID'];?>"><?php echo $rsdpm['sbName'];?></option> <?php }//end while dpm ?> </select></td> </tr> <tr> <td align="right" valign="top"> </td> <td> </td> </tr> <tr> <td align="right" valign="top">เลือกปีการศึกษา :</td> <td><select id="y" name="y" style="width:70px" class="validate[required]"> <option value="">ปี พ.ศ.:</option> <?php $thiyear=0; echo $startyear ." ". $endyear; for($num=$startyear;$num<=$endyear;$num++) { $thiyear = $num+543; if($dmy[2]==$thiyear) $dSe3="SELECTED"; else $dSe3=""; ?> <option value="<?php echo $thiyear;?>" <?php echo $dSe3; ?>> <?php echo $thiyear;?></option> <?php } ?> </select></td> </tr> <tr> <td align="right" valign="top"> </td> <td> </td> </tr> <tr> <td align="right" valign="top"> </td> <td><input type="submit" name="button" id="button" value="Submit"></td> </tr> </table> </form> </fieldset> </div> </body> </html>