Changeset 649393
- Timestamp:
- 01/07/2013 10:41:38 PM (13 years ago)
- Location:
- wp-easybooking/trunk
- Files:
-
- 20 edited
-
admin/adminSettings.php (modified) (3 diffs)
-
admin/bookItNow.php (modified) (1 diff)
-
admin/businessCreator.php (modified) (6 diffs)
-
admin/businessCreator_mainData.php (modified) (5 diffs)
-
admin/businessDeals.php (modified) (1 diff)
-
admin/businesses_bookings.php (modified) (2 diffs)
-
admin/businesses_list.php (modified) (7 diffs)
-
admin/rooms.php (modified) (3 diffs)
-
admin/translate.php (modified) (2 diffs)
-
classes/calendar.class.php (modified) (2 diffs)
-
readme.txt (modified) (4 diffs)
-
widgets/ajaxProposeLocation.php (modified) (1 diff)
-
widgets/ajaxSearchDestinations.php (modified) (5 diffs)
-
widgets/booking_page.php (modified) (4 diffs)
-
widgets/booking_report.php (modified) (2 diffs)
-
widgets/business_data.php (modified) (4 diffs)
-
widgets/businesses_list_results.php (modified) (3 diffs)
-
widgets/load_booking.php (modified) (1 diff)
-
widgets/load_business.php (modified) (7 diffs)
-
widgets/search_form.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-easybooking/trunk/admin/adminSettings.php
r648905 r649393 144 144 145 145 jQuery(document).ready(function() { 146 jQuery("#numberOfBusinesessInDebt").html('<img src="<?php echo WP_CONTENT_URL;?>/plugins/wp _easybooking/images/ajax-loader.gif" />');146 jQuery("#numberOfBusinesessInDebt").html('<img src="<?php echo WP_CONTENT_URL;?>/plugins/wp-easybooking/images/ajax-loader.gif" />'); 147 147 jQuery("#busNumOwingHidden").val(0); 148 148 var businessIdsStr = jQuery("#businessIDsForBalanceReporter").val(); … … 151 151 var businessIdInside = businessIdsStrArr[i].split(":"); 152 152 var bID = businessIdInside[1]; 153 ajaxBallanceRep(bID, businessIdInside[2]);153 //ajaxBallanceRep(bID, businessIdInside[2]); 154 154 } 155 155 }); … … 169 169 170 170 171 function ajaxBallanceRep(bID, bName){ 172 <?php $absPath = str_replace('\\','/', ABSPATH);?> 173 jQuery.ajax({ 174 type: "POST", 175 url: "../wp-content/plugins/wp_easybooking/classes/siteBilling.class.php", 176 data: "usrLevel=<?php echo $current_user->wp_user_level; ?>&bID="+bID+"&aPath=<?php echo $absPath; ?>&pref=<?php echo $table_prefix; ?>", 177 success: function(resp){ 178 if(resp.indexOf("color:red") != -1){ 179 jQuery("#businessesInDebtList").html(jQuery("#businessesInDebtList").html() + "<p><a href='admin.php?page=busines_menu&bID="+bID+"&bill=show' title='View details' target='_blank'> <b><em>"+bName+"</em></b> balance is "+resp+"</a></p>"); 180 var intCounter = parseInt( jQuery("#busNumOwingHidden").val() ); 181 intCounter++; 182 jQuery("#busNumOwingHidden").val(intCounter); 183 checkHiddenValForNumOfDebtors(); 184 } 185 } 186 }); 171 function ajaxBallanceRep(bID, bName){ 172 /*NOT AVAILABLE FOR FREE VERSION*/ 187 173 } 188 174 189 175 function checkHiddenValForNumOfDebtors(){ 190 if(jQuery("#busNumOwingHidden").val() > 0){ 191 jQuery("#numberOfBusinesessInDebt").html("There are "+jQuery("#busNumOwingHidden").val()+" businesses that have debt."); 192 jQuery("#businessesInDebtListBtn").show(); 193 jQuery("#balanceMainContainer").show(); 194 } 195 else jQuery("#numberOfBusinesessInDebt").html('No business has any kind of debt'); 176 jQuery("#numberOfBusinesessInDebt").html('No fees (dept) found'); 196 177 } 197 178 -
wp-easybooking/trunk/admin/bookItNow.php
r648905 r649393 652 652 jQuery.ajax({ 653 653 type: "POST", 654 url: "../wp-content/plugins/wp _easybooking/classes/booking.class.php",654 url: "../wp-content/plugins/wp-easybooking/classes/booking.class.php", 655 655 data: "sID="+rID+"&bID="+bID+"&startRange="+jQuery('#eb_dateRangeStart').val()+"&endRange="+jQuery('#eb_dateRangeEnd').val()+"&getServicePrice=WITH_AJAX&abPath="+absPath, 656 656 success: function(resp){ -
wp-easybooking/trunk/admin/businessCreator.php
r648905 r649393 3 3 4 4 //set up all variables: 5 $eb_BusinessPackDeal = ''; 6 $eb_BusinessPackDealTitle = ''; 5 7 $eb_BusinessTitle = ''; 6 8 $eb_BusinessDateReg = ''; … … 400 402 } 401 403 } 404 $eb_BusinessPackDeal = get_post_meta($businessId, "eb_packDeal"); 405 if(!empty($eb_BusinessPackDeal)) $eb_BusinessPackDeal = $eb_BusinessPackDeal[0]; else $eb_BusinessPackDeal =''; 406 $eb_BusinessPackDealTitle = $wpdb->get_row('select post_title from '.$table_prefix.'posts where ID = '.$eb_BusinessPackDeal); 407 if(!empty($eb_BusinessPackDealTitle)) $eb_BusinessPackDealTitle = $eb_BusinessPackDealTitle->post_title; 408 else $eb_BusinessPackDealTitle = ''; 402 409 403 410 $eb_ServicesDetailsStr= ''; … … 472 479 } 473 480 //============================================================= 481 //=====================PACKAGE DEAL CHANGE===================== 482 483 if(isset($_REQUEST['pack']) && $_REQUEST['pack'] != ''){ 484 $bID = addslashes($_REQUEST['bID']); 485 $pack = $_REQUEST['pack']; 486 update_post_meta($bID,'eb_packDeal', $pack); 487 } 474 488 475 489 //============================================================= … … 652 666 ?> 653 667 </td> 668 <td style="border:none"><span style="padding:5px;color:#ccc">|</span> 669 <label>Package Deal: </label> 670 <select id="selPackageDeal" onchange="setPackageDeal()"> 671 <?php 672 $allDeals = $wpdb->get_results('select ID, post_title from '.$table_prefix.'posts where post_type = "eb_chargingDeal"'); 673 foreach($allDeals as $deal){ 674 if($editDealName == $deal->post_title && $did != $deal->ID) 675 $dealNameExists = true; 676 echo '<option value="'.$deal->ID.'" '; 677 if($eb_BusinessPackDeal == $deal->ID){ 678 echo ' selected'; 679 680 } 681 echo '>'.$deal->post_title.'</option>'; 682 } 683 ?> 684 </select> 685 </td> 654 686 </tr> 655 687 </table> … … 711 743 <div id="logoUploadArea"> 712 744 <p id="result"></p> 713 <p id="f1_upload_process" style="display:none">Loading...<br/><img src="<?php echo WP_CONTENT_URL;?>/plugins/wp _easybooking/images/ajax-loader.gif" /></p>745 <p id="f1_upload_process" style="display:none">Loading...<br/><img src="<?php echo WP_CONTENT_URL;?>/plugins/wp-easybooking/images/ajax-loader.gif" /></p> 714 746 <form action="<?php echo WP_CONTENT_URL.'/plugins/'.$ebPluginFolderName; ?>/uploadLogo.php?target=businessLogo&bID=<?php echo $businessId ?>" method="post" enctype="multipart/form-data" target="upload_target" onsubmit="startUpload();" > 715 747 … … 1023 1055 return true; 1024 1056 } 1025 1057 1058 function setPackageDeal(){ 1059 var newDeal = jQuery("#selPackageDeal").val(); 1060 var url = "<?php echo get_admin_url() .'admin.php?page='.$_REQUEST['page'].'&bID='.$_REQUEST['bID'].'&pack=';?>"+newDeal; 1061 window.location = url; 1062 } 1063 1026 1064 1027 1065 function IpayFunc(){ -
wp-easybooking/trunk/admin/businessCreator_mainData.php
r648905 r649393 112 112 <?php //if($current_user->wp_user_level == 10){?> 113 113 <li><a> </a></li> 114 114 115 <?php //}?> 115 116 <!--<li><a> </a></li> … … 129 130 </div> 130 131 131 <script type="text/javascript" > 132 <script type="text/javascript" > 132 133 function showInfo(infoDivID){ 133 134 if(jQuery('#'+infoDivID).css("display") == "none"){ … … 518 519 </p> 519 520 </div> 520 <div id="seasonLoadingImg" style="width:99%;display:none" align="center"><img src='<?php echo WP_CONTENT_URL;?>/plugins/wp _easybooking/images/ajax-loader.gif'></div>521 <div id="seasonLoadingImg" style="width:99%;display:none" align="center"><img src='<?php echo WP_CONTENT_URL;?>/plugins/wp-easybooking/images/ajax-loader.gif'></div> 521 522 <div id="eb_seasonsArea" style="<?php if($eb_BusinessHasSeasons == '' || $eb_BusinessHasSeasons =='NO' ) echo 'display:none;'; if($eb_BusinessHasSeasons =='YES' ) echo 'display:block;';?>"> 522 523 <p> … … 527 528 End : <span id="eb_lowSeasonEndArea"><select name="eb_lowSeasonEnd" id="eb_lowSeasonEnd"><option value="NOT_SET">Set date</option><?php eb_daysList($eb_BusinessLowSeasonEnd);?></select></span> 528 529 </div> 529 <img src='<?php echo WP_CONTENT_URL;?>/plugins/wp _easybooking/images/ajax-loader.gif' style="display:none">530 <img src='<?php echo WP_CONTENT_URL;?>/plugins/wp-easybooking/images/ajax-loader.gif' style="display:none"> 530 531 </div> 531 532 </p> … … 939 940 </div> 940 941 942 <div id="debtInfoDiv" class="eb_simpleContainer" style="width:900px;display:none;"> 943 <em>No report available.</em> 944 </div> 941 945 </td> 942 946 </tr> -
wp-easybooking/trunk/admin/businessDeals.php
r648905 r649393 1 <?php 2 global $current_user; 3 global $wpdb; 4 global $ebPluginFolderName; 5 $siteCurrency = get_option('eb_siteCurrency'); 6 //=========================================================================== 7 //=======================GET ALL DEALS======================================= 8 global $table_prefix; 9 $allDeals = $wpdb->get_results('select ID, post_title from '.$table_prefix.'posts where post_type = "eb_chargingDeal"'); 10 11 if(sizeof($allDeals) == 0){ 12 $newDealData = array( 13 'post_author' => $current_user->ID, 14 'post_date' => gmdate("Y-m-d H:i:s"), 15 'post_date_gmt' => gmdate("Y-m-d H:i:s"), 16 'post_name' => 'DEFAULT', 17 'post_title' => 'DEFAULT', 18 'post_type' => "eb_chargingDeal" 19 ); 20 21 if ($newDealID = wp_insert_post( $newDealData, $wp_error )){ 22 update_post_meta($newDealID,'eb_dealPersentCost', '0'); 23 update_post_meta($newDealID,'eb_defaultPackDeal', $newDealID); 24 } 25 26 $newDealData = array( 27 'post_author' => $current_user->ID, 28 'post_date' => gmdate("Y-m-d H:i:s"), 29 'post_date_gmt' => gmdate("Y-m-d H:i:s"), 30 'post_name' => 'BUSINESS-ONE', 31 'post_title' => 'BUSINESS-ONE', 32 'post_type' => "eb_chargingDeal" 33 ); 34 35 if ($newDealID = wp_insert_post( $newDealData, $wp_error )){ 36 update_post_meta($newDealID,'eb_dealPersentCost', '0'); 37 } 38 } 39 40 if(isset($_REQUEST['action'])){ 41 if($_REQUEST['action']== "updated") echo '<div class="updated">Deal updated successfully</div>'; 42 if($_REQUEST['action']== "added") echo '<div class="updated">New deal added successfully</div>'; 43 } 44 45 if(isset($_REQUEST['sdef']) && $_REQUEST['sdef'] != ''){ 46 $setDefDeal = addslashes($_REQUEST['sdef']); 47 if(is_numeric($setDefDeal)){ 48 $wpdb->query('delete from '.$table_prefix.'postmeta where meta_key = "eb_defaultPackDeal"'); 49 update_post_meta($setDefDeal,'eb_defaultPackDeal', $setDefDeal); 50 } 51 } 52 //=========================================================================== 53 //=======================END GET ALL DEALS=================================== 54 55 56 //=========================================================================== 57 //=============================EDIT DEAL===================================== 58 $dealNameExists = false; 59 if(isset($_REQUEST['action']) && $_REQUEST['action'] == 'edit' && $_REQUEST['did'] != ''){ 60 $did = $_REQUEST['did']; 61 $editDealName = addslashes($_POST['editDealTitle']); 62 $newDealPeriodCost = addslashes($_POST['editDealPeriodCost']); 63 $newDealPeriodDuration = addslashes($_POST['editDealDuration']); 64 $newDealPersentCost = addslashes($_POST['editDealPercentage']); 65 $hasErrors = false; 66 $errorMessage = ''; 67 $warningMessage =''; 68 69 if($editDealName != ''){ 70 foreach($allDeals as $deal){ 71 72 if($editDealName == $deal->post_title && $did != $deal->ID) 73 $dealNameExists = true; 74 } 75 if(!$dealNameExists){ 76 $dealValuesUpdates = array(); 77 $dealValuesUpdates['ID'] = $did; 78 $dealValuesUpdates['post_author'] = $current_user->ID; 79 $dealValuesUpdates['post_name'] = $editDealName; 80 $dealValuesUpdates['post_title'] = $editDealName; 81 $dealValuesUpdates['post_modified_gmt'] = gmdate("Y-m-d H:i:s"); 82 83 if (wp_update_post( $dealValuesUpdates )){ 84 //if($newDealPeriodDuration == 0 && $newDealPeriodCost == '' && $newDealPersentCost == 0) $warningMessage .= '<p><em>The new deal has been added successfully but with no charges. If you want to set charges to this deal press the edit button next to it</em></p>'; 85 if($newDealPeriodDuration!= '') update_post_meta($did,'eb_dealPeriodDuration', $newDealPeriodDuration); 86 if($newDealPeriodCost!= '') update_post_meta($did,'eb_dealPeriodCost', $newDealPeriodCost); 87 if($newDealPersentCost!= '') update_post_meta($did,'eb_dealPersentCost', $newDealPersentCost); 88 } 89 else { 90 $hasErrors = true; 91 $errorMessage .= '<p><em>This deal could not be updated. Please try again or contact your system developer</em></p>'; 92 } 93 } 94 else{ 95 $hasErrors = true; 96 $errorMessage .= '<p><em>The name you entered for this deal already exists. Please try again using a different name</em></p>'; 97 } 98 }//end if !='' 99 if($hasErrors) { 100 echo '<div class="error">'.$errorMessage.'</div>'; 101 }else{ 102 ?> 103 <script type="text/javascript" > 104 var url = "<?php echo get_admin_url() .'admin.php?page='.$_REQUEST['page'].'&action=updated';?>"; 105 window.location = url; 106 </script> 107 <?php 108 } 109 110 } 111 112 //=========================================================================== 113 //===========================END EDIT DEAL=================================== 114 115 116 ?> 117 <h2>Package Deals</h2> 118 <table class="widefat"> 119 <thead> 120 <tr> 121 <th colspan="7"> 122 <strong>Package Deals</strong> <i>(<?php echo sizeof($allDeals); ?> Packages)</i> 123 </th> 124 </tr> 125 <tr> 126 <th></th><th>Deal Title</th><th>Period Cost</th><th>Period Duration</th><th>Percentage per Booking </th><th title="Make it your default package deal">Default</th><th>Edit</th> 127 128 </tr> 129 </thead> 130 <tbody> 131 <?php 132 $dealCounter = 1; 133 foreach($allDeals as $deal){ 134 135 $periodDuration = get_post_meta($deal->ID,'eb_dealPeriodDuration'); 136 if(empty($periodDuration)) $periodDuration = 0; else $periodDuration = $periodDuration[0]; 137 $periodCost = get_post_meta($deal->ID,'eb_dealPeriodCost'); 138 if(empty($periodCost)) $periodCost = 0; else $periodCost = $periodCost[0]; 139 $percent = get_post_meta($deal->ID,'eb_dealPersentCost'); 140 if(empty($percent)) $percent = 0; else $percent = $percent[0]; 141 echo '<form method="post" action="admin.php?page='.$_REQUEST['page'].'&action=edit&did='.$deal->ID.'">'; 142 echo '<tr>'; 143 echo '<td>'.$dealCounter.'</td>'; 144 echo '<td><input type="text" name="editDealTitle" value="'.$deal->post_title.'"></td>'; 145 //echo '<td><input type="text" name="editDealPeriodCost" value="'.$periodCost.'" style="width:50px;" onkeypress="return priceNumbersOnlyForDeals(event)"> '.$siteCurrency.'</td>'; 146 echo '<td><b>'.$periodCost.' '.$siteCurrency.'</b></td>'; 147 echo '<td>'; 148 echo '<b>'.$periodDuration.'</b> months'; 149 echo '</td>'; 150 echo '<td>'; 151 echo '<b>'.$percent.'%</b>'; 152 echo '</td>'; 153 $defaultPackDeal = get_post_meta($deal->ID,'eb_defaultPackDeal'); 154 if(empty($defaultPackDeal)) $defaultPackDeal = ''; else $defaultPackDeal = $defaultPackDeal[0]; 155 $checkDefault = ''; 156 if($defaultPackDeal != '' && $defaultPackDeal == $deal->ID) $checkDefault = 'checked'; 157 echo '<td title="Make '.$deal->post_title.' your default deal. It will be used when a new business is created."><input type="checkbox" onclick="setDefaultDeal('.$deal->ID.')" '.$checkDefault.' /></td>'; 158 echo '<td><input type="submit" value="Save changes"></td>'; 159 echo '</tr>'; 160 echo '</form>'; 161 $dealCounter++; 162 } 163 164 ?> 165 </tbody> 166 </table> 167 <script type="text/javascript" > 168 function setDefaultDeal(dealID){ 169 document.location= "admin.php?page=busines_deals&sdef="+dealID; 170 }; 171 172 function priceNumbersOnlyForDeals(evt){ 173 var charCode = (evt.which) ? evt.which : event.keyCode; 174 if (charCode == 46 ) return true;//teleia 175 if (charCode == 44 ) return true;//comma 176 if (charCode > 31 && (charCode < 48 || charCode > 57)) 177 return false; 178 179 return true; 180 } 181 182 </script> -
wp-easybooking/trunk/admin/businesses_bookings.php
r648905 r649393 166 166 init_plugin_name(); 167 167 function init_plugin_name(){ 168 wp_enqueue_script('flotscript', WP_PLUGIN_URL . '/wp _easybooking/js/jquery.flot.min.js', array('jquery'));169 wp_enqueue_script('excanvasscript', WP_PLUGIN_URL . '/wp _easybooking/js/excanvas.min.js', array('jquery'));168 wp_enqueue_script('flotscript', WP_PLUGIN_URL . '/wp-easybooking/js/jquery.flot.min.js', array('jquery')); 169 wp_enqueue_script('excanvasscript', WP_PLUGIN_URL . '/wp-easybooking/js/excanvas.min.js', array('jquery')); 170 170 171 171 } … … 189 189 function getBAvailability(bID, bTitle, addMonths){ 190 190 jQuery("#chartBusinessTitle").html(bTitle); 191 jQuery("#businessAvailabilityDiv").html("<div style='width:100%' align='center'><img src='<?php echo WP_CONTENT_URL;?>/plugins/wp _easybooking/images/loaderMedium.gif'></div>");191 jQuery("#businessAvailabilityDiv").html("<div style='width:100%' align='center'><img src='<?php echo WP_CONTENT_URL;?>/plugins/wp-easybooking/images/loaderMedium.gif'></div>"); 192 192 jQuery.ajax({ 193 193 type: "POST", 194 url: "../wp-content/plugins/wp _easybooking/classes/businessAvailability.class.php",194 url: "../wp-content/plugins/wp-easybooking/classes/businessAvailability.class.php", 195 195 data: "usrLevel=<?php echo $current_user->wp_user_level; ?>&bID="+bID+"&bTitle="+bTitle+"&aPath=<?php echo $absPath; ?>&pref=<?php echo $table_prefix; ?>&sMonth="+addMonths, 196 196 success: function(resp){ -
wp-easybooking/trunk/admin/businesses_list.php
r648905 r649393 44 44 If there is any content in that business you can view it by pressing on the "View" button at this column. You can also insert some content by pressing on the "Add" button.</p> 45 45 <p>If there is any booking Pending you can see it in the next column of the list, which also shows the total number of bookings made from this website.</p> 46 46 <p>The last column shows the balance of the business. If the business owes to the website, the amount will be coloured with red, and by pressing the button "Balance details" you will be redirected to the "Billing history" tab of the business.</p> 47 47 <p></p> 48 48 <p>If the list is to long, you can select to view business by their type (eg. Hotels only) or if you have the Privileges by owner, from the selection boxes on top of the list.</p> … … 176 176 echo '<div id="message" class="success"><p><strong>Business deleted successfully</strong></p></div>'; 177 177 else echo '<div id="message" class="error"><p><strong>The business you are trying to delete does not exist...</strong></p></div>'; 178 //echo ABSPATH.'wp-content/plugins/wp_easybooking/images/businessImg/<br>molis olokklhrw8oun ta rooms, rentals k cruises prepei na diagrafomtai k ayta me tis eikones tous';179 178 } 180 179 … … 318 317 <th>Content</th> 319 318 <th>Bookings</th> 320 319 <th>Balance</th> 321 320 </tr> 322 321 </thead> … … 351 350 <th>Content</th> 352 351 <th>Bookings</th> 352 <th>Balance</th> 353 353 </tr> 354 354 </tfoot> … … 392 392 if(!empty($businesses)){ 393 393 $busCount = $eb_listLimit*($p->page - 1) + 1; 394 $businessIDsForBalanceReporter = ''; 394 395 foreach($businesses as $business){ 395 396 $owner = $wpdb->get_row('select ID, user_login, user_email from '.$table_prefix.'users where ID = '.$business->post_author); 396 397 if(!empty($owner)){ 397 398 $bBookings = $wpdb->get_var("SELECT COUNT(bookingID) from eb_bookingdata where businessID =". $business->ID); 399 $businessIDsForBalanceReporter .= "|".$business->ID; 398 400 $bBookingsPending = $wpdb->get_var("SELECT COUNT(bookingID) from eb_bookingdata where businessID =". $business->ID.' and booking_status = "Pending"'); 399 401 … … 483 485 echo '<td>'.$serviceStr.'</td>'; 484 486 echo '<td>'.$bookStr.'</td>'; 487 echo '<td><em>No report available</em></td>'; 485 488 echo '</tr>'; 486 489 $busCount++; 487 490 }else echo 'There seems that business '.$business->post_title. ' exists with no owner. You might need to check it out'; 488 491 } 492 echo '<input type= "hidden" id="businessIDsForBalanceReporter" value="'.$businessIDsForBalanceReporter.'">'; 489 493 } 490 494 … … 513 517 514 518 <script type="text/javascript" > 519 jQuery(".balanceReporterDiv").html('<img src="<?php echo WP_CONTENT_URL;?>/plugins/wp-easybooking/images/ajax-loader.gif" />'); 520 jQuery(document).ready(function(){ 521 522 }); 523 515 524 function fetchType(){ 516 525 var b_type = jQuery("#select_busType").val(); -
wp-easybooking/trunk/admin/rooms.php
r648905 r649393 302 302 <div id="logoUploadArea"> 303 303 <p id="result"></p> 304 <p id="f1_upload_process" style="display:none">Loading...<br/><img src="<?php echo WP_CONTENT_URL;?>/plugins/wp _easybooking/images/ajax-loader.gif" /></p>304 <p id="f1_upload_process" style="display:none">Loading...<br/><img src="<?php echo WP_CONTENT_URL;?>/plugins/wp-easybooking/images/ajax-loader.gif" /></p> 305 305 <!-- bID is in this page the room id. we use the same function thats why we use the same variables--> 306 306 <?php … … 905 905 function getAvailability(addMonths){ 906 906 907 jQuery("#availabilitySect").html("<div style='width:100%' align='center'><img src='<?php echo WP_CONTENT_URL;?>/plugins/wp _easybooking/images/loaderMedium.gif'></div>").show();907 jQuery("#availabilitySect").html("<div style='width:100%' align='center'><img src='<?php echo WP_CONTENT_URL;?>/plugins/wp-easybooking/images/loaderMedium.gif'></div>").show(); 908 908 if(!addMonths) addMonths = 0; 909 909 <?php … … 915 915 jQuery.ajax({ 916 916 type: "POST", 917 url: "../wp-content/plugins/wp _easybooking/classes/roomAvailability.class.php",917 url: "../wp-content/plugins/wp-easybooking/classes/roomAvailability.class.php", 918 918 data: "sID=<?php echo $_REQUEST['rID']; ?>&sMonth="+addMonths+"&aPath="+abspath+"&pref=<?php echo $table_prefix; ?>", 919 919 success: function(resp){ -
wp-easybooking/trunk/admin/translate.php
r648905 r649393 13 13 ?>'; 14 14 15 $transFile = ABSPATH.'wp-content/plugins/wp _easybooking/widgets/trans-vars/'.$fname.'.trans.php';15 $transFile = ABSPATH.'wp-content/plugins/wp-easybooking/widgets/trans-vars/'.$fname.'.trans.php'; 16 16 if (file_exists($transFile)) { 17 17 global $q_config; … … 77 77 78 78 function transFrontEnd($filename, $title){ 79 $transFile = ABSPATH.'wp-content/plugins/wp _easybooking/widgets/trans-vars/'.$filename.'.trans.php';79 $transFile = ABSPATH.'wp-content/plugins/wp-easybooking/widgets/trans-vars/'.$filename.'.trans.php'; 80 80 if (file_exists($transFile)) { 81 81 global $q_config; -
wp-easybooking/trunk/classes/calendar.class.php
r648905 r649393 1 1 <?php 2 2 if(isset($_POST['addMonths']) && isset($_POST['ABSPATH']) && isset($_POST['pluginFolderName'])){ 3 include_once($_POST['ABSPATH'].'wp-content/plugins/wp _easybooking/classes/calendar.class.php');3 include_once($_POST['ABSPATH'].'wp-content/plugins/wp-easybooking/classes/calendar.class.php'); 4 4 $calendar = new bookingCalendar; 5 5 $curMonth = 0; … … 273 273 jQuery.ajax({ 274 274 type: "POST", 275 url: "../wp-content/plugins/wp _easybooking/classes/calendar.class.php",276 data: "addMonths=&ABSPATH="+absolutePath+"&pluginFolderName=wp _easybooking&monthCounter=<?php echo $monthCounter;?>&defineRange="+defineRange+"&startRange="+jQuery('#eb_dateRangeStart').val()+"&endRange="+jQuery('#eb_dateRangeEnd').val()+"&startOperatingPeriod="+jQuery('#startOperatingPeriod').val()+"&endOperatingPeriod="+jQuery('#endOperatingPeriod').val(),275 url: "../wp-content/plugins/wp-easybooking/classes/calendar.class.php", 276 data: "addMonths=&ABSPATH="+absolutePath+"&pluginFolderName=wp-easybooking&monthCounter=<?php echo $monthCounter;?>&defineRange="+defineRange+"&startRange="+jQuery('#eb_dateRangeStart').val()+"&endRange="+jQuery('#eb_dateRangeEnd').val()+"&startOperatingPeriod="+jQuery('#startOperatingPeriod').val()+"&endOperatingPeriod="+jQuery('#endOperatingPeriod').val(), 277 277 success: function(resp){ 278 278 //alert('yoo: '+resp); -
wp-easybooking/trunk/readme.txt
r648905 r649393 1 ===wp _easybooking===1 ===wp-easybooking=== 2 2 Contributors: Panos Lyrakis 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=L8SHL3M7CYVCJ 4 Tags: booking, reservation, hotel, multihotel, multilingual, billing management 4 Tags: booking, reservation, hotel, multihotel, multilingual, billing management, multi hotel 5 5 Requires at least: 3.4 6 6 Tested up to: 3.5 7 Stable tag: 1.0. 07 Stable tag: 1.0.1 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 wp _easybooking plugin addshotel and booking management features.11 wp-easybooking plugin adds multiple-hotel and booking management features. 12 12 13 13 == Description == 14 14 15 The **wp _easybooking** plugin gives you the ability to create and manage hotels, hotel owners and bookings.15 The **wp-easybooking** plugin gives you the ability to create and manage multiple hotels, hotel owners and bookings. 16 16 17 It supports any language with the help of the free qTranslate plugin. Also provides an area at the administration areaso you can translate every message of the widget, for each language enabled. No .po files, and no .mo files, so no need for Poedit...17 It supports any language with the help of the free qTranslate plugin. Also provides an area at the administration panel so you can translate every message of the widget, for each language enabled. No .po files, and no .mo files, so no need for Poedit... 18 18 19 19 Gets currencies rates from the European Central Bank and converts all prices automatically. 20 20 21 The wp _easybooking widget is included so users may search for hotels and make their bookings. The search form includes an ajax pop up window with suggestions of Cities, Countries or Hotels that match the search term.21 The wp-easybooking widget is included so users may search for hotels and make their bookings. The search form includes an ajax pop up window with suggestions of Cities, Countries or Hotels that match the search term. 22 22 23 23 Users that have completed a booking receive a 4 digit PIN by email so that they may view their booking on-line. … … 59 59 == Installation == 60 60 61 1. Unzip the file you downloaded (wp _easybooking).62 2. Upload the 'wp _easybooking' folder to the '/wp-content/plugins/' directory.61 1. Unzip the file you downloaded (wp-easybooking.1.0.1.zip). 62 2. Upload the 'wp-easybooking' folder to the '/wp-content/plugins/' directory. 63 63 3. Activate the 'Easy Booking' plugin through the 'Plugins' menu in WordPress. 64 64 4. Activate the 'Easy Booking Widget' widget through the 'Plugins' menu in WordPress. 65 65 66 66 *Please make sure that you first activate the plugin and then activate the widget.* 67 68 You can find more information here <http://wp-easybooking.com/content/6-install-plugin>, and instructions on how to set up the plugin here <http://wp-easybooking.com/content/7-settings>. You can also read this information at the instructions.pdf file. 69 67 70 68 71 == Screenshots == … … 80 83 == Frequently Asked Questions == 81 84 = I can't add new cities from the quick add form, located at the business's (Hotel's) page = 82 To enable this feature you have to install the qTranslate plugin, it's one of the best translation plugins and it's free. The qTranslate plugin should be installed in order the wp_easybooking plugin to function properly. 85 To enable this feature you have to install the qTranslate plugin, it's one of the best translation plugins and it's free. The qTranslate plugin should be installed in order the wp-easybooking plugin to function properly. 86 87 = Is it necessary to install the qTranslate plugin, even if my site is not multilingual? = 88 Yes it is. The wp-easybooking plugin uses qTranslate's functions in several cases, so if you do not install it the plugin will have errors. 89 If your site is not multilingual, you still have to install and activate qTranslate, but don't enable the 'qTranslate language chooser' widget at Appearance/Widgets. 90 91 = Can I use a different plugin for translations, or I have to use qTranslate only? = 92 The wp-easybooking plugin uses functions of qTranslate for translations. So no other translation plugin will do, only qTranslate. 83 93 84 94 = I can not select any owner for my hotel = … … 92 102 4. You have to publish the hotel by pressing the 'Publish' button at the top of the business's page. 93 103 104 = When I search for hotels, there are no rooms and no prices shown at the results page (nor the hotels page), just plain hotel names, even if I have added rooms and prices for them. = 105 This may happen for two reasons. First, you have not set the website's currency from the 'Easy Booking' menu. Second, you have not selected a business pack/ package deal for your hotels. 106 At the top of the hotel's page there is a selection box with the available business packages options, from which you have to select one. For the free version it doesn't matter which one you select. 107 108 = When I activate the plugin and widget, there are several pages added at the menu bar. But when I click on them nothing appears. = 109 The plugin creates these several pages in order to use them for displaying specific content. 110 In the instructions.pdf (or at <http://wp-easybooking.com>) you will see that you have to create a new menu (from Appearance/ Menus), and add only the specific pages or post you want, excluding the pages the plugin created. 111 In some themes, these pages will still be visible at the menu bar. In that case you have to install a plugin to exclude pages from the manu bar. There are several free plugins to do that. 112 113 = When activating the widget, the text in the buttons and labels of the search form appears in many languages, and it is not readable. = 114 This is because the plugin comes with some translations. This will be fixed once you install the qTranslate plugin. 115 116 = Why do I see 'No report available' at the Balance column at the Businesses List? = 117 The free version does not calculate the fee that Hotel Owners owe you. That's why it can not display any report. 118 119 = Since the free version does not calculate Hotel Owner's fees, why do I have to select a 'Package Deal' for every hotel? = 120 The main (premium) version of this plugin, uses the package deal of the hotel at several procedures. 121 The free version is just limited at the reports, but the calculations are the same. That's why you have to select a Package Deal for each hotel. 122 123 = Can I add new Package Deals? = 124 No. This operation has been excluded from the free version. 125 126 = How can I change the text 'Resort Search Results', that appears at the top of the results page? = 127 From the 'Pages' menu of WordPress, select the 'Resort Search Results' page and change it's title to whatever you like. 128 Same goes for the rest of the pages. 129 Be careful though and leave the content as is, change only the titles. 130 131 = How can I add a new language? = 132 From the qTranslate settings. 133 134 = How can I translate the messages of the widget to a language I added, or change the translations that already exist? = 135 From the 'Translations' menu of the Easy Booking plugin. All messages are categorised depending on the page they appear. 136 So press on 'Search Form' to translate the messages that appear on the search form, at every language, 'Search Results Page' for messages that appear on the results page etc... 137 138 = Are there any other plugins that extend this plugin's functionality? = 139 There are some planned to be ready within the next few months (Rating, Hotels offers etc.), but they will not be free. They will be announced at <http://wp-easybooking.com>. 140 141 = How can I change the colours and the way the pages are displayed? = 142 Most of the colours can be changed from the 'eb_widgetStyle.css' file, but you have to be familiar with css. 143 There will be support packs, with low costs, available soon at <http://wp-easybooking.com>, which you can purchase. 144 If you do not find any pack that fits your needs I would be more than happy if you contact me at [email protected]. 145 146 = How can I get any help if I face any problem? = 147 Visit <http://wp-easybooking.com> for complete documentation. If you still have any problems or need extra functionality please contact me at [email protected]. 148 149 94 150 == Changelog == 95 151 96 = 1.0 = 152 = 1.0.1 = 153 *Base plugin dir changed to wp-easybooking (from wp_easybooking) 154 *Enabled selection of default packages, in order the prices of rooms to be calculated correctly from the widget. 155 156 = 1.0.0 = 97 157 * Fixed search result links to include date ranges and number of guests. 98 158 * Added google map feature. -
wp-easybooking/trunk/widgets/ajaxProposeLocation.php
r648905 r649393 15 15 include_once($aPath.'wp-load.php'); 16 16 include_once($aPath.'wp-includes/wp-db.php'); 17 if( !include_once($aPath.'wp-content/plugins/wp _easybooking/widgets/trans-vars/search_form.trans.php') ) echo '';17 if( !include_once($aPath.'wp-content/plugins/wp-easybooking/widgets/trans-vars/search_form.trans.php') ) echo ''; 18 18 ?> 19 19 <div class="general-title"><span class="location-suggestions"><strong><?php echo getLanguageTitle( $eb_lang_Suggestions, $lang, $defaultLang);?></strong></span> -
wp-easybooking/trunk/widgets/ajaxSearchDestinations.php
r648905 r649393 102 102 function __construct($locationTypeVal, $locationIDVal, $locationVal, $hasDatesVal, $fromVal, $toVal, $adultsNumVal, $childrenNumVal, $babiesNumVal, $table_prefixVal, $langVal, $defaultLangVal, $cur, $aPath, $rpage, $orderby, $ordertype){ 103 103 $this->limit = 10; 104 include_once($aPath.'wp-content/plugins/wp _easybooking/widgets/trans-vars/search_results.trans.php');104 include_once($aPath.'wp-content/plugins/wp-easybooking/widgets/trans-vars/search_results.trans.php'); 105 105 106 106 $this->curPage = $rpage; … … 424 424 $resortPageID = get_option('eb-view-resort'); 425 425 if($businessLogo[0] != ''){ 426 /*$resortReport .= ' 427 <div class="eb_column_img"><a class="thickbox" title='; 428 $resortReport .= '"'.__( $result->post_title ).'"'; 429 $resortReport .= ' style="padding-right:10px;" href="'. WP_CONTENT_URL .'/plugins/wp_easybooking/images/businessImg/'. $businessLogo[0].'"><img src = "'.WP_CONTENT_URL.'/plugins/wp_easybooking/images/businessImg/thumbs/'.$businessLogo[0].'" /></a></div> 430 ';*/ 426 431 427 } 432 428 … … 445 441 //$resortReport .= '<a href="'.$permalink.'&t='.$seoTitle.'&eb=resort&b='.$result->ID.$extendedURL.'" title="'.__($result->post_title).'">'.__($result->post_title).'</a>'; 446 442 $resortReport .= '<a class="link-button" onclick="goToResortPage(\''.$permalink.'&t='.$seoTitle.'&b='.$result->ID.$extendedURL.'\')" title="'.__($result->post_title).'">'.__($result->post_title).'</a>'; 447 $resortReport .= ' <img src = "'.WP_CONTENT_URL.'/plugins/wp _easybooking/images/stars/'.$stars[0].'star-small.png" height="12px" title="'.$stars[0].' stars" />';443 $resortReport .= ' <img src = "'.WP_CONTENT_URL.'/plugins/wp-easybooking/images/stars/'.$stars[0].'star-small.png" height="12px" title="'.$stars[0].' stars" />'; 448 444 $resortReport .= '</h1>'; 449 445 … … 466 462 467 463 $resortReport .= '<div style="width:600px;margin-top:0px;"> '; 468 $resortReport .= '<a style="float:left;padding-right:10px;" class="link-button" title="'.__( $result->post_title ).'" onclick="goToResortPage(\''.$permalink.'&t='.$seoTitle.'&b='.$result->ID.$extendedURL.'\')"><img src = "'.WP_CONTENT_URL.'/plugins/wp _easybooking/images/businessImg/thumbs/'.$businessLogo[0].'" /></a>';464 $resortReport .= '<a style="float:left;padding-right:10px;" class="link-button" title="'.__( $result->post_title ).'" onclick="goToResortPage(\''.$permalink.'&t='.$seoTitle.'&b='.$result->ID.$extendedURL.'\')"><img src = "'.WP_CONTENT_URL.'/plugins/wp-easybooking/images/businessImg/thumbs/'.$businessLogo[0].'" /></a>'; 469 465 $resortReport .= '<span class="resort-description-at-results-page">'.substr( strip_tags( $this->getLanguageTitle( $result->post_content, $this->lang, $this->defaultLang) ), 0, 200).' <a class="more-link" onclick="goToResortPage(\''.$permalink.'&t='.$seoTitle.'&b='.$result->ID.$extendedURL.'\')"><em style="font-size:10px">'.$this->getLanguageTitle( $this->lang_More, $this->lang, $this->defaultLang).'</em></a></span>'; 470 466 //$resortReport .= '<p><a onclick="goToResortPage(\''.$permalink.'&t='.$seoTitle.'&b='.$result->ID.$extendedURL.'\')" class="eb-search-button little">'.__( 'Book now' ) .'</a></p>'; … … 583 579 } 584 580 } 585 586 if( ( !empty($this->adults) && $adultsInRoom >= min($this->adults)) && ( !empty($this->children) && $childrenInRoom >= min($this->children)) && $childrenInRoom >= min($this->babies)){ 581 $localMinAdults = 1; 582 $localMinChildren = 0; 583 $localMinBabies = 0; 584 if( $this->adults ) $localMinAdults = min($this->adults); 585 if( $this->children ) $localMinChildren = min($this->children); 586 if( $this->babies ) $localMinBabies = min($this->babies); 587 588 if( $adultsInRoom >= $localMinAdults && $childrenInRoom >= $localMinChildren && $childrenInRoom >= $localMinBabies){ 587 589 $roomPrice = '-'; 588 590 if( $this->hasDates != 'no' && $switch != 'ROOMCOUNTONLY' ) $roomPrice = $this->roomPrice( $bID, $roomType->ID, $fromDate, $toDate ); -
wp-easybooking/trunk/widgets/booking_page.php
r648905 r649393 17 17 $bcur = $wpdb->get_row('select meta_value from '.$table_prefix.'postmeta where post_id = '.$bID.' and meta_key = "eb_currency"'); 18 18 $bcur = $bcur->meta_value; 19 19 20 if( $ccur == htlcur ){ 21 $ccur = $bcur; 22 } 23 20 24 $lang = 'en'; 21 25 //if( isset( $_REQUEST['lang'] ) && $_REQUEST['lang'] != '' ) $lang = addslashes( $_REQUEST['lang'] ); … … 31 35 ?> 32 36 <form action="<?php echo $permalink; ?>lang=<?php echo $lang; ?>" method="post" onsubmit="return checkBookingData();"> 37 <!--<form action="<?php echo $permalink; ?>lang=<?php echo $lang; ?>" method="post" onsubmit="alert('Sorry friend, bookings not allowed in Demo version!!');return false;">--> 33 38 <?php 34 39 $roomsSelected = 0; 35 40 36 include_once(ABSPATH.'wp-content/plugins/wp _easybooking/widgets/trans-vars/booking.trans.php');41 include_once(ABSPATH.'wp-content/plugins/wp-easybooking/widgets/trans-vars/booking.trans.php'); 37 42 38 43 $interval = date_diff(date_create( $from ), date_create( $to ) ); … … 174 179 <div class="general-title"><?php _e($eb_lang_BookingDetails);?></div> 175 180 <div> 176 <div class="resort-image-title" style="background-image:url(<?php echo WP_CONTENT_URL; ?>/plugins/wp _easybooking/images/businessImg/<?php echo $businessLogo[0];?>)">181 <div class="resort-image-title" style="background-image:url(<?php echo WP_CONTENT_URL; ?>/plugins/wp-easybooking/images/businessImg/<?php echo $businessLogo[0];?>)"> 177 182 <div class="resort-title"></div> 178 183 </div> 179 184 <div style="float:left;padding-left:10px;color: #48f;"> 180 <strong><?php echo $businessData->post_title.' <img src = "'.WP_CONTENT_URL.'/plugins/wp _easybooking/images/stars/'.$stars[0].'star-small.png" height="12px" title="'.$stars[0].' stars" />'; ?></strong>185 <strong><?php echo $businessData->post_title.' <img src = "'.WP_CONTENT_URL.'/plugins/wp-easybooking/images/stars/'.$stars[0].'star-small.png" height="12px" title="'.$stars[0].' stars" />'; ?></strong> 181 186 <div style="font-size:12px;"> 182 187 <?php _e( $address. ' '. $addressNumber );?><br /> … … 317 322 <div class="room-price-area" style="clear:both;"> 318 323 <input type="checkbox" id="terms-checkbox" onchange="activateCompleteBooking();" /> 319 <span><label for="terms-checkbox"><?php _e( $eb_lang_ReadThe ); ?> </label> <a onclick="showTerms();"><?php _e( $eb_lang_TermsAndConditions ); ?></a> <label for="terms-checkbox"><?php _e( $eb_lang_AndIAgree ); ?>.</label></span>324 <span><label for="terms-checkbox"><?php _e( $eb_lang_ReadThe ); ?> <a onclick="showTerms();"><?php _e( $eb_lang_TermsAndConditions ); ?></a> <?php _e( $eb_lang_AndIAgree ); ?>.</label></span> 320 325 </div> 321 326 <div id="terms-area" class="terms-area"> -
wp-easybooking/trunk/widgets/booking_report.php
r648905 r649393 70 70 <input name="return" type="hidden" value="<?php echo stripslashes($return_url); ?>" /> 71 71 <input name="cancel_return" type="hidden" value="<?php echo stripslashes($cancel_url); ?>" /> 72 <input name="notify_url" type="hidden" value="<?php echo $siteURL; ?>/wp-content/plugins/wp _easybooking/widgets/paypal_functions.php" />72 <input name="notify_url" type="hidden" value="<?php echo $siteURL; ?>/wp-content/plugins/wp-easybooking/widgets/paypal_functions.php" /> 73 73 <!--<input name="notify_url" type="hidden" value="<?php echo stripslashes($return_url); ?>" />--> 74 74 <!--return with post--> … … 89 89 $bookID = makeBooking( $pin ); 90 90 91 include_once(ABSPATH.'wp-content/plugins/wp _easybooking/widgets/load_booking.php');91 include_once(ABSPATH.'wp-content/plugins/wp-easybooking/widgets/load_booking.php'); 92 92 93 93 $page_id = get_option('eb-view-bookings'); -
wp-easybooking/trunk/widgets/business_data.php
r648905 r649393 100 100 function rooms(){ 101 101 global $wpdb; 102 include(ABSPATH.'wp-content/plugins/wp _easybooking/widgets/trans-vars/resort.trans.php');102 include(ABSPATH.'wp-content/plugins/wp-easybooking/widgets/trans-vars/resort.trans.php'); 103 103 $resortPageID = get_option('eb-view-resort'); 104 104 … … 168 168 if( $roomImagesAr[$ic] != ''){ 169 169 $roomImages .= '<span style="padding:2px;"> 170 <a class="thickbox" href="'.WP_CONTENT_URL.'/plugins/wp _easybooking/images/RoomImg/'.$roomImagesAr[$ic].'">171 <img class="room-img-item" width="100px;" style="overflow: auto;" src = "'.WP_CONTENT_URL.'/plugins/wp _easybooking/images/RoomImg/thumbs/'.$roomImagesAr[$ic].'">170 <a class="thickbox" href="'.WP_CONTENT_URL.'/plugins/wp-easybooking/images/RoomImg/'.$roomImagesAr[$ic].'"> 171 <img class="room-img-item" width="100px;" style="overflow: auto;" src = "'.WP_CONTENT_URL.'/plugins/wp-easybooking/images/RoomImg/thumbs/'.$roomImagesAr[$ic].'"> 172 172 </a> 173 173 </span>'; … … 186 186 foreach( $f as $facility ){ 187 187 $roomFacilities .= '<a style="padding: 5px;" title ="'.$facility->facility_description.'">'; 188 if( $facility->image!= '' ) $roomFacilities .= '<img src = "'.WP_CONTENT_URL.'/plugins/wp _easybooking/images/icons/'.$facility->image.'" />';188 if( $facility->image!= '' ) $roomFacilities .= '<img src = "'.WP_CONTENT_URL.'/plugins/wp-easybooking/images/icons/'.$facility->image.'" />'; 189 189 $roomFacilities .= $facility->facility_name.'</a>'; 190 190 } … … 197 197 $resp .= '<td valign="top" style="border:none;padding-left:10px;"> 198 198 <a class="room-details-btn" onclick = "showRoomDetails('.$room->ID.')" title="'.__($room->post_title).'"> 199 <div class="room-title-area" style="background-image:url('.WP_CONTENT_URL.'/plugins/wp _easybooking/images/RoomImg/thumbs/'.$roomLogo[0].')">199 <div class="room-title-area" style="background-image:url('.WP_CONTENT_URL.'/plugins/wp-easybooking/images/RoomImg/thumbs/'.$roomLogo[0].')"> 200 200 <strong style="color:#fff">'.__($room->post_title).'</strong> <span class="room-details-label">'.__( $eb_lang_Details ).'</span> 201 201 </div> -
wp-easybooking/trunk/widgets/businesses_list_results.php
r648905 r649393 1 1 <a id="eb-results-top-point"></a> 2 2 <?php 3 include_once( ABSPATH.'wp-content/plugins/wp _easybooking/widgets/trans-vars/search_results.trans.php' );3 include_once( ABSPATH.'wp-content/plugins/wp-easybooking/widgets/trans-vars/search_results.trans.php' ); 4 4 global $table_prefix; 5 5 global $eb_path; … … 17 17 $locationID = addslashes( $_POST['lid'] ); 18 18 19 $pluginfolder = get_bloginfo('url') . '/' . PLUGINDIR . '/wp _easybooking/';19 $pluginfolder = get_bloginfo('url') . '/' . PLUGINDIR . '/wp-easybooking/'; 20 20 $result_page_ID = get_option('eb-location-result-page'); 21 21 … … 138 138 ?> 139 139 <div id="loading_while_searcing" style="width:100%" align="center"> 140 <img src="<?php echo WP_CONTENT_URL . '/plugins/wp _easybooking/images/widget-loader.gif'; ?>" alt="Loading" >140 <img src="<?php echo WP_CONTENT_URL . '/plugins/wp-easybooking/images/widget-loader.gif'; ?>" alt="Loading" > 141 141 <br /> 142 142 <?php _e('Please wait while searching', 'easybooking')?> -
wp-easybooking/trunk/widgets/load_booking.php
r648905 r649393 396 396 <input name="return" type="hidden" value="<?php echo stripslashes($return_url); ?>" /> 397 397 <input name="cancel_return" type="hidden" value="<?php echo stripslashes($cancel_url); ?>" /> 398 <input name="notify_url" type="hidden" value="<?php echo $siteURL; ?>/wp-content/plugins/wp _easybooking/widgets/paypal_functions.php" />398 <input name="notify_url" type="hidden" value="<?php echo $siteURL; ?>/wp-content/plugins/wp-easybooking/widgets/paypal_functions.php" /> 399 399 <!--return with post--> 400 400 <input type="hidden" name="custom" value="<?php echo $pin; ?>" /> -
wp-easybooking/trunk/widgets/load_business.php
r648905 r649393 5 5 global $ebPluginFolderName; 6 6 7 include_once(ABSPATH.'wp-content/plugins/wp _easybooking/widgets/trans-vars/resort.trans.php');7 include_once(ABSPATH.'wp-content/plugins/wp-easybooking/widgets/trans-vars/resort.trans.php'); 8 8 $location = addslashes( $_POST['location'] ); 9 9 $locationType = addslashes( $_POST['type'] ); … … 72 72 $stars = get_post_meta($bID, "eb_stars"); 73 73 74 echo '<h1 class="resort-title"><a>'.$business->post_title.'</a> <img src = "'.WP_CONTENT_URL.'/plugins/wp _easybooking/images/stars/'.$stars[0].'star-small.png" height="12px" title="'.$stars[0].' stars" /></h1>';74 echo '<h1 class="resort-title"><a>'.$business->post_title.'</a> <img src = "'.WP_CONTENT_URL.'/plugins/wp-easybooking/images/stars/'.$stars[0].'star-small.png" height="12px" title="'.$stars[0].' stars" /></h1>'; 75 75 _e( '<div class="resort-location-at-results-page">'.$address.' '.$addressNumber.'<br />'.$city.', '.$country.'</div>'); 76 76 ?> … … 85 85 ?> 86 86 <div class="mainImageContainer"> 87 <a class="thickbox" title="<?php echo $business->post_title; ?>" style="padding-right:10px;" href="<?php echo WP_CONTENT_URL; ?>/plugins/wp _easybooking/images/businessImg/<?php echo $businessLogo[0]; ?>">88 <div class="business-mains-logo-area" style="background-image:url('<?php echo WP_CONTENT_URL; ?>/plugins/wp _easybooking/images/businessImg/thumbs/<?php echo $businessLogo[0]; ?>')">87 <a class="thickbox" title="<?php echo $business->post_title; ?>" style="padding-right:10px;" href="<?php echo WP_CONTENT_URL; ?>/plugins/wp-easybooking/images/businessImg/<?php echo $businessLogo[0]; ?>"> 88 <div class="business-mains-logo-area" style="background-image:url('<?php echo WP_CONTENT_URL; ?>/plugins/wp-easybooking/images/businessImg/thumbs/<?php echo $businessLogo[0]; ?>')"> 89 89 </div> 90 <!--<img src = "<?php echo WP_CONTENT_URL; ?>/plugins/wp_easybooking/images/businessImg/thumbs/<?php echo $businessLogo[0]; ?>" />-->91 90 </a> 92 91 </div> … … 98 97 ?> 99 98 <div style="float:left;height:40px;border:1px solid #fff;"> 100 <a class="thickbox" title="<?php echo $business->post_title; ?>" style="" href="<?php echo WP_CONTENT_URL; ?>/plugins/wp_easybooking/images/businessImg/<?php echo $businessImages[$i]; ?>"> 101 <img width="70px" src="<?php echo WP_CONTENT_URL; ?>/plugins/wp_easybooking/images/businessImg/thumbs/<?php echo $businessImages[$i]; ?>" /> 102 <!--<div class="business-img-item" style="background-image:url('<?php echo WP_CONTENT_URL; ?>/plugins/wp_easybooking/images/businessImg/thumbs/<?php echo $businessImages[$i]; ?>')"> 103 </div>--> 99 <a class="thickbox" title="<?php echo $business->post_title; ?>" style="" href="<?php echo WP_CONTENT_URL; ?>/plugins/wp-easybooking/images/businessImg/<?php echo $businessImages[$i]; ?>"> 100 <img width="70px" src="<?php echo WP_CONTENT_URL; ?>/plugins/wp-easybooking/images/businessImg/thumbs/<?php echo $businessImages[$i]; ?>" /> 104 101 </a> 105 102 </div> … … 178 175 ?> 179 176 <div class="resort-data-area" id="resort-data-area-1" style="display:block;"> 180 <div class="general-title" style="width:auto;font-size:12px;"><strong><img src = "<?php echo WP_CONTENT_URL; ?>/plugins/wp _easybooking/images/arrow-front-small.png" style="margin-bottom:1px;" height="7px" /> <?php _e($eb_lang_ResortRooms);?></strong></div>177 <div class="general-title" style="width:auto;font-size:12px;"><strong><img src = "<?php echo WP_CONTENT_URL; ?>/plugins/wp-easybooking/images/arrow-front-small.png" style="margin-bottom:1px;" height="7px" /> <?php _e($eb_lang_ResortRooms);?></strong></div> 181 178 <?php 182 179 include($eb_folder.'/business_data.php'); … … 185 182 </div> 186 183 <div class="resort-data-area" id="resort-data-area-2" style="display:none;"> 187 <div class="general-title" style="width:auto;font-size:12px;"><strong><img src = "<?php echo WP_CONTENT_URL; ?>/plugins/wp _easybooking/images/arrow-front-small.png" style="margin-bottom:1px;" height="7px" /> <?php _e($eb_lang_ResortMap);?></strong></div>184 <div class="general-title" style="width:auto;font-size:12px;"><strong><img src = "<?php echo WP_CONTENT_URL; ?>/plugins/wp-easybooking/images/arrow-front-small.png" style="margin-bottom:1px;" height="7px" /> <?php _e($eb_lang_ResortMap);?></strong></div> 188 185 <iframe width="100%" height="300px" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q=<?php echo $coordinates; ?>(<?php echo $business->post_title; ?>)&ll=<?php echo $coordinates; ?>&num=1&t=h&ie=UTF8&source=embed&z=15&output=embed"></iframe><br /><small><a target="_blank" style="color:#48f;" href="https://maps.google.com/maps?q=<?php echo $coordinates; ?>&num=1&t=h&ie=UTF8&source=embed&z=14" style="color:#0000FF;text-align:left"><div class="general-title" style="width:auto;font-size:12px;"><?php _e( $eb_lang_ViewLargeMap ); ?></div></a></small> 189 186 190 187 </div> 191 188 <div class="resort-data-area" id="resort-data-area-3" style="display:none;"> 192 <div class="general-title" style="width:auto;font-size:12px;"><strong><img src = "<?php echo WP_CONTENT_URL; ?>/plugins/wp _easybooking/images/arrow-front-small.png" style="margin-bottom:1px;" height="7px" /> <?php _e( $eb_lang_ResortFacilities ); ?></strong></div>189 <div class="general-title" style="width:auto;font-size:12px;"><strong><img src = "<?php echo WP_CONTENT_URL; ?>/plugins/wp-easybooking/images/arrow-front-small.png" style="margin-bottom:1px;" height="7px" /> <?php _e( $eb_lang_ResortFacilities ); ?></strong></div> 193 190 <div style="font-size:12px;padding:10px;"> 194 191 <?php … … 233 230 234 231 <div class="resort-data-area" id="resort-data-area-4" style="display:none;width:100%;"> 235 <div class="general-title" style="width:auto;font-size:12px;"><strong><img src = "<?php echo WP_CONTENT_URL; ?>/plugins/wp _easybooking/images/arrow-front-small.png" style="margin-bottom:1px;" height="7px" /> <?php _e( $eb_lang_ResortPolicies ); ?></strong></div>232 <div class="general-title" style="width:auto;font-size:12px;"><strong><img src = "<?php echo WP_CONTENT_URL; ?>/plugins/wp-easybooking/images/arrow-front-small.png" style="margin-bottom:1px;" height="7px" /> <?php _e( $eb_lang_ResortPolicies ); ?></strong></div> 236 233 237 234 <div style="font-size:12px;padding:10px;"> -
wp-easybooking/trunk/widgets/search_form.php
r648905 r649393 139 139 <div style="width:100%;text-align:center;"> 140 140 <span class="go-to-booking-title" onclick="toggleShowBookingFrm();"> 141 <img id="show-hide-arrow" src = "<?php echo WP_CONTENT_URL; ?>/plugins/wp _easybooking/images/dropdown.png" height="12px" /> <?php _e( $eb_lang_ViewYourBooking ); ?>141 <img id="show-hide-arrow" src = "<?php echo WP_CONTENT_URL; ?>/plugins/wp-easybooking/images/dropdown.png" height="12px" /> <?php _e( $eb_lang_ViewYourBooking ); ?> 142 142 </span> 143 143 </div> … … 166 166 if( jQuery('#go-to-booking').is(':visible') ) { 167 167 jQuery('#go-to-booking').hide('slow'); 168 jQuery('#show-hide-arrow').attr('src','<?php echo WP_CONTENT_URL; ?>/plugins/wp _easybooking/images/dropdown.png');168 jQuery('#show-hide-arrow').attr('src','<?php echo WP_CONTENT_URL; ?>/plugins/wp-easybooking/images/dropdown.png'); 169 169 } 170 170 else{ 171 171 jQuery('#go-to-booking').show('slow'); 172 jQuery('#show-hide-arrow').attr('src','<?php echo WP_CONTENT_URL; ?>/plugins/wp _easybooking/images/dropup.png');172 jQuery('#show-hide-arrow').attr('src','<?php echo WP_CONTENT_URL; ?>/plugins/wp-easybooking/images/dropup.png'); 173 173 } 174 174 } … … 206 206 } 207 207 global $table_prefix; 208 $pluginfolder = get_bloginfo('url') . '/' . PLUGINDIR . '/wp _easybooking/';208 $pluginfolder = get_bloginfo('url') . '/' . PLUGINDIR . '/wp-easybooking/'; 209 209 $result_page_ID = get_option('eb-location-result-page'); 210 210 $aPath = str_replace('\\', '/', ABSPATH);
Note: See TracChangeset
for help on using the changeset viewer.