<input type="hidden" name="reservation_referer" value="<?php echo $_SESSION['referer']; ?> " /> <input type="hidden" name="reservation_hotelguest_yn" id="reservation_hotelguest_yn" value="PASS"/> <input type="hidden" name="reservation_booker_name" id="reservation_booker_name" value="Contact Form"/> <input type="hidden" name="reservation_author" id="reservation_author" value="<?php echo querySQL('db_property'); ?> Team"/> <input type="hidden" name="email_type" id="email_type" value="<?php echo $language; ?> "/> <?php $day_off = getDayoff(); if ($day_off == 0) { echo "<div class='tc'><br/><br/><input class='button " . $default_color . " large' type='submit' value='" . $lang['contact_form_send'] . "' /></div>"; } else { echo "<div id='messageBox'><div class='alert_error'>\n\t\t\t\t\t<p><img src='../web/images/icon_error.png' alt='error' class='middle' /> " . _day_off . "</p></div></div>"; } ?> </div> </form> <br class="cl" /> <br class="cl" /> </div><!-- page content end --> <!-- Footer Start -->
function outletListweb($outlet_id = '1', $disabled = 'enabled', $tablename = 'outlet_id') { //set dayoff memory for error message $mem_dayoff = 1; //remember outlet ID $mem_outletID = $_SESSION['outletID']; echo "<select name='" . $tablename . "' id='" . $tablename . "' class='drop' title=' ' size='1' {$disabled}>\n"; $outlets = querySQL('db_outlets_web'); //echo "<option value='0' selected='selected'> -- </option>\n"; foreach ($outlets as $row) { if ($row->saison_start <= $row->saison_end && $_SESSION['selectedDate_saison'] >= $row->saison_start && $_SESSION['selectedDate_saison'] <= $row->saison_end) { $_SESSION['outletID'] = $row->outlet_id; // get day off days $dayoff = getDayoff(); //set dayoff memory for error message if ($mem_dayoff == 1) { $mem_dayoff = $dayoff == 0 ? 0 : 1; } echo "<option value='" . $row->outlet_id . "' "; echo $outlet_id == $row->outlet_id && $dayoff == 0 ? "selected='selected'" : ""; // uncomment to have the day off outlets greyed out //echo ($dayoff > 0) ? "disabled='disabled'" : ""; echo ">" . $row->outlet_name . "</option>\n"; // echo ">".$dayoff." - ".$row->outlet_name."</option>\n"; } } echo "</select>\n"; //set back remembered outlet ID $_SESSION['outletID'] = $mem_outletID; return $mem_dayoff; }