| 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('RestaurantOffer');?></h1>
<?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(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="breadcrumb topright">
<button id="addcbutton" class="btn btn-outline green btn-sm opo addressEdit opened btn-circle mcfr active pad2_10"><i style="font-size: 16px;" class="fa fa-plus-circle"></i> <?php echo $this->lang->line('AddCoupon');?></button>
<button onclick="window.location.href=window.location.href" class="btn btn-outline green btn-sm opo btn-circle mcfr active pad2_10"><i style="font-size: 16px;" class="fa fa-refresh"></i> <?php echo $this->lang->line('Refresh');?></button>
</div>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-aqua"><i class="fa fa-tags"></i></span>
<div class="info-box-content">
<div class="info-box-text pietext"><?php echo $this->lang->line('Total');?></div>
<div class="info-box-text pietext1 colortext1 counter"><?php echo $OfferTotal; ?></div>
</div>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-green"><i class="fa fa-thumbs-up" aria-hidden="true"></i></span>
<div class="info-box-content">
<div class="info-box-text pietext"><?php echo $this->lang->line('Active');?></div>
<div class="info-box-text pietext1 colortext2 counter"><?php echo $OfferActive; ?></div>
</div>
</div>
</div>
<div class="col-md-4 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-red"><i class="fa fa-thumbs-down" aria-hidden="true"></i></span>
<div class="info-box-content">
<div class="info-box-text pietext"><?php echo $this->lang->line('Inactive');?></div>
<div class="info-box-text pietext1 colortext3 counter"><?php echo $OfferInactive; ?></div>
</div>
</div>
</div>
</div>
<!-- Info boxes -->
<div class="col-md-12 col-sm-12 col-xs-12 custom-padding-0" id="addCopen" style="margin-bottom: 12px;<?php if(validation_errors() != FALSE) { ?> display: block; <?php } else { ?> display: none; <?php } ?>">
<div class="box-body">
<?php $validator = array('role' => 'form', 'data-toggle' => 'validator'); echo form_open('superadmin/restaurantoffer', $validator); ?>
<input type="hidden" name="AddEdit" value="AddEdit">
<input type="hidden" name="EditId" value="" id="OfferEditId">
<div class="col-md-12 col-sm-12 col-xs-12 col-lg-12 custom-padding-0">
<div class="col-md-6 col-lg-3 col-sm-6 col-xs-12">
<!--<p>Select Restaurant Name</p>-->
<div class="form-group float-label-control">
<select class="fs_input custom-6" name="restaurant_id" id="restaurant_id" required data-error="<?php echo $this->lang->line('SelectRestaurant');?>">
<option value=""><?php echo $this->lang->line('SelectRestaurant');?></option>
<option value="0" value=""><?php echo $this->lang->line('All');?></option>
<?php
foreach($RestaurantList as $row) {
?>
<option value="<?php echo $row->restaurant_id; ?>" <?=set_select('restaurant_id', $row->restaurant_id)?>><?php echo $row->restaurant_name ?></option>';
<?php } ?>
</select>
<i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="<?php echo $this->lang->line('SelectRestaurant');?>"></i> <span class="text-red">*</span>
</div>
</div>
<div class="col-md-6 col-lg-3 col-sm-6 col-xs-12">
<div class="form-group float-label-control">
<p><?php echo $this->lang->line('OfferPriceType');?> <i data-original-title="Choose offer price type" class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title=""></i> <span class="text-red">*</span></p>
<label class="radio-inline" style="padding-left: 0;"><input name="priceType" id="my_offer_per" class="minimal price-type" data-attr="percentage" type="radio" <?=set_value('my_offer_type') == 'per'?'checked':''?> <?=!set_value('my_offer_type')?'checked':''?> > <?php echo $this->lang->line('Percentage');?></label>
<label class="radio-inline" style="padding-left: 0;"><input name="priceType" id="my_offer_fix" class="minimal price-type" data-attr='fixed' type="radio" <?=set_value('my_offer_type') == 'fix'?'checked':''?> > <?php echo $this->lang->line('Fixed');?></label>
<input type="hidden" name="my_offer_type" id="my_offer_type" value="<?=set_value('my_offer_type')?>">
</div>
</div>
<div class="col-md-6 col-lg-3 col-sm-6 col-xs-12 price-percentage bothclear">
<div class="form-group float-label-control">
<input onkeypress="return isDecimal(event);" required data-error="<?php echo $this->lang->line('OfferError');?>" type="text" class="fs_input custom-6" id="my_offer_amount" name="my_offer_amount" value="<?=set_value('my_offer_amount')?>" placeholder="<?php echo $this->lang->line('OfferAmount');?>"> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="<?php echo $this->lang->line('OfferAmount');?>"></i> <span class="text-red">*</span>
</div>
</div>
<div class="col-md-6 col-lg-3 col-sm-6 col-xs-12 price-percentage">
<div class="form-group float-label-control">
<input required data-error="<?php echo $this->lang->line('CouponCodeError');?>" type="text" class="fs_input custom-6" id="coupon_code" name="coupon_code" value="<?=set_value('coupon_code')?>" placeholder="<?php echo $this->lang->line('CouponCode');?>"> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="<?php echo $this->lang->line('CouponCode');?>"></i> <span class="text-red">*</span>
</div>
</div>
<!-- <div class="col-md-4 col-sm-6 col-xs-12 hide price-fixed">
<div class="form-group float-label-control">
<input required type="text" class="fs_input custom-6" id="" value="" placeholder="Offer Price"> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="Enter restaurant offer price"></i> <span class="text-red">*</span>
</div>
</div> -->
<div class="clearfix"></div>
<div class="col-md-6 col-lg-4 col-sm-6 col-xs-12">
<div class="form-group float-label-control custom-9">
<div class="input-group date searchby">
<input required class="fs_input" placeholder="<?php echo $this->lang->line('ValidFrom');?>" type="text" name="offer_valid_from" id="offer_valid_from" value="<?=set_value('offer_valid_from')?>" onkeypress="return false;">
<span class="input-group-addon" id="datepickerFrom">
<span class="glyphicon glyphicon-calendar"></span>
</span> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="<?php echo $this->lang->line('OfferAmountTool');?>"></i> <span class="text-red">*</span>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4 col-sm-6 col-xs-12">
<div class="form-group float-label-control">
<div class="input-group date searchby">
<input required class="fs_input" placeholder="<?php echo $this->lang->line('ValidTo');?>" type="text" name="offer_valid_to" id="offer_valid_to" value="<?=set_value('offer_valid_to')?>" onkeypress="return false;">
<span class="input-group-addon" id="datepickerTo">
<span class="glyphicon glyphicon-calendar"></span>
</span> <i class="fa fa-question-circle" data-toggle="tooltip" data-placement="left" title="<?php echo $this->lang->line('ValidToTool');?>"></i> <span class="text-red">*</span>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4 col-sm-12 col-xs-12 margintop17">
<button type="submit" class="btn btn-outline green btn-sm opo addressEdit active newsolidbtn1 opened mcfr" style=""><?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" style=""><?php echo $this->lang->line('Cancel');?></button>
</div>
</div>
</form>
</div>
</div>
<div class="clearfix"></div>
<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',$('#my_status').val(),this.value,$('#my_restaurant').val())" class="fs_input select2">
<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="my_restaurant" onchange="getData('0',$('#my_status').val(),$('#per_page').val(),this.value)" class="fs_input select2">
<option value=""><?php echo $this->lang->line('SelectRestaurantName');?></option>
<option value="0" value=""><?php echo $this->lang->line('All');?></option>
<?php
foreach($RestaurantList as $row) { ?>
<option value="<?php echo $row->restaurant_id; ?>" ><?php echo $row->restaurant_name ?></option>';
<?php } ?>
</select>
</div>
</div>
<div class="col-md-5">
<div class="form-group">
<select id="my_status" onchange="getData('0',this.value,$('#per_page').val(),$('#my_restaurant').val())" class="fs_input select2">
<option value="99"><?php echo $this->lang->line('Select');?></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="2"> <?php echo $this->lang->line('ResnameASC');?></option>
<option value="3"> <?php echo $this->lang->line('ResnameDESC');?></option>
</optgroup>
</select>
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="col-md-12 col-sm-12 col-xs-12 margintop10">
<div class="table-responsive" id="postList">
<?php $this->load->view('superadmin/restaurantoffer_list_ajax'); ?>
</div>
</div>
</div>
</section><!-- /.content -->
<div class="clearfix"></div>
</div><!-- /.content-wrapper -->
<div class="clearfix"></div>