Plugin Directory

Changeset 649393


Ignore:
Timestamp:
01/07/2013 10:41:38 PM (13 years ago)
Author:
lyros
Message:

Update to wp-easybooking 1.0.1

Location:
wp-easybooking/trunk
Files:
20 edited

Legend:

Unmodified
Added
Removed
  • wp-easybooking/trunk/admin/adminSettings.php

    r648905 r649393  
    144144
    145145    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" />');
    147147        jQuery("#busNumOwingHidden").val(0);
    148148        var businessIdsStr = jQuery("#businessIDsForBalanceReporter").val();
     
    151151            var businessIdInside = businessIdsStrArr[i].split(":");
    152152            var bID = businessIdInside[1];
    153             ajaxBallanceRep(bID, businessIdInside[2]);
     153            //ajaxBallanceRep(bID, businessIdInside[2]);
    154154        }       
    155155    });
     
    169169   
    170170   
    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*/
    187173    }
    188174   
    189175    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');   
    196177    }
    197178   
  • wp-easybooking/trunk/admin/bookItNow.php

    r648905 r649393  
    652652            jQuery.ajax({
    653653            type: "POST",
    654             url: "../wp-content/plugins/wp_easybooking/classes/booking.class.php",
     654            url: "../wp-content/plugins/wp-easybooking/classes/booking.class.php",
    655655            data: "sID="+rID+"&bID="+bID+"&startRange="+jQuery('#eb_dateRangeStart').val()+"&endRange="+jQuery('#eb_dateRangeEnd').val()+"&getServicePrice=WITH_AJAX&abPath="+absPath,
    656656            success: function(resp){ 
  • wp-easybooking/trunk/admin/businessCreator.php

    r648905 r649393  
    33
    44//set up all variables:
     5$eb_BusinessPackDeal = '';
     6$eb_BusinessPackDealTitle = '';
    57$eb_BusinessTitle = '';
    68$eb_BusinessDateReg = '';
     
    400402            }
    401403        }
     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 = '';
    402409       
    403410        $eb_ServicesDetailsStr= '';
     
    472479        }
    473480        //=============================================================
     481        //=====================PACKAGE DEAL CHANGE=====================
     482
     483if(isset($_REQUEST['pack']) && $_REQUEST['pack'] != ''){
     484    $bID = addslashes($_REQUEST['bID']);
     485    $pack = $_REQUEST['pack'];
     486    update_post_meta($bID,'eb_packDeal', $pack);   
     487}
    474488       
    475489        //=============================================================
     
    652666        ?>
    653667        </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>
    654686    </tr>
    655687    </table>
     
    711743                                <div id="logoUploadArea">
    712744                                <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>
    714746                                <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();" >
    715747                               
     
    10231055                        return true;   
    10241056                        }
    1025                    
     1057
     1058function 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                           
    10261064                           
    10271065    function IpayFunc(){
  • wp-easybooking/trunk/admin/businessCreator_mainData.php

    r648905 r649393  
    112112            <?php //if($current_user->wp_user_level == 10){?>
    113113            <li><a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
     114           
    114115            <?php //}?>
    115116            <!--<li><a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a></li>
     
    129130        </div>
    130131
    131 <script type="text/javascript" >
     132<script type="text/javascript" >   
    132133    function showInfo(infoDivID){
    133134        if(jQuery('#'+infoDivID).css("display") == "none"){
     
    518519                                </p>
    519520                                </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>
    521522                                <div id="eb_seasonsArea" style="<?php if($eb_BusinessHasSeasons == '' || $eb_BusinessHasSeasons =='NO' ) echo 'display:none;'; if($eb_BusinessHasSeasons =='YES' ) echo 'display:block;';?>">
    522523                                <p>
     
    527528                                                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>
    528529                                            </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">
    530531                                    </div>
    531532                                </p>
     
    939940                                </div>
    940941                               
     942                                <div id="debtInfoDiv" class="eb_simpleContainer" style="width:900px;display:none;">                                 
     943                                    <em>No report available.</em>
     944                                </div>
    941945                            </td>
    942946                        </tr>                   
  • wp-easybooking/trunk/admin/businessDeals.php

    r648905 r649393  
     1<?php
     2global $current_user;
     3global $wpdb;
     4global $ebPluginFolderName;
     5$siteCurrency = get_option('eb_siteCurrency');
     6//===========================================================================
     7//=======================GET ALL DEALS=======================================
     8global $table_prefix;
     9$allDeals = $wpdb->get_results('select ID, post_title from '.$table_prefix.'posts where post_type = "eb_chargingDeal"');
     10
     11if(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
     40if(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
     45if(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;
     59if(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" >
     168function setDefaultDeal(dealID){
     169    document.location= "admin.php?page=busines_deals&sdef="+dealID;
     170};
     171
     172function 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  
    166166init_plugin_name();
    167167function 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'));
    170170
    171171}
     
    189189function getBAvailability(bID, bTitle, addMonths){
    190190        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>");
    192192        jQuery.ajax({
    193193            type: "POST",
    194             url: "../wp-content/plugins/wp_easybooking/classes/businessAvailability.class.php",             
     194            url: "../wp-content/plugins/wp-easybooking/classes/businessAvailability.class.php",             
    195195            data: "usrLevel=<?php echo $current_user->wp_user_level; ?>&bID="+bID+"&bTitle="+bTitle+"&aPath=<?php echo $absPath; ?>&pref=<?php echo $table_prefix; ?>&sMonth="+addMonths,       
    196196            success: function(resp){
  • wp-easybooking/trunk/admin/businesses_list.php

    r648905 r649393  
    4444        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>
    4545        <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>
    4747        <p></p>
    4848        <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>
     
    176176        echo '<div id="message" class="success"><p><strong>Business deleted successfully</strong></p></div>';
    177177    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';
    179178}
    180179
     
    318317        <th>Content</th>
    319318        <th>Bookings</th>
    320 
     319        <th>Balance</th>
    321320    </tr>
    322321</thead>
     
    351350        <th>Content</th>
    352351        <th>Bookings</th>
     352         <th>Balance</th>
    353353    </tr>
    354354</tfoot>
     
    392392if(!empty($businesses)){
    393393    $busCount = $eb_listLimit*($p->page - 1) + 1;
     394    $businessIDsForBalanceReporter = '';
    394395    foreach($businesses as $business){
    395396        $owner = $wpdb->get_row('select ID, user_login, user_email from '.$table_prefix.'users where ID = '.$business->post_author);
    396397        if(!empty($owner)){
    397398            $bBookings = $wpdb->get_var("SELECT COUNT(bookingID) from eb_bookingdata where businessID =". $business->ID);
     399            $businessIDsForBalanceReporter .= "|".$business->ID;
    398400            $bBookingsPending = $wpdb->get_var("SELECT COUNT(bookingID) from eb_bookingdata where businessID =". $business->ID.' and booking_status = "Pending"');
    399401                       
     
    483485            echo '<td>'.$serviceStr.'</td>';
    484486            echo '<td>'.$bookStr.'</td>';
     487            echo '<td><em>No report available</em></td>';
    485488            echo '</tr>';
    486489            $busCount++;
    487490        }else echo 'There seems that business '.$business->post_title. ' exists with no owner. You might need to check it out';
    488491    }
     492    echo '<input type= "hidden" id="businessIDsForBalanceReporter" value="'.$businessIDsForBalanceReporter.'">';
    489493}
    490494
     
    513517
    514518<script type="text/javascript" >
     519jQuery(".balanceReporterDiv").html('<img src="<?php echo WP_CONTENT_URL;?>/plugins/wp-easybooking/images/ajax-loader.gif" />');
     520jQuery(document).ready(function(){
     521   
     522});
     523
    515524function fetchType(){
    516525    var b_type = jQuery("#select_busType").val();
  • wp-easybooking/trunk/admin/rooms.php

    r648905 r649393  
    302302                                <div id="logoUploadArea">
    303303                                <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>
    305305<!-- bID is in this page the room id. we use the same function thats why we use the same variables-->
    306306                                <?php
     
    905905    function getAvailability(addMonths){
    906906               
    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();
    908908        if(!addMonths) addMonths = 0;
    909909        <?php
     
    915915        jQuery.ajax({
    916916            type: "POST",
    917             url: "../wp-content/plugins/wp_easybooking/classes/roomAvailability.class.php",             
     917            url: "../wp-content/plugins/wp-easybooking/classes/roomAvailability.class.php",             
    918918            data: "sID=<?php echo $_REQUEST['rID']; ?>&sMonth="+addMonths+"&aPath="+abspath+"&pref=<?php echo $table_prefix; ?>",
    919919            success: function(resp){
  • wp-easybooking/trunk/admin/translate.php

    r648905 r649393  
    1313        ?>';
    1414       
    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';
    1616        if (file_exists($transFile)) {
    1717            global $q_config;
     
    7777
    7878function 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';
    8080    if (file_exists($transFile)) {
    8181        global $q_config;
  • wp-easybooking/trunk/classes/calendar.class.php

    r648905 r649393  
    11<?php
    22if(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');
    44    $calendar = new bookingCalendar;
    55    $curMonth = 0;
     
    273273        jQuery.ajax({
    274274            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(),
    277277            success: function(resp){ 
    278278                //alert('yoo: '+resp);             
  • wp-easybooking/trunk/readme.txt

    r648905 r649393  
    1 ===wp_easybooking===
     1===wp-easybooking===
    22Contributors: Panos Lyrakis
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=L8SHL3M7CYVCJ
    4 Tags: booking, reservation, hotel, multihotel, multilingual, billing management
     4Tags: booking, reservation, hotel, multihotel, multilingual, billing management, multi hotel
    55Requires at least: 3.4
    66Tested up to: 3.5
    7 Stable tag: 1.0.0
     7Stable tag: 1.0.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 wp_easybooking plugin adds hotel and booking management features.
     11wp-easybooking plugin adds multiple-hotel and booking management features.
    1212
    1313== Description ==
    1414
    15 The **wp_easybooking** plugin gives you the ability to create and manage hotels, hotel owners and bookings.
     15The **wp-easybooking** plugin gives you the ability to create and manage multiple hotels, hotel owners and bookings.
    1616
    17 It supports any language with the help of the free qTranslate plugin. Also provides an area at the administration area 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... 
     17It 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... 
    1818
    1919Gets currencies rates from the European Central Bank and converts all prices automatically.
    2020
    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.
     21The 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.
    2222
    2323Users that have completed a booking receive a 4 digit PIN by email so that they may view their booking on-line.
     
    5959== Installation ==
    6060
    61 1. Unzip the file you downloaded (wp_easybooking).
    62 2. Upload the 'wp_easybooking' folder to the '/wp-content/plugins/' directory.
     611. Unzip the file you downloaded (wp-easybooking.1.0.1.zip).
     622. Upload the 'wp-easybooking' folder to the '/wp-content/plugins/' directory.
    63633. Activate the 'Easy Booking' plugin through the 'Plugins' menu in WordPress.
    64644. Activate the 'Easy Booking Widget' widget through the 'Plugins' menu in WordPress.
    6565
    6666*Please make sure that you first activate the plugin and then activate the widget.*
     67
     68You 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
    6770
    6871== Screenshots ==
     
    8083== Frequently Asked Questions ==
    8184= 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.
     85To 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? =
     88Yes 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.
     89If 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? =
     92The wp-easybooking plugin uses functions of qTranslate for translations. So no other translation plugin will do, only qTranslate.
    8393
    8494= I can not select any owner for my hotel =
     
    921024. You have to publish the hotel by pressing the 'Publish' button at the top of the business's page.
    93103
     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. =
     105This 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.
     106At 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. =
     109The plugin creates these several pages in order to use them for displaying specific content.
     110In 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.
     111In 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. =
     114This 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? =
     117The 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? =
     120The main (premium) version of this plugin, uses the package deal of the hotel at several procedures.
     121The 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? =
     124No. 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? =
     127From the 'Pages' menu of WordPress, select the 'Resort Search Results' page and change it's title to whatever you like.
     128Same goes for the rest of the pages.
     129Be careful though and leave the content as is, change only the titles.
     130
     131= How can I add a new language? =
     132From 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? =
     135From the 'Translations' menu of the Easy Booking plugin. All messages are categorised depending on the page they appear.
     136So 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? =
     139There 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? =
     142Most of the colours can be changed from the 'eb_widgetStyle.css' file, but you have to be familiar with css.
     143There will be support packs, with low costs, available soon at <http://wp-easybooking.com>, which you can purchase.
     144If 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? =
     147Visit <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
    94150== Changelog ==
    95151
    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 =
    97157* Fixed search result links to include date ranges and number of guests.
    98158* Added google map feature.
  • wp-easybooking/trunk/widgets/ajaxProposeLocation.php

    r648905 r649393  
    1515    include_once($aPath.'wp-load.php');
    1616    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 '';
    1818    ?>
    1919    <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  
    102102    function __construct($locationTypeVal, $locationIDVal, $locationVal, $hasDatesVal, $fromVal, $toVal, $adultsNumVal, $childrenNumVal, $babiesNumVal, $table_prefixVal, $langVal, $defaultLangVal, $cur, $aPath, $rpage, $orderby, $ordertype){
    103103        $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');
    105105       
    106106        $this->curPage = $rpage;       
     
    424424                    $resortPageID = get_option('eb-view-resort');
    425425                    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
    431427                    }
    432428
     
    445441                                    //$resortReport .= '<a href="'.$permalink.'&t='.$seoTitle.'&eb=resort&b='.$result->ID.$extendedURL.'" title="'.__($result->post_title).'">'.__($result->post_title).'</a>';
    446442                                    $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" />';
    448444                                $resortReport .= '</h1>';
    449445                           
     
    466462                               
    467463                                $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>';
    469465                                $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>';
    470466                                //$resortReport .= '<p><a onclick="goToResortPage(\''.$permalink.'&t='.$seoTitle.'&b='.$result->ID.$extendedURL.'\')" class="eb-search-button little">'.__( 'Book now' ) .'</a></p>';
     
    583579                        }
    584580                    }
    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){
    587589                    $roomPrice = '-';
    588590                    if( $this->hasDates != 'no' && $switch != 'ROOMCOUNTONLY' ) $roomPrice = $this->roomPrice( $bID, $roomType->ID, $fromDate, $toDate );
  • wp-easybooking/trunk/widgets/booking_page.php

    r648905 r649393  
    1717    $bcur = $wpdb->get_row('select meta_value from '.$table_prefix.'postmeta where post_id = '.$bID.' and meta_key = "eb_currency"');
    1818    $bcur = $bcur->meta_value;
    19        
     19   
     20    if( $ccur == htlcur ){
     21        $ccur = $bcur;
     22    }
     23   
    2024    $lang = 'en';
    2125    //if( isset( $_REQUEST['lang'] ) && $_REQUEST['lang'] != '' ) $lang = addslashes( $_REQUEST['lang'] );
     
    3135    ?>
    3236    <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;">-->
    3338    <?php   
    3439    $roomsSelected = 0;
    3540   
    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');
    3742   
    3843    $interval = date_diff(date_create( $from ), date_create( $to ) );
     
    174179        <div class="general-title"><?php _e($eb_lang_BookingDetails);?></div>
    175180        <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];?>)">
    177182                <div class="resort-title"></div>
    178183            </div>
    179184            <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>
    181186                <div style="font-size:12px;">
    182187                    <?php _e( $address. ' '. $addressNumber );?><br />
     
    317322    <div class="room-price-area" style="clear:both;">
    318323        <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>
    320325    </div>
    321326    <div id="terms-area" class="terms-area">
  • wp-easybooking/trunk/widgets/booking_report.php

    r648905 r649393  
    7070        <input name="return" type="hidden" value="<?php echo stripslashes($return_url); ?>" />
    7171        <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" />
    7373        <!--<input name="notify_url" type="hidden" value="<?php echo stripslashes($return_url); ?>" />-->
    7474        <!--return with post-->
     
    8989        $bookID = makeBooking( $pin );
    9090
    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');
    9292       
    9393        $page_id = get_option('eb-view-bookings');
  • wp-easybooking/trunk/widgets/business_data.php

    r648905 r649393  
    100100    function rooms(){
    101101        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');
    103103        $resortPageID = get_option('eb-view-resort');
    104104       
     
    168168                if( $roomImagesAr[$ic] != ''){
    169169                    $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].'">
    172172                                        </a>
    173173                                    </span>';
     
    186186                foreach( $f as $facility ){
    187187                    $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.'" />';
    189189                    $roomFacilities .= $facility->facility_name.'</a>';
    190190                }
     
    197197                    $resp .= '<td  valign="top" style="border:none;padding-left:10px;">
    198198                                <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].')">
    200200                                        <strong style="color:#fff">'.__($room->post_title).'</strong> <span class="room-details-label">'.__( $eb_lang_Details ).'</span>
    201201                                    </div>
  • wp-easybooking/trunk/widgets/businesses_list_results.php

    r648905 r649393  
    11<a id="eb-results-top-point"></a>
    22<?php
    3 include_once( ABSPATH.'wp-content/plugins/wp_easybooking/widgets/trans-vars/search_results.trans.php' );
     3include_once( ABSPATH.'wp-content/plugins/wp-easybooking/widgets/trans-vars/search_results.trans.php' );
    44global $table_prefix;
    55global $eb_path;
     
    1717$locationID = addslashes( $_POST['lid'] );
    1818
    19 $pluginfolder = get_bloginfo('url') . '/' . PLUGINDIR . '/wp_easybooking/';
     19$pluginfolder = get_bloginfo('url') . '/' . PLUGINDIR . '/wp-easybooking/';
    2020$result_page_ID = get_option('eb-location-result-page');
    2121
     
    138138?>
    139139<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" >
    141141    <br />
    142142    <?php _e('Please wait while searching', 'easybooking')?>
  • wp-easybooking/trunk/widgets/load_booking.php

    r648905 r649393  
    396396                        <input name="return" type="hidden" value="<?php echo stripslashes($return_url); ?>" />
    397397                        <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" />
    399399                        <!--return with post-->
    400400                        <input type="hidden" name="custom" value="<?php echo $pin; ?>" />
  • wp-easybooking/trunk/widgets/load_business.php

    r648905 r649393  
    55    global $ebPluginFolderName;
    66   
    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');
    88    $location = addslashes( $_POST['location'] );
    99    $locationType = addslashes( $_POST['type'] );
     
    7272    $stars = get_post_meta($bID, "eb_stars");
    7373       
    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>';
    7575    _e( '<div class="resort-location-at-results-page">'.$address.' '.$addressNumber.'<br />'.$city.', '.$country.'</div>');
    7676    ?>
     
    8585                    ?>
    8686                        <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]; ?>')">
    8989                                </div>
    90                                 <!--<img src = "<?php echo WP_CONTENT_URL; ?>/plugins/wp_easybooking/images/businessImg/thumbs/<?php echo $businessLogo[0]; ?>" />-->
    9190                            </a>
    9291                        </div>
     
    9897                            ?>
    9998                            <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]; ?>" />
    104101                                </a>
    105102                            </div>
     
    178175                ?>
    179176                <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>
    181178                <?php
    182179                include($eb_folder.'/business_data.php');
     
    185182                </div>
    186183                <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> 
    188185                    <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; ?>)&amp;ll=<?php echo $coordinates; ?>&amp;num=1&amp;t=h&amp;ie=UTF8&amp;source=embed&amp;z=15&amp;output=embed"></iframe><br /><small><a target="_blank" style="color:#48f;" href="https://maps.google.com/maps?q=<?php echo $coordinates; ?>&amp;num=1&amp;t=h&amp;ie=UTF8&amp;source=embed&amp;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>
    189186
    190187                </div>
    191188                <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>
    193190                    <div style="font-size:12px;padding:10px;">
    194191                    <?php
     
    233230               
    234231                <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>
    236233
    237234                    <div style="font-size:12px;padding:10px;">
  • wp-easybooking/trunk/widgets/search_form.php

    r648905 r649393  
    139139    <div style="width:100%;text-align:center;">
    140140    <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 ); ?>
    142142    </span>
    143143    </div>
     
    166166    if( jQuery('#go-to-booking').is(':visible') ) {
    167167        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');
    169169    }
    170170    else{
    171171        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');
    173173    }
    174174}
     
    206206    }
    207207    global $table_prefix;
    208     $pluginfolder = get_bloginfo('url') . '/' . PLUGINDIR . '/wp_easybooking/';
     208    $pluginfolder = get_bloginfo('url') . '/' . PLUGINDIR . '/wp-easybooking/';
    209209    $result_page_ID = get_option('eb-location-result-page');
    210210    $aPath = str_replace('\\', '/', ABSPATH);
Note: See TracChangeset for help on using the changeset viewer.