<?php
session_start();
if (!$_SESSION["valid_user"] || $_SESSION["valid_status"] >='5')
{
// User not logged in, redirect to login page
Header("Location: login.php");
}
// Read global configuration
include_once('config.php');
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML>
<HEAD>
<META http-equiv=pragma content=no-cache>
<META http-equiv=cache-control content=no-cache>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<!--<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">-->
<META content="Restaurant Reservation System, Restaurant, Hotel, Reservation" name=Keywords>
<META content="A Simple Restaurant Reservation System" name=Description>
<!--****** SET CSS STYLESHEET ******-->
<style type="text/css" media="all">@import "css/general.css";</style>
<style type="text/css" media="all">@import "css/<? echo $theme;?>/jquery-ui-1.8rc3.custom.css";</style>
<!--****** INCLUDE JAVASCRIPT ******-->
<script type="text/javascript" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.1.custom.min.js"></script>
<script type="text/javascript">
$(document).ready(
function (){
$('.bk-bu').hover(function() {
$(this).addClass('ui-state-hover');
}, function() {
$(this).removeClass('ui-state-hover');
});
// end main function
});
</script>
<?
// Localize date
setlocale(LC_TIME, $country);
// ****** SET LANGUAGE ******
require_once ('lang/'.$countrycode.'.php');
// Title
echo "<title>".$title."</title>";
?>
</head>
<body>
<div id="container">
<?
// ****** LOAD TRANSLATION ******
include_once('include/translate.inc.php');
// ****** GET PHP functions ******
include ("include/functions.php");
// ****** GET EXPORT CLASS ******
include("class.sql2excel.php");
// ****** GET VARIABLES ******
include ("include/get_variables.inc.php");
?>
<div class="ui-datepicker-inline ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all" style="width:98%;">
<div class='ui-datepicker-title' style='float:left; font-size:18px; font-weight:bold; margin-left:4px;'>
<? echo translate('Export'); ?>
</div>
<!--
************************************************************************************************************
***** Export Search Form ********************************************************************************************
************************************************************************************************************
-->
<br/><br/><br/><br/>
<table class="table_reservations">
<form name="makereservation" id="makereservation" method="get" action="excel_export.php" accept-charset="UTF-8">
<tr>
<th width=100><? echo translate('Datum'); ?></th>
<td>
<?
ShowFromDate(5,2,"start");
echo "<b> ".translate('bis')." </b>";
ShowFromDate(5,2,"end");
?>
</td>
</tr>
<tr>
<th><? echo translate('Outlets'); ?></th>
<td><br/><? $error_outlet=getOutletList($date_saison,$outlet_id); ?><br/><td>
</tr>
<tr>
<th><? echo translate('Hotel Gast'); ?></th>
<td><select name="reservation_hotelguest_yn" size="1">
<option value="*">ALL</option>
<option value="HG">HG</option>
<option value="PASS">PASS</option>
<option value="WALK">WALK</option>
</select></td>
</tr>
<tr>
<th></th>
<td>
<input type="hidden" name="action" value="export">
<br/>
<input type="submit" name="aktion" value="<? echo translate('Export'); ?>">
</td>
</tr>
</form>
</table> <!-- close table -->
<div id="submitholder" style="display:none"><tr><td> </td></tr><div class='errorcontainer'>
<div class='icon-info'>Complete the form before booking.<br /></div></div><br/></div>
<?
echo "<br><br><br>";
//********* BACKBUTTON *************
echo"<div class='ui-state-default ui-corner-all bk-bu' style='padding:3px; width:15px; margin-left:15px;'>";
echo "<a href=show_day.php?CalYear=".$CalYear."&CalMonth=".$CalMonth."&CalDay=".$CalDay."&reservation_outlet_id=".$reservation_outlet_id."><span class='ui-icon ui-icon-circle-arrow-w'/></a>\n";
echo "</div>";
?>
<br/><br/><br/><br/>
<?
// ****** PRINT OUT FOOTER ******
include ("include/footer_".$webform_switch.".inc.php");
//
?>
</div>
</div>
</BODY>
</HTML>