コード例 #1
0
//}
?>
         </select></td>
        </tr>
        <?php 
//	}
?>
    -->
<tr><th style="width:200px;">Item Category</th><th>Item Inspection</th><th style="width:200px;">Item Discription</th><th>Consignee</th><th>Quantity</th><th>Unit</th><th style="width:80px">Rate</th><th style="width:80px">Tax Type</th><th style="width:80px">Including All</th><th style="width:100px">Total Value</th><th style="width:180px;">Payment</th><th style="width:100px;">Paying Autority</th><th style="width:100px;">Inspection Place</th><th style="width:80px;">Delivery Date</th><th style="width:80px;">Quantity</th><!--<th>Edit</th>--><th>Delete</th>
</tr>
<?php 
foreach ($result as $v) {
    $my_unit = $obj->unit($v['unit']);
    $my_inspection = $obj->inspection($v['inspection']);
    $my_tax_type = $obj->taxType($v['taxtype']);
    $my_payment = $obj->paymentInPoOpt($v['taxtype']);
    if ($v['id'] == $_GET['tb_row']) {
        ?>
<tr>
<td><input type="text" name="category_update_X[]" style="width:200px; background:#FFF;" class="kareena" value="<?php 
        echo $v['item_name'] . ":-" . $v['item_discription'] . ':(' . $v['item_id'] . ')';
        ?>
" id="category_update_0_X" />
    </td>
    <td>
    <?php 
        $ins_opt = '_' . $v['inspection'];
        ${$ins_opt} = "selected='selected'";
        ?>
    
    <select id="inspection_update_0_X" name="inspection_update_X[]" class="selectD" >
コード例 #2
0
 </table>
 
 <?php 
if ($result_product[0] != '') {
    ?>
     <table style="width:100%;margin-left:0px; table-layout:fixed; position:absolute; left:0px;">
     <tr>
 <th style="width:200px; border:1px solid #333;">Item Category</th> 
 <th style="width:90px; border:1px solid #333;">Item Inspection</th><th style="width:100px; border:1px solid #333;">Item Discription</th><th style="width:100px; border:1px solid #333;">Consignee</th><th style="width:70px; border:1px solid #333;">Quantity</th> <th style="width:70px; border:1px solid #333;">Unit</th><th style="width:70px; border:1px solid #333;">Rate</th><th style="width:90px; border:1px solid #333;">Tax Type</th><th style="width:100px; border:1px solid #333;">Including All</th><th style="width:80px; border:1px solid #333;">Total Value</th><th style="width:80px; border:1px solid #333;">Payment</th><th style="width:80px; border:1px solid #333;">Paying Autority</th> <th style="width:80px; border:1px solid #333;">Inspection Place</th><th style="width:80px; border:1px solid #333;">Delivery Date</th><th style="width:70px; border:1px solid #333;">Quantity</th>
</tr>
<?php 
    foreach ($result_product as $mj) {
        $my_unit = $obj->unit($mj['unit']);
        $my_taxtype = $obj->taxType($mj['taxtype']);
        $my_inspection = $obj->inspection($mj['inspection']);
        $my_payment = $obj->paymentInPoOpt($mj['payment']);
        ?>
    	<tr id="update_row<?php 
        echo $mj['id'];
        ?>
">
      <td style="border:1px solid #333;"><?php 
        echo $mj['item_name'] . ":-" . $mj['item_discription'];
        ?>
</td>
    <td style="border:1px solid #333;"><?php 
        echo $my_inspection;
        ?>
</td>
    <td style="border:1px solid #333;"><?php 
        echo $mj['discription'];