function print_children($id)
{
    $children = query($id);
    if (!empty($children)) {
        echo '<ul class="list-unstyled">';
        foreach ($children as $child) {
            $ck = check_cat($_GET['id'], $child['id']);
            if ($ck) {
                $ckd = "checked";
            } else {
                $ckd = "";
            }
            echo '<li>
																		<label><input type="checkbox" ' . $ckd . ' name="category[]" value="' . $child['id'] . '">' . $child['name'] . '</label>';
            print_children($child['id']);
            echo '</li>';
        }
        echo '</ul>';
    }
}
Example #2
0
    <div style="alignment-adjust: central"><?php 
message();
//implementing trim for %20
?>
</div>
<?php 
if ($IS_WEIGHT_SET == 2) {
    //$BLOCK_FORM=1;//to block weight form
    ?>
  
   </BR></BR>
    <form action="add_process_stock.php" method="POST">
     <input style="marign: 10px;padding:10px;" type="text" name="weight" value="" placeholder="Weight in [kgs]"/>
     <select name="cat_id" > <?php 
    check_cat($id);
    ?>
</select> </BR>
     <input type="hidden" name="barcode_in" value="<?php 
    echo trim($_GET['barcode']);
    ?>
 " />
     <input type="hidden" name="item_in" value="<?php 
    echo trim($_GET['item']);
    ?>
 " />
     <input type="hidden" name="brand_in" value="<?php 
    echo trim($_GET['brand']);
    ?>
 " />
     <input type="hidden" name="serial_in" value="<?php 
Example #3
0
<form onsubmit="return ini()" action="sell_item_pro_waste.php" method="POST">

<td>
    <input type="text "id="code_read_box" name="barcode" value="<?php 
    echo $BAR_EX;
    ?>
" autofocus="" placeholder="Waste barcode"/><?php 
    if (!empty($bar_ex_id)) {
        echo "*";
    }
    ?>
</td>

<td>
    <select name="item_type" ><?php 
    check_cat($_GET['item_type']);
    ?>
 </select>
</td>


<input type="hidden" name="submitted" value="1" />


<td>

<input type='submit' name='Submit' value='Sell' align='right'></td><td colspan="2"> <input type="checkbox" name="print_out" value="yes" <?php 
    if (isset($_GET['print_out'])) {
        echo 'checked=""';
        $state_ind = 1;
    }