HCE Project DC service web UI  0.2
Hierarchical Cluster Engine DC service web UI
 All Classes Namespaces Files Functions Variables Pages
main.php
Go to the documentation of this file.
1 <?php /* @var $this Controller */
2 $assetsManager = Yii::app()->clientScript;
3 $assetsManager->registerCoreScript('jquery');
4 $assetsManager->registerCoreScript('jquery.ui');
5 
6 // Disable jquery-ui default theme
7 $assetsManager->scriptMap=array(
8 // 'jquery-ui-bootstrap.css'=>false,
9  'jquery-ui.css'=>false,
10 );
11 ?>
12 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
13 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
14  <head>
15  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
16  <meta name="language" content="en" />
17 
18  <link rel="icon" href="<?php echo Yii::app()->request->baseUrl; ?>/images/hce-transparent.png" type="image/png" />
19  <!-- blueprint CSS framework -->
20  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
21  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/print.css" media="print" />
22 
23  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/main.css" />
24  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/form.css" />
25  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/component.css" />
26  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/loaders.css" />
27  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/style.css" />
28  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/menu.css" />
29  <script type="text/javascript" src="http://crypto-js.googlecode.com/svn/tags/3.1.2/build/rollups/md5.js"></script>
30  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->request->baseUrl; ?>/css/screen.css" media="screen, projection" />
31  <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/jquery.js"></script>
32  <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/modals/modernizr.custom.js"></script>
33  <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/purl.js"></script>
34  <script type="text/javascript" src="<?php echo Yii::app()->request->baseUrl; ?>/js/script.js"></script>
35 
36  <title><?php echo CHtml::encode($this->pageTitle); ?></title>
37  </head>
38 
39  <body>
40  <div id="mainmenu">
41  <nav role="custom-dropdown">
42  <input type="checkbox" id="button" class="small-menu-checkbox">
43  <label for="button" onclick></label>
44  <?php
45  if (!UserModule::isGuest()) {
46  $subMenu['logInOut'] = array(
47  'label' => 'Logout',
48  'url' => array('//user/logout'),
49  'visible' => true
50  );
51  } else {
52  $subMenu['logInOut'] = array(
53  'label' => 'Login',
54  'url' => array('//user/login'),
55  'visible' => true
56  );
57  }
58  $this->widget('zii.widgets.CMenu',array(
59  'items'=>array(
60 // array(
61 // 'label'=>'Try It!',
62 // 'url'=>array('//user/login', 'tryIt' => true),
63 // 'visible' => UserModule::isGuest()
64 // ),
65  array(
66  'label'=>'Sites',
67  'url'=>array('//SitesView/index'),
68  'visible' => !UserModule::isGuest()
69  ),
70  array(
71  'label'=>'Resources',
72  'url'=>array('//UrlsView/index'),
73  'visible' => !UserModule::isGuest()
74  ),
75  // array('label'=>'Batches', 'url'=>array('')),
76  // array('label'=>'Stats', 'url'=>array('')),
77  // array('label'=>'Configuration', 'url'=>array('')),
78  array(
79  'label' => 'Users',
80  'url' => array('//user/admin/admin'),
81  'visible' => UserModule::isAdmin()
82  ),
83  array(
84  'label' => 'Profile',
85  'url' => array('//user/profile/profile'),
87  ),
88  $subMenu['logInOut'],
89  )
90  ));
91  ?>
92  </ul>
93  </nav>
94  </div>
95  <button id="traceback" class="ui-state-default ui-corner-all " onclick="toggleLog()">Log</button>
96  <div id="log">
97  <pre>
98  <?php
99  if (isset($this->log))
100  echo $this->log;
102  ?>
103  </pre>
104  </div>
105  <div class="container" id="page">
106  <div id="header">
107  <div id="logo"><img src="/images/hce-transparent.png" width="100"><?php echo CHtml::encode(Yii::app()->name); ?></div>
108  </div><!-- header -->
109  <?php if(isset($this->breadcrumbs)):?>
110  <?php $this->widget('zii.widgets.CBreadcrumbs', array(
111  'links'=>$this->breadcrumbs,
112  )); ?><!-- breadcrumbs -->
113  <?php endif?>
114 
115  <div id = "content">
116  <?php $this->renderPartial('//app/_flash'); ?>
117  <?php echo $content; ?>
118  </div>
119 
120  <div class="clear"></div>
121 
122  <div id="footer">
123  <?php
124  $svn = (file_exists('.svn/entries')) ? 'SVN '.file('.svn/entries')[3] : '' ;
125  ?>
126  DC service web administration interface.<br/>
127  IOIX Ukraine 2015<br>
128  <?=$svn?>
129  </div><!-- footer -->
130  </div><!-- page -->
131  </body>
132 </html>