| Server IP : 162.214.74.102 / Your IP : 216.73.216.139 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/www/lrsys_projetos/sopizzas/application/views/superadmin/ |
Upload File : |
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header content-header1">
<h1><?php echo $this->lang->line('ManageCuisine');?></h1>
<div class="breadcrumb topright">
<button data-toggle="control-sidebar" class="btn btn-outline green btn-sm opo addressEdit opened btn-circle mcfr addcatbtn active pad2_10 view" id="viewForm"><i style="font-size: 16px;" class="fa fa-plus-circle"></i> <?php echo $this->lang->line('AddCuisine');?></button>
</div>
</section>
<!-- Main content -->
<section class="content">
<div class="box-body mctopCC30">
<div class="col-md-12 col-xs-12 col-sm-12">
<div class="col-md-2 custom-padding-0">
<label style="float: left; margin-top: 6px;"><?php echo $this->lang->line('Show');?></label>
<div class="input-group col-md-8" style="padding-left: 6px;">
<select id="per_page" onchange="getData('0',$('#mySearchBy1').val(),this.value)" class="fs_input select2 FindSearchBy">
<option value="5" <?=ROW_PER_PAGE==5?'selected':''?> >5</option><option value="10" <?=ROW_PER_PAGE==10?'selected':''?> >10</option><option value="15" <?=ROW_PER_PAGE==15?'selected':''?> >15</option><option value="20" <?=ROW_PER_PAGE==20?'selected':''?> >20</option>
</select>
<span class="input-group-addon" style="padding: 6px 4px;"><?php echo $this->lang->line('Page');?></span>
</div>
</div>
<div class="col-md-5">
<div class="form-group">
<select id="mySearchBy1" onchange="getData('0',this.value,$('#per_page').val())" class="fs_input select2 FindSearchBy">
<option value="99"><?php echo $this->lang->line('All');?></option>
<optgroup label="Status">
<option value="1"> <?php echo $this->lang->line('Active');?></option>
<option value="0"> <?php echo $this->lang->line('Inactive');?></option>
</optgroup>
<optgroup label="Others">
<option value="19"> <?php echo $this->lang->line('CuisineAsc');?></option>
<option value="91"> <?php echo $this->lang->line('CuisineDesc');?></option>
</optgroup>
</select>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="col-md-12 col-sm-12 col-xs-12 margintop10">
<?php if($this->session->flashdata('success_msg')) { ?>
<div class="alert alert-info text-center">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong><?php echo $this->session->flashdata('success_msg'); ?></strong>
</div>
<?php } ?>
<?php if($this->session->flashdata('error_msg')) { ?>
<div class="alert alert-info text-center">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong><?php echo $this->session->flashdata('error_msg'); ?></strong>
</div>
<?php } ?>
<?php if(validation_errors() != FALSE) { ?>
<div class="alert alert-danger text-center">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong><?php echo validation_errors(); ?></strong>
</div>
<?php } ?>
<div class="table-responsive" id="postList">
<?php $this->load->view('superadmin/cuisine-list-ajax'); ?>
</div>
</div>
</div>
</section>
<!-- /.content -->
<div class="clearfix"></div>
</div>
<!-- <popup> -->
<div id="testPopupBottom" class="testPopupBottom">
<?php $validator = array('role' => 'form', 'data-toggle' => 'validator'); echo form_open_multipart('superadmin/cuisine', $validator); ?>
<input type="hidden" name="EditId" id="CuisineEditId" value="<?=isset($EditId)?$EditId:''?>">
<div class="content-wrapper leftNone">
<div class="mctopright pull-right">
<button class="btn btn-outline green btn-sm opo addressEdit active newsolidbtn1 opened mcfr" style="" type="submit"><?php echo $this->lang->line('Save');?></button>
<button data-toggle="control-sidebar" id="addclose" class="btn btn-outline red btn-sm opo active newsolidbtn1 mcfr hideMe" style=""><?php echo $this->lang->line('Cancel');?></button>
</div>
<!-- Main content -->
<section class="content-header content-header1">
<h1 class="pull-left"><?php echo $this->lang->line('AddNewCuisine');?></h1>
</section>
<section class="content mctop26">
<div class="box-body">
<div class="col-md-12 col-sm-12 col-xs-12 margintop10 custom-padding-0">
<?php if(validation_errors() != false) { ?>
<div class="alert alert-danger">
<?php echo validation_errors(); ?>
</div>
<?php } ?>
<div class="col-md-6 col-sm-6 col-xs-12 margintop10">
<div class="form-group float-label-control">
<input type="text" placeholder="<?php echo $this->lang->line('CuisineName');?>" class="fs_input custom-full" id="cuisine_name" name="cuisine_name" value="<?=set_value('cuisine_name');?>" data-error="<?php echo $this->lang->line('CuisineNameError');?>" required> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="<?php echo $this->lang->line('CuisineNametool');?>"></i> <span class="text-red">*</span>
<div class="help-block with-errors"></div>
</div>
</div>
<div class="col-md-12 col-sm-12 col-xs-12 margintop10">
<div class="col-md-4 col-sm-12 col-xs-12 no-padding">
<p><?php echo $this->lang->line('CuisineImage');?> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="Upload cuisine photo"></i></p>
<div class="btn btn-success btn-file bakfile">
<i class="fa fa-paperclip"></i> <?php echo $this->lang->line('ChooseFile');?>
<input type="file" name="cuisine_photo" onchange="upload_logo(this);">
</div>
<div style="clear: both;"></div>
<div id="CuisineLogoError" class="alert alert-danger" style="display:none;">
<p><?php echo $this->lang->line('invalidfileformat');?></p>
</div>
<div style="clear: both;"></div>
<div class="photoContainer" id="uploaded_img_wrap" style="display: none;">
<img id="uploaded_img" src="" alt="Cuisine Image">
</div>
</div>
<div class="col-md-4 col-sm-12 col-xs-12">
</div>
<div class="clearfix"> </div>
</div>
<div class="clearfix"> </div>
<div class="col-md-6 col-sm-12 col-xs-12 margintop10" style="margin-top: 10px;">
<p><?php echo $this->lang->line('CuisineDescription');?> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="right" title="Add some description about this cuisine"></i> <span class="text-red">*</span></p>
<div class="table-responsive form-group">
<textarea required id="cuisine_description" name="cuisine_description" rows="10" cols="80"><?=set_value('cuisine_description');?></textarea>
<div class="help-block with-errors"></div>
</div>
</div>
</div>
</div>
</section>
</div>
</form>
</div>
<!-- </popup> -->
<script type="text/javascript">
function upload_logo(input) {
if (input.files && input.files[0]) {
var reader = new FileReader();
if(input.files[0].type.indexOf("image") == -1)
{
$('#CuisineLogoError').show();
return false;
}else{
reader.onload = function (e) {
$('#CuisineLogoError').hide();
$('#uploaded_img').attr('src', e.target.result).height(95);
$('#uploaded_img_wrap').fadeIn('slow');
}
}
reader.readAsDataURL(input.files[0]);
}
}
</script>