| Server IP : 162.214.74.102 / Your IP : 216.73.216.59 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/frontend/ |
Upload File : |
<?php
$ci = &get_instance();
$ci->load->model('frontend_model');
$ci->load->model('contentmanagement_model');
$website_settings = $ci->frontend_model->get_website_settings();
$popular_locality = $ci->frontend_model->popular_locality();
$aboutus = $ci->contentmanagement_model->show_page_content(1);
//print_r($aboutus);
$ci = &get_instance();
$language_list = $ci->frontend_model->language_list();
if($ci->session->userdata('user_language'))
{
$language = $ci->session->userdata('user_language');
}
else
{
$language = $this->config->item('language');
}
$data['user_language'] = $language;
$this->lang->load('frontpage', $language);
// if (!$this->session->userdata('staging_logged_in')) {
// redirect('staginglogin');
// }
?>
<!-- Your share button code -->
<div class="clearfix"></div>
<footer id="footer">
<div class="footer-bottom">
<div class="container">
<div class="row">
<div class="col-md-7 col-sm-12 col-xs-12 pull-center newsmail hide">
<h2><?php echo $this->lang->line('newsletter');?></h2>
<div class="input-group">
<input type="text" class="form-control" placeholder="<?php echo $this->lang->line('enter_email');?>">
<span class="input-group-btn">
<button class="btn btn-default" type="button" onclick="wip()"><?php echo $this->lang->line('Sign_Up');?></button>
</span>
</div>
<!-- <ul id="footer-links">
<li><a href="<?=base_url();?>restaurant-admin-register">Business Owner</a></li>
<li><a href="<?=base_url();?>about-us">About Us</a></li>
<li><a href="<?=base_url();?>faq">FAQs</a></li>
<li><a href="<?=base_url();?>privacy-policy">Privacy Policy</a></li>
<li><a href="<?=base_url();?>terms">Terms Of Use</a></li>
<li><a href="<?=base_url();?>how-to-order">How to Order</a></li>
<?php
$ses_user=$this->session->userdata('logged_in_customer');
if (empty($ses_user)) {
?>
<li><a href="<?=base_url();?>register">Sign Up</a></li>
<?php
}
?>
<li><a href="<?=base_url();?>contact">Contact Us</a></li>
<li><a href="<?=base_url();?>help">Help</a></li>
</ul> -->
</div>
</div>
</div>
</div>
<div class="footer-top wow fadeInUp" data-wow-duration="500ms" data-wow-delay="300ms">
<div class="container">
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="footerblog">
<h4><?php echo $this->lang->line('aboutus');?></h4>
<p>
<?php echo $this->lang->line('aboutus_description');?>
</p>
</div>
</div>
<!-- <?php
if(is_array($popular_locality) && sizeof($popular_locality)>0){
?>
<div class="col-md-2 col-sm-2 col-xs-12">
<div class="footerblog">
<h4>Popular Cities</h4>
<ul> -->
<!-- <?php
$i = 0;
$seeMoreLocation = false;
foreach ($popular_locality as $key => $value) {
$i++;
if ($i > 8) {
$seeMoreLocation = true;
break;
}
?>
<li><a href="javascript:void(0);" onclick="findrestaurantcity('<?=$value['restaurant_city']?>')"><?=$value['restaurant_city']?></a></li>
<?php
}
?>
<?php
if ($seeMoreLocation) {
?>
<li><a href="javascript:void(0);" onclick="wip()">See more...</a></li>
<?php
}
?> -->
<!-- <li><a href="javascript:void(0);" onclick="findrestaurantcity('Illinois')">Illinois</a></li>
<li><a href="javascript:void(0);" onclick="findrestaurantcity('Virginia')">Virginia</a></li>
<li><a href="javascript:void(0);" onclick="findrestaurantcity('New York')">New York</a></li>
<li><a href="javascript:void(0);" onclick="findrestaurantcity('New Jersey')">New Jersey</a></li>
<li><a href="javascript:void(0);" onclick="findrestaurantcity('Texas')">Texas</a></li>
<li><a href="javascript:void(0);" onclick="findrestaurantcity('Michigan')">Michigan</a></li>
<li><a href="javascript:void(0);" onclick="findrestaurantcity('Florida')">Florida</a></li>
<li><a href="javascript:void(0);" onclick="findrestaurantcity('Delaware')">Delaware</a></li>
<li><a href="javascript:void(0);" onclick="findrestaurantcity('California')">California</a></li>
<li><a href="javascript:void(0);" onclick="findrestaurantcity('Pennsylvania')">Pennsylvania</a></li>
</ul>
</div>
</div>
<?php
}
?> -->
<div class="col-md-2 col-sm-3 col-xs-12">
<div class="footerblog">
<h4><?php echo $this->lang->line('menu');?></h4>
<ul>
<li><a href="javascript:void(0);"><?php echo $this->lang->line('home');?> </a></li>
<li><a href="<?=base_url();?>contact"><?php echo $this->lang->line('contact');?> </a></li>
<li><a href="<?=base_url();?>faq"><?php echo $this->lang->line('faq');?></a></li>
</ul>
</div>
</div>
<div class="col-md-4 col-sm-3 col-xs-12">
<div class="footerblog">
<h4><?php echo $this->lang->line('connect');?></h4>
<p><span class="footericon"><i class="fa fa-phone" aria-hidden="true"></i></span><?=SITE_PHONE_NO?></p>
<p><span class="footericon"><i class="fa fa-envelope" aria-hidden="true"></i></span><?=SITE_FEEDBACK_EMAIL?></p>
</div>
<div class="social-icons">
<ul class="pager-footer">
<?php if(isset($website_settings['twitter_url']) && $website_settings['twitter_url'] != ""){?>
<li><a class="twitter" target="blank" href="<?php echo isset($website_settings['twitter_url']) ? $website_settings['twitter_url'] : '' ?>"><i title="Twitter" class="fa fa-twitter"></i></a></li>
<?php }
if(isset($website_settings['facebook_url']) && $website_settings['facebook_url'] != ""){
?>
<li><a class="facebook" target="blank" href="<?php echo isset($website_settings['facebook_url']) ? $website_settings['facebook_url'] : '' ?>"><i title="Facebook" class="fa fa-facebook"></i></a></li>
<?php }
if(isset($website_settings['google_plus_url']) && $website_settings['google_plus_url'] != ""){
?>
<li><a class="youtube" target="blank" href="<?php echo isset($website_settings['google_plus_url']) ? $website_settings['google_plus_url'] : '' ?>"><i title="YouTube" class="fa fa-youtube"></i></a></li>
<?php }
if(isset($website_settings['linkedin_url']) && $website_settings['linkedin_url'] != ""){
?>
<li><a class="instagram" target="blank" href="<?php echo isset($website_settings['linkedin_url']) ? $website_settings['linkedin_url'] : '' ?>"><i title="Instagram" class="fa fa-instagram"></i></a></li>
<?php }
?>
</ul>
</div>
</div>
<div class="clearfix"></div>
<div class="col-md-12 text-center copyright">
<p>© <?=SITENAME?>. <?php echo $this->lang->line('all_rights_reserved');?>. Desenvolvido por LR SYS - Sistemas Inteligentes</p>
</div>
</div>
<!-- <div class="col-md-6 col-xs-7 col-sm-6 paddingleft0 padd10">
<div class="social-icons">
<ul class="pager-footer">
<li><a class="twitter" target="blank" href="<?php echo isset($website_settings['twitter_url']) ? $website_settings['twitter_url'] : '' ?>"><i title="Twitter" class="fa fa-twitter"></i></a></li>
<li><a class="facebook" target="blank" href="<?php echo isset($website_settings['facebook_url']) ? $website_settings['facebook_url'] : '' ?>"><i title="Facebook" class="fa fa-facebook"></i></a></li>
<li><a class="linkedin" target="blank" href="<?php echo isset($website_settings['google_plus_url']) ? $website_settings['google_plus_url'] : '' ?>"><i title="Google Plus" class="fa fa-instagram"></i></a></li>
<li><a class="linkedin" target="blank" href="<?php echo isset($website_settings['google_plus_url']) ? $website_settings['google_plus_url'] : '' ?>"><i title="Google Plus" class="fa fa-google-plus"></i></a></li>
</ul>
</div>
</div>
<div class="col-md-6 col-xs-5 col-sm-6 paddingright0 padd20">
<div class="footer-copyright">© <?=date('Y')?> <?=SITENAME?></div>
</div> -->
</div>
</div>
</footer>
<!-- Track Order Modal -->
<style type="text/css">
#trackOrder .form-control{
height:40px;
}
.commonAlert {
display: none;
}
</style>
<div id="myLoader" class="myLoader"></div>
<div id="trackOrder" class="modal fade" role="dialog">
<div class="modal-dialog md-con modal-sm">
<!-- Modal content-->
<div class="modal-content ">
<div class="modal-header cos-mh">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title text-center"><?php echo $this->lang->line('track_order');?></h4>
</div>
<div class="modal-body md-none">
<div class="col-md-12 col-sm-12 col-xs-12">
<?php $validator = array('role' => 'form', 'id' => 'trackOrderForm'); echo form_open('', $validator); ?>
<div class="alert alert-info commonAlert" id="infoAlert">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<span class="commonMsg"></span>
</div>
<div class="alert alert-success commonAlert" id="successAlert">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<span class="commonMsg"></span>
</div>
<div class="alert alert-warning commonAlert" id="warningAlert">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<span class="commonMsg"></span>
</div>
<div class="alert alert-danger commonAlert" id="dangerAlert">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
<span class="commonMsg"></span>
</div>
<div class="form-group">
<label class="sand" for="forgot_password"><?php echo $this->lang->line('starting_code');?> 'ORD'</label>
<input type="text" class="form-control bod-div" name="track_order" id="track_order" required="" data-error="<?php echo $this->lang->line('enter_order_id');?>">
<div class="help-block with-errors"></div>
</div>
<div class="col-md-12 custom-padding-0 text-center">
<input type="hidden" name="form_name" id="form_name" value="forgot_password">
<button type="submit" class="btn btn-info btn-sm"><?php echo $this->lang->line('check');?></button>
</div>
</form>
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<!-- Modal -->
<div id="selectlocation" class="modal fade" role="dialog" style="margin-top: 150px;">
<div class="modal-dialog modal-sm">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header btn-warning">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title"><?php echo $this->lang->line('locations');?></h4>
</div>
<div class="modal-body">
<!-- <?php
if(is_array($popular_locality) && sizeof($popular_locality)>0){
foreach ($popular_locality as $key => $value) {
?>
<div class="col-sm-6 paddleft">
<p><a href="javascript:void(0);" onclick="findrestaurantcity('<?=$value['restaurant_city']?>')"><?=$value['restaurant_city']?> <span style="color: #EB6825;">(<?=$value['restaurant_count']?>)</span></a></p>
</div>
<?php
}
}
?> -->
<div class="col-sm-6 paddleft">
<p><a href="javascript:void(0);" onclick="findrestaurantcity('Illinois')"> Illinois </a></p>
</div>
<div class="col-sm-6 paddleft">
<p><a href="javascript:void(0);" onclick="findrestaurantcity('Virginia')"> Virginia </a></p>
</div>
<div class="col-sm-6 paddleft">
<p><a href="javascript:void(0);" onclick="findrestaurantcity('New York')"> New York </a></p>
</div>
<div class="col-sm-6 paddleft">
<p><a href="javascript:void(0);" onclick="findrestaurantcity('New Jersey')"> New Jersey </a></p>
</div>
<div class="col-sm-6 paddleft">
<p><a href="javascript:void(0);" onclick="findrestaurantcity('Texas')"> Texas </a></p>
</div>
<div class="col-sm-6 paddleft">
<p><a href="javascript:void(0);" onclick="findrestaurantcity('Michigan')"> Michigan </a></p>
</div>
<div class="col-sm-6 paddleft">
<p><a href="javascript:void(0);" onclick="findrestaurantcity('Florida')"> Florida </a></p>
</div>
<div class="col-sm-6 paddleft">
<p><a href="javascript:void(0);" onclick="findrestaurantcity('Delaware')"> Delaware </a></p>
</div>
<div class="col-sm-6 paddleft">
<p><a href="javascript:void(0);" onclick="findrestaurantcity('California')"> California </a></p>
</div>
<div class="col-sm-6 paddleft">
<p><a href="javascript:void(0);" onclick="findrestaurantcity('Pennsylvania')"> Pennsylvania </a></p>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
<!-- ......login & registration form by bootstrap modal...... -->
<div class="modal fade" id="loginformModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<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>
</div>
<div class="modal-body">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<?php
if (!$this->session->userdata('logged_in_customer')) {
?>
<li role="presentation" class="commonTabClassLogin" id="customerloginTab" class="active"><a href="#customerlogin" aria-controls="uploadTab" role="tab" data-toggle="tab">Customer</a>
</li>
<?php
}
?>
<?php
if (!$this->session->userdata('logged_in_restaurant')) {
?>
<li role="presentation" class="commonTabClassLogin" id="restologinTab"><a style="margin-right: 0px;" href="#restologin" aria-controls="browseTab" role="tab" data-toggle="tab">Business</a>
</li>
<?php
}
?>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane commonTabClassLogin active" id="customerlogin">
<?php $validator = array('role' => 'form', 'data-toggle' => 'validator', 'class' => 'cd-form'); echo form_open('verifylogin_customer', $validator); ?>
<h3>Customer Login</h3>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-user" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" name="username" id="username" type="email" value="<?php echo set_value('username', $username); ?>" required placeholder="Email">
</div>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-lock" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" name="password" required id="password" type="password" value="<?php echo $password; ?>" placeholder="Password">
</div>
<p class="cd-form-bottom-message"><a href="javascript:void(0)" onclick="openCustomerForgotPass()">Forgot your password?</a></p>
<p class="fieldset">
<input class="full-width" type="submit" value="Login">
</p>
<p class="cd-form-signup">New Here? <a href="javascript:void(0)" onclick="openCustomerRegistration()">Signup</a></p>
<h4 class="background"><span>Login With</span></h4>
<ul class="popup-social-icons">
<li><a href="javascript:void:(0);" class="facebook facebookLoginButton"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<!-- <li><a href="javascript:void:(0);" class="twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<li><a href="javascript:void:(0);" class="google-plus"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li> -->
</ul>
</form>
</div>
<div role="tabpanel" class="tab-pane commonTabClassLogin" id="restologin">
<?php $validator = array('role' => 'form', 'data-toggle' => 'validator', 'class' => 'cd-form'); echo form_open('verifylogin_restadmin', $validator); ?>
<h3>Business Login</h3>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-user" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" name="username" value="<?php echo set_value('username', $username); ?>" type="email" placeholder="Business Email" required>
</div>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-lock" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" value="<?php echo $password; ?>" name="password" type="password" placeholder="Password" required>
</div>
<p class="cd-form-bottom-message"><a href="javascript:void(0)" onclick="openRestaurantForgotPass()">Forgot your password?</a></p>
<p class="fieldset">
<input class="full-width" type="submit" value="Login">
</p>
<p class="cd-form-signup">New Here? <a href="javascript:void(0)" onclick="openRestaurantRegistration()">Signup</a></p>
</ul>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal fade" id="registerformModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<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>
</div>
<div class="modal-body">
<div role="tabpanel">
<!-- Nav tabs -->
<ul class="nav nav-tabs" role="tablist">
<?php
if (!$this->session->userdata('logged_in_customer')) {
?>
<li role="presentation" id="customersignupTab" class="commonTabClassRegister active"><a href="#customersignup" aria-controls="uploadTab" role="tab" data-toggle="tab">Customer</a>
</li>
<?php
}
?>
<?php
if (!$this->session->userdata('logged_in_restaurant')) {
?>
<li role="presentation" id="restosignupTab" class="commonTabClassRegister"><a style="margin-right: 0px;" href="#restosignup" aria-controls="browseTab" role="tab" data-toggle="tab">Business</a>
</li>
<?php
}
?>
</ul>
<!-- Tab panes -->
<div class="tab-content">
<div role="tabpanel" class="tab-pane commonTabClassRegister active" id="customersignup">
<?php $validator = array('role' => 'form', 'data-toggle' => 'validator' , 'class' => 'cd-form'); echo form_open('frontend/addcustomer',$validator); ?>
<h3>Customer Signup</h3>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-user" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" value="<?php echo set_value('customer_name', isset($data['customer_name']) ? $data['customer_name'] : ''); ?>" required name="customer_name" id="customer_name" type="text" placeholder="First Name">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-user" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" value="<?php echo set_value('customer_lastname', isset($data['customer_lastname']) ? $data['customer_lastname'] : ''); ?>" required name="customer_lastname" id="customer_lastname" type="text" placeholder="Last Name">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-phone" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" value="<?php echo set_value('customer_phone', isset($data['customer_phone']) ? $data['customer_phone'] : ''); ?>" name="customer_phone" id="customer_phone" required type="text" pattern="(?:[+][0-9]{1,3}[\s]?)?(?:(?:[(][0-9]{2}[)][\s]?)|(?:[0-9]{2}[\s]?))?(?:(?:[0-9]{1}[0-9.-]{6,8}[0-9]{1})|(?:[0-9]{1}[\s]?[0-9\.-]{6,8}[0-9]{1})){1}" data-pattern-error="Please enter a valid mobile number" placeholder="Your Contact Number" maxlength="16">
<div class="help-block with-errors"></div>
</div>
<p>Your Home Address</p>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-map-marker" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" value="<?php echo set_value('customer_street', isset($data['customer_street']) ? $data['customer_street'] : ''); ?>" name="customer_street" id="customer_street" required type="text" placeholder="Address" data-error="Please enter address.">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-location-arrow" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" onkeyup="findAddressByZip(this.value)" pattern="^([0-9]){5}([-])([0-9]){3}$" value="<?php echo set_value('customer_zip', isset($data['customer_zip']) ? $data['customer_zip'] : ''); ?>" name="customer_zip" id="customer_zip" data-error="Please enter a 5 digit zipcode here." required type="text" placeholder="Zipcode">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<input class="full-width has-padding has-border form-control generatedCity" value="<?php echo set_value('customer_city', isset($data['customer_city']) ? $data['customer_city'] : ''); ?>" name="customer_city" id="customer_city" required type="text" placeholder="City (Fill out Zipcode first)" data-error="Please enter City." readonly style="padding-left: 12px;">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<input class="full-width has-padding has-border form-control generatedState" value="<?php echo set_value('customer_state', isset($data['customer_state']) ? $data['customer_state'] : ''); ?>" name="customer_state" id="customer_state" required type="text" placeholder="State (Fill out Zipcode first)" data-error="Please enter State." readonly style="padding-left: 12px;">
<div class="help-block with-errors"></div>
</div>
<p>Login Info</p>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-envelope" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" value="<?php echo set_value('customer_email', isset($data['customer_email']) ? $data['customer_email'] : ''); ?>" name="customer_email" id="customer_email" required type="email" placeholder="Email" pattern="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$" data-pattern-error="Please enter valid email.">
<div class="help-block with-errors"></div>
</div>
<p class="instP">We will send you the order confirmation email to this email address.</p>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-lock" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" value="<?php echo set_value('customer_password', isset($data['customer_password']) ? $data['customer_password'] : ''); ?>" name="customer_password" id="customer_password" required type="password" placeholder="Password" data-minlength="6" data-error="Please enter a minimum 6 digit password here.">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-lock" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" data-match="#customer_password" data-match-error="Password do not match" name="customer_repassword" id="customer_repassword" type="password" placeholder="Confirm Password">
<div class="help-block with-errors"></div>
</div>
<p class="fieldset">
<input class="full-width has-padding" type="submit" value="Create account">
</p>
<p class="cd-form-signup">Already have an account? <a href="javascript:void(0)" onclick="openCustomerLogin()">Login here</a></p>
<h4 class="background"><span>Login With</span></h4>
<ul class="popup-social-icons">
<li><a href="javascript:void:(0);" class="facebook facebookLoginButton"><i class="fa fa-facebook" aria-hidden="true"></i></a></li>
<!-- <li><a href="javascript:void:(0);" class="twitter"><i class="fa fa-twitter" aria-hidden="true"></i></a></li>
<li><a href="javascript:void:(0);" class="google-plus"><i class="fa fa-google-plus" aria-hidden="true"></i></a></li> -->
</ul>
</form>
</div>
<div role="tabpanel" class="tab-pane commonTabClassRegister" id="restosignup">
<?php $validator = array('role' => 'form', 'data-toggle' => 'validator', 'class' => 'cd-form'); echo form_open('restaurantadmin', $validator); ?>
<h3>Business Signup</h3>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-user" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" type="text" id="restaurant_name" name="restaurant_name" required="" data-error="Please fill up this field" value="<?=set_value('restaurant_name')?>" placeholder="Business or Business Name">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-user" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" type="text" id="restaurant_contact_name" name="restaurant_contact_name" required="" data-error="Please enter contact name" value="<?=set_value('restaurant_contact_name')?>" placeholder="Contact Name">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-phone" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" type="text" id="restaurant_phone" name="restaurant_phone" required="" data-error="Please enter phone number" pattern="(?:[+][0-9]{1,3}[\s]?)?(?:(?:[(][0-9]{2}[)][\s]?)|(?:[0-9]{2}[\s]?))?(?:(?:[0-9]{1}[0-9.-]{6,8}[0-9]{1})|(?:[0-9]{1}[\s]?[0-9\.-]{6,8}[0-9]{1})){1}" data-pattern-error="Please enter a valid mobile number" value="<?=set_value('restaurant_phone')?>" maxlength="16" placeholder="Business Phone Number">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-phone" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" type="text" id="restaurant_fax" name="restaurant_fax" pattern="(?:[+][0-9]{1,3}[\s]?)?(?:(?:[(][0-9]{2}[)][\s]?)|(?:[0-9]{2}[\s]?))?(?:(?:[0-9]{1}[0-9.-]{6,8}[0-9]{1})|(?:[0-9]{1}[\s]?[0-9\.-]{6,8}[0-9]{1})){1}" data-pattern-error="Please enter a valid fax number" value="<?=set_value('restaurant_fax')?>" maxlength="16" placeholder="Business Fax Number">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-user" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" type="text" id="restaurant_website" name="restaurant_website" data-error="Please enter restaurant website" pattern="(http(s)?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$" data-pattern-error="Please enter a valid website" value="<?=set_value('restaurant_website')?>" placeholder="Business Website">
<div class="help-block with-errors"></div>
</div>
<p>Business Address</p>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-map-marker" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" type="text" id="restaurant_streetaddress" name="restaurant_streetaddress" required="" data-error="Please enter restaurant address" value="<?=set_value('restaurant_streetaddress')?>" placeholder="Business Street Address">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-location-arrow" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" type="text" onkeyup="findAddressByZip(this.value)" pattern="^([0-9]){5}([-])([0-9]){3}$" id="restaurant_zip" name="restaurant_zip" required="" data-error="Please enter zipcode" pattern="^[-+]?\d*\.?\d*$" data-pattern-error="Please enter a valid zipcode" value="<?=set_value('restaurant_zip')?>" placeholder="Postcode">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<input class="full-width has-padding has-border form-control generatedCity" type="text" value="<?php echo set_value('restaurant_city'); ?>" name="restaurant_city" id="restaurant_city" required placeholder="City(Fill out Zipcode first)" data-error="Please enter City." readonly style="padding-left: 12px;">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<input class="full-width has-padding has-border form-control generatedState" type="text" value="<?php echo set_value('restaurant_state'); ?>" name="restaurant_state" id="restaurant_state" required placeholder="State(Fill out Zipcode first)" data-error="Please enter State." readonly style="padding-left: 12px;">
<div class="help-block with-errors"></div>
</div>
<p>Business Login Info</p>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-envelope" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" type="text" id="restaurant_contact_email" name="restaurant_contact_email" required="" data-error="Please enter email address" value="<?=set_value('restaurant_contact_email')?>" pattern="^([0-9a-zA-Z]([-.\w]*[0-9a-zA-Z])*@([0-9a-zA-Z][-\w]*[0-9a-zA-Z]\.)+[a-zA-Z]{2,9})$" data-pattern-error="Please enter valid email." placeholder="Business Email Address">
<div class="help-block with-errors"></div>
</div>
<div class="fieldset form-group">
<span class="btn-icon-addon"><i class="fa fa-lock" aria-hidden="true"></i></span>
<input class="full-width has-padding has-border form-control" type="password" id="restaurant_password" name="restaurant_password" required="" data-error="Please enter password" value="<?=set_value('restaurant_password')?>" placeholder="Business Password">
<div class="help-block with-errors"></div>
</div>
<div class="clearfix"></div>
<div class="col-md-12">
<label for="usr" style="font-size: 14px;font-weight: 400;">How would you like to receive orders?</label>
<div class="clearfix"></div>
<label class="checkbox-inline" style="font-size: 14px;font-weight: 400;"><input type="checkbox" value="email" name="order_receive_type[]" <?=set_checkbox('order_receive_type', 'email');?> style="margin-top: 3px; height: 15px;">Email</label>
<label class="checkbox-inline hide" style="font-size: 14px;font-weight: 400;"><input type="checkbox" value="gprs" name="order_receive_type[]" <?=set_checkbox('order_receive_type', 'gprs');?> style="margin-top: 3px; height: 15px;">GPRS Printer</label>
<label class="checkbox-inline hide" style="font-size: 14px;font-weight: 400;"><input type="checkbox" value="fax" name="order_receive_type[]" <?=set_checkbox('order_receive_type', 'fax');?> style="margin-top: 3px; height: 15px;">Fax</label>
<div class="help-block with-errors"></div>
</div>
<div class="clearfix"></div>
<div class="col-md-12">
<label for="usr">What is your business type?</label>
<div class="clearfix"></div>
<label class="checkbox-inline" style="font-size: 14px;font-weight: 400; padding-left: 0px;"><input style="margin-top: 3px; height: 15px; margin-right: 8px;" type="radio" value="0" name="business_type">Restaurant</label>
<label class="checkbox-inline" style="font-size: 14px;font-weight: 400; padding-left: 0px;"><input style="margin-top: 3px; height: 15px; margin-right: 8px;" type="radio" value="1" name="business_type">Caterer</label>
</div>
<div class="clearfix"></div>
<p class="fieldset">
<input type="hidden" name="form_name" id="form_name" value="restaurant_owner_register">
<input class="full-width has-padding" type="submit" value="Create account">
</p>
<p class="cd-form-signup">Already have an account? <a href="<?=base_url();?>restaurant-admin-register">Login here</a></p>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- ......login & registration form by bootstrap modal...... -->
<!-- Forgot Password Modal -->
<div id="customerForgotPassModal" class="modal fade" role="dialog" style="margin-top: 108px;">
<div class="modal-dialog md-con" style="width: 420px;">
<!-- Modal content-->
<div class="modal-content ">
<div class="modal-header cos-mh">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title text-center">Forgot Password</h4>
</div>
<div class="modal-body md-none">
<div class="col-md-12 col-sm-12 col-xs-12">
<?php $validator = array('role' => 'form', 'data-toggle' => 'validator'); echo form_open('frontend/sendForgotPasswordMail', $validator); ?>
<div class="form-group">
<label class="sand" for="forgot_password">Enter Your Email Address</label>
<input type="email" class="form-control bod-div" name="forgot_password" id="forgot_password" required="" data-error="Please enter an registered email address" data-remote="<?=base_url()?>frontend/forgot_password">
<div class="help-block with-errors"></div>
</div>
<div class="col-md-12 custom-padding-0 text-center">
<input type="hidden" name="form_name" id="form_name" value="forgot_password">
<button type="submit" class="btn cos-mh-btn nxt-btn">Submit</button>
</div>
</form>
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<!-- Business Forgot Password Modal -->
<div id="restaurantForgotPassModal" class="modal fade" role="dialog" style="margin-top: 108px;">
<div class="modal-dialog md-con" style="width: 420px;">
<!-- Modal content-->
<div class="modal-content ">
<div class="modal-header cos-mh">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title text-center">Forgot Password</h4>
</div>
<div class="modal-body md-none">
<div class="col-md-12 col-sm-12 col-xs-12">
<?php $validator = array('role' => 'form', 'data-toggle' => 'validator'); echo form_open('restaurantadmin', $validator); ?>
<div class="form-group">
<label class="sand" for="forgot_password">Enter Your Email Address</label>
<input type="email" class="form-control bod-div" name="forgot_password" id="forgot_password" required="" data-error="Please enter an registered email address" data-remote="<?=base_url()?>restaurantadmin/forgot_password">
<div class="help-block with-errors"></div>
</div>
<div class="col-md-12 custom-padding-0 text-center">
<input type="hidden" name="form_name" id="form_name" value="forgot_password">
<button type="submit" class="btn btn-warning nxt-btn">Submit</button>
</div>
</form>
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<!-- Javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="<?php echo base_url(); ?>assets/js/jquery-1.11.3.js"></script>
<script src="<?php echo base_url(); ?>assets/js/validator.js"></script>
<script src="<?php echo base_url(); ?>assets/js/wow.min.js"></script>
<script src="<?php echo base_url(); ?>assets/js/bootstrap.min.js"></script>
<script src="<?php echo base_url(); ?>assets/js/front-end/main.js"></script>
<!-- <script src="<?php echo base_url(); ?>assets/js/front-end/index.js"></script> -->
<script src="<?php echo base_url(); ?>assets/js/jquery.datetimepicker.full.js"></script>
<script src="<?php echo base_url(); ?>assets/js/fosci.js"></script>
<?php if(strpos($_SERVER["REQUEST_URI"], "bookorder") !== FALSE || strpos($_SERVER["REQUEST_URI"], "restaurantviewpage") !== FALSE){?>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
<?php }?>
<script type="text/javascript">
var page = '<?php echo $page;?>';
<?php if(strpos($_SERVER["REQUEST_URI"], "bookorder") !== FALSE || strpos($_SERVER["REQUEST_URI"], "restaurantviewpage") !== FALSE){?>
$.datetimepicker.setDateFormatter({
parseDate: function (date, format) {
var d = moment(date, format);
return d.isValid() ? d.toDate() : false;
},
formatDate: function (date, format) {
return moment(date).format(format);
}
});
<?php }?>
function findrestaurantcity(address)
{
webroot = '<?php echo base_url(); ?>';
url=webroot+'frontend/updateAddress/';
$('#myLoader').show();
$.ajax({
type: "post",
url: url,
cache: false,
data:{ address: address, csrf_token_apm: myCsrfHash },
success: function(data){
window.location = webroot+"restaurantslisting/";
}
});
}
$(document).ready(function(){
$('[data-toggle="tooltip"]').tooltip();
});
var page ='<?=$page?>';
if (page == 'index') {
//window.onload = $('#welcomeModal').modal('show');
}
$(document).ready(function() {
//trackorder start
$('#trackOrderForm').validator();
$('#trackOrderForm').validator().on('submit', function (e) {
if (e.isDefaultPrevented()) {
// handle the invalid form...
} else {
$('.commonAlert').hide();
$('.commonMsg').html('');
var orderid = $('#track_order').val();
if (orderid != '') {
$('#myLoader').show();
var base_url='<?php echo base_url(); ?>';
url = base_url+'frontend/trackOrder'
$.ajax({
url: url,
type: 'POST',
data: {orderid: orderid, csrf_token_apm: myCsrfHash},
success: function(data) {
obj = JSON.parse(data);
var msg = obj['msg'];
var type = obj['type'];
$('.commonMsg').html(msg);
$('#'+type+'Alert').show();
$('#myLoader').hide();
},
error: function(data) {
$('#myLoader').hide();
console.log(data);
}
})
}
return false;
}
})
//trackorder end
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
yyyy = yyyy - 18;
if(dd<10){
dd='0'+dd
}
if(mm<10){
mm='0'+mm
}
var today = dd+'/'+mm+'/'+yyyy;
var todayMDY = mm+'/'+dd+'/'+yyyy;
//document.getElementById("DATE").value = today;
setTimeout(function() {
$('header .intro-text').fadeIn(500);
},500);
$('#back-top').click(function () {
$('body,html').animate({
scrollTop: 0
}, 800);
return false;
});
var lang_static = $('#india').html();
$('#language').html(lang_static);
$('#driver_license_dob').val(todayMDY);
$('#driver_license_dob').datetimepicker({
timepicker:false,
format: 'd-m-Y',
formatDate:'d-m-Y',
//defaultDate:today,
onShow:function( ct ){
this.setOptions({
maxDate: today
})
}
});
// $('#driver_license_expire_dob').val(todayMDY);
$('#driver_license_expire_dob').datetimepicker({
timepicker:false,
format: 'd-m-Y',
minDate: 0,
});
if (page == 'bookorder') {
$('#booking_start_time').datetimepicker({
datepicker:false,
formatTime:'h:mm A',
format : 'h:mm A',
step:15,
onSelectTime:function( ct, $i ) {
validateBookTime('booking_start_time', 'booking_end_time', 'booking_start_time');
}
});
$('#booking_end_time').datetimepicker({
datepicker:false,
formatTime:'h:mm A',
format : 'h:mm A',
step:15,
onSelectTime:function( ct, $i ) {
validateBookTime('booking_start_time', 'booking_end_time', 'booking_end_time');
}
});
$('#booking_required_delivery_time').datetimepicker({
datepicker:false,
formatTime:'h:mm A',
format : 'h:mm A',
step:15
});
$('#booking_required_pick_up_chosen').datetimepicker({
datepicker:false,
formatTime:'h:mm A',
format : 'h:mm A',
step:15
});
$('#booking_best_time').datetimepicker({
datepicker:false,
formatTime:'h:mm A',
format : 'h:mm A',
step:15
});
$('#booking_best_time_to_reach').datetimepicker({
datepicker:false,
formatTime:'h:mm A',
format : 'h:mm A',
step:15
});
$('#booking_date').datetimepicker({
timepicker:false,
format: 'd-m-Y',
formatDate:'d-m-Y',
minDate: 0
});
}else if (page == 'restaurantview') {
$('#booking_date').datetimepicker({
timepicker:false,
format: 'MM-DD-YYYY',
formatDate:'MM-DD-YYYY',
minDate: 0
});
$('#booking_best_time').datetimepicker({
datepicker:false,
formatTime:'h:mm A',
format : 'h:mm A',
step:15
});
}
})
function language(lang){
('#language').html(lang);
}
</script>
<?php
if (set_value('restaurant_contact_email') == '' && set_value('restaurant_password') == '' && $page = 'restaurantadmin_register') {
?>
<script type="text/javascript">
$(document).ready(function() {
window.onload = setTimeout(function() {
$('#restaurant_contact_email').val('');
$('#restaurant_password').val('');
}, 500)
})
</script>
<?php
}
?>
<!-- Load Facebook SDK for JavaScript -->
<div id="fb-root"></div>
<!--<script>(function(d, s, id) {-->
<!-- var js, fjs = d.getElementsByTagName(s)[0];-->
<!-- if (d.getElementById(id)) return;-->
<!-- js = d.createElement(s); js.id = id;-->
<!-- js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1";-->
<!-- fjs.parentNode.insertBefore(js, fjs);-->
<!-- }(document, 'script', 'facebook-jssdk'));</script>-->
<script type="text/javascript">
window.fbAsyncInit = function() {
//Initiallize the facebook using the facebook javascript sdk
FB.init({
appId:'<?php echo $this->config->item('appID'); ?>', // App ID
cookie:true, // enable cookies to allow the server to access the session
status:true, // check login status
xfbml:true, // parse XFBML
oauth : true //enable Oauth
});
};
//Read the baseurl from the config.php file
(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script'); js.id = id; js.async = true;
js.src = "//connect.facebook.net/en_US/all.js";
ref.parentNode.insertBefore(js, ref);
}(document));
//Onclick for fb login
$('.facebookLoginButton').click(function(e) {
FB.login(function(response) {
if(response.authResponse) {
parent.location ='<?php echo base_url(); ?>frontend/fblogin'; //redirect uri after closing the facebook popup
}
},{scope: 'email'}); //permissions for facebook
});
function ShareNowFB()
{
FB.ui({
method: 'feed',
link: '<?=base_url();?>restaurantviewpage/jonker-walk-306',
caption: 'An example caption',
}, function(response){});
}
function changeLanguage(lang)
{
webroot = '<?php echo base_url(); ?>';
redirectUrl = '<?php echo current_url()?>';
url=webroot+'frontend/updateLanguage/';
$('#myLoader').show();
$.ajax({
type: "post",
url: url,
cache: false,
data:{ lang: lang, csrf_token_apm: myCsrfHash },
success: function(data){
window.location = redirectUrl;
}
});
}
</script>
</body>
</html>