Viewing file: FrmPlanFiletex.php (7.74 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();
/** Define Validate Access */
define( '_VALID_ACCESS' , 1 );
/** Check Session User Login */
if( !session_is_registered("valid_user") && !session_is_registered("Priority") ) {
echo "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=windows-874\" />";
echo "<p style=padding-top:115px><p align=center><br /><font color=red><strong>กรุณาทำการ Login ก่อน</strong></font></p></p>";
echo "<meta http-equiv=\"refresh\" content=\"1; URL=../login.php\" />";
exit();
}
else {
/** Configuration */
require_once( "../configuration.php" );
require_once( $_Config_absolute_path . "/includes/framework.php" );
require_once( "../includes/Function.php" );
require_once( "../includes/FunctionDB.php" );
/** Create Database Object */
$dbObj = new DBConn;
//=== SESSION
$Username = $valid_user;
/** Config Table for This Page */
$myTable1 = "personal_tb";
$myTable2 = "formcaroffice";
$sql ="SELECT * FROM tech_text_tb WHERE textId ='$textId' ";
$result = mysql_query($sql) or die("Cannot Select").mysql_error();
$rs = mysql_fetch_array($result);
} # else
?>
<head>
<title>แก้ไขข้อมูลแผนการสอนบท/หัวข้อที่ : <?=htmlspecialchars_decode($rs['Filename']);?></title>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../css/default.css" rel="stylesheet" type="text/css" />
<script language="javascript" src="../js/utilities.js"></script>
<script language="javascript" src="../js/calendarDateInput2.js"></script>
<script language="javascript" src="../js/ajaxScript.js"></script>
<script language="JavaScript" type="text/JavaScript">
function browse()
{
pc.Filetex.src = pc.Filetex.value;
}
</script>
</head>
<table width="693" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="693">
<fieldset>
<legend></legend>
<label>
<form action="EditPlantex.php" method="post" enctype="multipart/form-data" name="pc" id="pc" onsubmit="return validateEditPlanFileTextForm()">
<table width="94%" border="0" align="center" cellpadding="0" cellspacing="2" bgcolor="#CCCCCC" style=" border:0px solid gray"size="12">
<tr bgcolor="#BFD0E6">
<td height="24" colspan="3" align="center" bgcolor="#FFFFFF"><font color="#000000" face="Tahoma"><strong>แก้ไขข้อมูลแผนการสอนบท/หัวข้อที่ : <?=htmlspecialchars_decode($rs['Filename']);?></strong></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td width="22%" align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><span class="style1"><font face="Tahoma">แผนการสอนบท/หัวข้อที่</font></a></span></td>
<td width="1%" bordercolor="#FFFFCC" bgcolor="#FFFFFF">*</td>
<td width="77%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><label>
<input name="Filename" type="text" id="Filename3" value="<? echo $rs[Filename]?>" size="40" />
</label></td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">เรื่อง/หัวข้อ ที่สอน</td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><textarea name="Plan_title" cols="60" id="Plan_title"><? echo $rs[Plan_title]?></textarea></td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">กิจกรรมการเรียนการสอน</td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><textarea name="Plan_atty" cols="60" id="Plan_atty"><? echo $rs[Plan_atty]?></textarea></td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">พฤติกรรมการเรียนรู้</td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><textarea name="Plan_resou" cols="60" id="Plan_resou"><? echo $rs[Plan_resou]?></textarea></td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">วิธีวัดและการประเมินผล</td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><textarea name="Plan_stiti" cols="60" id="Plan_stiti"><? echo $rs[Plan_stiti]?></textarea></td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">วันที่สอน</td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF">
<script>DateInput('mDate', true, 'DD/MM/YYYY','<?=(isset($rs[Date]))?ymdE2dmyE2($rs[Date]):date("d/m/Y");?>');</script>
</td>
</tr>
<tr bgcolor="#eeeeee">
<td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">จำนวนชั่วโมงที่สอน</td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Total_now" type="text" id="Total_now" value="<? echo $rs[Total_now]?>" size="5" maxlength="4" />
เวลา
<input name="Total_time" type="text" id="Total_time" value="<? echo $rs[Total_time]?>" size="10" /></td>
</tr>
<tr bordercolor="#99CCFF" bgcolor="#86ade2">
<td align="right" bgcolor="#FFFFFF"><font face="Tahoma">เอกสารประกอบการสอน</font></td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><table width="78%" border="0" cellpadding="0" cellspacing="1" class="style1">
<tr>
<td width="74%" align="left"><div align="left">
<input name="Filetex" type="file" id="Filetex" onchange="browse()" size="20" />
</div></td>
<td width="26%"> </td>
</tr>
</table></td>
</tr>
<tr bgcolor="#BFD0E6">
<td height="16" colspan="3" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#BFD0E6">
<td height="28" colspan="3" bgcolor="#FFFFFF"><div align="center">
<div align="center">
<input type="submit" name="Submit" value=" บันทึกข้อมูล" class="button" style="cursor:pointer" title="คลิ๊กที่นี่เพื่อบันทึกข้อมูล"/>
<input type="reset" name="Submit" value=" เคลียร์ข้อมูล" class="button" id="Submit" style="cursor:pointer"/>
<input type="button" name="Submit2" value="ปิดหน้าต่าง" onclick="javascript:parent.close();" class="CURSOR-HAND" id="Submit2" style="cursor:pointer"/>
<input name="textId" type="hidden" id="Recode" value="<? echo $rs['textId']?>" />
<input name="Plan_code" type="hidden" id="Recode" value="<? echo $rs['Plan_code']?>" />
</div>
</td>
</tr>
</table>
</form>
</label>
</fieldset>
<font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2">
</font></td>
</tr>
</table>
<?php
/** Free Resource */
$dbObj->freeresult($result1);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?>
|