Beispiel #1
0
*  http://www.gnu.org/copyleft/gpl.html.
*  A copy is found in the textfile GPL.txt and important notices to the license 
*  from the author is found in LICENSE.txt distributed with these scripts.
*
* 
*  This script is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* list of birthdays in a month
* 
* lists
* 
* @since 2004-11-02
* @author Christian Ehret <*****@*****.**> 
*/
$smartyType = "www";
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once 'timetrackerclass.inc.php';
$smarty->assign("tpl_title", "Mitarbeiter Anwesenheitsliste");
$smarty->assign('tpl_nav', 'lists');
$smarty->assign('tpl_type', 'lists');
$smarty->assign('tpl_subnav', 'employee');
$timetracker = new Timetracker();
$smarty->assign('tpl_employees', $timetracker->getPresent());
$smarty->display('list_employee.tpl');
*   This copyright notice MUST APPEAR in all copies of the script!
*/
/**
* List employee times
* 
* Lists
* 
* 10/07/2004 by Christian Ehret chris@uffbasse.de
*/
$smartyType = "www";
include_once "../includes/default2.inc.php";
$auth->is_authenticated();
include_once "employeeclass.inc.php";
$employee = new Employee();
include_once "timetrackerclass.inc.php";
$timetracker = new Timetracker();
$todaydate = getdate();
$day = $todaydate['mday'];
$month = $todaydate['mon'];
$year = $todaydate['year'];
if ($request->GetVar('frm_start', 'post') !== $request->undefined) {
    $thestart = $request->GetVar('frm_start', 'post');
} else {
    $thestart = $month . '/' . $year;
}
if ($request->GetVar('frm_end', 'post') !== $request->undefined) {
    $theend = $request->GetVar('frm_end', 'post');
} else {
    if ($month == 12) {
        $year = $year + 1;
        $month = 1;
*/
/**
* List employee work times
* 
* Lists
* 
* @since 2004-10-97
* @author Christian Ehret <*****@*****.**> 
*/
$smartyType = "www";
include_once "../includes/default.inc.php";
$auth->is_authenticated();
include_once "employeeclass.inc.php";
$employee = new Employee();
include_once "timetrackerclass.inc.php";
$timetracker = new Timetracker();
$todaydate = getdate();
$day = $todaydate['mday'];
$month = $todaydate['mon'];
$year = $todaydate['year'];
if ($request->GetVar('frm_start', 'post') !== $request->undefined) {
    $thestart = $request->GetVar('frm_start', 'post');
} else {
    $thestart = $month . '/' . $year;
}
if ($request->GetVar('frm_end', 'post') !== $request->undefined) {
    $theend = $request->GetVar('frm_end', 'post');
} else {
    if ($month == 12) {
        $year = $year + 1;
        $month = 1;
Beispiel #4
0
*  This script is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/
/**
* Employee Timetracker
* 
* 10/03/2004 by Christian Ehret chris@uffbasse.de
*/
include_once "../includes/default2.inc.php";
$auth->is_authenticated();
include_once "timetrackerclass.inc.php";
$timetracker = new Timetracker();
$smarty->assign("tpl_title", "An/Abmelden");
$smarty->assign('tpl_nav', 'index');
$smarty->assign('tpl_type', 'index');
$toggled = false;
if ($request->GetVar('toggle', 'post') !== $request->undefined) {
    $timetracker->toggle();
    $toggled = true;
}
if ($timetracker->getStatus($request->GetVar('uid', 'session')) == 0) {
    if ($toggled) {
        $smarty->assign('tpl_status', 'toggledtrue');
    } else {
        $smarty->assign('tpl_status', 'false');
    }
} else {