Viewing file: EditPublicizing.php (6.97 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") ) {
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" );
/** Create Database Object */
$dbObj = new DBConn;
$sql = "Select * From research_dissemination Where pubId='$pubId' ";
$result = mysql_query($sql) or die(" Error").mysql_error();
$rss = mysql_fetch_array($result);
} #else
?>
<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>
<script language="JavaScript" type="text/JavaScript">
function browse()
{
form1.Filetex.src = form1.Filetex.value;
}
</script>
<table width="567" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td width="565" height="194">
<form id="form1" name="form1" method="post" enctype="multipart/form-data" action="InsertPublicizing.php">
<img src="../picture/previous.gif" onclick="window.history.back()" width="85" height="22" border="0" />
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#eeeeee; border:0px solid gray; font-size: 14px;"size="12">
<tr bgcolor="#F3F3F3">
<td colspan="2" align="left" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
<input type="radio" name="Feature" id="radio" <?php if (!(strcmp("$rss[Feature]","3"))) {echo "checked";} ?> value="3" />
การเผยแพร่งานวิจัยการประชุม
<input name="Research_code" type="hidden" id="Research_code" value="<?=$rss['Research_code'] ; ?>" /></td>
</tr>
<tr bgcolor="#F3F3F3">
<td width="17%" align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td width="83%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><label>
<input type="radio" name="Quality" id="radio" <?php if (!(strcmp("$rss[Quality]","4"))) {echo "checked";} ?> value="4" />
ระดับชาติ
<input type="radio" name="Quality" id="radio" <?php if (!(strcmp("$rss[Quality]","5"))) {echo "checked";} ?> value="5" />
นานาชาติ
</label></td>
</tr>
<tr bgcolor="#F3F3F3">
<td align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input type="radio" name="Proceeding" id="radio" <?php if (!(strcmp("$rss[Proceeding]","1"))) {echo "checked";} ?> value="1" />
(มีเฉพาะบทคัดย่อ) </td>
</tr>
<tr bgcolor="#F3F3F3">
<td align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input type="radio" name="Proceeding" id="radio" <?php if (!(strcmp("$rss[Proceeding]","2"))) {echo "checked";} ?> value="2" />
(มี Proceeding)
ปีงบประมาณ
:
<input name="fiscal_year_finish" type="text" id="fiscal_year_finish" value="<?=$rss['fiscal_year_finish'];?>" size="3" maxlength="4" />
ปีการศึกษา
:
<input name="academic_year_finish" type="text" id="academic_year_finish" value="<?=$rss['academic_year_finish'];?>" size="3" maxlength="4"/></td>
</tr>
<tr bgcolor="#F3F3F3">
<td align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF">ชื่อการประชุม</td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><textarea name="MeetingName" cols="60" rows="2" class="input" id="MeetingName" ><? echo htmlspecialchars_decode( nl2br( $rss['MeetingName'] ) ) ;?></textarea></td>
</tr>
<tr bgcolor="#F3F3F3">
<td align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF">หน่วยงานที่จัด</td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><textarea name="Agencies" cols="60" rows="2" class="input" id="Agencies" ><? echo htmlspecialchars_decode( nl2br( $rss['Agencies'] ) ) ;?></textarea></td>
</tr>
<tr bgcolor="#F3F3F3">
<td align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF">วันที่เผยแพร่</td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><script>DateInput('mDate4', true,'DD/MM/YYYY','<?=(isset($rss['DatePublic']))?ymdT2dmyE($rss['DatePublic']):date("d/m/Y");?>');</script></td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Results" type="checkbox" id="Results" <?php if (!(strcmp("$rss[Results]","0.25"))) {echo "checked";} ?> value="0.25" />
( 0.25 คะแนน) </td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#F3F3F3">
<td colspan="2" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">อัพโหลดบทความหรือคัดย่อ:
<input name="Filetex" type="file" id="Filetex" size="20" />
</span></td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#F3D6F2">
<td colspan="2" align="center" bgcolor="#FFFFFF">
<input name="pubId" type="hidden" id="pubId" value="<?=$rss['pubId'] ; ?>" />
<input name="Submit" type="submit" class="WIDTH60" id="Submit" value="บันทึก" />
<input name="Reset" type="reset" class="WIDTH60" id="Reset" value="Reset" />
<input type="button" name="Submit" value="ปิดหน้าต่าง" onclick="javascript:parent.close();" class="CURSOR-HAND" id="Submit" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
|