本文整理汇总了PHP中Actions::searchActions方法的典型用法代码示例。如果您正苦于以下问题:PHP Actions::searchActions方法的具体用法?PHP Actions::searchActions怎么用?PHP Actions::searchActions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Actions
的用法示例。
在下文中一共展示了Actions::searchActions方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: actionActions_page
public function actionActions_page($term = 1)
{
$user = Users::model()->findByPk(Yii::app()->user->id);
$actions = new Actions();
$actions->term = $term;
if (isset($_POST['Actions']) && isset($_POST['Actions']['search'])) {
$actions->keyword = $_POST['Actions']['keyword'];
$actions->start_date = $_POST['Actions']['start_date'];
$actions->stop_date = $_POST['Actions']['stop_date'];
if ($_POST['type'] == Yii::app()->user->id) {
$actions->responsable_id = Yii::app()->user->id;
} elseif ($_POST['type'] == 'manager') {
$actions->responsable_id = $_POST['Actions']['manager_id'];
} elseif ($_POST['type'] == 'director') {
$actions->responsable_id = $_POST['Actions']['director_id'];
} elseif ($_POST['type'] == 'all') {
$actions->responsable_id = 'all';
} elseif ($_POST['type'] == 'no') {
$actions->responsable_id = 'no';
}
$actions->attributes = $_POST['Actions'];
$actions->client_group_id = $_POST['Actions']['client_group_id'];
}
$actions_table_data = $actions->searchActions();
$this->render('actions_page', array('term' => $term, 'user' => $user, 'actions' => $actions, 'actions_table_data' => $actions_table_data));
}