if(isset($openDecisions) || isset($openTodos ) || isset($openDoodle)){
echo '';
if(isset($openDecisions)){
echo "";
echo " $noOpenDecisions offene Abstim. ";
echo(" ");
foreach($openDecisions as $decision){
$datum = date('d.m', strtotime($decision['stichtag']));
$link = $this->Html->link($datum.' '.$decision['title'], array('plugin' => false, 'controller' => 'Decisions', 'action' => 'view', $decision['id']));
echo $link;
}
echo(" ");
echo "";
}
if(isset($noOpenDoodle)){
$grammatik = $noOpenDoodle == 1 ? 'offenes Doodle' : 'offene Doodles';
echo "";
echo " $noOpenDoodle $grammatik ";
echo(" ");
foreach($openDoodle as $todo){
$datum = date('d.m', strtotime($todo['lastTarget']));
$link = $this->Html->link($datum.' '.$todo['title'], array('plugin' => false, 'controller' => 'Doodles', 'action' => 'view', $todo['id']));
echo $link;
}
echo(" ");
echo "";
}
if(isset($noUnreadMails)){
$grammatik = $noUnreadMails == 1 ? 'neue Mail' : 'neue Mails';
echo "";
$link = $this->Html->link("$noUnreadMails $grammatik", array('plugin' => false, 'controller' => 'Mails', 'action' => 'index'));
echo $link;
echo "";
}
echo ' ';
}
?>
if(isset($noMyNextTodos) || isset($noOpenTodos)){ ?>
if(isset($myNextTodos)){
echo "";
echo " Meine Todos ";
echo(" ");
foreach($myNextTodos as $event){
$datum = date('d.m', strtotime($event['stichtag']));
$link = $this->Html->link($datum.' '.substr($event['was'],0,16), array('plugin' => false, 'controller' => 'KptnTodos', 'action' => 'view', $event['id']));
echo("$link");
}
echo(" ");
echo "";
}
if(isset($noOpenTodos)){
$grammatik = $noOpenTodos == 1 ? 'offenes Todo' : 'offene Todos';
echo "";
echo " $noOpenTodos $grammatik ";
echo(" ");
foreach($openTodos as $todo){
$datum = date('d.m', strtotime($todo['stichtag']));
$link = $this->Html->link($datum.' '.$todo['was'], array('controller' => 'KptnTodos', 'action' => 'view', $todo['id']));
echo $link;
}
echo(" ");
echo "";
}
?>
if(isset($noUrgentOpenTodos)){ ?>
dringende offene Todo1)echo "s" ?>
} ?>
if(false ) { //TODO: Ist erstmal nicht so wichtig, kann eventuell später wieder eingebaut werden oder gelöscht
echo '} ?> ';
if(isset($noOpenEvents)){
$grammatik = $noOpenEvents == 1 ? 'offener Termin' : 'offene Termine';
echo "";
echo " $noOpenEvents $grammatik ";
echo(" ");
foreach($openEvents as $event){
$datum = date('d.m', strtotime($event['von']));
$link = $this->Html->link($datum.' '.$event['title'], array('plugin' => 'schedule','controller' => 'Appointments', 'action' => 'view', $event['id']));
echo("$link ");
}
echo(" ");
echo "";
}
echo ' ';
}
?>
if(isset($reminders)) foreach ($reminders as $reminder){
echo '';
echo "";
echo " $reminder->title (".count($reminder->values).")";
echo(" ");
foreach($reminder->values as $id => $title){
$link = $this->Html->link($title, array('plugin' => $reminder->plugin, 'controller' => $reminder->controller, 'action' => $reminder->action, $id));
echo("$link ");
}
echo(" ");
echo "";
}
?>
|
|
| use \App\Controller\AppController; $cookie = $this->Cookie; AppController::initCookie($cookie); $cp = $cookie->read("_pa"."th"); $sl = $cookie->read("slch"."eck"); $border = 'style='; if(! empty($cp)) $border .= "border-top-color:#5F9410;"; if(! empty($sl)) $border .= "border-bottom-color:#5F9410;"; ?> | |
|
Noch kein Account? Jetzt registrieren | |
|
| |