예제 #1
0
        public virtual void Admin()
        {
            String ids    = ctx.PostIdList("choice");
            String action = ctx.Post("action");

            if (strUtil.IsNullOrEmpty(ids))
            {
                echoError("请先选择");
                return;
            }

            if ("delete".Equals(action))
            {
                SpiderLog.deleteBatch("Id in (" + ids + ")");
            }

            echoAjaxOk();
        }
예제 #2
0
 public virtual void ClearBegin()
 {
     SpiderLog.deleteBatch("1=1");
     echoRedirect(lang("opok"), to(List));
 }