<?php
$res = $this->db->query("SELECT * FROM wps_categories WHERE status = '1' AND parent_id = '0' limit 0,10")->result_array();
$city = $this->db->query("SELECT city, temp_title FROM wps_cities_list WHERE status = '1' AND is_featured = '1'")->result_array();
$about = get_db_field_value("wps_cms_pages", "page_description", "WHERE page_id = '1'");
$adminRes = get_site_email();
?>
<footer id="colophon" class="site-footer clearfix">
  <div id="quaternary" class="sidebar-container " role="complementary">
    <div class="sidebar-inner">
      <div class="widget-area clearfix">
        <div id="azh_widget-2" class="widget widget_azh_widget">
          <div data-section="section">
            <div class="container">
              <div class="row">
                <div class="col-sm-4 col-md-3 foot-logo"> <img src="<?php echo theme_url(); ?>images/logo.png" alt="<?php echo $this->config->item('site_name');?>" title="<?php echo $this->config->item('site_name');?>">
                  <p class="hasimg">World's No. 1 Service Provider Directory Website.</p>
                  <p class="hasimg"><?php echo char_limiter($about, 110); ?></p>
                </div>
                <div class="col-sm-4 col-md-3">
                  <h4>Important Links</h4>
                  <ul >
                    <li> <a href="<?php echo site_url(); ?>about-us" title="About Us">About Us</a></li>
                    <li> <a href="<?php echo site_url(); ?>users/register" title="Register">Register</a></li>
                    <li>
                      <?php /*
                      if ($this->session->userdata('user_id') > 0) {
                        ?>
                        <a href="<?php echo site_url(); ?>members/add-listing" title="List Your Business">List Your Business</a>
                        <?php
                      } else {
                        ?>
                        <a href="javascript:void(0);" title="Register" data-dismiss="modal" data-toggle="modal" data-target="#regis-ter" title="List Your Business">List Your Business</a>
                        <?php
                      } */
                      ?>
                    </li>
                    <li> <a href="<?php echo site_url(); ?>blog" title="Blog">Blogs</a> </li>
                    <li> <a href="<?php echo site_url(); ?>directory" title="Search Service Provider">Search Service Provider</a> </li>
                    <li> <a href="<?php echo site_url(); ?>packages" title="Our Packages">Our Packages</a> </li>

                  </ul>
                </div>
                <div class="col-sm-4 col-md-3">
                  <h4>Informative Links</h4>
                  <ul>
                    <li> <a href="<?php echo site_url(); ?>terms-conditions" title="Terms & Conditions">Terms & Conditions</a> </li>
                    <li> <a href="<?php echo site_url(); ?>privacy-policy" title="Privacy Policy">Privacy Policy</a> </li>
                    <li> <a href="<?php echo site_url(); ?>disclaimer" title="Disclaimer">Disclaimer</a> </li>
                    <li> <a href="<?php echo site_url(); ?>contact-us" title="Contact Us">Contact Us</a> </li>
                    <li> <a href="<?php echo site_url(); ?>market-area" title="Market Area">Market Area</a> </li>
                  </ul>
                </div>
                <div class="col-sm-4 col-md-3">
                  <?php
                  if (is_array($city) && !empty($city)) {
                    ?>
                    <h4>Cities Covered</h4>
                    <ul class="two-columns">
                      <?php
                      foreach ($city as $cval) {
                        ?>
                        <li> <a href="<?php echo site_url() . $cval['temp_title']; ?>/directory" title="Service Provider from <?php echo $cval['city']; ?>"><?php echo $cval['city']; ?></a> </li>
                        <?php
                      }
                      ?>
                    </ul>
                    <?php
                  }
                  ?>
                </div>
              </div>
            </div>
          </div>
          <div data-section="section" class="foot-sec2">
            <div class="container">
              <div class="row">
                <div class="col-sm-3">
                  <h4>Payment Options</h4>
                  <p> <img src="<?php echo theme_url(); ?>images/payment.png" alt="Payment Options" title="Payment Options"> </p>
                </div>
                <div class="col-sm-4">
                  <h4>Address</h4>
                  <p><?php echo $adminRes->address; ?></p>
                  <!--<p> <span class="strong">Phone: </span> <span class="highlighted"><?php echo $adminRes->phone; ?></span> </p>-->
                </div>
                <div class="col-sm-5 foot-social">
                  <h4>Follow with us</h4>
                  <ul>
                    <?php
                    if($adminRes->facebook){
                      ?>
                    <li><a href="<?php echo $adminRes->facebook; ?>" target="_blank"><i class="fa fa-facebook" aria-hidden="true"></i></a> </li>
                    <?php
                    }
                    if($adminRes->twitter){
                      ?>
                    <li><a href="<?php echo $adminRes->twitter; ?>" target="_blank"><i class="fa fa-twitter" aria-hidden="true"></i></a> </li>
                    <?php
                    }
                    if($adminRes->linkedin){
                      ?>
                    <li><a href="<?php echo $adminRes->linkedin; ?>" target="_blank"><i class="fa fa-linkedin" aria-hidden="true"></i></a> </li>
                    <?php
                    }
                    if($adminRes->youtube){
                      ?>
                    <li><a href="<?php echo $adminRes->youtube; ?>" target="_blank"><i class="fa fa-youtube" aria-hidden="true"></i></a> </li>
                    <?php
                    }
                    ?>
                    <!--<li><a href="https://api.whatsapp.com/send?phone=<?php echo $adminRes->whatsapp; ?>" target="_blank"><i class="fa fa-whatsapp" aria-hidden="true"></i></a> </li>-->
                  </ul>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <!-- .widget-area -->
    </div>
    <!-- .sidebar-inner -->
  </div>
  <!-- #quaternary -->
</footer>
<!--COPY RIGHTS-->
<section class="copy">
  <div class="container">
    <p>copyrights © <?php echo date('Y'); ?> <?php echo $this->config->item('site_name');?>. &nbsp;&nbsp;All rights reserved. </p>
  </div>
</section>
<!--QUOTS POPUP-->
<section>
  <!-- GET QUOTES POPUP -->
  <div class="modal fade dir-pop-com" id="list-quo" role="dialog">
    <div class="modal-dialog modal-lg">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">×</button>
          <h4 class="modal-title">Get a quick quote froms <span id="companyProName"></span></h4>
          <!--<i class="fa fa-pencil dir-pop-head-icon" aria-hidden="true"></i>-->
        </div>
        <div class="modal-body">
          <form method="post" class="form-horizontal" id="getQuoteForm">
            <!--LISTING INFORMATION-->

            <div class="alert alert-warning EmessageBox" style="display: none;">
              <span class="Emessage"></span>
            </div>
            <div class="alert alert-success SmessageBox" style="display: none;">
              <span class="Smessage"></span>
            </div>
            <div class="row">
              <div class="col-md-6">    
                <div class="description01">            
                  <img src="" id="productQuoteImage" class="" alt="Product Image" title="Product Image" />                
                  <span id="companyProDetails"></span>                 
                </div>
              </div>
              <div class="col-md-6">
                <div class="form-group has-feedback ak-field">
                  <label class="col-md-4 control-label">Your Full Name *</label>
                  <div class="col-md-8">
                    <input type="text" required class="form-control" id="fullName" name="fullName" placeholder="Your Full Name *" required> </div>
                </div>
                <!--LISTING INFORMATION-->
                <div class="form-group has-feedback ak-field">
                  <label class="col-md-4 control-label">Mobile *</label>
                  <div class="col-md-8">
                    <input type="text" required class="form-control" id="mobileNumber" name="mobileNumber" onkeyup="if (/\D/g.test(this.value))
                          this.value = this.value.replace(/\D/g, '');" maxlength="20" placeholder="Your Mobile No *" />

                  </div>
                </div>
                <!--LISTING INFORMATION-->
                <div class="form-group has-feedback ak-field">
                  <label class="col-md-4 control-label">Email *</label>
                  <div class="col-md-8">
                    <input type="email" required class="form-control" id="emailAddress" name="emailAddress" placeholder="Your Email ID*"> </div>
                </div>
                <!--LISTING INFORMATION-->
                <div class="form-group has-feedback ak-field qhide">
                  <label class="col-md-4 control-label">Quantity *</label>
                  <div class="col-md-4">
                    <input type="text" required class="form-control" id="productQuantity" name="productQuantity" onkeyup="if (/\D/g.test(this.value))
                          this.value = this.value.replace(/\D/g, '')" placeholder="Enter Quantity *"> 
                  </div>
                  <div class="col-md-4"><span class="modal-title unitSize"></span></div>
                </div>

                <div class="form-group has-feedback ak-field">
                  <label class="col-md-4 control-label">Your Location *</label>
                  <div class="col-md-8">
                    <input type="text" id="autocomplete1" onfocus="geolocate()" name="location" class="form-control contact-input valid productLocation" placeholder="Your Location *" value="" autocomplete="off">
                  </div>
                </div>
                <!--LISTING INFORMATION-->
                <div class="form-group has-feedback ak-field">
                  <label class="col-md-4 control-label">Message*</label>
                  <div class="col-md-8 get-quo">
                    <textarea class="form-control" name="enquiryMessage" id="enquiryMessage" placeholder="Your Message *" required></textarea>
                  </div>
                </div>
                <!--LISTING INFORMATION-->
                <div class="form-group has-feedback ak-field">
                  <div class="col-md-6 col-md-offset-4">
                    <input type="hidden" name="productQuoteID" id="productQuoteID" value="" />
                    <input type="hidden" name="productCompID" id="productCompID" value="" />
                    <input type="hidden" name="post_url" id="post_url" value="" />
                    <?php /*<input type="hidden" name="post_url" id="post_url" value="<?php echo current_url(); ?>" />*/ ?>
                    <input type="submit" value="SUBMIT" class="pop-btn"> </div>
                </div>
              </div>
            </div>
          </form>
        </div>
      </div>
    </div>
  </div>
  <!-- GET QUOTES Popup END -->


  <!-- Registration Popup START -->
  <div class="modal fade dir-pop-com" id="regis-ter" role="dialog">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close registerCloseButton" data-dismiss="modal">×</button>
          <h4 class="modal-title">Join <?php echo $this->config->item('site_name');?> Now!</h4>
          <!--<i class="fa fa-pencil dir-pop-head-icon" aria-hidden="true"></i>-->
        </div>
        <div class="modal-body">


          <form method="post" class="form-horizontal tz2-form-pay tz2-form-com">
            <!--LISTING INFORMATION-->
            <div class="form-group has-feedback">
              <div class="ermgs" style="color:#d90000; font-size: 12px; font-weight: bold; text-align: center;"></div>
              <span class="sucmgs" style="color:#009933; font-size: 12px; font-weight: bold; text-align: center;"></span>
              <label class="col-md-4 control-label">Country *</label>
              <div class="col-md-8">

                <div class="input-field">
                  <?php echo CountrySelectBox(array("name" => "register_country", 'current_selected_val' => "India", "format" => 'class="select_country_pop" required')); ?>
                </div>
              </div>
            </div>
            <div class="form-group has-feedback ak-field">
              <label class="col-md-4 control-label">Name *</label>
              <div class="col-md-4">
                <input type="text" class="form-control" id="regFirstName" name="firstName" placeholder="First Name" required /> 
              </div>
              <div class="col-md-4">
                <input type="text" class="form-control" id="regLastName" name="lastName" placeholder="Last Name" required /> 
              </div>
            </div>
            <div class="form-group has-feedback ak-field registerMobileDiv">
              <label class="col-md-4 control-label">Mobile No *</label>
              <div class="col-md-8">
                <input type="text" class="form-control" id="registerMobileNo" name="mobile" placeholder="Mobile Number" required onkeyup="if (/\D/g.test(this.value))
                      this.value = this.value.replace(/\D/g, '')" maxlength="10" /> 
              </div>
            </div>

            <div class="form-group has-feedback ak-field registerEmailDiv" style="display:none;">
              <label class="col-md-4 control-label">Email ID *</label>
              <div class="col-md-8">
                <input type="text" class="form-control" id="registerEmailId" name="registerEmailId" placeholder="" required /> 
              </div>
            </div>

            <div class="form-group has-feedback ak-field" id="otpInputBox" hidden="hidden">
              <label class="col-md-4 control-label">OTP *</label>
              <div class="col-md-8">
                <input type="text" class="form-control" id="registerMobileCode" name="mobile_otp" placeholder="" required onkeyup="if (/\D/g.test(this.value))
                      this.value = this.value.replace(/\D/g, '')" maxlength="4" /> 
                <lable class="otpSMSText" hidden="hidden"><span style="color:#009933; font-size: 11px;">Please enter the 4 digit OTP sent to your Mobile No.</span></lable>
                <lable class="otpVerifyText" hidden="hidden"><span style="color:#d90000; font-size: 11px;">Inalid or Expired OTP!</span></lable>
              </div>
            </div>
            <!--LISTING INFORMATION-->
            <div class="form-group has-feedback ak-field createAccountbutton">
              <div class="col-md-6 col-md-offset-4">
                <input type="button" value="Create Your Account" class="pop-btn pop-btn-rgstr"> 
              </div>
              <div class="col-md-12 col-sm-12 col-lg-12">
                <lable class="pull-right">
                  <!--<span style="color:#009933; font-size: 12px;">Already a Member? <a href="<?php echo site_url(); ?>login" class="btn btn-success">Login Now</a></span>-->
                  <span style="color:#009933; font-size: 12px;">Already a Member? <a href="javascript:void(0);" class="btn btn-success" data-dismiss="modal" data-toggle="modal" data-target="#login-ter">Login Now</a></span>
                </lable>
              </div>
            </div>
            <div class="form-group has-feedback ak-field verifyOtpButton" hidden="hidden">
              <div class="col-md-6 col-md-offset-4">
                <input type="button" value="Verify OTP" class="pop-btn pop-btn-otp"> <input type="button" value="Resend OTP" class="pop-btn pop-btn-rgstr"> 
              </div>
              <div class="col-md-12 col-sm-12 col-lg-12">
                <lable class="pull-right">
                  <!--<span style="color:#009933; font-size: 12px;">Already a Member? <a href="<?php echo site_url(); ?>login" class="btn btn-success">Login Now</a></span>-->
                  <span style="color:#009933; font-size: 12px;">Already a Member? <a href="javascript:void(0);" class="btn btn-success" id="LoginButtonBottomPop" data-dismiss="modal" data-toggle="modal" data-target="#login-ter">Login Now</a></span>
                </lable>
              </div>
            </div>
            <input type="hidden" class="viewCompContact" value="" />
          </form>
        </div>
      </div>
    </div>
  </div>
  <!-- Registration Popup END -->


  <!-- Login Popup START -->
  <div class="modal fade dir-pop-com" id="login-ter" role="dialog">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close" data-dismiss="modal">×</button>
          <h4 class="modal-title">Login Now!</h4>
          <!--<i class="fa fa-pencil dir-pop-head-icon" aria-hidden="true"></i>-->
        </div>
        <div class="modal-body">
          <form action="<?php echo site_url(); ?>users/login" method="post" class="form-horizontal tz2-form-pay tz2-form-com">
            <div class="form-group has-feedback">
              <div class="ermgs" style="color:#d90000; font-size: 12px; font-weight: bold; text-align: center;"></div>
            </div>
            <!--LISTING INFORMATION-->            
            <div class="form-group has-feedback ak-field">
              <label class="col-md-4 control-label">Mobile No. / Email ID *</label>
              <div class="col-md-8">
                <input type="text" class="form-control" id="login_mobile" name="login_mobile" placeholder="Mobile No. / Email ID *" required /> 
              </div>
            </div>
            <div class="form-group has-feedback ak-field">
              <label class="col-md-4 control-label">Password *</label>
              <div class="col-md-8">
                <input type="password" class="form-control" id="login_password" name="login_password" placeholder="Password *" required  /> 
                
                <div class="form-group has-feedback ak-field createAccountbutton" style="margin-top:8px;">
              <div class="col-md-6 col-xs-6">
                <input type="submit" value="Login Now" class="btn btn-info" style="text-transform: none!important;" /> 
              </div>
              <div class="col-md-6 col-xs-6">
                <input type="button" value="Forgot Password?" class="btn btn-warning forgotPassword" style="text-transform: none!important;" />
              </div>
            </div>
             
             
              </div>
            </div>
            <!--LISTING INFORMATION-->
            
            <input type="hidden" class="viewCompContact" name="compIdVerification" value="" />
            <input type="hidden" class="refUrl" name="ref" value="" />
          </form>
        </div>
      </div>
    </div>
  </div>
  <!-- Login Popup END -->

  <!-- Factory Video -->
  <div class="modal fade dir-pop-com" id="facVideo" role="dialog">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close closeFacVideo" data-dismiss="modal">×</button>
          <h4 class="modal-title">Video for <span id="factCompanyName" style="color:#fff; font-weight:bold; font-size: 18px;"></span></h4>
        </div>
        <div class="modal-body">
          <iframe class="factoryVideoFrame" width="100%" height="350" src="https://www.youtube.com/embed/AN5p2Fx3ZrY" frameborder="0" allow="accelerometer; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

        </div>
      </div>
    </div>
  </div>
  <!-- Factory Video End -->

  <!-- Factory Video -->
  <div class="modal fade dir-pop-com" id="contactNumberSupplierPop" role="dialog">
    <div class="modal-dialog">
      <div class="modal-content">
        <div class="modal-header">
          <button type="button" class="close closeontactInfo" data-dismiss="modal">×</button>
          <h4 class="modal-title">Contact Information</h4>
        </div>
        <div class="modal-body text-center" style="padding: 30px;"><span class="contactNumberSupplier"></span></div>
      </div>
    </div>
  </div>
  <!-- Factory Video End -->

</section>
<!--SCRIPT FILES-->

<ul class="fixed_postion01">
  <li><a href="javascript:void()" data-toggle="modal" data-target="#getquote"  title="Get a Quote"><i class="fa fa-envelope"></i> <span>Enquire Now</span></a></li>
</ul>

<div class="modal" id="getquote" role="dialog">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close closeontactInfo" data-dismiss="modal">×</button>
        <h4 class="modal-title">Enquire Now</h4>
      </div>
      <div class="modal-body">
        <form id="get_quote" class="get_quote_home_foot" method="post">
          <div class="alert alert-warning EmessageBoxHomeFoot" style="display: none;">
            <span class="EmessageHomeFoot"></span>
          </div>
          <div class="alert alert-success SmessageBoxHomeFoot" style="display: none;">
            <span class="SmessageHomeFoot"></span>
          </div>
          <div class="row">

            <div class="col-lg-6 col-md-6">
              <div class="form-group">
                <div class="input-field">
                  <input type="text" name="name" id="fullNameHomeFoot" class="validate" autocomplete="off" required>
                  <label>Your Full Name*</label>
                </div>
              </div>
            </div>

            <div class="col-lg-6 col-md-6">
              <div class="form-group">
                <div class="input-field">
                  <input type="text" name="mobile" id="mobileNumberHomeFoot" class="validate" autocomplete="off" required>
                  <label>Your Mobile No*</label>
                </div>
              </div>
            </div>

            <div class="col-lg-6 col-md-6">
              <div class="form-group">
                <div class="input-field">
                  <input type="text" name="email" id="emailAddressHomeFoot" class="validate" autocomplete="off" required>
                  <label>Your Email ID*</label>
                </div>
              </div>
            </div>


            <div class="col-lg-6 col-md-6">
              <div class="form-group">
                <div class="input-field">
                  <input type="text" name="location" id="locationHomeFoot" class="validate" autocomplete="off" required>
                  <label>Your Location*</label>
                </div>
              </div>
            </div>


            <div class="col-lg-12">
              <div class="form-group">
                <div class="input-field">
                  <textarea class="validate" name="message" id="enquiryMessageHomeFoot" required></textarea>
                  <label>Your Message*</label>
                </div>
              </div>
            </div>
            <div class="col-lg-12">
              <input type="checkbox" name="tRap" value="1" />
              <input type="hidden" name="post_url_home_foot" id="post_url_home_foot" value="<?php echo current_url(); ?>" >
              <button class="modal_btn" type="submit" name="submit" value="Submit" data-submit="...Sending">Submit</button>
            </div>
          </div>
        </form>
      </div>
    </div>
  </div>
</div>
