www.gusucode.com > CPF开源的PHP SNS问答社区 v0.7源码程序 > code/src/app/admin/templates/adminlte/settings/index.tpl.php
<?php /** * @author wonli <wonli@live.com> * index.tpl.php */ $contentNav = &$data['settingConfig']; ?> <div class="nav-tabs-custom"> <ul class="nav nav-tabs"> <?php foreach ($contentNav as $navName => $navTxt) { if ($this->params['t'] == $navName) { $url = 'javascript:void(0)'; $wrap = $this->wrap('li', array('class' => 'active')); } else { $url = $this->url('settings:index', array('t' => $navName)); $wrap = $this->wrap('li'); } echo $wrap->a($navTxt, $url); } ?> </ul> <div class="tab-content table-responsive"> <form action="" method="post"> <?php echo $this->section("settings/fragment/{$this->params['t']}", $data) ?> </form> </div> </div>