QcmsCall/Backstage/AdminLinkManage.cs

(开头部分) 3KB

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

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Sm.Template;
/// <summary>
/// AdminLinkManage 的摘要说明
/// </summary>
/// 



namespace Qcms
{
    public class AdminLinkManage
    {
        public static string List()
        {
            Template _t = null;
            Sm.Sm_Data.XmlDataAUD xmldata = null;
            string strAdd = HttpContext.Current.Request["Add"];
            string strDelId = HttpContext.Current.Request["DelId"];

            string strEditId = HttpContext.Current.Request["EditId"];
            if (strAdd != null && strAdd != "")
            {
                string strtxtLinkName = HttpContext.Current.Request["txtLinkName"];
                string strtxtLinkAddress = HttpContext.Current.Request["txtLinkAddress"];                
                if (strtxtLinkName != null && strtxtLinkName != "" && strtxtLinkAddress != null && strtxtLinkAddress != "")
                {                   
                    //Response.Write(webload.FileErrMsg + "<br>" + webload.FileNameMsg);
                    xmldata = new Sm.Sm_Data.XmlDataAUD("/$config/AdminLinkConfig.xml");                    
                    xmldata["id"] = new Sm.BasicConfig().TransformationDate(DateTime.Now, "yy_MM_dd_hh_mm_ss");
                    xmldata["LinkName"] = strtxtLinkName;
                    xmldata["LinkPage"] = strtxtLinkAddress;                    
                    xmldata.ToAddNew();
                }
                _t = new Template("Backstage/AddAdminLink.text");
                _t.Delmemory(true);
                return _t.Show();
            }
            else if (strEditId != null && strEditId!="")
            {

                string strtxtLinkName = HttpContext.Current.Request["txtLinkName"];
                string strtxtLinkAddress = HttpContext.Current.Request["txtLinkAddress"];
                if (strtxtLinkName != null && strtxtLinkName != "" && strtxtLinkAddress != null && strtxtLinkAddress != "")
                {
                    try
                    {
                        xmldata = new Sm.Sm_Data.XmlDataAUD("/$config/AdminLinkConfig.xml");
                        xmldata["LinkName"] = strtxtLinkName;
                        xmldata["LinkPage"] = strtxtLinkAddress;
                        xmldata.ToUpdates("id='" + strEditId + "'");

后面还有 33 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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