search form …. table

now the search form (table theme) you have 4 colums 1st the foto 2 the name of resorce 3 the price and 4 the buton…. and if i click th foto is open the decription….

i want to make the form 1 foto 2 name 3 the decription! (with o click!) 4 price 5 buton

You’ll have to edit the code in the file /lib/modules/search/search.php
It’s around line 343 – 375
Regards

mmmm…. is litle difficult
in those lines i have
if($atts[‘theme’] == ‘table’){
$cellcount = 4;
echo ”;
if($atts[‘image’] > 0 && function_exists(‘get_the_post_thumbnail’)){
$cellcount++;
echo ‘ ‘;
}
echo ”.__($atts[‘resourcename’]).”;
if($atts[‘maxpers’] > 0){
$cellcount++;
echo ”.__( ‘Max’ , ‘easyReservations’ ).”;
}

if($atts[‘price’] > 0){
$cellcount++;
echo ”.__( ‘Price’ , ‘easyReservations’ ).”;
}
echo ‘ ‘;
$table = true;
} else $table = false;

foreach($rooms as $room){
if(!empty($_POST[‘to’])) $nights = easyreservations_get_nights($the_rooms_intervals_array[$room->ID], $arrival, $departure);
else $departure = $arrival + ($nights * $the_rooms_intervals_array[$room->ID]) + $_POST[‘toplus’];
$res = new Reservation(false, array(’email’ => ‘mail@test.com’, ‘arrival’ => $arrival, ‘departure’ =>$departure,’resource’ => (int) $room->ID, ‘adults’ => (int) $adults, ‘childs’ => (int) $childs,’reservated’ => time()), false);
try {
$realinterval = easyreservations_get_interval($the_rooms_intervals_array[$room->ID], 0, 1);
$roomcount = get_post_meta($room->ID, ‘roomcount’, true);
if(is_array($roomcount)){
$roomcount = $roomcount[0];
$bypersons = true;
}

in line 403 i have this :
if($table) echo ”;
else echo ”;
if($atts[‘image’] > 0 && function_exists(‘get_the_post_thumbnail’)){
if($table) echo ‘ID.’);” style=”width:’.$atts[‘img_y’].’px” class=”easy-search-logo”>’;
echo get_the_post_thumbnail( $room->resid, array($atts[‘img_y’], $atts[‘img_x’]));
if($table) echo ”;
}
if($table) echo ‘ID.’);” class=”easy-search-h1″>’.__($room->post_title).”;

any help?

Then search for the function easyreservations_send_search_callback().
In it is all the code to generate the results, but it’s a lot and won’t be easy to change.
Regards

You must be logged in to reply in this thread.

Not Support
4 posts