*prepracovany model koli praci s uzivatelmi, je mozne sa uz prihlasit na konkretny...
[sport-group.git] / application / layouts / scripts / layout.phtml
blob062b9c44b136635c7dadc35e6e52e57e6559b03f
1 <?php echo $this->doctype(); ?>\r
2 <html xmlns="http://www.w3.org/1999/xhtml"> \r
3 <head>\r
4     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
5     <?php echo $this->headTitle(); ?>\r
6     <?php echo $this->headScript(); ?>\r
7     <?php echo $this->headStyle(); ?>\r
8     <?php $this->headLink()\r
9                 ->appendStylesheet('/css/top_menu.css');?>\r
10     <?php echo $this->headLink(); ?>\r
11 </head>\r
12 <body>\r
13     <?php echo $this->render('header.phtml'); ?>\r
15     <div id="top_menu">\r
16         <ul>\r
17             <li><a href="<?php echo $this->url(array('controller'=>'index'), \r
18                                                 'default', \r
19                                                 true);?>">\r
20                 Home\r
21                 </a>\r
22             </li>\r
23             <li><a href="<?php echo $this->url(array('controller'=>'playerlist'),\r
24                                                 'default',\r
25                                                 true);?>">\r
26                 Players\r
27                 </a>\r
28             </li>\r
29             <li><a href="<?php echo $this->url(array('controller'=>'archive'),\r
30                                                 'default',\r
31                                                 true);?>">\r
32                 Archiv\r
33                 </a>\r
34             </li>\r
35             <li>\r
36                 <?php\r
37                 $auth = Zend_Auth::getInstance();\r
38                 if ($auth->hasIdentity()) {\r
39                     echo '<a href="'.$this->url(array('controller'=>'user',\r
40                                                         'action'=>'logout'),\r
41                                                 'default',\r
42                                                 true).'">Logout';\r
43                 }else {\r
44                     echo '<a href="'.$this->url(array('controller'=>'user'\r
45                                                         #,'action'=>'login'\r
46                                                         ),\r
47                                                 'default',\r
48                                                 true).'">Login/Register';\r
49                 }\r
50                 ?>\r
51                 </a>\r
52             </li>\r
53         </ul>\r
54     </div>\r
56     <div id="content"><?php echo $this->layout()->content; ?></div>\r
58     <?php echo $this->render('footer.phtml'); ?>\r
59 </body>\r
60 </html>\r