using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class Admin_DisplayZHPJ : System.Web.UI.Page { LYS.UserData1 myud = new LYS.UserData1(); string username = ""; string usertype = ""; string userdemp = ""; // string utype = ""; protected void Page_Load(object sender, EventArgs e) { username =myud.ReadCookies("UserName").ToString(); usertype =myud.ReadCookies("UserType").ToString(); userdemp =myud.ReadCookies("UserDemp").ToString(); //以下为管理员登录显示 // Literal1.Text = myud.DispLineDataadmin("Select ID,教师姓名,系部,课程名,督导姓名,综合评价 from TKJL where 综合评价 IS NOT NULL").ToString(); Literal1.Text = myud.DispLineDataModi("Select ID,教师姓名,系部,听课日期,课程名,督导姓名,综合评价 from TKJL where 系部='" + userdemp + "' order by 听课日期 Desc", "dispzhpjAdd").ToString(); } }