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');
     }
 }
 public static function error_add_activity()
 {
     self::activity_admin_display_message('error', '请通过活动插件添加/编辑活动!');
     Activity::activity_view('activity_admin_list');
 }
 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');
     }
 }