root/trunk/app/views/layouts/admin.ctp

Revision 738, 2.2 kB (checked in by aarkerio, 7 weeks ago)

CHate

Line 
1<?php
2    echo '<?xml version="1.0"?>';
3    echo $html->docType();
4?>
5<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6<head>
7<title>Karamelo::cPanel</title>
8<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
9<?php
10echo $html->css('cpanel/cpanel');
11  if ( isset($javascript) ):
12      echo $html->charset('UTF-8');
13      echo $javascript->link('prototype');
14      echo $javascript->link('scriptaculous.js?load=effects');
15      echo $javascript->link('admin');
16  endif;
17?>
18  </head>
19<body>
20<script type="text/javascript">
21   window.onload = timedMsg;
22</script>
23<?php $session->flash(); ?>
24
25<div id="header">
26<div style="width:300px;float:left;margin-right:15px;">
27<h1><?php echo $html->link('Karamelo', '/admin/entries/start'); ?></h1> 
28<?php echo $html->para(null, 'Web 2.0 eLearning platform'); ?>
29</div>
30<div style="width:700px;float:left;"> 
31<?php __('logged_in'); ?> <strong><?php echo $session->read('Auth.User.username'); ?></strong> |
32<?php 
33  echo $html->link($session->read('Auth.User.username') . '\'s blog',  '/blog/'. $session->read('Auth.User.username')) . ' | ';
34  echo $html->link($_SERVER['HTTP_HOST'], '/').' | ';
35  echo $html->link(__('My profile', true), '/admin/users/edit') .' | '. $html->link(__('Logout', true), '/users/logout');
36?>
37</div>
38</div><!-- header ends-->
39
40<?php echo $this->element('admin_menu'); ?>
41
42<div style="float:left;border:1px solid white;width:900px;margin:15px 10px 10px 100px;text-align:left;">
43                      <?php echo $content_for_layout ?>
44</div>
45<div style="clear:both;"></div>
46
47<?php echo $html->div('footer', $html->link('Chipotle Software &copy; 2002-2008 GPLv3', 'http://www.chipotle-software.com/', null, false, false)); ?>
48
49<div style="position:absolute;top:15px;right:60px"><!-- help button-->
50<?php 
51  // help popup window
52  $o = '/admin/'.$this->name .'/'.$this->action;
53  $o = strtolower(str_replace('admin_', '', $o));
54  $path = '/helps/display' . $o;
55  //echo $o;
56  $t="javascript:window.open('".$path."', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=400')";
57     
58  echo $html->link($html->image('admin/help.gif', array("alt"=>"Help", "title"=>"Help", "class"=>"helping")),
59         '#header',
60         array("onclick"=>$t),
61         null, false);
62?>
63</div>
64</body>
65</html>
Note: See TracBrowser for help on using the browser.