本文整理汇总了PHP中Activity::activity_view方法的典型用法代码示例。如果您正苦于以下问题:PHP Activity::activity_view方法的具体用法?PHP Activity::activity_view怎么用?PHP Activity::activity_view使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Activity
的用法示例。
在下文中一共展示了Activity::activity_view方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: activity_signup_process_signup
public static function activity_signup_process_signup()
{
if (self::activity_signup_is_field_empty()) {
echo '<script type="text/javascript">alert("姓名与电话为必填项目!\\n请检查表单是否填写完整!"); window.history.back();</script>';
} else {
if (isset($_POST['frontend']) && $_POST['frontend'] == 1) {
if (self::activity_signup_add(self::activity_singup_prepare_data())) {
header('Location: ' . get_page_link(1620));
} else {
header('Location: ' . get_page_link(1623));
}
exit;
} elseif (wp_verify_nonce($_GET['_wpnonce'], Activity_Admin::NONCE) && $_POST['is_new'] == 1) {
if (self::activity_signup_add(self::activity_singup_prepare_data())) {
Activity_Admin::activity_admin_display_message('updated', '活动参与人信息添加成功!');
} else {
Activity_Admin::activity_admin_display_message('error', '活动参与人信息添加失败!');
}
} elseif (wp_verify_nonce($_GET['_wpnonce'], Activity_Admin::NONCE) && $_POST['is_new'] == -1) {
if (self::activity_signup_edit(self::activity_singup_prepare_data())) {
Activity_Admin::activity_admin_display_message('updated', '活动参与人信息编辑成功!');
} else {
Activity_Admin::activity_admin_display_message('error', '活动参与人信息编辑失败!');
}
} else {
echo '<script type="text/javascript">alert("非法请求!"); </script>';
}
Activity::activity_view('activity_admin_list');
}
}
示例2: error_add_activity
public static function error_add_activity()
{
self::activity_admin_display_message('error', '请通过活动插件添加/编辑活动!');
Activity::activity_view('activity_admin_list');
}
示例3: activity_admin_post
public static function activity_admin_post($post_action)
{
if ($post_action != 'add' && $post_action != 'edit') {
self::activity_admin_display_message('error', '非法请求!');
Activity::activity_view('activity_admin_list');
} else {
Activity::activity_view('activity_admin_post');
}
}