Example #1
0
 public void AddMedalInfo_Click(object sender, EventArgs e)
 {
     if (base.CheckCookie())
     {
         if (String.IsNullOrEmpty(this.image.Text))
         {
             base.RegisterStartupScript("", "<script>alert('上传图片不能为空');</script>");
             return;
         }
         Medal.Add(this.name.Text, int.Parse(this.available.SelectedValue) != 0, this.image.Text);
         AdminVisitLog.InsertLog(this.userid, this.username, this.usergroupid, this.grouptitle, this.ip, "勋章文件添加", this.name.Text);
         base.RegisterStartupScript("PAGE", "window.location.href='global_medalgrid.aspx';");
     }
 }