AppMobile/ToolMenu.ascx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EKETEAM.Data;
using EKETEAM.FrameWork;
using EKETEAM.UserControl;
using System.Text;
namespace eFrameWork.AppMobile
{
public partial class ToolMenu : System.Web.UI.UserControl
{
private eUser user;
public string AppItem = eParameters.Request("AppItem");
public DataRow[] topRows;
public DataRow[] rsSub;
protected void Page_Load(object sender, EventArgs e)
{
user = new eUser("Application");
user.Check();
StringBuilder sb = new StringBuilder();
string AppID = eBase.a_eke_sysApplicationItems.Select("ApplicationItemID='" + AppItem + "'")[0]["ApplicationID"].ToString();
rsSub = eBase.a_eke_sysApplicationMenus.Select("ApplicationID='" + AppID + "' and ParentID is not Null");
if (rsSub.Length > 0)
{
#region 多级菜单
topRows = eBase.a_eke_sysApplicationMenus.Select("ApplicationID='" + AppID + "' and Show=1 and ParentID is Null", "px,addTime");
if (topRows.Length > 0)
{
string width = "";
#region 设置菜单宽度
switch (topRows.Length)
{
case 1:
width = "100%";
break;
case 2:
width = "50%";
break;
case 3:
width = "33.33%";
break;
case 4:
width = "25%";
break;
default:
width = "20%";
break;
}
#endregion
sb.Append("<ul class=\"toolmenu\">\r\n");
for (int i = 0; i < topRows.Length && i < 5; i++)
{
DataRow[] rs = eBase.a_eke_sysApplicationMenus.Select("ParentID='" + topRows[i]["ApplicationMenuID"].ToString() + "' and len(mc)>0 and len(url)>0 and show=1", "px,addtime");
sb.Append("<li style=\"width:" + width + ";\">");
if (rs.Length == 0)
后面还有 66 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
