AnonSec Shell
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/public_html/lrsys_projetos/sopizzas/application/views/superadmin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/public_html/lrsys_projetos/sopizzas/application/views/superadmin/restaurant_list.php
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
	<!-- Content Header (Page header) -->
	<section class="content-header">
		<h1><?php echo $this->lang->line('ManageRestaurant');?></h1>
		<div class="breadcrumb topright">
			<button data-toggle="control-sidebar" class="btn btn-outline green btn-sm opo addressEdit opened btn-circle mcfr active pad2_10 view" onclick="window.location.href='<?=base_url();?>superadmin/addnewrestaurant'"><i style="font-size: 16px;" class="fa fa-plus-circle"></i> <?php echo $this->lang->line('AddNewRestaurant');?></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-home" aria-hidden="true"></i></span>
					<div class="info-box-content">
						<div class="info-box-text pietext"><?php echo $this->lang->line('Total_Restaurants');?></div>
						<div id="TotalRestaurant" class="info-box-text pietext1 colortext1 counter"><?php echo $TotalRestaurant; ?></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-up" aria-hidden="true"></i></span>
					<div class="info-box-content">
						<div class="info-box-text pietext"><?php echo $this->lang->line('Active_Restaurants');?></div>
						<div id="ActiveRestaurant" class="info-box-text pietext1 colortext2 counter"><?php echo $ActiveRestaurant; ?></div>
					</div>
				</div>
			</div>
			<!-- fix for small devices only -->
			<div class="clearfix visible-sm-block"></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-down" aria-hidden="true"></i></span>
					<div class="info-box-content">
						<div  class="info-box-text pietext"><?php echo $this->lang->line('Inactive_Restaurants');?></div>
						<div id="InactiveRestaurant" class="info-box-text pietext1 colortext3 counter"><?php echo $InactiveRestaurant; ?></div>
					</div>
				</div>
			</div>
		</div>
		<!-- Info boxes -->
		<div class="box-body" id="customers">
			<div class="col-md-12 col-xs-12 col-sm-12 custom-padding-0">
				<div class="col-md-6 form-group">
					<div class="form-group float-label-control">
						<!-- <input placeholder="Search by Restaurant ID" type='text' class="form-control" /> -->
					</div>
				</div>
				<div class="col-md-3 form-group">
					<!-- <button class="btn btn-sm btn-success filter-submit"><i class="fa fa-search"></i> Search</button>
					<button type="button" class="btn btn-sm btn-default filter-cancel off-box"><i class="fa fa-times"></i> Clear</button> -->
				</div>
				<div class="col-md-3 col-sm-3 col-xs-12 text-right" style="margin-bottom:10px;">
					<button onclick="do_export();" class="btn btn-sm btn-success filter-submit"><i class="fa fa-file-pdf-o"></i> <?php echo $this->lang->line('Export_CSV');?></button>
				</div>
			</div>
			<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',$('#myFilter2').val(),this.value,$('#myFilter1').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="myFilter1" onchange="getData('0',$('#myFilter2').val(),$('#per_page').val(),this.value)" class="fs_input select2">
							<option value="">Select Restaurant Name</option>
							<option value="0" value="">All</option>
							<?php
							foreach($RestaurantList as $row) { ?>
							<option value="<?php echo $row->restaurant_id; ?>" ><?php echo $row->restaurant_name ?></option>';
							<?php } ?>
						</select>
					</div> -->
					<div class="form-group">
						<input placeholder="<?php echo $this->lang->line('SearchRestaurant');?>" type="text" class="fs_input" id="searchRestaurant" style="background: transparent; height: 33px; padding: 6px;" onkeyup="searchRestaurant(this.value)">
						<div id="auto_sug" style="display:none"></div>
					</div>
					<input type="hidden" name="myFilter1" id="myFilter1" value="">
				</div>
				<div class="col-md-5">
					<div class="form-group">
						<select id="myFilter2" onchange="getData('0',this.value,$('#per_page').val(),$('#myFilter1').val())" class="fs_input select2" style="width: 100%;">
							<option value="1"><?php echo $this->lang->line('Active');?></option>
							<option value="0"><?php echo $this->lang->line('Inactive');?></option>
							<option value="99" selected><?php echo $this->lang->line('Sort_By');?></option>
							<option value="2"><?php echo $this->lang->line('RestaurantAsc');?></option>
							<option value="3"><?php echo $this->lang->line('RestaurantDesc');?></option>
						</select>
					</div>
					<!-- /.form-group -->
				</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/restaurant_list_ajax'); ?>
					
				</div>
				
			</div>
		</div>
		<div class="clearfix"></div>
	</section>
	<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<div class="clearfix"></div>
<script>
function do_export(){
	var action = $('#myFilter2').val();
	var action2 = $('#myFilter1').val();
	if (action2 == '') {
		action2 = 0;
	}
window.location='<?php echo base_url(); ?>dashboard/restaurant_export/'+action+'/'+action2;
}
function previewAgreement(restaurant_id) {
window.open('<?php echo base_url(); ?>superadmin/previewAgreement/'+restaurant_id);
}
function searchRestaurant(strnm){
  base_url='<?php echo base_url(); ?>';
  url= base_url+'superadmin/searchRestaurant';
  $.ajax({
    type: "POST",
    url: url,
    data: {userSearchKey: strnm, csrf_token_apm: myCsrfHash},
    success: function(data) {
     if (data!="") {
      document.getElementById("auto_sug").style.display="block";
      document.getElementById("auto_sug").innerHTML=data;
     }
     else {
      document.getElementById("auto_sug").innerHTML="";
      document.getElementById("auto_sug").style.display="none";
     }
    }
  });
}
function setRestDetails(restaurant_id, restaurant_name) {
	$('#myFilter1').val(restaurant_id);
	$('#searchRestaurant').val(restaurant_name);
	$('#auto_sug').fadeOut();
	getData('0',$('#myFilter2').val(),$('#per_page').val(),restaurant_id);
}
</script>

Anon7 - 2022
AnonSec Team