main.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. $cs=Yii::app()->clientScript;
  3. $cs->coreScriptPosition=CClientScript::POS_HEAD;
  4. $cs->scriptMap=array();
  5. $baseUrl=$this->module->assetsUrl;
  6. $cs->registerCoreScript('jquery');
  7. $cs->registerScriptFile($baseUrl.'/js/tooltip.js');
  8. $cs->registerScriptFile($baseUrl.'/js/fancybox/jquery.fancybox-1.3.1.pack.js');
  9. $cs->registerCssFile($baseUrl.'/js/fancybox/jquery.fancybox-1.3.1.css');
  10. ?>
  11. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  12. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  13. <head>
  14. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  15. <meta name="language" content="en" />
  16. <!-- blueprint CSS framework -->
  17. <link rel="stylesheet" type="text/css" href="<?php echo $this->module->assetsUrl; ?>/css/screen.css" media="screen, projection" />
  18. <link rel="stylesheet" type="text/css" href="<?php echo $this->module->assetsUrl; ?>/css/print.css" media="print" />
  19. <!--[if lt IE 8]>
  20. <link rel="stylesheet" type="text/css" href="<?php echo $this->module->assetsUrl; ?>/css/ie.css" media="screen, projection" />
  21. <![endif]-->
  22. <link rel="stylesheet" type="text/css" href="<?php echo $this->module->assetsUrl; ?>/css/main.css" />
  23. <title><?php echo CHtml::encode($this->pageTitle); ?></title>
  24. <script type="text/javascript" src="<?php echo $this->module->assetsUrl; ?>/js/main.js"></script>
  25. </head>
  26. <body>
  27. <div class="container" id="page">
  28. <div id="header">
  29. <div class="top-menus">
  30. <?php echo CHtml::link('help','http://www.yiiframework.com/doc/guide/topics.gii'); ?> |
  31. <?php echo CHtml::link('webapp',Yii::app()->homeUrl); ?> |
  32. <a href="http://www.yiiframework.com">yii</a>
  33. <?php if(!Yii::app()->user->isGuest): ?>
  34. | <?php echo CHtml::link('logout',array('default/logout')); ?>
  35. <?php endif; ?>
  36. </div>
  37. <div id="logo"><?php echo CHtml::link(CHtml::image($this->module->assetsUrl.'/images/logo.png'),array('default/index')); ?></div>
  38. </div><!-- header -->
  39. <?php echo $content; ?>
  40. </div><!-- page -->
  41. <div id="footer">
  42. <?php echo Yii::powered(); ?>
  43. <br/>A product of <a href="http://www.yiisoft.com">Yii Software LLC</a>.
  44. </div><!-- footer -->
  45. </body>
  46. </html>