Customs/myHome.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Data;
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 myHome : System.Web.UI.Page
{
public string UserArea = "Application";
private eUser user;
public string AppItem = eParameters.Request("AppItem");
public eModel model;
public string appTitle = "";
protected void Page_Load(object sender, EventArgs e)
{
user = new eUser(UserArea);
user.Check();
appTitle = eConfig.ApplicationTitle(user["SiteID"].ToString());
eModelInfo customModel = new eModelInfo(user);
model = customModel.Model;
DataTable tb = eBase.DataBase.getDataTable("select top 3 NoticeID,Title from Notices where deltag=0 order by addtime desc");
RepNotices.DataSource = tb;
RepNotices.DataBind();
DataTable dt = eBase.a_eke_sysApplicationIcons.Select("ApplicationID='" + model.ApplicationID + "' and show=1", "px,addtime desc").toDataTable();
if (dt.Rows.Count > 0)
{
RepIcons.DataSource = dt;
RepIcons.DataBind();
}
eList list = new eList("AppAds");
list.Fields.Add("mc,pic,url");
list.Where.Add("SiteID='" + user["siteid"] + "' and show=1 and deltag=0");
list.OrderBy.Add("px,addtime desc");
RepAds.ItemDataBound += RepAds_ItemDataBound;
if(list.getDataTable().Rows.Count>0) list.Bind(RepAds);
}
protected void RepAds_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
Control ctrl = e.Item.Controls[0];
Literal lit = (Literal)ctrl.FindControl("LitPic");
if (lit != null)
{
string text = "<img src=\"" + eBase.getVirtualPath() + DataBinder.Eval(e.Item.DataItem, "pic").ToString() + "\" />";
if (DataBinder.Eval(e.Item.DataItem, "url").ToString().Length > 0)
{
后面还有 8 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
