Server IP : 202.29.229.35 / Your IP : 3.22.242.110 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(); error_reporting(0); include("connect/connect.php"); $userStdid=$_SESSION['stdid'];//รหัสประจำตัว นศ. $sjectID=$_SESSION['sbid'];//รหัสสาขาวิชา //ดึงชื่อ นศ. $sqlstdtitle="select * from student where student_id='$userStdid' "; //echo "----->".$sqlstdtitle."<br>"; $resultstdtitle=mysql_query($sqlstdtitle); $rsstdtitle=mysql_fetch_array($resultstdtitle); $stdID=$rsstdtitle['student_id']; $stdperfix=$rsstdtitle['prefix_id_th']; $stdFname=$rsstdtitle['stu_fname_th']; $stdLname=$rsstdtitle['stu_lname_th']; $schID=$rsstdtitle['school_id']; $tecinstitutese=$rsstdtitle['tecinstitute']; //ชื่อสถาบันที่สังกัด $sqlIns="select * from tbl_institute where ins_id='$tecinstitutese'"; $resutIns=mysql_query($sqlIns); $rsIns=mysql_fetch_array($resutIns); $ins_name=$rsIns['ins_name']; $logoins=$rsIns['logoins']; $levelclassyear = "ปริญญาตรี ปี ".$rsstdtitle['classyear']." กลุ่ม ".$rsstdtitle['room']; $stdName=prefixTh($stdperfix).$stdFname." ".$stdLname;//ชื่อ นศ. แสดงที่หัวตาราง //หาปีการศึกษาล่าสุดที่ นศ. ลงทะเบียนเรียน //แสดงข้อมูลปีการศึกษา ปัจจุบัน $sqlsemesmax=mysql_query("select max(subYear) as maxsubYear from tbl_semester"); $rssemesmax=mysql_fetch_array($sqlsemesmax); $maxsubYear1=$rssemesmax['maxsubYear']; /**/ $sqlsemes=mysql_query("select max(semes) as semesori from tbl_semester where subYear='$maxsubYear1'"); $rssemes=mysql_fetch_array($sqlsemes); $semesterori1=$rssemes['semesori'];//ปีการศึกษาปัจจุบัน $sqlStdsub= " select * from stdregister where student_id='$stdID' and semester_year = '$semesterori1'"; //echo "==NO=>".$sqlStdsub."<br>"; $resultStdsub=mysql_query($sqlStdsub); $rstStdsub=mysql_fetch_array($resultStdsub); $semesteryear=$rstStdsub['semester_year']; //ดึงชื่อสาขาวิชา $sqlSJtitle="select * from tbl_dptsubject where sbID='$sjectID'"; //echo "<br>ดึงชื่อสาขาวิชา=>".$sqlSJtitle."<br>"; $resultSJtitle=mysql_query($sqlSJtitle); $rsSJtitle=mysql_fetch_array($resultSJtitle); $applyBranchId1=$rsSJtitle['sbName']; //ดึงชื่อสถานศึกษา $sqlSCtitle="select * from tbl_school where scID='$schID'"; $resultSCtitle=mysql_query($sqlSCtitle); $rsSCtitle=mysql_fetch_array($resultSCtitle); $SCname=$rsSCtitle['scName']; ?> <!------------นำเมาส์ชี้ที่่รูปแล้วเกิดภาพซ้อน-------------------> <style type="text/css"> /*Credits: Dynamic Drive CSS Library */ /*URL: http://www.dynamicdrive.com/style/ */ .thumbnail{ position: relative; z-index: 0; } .thumbnail:hover{ background-color: transparent; z-index: 50; } .thumbnail span{ /*CSS for enlarged image*/ position: absolute; background-color: lightyellow;/* สีขอบรูปใหญ่ */ padding: 5px; /*ขนาดเส้นกรอบ */ left: -1000px; border: 1.5px dashed gray; /*ขนาดและสีเส้นปะ*/ visibility: hidden; color: black; text-decoration: none ; } .thumbnail span img{ /*CSS for enlarged image*/ border-width: 0; padding: 2px; } .thumbnail:hover span{ /*CSS for enlarged image on hover*/ visibility: visible; top: 15; left: 100px; /*รูปเยื้องทางซ้าย*/ } </style> <!----------------------------> <body> <?php ////////////เชค ถ้าทำแบบประเมินครับทุกวิชา ให้แสดงข้อมูลส่วนตัว เป็นหน้าหลัก///////////////////// $sqlchek= mysql_query("select * from stdregister where student_id='$userStdid' and semester_year = '$semesterori1'"); while($resultcheck=mysql_fetch_array($sqlchek)){ $actioncheck=$resultcheck['action'];//สถานะการประเมิน 1 ประเมินแล้ว 0 ยังไม่ถูกประเมินฯ } if($actioncheck == 0){ ?> <B>รายวิชาที่ลงทะเบียนเรียนในภาคเรียนที่ <?php echo $semesteryear;?><br /> รหัสประจำตัว <?php echo $stdID;?> ชื่อ <?php echo $stdName."<br>สาขาวิชา".$applyBranchId1." ระดับชั้น".$levelclassyear." ".$SCname."<br>".$ins_name;?></B> <table width="100%" height="85" border="0" align="center" cellpadding="3" cellspacing="1" > <tr > <td width="35" height="30" align="center" valign="middle" bgcolor="#FF8282"><strong>ที่</strong></td> <td width="139" height="30" align="center" valign="middle" bgcolor="#FF8282" ><strong>รหัสวิชา</strong></td> <td width="396" height="30" align="center" valign="middle" bgcolor="#FF8282"><strong>ชื่อวิชา</strong></td> <td width="426" height="30" align="center" valign="middle" bgcolor="#FF8282" ><strong>อ.ผู้สอน</strong></td> <td width="147" height="30" align="center" valign="middle" bgcolor="#FF8282" ><strong>ประเมิน</strong></td> </tr><?php //$sql= " select * from student,stdregister,tbl_subject,tbl_datatercher1,tbl_dptsubject where student.student_id='$userStdid' and student.student_id=stdregister.student_id and stdregister.tecNumber=tbl_datatercher1.tecNumber and stdregister.s_Adress=tbl_subject.s_Adress and student.sbID = tbl_dptsubject.sbID "; $sql= " select * from stdregister where student_id='$userStdid' and semester_year = '$semesterori1'"; //echo "<br>===>".$sql; $dbquery=mysql_query($sql); $num_rows =mysql_num_rows($dbquery); //$i=0; $count=0; $n=0;//ลำดับที่ //while($i<$num_rows) { while($result=mysql_fetch_array($dbquery)){ $n++;//ลำดับที่ $stuID=$result['student_id'];//รหัส น.ศ $s_AdressID=$result['s_Adress'];//รหัสวิชาที่ลงทะเบียนเรียน $teacherID=$result['tecNumber'];//รหัสครู $subjectID=$result['sbID'];//รหัสสาขาวิชาที่ นศ.สังกัด $action=$result['action'];//สถานะการประเมิน 1 ประเมินแล้ว 0 ยังไม่ถูกประเมินฯ //$teacherID=$result[teacherID]; //ดึงชื่อวิชา $sqlSJre="select * from tbl_subject where s_Adress='$s_AdressID'"; //echo "<br>=>".$sqlSJre; $resultSJre=mysql_query($sqlSJre); $rsSJre=mysql_fetch_array($resultSJre); $subID=$rsSJre['s_Adress']; $subname=$rsSJre['s_Name']; //ดึงชื่อครู $sqlTEC="select * from tbl_datatecher1 where tecNumber='$teacherID'"; $resultTEC=mysql_query($sqlTEC); $rsTEC=mysql_fetch_array($resultTEC); $tecperfix=$rsTEC['tecPrefixThai']; $tecFnameThai=$rsTEC['tecFnameThai']; $tecLnameThai=$rsTEC['tecLnameThai']; $tecname="อาจารย์".$tecFnameThai." ".$tecLnameThai; $tecPhoto=$rsTEC['tecPhoto'];//รูป //นำตัวแปรจากตารางการลงทะเบียนมาใส่ // if ($count==0){ if($bg == "#FFCCCC") { $bg = "#FFE8E8"; } else { $bg = "#FFCCCC"; } ?> <tr bgcolor="<?php echo $bg; ?>" onMouseMove="this.style.backgroundColor='#FFE495'" onMouseOut="this.style.backgroundColor=''"> <td align="center" valign="middle"><?php echo $n//ข้อที่ ; ?></td> <td align="center" valign="middle"><?php echo $subID; ?></td> <td align="left" valign="middle"><?php echo $subname; ?></td> <td align="left" valign="middle"> <a class="thumbnail" href=""><span><?php if($tecPhoto != ""){ ?><img src="../ivePersonal/photoTec/<?php echo $tecPhoto;?>" alt="" height="" width="100" style="border:1px solid #CCCCCC; padding:1px"/><?php }else{ ?><img src="../ivePersonal/photoTec/defultstd.jpg" alt="" height="" width="100" style="border:1px solid #CCCCCC; padding:1px"/><?php } ?></span><?php echo $tecname; ?></a></td> <td align="center" valign="middle" > <?php /*$sql2= "select * from qpoll where student_id='$userStdid' and tecNumber='$teacherID' and s_Adress='$s_AdressID' "; echo "<br>==qpoll=".$sql2; $dbquery2=mysql_query($sql2); $num_rows2 =mysql_num_rows($dbquery2); echo "<br>====>".$num_rows2; $rsqpoll=mysql_fetch_array($dbquery2); */ if($action == 0 ){ ?> <a href="?i=stdcomment&subjectID=<?php echo $s_AdressID;?>&techerID=<?php echo $teacherID;?>"> ยังไม่ได้ประเมิน</a> <?php }else{//$num_rows2 echo "กรอกแล้ว"; }//$num_rows2 ?> </td> </tr> <?php // }//$count==0 }//end while ?> </table> <?php }else{ ?> <?php require_once("stdShowdata.php"); } ?>