Пример #1
0
if (isset($_GET["logout"])) {
    //aadressireal on olemas muutuja logout
    //kustutame kõik session muutujad ja peatame sessiooni
    session_destroy();
    header("Location: login.php");
}
if (isset($_GET["delete"])) {
    deleteTask($_GET["delete"]);
}
if (isset($_GET["done"])) {
    doneTask($_GET["done"]);
}
if (isset($_GET["edit"])) {
    editTask($_GET["edit"]);
}
$tasks = tasks();
?>
<html>
<table border=1 >
	<tr>
		<th>Aine nimetus</th>
		<th>Õppejõud</th>
		<th>Ülesande kirjeldus</th>
		<th>Tähtaeg</th>
		<th>Raskus</th>
		<th>Olulisus</th>
		<!--<th>Muuda</th>-->
		<th>Tehtud</th>
		<th>Eemalda</th>
	</tr>
	
Пример #2
0
<?php

include_once 'ressources/class.templates.inc';
include_once 'ressources/class.ldap.inc';
include_once 'ressources/class.users.menus.inc';
$user = new usersMenus();
if (!$user->AsSquidAdministrator) {
    $tpl = new templates();
    echo "alert('" . $tpl->javascript_parse_text("{ERROR_NO_PRIVS}") . "');";
    exit;
}
if (isset($_GET["tasks"])) {
    tasks();
    exit;
}
if (isset($_GET["events"])) {
    events_popup();
    exit;
}
if (isset($_GET["events-list"])) {
    events_list();
    exit;
}
if (isset($_GET["re-categorize-js"])) {
    re_categorize_js();
    exit;
}
if (isset($_GET["re-categorize-popup"])) {
    re_categorize_popup();
    exit;
}
Пример #3
0
        cal($diary->link);
        break;
    case 'time':
        time2($d_date11);
        break;
    case 'events':
        events($diary->link, $d_date5, $d_date6, $d_date10);
        break;
    case 'eventsadd':
        eventsadd($diary->link);
        break;
    case 'eventsedit':
        eventsedit($diary->link);
        break;
    case 'tasks':
        tasks($diary->link);
        break;
    default:
        view();
}
// End switch.
function getday($link, $d, $d_date5, $arrD, $datetoday)
{
    // Get info for selected date from database
    $r_dateinfo = $link->query("SELECT info, important,\r\n    DATE_FORMAT(ins_date, '%d-%m-%Y %H:%i'),\r\n    DATE_FORMAT(ch_date, '%d-%m-%Y %H:%i'),\r\n    numedit FROM diary_main WHERE d='{$d}' LIMIT 1");
    list($db_info, $db_imp, $db_ins, $db_ch, $db_numedit) = $r_dateinfo->fetch();
    // Date entry text - 1
    $dateinfo = magicquotes_check($db_info, 0);
    // 1: Entry text, stripslashes // 2: Important?
    $r_recs = $link->query("SELECT id FROM diary_main");
    // Info about a specific date entry: 0 - 5:
Пример #4
0
if (isset($_GET["logout"])) {
    //aadressireal on olemas muutuja logout
    //kustutame kõik session muutujad ja peatame sessiooni
    session_destroy();
    header("Location: login.php");
}
if (isset($_GET["delete"])) {
    deleteTask($_GET["delete"]);
}
if (isset($_GET["done"])) {
    doneTask($_GET["done"]);
}
if (isset($_GET["edit"])) {
    editTask($_GET["edit"]);
}
$ylesanded = tasks();
?>
<html>
<table border=1 >
	<tr>
		<th>Aine nimetus</th>
		<th>Õppejõud</th>
		<th>Ülesande kirjeldus</th>
		<th>Tähtaeg</th>
		<th>Raskus</th>
		<th>Olulisus</th>
		<!--<th>Muuda</th>-->
		<th>Tehtud</th>
		<th>Eemalda</th>
	</tr>
	
Пример #5
0
<?php
	include_once('ressources/class.templates.inc');
	include_once('ressources/class.ldap.inc');
	include_once('ressources/class.users.menus.inc');
	$user=new usersMenus();
	if(!$user->AsSquidAdministrator){$tpl=new templates();echo "alert('".$tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";exit;}
	
	if(isset($_GET["tasks"])){tasks();exit;}
	if(isset($_GET["events"])){events_popup();exit;}
	if(isset($_GET["events-list"])){events_list();exit;}
	
	if(isset($_GET["re-categorize-js"])){re_categorize_js();exit;}
	if(isset($_GET["re-categorize-popup"])){re_categorize_popup();exit;}
	if(isset($_POST["RecategorizeProxyStats"])){re_categorize_save();exit;}
	tabs();
	
	
function tabs(){
	$page=CurrentPageName();
	$tpl=new templates();
	$users=new usersMenus();
	$array["tasks"]='{tasks}';
	//$array["tasks_events"]='{tasks}:{events}';
	//$array["events"]='{events}';

	if($users->PROXYTINY_APPLIANCE){
		unset($array["events"]);
	}
	
	while (list ($num, $ligne) = each ($array) ){