Ejemplo n.º 1
0
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* View "room change list" as RTF
* 
* 
* @since 2004-06-15
* @author Christian Ehret <*****@*****.**> 
*/
$nocachecontrol = true;
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once "../includes/fileselector.inc.php";
include_once 'roomchangelistclass.inc.php';
$roomlist = new Roomchangelist();
$todaydate = getdate();
$day = $todaydate['mday'];
$month = $todaydate['mon'];
$year = $todaydate['year'];
$thedate = "{$day}.{$month}.{$year}";
if ($request->GetVar('start', 'get') !== $request->undefined) {
    $thestart = $request->GetVar('start', 'get');
} else {
    $thestart = $month . '/' . $year;
}
if ($request->GetVar('start1', 'get') !== $request->undefined) {
    $thestart1 = $request->GetVar('start1', 'get');
} else {
    $thestart1 = $day . '/' . $month . '/' . $year;
}
Ejemplo n.º 2
0
* @since 2004-06-12
* @author Christian Ehret <*****@*****.**> 
*/
$smartyType = "www";
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once 'roomchangelistclass.inc.php';
$smarty->assign("tpl_title", "Zimmerwechselliste");
$smarty->assign('tpl_nav', 'lists');
$smarty->assign('tpl_type', 'lists');
$smarty->assign('tpl_subnav', 'roomchange');
$smarty->assign('tpl_children0_field', $request->GetVar('children0', 'session'));
$smarty->assign('tpl_children1_field', $request->GetVar('children1', 'session'));
$smarty->assign('tpl_children2_field', $request->GetVar('children2', 'session'));
$smarty->assign('tpl_children3_field', $request->GetVar('children3', 'session'));
$roomchangelist = new Roomchangelist();
$todaydate = getdate();
$day = $todaydate['mday'];
$month = $todaydate['mon'];
$year = $todaydate['year'];
$thedate = "{$day}.{$month}.{$year}";
$theotherdate = "{$day}-{$month}-{$year}";
$smarty->assign('tpl_dates', $roomchangelist->getdates());
if ($request->GetVar('frm_start', 'post') !== $request->undefined) {
    $thestart = $request->GetVar('frm_start', 'post');
} else {
    $thestart = $month . '/' . $year;
}
$theotherstart = str_replace('/', '-', $thestart);
if ($request->GetVar('frm_end', 'post') !== $request->undefined) {
    $theend = $request->GetVar('frm_end', 'post');