Viewing file: EditGospel.php (8.56 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="97%" 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="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
<input type="radio" name="Feature" id="radio" <?php if (!(strcmp("$Feature","1"))) {echo "checked";} ?> value="1" />
การเผยแพร่บทความวิจัย
<input name="Feature" type="radio" id="radio" <?php if (!(strcmp("$Feature","2"))) {echo "checked";} ?> value="2" />
การเผยแพร่บทความวิชาการ</td>
</tr>
<tr bgcolor="#F3F3F3">
<td align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF">
<input type="radio" name="Warsan" id="radio" <?php if (!(strcmp("$rss[Warsan]","1"))) {echo "checked";} ?> value="1" />
วารสารทั่วไป/จุลสาร
<input type="radio" name="Warsan" id="radio" <?php if (!(strcmp("$rss[Warsan]","2"))) {echo "checked";} ?> value="2" />วารสารระดับชาติ
<input type="radio" name="Warsan" id="radio" <?php if (!(strcmp("$rss[Warsan]","3"))) {echo "checked";} ?> value="3" />
วารสารระดับนานาชาติ </td>
</tr>
<tr bgcolor="#F3F3F3">
<td width="16%" align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF">ฐานข้อมูล</td>
<td width="84%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><textarea name="DatabaseName" cols="60" rows="2" class="input" id="DatabaseName" ><? echo htmlspecialchars_decode( nl2br( $rss['DatabaseName'] ) ) ;?></textarea>
<script>QBPATH='../editor'; VISUAL=1; SECURE=0;</script>
<script src='../editor/quickB.js'></script>
<script src='../editor/tabedit.js'></script></td>
</tr>
<tr bgcolor="#F3F3F3">
<td height="40" align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF">ชื่อวารสาร</td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><textarea name="JournalName" cols="60" rows="2" class="input" id="JournalName" ><? echo htmlspecialchars_decode( nl2br( $rss['JournalName'] ) ) ;?></textarea>
<script>QBPATH='../editor'; VISUAL=1; SECURE=0;</script>
<script src='../editor/quickB.js'></script>
<script src='../editor/tabedit.js'></script></td>
</tr>
<tr bgcolor="#F3F3F3">
<td align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF">ปีที่</td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Year" type="text" id="Year" value="<?=$rss['Year'];?>" size="3" maxlength="4"/>
ฉบับที่
<input name="Issue" type="text" id="Issue" value="<?=$rss['Issue'];?>" size="3" maxlength="4"/>
หน้า
<input name="Page" type="text" id="Page" value="<?=$rss['Page'];?>" size="3" maxlength="4"/></td>
</tr>
<tr bgcolor="#F3F3F3">
<td align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><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">ว/ด/ป <br />ที่เผยแพร่</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 type="radio" name="Results" id="radio" <?php if (!(strcmp("$rss[Results]","1"))) {echo "checked";} ?> value="1" />
วารสารระดับนานาชาติ ( 1 คะแนน)</td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input type="radio" name="Results" id="radio" <?php if (!(strcmp("$rss[Results]","0.50"))) {echo "checked";} ?> value="0.50" />
วารสารระดับชาติ ฐานข้อมูล TCI กลุ่ม 1 (0.50 คะแนน)</td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input type="radio" name="Results" id="radio" <?php if (!(strcmp("$rss[Results]","0.25"))) {echo "checked";} ?> value="0.25" />
วารสารระดับชาติ ฐานข้อมูล TCI กลุ่ม 2 (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"><div align="center">
<input name="pubId" type="hidden" id="pubId" value="<?=$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" />
<input name="Research_code" type="hidden" id="Research_code" value="<?=$rss['Research_code'] ; ?>" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
|