Viewing file: Frmqa.php (5.59 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") && !session_is_registered("Priority") ) {
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( "../include/Function.php" );
require_once( "../include/FunctionDB.php" );
/** Create Database Object */
$dbObj = new DBConn;
$Username = $valid_user;
/** Config Table for This Page */
$myTable = "projectstdplan_tb";
$myTable1 = "qa_project_tb";
$myTable2 = "projectqa_type_tb";
$myTablePK = "Orderlist";
$query = " SELECT * FROM $myTable2 WHERE ProqaId='$ProqaId' ";
$result = $dbObj->execQuery($query);
$rss = $dbObj->fetchArray($result);
$query = " SELECT * FROM $myTable1 Where Trem='$Trem' ";
$result1 = $dbObj->execQuery($query);
$rs1 = $dbObj->fetchArray($result1);
} # 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>
<table width="490" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="490" height="163">
<fieldset>
<form action="EditQa.php" method="post" enctype="multipart/form-data" name="pc" id="pc">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC" style="border:0px solid gray; font-size: 18px;"size="12">
<tr bgcolor="#BFD0E6">
<td height="24" colspan="3" bgcolor="#FFFFFF"><div align="center" class="style1"><font color="#000000" face="Tahoma"><strong>à¾ÔèÁ¢éÍÁÙŵÑǪÕéÇÑ´ QA</strong></font></div></td>
</tr>
<tr bordercolor="#99CCFF" bgcolor="#86ade2">
<td align="right" bgcolor="#FFFFFF"><span class="TEXT-DARK-BLUE10">µÑǪÕéÇÑ´ QA ·Õè </span></td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><font size="2" face="Tahoma"><strong><font color="#003366" size="2" face="Tahoma">
<select name="projectId" id="projectId">
<option value=""></option>
<?php
$sql1 = " SELECT * FROM $myTable1 ORDER BY Ind_code ASC ";
$result1 = mysql_query($sql1);
while( $rs4 = mysql_fetch_array($result1) ) {
?>
<option value="<?=$rs4['projectId'];?>" <?php if( $rs4['projectId']==$rss['projectId'] ) echo 'selected';?>>
<?=$rs4['Ind_code'];?>
</option>
<?php
} # while
mysql_free_result($result1);
?>
</select>
</font></strong></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF" > </td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF" ><label>
<input name="ProjectPBRI" type="checkbox" id="ProjectPBRI"<?php if (!(strcmp("$rss[ProjectPBRI]","漻"))) {echo "checked";} ?> value="漻"/>
漻
<input name="ProjectSKA" type="checkbox" id="ProjectSKA" <?php if (!(strcmp("$rss[ProjectSKA]","Ê¡Í"))) {echo "checked";} ?> value="Ê¡Í" />
Ê¡Í
<input name="ProjectSMS" type="checkbox" id="ProjectSMS"<?php if (!(strcmp("$rss[ProjectSMS]","ÊÁÊ"))) {echo "checked";} ?> value="ÊÁÊ" />
ÊÁÊ</label></td>
</tr>
<tr bgcolor="#eeeeee">
<td width="22%" height="20" align="right" bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td width="1%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td width="77%" bordercolor="#FFFFCC" bgcolor="#FFFFFF" > </td>
</tr>
<tr bgcolor="#BFD0E6">
<td height="28" colspan="3" align="center" bgcolor="#FFFFFF"><input type="submit" name="Submit" value=" ºÑ¹·Ö¡¢éÍÁÙÅ" class="button" />
<input type="reset" name="Submit" value=" à¤ÅÕÂÃì¢éÍÁÙÅ" class="button" id="Submit" />
<input type="button" name="Submit" value="»Ô´Ë¹éÒµèÒ§" onclick="javascript:parent.close();" class="CURSOR-HAND" id="Submit" />
<font color="#006633" size="2" face="Tahoma">
<input name="Trem" type="hidden" id="Trem" value="<? echo $rss[Trem]?>" />
</font><font size="2" face="Tahoma"><strong><font color="#006633" size="2" face="Tahoma">
<input name="ProqaId" type="hidden" id="ProqaId" value="<? echo $rss[ProqaId]?>" />
</font></strong></font></td>
</tr>
</table>
</form>
</label>
</fieldset>
</td>
</tr>
</table>
<?php
/** Free Resource */
$dbObj->freeresult($result);
/** Close the Database */
$dbObj->disconn();
/** Unset Class */
unset($dbObj);
?>
|