|
|
|
มีข้อมูลใน textfield ปิดการใช้งาน listmenu #ช่วยด้วย |
|
|
|
|
|
|
|
รบกวนขอโค้ดที่เขียนหน่อยคับ แล้วข้อมูลนี่เก็บในฐานข้อมูลป่าวคับ
|
|
|
|
|
Date :
2015-08-23 17:24:11 |
By :
Attapornn |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Code (PHP)
<?php do { ?>
<tr>
<td height="53" align="center"><?php echo $row_order['order_id']; ?></td>
<td><?php echo $row_order['order_date']; ?></td>
<td><?php echo $row_order['order_name']; ?></td>
<td align="center"><?php echo $row_order['order_sum'];?></td>
<td align="center"><a href="order_detail.php?order_id=<?php echo $row_order['order_id']; ?>"><img src="../imanges/File-Search-icon.png" width="24" height="24" /></a></td>
<td align="center"><form id="form2" name="form2" method="POST" action="<?php echo $editFormAction; ?>">
<select name="status" id="status" class="select-status">
<?php
do {
?>
<option value="<?php echo $row_status['status_id']?>"<?php if (!(strcmp($row_status['status_id'], $row_order['status_id']))) {echo "selected=\"selected\"";} ?>><?php echo $row_status['status_name']?></option>
<?php
} while ($row_status = mysql_fetch_assoc($status));
$rows = mysql_num_rows($status);
if($rows > 0) {
mysql_data_seek($status, 0);
$row_status = mysql_fetch_assoc($status);
}
?>
</select>
<input name="hiddenField2" type="hidden" id="hiddenField2" value="<?php echo $row_order['order_id']; ?>" />
<input type="image" name="button2" id="button2" value="Submit" src="../imanges/Save-icon.png" width="24" height="24" />
<input type="hidden" name="MM_update" value="form2" />
</form></td>
<td align="right" valign="middle"><form id="form1" name="form1" method="POST" action="<?php echo $editFormAction; ?>">
<input name="hiddenField" type="hidden" id="hiddenField" value="<?php echo $row_order['order_id']; ?>" />
<input type="text" class=" texems"name="ems" id="ems" value="<?php echo $row_order['order_ems']; ?>" />
<input type="image" name="button2" id="button2" value="Submit" src="../imanges/Save-icon.png" width="24" height="24" />
<input type="hidden" name="MM_update" value="form1" />
</form></td>
<td align="center"><a href="del_order.php?order_id=<?php echo $row_order['order_id']; ?>" class="ask-custom"><img src="../imanges/delete-icon.png" border="0" align="absbottom" /> </a>
<script type="text/javascript">
$(document).ready(function() {
$('.ask-plain').click(function(e) {
e.preventDefault();
thisHref = $(this).attr('href');
if(confirm('Are you sure')) {
window.location = thisHref;
}
});
$('.ask-custom').jConfirmAction({question : "ลบใบสั่งซื้อสินค้า?", yesAnswer : "Yes", cancelAnswer : "Cancel"});
$('.ask').jConfirmAction();
});
</script></td>
</tr>
<tr>
<td colspan="8"><img src="../imanges/line.png" width="100%" height="1" /></td>
</tr>
<?php } while ($row_order = mysql_fetch_assoc($order)); ?>
</table></td>
</tr>
<tr>
<td height="24"> </td>
</tr>
</table></td>
</tr>
</table>
**** จัดเก็บในฐานข้อมูลค่ะ รบกวนด้วยนคะ
|
|
|
|
|
Date :
2015-08-23 19:31:33 |
By :
simple |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<select name="status" id="status" class="select-status" <?php if($row_order['status_id']==xxx) echo 'readonly';?> >
xxx คือค่าของ "จัดส่งข้อมูลเรียบร้อย"
|
|
|
|
|
Date :
2015-08-24 06:05:39 |
By :
NewbiePHP |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ขอบคุณ คุณ NewbiePHP ค่ะ
จากโค๊ดที่ให้
<select name="status" id="status" class="select-status" <?php if($row_order['status_id']==xxx) echo 'readonly';?> >
เปลี่ยนจาก readonly เป็น disabled ทำการปิด listmenu ได้แล้วค่ะ
ขอบคุณมาก มาก นะคะ ^__^
|
|
|
|
|
Date :
2015-08-24 11:37:03 |
By :
simple |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 01
|