Example #1
0
                     <p>Add multiple Item at once?</p>
                     <p>Choose one of the following file types:</p>
                     <ul>
                         <li><a href="#importmodal" role="button" data-toggle="modal">Import from a CSV file</a></li>
                         <li><a href="#importmodal" role="button" data-toggle="modal">Import from an Excel file</a></li>
                     </ul>
                 </div>
             </div>
         </div>      
 <?php 
     } else {
         if (Input::get('item') && Input::get('tkn') == 'inventory' && Input::get('inv') == md5('1')) {
             if (Input::get('updateinv') == md5('true') && Input::exists() && Input::get('modqty')) {
                 $validation = $validate->check($_POST, array('invqty' => array('name' => 'Quantity', 'required' => true)));
                 if ($validation->passed()) {
                     $valid = $inv->updateqty('tbl_goods_stock', 'tbl_item_update_record', Crytion::decryt64(Crytion::decryt64($user_id)), Crytion::decryt64(Input::get('item')), Input::get('invqty'), Input::get('comment'));
                     if ($valid) {
                         Session::put('form-success', "Updating Success");
                         echo "<script>window.setTimeout(function(){window.location = 'inventory.php?item=" . Input::get('item') . "&tkn=inventory&inv=" . md5('1') . "'},1000);</script>";
                     } else {
                         Session::put('form-error', 'Invalid Format');
                     }
                 } else {
                     Session::put('form-error', "Quantity is Required");
                 }
             }
             ?>
         <div id="pad-wrapper">
             <div class="row-fluid">
                 <div class="span12">
                     <?php