首次推送
This commit is contained in:
117
Mtxfw.VipSite/Admin_Member_renwu_gl_cx.aspx.cs
Normal file
117
Mtxfw.VipSite/Admin_Member_renwu_gl_cx.aspx.cs
Normal file
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Data;
|
||||
namespace Mtxfw.VipSite
|
||||
{
|
||||
public partial class Admin_Member_renwu_gl_cx : Mtxfw.Utility.MemberBase
|
||||
{
|
||||
public Mtxfw.DAL.Article daoArt = new Mtxfw.DAL.Article();
|
||||
Mtxfw.DAL.user_Results daoResults = new Mtxfw.DAL.user_Results();
|
||||
public Mtxfw.Utility.Config config = new Mtxfw.Utility.Config("");
|
||||
public String strTitle = "", guige = "";
|
||||
public int gtype = 0;
|
||||
protected override void OnLoad(EventArgs e)
|
||||
{
|
||||
base.OnLoad(e);
|
||||
string hostname = Request.Url.Host;
|
||||
|
||||
|
||||
if (IFStores != 1)
|
||||
{
|
||||
Mtxfw.Utility.Tools.Message("您没有权限!", "/gl.aspx");
|
||||
}
|
||||
|
||||
Data_Bind();
|
||||
|
||||
|
||||
}
|
||||
|
||||
protected void Data_Bind()
|
||||
{
|
||||
|
||||
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Page.Title = strTitle + " - " + GetWebName;
|
||||
}
|
||||
|
||||
if (!String.IsNullOrEmpty(Request.QueryString["aid"]) && !String.IsNullOrEmpty(Request.QueryString["zrwid"]) && !String.IsNullOrEmpty(Request.QueryString["uid"]))
|
||||
{
|
||||
int aid = Convert.ToInt32(Request.QueryString["rwid"]);
|
||||
Int64 zrwid = Convert.ToInt64(Request.QueryString["zrwid"]);
|
||||
int uid = Convert.ToInt32(Request.QueryString["uid"]);
|
||||
if (!IsPostBack)
|
||||
{
|
||||
Mtxfw.Model.user_info umodel = new Mtxfw.DAL.user_info().GetModel(uid);
|
||||
if (umodel != null)
|
||||
{
|
||||
Text_User.Text = umodel.UserName + "(" + umodel.RealName + ")";
|
||||
}
|
||||
}
|
||||
DataSet ds = daoArt.GetList1("id,conent", "gtype=" + gtype + " and parentid=16 And categoryid='" + aid + "' Order By addtime asc");
|
||||
if (ds.Tables[0].Rows.Count > 0)
|
||||
{
|
||||
foreach (System.Data.DataRow Dr in ds.Tables[0].Rows)
|
||||
{
|
||||
int G_ID = int.Parse(Dr["id"].ToString());
|
||||
string content = Dr["content"].ToString();
|
||||
string LDR = Dr["LDR"].ToString();
|
||||
string seef = Dr["seef"].ToString();
|
||||
string rwidto = Dr["rwid"].ToString();
|
||||
string strseef = "";
|
||||
if (seef == "")
|
||||
{
|
||||
strseef = "上传截图";
|
||||
}
|
||||
else if (seef == "0")
|
||||
{
|
||||
strseef = "未审核";
|
||||
}
|
||||
else if (seef == "1")
|
||||
{
|
||||
strseef = "不合格";
|
||||
}
|
||||
else if (seef == "2")
|
||||
{
|
||||
strseef = "已审核";
|
||||
}
|
||||
guige += "<ul class=\"addggbox_box addggbox_boxed\" id=\"addggbox_box" + G_ID + "\"><li>" + content + "</li><li>" + LDR + "</li><li class=\"textseef\">" + strseef + "</li><li class=\"textcz\">";
|
||||
if (seef != "")
|
||||
{
|
||||
if (seef == "0")
|
||||
{
|
||||
guige += "<input id=\"editbtn0\" class=\"abtn\" onclick=\"onseef(0," + G_ID + ",'" + rwidto + "')\" type=\"button\" value=\"审核通过\" />";
|
||||
guige += "<br><input id=\"editbtn1\" class=\"abtn\" onclick=\"onseef(1," + G_ID + ",'" + rwidto + "')\" type=\"button\" value=\"审核不合格\" />";
|
||||
|
||||
}
|
||||
else if (seef == "1")
|
||||
{
|
||||
guige += "<input id=\"editbtn0\" class=\"abtn\" onclick=\"onseef(0," + G_ID + ",'" + rwidto + "')\" type=\"button\" value=\"审核通过\" />";
|
||||
}
|
||||
else if (seef == "2")
|
||||
{
|
||||
guige += "<input id=\"editbtn2\" class=\"abtn\" onclick=\"onseef(2," + G_ID + ",'" + rwidto + "')\" type=\"button\" value=\"取消审核\" />";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
guige += "<br><a href=\"javascript:open('Admin_Member_renwu_gl_ly.aspx?id=" + Eval("ID") + "')\">给他留言</a>";
|
||||
}
|
||||
guige += "</ul>";
|
||||
}
|
||||
}
|
||||
ds.Clear();
|
||||
Mtxfw.Model.user_Results rmodel = daoResults.GetModel(Int64.Parse(Request.QueryString["ID"]));
|
||||
if (rmodel != null)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user