ArifEfendi

main.php

Jan 21st, 2015
213
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php /* @var $this Controller */ ?>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  4. <head>
  5.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6.     <meta name="language" content="en" />
  7.  
  8.     <link href=”<?php echo Yii::app()-/>request->baseUrl; ?>/css/main.css” rel=”stylesheet” type=”text/css” />
  9. <link href=”<?php echo Yii::app()-/>request->baseUrl; ?>/css/form.css” rel=”stylesheet” type=”text/css” />
  10. <link href=”<?php echo Yii::app()-/>request->baseUrl; ?>/css/menu.css” rel=”stylesheet” type=”text/css” />
  11.  
  12. <title><?php echo CHtml::encode($this->pageTitle); ?></title>
  13. </head>
  14.  
  15. <body>
  16.  
  17. <div class="container" id="page">
  18.  
  19.     <div id="header">
  20.         <div id="logo"><?php echo CHtml::encode(Yii::app()->name); ?></div>
  21.     </div><!-- header -->
  22.  
  23.     <div id=”mainmenu”><?php $this->widget(‘zii.widgets.CMenu’,array(
  24. ‘items’=>array(
  25. array(‘label’=>’Home’, ‘url’=>array(/site/index’)),
  26. array(
  27. ‘label’=>’About’,
  28. ‘url’=>array(#’),
  29. ‘items’=>array(
  30. array(‘label’=>’Me’, ‘url’=>array(/site/page’, ‘view’=>’about’),
  31. array(‘label’=>’This’, ‘url’=>array(#’)),
  32. array(‘label’=>’You’, ‘url’=>array(#’)),
  33. ),
  34. ),
  35. array(
  36. ‘label’=>’How You Can’,
  37. ‘url’=>array(#’),
  38. ‘items’=>array(
  39. array(‘label’=>’Contact Me’, ‘url’=>array(/site/contact’)),
  40. array(‘label’=>’Download This’, ‘url’=>array(#’)),
  41. array(‘label’=>’Say “Wow!”‘, ‘url’=>array(#’)),
  42. ),
  43. ),
  44. array(‘label’=>’Login’, ‘url’=>array(/site/login’), ‘visible’=>Yii::app()->user->isGuest),
  45. array(‘label’=>’Logout (.Yii::app()->user->name.), ‘url’=>array(/site/logout’), ‘visible’=>!Yii::app()->user->isGuest)
  46. ),
  47. )); ?></div><!– mainmenu –>
  48.     <?php if(isset($this->breadcrumbs)):?>
  49.         <?php $this->widget('zii.widgets.CBreadcrumbs', array(
  50.             'links'=>$this->breadcrumbs,
  51.         )); ?><!-- breadcrumbs -->
  52.     <?php endif?>
  53.  
  54.     <?php echo $content; ?>
  55.  
  56.     <div class="clear"></div>
  57.  
  58.     <div id="footer">
  59.         Copyright &copy; <?php echo date('Y'); ?> Tangkisania
  60.     </div><!-- footer -->
  61.  
  62. </div><!-- page -->
  63.  
  64. </body>
  65. </html>
RAW Paste Data