Ejemplo n.º 1
0
<div style="float: right">
<a  href="<?php 
echo url('cp/feedback/create');
?>
"
    class='action <?php 
echo API::isaction('cp/feedback/create');
?>
'>新增反馈</a>
<a  href=" <?php 
echo url('cp/feedback/index?is_answer=0');
?>
"
    class=' action <?php 
echo API::isaction(array('is_answer=0', 'is_answer/0/'));
?>
'>未回复反馈列表</a>
<a href="<?php 
echo url('cp/feedback/index?is_answer=1');
?>
"
    class=' action <?php 
echo API::isaction(array('is_answer=1', 'is_answer/1/'));
?>
'>已回复反馈列表</a>
</div>
Ejemplo n.º 2
0
<link  rel="stylesheet"  type="text/css"  href="<?php 
echo $theme_baseurl;
?>
/swfupload/swfupload.css" /> 

</head>
<body>
  <?php 
echo $this->renderPartial('//layouts/flash');
?>

  <div id="w_top">
		<?php 
$_isAdmin =& $this->iuser->account_type;
$_isAdmin = $_isAdmin != 1 ? false : true;
$this->widget('zii.widgets.CMenu', array('items' => array(array('label' => Yii::t('cp', 'Website'), 'url' => '/', 'linkOptions' => array('target' => '_blank')), array('label' => Yii::t('cp', 'Login'), 'url' => array('/site/login'), 'visible' => Yii::app()->user->isGuest), array('label' => Yii::t('cp', 'Logout') . ' (' . Yii::app()->user->name . ')', 'url' => array('/site/logout'), 'visible' => !Yii::app()->user->isGuest), array('label' => Yii::t('cp', 'Dashboard'), 'url' => array('/cp/Dashboard/index'), 'visible' => $_isAdmin, 'itemOptions' => array('class' => API::isaction('cp/Dashboard'))), array('label' => '页脚页面', 'url' => array('/cp/article/ipage/208'), 'visible' => $_isAdmin, 'itemOptions' => array('class' => API::isaction(array('cp/article/ipage/', '/action/ipage/', '/action/ipage.html'))), 'linkOptions' => array('data' => 'nav_panel_Articles')), array('label' => '社区节点', 'url' => array('/cp/article/innode/206'), 'visible' => $_isAdmin, 'itemOptions' => array('class' => API::isaction(array('cp/article/innode', '/action/innode/', '/action/innode.html'))), 'linkOptions' => array('data' => 'nav_panel_Articles')), array('label' => Yii::t('cp', 'Attachment'), 'url' => array('/cp/attachment/index/category_id/30'), 'visible' => $_isAdmin, 'itemOptions' => array('class' => API::isaction('cp/attachment/')), 'linkOptions' => array('data' => 'panel_iattachment')), array('label' => Yii::t('cp', 'Users'), 'url' => array('/cp/user/index'), 'visible' => $_isAdmin, 'itemOptions' => array('class' => API::isaction('cp/user')), 'linkOptions' => array('data' => 'nav_panel_admins')), array('label' => Yii::t('cp', 'Feedback'), 'url' => array('/cp/feedback/index'), 'visible' => $_isAdmin, 'itemOptions' => array('class' => API::isaction('cp/feedback')), 'linkOptions' => array('data' => 'nav_panel_feedback')), array('label' => Yii::t('cp', 'Settings'), 'url' => array('/cp/setting/index'), 'visible' => $_isAdmin, 'itemOptions' => array('class' => API::isaction('cp/setting')), 'linkOptions' => array('data' => 'nav_panel_settings')))));
?>
		
	</div><!-- top wrap end -->

	<?php 
echo $content;
?>
  

<?php 
//	Yii::app()->clientScript->registerCoreScript('jquery');
$cs->registerCssFile($theme_baseurl . '/css/all.css');
?>
<script type="text/javascript" src="<?php 
echo $baseUrl;
Ejemplo n.º 3
0
<div class='flR'>
  <a  href="<?php 
echo url('cp/user/create');
?>
"
      class='action <?php 
echo API::isaction('cp/user/create');
?>
'>创建用户</a>
  <a  href="<?php 
echo url('cp/user/index?account_type=1');
?>
"
      class='action <?php 
echo API::isaction(array('account_type=1', 'account_type/1/'));
?>
'>管理员列表</a>
  <a  href="<?php 
echo url('cp/user/index?account_type=0');
?>
"
      class='action <?php 
echo API::isaction(array('account_type=0', 'account_type/0/'));
?>
'>普通用户列表</a>
</div>
Ejemplo n.º 4
0
                 echo '</li></ul>';
             }
             echo '<li class="' . $class . '">';
             echo '<p 
        class="to_dest ' . API::isaction('/cp/' . controller() . '/' . action() . '/category_id/' . $leaf->id) . '"
        return_id="' . $return_id . '" rel_id="' . $leaf->id . '" rel_name="' . $leaf->name . '"
        title="' . $name . '">';
             echo "<a  href='" . url('/cp/' . controller() . '/' . action($action), array('category_id' => $leaf->id)) . "'\r\n                  style='text-indent:" . $style_text_indent . "'>";
             echo '<span class="' . $handle_class . '" data_id="' . $id . '" >&nbsp;&nbsp;</span>';
             echo '<span class="' . $class . '" >&nbsp;&nbsp;</span>';
             echo '<span class="leaf">';
         } else {
             if ($depth == $temp_depth) {
                 echo '</li><li class="' . $class . '">';
                 echo '<p 
             class="to_dest ' . API::isaction('/cp/' . controller() . '/' . action() . '/category_id/' . $leaf->id) . '"
             return_id="' . $return_id . '" rel_id="' . $leaf->id . '" rel_name="' . $leaf->name . '"
             title="' . $name . '">';
                 echo "<a  href='" . url('/cp/' . controller() . '/' . action($action), array('category_id' => $leaf->id)) . "' \r\n                  style='text-indent:" . $style_text_indent . "'>";
                 echo '<span class="' . $handle_class . '" data_id="' . $id . '">&nbsp;&nbsp;</span>';
                 echo '<span class="' . $class . '" >&nbsp;&nbsp;</span>';
                 echo '<span class="leaf">';
             }
         }
     }
 }
 echo $name;
 echo '</span>';
 echo '</a>';
 echo '</p>';
 $temp_depth = $depth;
Ejemplo n.º 5
0
                  </li>
                </ul>
                </div>
            </div>
          </div><!-- settings end-->
          <div class='flR'>
            <a href="<?php 
echo url('cp/attachment/index?ext=image');
?>
"
             title="文件扩展名为: <?php 
echo join(' , ', API::$IMAGE_EXTENSION);
?>
"
             class='action <?php 
echo API::isaction(array('ext=image', 'ext/image/'));
?>
'>图像文件</a>
           <span class='flR csP toggle' rel="#attachment_form">上载附件</span>
          </div>

        </div><!-- w_location end -->
        <?php 
echo $this->renderPartial('_search', array('keyword' => $keyword), false, true);
?>
        <div class='flR pr20P w_pagin'>
          <table> 
            <td class='vaM taL pr2P'><?php 
echo $item_count;
?>
</td>
Ejemplo n.º 6
0
                </ul>
                </div>
            </div>
          </div><!-- settings end-->
          <div class='flR'>
            <a class='action <?php 
echo API::isaction(array('is_star=1', 'is_star/1/'));
?>
'
                href="<?php 
echo url('cp/article/' . action(), array('is_star' => 1, 'top_leaf_id' => $top_leaf->id, 'category_id' => $cur_leaf->id));
?>
" >重点</a>

            <a class='action <?php 
echo API::isaction(array('is_star=0', 'is_star/0/'));
?>
'
                href="<?php 
echo url('cp/article/' . action(), array('is_star' => 0, 'top_leaf_id' => $top_leaf->id, 'category_id' => $cur_leaf->id));
?>
" >非重点</a>

            <a class='action'
              href="<?php 
echo url('/cp/article/create', array('action' => action(), 'top_leaf_id' => $top_leaf->id, 'leaf_id' => $cur_leaf->id));
?>
" >新建内容</a>
          </div>
        </div>