AnonSec Shell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/lrsys/www/lrsys_projetos/sopizzas/application/views/frontend/index.php
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places&key=<?=MAP_API_KEY?>"> </script>

    
        <div class="row header-info">
            <div class="col-sm-10 col-xs-12 col-sm-offset-1 text-center paddxs">
              <h1 class="wow fadeIn"><?php echo $this->lang->line('orderfrom');?></h1>
              <!-- <h2 class="wow fadeIn h2bar">Now only serving Carmel Valley, Del Mark in San Diego, California.</h2> -->
              <p class="midcusp"><?php echo $this->lang->line('getamazing');?></p>

              <form class="search-form">
                <div class="row">
                  <div class="col-sm-10 col-xs-12 col-sm-offset-1">
                    <div class="row">
                      <div class="col-xs-12 col-md-12 col-sm-12 text-center" data-wow-delay="1.4s">
                        <div class="clearfix"></div>
                        <div class = "form-group">
                         <!--<input id="address"  type = "text" class = "form-control" placeholder="<?php echo $this->lang->line('enteraddress');?>">-->
                         <!-- <span onclick="getLocationUpdate();" class = "input-group-addon"><img src="<?php echo base_url() ?>assets/img/front-end/add-icon.png"></span> -->
                        </div>

                      </div>
                      <div class="col-xs-12 col-md-12 col-sm-12 text-center" data-wow-delay="1.4s">
                        <a href='restaurantviewpage/'><button type="button" class="search-btn col-xs-12">FAÇA SEU PEDIDO</button></a>

                      </div>
                    </div><!--End Button Row-->  
                  </div>
                </div>
              </form>
              
            </div>
        </div>
    </header>

    <div id="fh5co-features" data-section="features">


      <div class="container">
        <div class="row">
          <div class="mostpopular">
            <div class="col-md-12">
              <h2 class="" style="text-align: center;margin-bottom: 25px"><?php echo $this->lang->line('how_it_works');?></h2>
            </div>
            <div class="clearfix"></div>
            <div class="col-md-12">
              <div class="row">
              <div class="col-md-3 col-sm-6 col-xs-12">
                <a href="#" class="fh5co-feature to-animate">
                  <span class="fh5co-feature-icon"><i class="fa fa-search" aria-hidden="true"></i></span>
                  <h3 class="fh5co-feature-lead"><?php echo $this->lang->line('SEARCH');?></h3>
                  <p class="fh5co-feature-text"><?php echo $this->lang->line('Findyourlocalrestaurants');?></p>
                </a>
              </div>
              <div class="col-md-3 col-sm-6 col-xs-12">
                <a href="#" class="fh5co-feature to-animate">
                  <span class="fh5co-feature-icon"><i class="fa fa-home" aria-hidden="true"></i></span>
                  <h3 class="fh5co-feature-lead"><?php echo $this->lang->line('SELECTRESTAURANTS');?></h3>
                  <p class="fh5co-feature-text"><?php echo $this->lang->line('Chooseyourfavouritemenuitems');?></p>
                </a>
              </div>
              <div class="clearfix visible-sm-block"></div>
              <div class="col-md-3 col-sm-6 col-xs-12">
                <a href="#" class="fh5co-feature to-animate">
                  <span class="fh5co-feature-icon"><i class="fa fa-cutlery" aria-hidden="true"></i></span>
                  <h3 class="fh5co-feature-lead"><?php echo $this->lang->line('PLACEORDER');?></h3>
                  <p class="fh5co-feature-text"><?php echo $this->lang->line('PaybyCard');?></p>
                </a>
              </div>
              <div class="col-md-3 col-sm-6 col-xs-12">
                <a href="#" class="fh5co-feature to-animate">
                  <span class="fh5co-feature-icon"><i class="fa fa-car" aria-hidden="true"></i></span>
                  <h3 class="fh5co-feature-lead"><?php echo $this->lang->line('GETDELIVERY');?></h3>
                  <p class="fh5co-feature-text"><?php echo $this->lang->line('Enjoyyourfood');?></p>
                </a>
              </div>
              </div>
            </div>
          </div>
        </div>

        <div class="row" style="display: none">
        <?php if(is_array($populer_cuisine) && sizeof($populer_cuisine)>0){ 
        ?>
          <div class="col-md-12 fh5co-section-heading text-center">
            <h2 class="" id="BrowseByCuisine"><?php echo $this->lang->line('whatMoreCusine');?></h2>
            <p><?php echo $this->lang->line('discoverCusine');?></p>
          </div>
          <div class="col-md-12 col-sm-12 col-xs-12">
            <div class="cuisineList cuisine_new_list">
              <div class="col-md-12 col-sm-12 col-xs-12" style="padding: 0px;">
                <ul>
                <?php
                foreach ($populer_cuisine as $key => $value) {
              ?>
                  <a href="<?php echo base_url().'restaurantslisting/'.$value['cuisine_id']; ?>">
                    <li><button><?=$value['cuisine_name'];?></button></li>
                  </a>
                <?php   } ?>
              </ul>
              </div>
            </div> <!-- cuisine list -->
          </div>
          <?php } ?>
          <div class="clearfix"></div>
        </div>
      </div>
      </div>
    
    <section id="company" class="">
      <div class="container">
        <?php
            //TODO: retirado SÓ PIZZAS
            $top_restaurant = null;
          if(is_array($top_restaurant) && sizeof($top_restaurant)>0) {
        ?>
        <div class="row" id="ChooseFromMostPopular">
          <div class="toprestaurant">
            <div class="col-md-12">
              <h2 class=""><?php echo $this->lang->line('featured_resto');?></h2>
              <p><?php echo $this->lang->line('exploreresto');?></p>
            </div>
            <div class="clearfix"></div>
            <div class="col-md-12" style="margin-bottom: 60px;">
              <?php
                foreach ($top_restaurant as $key => $value) {
                  if(isset($value['restaurant_logo']) && $value['restaurant_logo']!=''){
                  $image_file_path=FCPATH.RESTAURAT_LOGO_PATH_THUMBS.$value['restaurant_logo'];
                    if (file_exists($image_file_path)) {
                      $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.$value['restaurant_logo'];
                    } 
                    else {
                      $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.RESTAURAT_DEFAULT_IMAGE;
                    }
                  }
                  else {
                    $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.RESTAURAT_DEFAULT_IMAGE;
                  }
                ?>
              <div class="restaurant-item">
                <a href="<?php echo base_url().'restaurantviewpage/'.$value['restaurant_seourl']; ?>">
                  <img src="<?=$image_name_with_path;?>" alt="<?=$value['restaurant_name']?>">
                  <p style="color:black;font-weight: 600;margin-bottom: 0px !important;text-align: center;"><?=$value['restaurant_name']?></p>
                  <p style="text-align: center;"><?=$value['restaurant_city']?></p>
                </a>
              </div>
              <?php
                }
              ?>
            </div>
          </div>
        </div>
        <?php
          }
        ?>
        <div class="clearfix"></div>
        <!-- <div class="catering-blog">
          <div class="col-md-12">
            <h2 class="">How we can help at Complete Catering Service</h2>
          </div>
          <div class="clearfix"></div>
          <div class="col-md-12">
            <div class="row">
              <div class="col-md-4 col-sm-4 col-xs-12">
                <a href="<?=base_url()?>bookorder" target="_blank">
                  <div class="catering-imgbox">
                      <img src="assets/img/front-end/cat-img1.jpg">
                      <div class="catring-description">
                        <p>WEDDINGS <span>- View Bulk/Parties Order</span></p>
                      </div>
                  </div>
                </a>
              </div>
              <div class="col-md-4 col-sm-4 col-xs-12">
                <a href="<?=base_url()?>bookorder" target="_blank">
                  <div class="catering-imgbox">
                      <img src="assets/img/front-end/cat-img2.jpg">
                      <div class="catring-description">
                        <p>PRIVATE <span>- View Bulk/Parties Order</span></p>
                      </div>
                  </div>
                </a>
              </div>
              <div class="col-md-4 col-sm-4 col-xs-12">
                <a href="<?=base_url()?>bookorder" target="_blank">
                  <div class="catering-imgbox">
                      <img src="assets/img/front-end/cat-img3.jpg">
                      <div class="catring-description">
                        <p>CORPORATE <span>- View Bulk/Parties Order</span></p>
                      </div>
                  </div>
                </a>
              </div>
            </div>
          </div>
        </div> -->
        <?php
            //TODO: retirado SÓ PIZZAS
            $feature_restaurant = null;
          if(is_array($feature_restaurant) && sizeof($feature_restaurant)>0) {
        ?>
        <div class="row" style="display: none;">
          <div class="mostpopular">
            <div class="col-md-12">
              <h2 class="" style="text-align: left"><?php echo $this->lang->line('choosepopuler');?></h2>
              <p style="text-align: left"><?php echo $this->lang->line('cumdoctus');?></p>
            </div>
            <div class="clearfix"></div>
            <div class="col-md-12">
              <div class="row">
                <?php
                  foreach ($feature_restaurant as $key => $value) {
                    if(isset($value['restaurant_logo']) && $value['restaurant_logo']!=''){
                    $image_file_path=FCPATH.RESTAURAT_LOGO_PATH_THUMBS.$value['restaurant_logo'];
                      if (file_exists($image_file_path)) {
                        $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.$value['restaurant_logo'];
                      } 
                      else {
                        $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.RESTAURAT_DEFAULT_IMAGE;
                      }
                    }
                    else {
                      $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.RESTAURAT_DEFAULT_IMAGE;
                    }
                ?>
                <div class="col-md-3 col-sm-4 col-xs-12">
                  <div class="mostpopular-box">
                    <?php
                      if ($this->session->userdata('logged_in_customer') && isset($value['favourite'])) {
                        if ($value['favourite']) {
                    ?>
                    <p class="fav-heart hide"><i data-status="0" onclick="setFavourite(<?=$value['restaurant_id']?>, this)" class="fa fa-heart" aria-hidden="true"></i></p>
                    <?php
                        }
                        else {
                    ?>
                    <p class="fav-heart hide"><i data-status="1" onclick="setFavourite(<?=$value['restaurant_id']?>, this)" class="fa fa-heart-o" aria-hidden="true"></i></p>
                    <?php
                        }
                      }
                      else {
                    ?>
                    <p class="fav-heart hide"><i onclick="notLoggedInFav()" class="fa fa-heart-o" aria-hidden="true"></i></p>
                    <?php
                      }
                    ?>
                    <a href="<?php echo base_url().'restaurantviewpage/'.$value['restaurant_seourl']; ?>">
                      <div class="col-md-12 col-sm-12 col-xs-12 custom-padding-0">
                        <div class="restoIMG" style="padding: 5px;">
                          <img src="<?=$image_name_with_path;?>" alt="<?=$value['restaurant_name']?>">
                        </div>
                      </div>
                      <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="restoContent">
                          <h4><?=$value['restaurant_name']?></h4>
                          <?php
                            if (isset($value['categories']) && $value['categories'] != '') {
                          ?>
                          <p style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"><span style="display: inline-block;">Type of food:</span> <span><?=$value['categories']?></span></p>
                          <?php
                            }
                          ?>
                          <p><span class="deliverystat hide"><i class="fa fa-motorcycle" aria-hidden="true"></i></span> <?=$value['restaurant_city']?></p>
                        </div>
                      </div>
                    </a>
                  </div>
                </div>
                <?php
                  }
                ?>
              </div>
            </div>
          </div>
        </div>
        <?php
          }
        ?>    
        <hr />
        <?php
            //TODO: retirado SÓ PIZZAS
            $feature_restaurant_fav = null;  
          if(is_array($feature_restaurant_fav) && sizeof($feature_restaurant_fav)>0) {
        ?>
        <div class="row favouriteResto">
          <div class="mostpopular">
            <div class="col-md-12">
              <h2 class="" style="text-align: left"><?php echo $this->lang->line('favouriteResto');?> <i class="fa fa-heart" aria-hidden="true" style="color:red;"></i></h2>
              <p style="text-align: left"><?php echo $this->lang->line('favdoctus');?></p>
            </div>
            <div class="clearfix"></div>
            <div class="col-md-12">
              <div class="row">
                <?php
                  foreach ($feature_restaurant_fav as $key => $value) {
                    if(isset($value['restaurant_logo']) && $value['restaurant_logo']!=''){
                    $image_file_path=FCPATH.RESTAURAT_LOGO_PATH_THUMBS.$value['restaurant_logo'];
                      if (file_exists($image_file_path)) {
                        $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.$value['restaurant_logo'];
                      } 
                      else {
                        $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.RESTAURAT_DEFAULT_IMAGE;
                      }
                    }
                    else {
                      $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.RESTAURAT_DEFAULT_IMAGE;
                    }
                ?>
                <div class="col-md-3 col-sm-4 col-xs-12">
                  <div class="mostpopular-box">
                    <?php
                      if ($this->session->userdata('logged_in_customer') && isset($value['favourite'])) {
                        if ($value['favourite']) {
                    ?>
                    <p class="fav-heart hide"><i data-status="0" onclick="setFavourite(<?=$value['restaurant_id']?>, this)" class="fa fa-heart" aria-hidden="true"></i></p>
                    <?php
                        }
                        else {
                    ?>
                    <p class="fav-heart hide"><i data-status="1" onclick="setFavourite(<?=$value['restaurant_id']?>, this)" class="fa fa-heart-o" aria-hidden="true"></i></p>
                    <?php
                        }
                      }
                      else {
                    ?>
                    <p class="fav-heart hide"><i onclick="notLoggedInFav()" class="fa fa-heart-o" aria-hidden="true"></i></p>
                    <?php
                      }
                    ?>
                      <div class="col-md-12 col-sm-12 col-xs-12 custom-padding-0">
                        <div class="restoIMG">
                          <img src="<?=$image_name_with_path;?>" alt="<?=$value['restaurant_name']?>">
                        </div>
                      </div>
                      <div class="col-md-12 col-sm-12 col-xs-12">
                        <div class="restoContent">
                          <h4><?=$value['restaurant_name']?></h4>
                          <p><span class="deliverystat hide"><i class="fa fa-motorcycle" aria-hidden="true"></i></span> <?=$value['restaurant_city']?></p>
                          <div class="line-draw"></div>
                          <?php
                            if (isset($value['categories']) && $value['categories'] != '') {
                          ?>
                          <p style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap;"><span style="display: inline-block;">Type of food:</span> <span><?=$value['categories']?></span></p>
                          <?php
                            }
                          ?>
                        </div>
                        <div class="col-md-12 col-xs-12 col-sm-12 text-center">
                          <a href="<?php echo base_url().'restaurantviewpage/'.$value['restaurant_seourl']; ?>"><button type="submit" class="search-btn"><?php echo $this->lang->line('Order');?></button></a>
                      </div>
                      </div>
                  </div>
                </div>
                <?php
                  }
                ?>
              </div>
            </div>
          </div>
        </div>
        <?php
          }
        ?>
          <div class="row">
              <?php 
                //TODO: retirado SÓ PIZZAS
                $populer_cuisine = null;  
              if(is_array($populer_cuisine) && sizeof($populer_cuisine)>0){
                  ?>
                  
                  <div class="col-md-12 fh5co-section-heading text-center">
                      <h2 class="" id="BrowseByCuisine"><?php echo $this->lang->line('browsrestro');?></h2>
                      <p><?php echo $this->lang->line('discovermeal');?></p>
                  </div>
                  <div class="col-md-12 col-sm-12 col-xs-12">
                      <div class="cuisineList">
                          <?php
                          foreach ($populer_cuisine as $key => $value) {
                              if(isset($value['cuisine_photo']) && $value['cuisine_photo']!=''){
                                  $image_file_path=FCPATH.CUISINE_IMAGE_PATH_THUMBS.$value['cuisine_photo'];
                                  if (file_exists($image_file_path)) //file_exists of a url returns false.It should be real file path
                                  {
                                      $image_name_with_path=base_url().CUISINE_IMAGE_PATH_THUMBS.$value['cuisine_photo'];
                                  }
                                  else
                                  {
                                      $image_name_with_path=base_url().CUISINE_IMAGE_PATH_THUMBS.CUISINE_DEFAULT_IMAGE;
                                  }
                              }else{
                                  $image_name_with_path=base_url().CUISINE_IMAGE_PATH_THUMBS.CUISINE_DEFAULT_IMAGE;
                              }
                              ?>
                              <div class="col-md-2 col-sm-2 col-xs-12">
                                  <div class="cuisinebox">
                                      <a href="<?php echo base_url().'restaurantslisting/'.$value['cuisine_id']; ?>">
                                          <img src="<?php echo $image_name_with_path; ?>" alt="<?php echo $value['cuisine_name']; ?>">
                                          <p><?=$value['cuisine_name'];?></p>
                                      </a>
                                  </div>
                              </div>
                          <?php   } ?>
                      </div> <!-- cuisine list -->
                  </div>
              <?php } ?>
              <div class="clearfix"></div>
              <!-- <?php
              if(is_array($popular_locality) && sizeof($popular_locality)>0){
              ?> -->
              <!-- <div id="PopularLocality" class="col-md-12 fh5co-section-heading text-center"> -->
              <!-- <h2 class="">Popular Localities In And Around Geelong</h2> -->
              <!-- <h2 class="">Popular Localities</h2>
              <p>Explore restaurants, bars, and cafes by locality</p>
            </div> -->
              <!-- <div class="col-md-12 col-sm-12 col-xs-12"> -->
              <!-- <div class="countryList">
              <?php
              $i = 0;
              $seeMoreLocation = false;
              foreach ($popular_locality as $key => $value) {
                  $i++;
                  if ($i > 12) {
                      $seeMoreLocation = true;
                      break;
                  }
                  ?>
              <div class="col-md-3 col-sm-3 col-xs-12">
                <div class="countrybox">
                  <p onclick="findrestaurantcity('<?=$value['restaurant_city']?>')"><?=$value['restaurant_city']?> <span style="color: #EB6825;">(<?=$value['restaurant_count']?>)</span></p>
                </div>
              </div>
              <?php
              }
              ?>
              <div class="clearfix"></div>
              <?php
              if ($seeMoreLocation) {
                  ?>
              <div class="col-md-12 text-center">
                <button type="button" class="location-btn" onclick="wip()">SEE MORE LOCATIONS</button>
              </div>
              <?php
              }
              ?>
            </div> -->
              <!-- <div class="countryList">
                <div class="col-md-3 col-sm-3 col-xs-12">
                  <div class="countrybox">
                    <p onclick="findrestaurantcity('Illinois')"> Illinois </p>
                  </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12">
                  <div class="countrybox">
                    <p onclick="findrestaurantcity('Virginia')"> Virginia </p>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12">
                  <div class="countrybox">
                    <p onclick="findrestaurantcity('New York')"> New York </p>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12">
                  <div class="countrybox">
                    <p onclick="findrestaurantcity('New Jersey')"> New Jersey </p>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12">
                  <div class="countrybox">
                    <p onclick="findrestaurantcity('Texas')"> Texas </p>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12">
                  <div class="countrybox">
                    <p onclick="findrestaurantcity('Michigan')"> Michigan </p>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12">
                  <div class="countrybox">
                    <p onclick="findrestaurantcity('Florida')"> Florida </p>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12">
                  <div class="countrybox">
                    <p onclick="findrestaurantcity('Delaware')"> Delaware </p>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12">
                  <div class="countrybox">
                    <p onclick="findrestaurantcity('California')"> California </p>
                    </div>
                </div>
                <div class="col-md-3 col-sm-3 col-xs-12">
                  <div class="countrybox">
                    <p onclick="findrestaurantcity('Pennsylvania')"> Pennsylvania </p>
                    </div>
                </div>
                <div class="clearfix"></div>
              </div> -->
              <!-- </div> -->
              <!-- <?php
              }
              ?> -->
          </div>
      </div>
    </section>
    <div class="clearfix"></div>
  <!-- <section id="business">
    <div class="container">
      <div class="row">
        <div class="col-md-12">
          <div class="popularcomment">
            <h3>Comments from our satisfied customers</h3>
            <div class="clearfix"></div>
            <div class="col-md-3 col-sm-6 col-xs-12 paddright">
              <div class="commentbox">
                <div class="col-md-3 col-sm-3 col-xs-3">
                  <div class="commentator">
                    <img src="assets/img/front-end/profile.png">
                  </div>
                </div>
                <div class="col-md-9 col-sm-9 col-xs-9">
                  <div class="comment">
                    <p>
                      HalalCatering love you, HalalCatering ust ordered me some grub, and I tell you, you folks make that part of my life easy.<br>Thanks!
                    </p>
                    <label>@marry</label>
                  </div>
                </div>
              </div>
            </div>
            <div class="col-md-3 col-sm-6 col-xs-12 paddright">
              <div class="commentbox">
                <div class="col-md-3 col-sm-3 col-xs-3">
                  <div class="commentator">
                    <img src="assets/img/front-end/profile1.png">
                  </div>
                </div>
                <div class="col-md-9 col-sm-9 col-xs-9">
                  <div class="comment">
                    <p>
                      Made my first HalalCatering order today. So great to be able to order food and not have to talk to anyone.
                    </p>
                    <label>@ronny</label>
                  </div>
                </div>
              </div>
            </div>
            <div class="col-md-3 col-sm-6 col-xs-12 paddright">
              <div class="commentbox">
                <div class="col-md-3 col-sm-3 col-xs-3">
                  <div class="commentator">
                    <img src="assets/img/front-end/profile2.png">
                  </div>
                </div>
                <div class="col-md-9 col-sm-9 col-xs-9">
                  <div class="comment">
                    <p>
                      Shout out to HalalCatering making my life so so easy!
                    </p>
                    <label>@kristin</label>
                  </div>
                </div>
              </div>
            </div>
            <div class="col-md-3 col-sm-6 col-xs-12 paddright">
              <div class="commentbox">
                <div class="col-md-3 col-sm-3 col-xs-3">
                  <div class="commentator">
                    <img src="assets/img/front-end/profile3.png">
                  </div>
                </div>
                <div class="col-md-9 col-sm-9 col-xs-9">
                  <div class="comment">
                    <p>
                      Seriously, @HalalCatering makes it easy for my coworkers and I to order food and get it to our office in a jiffy. FOOD!
                    </p>
                    <label>@kendall</label>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div> -->
      <!-- <div class="row">
        <div class="col-md-12 deliver mcbot20">
          <div class="col-md-8">
            <h2><?=SITENAME?> FOR RESTAURANTS</h2>
            <p>Expand your customer base without having to expand the size of your dining room. Let us handle the complexity so you don't have to.</p><br>
            <p>Get in touch with us now by <a href="<?php echo base_url(); ?>restaurantadmin/register" style="color: #F5861F">completing this form</a></p>
          </div>
          <div class="col-md-4">
            <img src="assets/img/front-end/Restaurants.jpg" class="xsauto1">
          </div>
        </div>
        <div class="col-md-12 deliver">
          <div class="col-md-4">
            <img src="assets/img/front-end/<?=SITENAME?>.png" class="xsauto">
          </div>
          <div class="col-md-8">
            <h2><?=SITENAME?> FOR DRIVERS</h2>
            <p><?=SITENAME?> is looking for drivers! Get great pay, flexible shifts and become part of a growing community of drivers.</p><br>
            <p><a href="<?php echo base_url(); ?>apply-driver-online" style="color: #F5861F">Apply online now!</a></p>
          </div>
        </div>
      </div> -->
    <!-- </div>
  </section> -->
<!--  <sction class="call-to-action">
      <div class="mostpopular">
        <div class="col-md-12 add_business_div col-sm-12 col-xs-12">
            <h1><?php echo $this->lang->line('RESTAURANTORSHOPOWNER');?></h1>
            <p style="color: white;font-size: 20px;"><?php echo $this->lang->line('Beourpartner');?></p>
            <a href="<?=base_url();?>restaurant-admin-register"><button type="submit" class="search-btn"><?php echo $this->lang->line('ADDBUSINESS');?></button></a>
        </div>
      </div>
  </sction>-->
  
<!--  <section id="about">
    <div class="container">
      <div class="row">
        <div class="col-md-6 col-sm-6 col-xs-12 text-center marginTop60">
          <div class="heading wow fadeInUp" data-wow-duration="1000ms" data-wow-delay="300ms">
            <h3><?=SITENAME?> <?php echo $this->lang->line('inworldmobile');?></h3>
            <p><?php echo $this->lang->line('getapp');?></p>
          </div>
            <a href="<?=ANDROID_CUSTOMER_APP?>"><img src="assets/img/front-end/google play.png"></a>
            <a href="<?=IOS_CUSTOMER_APP?>"><img src="assets/img/front-end/ios.png"></a>
            <div class="clearfix"></div>
            <div class="col-md-8 col-sm-12 col-xs-12 paddleft paddright">
              <div class="input-group aboutmail hide">
                <input type="text" class="form-control" placeholder="<?php echo $this->lang->line('your_email');?>">
                <span class="input-group-btn">
                  <button class="btn btn-default" type="button" onclick="wip()"><?php echo $this->lang->line('sendlink');?></button>
                </span>
              </div>
            </div>
        </div>
        <div class="col-md-6 col-sm-6 col-xs-12">
          <div class="mobitem">
            <img src="assets/img/front-end/halaldiv.png">
          </div>
        </div>
      </div>       
    </div>
  </section>-->
<!--  <section class="hide">
    <div class="mostpopular">
      <div class="col-md-12 deliver">
        <div class="col-md-8">
          <h2 style="text-align: right"><?=SITENAME?>  For Drivers</h2>
          <p style="text-align: right"><span style="float: right;width: 50%"><?=SITENAME?> is looking for drivers! Get great pay, flexible shifts and become part of a growing community of drivers.</span></p>
          <p class="text-right" style="text-align: right !important;float: right;margin-top: 33px;"><a href="<?=ANDROID_CUSTOMER_APP?>"><img src="assets/img/front-end/google play.png"></a>
            <a href="<?=IOS_CUSTOMER_APP?>"><img src="assets/img/front-end/ios.png"></a>
          </p>
          <p style="text-align: right;margin-top: 15px;"><a href="<?php echo base_url(); ?>apply-driver-online" style="color: #EA1A42"><button type="submit" class="search-btn">Apply online now!</button></a></p>
        </div>
        <div class="col-md-4 text-left">
          <img src="<?php echo base_url()?>assets/img/front-end/eatplatform_driver.png" class="xsauto">
        </div>
      </div>
    </div>
  </section>-->
  <?php
    if (is_array($random_restaurant) && sizeof($random_restaurant) > 0) {
  ?>
  <div class="companylogos hide">
    <div class="container">
      <div class="row">
        <div class="col-md-12">
            <?php
              $i = 0;
              foreach ($random_restaurant as $key => $value) {
                $i++;
                if ($i > 8) {
                  break;
                }
                if(isset($value['restaurant_logo']) && $value['restaurant_logo']!=''){
                  $image_file_path=FCPATH.RESTAURAT_LOGO_PATH_THUMBS.$value['restaurant_logo'];
                  if (file_exists($image_file_path)) {
                    $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.$value['restaurant_logo'];
                  } 
                  else {
                    $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.RESTAURAT_DEFAULT_IMAGE;
                    continue;
                  }
                }
                else {
                  $image_name_with_path=base_url().RESTAURAT_LOGO_PATH_THUMBS.RESTAURAT_DEFAULT_IMAGE;
                  continue;
                }
            ?>
            <div class="company-item">
              <a href="<?php echo base_url().'restaurantviewpage/'.$value['restaurant_seourl']; ?>">
                <img src="<?=$image_name_with_path?>" alt="<?=$value['restaurant_name']?>">
              </a>
            </div>
            <?php
              }
            ?>
          </div>
      </div>
    </div>
  </div>
  <?php
    }
  ?>
  <!-- Modal -->
  <div id="welcomeModal" class="modal fade" role="dialog">
    <div class="modal-dialog">
      <!-- Modal content-->
      <div class="modal-content">
        <div style="clear: both;"></div>
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">&times;</button>
          <h4 class="modal-title text-center"><?php echo $this->lang->line('wlcmto');?> <?=SITENAME?>!</h4>
        </div>
        <div style="clear: both;"></div>
        <div class="modal-body col-centered">
          <div style="clear: both;"></div>
          <div class="col-md-10 col-sm-10 custom-padding-0 text-center col-centered">
            <span class="welcome-construction"><?php echo $this->lang->line('undercons');?></span>
            <h3><?php echo $this->lang->line('drvreswlcm');?></h3>
            <hr>
            <h3><?php echo $this->lang->line('contrestaurant');?></h3>
            <button class="btn btn-warning" onclick="window.location.href='restaurant-owner.html'">GET STARTED</button>
            <hr>
            <h3><?php echo $this->lang->line('contdriver');?></h3>
            <button class="btn btn-warning" onclick="window.location.href='driver.html'">GET STARTED</button>
          </div>
          <div style="clear: both;"></div>
        </div>
        <div style="clear: both;"></div>
      </div>

    </div>
  </div>
<!-- Modal --> 
<style type="text/css">
  a.fh5co-feature.to-animate {
    cursor: default !important;
  }
</style>
<script type="text/javascript">
// $(document).scroll(function(){
//     var maxWidth = $(document).width();
//     if (maxWidth > 992) {
//       if ($(document).scrollTop()>0) 
//       {
//         $(".fixedBottom").css("position", "absolute");
//         $(".catering-seticon").css("position", "absolute");
//       }
//       else
//       {
//         $(".fixedBottom").css("position", "fixed");
//         $(".catering-seticon").css("position", "fixed");
//       }
//     }
//   });
// $(document).ready(function(){
//   var win = $(window).height();
//   $(".header-part1").css("height", win-110);
// })
function showLocation(position) {
  var latitude = position.coords.latitude;
  var longitude = position.coords.longitude;
  console.log("Latitude : " + latitude + " Longitude: " + longitude);
   //localStorage.user_latitude = latitude;
   //localStorage.user_longitude = longitude;
   $('#myLoader').show();
   webroot = '<?php echo base_url(); ?>';
   url=webroot+'frontend/updateLocation/';
    $.ajax({
      type: "post",
      url: url,
      cache: false,       
      data:{ lat: latitude,long: longitude, csrf_token_apm: myCsrfHash },
      success: function(data){ 
        $('#myLoader').hide();
        $('#address').val(data);
        //window.location = webroot+"frontend/restaurantslisting/";
        //alert(data);
       //document.getElementById("edit_category_name").innerHTML = data;
       //$('#edit_category_name').val(cat_id);
      }
     });

  //$.get(JS_SITE_URL+"getlocal.php?latitude="+latitude+"&longitude="+longitude, function(data) {
  //alert(data);
  //var locComplete = true;
  //window.location = JS_SITE_URL+"index.php";
  //});
  //alert(JS_SITE_URL+"getlocal.php?latitude="+latitude+"&longitude="+longitude);
  //var myLatLong = {latitude: latitude, longitude: longitude};
  //return myLatLong;
  }

  function errorHandler(err) {
  if(err.code == 1) {
  console.log("Error: Access is denied!");
  var myLatLong = {latitude: 13.0317433, longitude: 77.5999083};
  /*$.get(JS_SITE_URL+"getlocal.php?latitude=13.0317433&longitude=77.5999083", function(data){
  //alert(data);
  var locComplete = true;
  });*/
  return myLatLong;
}

else if( err.code == 2) {
  console.log("Error: Position is unavailable!");
  var myLatLong = {latitude: 13.0317433, longitude: 77.5999083};
  /*$.get(JS_SITE_URL+"getlocal.php?latitude=13.0317433&longitude=77.5999083", function(data){
  var locComplete = true;
  });*/
  return myLatLong;
}
}

function getLocationUpdate(){
  if(navigator.geolocation){
  // timeout at 60000 milliseconds (60 seconds)
  var options = {timeout:60000};
  geoLoc = navigator.geolocation;
  watchID = geoLoc.watchPosition(showLocation, errorHandler, options);
  //watchID = geoLoc.watchPosition(showLocation);
}

else{
alert("Sorry, browser does not support geolocation!");
}
}



function initializePlaces() {
    var defaultBounds = new google.maps.LatLngBounds(
    new google.maps.LatLng(-26.916579, -49.071733)
    );
    var origin_input = document.getElementById('address');
    var options = {
      bounds: defaultBounds,
      types: ['address'],
      componentRestrictions: {country: 'BR'}
    };
  var autocomplete_origin = new google.maps.places.Autocomplete(origin_input, options);
}
google.maps.event.addDomListener(window, 'load', initializePlaces);



function findrestaurant()
{
  webroot = '<?php echo base_url(); ?>';
  url=webroot+'frontend/updateAddress/';
  var address = $("#address").val();
  var restaurant = $("#searchstr").val();
  if (address == '') {
    swal('', 'Please enter an address first!', 'warning');
    return false;
  }
  else {
    $('#myLoader').show();
  }
    $.ajax({
      type: "post",
      url: url,
      cache: false,       
      data:{ address: address, restaurant: restaurant, csrf_token_apm: myCsrfHash },
      success: function(data){ 
        
        $('#address').val(data);
        window.location = webroot+"restaurantslisting/";
    //window.location = webroot+"frontend/restaurantslisting/";
        //alert(data);
       //document.getElementById("edit_category_name").innerHTML = data;
       //$('#edit_category_name').val(cat_id);
      }
     });
}

</script>

<script type="text/javascript">
   $(document).ready(function() {
       //var trace = getLocationUpdate();
   })
   $(window).load(function() {
    $('#myLoaderX').hide();
   })
</script>

<style type="text/css">
  .pac-container.pac-logo {
    padding-right: 10px;
    padding-bottom: 10px;
  }
  .pac-item {
    text-align : left;
    padding:2px;
    cursor:pointer;
    display:block;
    text-decoration : none;
    color:#000000;
    padding: .9rem 0.75rem .9rem 1.125rem;
    color: #A5AFB6;
  }
  .pac-item:hover, .pac-item:hover .pac-icon.pac-icon-marker{
    color: #FEBD16;
    background-color: #FAFAFA;
  }
  .pac-matched {
    color: #66F45C;
  }

  .cuisinebox img {
    height: 100px;
    width: auto;
    max-width: 100%;
  }

  .restoContent h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }

  .restoContent p {
    text-align: center !important;
  }
 
</style>



Anon7 - 2022
AnonSec Team