Viewing file: loadResearch.php (5.62 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
/** Define Validate Access */
define( '_VALID_ACCESS', 1 );
/** 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_download WHERE dowId ='$dowId' and Research_code='$Research_code' ";
$result = mysql_query($sql) or die(" Error").mysql_error();
$rss = mysql_fetch_array($result);
?>
<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">
function fncSubmit()
{
if(document.form1.radio1.checked == false && document.form1.radio2.checked == false && document.form1.radio3.checked == false && document.form1.radio4.checked == false )
{
alert('กรุณาเลือกรูปแบบ');
return false;
}
if(document.form1.Agency.value == "")
{
alert('กรุณากรอกชื่อหน่วยงาน');
document.form1.Agency.focus();
return false;
}
if(document.form1.Name_info.value == "")
{
alert('กรุณากรอกชื่อและนามสกุล');
document.form1.Name_info.focus();
return false;
}
document.form1.submit();
}
</script>
<?php ?>
<br />
<table width="430" border="0" align="center" cellpadding="1" cellspacing="0">
<tr>
<td width="428" height="194">
<form id="form1" name="form1" method="post" enctype="multipart/form-data" action="InsertDownload.php" onSubmit="JavaScript:return fncSubmit();">
<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 align="center" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
บันททึกการนำไปใช้ประโยชน์</td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Category" type="radio" id="radio1" value="เชิงสาธารณะ" <?php if (!(strcmp("$rss[Category]","เชิงสาธารณะ"))) {echo "checked";} ?> /> เชิงสาธารณะ</td>
</tr>
<tr bgcolor="#F3F3F3">
<td width="96%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><script>QBPATH='./editor'; VISUAL=1; SECURE=0;</script>
<script src='./editor/quickB.js'></script>
<script src='./editor/tabedit.js'></script>
<input name="Category" type="radio" id="radio2" value="เชิงพานิชย์" <?php if (!(strcmp("$rss[Category]","เชิงพานิชย์"))) {echo "checked";} ?> /> เชิงพานิชย์</td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Category" type="radio" id="radio3" value="เชิงนโยบาย" <?php if (!(strcmp("$rss[Category]","เชิงนโยบาย"))) {echo "checked";} ?> /> เชิงนโยบาย</td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Category" type="radio" id="radio4" value="ทางอ้อมของงานสร้างสรรค์" <?php if (!(strcmp("$rss[Category]","ทางอ้อมของงานสร้างสรรค์"))) {echo "checked";} ?> /> ทางอ้อมของงานสร้างสรรค์</td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> หน่วยงาน
<input name="Agency" type="text" id="Agency" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss['Agency'];?>" size="45" /></td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> ชื่อ-สกุล
<input name="Name_info" type="text" id="Name_info" style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: black 1px dashed" value="<?=$rss['Name_info'];?>" size="45" /></td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#F3F3F3">
<td align="center" bordercolor="#FFFFCC" bgcolor="#FFFFFF">อัปโหลดเอกสาร
<input name="Filetex" type="file" id="Filetex" size="20" />
</span></td>
</tr>
<tr bgcolor="#F3F3F3">
<td align="left" bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#F3D6F2">
<td align="center" bgcolor="#FFFFFF"><input name="Research_Id" type="hidden" id="Research_Id" value="<?=$Research_Id; ?>" />
<input name="Research_code" type="hidden" id="Research_code" value="<?=$Research_code ; ?>" />
<div align="center">
<input name="Submit" type="submit" class="WIDTH60" id="Submit" value="ตกลง" />
<input type="button" name="Submit" value="ปิดหน้าต่าง" onclick="javascript:parent.close();" class="CURSOR-HAND" id="Submit" />
<input name="dowId" type="hidden" id="dowId" value="<?=$dowId; ?>" />
</tr>
</table>
</form>
</font></td>
</tr>
</table>
|