コード例 #1
0
    <meta name="language" content="en"/>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php 
echo CHtml::encode($this->pageTitle);
?>
</title>
</head>
<body>

<?php 
$items = array();
foreach (array_keys($this->module->controllerMap) as $controllerName) {
    $items[] = array('label' => Yii::t('audit', ucfirst($controllerName)), 'url' => Yii::app()->getUser()->getState('index.audit' . ucfirst($controllerName), array($controllerName . '/index')), 'active' => $this->id == $controllerName);
}
$this->widget('bootstrap.widgets.TbNavbar', array('brandLabel' => $this->module->getName(), 'brandUrl' => array('/' . $this->module->id), 'items' => array(array('class' => 'bootstrap.widgets.TbNav', 'items' => $items), array('class' => 'bootstrap.widgets.TbNav', 'htmlOptions' => array('class' => 'pull-right'), 'items' => array(array('label' => Yii::app()->name, 'url' => Yii::app()->homeUrl))))));
echo CHtml::tag('div', array('class' => 'container'), $this->widget('bootstrap.widgets.TbBreadcrumb', array('links' => array_merge($this->getBreadcrumbs(), array($this->pageTitle))), true));
echo $content;
?>

<div id="footer" class="container small text-center">
    <?php 
$this->renderPartial('audit.views.request.__footer');
echo '<br/>';
echo AuditModule::powered();
echo '<br/>A product of <a href="http://mrphp.com.au">Mr PHP</a>.';
?>
</div>

</body>
</html>