Viewing file: addGospel.php (9.16 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/FunctionDB.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">
<table width="98%" border="0" align="center" cellpadding="1" 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="<?=$Feature;?>" />
การเผยแพร่บทความวิจัย
<input name="Feature" type="radio" id="radio" <?php if (!(strcmp("$Feature","2"))) {echo "checked";} ?> value="<?=$Feature;?>" />
การเผยแพร่บทความวิชาการ</td>
</tr>
<tr bgcolor="#F3F3F3">
<td align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF">
<input name="Warsan" type="radio" id="radio" value="1" <?php if (!(strcmp("$rss[Warsan]","1"))) {echo "checked";} ?> />
วารสารทั่วไป/จุลสาร
<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 colspan="2" align="left" bordercolor="#CCCCCC" 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"/>
หน้า
<input name="Page" type="text" id="Page" value="<?=$rss['Page'];?>" size="3"/></td>
</tr>
<tr bgcolor="#F3F3F3">
<td colspan="2" align="left" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
ปีงบประมาณ
<select name="fiscal_year_finish" id="fiscal_year_finish">
<?php
$curr_year = date("Y")+543;
$prev_year = $curr_year-8;
$next_year = $curr_year+3;
for( $i=$prev_year; $i<=$next_year; $i++ ) {
?>
<option value="<?=$i;?>" <?php if( $i==$curr_year ) echo 'selected'; elseif( $i==$Budget_Year ) echo 'selected'; ?>>
<?=$i;?>
</option>
<?php
} # for
?>
</select>
ปีปฏิทิน
<select name="academic_year_finish" id="academic_year_finish">
<?php
$curr_year = date("Y")+543;
$prev_year = $curr_year-8;
$next_year = $curr_year+3;
for( $i=$prev_year; $i<=$next_year; $i++ ) {
?>
<option value="<?=$i;?>" <?php if( $i==$curr_year ) echo 'selected'; elseif( $i==$Budget_Year ) echo 'selected'; ?>>
<?=$i;?>
</option>
<?php
} # for
?>
</select></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','<?=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="radio4" value="1" />
วารสารระดับนานาชาติ ( 1 คะแนน)</td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><label>
<input type="radio" name="Results" id="radio2" value="0.50" />
วารสารระดับชาติ ฐานข้อมูล TCI กลุ่ม 1 (0.50 คะแนน)</label></td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input type="radio" name="Results" id="radio3" 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 bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" 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="<?=$Research_code ; ?>" /></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
|