RM.Web/RMBase/SysMenu/Icons_List.aspx.cs

(开头部分) 1KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using RM.Web.App_Code;
using RM.Web;
using System;
using System.IO;
using System.Text;
using System.Web.UI.HtmlControls;
using RM.Web.UserControl;

namespace RM.Web.RMBase.SysMenu
{
	public class Icons_List : PageBase
	{
		public StringBuilder strImg = new StringBuilder();
		private string _Size;
		protected HtmlForm form1;
		protected HtmlInputHidden hidden_Size;
		protected PageControl PageControl1;
		protected void Page_Load(object sender, EventArgs e)
		{
			this._Size = base.Request["Size"];
			this.PageControl1.pageHandler += new EventHandler(this.pager_PageChanged);
			if (!base.IsPostBack)
			{
				if (this._Size != null)
				{
					this.hidden_Size.Value = this._Size;
				}
			}
		}
		protected void pager_PageChanged(object sender, EventArgs e)
		{
			this.GetImg();
		}
		public void GetImg()
		{
			int PageIndex = this.PageControl1.PageIndex;
			int PageSize;
			DirectoryInfo dir;
			if (this.hidden_Size.Value == "32")
			{
				PageSize = (this.PageControl1.PageSize = 100);
				dir = new DirectoryInfo(base.Server.MapPath("/Themes/Images/32/"));
			}
			else
			{
				PageSize = (this.PageControl1.PageSize = 200);
				dir = new DirectoryInfo(base.Server.MapPath("/Themes/Images/16/"));
			}
			int rowCount = 0;
			int rowbegin = (PageIndex - 1) * PageSize;
			int rowend = PageIndex * PageSize;
			FileSystemInfo[] fileSystemInfos = dir.GetFileSystemInfos();
			for (int i = 0; i < fileSystemInfos.Length; i++)
			{
				FileInfo fsi = (FileInfo)fileSystemInfos[i];
				if (rowCount >= rowbegin && rowCount < rowend)
				{
					this.strImg.Append("<div class=\"divicons\" title='" + fsi.Name + "'>");
					this.strImg.Append(string.Concat(new string[]
					{
后面还有 14 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。