Merge branch 'fixes' into main/rendor-staging
[ryzomcore.git] / web / public_php / webtt / app / views / layouts / new.ctp
blobc47f190551a51f2e4b0b5fdd1466744b55c32fe0
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\r
2 <html xmlns="http://www.w3.org/1999/xhtml">\r
3 <head>\r
4         <?php echo $this->Html->charset(); ?>\r
5         <title>
6                 <?php __('Ryzom Core: Web Translation Tool :: '); ?>
7                 <?php echo $title_for_layout; ?>
8         </title>\r
9         <?php\r
10                 echo $this->Html->meta('icon');\r
11                 //echo $this->Html->css('cake.generic');\r
12                 echo $this->Html->css(array('reset', 'text', 'grid', 'layout', 'nav', 'labelWidth'));\r
13                 echo '<!--[if IE 6]>'.$this->Html->css('ie6').'<![endif]-->';\r
14                 echo '<!--[if IE 7]>'.$this->Html->css('ie').'<![endif]-->';\r
15                 echo $this->Html->script(array('jquery-1.3.2.min.js', 'jquery-ui.js', 'jquery-fluid16.js'));\r
16                 echo $scripts_for_layout;\r
17         ?>\r
18         <script>
19                 function fix_layout() {
20                         $('.dd').each(function(index) {
21                                 if ($.trim($(this).text()) == "")
22                                 {
23                                         $(this).html('&nbsp;');
24                                 }
25                         });
26                 }
27                 $(function() { fix_layout(); });
28         </script>
29 </head>\r
30 <body>\r
31         <div class="container_16" style="background: none repeat scroll 0pt 0pt rgba(40, 60, 60, 0.6);">
32                 <div class="grid_16">\r
33                         <div style="text-align: right; float: right">
34                                 <a href="http://dev.ryzom.com/"><img border="0" alt="" src="http://www.ryzom.com/data/logo.gif"></a>
35                         </div>
36                         <h2 id="branding" style="float: left">\r
37                                 <a href="/">Ryzom Core: Web-Based Translation Tool</a>\r
38                         </h1>\r
39                 </div>\r
40                 <div style="clear: both"></div>
41         </div>
42         <div class="clear" style="height: 10px; width: 100%;" style="clear: both"></div>\r
43         <?php
44         if\r (isset($this->params['prefix']) && $this->params['prefix'] == "admin") {
45                 ?>
46                 <div class="container_16" style="background: none repeat scroll 0pt 0pt rgba(40, 60, 60, 0.9);">
47                         <div class="grid_16">\r
48                                 <div style="margin:5px">
49                                 <h5>
50                                 <?php echo $this->Html->link(__('Back to admin page', true), array('controller' => 'pages', 'action' => 'display', 'prefix' => 'admin', 'home')); ?>
51                                 </h5>
52                                 </div>          
53                         </div>\r
54                         <div style="clear: both"></div>
55                 </div>
56                 <div class="clear" style="height: 10px; width: 100%;" style="clear: both"></div>\r
57                 <?php
58         }
59         ?>
60         <div class="container_16" style="background: none repeat scroll 0pt 0pt rgba(40, 60, 60, 0.9);">
61                 <div class="grid_16">\r
62                 <?php
63                         if\r (isset($assocPath)) {
64                         ?>
65                         <div style="margin:5px; float: left">
66                         <h5>/
67                         <?php
68                         $path = $assocPath;
69                         $text = null;
70                         while ($path)
71                         {
72                                 $model = key($path);
73                                 $path = $path[$model];
74                                 $controller = Inflector::pluralize(Inflector::underscore($model));
75                                 echo $this->Html->link(__(Inflector::pluralize($model), true), array('controller' => $controller, 'action' => 'index'));
76                                 if ($path)
77                                         echo " / ";
78                         }
79                         ?>
80                         </h5>
81                         </div>
82                         <?php
83                         }
84                         ?>
85                         <div style="margin: 5px; float: right"><h5>
86                         <?php
87                         if ($this->Session->read('Auth.User.id'))
88                                 echo $this->Html->link(__('Logout', true), array('admin' => false, 'controller' => 'users', 'action' => 'logout'));
89                         else if ($this->params['controller'] == 'users')
90                                 echo $this->Html->link(__('Register', true), array('admin' => false, 'controller' => 'users', 'action' => 'register'));
91                         ?>
92                         </h5></div>
93                         <div style="clear: both"></div>
94                 </div>\r
95                 <div style="clear: both"></div>
96         </div>
97         <div class="clear" style="height: 10px; width: 100%;" style="clear: both"></div>\r
98         <div class="container_16">
99 <!--            <div class="clear"></div>\r-->
100                 \r
101                 <div class="clear" style="height: 10px; width: 100%;"></div>\r
102                 \r
103                         <?php echo $this->Session->flash(); ?>\r
104                         <?php echo $this->Session->flash('auth'); ?>
106                         <?php echo $content_for_layout; ?>\r
107                 \r
108                 <div class="clear" style="height: 10px; width: 100%;" style="clear: both"></div>\r
110                 <div class="clear"></div>\r
111         </div>\r
112         <?php // echo $this->element('sql_dump'); ?>\r
113 </body>\r
114 </html>