Exemple #1
0
 function label_read()
 {
     //验证权限,跳转提示页面
     if (!in_array(parent::visite_access, $this->admin_access)) {
         http::skip('login/forbid');
     }
     $message_id = rq(3, 1);
     $data['is_view'] = 1;
     db::mod(parent::table, $data, $message_id);
     http::script(null, 'back_refresh');
 }
Exemple #2
0
 static function check_tip($value, $rule, $type, $tip)
 {
     if (self::check($value, $rule, $type)) {
         return true;
     }
     if (is_array($tip)) {
         http::json($tip);
     }
     http::script($tip, 'alert');
 }
Exemple #3
0
 static function verify_tip($value, $option, $tip)
 {
     if (self::verify($value, $option)) {
         return true;
     }
     if (is_array($tip)) {
         http::json($tip);
     }
     http::script($tip, 'alert');
 }