Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script language="JavaScript">
- function preloader()
- {
- // counter
- var i = 0;
- // create object
- imageObj = new Image();
- // set image list
- images = new Array();
- <?php $i = 0; foreach($lists->result() as $row) { $url = base_url().'images/'.$row->list_id.'/'.$row->name; ?>
- images[<?php echo $i; ?>]="<?php echo $url; ?>"
- <?php $i++; } $num_rows = $lists->num_rows(); $total_rows = $num_rows-1; ?>
- // start preloading
- for(i=0; i<=<?php echo $total_rows; ?>; i++)
- {
- imageObj.src=images[i];
- }
- }
- $(document).ready(function(){
- $("#view_most").html('<img src="<?php echo base_url()."images/loader.gif"; ?>">');
- })
- </script>
- <?php $this->load->library('twitter');
- $tId = $this->twitter->get_userId();?>
- <!-- Slider Kit launch -->
- <link href="<?php echo css_url(); ?>/sliderkit-demos.css" media="screen" rel="stylesheet" type="text/css" />
- <!-- Slider Kit styles -->
- <div id="Home_Main" class="clearfix container_bg">
- <!-- Main Left -->
- <div id="HMain_Left" class="clsFloatLeft">
- <div id="HSearch_Blk">
- <h1><?php echo translate("Book Your Accommodation"); ?></h1>
- <form action="<?php echo site_url('search')?>" id="search_form" method="post">
- <div class="clsHsearch_Inp">
- <label for="location" class="inner_text" id="location_label" style="display:none;"><?php echo translate("Where are you going?"); ?> </label>
- <input type="text" class="location rounded_left" autocomplete="off" id="location" name="location" />
- </div>
- <div id="HSear_Options" class="clearfix">
- <div class="HSer_CheckIn clsFloatLeft">
- <p><?php echo translate("Check in"); ?></p>
- <p><input type="text" id="checkin" class="HSer_Inp_bg checkin" name="checkin" value="mm/dd/yy" /></p>
- </div>
- <div class="HSer_CheckOut clsFloatLeft">
- <p><?php echo translate("Check out"); ?></p>
- <p><input type="text" id="checkout" class="HSer_Inp_bg checkout" name="checkout" value="mm/dd/yy" /></p>
- </div>
- <div class="HSer_Guest clsFloatLeft">
- <p><?php echo translate("Guests"); ?></p>
- <p class="Ser_Selec_bg">
- <select name="number_of_guests" id="number_of_guests">
- <?php for($i = 1; $i <= 16; $i++) { ?>
- <option value="<?php echo $i; ?>"><?php echo $i; if($i == 16) echo '+'; ?> </option>
- <?php } ?>
- </select>
- </p>
- </div>
- <div class="HSerach_Butt clsFloatLeft">
- <input type="submit" value="<?php echo translate("Search"); ?>" class="Serch_Button" name="Submit" />
- </div>
- </div>
- </form>
- </div>
- <!-- Slider -->
- <div id="selSlider">
- <div id="SelSlider_inner">
- <div class="sliderkit photosgallery-vertical delaycaptions-03">
- <div class="sliderkit-nav">
- <div class="sliderkit-nav-clip">
- <ul>
- <?php
- foreach($lists->result() as $row)
- {
- $url = base_url().'images/'.$row->list_id.'/'.$row->name;
- ?>
- <li><a href="javascript:void(0);" rel="nofollow" title="<?php echo $row->title ?>"><img src="<?php echo $url; ?>" alt="[Alternative text]" /></a></li>
- <?php } ?>
- </ul>
- </div>
- <div class="sliderkit-btn sliderkit-go-btn sliderkit-go-prev"><a rel="nofollow" href="javascript:void(0);" title="Previous photo"><span><?php echo translate("Previous photo"); ?></span></a></div>
- <div class="sliderkit-btn sliderkit-go-btn sliderkit-go-next">
- <a rel="nofollow" href="javascript:void(0);" title="Next photo"><span><?php echo translate("Next photo"); ?></span></a>
- </div>
- </div>
- <div class="sliderkit-panels">
- <?php
- foreach($lists->result() as $row)
- {
- $url = base_url().'images/'.$row->list_id.'/'.$row->name;
- ?>
- <div class="sliderkit-panel">
- <img src="<?php echo $url; ?>" alt="<?php echo $row->desc; ?>" />
- <div class="sliderkit-panel-textbox">
- <div class="sliderkit-panel-text">
- <h4><a href="<?php echo base_url().'rooms/'.$row->list_id; ?>"><?php echo $row->title; ?></a></h4>
- <p><?php echo substr(strstr($row->address, ','), 1); ?></p>
- <p><?php echo get_currency_symbol().get_currency_value($row->price).' per night'; ?></p>
- </div>
- <div class="sliderkit-panel-overlay"></div>
- </div>
- </div>
- <?php } ?>
- </div>
- </div>
- </div>
- </div>
- <!-- End of slider -->
- <div class="Box" id="HMost_View_Blk">
- <div class="Box_Head">
- <ul class="clsMost_Link clearfix">
- <li><a id="most_viewed" class="HMost_Link_Act" href="javascript:void(0);"><?php echo translate("Most Viewed"); ?></a></li>
- <li><a id="most_booked" href="javascript:void(0);"><?php echo translate("Most Booked"); ?></a></li>
- <li class="clsBorder_No"><a id="most_reviewed" href="javascript:void(0);"><?php echo translate("Most Rated"); ?></a></li>
- </ul>
- </div>
- <div class="Box_Content clearfix" id="view_most">
- <div class="clear"></div>
- </div>
- </div>
- </div>
- <!-- End of Main Left -->
- <!-- Main Right -->
- <div id="HMain_Right" class="clsFloatRight">
- <!-- Top Locations -->
- <div class="Box" id="HTop_Links_Box">
- <div class="Box_Head">
- <h2><?php echo translate("Top Locations"); ?></h2>
- </div>
- <div class="Box_Content clearfix">
- <div class="clsTopLinks_List clearfix">
- <div>
- <p class="clsBold"><?php echo $categories[1]->name; ?></p>
- <ul>
- <?php foreach($world->result() as $row) { ?>
- <li><a href="<?php echo site_url('search').'?location='.$row->name; ?>"><?php echo $row->name; ?></a></li>
- <?php } ?>
- </ul>
- </div>
- </div>
- </div>
- </div>
- <!-- End of Top Locations -->
- <!-- How it Works -->
- <div class="Box" id="HLatest_Add_Box">
- <div class="Box_Head">
- <h2><?php echo translate("Latest Ads"); ?></h2>
- </div>
- <div class="Box_Content">
- <?php foreach($latest_ads->result() as $row) { ?>
- <div class="clearfix clsLatest_AddList">
- <div class="clsLatAdd_left clsFloatLeft">
- <a href="<?php echo base_url().'rooms/'.$row->id; ?>">
- <img src="<?php echo getListImage($row->id); ?>" height="41" width="41" alt="<?php echo $row->title; ?>" title="<?php echo $row->title; ?>" />
- </a>
- </div>
- <div class="clsLatAdd_Right clsFloatRight">
- <p><a href="<?php echo base_url().'rooms/'.$row->id; ?>"><?php echo $row->title; ?></a></p>
- <p><?php echo substr(strstr($row->address, ','), 1); ?> </p>
- <p class="clsBold"><?php echo get_currency_symbol().get_currency_value($row->price).' per night'; ?></p>
- </div>
- </div>
- <?php } ?>
- </div>
- </div>
- <!-- End of How it Works -->
- <!-- End of Latest Ads -->
- <!-- Latest Ads -->
- <!-- End of Latest Ads -->
- <!-- Add -->
- <!-- End of Add -->
- <!-- Useful Links Box -->
- <!-- End of Useful Links Box -->
- </div>
- <!-- End of Main Right -->
- </div>
- <script type="text/javascript">
- $(document).ready(function(){
- preloader();
- $("#most_viewed").click(function(){
- $("#most_booked").removeClass("HMost_Link_Act");
- $("#most_reviewed").removeClass("HMost_Link_Act");
- $("#most_viewed").addClass("HMost_Link_Act");
- $("#view_most").html('<img src="<?php echo base_url()."images/loader.gif"; ?>">');
- $.ajax({ type: "POST",url: "<?php echo site_url('home/view_most'); ?>",async: true,data: "view=most_viewed", success: function(data)
- {
- if(data != 0)
- {
- $("#view_most").html(data);
- }
- else
- alert("Error");
- }
- });
- })
- $("#most_booked").click(function(){
- $("#view_most").html('<img src="<?php echo base_url()."images/loader.gif"; ?>">');
- $("#most_reviewed").removeClass("HMost_Link_Act");
- $("#most_viewed").removeClass("HMost_Link_Act");
- $("#most_booked").addClass("HMost_Link_Act");
- $.ajax({ type: "POST",url: "<?php echo site_url('home/view_most'); ?>",async: true,data: "view=most_booked", success: function(data)
- {
- if(data != 0)
- {
- $("#view_most").html(data);
- }
- else
- alert("Error");
- }
- });
- })
- $("#most_reviewed").click(function(){
- $("#most_reviewed").addClass("HMost_Link_Act");
- $("#most_viewed").removeClass("HMost_Link_Act");
- $("#most_booked").removeClass("HMost_Link_Act");
- $("#view_most").html('<img src="<?php echo base_url()."images/loader.gif"; ?>">');
- $.ajax({ type: "POST",url: "<?php echo site_url('home/view_most'); ?>",async: true,data: "view=most_reviewed", success: function(data)
- {
- if(data != 0)
- {
- $("#view_most").html(data);
- }
- else
- alert("Error");
- }
- });
- })
- $.ajax({ type: "POST",url: "<?php echo site_url('home/view_most'); ?>",async: true,data: "view=most_viewed", success: function(data)
- {
- if(data != 0)
- {
- $("#view_most").html(data);
- }
- else
- alert("Error");
- }
- });
- })
- $(window).load(function(){
- $(".delaycaptions-03").sliderkit({
- circular:true,
- keyboard:true,
- shownavitems:4,
- verticalnav:true,
- navclipcenter:true,
- panelfxspeed:500,
- fastchange:true,
- auto:true,
- delaycaptions:{
- delay:300,
- position:"left",
- transition:"sliding",
- duration:300
- },
- debug:1
- });
- });
- window.fbAsyncInit = function() {
- FB.init({
- appId : 'Reservation Resources',
- status : true, // check login status
- cookie : true, // enable cookies to allow the server to access the session
- xfbml : true // parse XFBML
- });
- FB.getLoginStatus(function(response) {
- if (response && (response.status !== "unknown")) {
- jQuery.cookie("fbs", response.status);
- } else {
- jQuery.cookie("fbs", null);
- }
- });
- jQuery(document).trigger('fbInit');
- };
- (function() {
- var e = document.createElement('script');
- e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js';
- e.async = true;
- document.getElementById('fb-root').appendChild(e);
- }());
- jQuery(document).ready(function() {
- Translations.review = "review";
- Translations.reviews = "reviews";
- Translations.night = "night";
- var opts = {};
- CogzidelHomePage.init(opts);
- CogzidelHomePage.defaultSearchValue = "Where are you going?";
- });
- if ((navigator.userAgent.indexOf('iPhone') == -1) && (navigator.userAgent.indexOf('iPod') == -1) && (navigator.userAgent.indexOf('iPad') == -1)) {
- jQuery(window).load(function() {
- LazyLoad.js([
- "<?php echo base_url(); ?>js/jquery.autocomplete_custom.pack.js",
- "<?php echo base_url(); ?>js/en_autocomplete_data.js"],
- function() {
- jQuery("#location").autocomplete(autocomplete_terms, {
- minChars: 1, width: 301, max:20, matchContains: false, autoFill: true,
- formatItem: function(row, i, max) {
- return Cogzidel.Utils.decode(row.k);
- },
- formatMatch: function(row, i, max) {
- return Cogzidel.Utils.decode(row.k);
- },
- formatResult: function(row) {
- return Cogzidel.Utils.decode(row.k);
- }
- });
- }
- );
- });
- }
- jQuery(document).ready(function() {
- Cogzidel.init({userLoggedIn: false});
- });
- Cogzidel.FACEBOOK_PERMS = "email,user_birthday,user_likes,user_education_history,user_hometown,user_interests,user_activities,user_location";
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement