|
Server : Microsoft-IIS/10.0 System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586 User : jxgj ( 0) PHP Version : 7.0.33 Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server Directory : D:/tmp_aspnet/root/6b11be23/e503b68d/ |
?#pragma checksum "D:\wwwroot\keman\wwwroot\Back\info\wenzhangmima_xiugai.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "6A76692098607F6E8699E89662974BC7"
#line 1 "D:\wwwroot\keman\wwwroot\Back\info\wenzhangmima_xiugai.aspx.cs"
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.IO;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data.OleDb;
using CoreClass;
using System.Data.SqlClient;
public partial class Back_Info_wenzhangmima_xiugai : System.Web.UI.Page
{
#region 域界说
CoreClass.DBCommon dbc = new DBCommon();
CoreClass.PublicFunction pubfun = new PublicFunction();
Zhongbiao bs = new Zhongbiao();
public int adminid;
public int channelid;
public string col = "info";
#endregion
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
if (Request["id"] != null && Request["id"].ToString() != "")
{
OleDbDataReader read = bs.charead("select * from Info where Infoid=" + Request["id"]);
read.Read();
if (read.HasRows == true)
{
TextBox1.Text = read["title"].ToString();
TextBox2.Text = read["econtent"].ToString();
Button1.Text = "批改";
}
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
if (Request["id"] != null && Request["id"].ToString() != "")
{
if( TextBox3.Text.Trim().Replace("'","")!="" )
{
bs.user("update Info set econtent='" + TextBox3.Text.ToString().Trim().Replace("'","") + "' where Infoid=" + Request["id"]);
if (Session["AdminPassport"] != null && Session["AdminPassport"].ToString() != "")
{
bs.user("insert into rizhi(rz_bt,rz_nr,rz_czr,rz_time) values('批改信息密码为','" + TextBox1.Text + TextBox3.Text + "','" + Session["AdminPassport"].ToString() + "','" + System.DateTime.Now.ToString() + "' )");
}
bs.java("批改成功", "wenzhangmima.aspx");
}
}
}
protected void Button2_Click(object sender, EventArgs e)
{
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
}
}
#line default
#line hidden