1
0
www.mikescher.com/framework/gii/views/layouts/main.php

57 lines
2.2 KiB
PHP
Raw Permalink Normal View History

2014-05-13 12:40:42 +02:00
<?php
$cs=Yii::app()->clientScript;
$cs->coreScriptPosition=CClientScript::POS_HEAD;
$cs->scriptMap=array();
$baseUrl=$this->module->assetsUrl;
$cs->registerCoreScript('jquery');
$cs->registerScriptFile($baseUrl.'/js/tooltip.js');
$cs->registerScriptFile($baseUrl.'/js/fancybox/jquery.fancybox-1.3.1.pack.js');
$cs->registerCssFile($baseUrl.'/js/fancybox/jquery.fancybox-1.3.1.css');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<!-- blueprint CSS framework -->
<link rel="stylesheet" type="text/css" href="<?php echo $this->module->assetsUrl; ?>/css/screen.css" media="screen, projection" />
<link rel="stylesheet" type="text/css" href="<?php echo $this->module->assetsUrl; ?>/css/print.css" media="print" />
<!--[if lt IE 8]>
<link rel="stylesheet" type="text/css" href="<?php echo $this->module->assetsUrl; ?>/css/ie.css" media="screen, projection" />
<![endif]-->
<link rel="stylesheet" type="text/css" href="<?php echo $this->module->assetsUrl; ?>/css/main.css" />
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
<script type="text/javascript" src="<?php echo $this->module->assetsUrl; ?>/js/main.js"></script>
</head>
<body>
<div class="container" id="page">
<div id="header">
<div class="top-menus">
<?php echo CHtml::link('help','http://www.yiiframework.com/doc/guide/topics.gii'); ?> |
<?php echo CHtml::link('webapp',Yii::app()->homeUrl); ?> |
<a href="http://www.yiiframework.com">yii</a>
<?php if(!Yii::app()->user->isGuest): ?>
| <?php echo CHtml::link('logout',array('default/logout')); ?>
<?php endif; ?>
</div>
<div id="logo"><?php echo CHtml::link(CHtml::image($this->module->assetsUrl.'/images/logo.png'),array('default/index')); ?></div>
</div><!-- header -->
<?php echo $content; ?>
</div><!-- page -->
<div id="footer">
<?php echo Yii::powered(); ?>
<br/>A product of <a href="http://www.yiisoft.com">Yii Software LLC</a>.
</div><!-- footer -->
</body>
</html>