X7ROOT File Manager
Current Path:
/home/hamdjcne/app.hamdalillahitravel.com/app/Views/wallets
home
/
hamdjcne
/
app.hamdalillahitravel.com
/
app
/
Views
/
wallets
/
ðŸ“
..
📄
fuel_price.php
(11.91 KB)
📄
fuel_price_form.php
(2.21 KB)
📄
list.php
(20.64 KB)
📄
list_form.php
(15.54 KB)
📄
price_structure.php
(10.88 KB)
📄
price_structure_form.php
(21.21 KB)
📄
trade.php
(10.9 KB)
📄
trade_form.php
(11.38 KB)
📄
transaction.php
(13.8 KB)
📄
transaction_form.php
(3.36 KB)
Editing: fuel_price_form.php
<?php use App\Models\Crud; $this->Crud = new Crud(); ?> <?php echo form_open_multipart($form_link, array('id'=>'bb_ajax_form', 'class'=>'')); ?> <!-- delete view --> <?php if($param2 == 'delete') { ?> <div class="row"> <div class="col-sm-12"><div id="bb_ajax_msg"></div></div> </div> <div class="row"> <div class="col-sm-12 text-center"> <h3><b>Are you sure?</b></h3> <input type="hidden" name="d_branch_id" value="<?php if(!empty($d_id)){echo $d_id;} ?>" /> </div> <div class="col-sm-12 text-center"> <button class="btn btn-danger text-uppercase" type="submit"> <i class="ri-delete-bin-4-line"></i> Yes - Delete </button> </div> </div> <?php } ?> <!-- insert/edit view --> <?php if($param2 == 'edit' || $param2 == '') { ?> <div class="row"> <div class="col-sm-12"><div id="bb_ajax_msg"></div></div> </div> <div class="row"> <input type="hidden" name="price_id" value="<?php if(!empty($e_id)){echo $e_id;} ?>" /> <div class="col-sm-12 mb-5"> <div class="form-group"> <label for="activate" class="mb-3" >Price</label> <input type="text" class="form-control" pattern="^\d+(\.\d{1,2})?$" name="price" id="price" required value="<?php if(!empty($e_name)){echo $e_name;} ?>"> </div> </div> <div class="col-sm-12 my-5 text-center"> <button class="btn btn-primary bb_fo_btn" type="submit"> <i class="ri-save-line"></i> Update Price </button> </div> </div> <?php } ?> <?php echo form_close(); ?> <script> $('.js-select2').select2(); $('#price').on('input', function () { var value = $(this).val(); // Regex to allow numbers with optional decimal up to two places if (!/^\d*\.?\d{0,2}$/.test(value)) { $(this).val(value.slice(0, -1)); // Remove invalid characters } }); </script> <script src="<?php echo site_url(); ?>assets/js/jsform.js"></script>
Upload File
Create Folder