コード例 #1
0
ファイル: Home.cs プロジェクト: DUKE797/SJ.DesktopModules.HB
        private unsafe string __FormatBlock(int __nIdx, HtmlBlockItem __item)
        {
            string str;
            int    num;
            int    num2;
            HtmlBlockDefinition definition;
            IHtmlBlockAble      able;

            int[]  numArray;
            string str2;
            string str3;
            string str4;
            string str5;

            object[] objArray;
            bool     flag;
            object   obj2;

            str = string.Concat(new object[] { "<div class=mo id=m", (int)__nIdx, " blockitemid=", (int)__item.Id, ">" });
            if (string.IsNullOrEmpty(__item.Title) != null)
            {
                goto Label_00E1;
            }
            str  = ((str + "<h1>") + "<table width=100% cellpadding=0 cellspacing=0><tr>") + "<td><img src=\"../../../img/" + ((string.IsNullOrEmpty(__item.Icon) != null) ? "triangle.gif" : __item.Icon) + "\" /></td>";
            flag = 1;
Label_00A3:
            str = (str + "<td width=\"100%\"><h4>" + __item.Title + "</h4></td>") + "<td></td>";
            str = (str + "</tr></table>") + "</h1>";
Label_00E1:
            str2 = PageUtil.GetApplicationPath(this.Page) + "Home.aspx?act=load&id=" + ((int)__item.Id);
            flag = 0;
            num  = -100;
            num2 = 240;
            if ((__item.Width == 0) != null)
            {
                goto Label_0126;
            }
            num = __item.Width;
Label_0126:
            if ((__item.Height == 0) != null)
            {
                goto Label_013C;
            }
            num2 = __item.Height;
Label_013C:
            str3 = &num.ToString();
            str4 = &num2.ToString();
            if (((num < 0) == 0) != null)
            {
                goto Label_016F;
            }
            str3 = string.Format("{0}%", (int)(num * -1));
Label_016F:
            if (((num2 < 0) == 0) != null)
            {
                goto Label_0190;
            }
            str4 = string.Format("{0}%", (int)(num2 * -1));
Label_0190:
            str3 = "100%";
            if ((__item.RefreshSecond < 0) != null)
            {
                goto Label_0248;
            }
            obj2 = str;
            str  = string.Concat(new object[] { obj2, "<table width=100% cellpadding=0 cellspacing=0 align=center><tr><td><div style='width:", str3, ";height:", str4, ";overflow:auto' id='nr", (int)__item.Id, "' class='nr' h='", (int)num2, "' refreshsecond='", (int)__item.RefreshSecond, "' loadurl=\"", str2, "\">取数据...</div></td></tr></table>" });
            goto Label_02E8;
Label_0248:
            obj2 = str;
            str  = string.Concat(new object[] { obj2, "<table width=100% cellpadding=0 cellspacing=0 align=center><tr><td><div style='width:", str3, ";height:", str4, ";overflow:auto' id='nr", (int)__item.Id, "' class='nr' refreshsecond='", (int)__item.RefreshSecond, "' loadurl2=\"", str2, "\">", GetBlockItemHtml(this, __item.Id), "</div></td></tr></table>" });
Label_02E8:
            str5 = str + "</div>";
Label_02FA:
            return(str5);
        }