Beispiel #1
0
 //批量审核
 protected void lbtnUnLock_Click(object sender, EventArgs e)
 {
     BLL.feedback bll = new BLL.feedback();
     for (int i = 0; i < rptList.Items.Count; i++)
     {
         int      id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value);
         CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId");
         if (cb.Checked)
         {
             bll.UpdateField(id, "is_lock=0");
         }
     }
     JscriptMsg("批量审核成功啦!", Utils.CombUrlTxt("index.aspx", "keywords={0}", this.keywords), "Success");
 }
 //批量审核
 protected void lbtnUnLock_Click(object sender, EventArgs e)
 {
     BLL.feedback bll = new BLL.feedback();
     for (int i = 0; i < rptList.Items.Count; i++)
     {
         int id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value);
         CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId");
         if (cb.Checked)
         {
             bll.UpdateField(id, "is_lock=0");
         }
     }
     JscriptMsg("批量审核成功啦!", Utils.CombUrlTxt("index.aspx", "keywords={0}", this.keywords), "Success");
 }
Beispiel #3
0
 //批量审核
 protected void lbtnUnLock_Click(object sender, EventArgs e)
 {
     ChkAdminLevel("plugin_feedback", DTEnums.ActionEnum.Audit.ToString()); //检查权限
     BLL.feedback bll = new BLL.feedback();
     for (int i = 0; i < rptList.Items.Count; i++)
     {
         int      id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value);
         CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId");
         if (cb.Checked)
         {
             bll.UpdateField(id, "is_lock=0");
         }
     }
     AddAdminLog(DTEnums.ActionEnum.Audit.ToString(), "审核留言插件内容"); //记录日志
     JscriptMsg("批量审核成功!", Utils.CombUrlTxt("index.aspx", "keywords={0}", this.keywords));
 }
Beispiel #4
0
 //批量审核
 protected void lbtnUnLock_Click(object sender, EventArgs e)
 {
     ChkAdminLevel("plugin_feedback", DTEnums.ActionEnum.Audit.ToString()); //检查权限
     BLL.feedback bll = new BLL.feedback();
     for (int i = 0; i < rptList.Items.Count; i++)
     {
         int id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value);
         CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId");
         if (cb.Checked)
         {
             bll.UpdateField(id, "is_lock=0");
         }
     }
     AddAdminLog(DTEnums.ActionEnum.Audit.ToString(), "审核留言插件内容"); //记录日志
     JscriptMsg("批量审核成功!", Utils.CombUrlTxt("index.aspx", "keywords={0}", this.keywords), "Success");
 }
Beispiel #5
0
 //批次審核
 protected void lbtnUnLock_Click(object sender, EventArgs e)
 {
     //ChkAdminLevel("plugin_feedback", TWEnums.ActionEnum.Audit.ToString()); //檢查權限
     BLL.feedback bll = new BLL.feedback();
     for (int i = 0; i < rptList.Items.Count; i++)
     {
         int      id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value);
         CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId");
         if (cb.Checked)
         {
             bll.UpdateField(id, "site_path='no'");
         }
     }
     AddAdminLog(TWEnums.ActionEnum.Audit.ToString(), "審核留言內容"); //記錄日誌
     JscriptMsg("批次審核成功!", Utils.CombUrlTxt("list.aspx", "keywords={0}", this.keywords));
 }