|
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\czrz.aspx.cs" "{406ea660-64cf-4c82-b6f0-42d48172a799}" "5F71B68497EAD89F5A6C5A62002DE7B9"
#line 1 "D:\wwwroot\keman\wwwroot\Back\info\czrz.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.Sql;using System.Data.SqlClient;
using CoreClass;
using System.Data.SqlClient;
public partial class Back_Info_czrz : 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)
{
dlBind();
}
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
//if (e.Row.RowType == DataControlRowType.DataRow)
//{
// ((LinkButton)(e.Row.Cells[4].Controls[0])).Attributes.Add("onclick", "return confirm('确定要删除吗?')");
//}
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onmouseover", "this.style.backgroundColor='LightSkyBlue'");//鼠标移入显示的色彩
e.Row.Attributes.Add("onmouseout", "this.style.backgroundColor='#FFFFFF'");//鼠标移出显示的色彩
e.Row.Cells[2].ToolTip = e.Row.Cells[2].Text.ToString();
if (e.Row.Cells[2].Text.Length > 28)
{
e.Row.Cells[2].Text = e.Row.Cells[2].Text.Substring(0, 28) + "...";
}
}
}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
//int id = int.Parse(GridView1.DataKeys[e.RowIndex].Value.ToString());//删除数据字段;
//bs.user("delete from rizhi where rz_id=" + id);
//dlBind();
}
public void dlBind()
{
string stress=TextBox1.Text.Trim().Replace("'","").ToString();
if (stress != "")
{
bs.bind("select * from rizhi where rz_bt like '%" + stress + "%' or rz_czr like '%" + stress + "%' or rz_time like '%" + stress + "%' order by rz_id desc", GridView1);
}
else
{
bs.bind("select * from rizhi order by rz_id desc", GridView1);
}
}
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
dlBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
dlBind();
}
}
#line default
#line hidden