whoami7 - Manager
:
/
home
/
kckglobal
/
cloud.kckglobal.net
/
cleaner
/
modules
/
warehouse
/
views
/
includes
/
Upload File:
files >> /home/kckglobal/cloud.kckglobal.net/cleaner/modules/warehouse/views/includes/model.php
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?> <div> <div class="_buttons"> <?php if (has_permission('warehouse', '', 'create') || is_admin()) { ?> <a href="#" onclick="new_model(); return false;" class="btn btn-info pull-left display-block"> <?php echo _l('add_model'); ?> </a> <?php } ?> </div> <div class="clearfix"></div> <hr class="hr-panel-heading" /> <div class="clearfix"></div> <table class="table dt-table border table-striped"> <thead> <th><?php echo _l('_order'); ?></th> <th><?php echo _l('model_name'); ?></th> <th><?php echo _l('brand_name'); ?></th> <th><?php echo _l('options'); ?></th> </thead> <tbody> <?php foreach($models as $model){ ?> <tr> <td><?php echo html_entity_decode($model['id']); ?></td> <td><?php echo html_entity_decode($model['name']); ?></td> <?php $brand_name=''; if($model['brand_id'] != 0 && $model['brand_id'] != ''){ $brand_value = get_brand_name($model['brand_id']); if($brand_value){ $brand_name .= $brand_value->name; } } ?> <td><?php echo html_entity_decode($brand_name); ?></td> <td> <?php if (has_permission('warehouse', '', 'edit') || is_admin()) { ?> <a href="#" onclick="edit_model(this,<?php echo html_entity_decode($model['id']); ?>); return false;" data-name="<?php echo html_entity_decode($model['name']); ?>" data-brand_id="<?php echo html_entity_decode($model['brand_id']); ?>" class="btn btn-default btn-icon"><i class="fa fa-pencil-square-o"></i> </a> <?php } ?> <?php if (has_permission('warehouse', '', 'delete') || is_admin()) { ?> <a href="<?php echo admin_url('warehouse/delete_model/'.$model['id']); ?>" class="btn btn-danger btn-icon _delete"><i class="fa fa-remove"></i></a> <?php } ?> </td> </tr> <?php } ?> </tbody> </table> <div class="modal1 fade" id="model" tabindex="-1" role="dialog"> <div class="modal-dialog w-25"> <?php echo form_open_multipart(admin_url('warehouse/models_setting'), array('id'=>'models_setting')); ?> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button> <h4 class="modal-title"> <span class="add-title"><?php echo _l('add_model'); ?></span> <span class="edit-title"><?php echo _l('edit_model'); ?></span> </h4> </div> <div class="modal-body"> <div class="row"> <div class="col-md-12"> <div id="model_id_t"></div> <div class="form"> <div class="col-md-12"> <?php echo render_input('name', 'model_name'); ?> </div> <div class="col-md-12" > <div class="form-group"> <label for="brand_id"><?php echo _l('brand_name'); ?></label> <select name="brand_id" id="brand_id" class="selectpicker" data-live-search="true" data-width="100%" data-none-selected-text="<?php echo _l('ticket_settings_none_assigned'); ?>"> <option value=""></option> <?php foreach($list_brands as $brand) { ?> <option value="<?php echo html_entity_decode($brand['id']); ?>"><?php echo html_entity_decode($brand['name']); ?></option> <?php } ?> </select> </div> </div> </div> </div> </div> </div> <div class="modal-footer"> <button type="button" class="btn btn-default" data-dismiss="modal"><?php echo _l('close'); ?></button> <button type="submit" class="btn btn-info intext-btn"><?php echo _l('submit'); ?></button> </div> </div> <?php echo form_close(); ?> </div> </div> </div> </body> </html>
Copyright ©2021 || Defacer Indonesia