ทำเลขแสดงลำดับรูปมันไม่ขึ้นอ่ะค่ะ ไล่มา 2 วันไม่รู้เป็นเพราะอะไร บรรทัดที่ 64 <?=$row;?>
<?
$obj_audit=null;
$sql="SELECT a.p_id,a.i_id,b.i_lineNum,b.PicID,b.PathLocal,b.UploadFile,b.sFlashCar
FROM TSN_DATA.dbo.QC_t_ResultDtl a
LEFT OUTER JOIN TSN_DATA.dbo.QC_t_ResultAtt b ON (a.p_id=b.p_id)
WHERE a.p_id = '".$_GET['p_id']."'
AND a.i_line = '".$_GET['i_line']."' ";
//echo $sql;
db_loadObject($sql,$obj_audit);
?>
<form id="form1" name="form1" method="post" action="<?=$_SERVER["PHP_SELF"];?>" >
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr >
<td height="33" colspan="2" align="center">
<span class="text_login">
ข้อมูลรายละเอียดรูป</span></td>
</tr>
</table>
<table width="100%" height="114" border="0" cellpadding="0" cellspacing="0" style="border-collapse:collapse" bordercolor="#999999">
<? $strSQL=" SELECT a.p_id,a.i_id,b.i_lineNum,b.UploadFile,b.c_desc
FROM TSN_DATA.dbo.QC_t_ResultDtl a
LEFT OUTER JOIN TSN_DATA.dbo.QC_t_ResultAtt b ON (a.p_id=b.p_id)
LEFT OUTER JOIN TSN_DATA.dbo.QC_m_MethodDtl c ON (a.i_id=c.i_id)
WHERE a.p_id = '".$_GET['p_id']."'
AND a.i_line = '".$_GET['i_line']."' ";
$objExec3 = odbc_exec($objConnect, $strSQL) or die ("Error Execute [".$strSQL."]");
$row3=1;
$col2=1;
while($objResult3 = odbc_fetch_array($objExec3))
{
if ($col2==1)
{ ?>
<tr>
<? } ?>
<td width="25%" valign="bottom" ><table width="100%" border="0">
<tr>
<td height="54" class="text_icd_pass"><table width="100%" border="1" cellspacing="0" cellpadding="0">
<tr>
<td height="30" align="left" bgcolor='#F0DDC9'>
รูปที่ :
<?=$row;?> <br /></td>
</tr>
<tr>
<td height="26" align="center" bgcolor='#FBEEF6'>
<? if ($objResult3['UploadFile']<>''){?> <a href="javascript:newwindow('rotate_image.php?url=<?=$picture_adgca_url.$objResult3['UploadFile']?>&w=780&h=580',800,600);" title="คลิกเพื่อชมภาพขยาย"><? } ?>
<img src="<?=picture($picture_adgca_url,$objResult3['UploadFile'])?>" width="200" border="0"/><? if ($objResult3['UploadFile']<>''){ ?></a><? } ?>
<br />
รูปภาพ</td>
</tr>
<tr>
<td height="27" bgcolor="#DCDFE1"> รายละเอียดรูป</td>
</tr>
<tr>
<td height="27" bgcolor="#FFFFFF">
<?=tis620_to_utf8($objResult3['c_desc'])?></td>
</tr>
</table></td>
</tr>
</table>
</td> <?
$row3++;
if ($col2==2)
{ ?>
</tr>
<?
$col2=0; }
$col2++;
}
?>
<td width="25%" valign="bottom" ><table width="100%" border="0">
<tr>
<td align="center"></td>
</tr>