111 lines
4.4 KiB
C#
111 lines
4.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
|
|
namespace Mtxfw.shop._Admin
|
|
{
|
|
public partial class admin_config : Mtxfw.Utility.AdminPage
|
|
{
|
|
Mtxfw.Utility.Config Config = new Mtxfw.Utility.Config();
|
|
protected override void OnLoad(EventArgs e)
|
|
{
|
|
base.OnLoad(e);
|
|
if (!IsPostBack)
|
|
{
|
|
Text_webCom.Text = Config.webCom;
|
|
Text_webName.Text = Config.webName;
|
|
Text_webUrl.Text = Config.webUrl;
|
|
Text_webLogo.Text = Config.webLogo;
|
|
Text_webIcp.Text = Config.webIcp;
|
|
Text_webEmail.Text = Config.webEmail;
|
|
Text_webPhone.Text = Config.webPhone;
|
|
Text_webFax.Text= Config.webFax;
|
|
Text_webQQ.Text = Config.webQQ;
|
|
Text_webUpType.Text = Config.webUpType;
|
|
Text_webDescription.Text = Config.webDescription;
|
|
Text_webCopyright.Text = Config.webCopyright;
|
|
Text_webAddress.Text = Config.webAddress;
|
|
Text_WebKeywords.Text = Config.webKeywords;
|
|
Text_webUpPath.Text = Config.webUpPath;
|
|
Text_webUpSize.Text = Config.webUpSize;
|
|
Text_YHMoney.Text = Config.webYHMoney;
|
|
Text_YHMoney2.Text = Config.webYHMoney2;
|
|
Text_webMoney1.Text = Config.webMoney1;
|
|
Text_webImgAllowSize.Text = Config.webImgAllowSize;
|
|
Text_webTongji.Text = Config.webTongji;
|
|
lng.Value = Config.weblng;
|
|
lat.Value = Config.weblat;
|
|
if (Config.webcheckSeef == "1")
|
|
{
|
|
Text_webcheckSeef.Checked = true;
|
|
}
|
|
else
|
|
{
|
|
Text_webcheckSeef.Checked = false;
|
|
}
|
|
if (Request.QueryString["s"] != null)
|
|
{
|
|
Panel_v.Visible = false;
|
|
}
|
|
else
|
|
{
|
|
Panel_v.Visible = true;
|
|
}
|
|
}
|
|
|
|
Btn_Save.Click += delegate(object s, EventArgs ex)
|
|
{
|
|
Config.webCom = Text_webCom.Text;
|
|
Config.webName = Text_webName.Text;
|
|
Config.webUrl = Text_webUrl.Text;
|
|
Config.webLogo = Text_webLogo.Text;
|
|
Config.webKeywords = Text_WebKeywords.Text;
|
|
Config.webEmail = Text_webEmail.Text;
|
|
Config.webPhone = Text_webPhone.Text;
|
|
Config.webFax = Text_webFax.Text;
|
|
Config.webQQ = Text_webQQ.Text;
|
|
Config.webUpType = Text_webUpType.Text;
|
|
Config.webDescription = Text_webDescription.Text;
|
|
Config.webCopyright = Text_webCopyright.Text;
|
|
Config.webAddress = Text_webAddress.Text;
|
|
Config.webIcp = Text_webIcp.Text;
|
|
Config.webUpPath = Text_webUpPath.Text;
|
|
Config.webUpSize = Text_webUpSize.Text;
|
|
Config.webYHMoney = Text_YHMoney.Text;
|
|
Config.webYHMoney2 = Text_YHMoney2.Text;
|
|
Config.webMoney1 = Text_webMoney1.Text;
|
|
Config.webImgAllowSize = Text_webImgAllowSize.Text;
|
|
Config.webTongji = Text_webTongji.Text;
|
|
Config.weblng = lng.Value;
|
|
Config.weblat = lat.Value;
|
|
if (Text_webcheckSeef.Checked == true)
|
|
{
|
|
Config.webcheckSeef = "1";
|
|
}
|
|
else
|
|
{
|
|
Config.webcheckSeef = "0";
|
|
}
|
|
Config.Save();
|
|
string strMaster = Mtxfw.Utility.Common.LoadTemplet("/Telesatemp0.Master");
|
|
strMaster = strMaster.Replace("<!--mobilemenus-->", "");
|
|
Mtxfw.Utility.Common.WriteHtml("/Telesatemp.Master", strMaster);
|
|
new admin_Product_list().Createtopproduct();
|
|
|
|
if (Request.QueryString["s"] != null)
|
|
{
|
|
Mtxfw.Utility.Tools.Message("更新成功", "admin_config.aspx?s=1");
|
|
}
|
|
else
|
|
{
|
|
Mtxfw.Utility.Tools.Message("更新成功", "admin_config.aspx");
|
|
}
|
|
|
|
};
|
|
}
|
|
|
|
}
|
|
} |