Viewing file: addPublicizing.php (7.94 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 type="text/javascript" src="../js/nicEdit/nicEdit.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="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("$Feature","3"))) {echo "checked";} ?> value="<?=$Feature; ?>" />
การเผยแพร่งานวิจัยการประชุม</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" checked />
ระดับชาติ
<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)
ปีงบประมาณ
<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"><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"><label>
<input name="Results" type="checkbox" id="Results" value="0.25" />
( 0.25 คะแนน)
</label></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" 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 ; ?>" />
</div></td>
</tr>
</table>
</form>
</td>
</tr>
</table>
|