Exemple #1
0
        private void OnStart()
        {
            ArrayList lst = BusinessFacade.sys_Module_List();
            int       i   = 1;

            foreach (sys_ModuleTable var in lst)
            {
                ArrayList lst2 = BusinessFacade.GetPermissionModuleSub(var.ModuleID);
                if (lst2.Count > 0)
                {
                    if (i == 1)
                    {
                        sb_FramesetRows.Append("21,*");
                    }
                    else
                    {
                        sb_FramesetRows.Append(",21,0");
                    }

                    sb_HTMLSrc.AppendFormat("<frame name={0}menubarbutton_{1}{0} target={0}pagemain{0} scrolling={0}no{0} noresize src={0}Menu1_Button.aspx?APCatalogueID={1}&OrderNo={2}&APCatCName={3}{0}>{4}<frame name={0}menubar_{1}{0} target={0}pagemain{0} scrolling={0}auto{0} noresize src={0}Menu1_Disp.aspx?ModuleID={5}&OrderNo={2}{0} STYLE={0}border-width:1; border-bottom-style:solid{0}>{4}", "\"", var.ModuleID, i, var.M_CName, "\n", var.ModuleID);

                    i++;
                }
            }
        }
Exemple #2
0
        private void OnStart()
        {
            int       ModuleID = (int)Common.sink("ModuleID", MethodType.Get, 255, 1, DataType.Int);
            ArrayList lst      = BusinessFacade.GetPermissionModuleSub(ModuleID);

            foreach (sys_ModuleTable var in lst)
            {
                APCatID = var.M_PageCode;
                sb_HTMLSrc.AppendFormat("<table border={0}0{0} cellpadding={0}0{0} cellspacing={0}0{0} width={0}75{0} height={0}65{0} OnMouseOver={0}javascript:TableOnMouseOver('{1}');{0} OnMouseOut={0}javascript:TableOnMouseOut('{1}');{0} OnMouseDown={0}javascript:TableOnClick('{1}','{2}');{0} id={0}{1}{0} class={0}style_0_menu_ctable_off{0}>		<tr><td align={0}center{0}><img src={0}{4}{0} border={0}0{0} hspace={0}5{0} vspace={0}5{0}></td></tr>		<tr><td class={0}style_0_menu_ctext{0} align={0}center{0}>{3}</td></tr>	</table>", "\"", "x" + (NowCount + 1).ToString(), var.M_Directory.Replace("\\", "\\\\"), var.M_CName, ResolveClientUrl(var.M_Icon));
                NowCount++;
            }
        }
Exemple #3
0
        private void OnStart()
        {
            ArrayList lst = BusinessFacade.sys_Module_List();
            int       i   = 1;
            int       j;

            foreach (sys_ModuleTable var in lst)
            {
                ArrayList lst2 = BusinessFacade.GetPermissionModuleSub(var.ModuleID);
                if (lst2.Count > 0)
                {
                    sb_TopHTMLSrc.AppendFormat("<td width='90' align='center' valign='bottom' OnMouseOver={1}javascript:ImageOverOROut('menu_{0}','v'){1} OnMouseOut={1}javascript:ImageOverOROut('menu_{0}','o'){1} class='topmenuoff' id='menu_{0}' OnClick={1}javascript:NowShow('menu_',{0}){1}>{2}</td><td valign='bottom' align='center'><img border='0' src='images/index/top-2-2.gif' width='3' height='20'></td>", i, "\"", var.M_CName);
                    sb_TopHTMLSrc2.AppendFormat("<td height='7' align='center'><img border='0' src='images/index/top-b-1.gif' id='menu_{0}i'></td><td height='7'></td>", i);

                    sb_DownHTMLSrc.AppendFormat("<table border='0' cellpadding='0' cellspacing='0' style={0}display:'none';position: absolute;left: 117px{0} align='left' id='menu_{1}_table'><tr><td align='right'><img border='0' src='images/index/top-b4-1.gif' width='5'></td>", "\"", i);

                    j = 1;
                    foreach (sys_ModuleTable var2 in lst2)
                    {
                        sb_DownHTMLSrc.AppendFormat("<td background={0}images/index/top-b4-b.gif{0} align={0}center{0} width={0}92{0} class={0}topmenuoff2{0} id={0}menu_{1}_{2}{0} OnMouseOver={0}javascript:xImageOverOROut('menu_{1}_{2}','v'){0} OnMouseOut={0}javascript:xImageOverOROut('menu_{1}_{2}','o'){0} OnClick={0}javascript:xNowShow('menu_{1}_{2}','{3}'){0}>&nbsp;&nbsp;{4}&nbsp;&nbsp;</td>", "\"", i, j, var2.M_Directory.Replace("\\", "\\\\"), var2.M_CName);
                        sb_DownHTMLSrc.Append("\n");
                        if (j != lst2.Count)
                        {
                            sb_DownHTMLSrc.AppendFormat("<td background={0}images/index/top-b4-b.gif{0}><img border={0}0{0} src={0}images/index/top-b4-c.gif{0} width={0}1{0} height={0}19{0}></td>", "\"");
                        }
                        j++;
                    }
                    if (j < i)
                    {
                        sb_DownHTMLSrc.AppendFormat("<td background={0}images/index/top-b4-b.gif{0}><img border={0}0{0} src={0}images/index/top-b4-c.gif{0} width={0}1{0} height={0}19{0}></td>", "\"");
                        for (int x = -1; x < i - j; x++)
                        {
                            sb_DownHTMLSrc.AppendFormat("<td background={0}images/index/top-b4-b.gif{0} width={0}1{0}></td><td background={0}images/index/top-b4-b.gif{0} align={0}center{0} width={0}92{0} class={0}topmenuoff2{0}>&nbsp;&nbsp;&nbsp;&nbsp;</td>", "\"");
                        }
                    }
                    sb_DownHTMLSrc.Append("<td><img border='0' src='images/index/top-b4-2.gif' width='5'></td><td></td></tr></table>");
                    i++;
                    TopMenuCount++;
                }
            }
        }