本文整理汇总了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>
示例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;
示例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 . '" > </span>';
echo '<span class="' . $class . '" > </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 . '"> </span>';
echo '<span class="' . $class . '" > </span>';
echo '<span class="leaf">';
}
}
}
}
echo $name;
echo '</span>';
echo '</a>';
echo '</p>';
$temp_depth = $depth;
示例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>