HLW/web/index.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using System.Data;
namespace HLW.web
{
public partial class index : System.Web.UI.Page
{
public string navList = "";
public Model.Users user = new Model.Users();
public Model.Sets mo = new Model.Sets();
protected void Page_Load(object sender, EventArgs e)
{
BLL.Sets bll = new BLL.Sets();
mo = bll.GetModel("001");
if (Request.Cookies["UID"] == null)
{
Response.Redirect("/web/login.aspx");
}
if (!IsPostBack)
{
navList = getNav(Request.Cookies["UID"].Value);
user = (new BLL.Users()).GetModel(int.Parse(Request.Cookies["UID"].Value));
}
}
public string getNav(string uid)
{
StringBuilder sql = new StringBuilder();
sql.Append(" select * from tb_navmenu where cat_id in (");
sql.Append("select distinct cat_parentid from tb_navmenu a,tb_rules b,tb_rulesDetail c,tb_usersRules d ");
sql.Append(" where a.cat_id=c.catid and b.ruleId=c.ruleId and b.ruleId=d.ruleId and c.ruleId=d.ruleId ");
sql.Append(" and d.userId=" + uid + " ) order by cat_sort ");
DataTable dt = Maticsoft.DBUtility.DbHelperSQL.Query(sql.ToString()).Tables[0];
StringBuilder list = new StringBuilder();
for (int i = 0; i < dt.Rows.Count; i++)
{
list.Append(" <div class=\"spline\"></div>");
list.Append(" <div class=\"cexpand\" >");
list.Append(" <div>");
list.Append(" <span onclick=\"clicknode('nav_other_nod" + dt.Rows[i]["cat_id"] + "', 'nav_other" + dt.Rows[i]["cat_id"] + "');setOverflow(this);\" class=\"ct\" name=\"expandLi\">");
list.Append(" <a class=\"tgl EXPANDED\" id=\"nav_other_nod" + dt.Rows[i]["cat_id"] + "\"></a>");
list.Append(" <a href=\"javascript:void(0);\" onclick=\"return false;\" style=\" font-weight:bold;color:#555;\">" + dt.Rows[i]["cat_name"] + "");
list.Append(" <span id=\"nav_other_count" + dt.Rows[i]["cat_id"] + "\" class=\"fNewMail\">");
list.Append(" </span>");
list.Append(" </a>");
list.Append(" </span>");
list.Append(" <a class=\"faico add\"></a>");
list.Append(" </div>");
list.Append(" <ul id=\"nav_other" + dt.Rows[i]["cat_id"] + "\" style=\"display:block;\">");
list.Append(getNavSub(uid, int.Parse(dt.Rows[i]["cat_id"].ToString())));
list.Append(" </ul>");
后面还有 21 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
