当前位置: 首页>>代码示例>>PHP>>正文


PHP API::isaction方法代码示例

本文整理汇总了PHP中API::isaction方法的典型用法代码示例。如果您正苦于以下问题:PHP API::isaction方法的具体用法?PHP API::isaction怎么用?PHP API::isaction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在API的用法示例。


在下文中一共展示了API::isaction方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: url

<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>
开发者ID:paranoidxc,项目名称:iwebhost,代码行数:26,代码来源:_left.php

示例2: array

<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;
开发者ID:paranoidxc,项目名称:iwebhost,代码行数:31,代码来源:main.php

示例3: controller

                 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;
开发者ID:paranoidxc,项目名称:iwebhost,代码行数:31,代码来源:move_node.php

示例4: url

                  </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>
开发者ID:paranoidxc,项目名称:iwebhost,代码行数:31,代码来源:index.php


注:本文中的API::isaction方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。