code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231 values | license stringclasses 13 values | size int64 1 2.01M |
|---|---|---|---|---|---|
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECMarket
{
public static int ExitMarketLetter(string title)
{
return Markets.ExitMarketLetter(title);
}
public static int ExitMarket(string title)
{
return Markets.ExitMarket(title);
}
public static EnWebMarket GetWebMarketInfo(string strWhere)
{
return Markets.GetWebMarketInfo(strWhere);
}
public static List<EnWebMarket> GetWebMarketList(int PageIndex, int PageSize, string strWhere,string sortkey, string ordertype, out int pageCount)
{
return Markets.GetWebMarketList(PageIndex, PageSize, strWhere, sortkey, ordertype, out pageCount);
}
public static List<EnSearchItem> GetSearchItem()
{
List<EnSearchItem> list = new List<EnSearchItem>();
List<EnSearchItem> itemList = (List<EnSearchItem>)DataCache.GetCache(CacheKey.MarketSearchItemList);
if (itemList == null)
{
itemList = Markets.GetMarketSearchItem();
DataCache.SetCache(CacheKey.MarketSearchItemList, itemList);
}
foreach (EnSearchItem item in itemList)
{
if (item.type == "area" && !string.IsNullOrEmpty(item.value))
{
if (ECommon.QuerySearchArea != "" && ECommon.QuerySearchArea.Split('_').Contains(item.value))
{
item.isCur = true;
list.Add(item);
continue;
}
else
{
item.isCur = false;
}
}
list.Add(item);
}
return list;
}
public static int UpConFilePath(string con, int id)
{
return DataCommon.UpdateValue(TableName.TBMarket, "descript", con, " where id=" + id);
}
//获取最新注册用户
public static List<EnMarket> GetTop20MarketList()
{
return GetTop20MarketList("");
}
public static List<EnMarket> GetTop20MarketList(string name)
{
string strWhere = "";
if (!string.IsNullOrEmpty(name))
{
strWhere += " where title like '%" + name + "%'";
}
return GetMarketList(" top 20 * ", strWhere, " order by id desc");
}
public static List<EnMarket> GetMarketInfoVSNameAndIdList(string strWhere,string sort)
{
DataTable dt = DataCommon.GetDataTable(TableName.TBMarket, "id,title", strWhere, sort);
List<EnMarket> list = new List<EnMarket>();
if (dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
EnMarket model = new EnMarket();
model.id = int.Parse(dt.Rows[i]["id"].ToString());
model.title = dt.Rows[i]["title"].ToString();
list.Add(model);
}
}
return list;
}
public static EnMarket GetMarketInfoVSNameAndIdInfo(string strWhere)
{
List<EnMarket> list = GetMarketInfoVSNameAndIdList(strWhere, "");
return list.Count > 0 ? list[0] : null;
}
#region Method-Market
/// <summary>
/// 更新对像
/// </summary>
public static int EditMarket(EnMarket model)
{
return Markets.EditMarket(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnMarket GetMarketInfo(string strWhere)
{
return Markets.GetMarketInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnMarket> GetMarketList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Markets.GetMarketList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMarket> GetMarketList(string strWhere, out int pageCount)
{
return GetMarketList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMarket> GetMarketList(string strWhere)
{
int tmpPageCount = 0;
return GetMarketList(-1, 0, strWhere, out tmpPageCount);
}
///获取数据列表
public static List<EnMarket> GetMarketList(string field, string strWhere, string sort)
{
return Markets.GetMarketList(field, strWhere, sort);
}
//获取数据列表ToDataTable
public static DataTable GetMarketListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBMarket, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnMarket(int id)
{
return DeletEnMarket(" where id=" + id);
}
///删除对象
public static int DeletEnMarketByIdList(string idList)
{
return DeletEnMarket(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnMarket(string strWhere)
{
return DataCommon.Delete(TableName.TBMarket, strWhere);
}
#endregion
#region Method-MarketGroup
/// <summary>
/// 更新对像
/// </summary>
public static int EditMarketGroup(EnMarketGroup model)
{
return Markets.EditMarketGroup(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnMarketGroup GetMarketGroupInfo(string strWhere)
{
return Markets.GetMarketGroupInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnMarketGroup> GetMarketGroupList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Markets.GetMarketGroupList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMarketGroup> GetMarketGroupList(string strWhere, out int pageCount)
{
return GetMarketGroupList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMarketGroup> GetMarketGroupList(string strWhere)
{
int tmpPageCount = 0;
return GetMarketGroupList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetMarketGroupListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBMarketGroup, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnMarketGroup(int id)
{
return DeletEnMarketGroup(" where id=" + id);
}
///删除对象
public static int DeletEnMarketGroupByIdList(string idList)
{
return DeletEnMarketGroup(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnMarketGroup(string strWhere)
{
return DataCommon.Delete(TableName.TBMarketGroup, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECMarket.cs | C# | oos | 8,123 |
using System;
using System.IO;
using System.Text.RegularExpressions;
using System.Threading;
using System.Web;
using System.Xml;
using TRECommon;
using TREC.Data;
using TREC.Entity;
namespace TREC.ECommerce
{
public class HttpModule:System.Web.IHttpModule
{
static Timer eventTimer;
/// <summary>
/// 实现接口的Init方法
/// </summary>
/// <param name="context"></param>
public void Init(HttpApplication context)
{
context.BeginRequest += new EventHandler(ReUrl_BeginRequest);
context.Error += new EventHandler(Application_OnError);
}
public void Application_OnError(Object sender, EventArgs e)
{
//string requestUrl = DNTRequest.GetUrl();
HttpApplication application = (HttpApplication)sender;
HttpContext context = application.Context;
//if (GeneralConfigs.GetConfig().Installation == 0 && requestUrl.IndexOf("install") == -1)//当该站点未运行过安装并且当前页面不是安装程序目录下的页面时
//{
// context.Server.ClearError();//清除程序异常
// HttpContext.Current.Response.Redirect(BaseConfigs.GetForumPath + "install/index.aspx");
// return;
//}
//context.Response.Write("<html><body style=\"font-size:14px;\">");
//context.Response.Write("FordioB2B Error:<br />");
//context.Response.Write("<textarea name=\"errormessage\" style=\"width:80%; height:200px; word-break:break-all\">");
//context.Response.Write(System.Web.HttpUtility.HtmlEncode(context.Server.GetLastError().ToString()));
//context.Response.Write("</textarea>");
//context.Response.Write("</body></html>");
//context.Response.End();
//context.Server.ClearError();//清除程序异常
}
public void ReUrl_BeginRequest(object sender, EventArgs e)
{
HttpContext context = ((HttpApplication)sender).Context;
string requestPath = TRECommon.WebRequest.UrlDecode(context.Request.RawUrl.ToLower());
if (context.Request.RawUrl.ToLower() == "/")
{
requestPath = "/index.aspx";
}
if (requestPath.Contains("/ajax/") || requestPath.Contains("/upload/") || requestPath.Contains("/ajaxtools/") || requestPath.Contains("/admin/") || requestPath.Contains("/suppler/") || requestPath.Contains("/resource/") || requestPath.Contains("/common/"))
{
context.RewritePath(requestPath);
return;
}
//网站风格
string templateWeb = "/template/web/default";
foreach (SiteUrls.URLRewrite url in SiteUrls.GetSiteUrls().Urls)
{
if (Regex.IsMatch(requestPath, url.Pattern, RegexOptions.Compiled | RegexOptions.IgnoreCase))
{
string newUrl = Regex.Replace(requestPath, url.Pattern, url.QueryString, RegexOptions.Compiled | RegexOptions.IgnoreCase);
newUrl = newUrl == "" ? templateWeb + url.Page : templateWeb + url.Page + "?" + newUrl;
context.RewritePath(newUrl);
return;
}
}
context.RewritePath(templateWeb+requestPath);
}
/// <summary>
/// 实现接口的Dispose方法
/// </summary>
public void Dispose()
{
eventTimer = null;
}
//////////////////////////////////////////////////////////////////////
/// <summary>
/// 站点伪Url信息类
/// </summary>
public class SiteUrls
{
#region 内部属性和方法
private static object lockHelper = new object();
private static volatile SiteUrls instance = null;
string SiteUrlsFile = HttpContext.Current.Server.MapPath("~/config/urls.config");
private System.Collections.ArrayList _Urls;
public System.Collections.ArrayList Urls
{
get
{
return _Urls;
}
set
{
_Urls = value;
}
}
private System.Collections.Specialized.NameValueCollection _Paths;
public System.Collections.Specialized.NameValueCollection Paths
{
get
{
return _Paths;
}
set
{
_Paths = value;
}
}
private SiteUrls()
{
Urls = new System.Collections.ArrayList();
Paths = new System.Collections.Specialized.NameValueCollection();
XmlDocument xml = new XmlDocument();
xml.Load(SiteUrlsFile);
XmlNode root = xml.SelectSingleNode("urls");
foreach (XmlNode n in root.ChildNodes)
{
if (n.NodeType != XmlNodeType.Comment && n.Name.ToLower() == "rewrite")
{
XmlAttribute name = n.Attributes["name"];
XmlAttribute path = n.Attributes["path"];
XmlAttribute page = n.Attributes["page"];
XmlAttribute querystring = n.Attributes["querystring"];
XmlAttribute pattern = n.Attributes["pattern"];
if (name != null && path != null && page != null && querystring != null && pattern != null)
{
Paths.Add(name.Value, path.Value);
Urls.Add(new URLRewrite(name.Value, pattern.Value, page.Value.Replace("^", "&"), querystring.Value.Replace("^", "&")));
}
}
}
}
#endregion
public static SiteUrls GetSiteUrls()
{
if (instance == null)
{
lock (lockHelper)
{
if (instance == null)
{
instance = new SiteUrls();
}
}
}
return instance;
}
public static void SetInstance(SiteUrls anInstance)
{
if (anInstance != null)
instance = anInstance;
}
public static void SetInstance()
{
SetInstance(new SiteUrls());
}
/// <summary>
/// 重写伪地址
/// </summary>
public class URLRewrite
{
#region 成员变量
private string _Name;
public string Name
{
get
{
return _Name;
}
set
{
_Name = value;
}
}
private string _Pattern;
public string Pattern
{
get
{
return _Pattern;
}
set
{
_Pattern = value;
}
}
private string _Page;
public string Page
{
get
{
return _Page;
}
set
{
_Page = value;
}
}
private string _QueryString;
public string QueryString
{
get
{
return _QueryString;
}
set
{
_QueryString = value;
}
}
#endregion
#region 构造函数
public URLRewrite(string name, string pattern, string page, string querystring)
{
_Name = name;
_Pattern = pattern;
_Page = page;
_QueryString = querystring;
}
#endregion
}
}
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/HttpModule.cs | C# | oos | 8,983 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECProductCategory
{
public static int UpConFilePath(string con, int id)
{
return DataCommon.UpdateValue(TableName.TBProductCategory, "descript", con, " where id=" + id);
}
#region Method-ProductCategory
/// <summary>
/// 更新对像
/// </summary>
public static int EditProductCategory(EnProductCategory model)
{
return ProductCategorys.EditProductCategory(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnProductCategory GetProductCategoryInfo(string strWhere)
{
return ProductCategorys.GetProductCategoryInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnProductCategory> GetProductCategoryList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return ProductCategorys.GetProductCategoryList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnProductCategory> GetProductCategoryList(string strWhere, out int pageCount)
{
return GetProductCategoryList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnProductCategory> GetProductCategoryList(string strWhere)
{
int tmpPageCount = 0;
return GetProductCategoryList(-1, 0, strWhere, out tmpPageCount);
}
///获取数据列表
public static List<EnProductCategory> GetProductCategoryListToDDL(string strWhere)
{
List<EnProductCategory> list = ProductCategorys.GetProductCategoryList("", strWhere);
foreach (EnProductCategory c in list)
{
string sp = "";
for(int i=0;i<c.lev;i++)
{
sp = sp + "--";
}
c.title = "|" + sp + c.title;
}
return list;
}
//获取数据列表
public static List<EnProductCategory> GetProductCategoryList(string fields, string strWhere)
{
return ProductCategorys.GetProductCategoryList(fields, strWhere);
}
//获取数据列表ToDataTable
public static DataTable GetProductCategoryListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBProductCategory, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteProductCategory(int id)
{
return DeleteProductCategory(" where id=" + id);
}
///删除对象
public static int DeleteProductCategoryByIdList(string idList)
{
return DeleteProductCategory(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteProductCategory(string strWhere)
{
return DataCommon.Delete(TableName.TBProductCategory, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECProductCategory.cs | C# | oos | 3,554 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using TRECommon;
using TREC.ECommerce;
using TREC.Entity;
namespace TREC.ECommerce
{
public class WebPageBase:System.Web.UI.Page
{
public static int tmpPageCount = 0;
public static string webNmame = "家具快搜";
public string _pageTitle;
public string pageTitle { get {
return webNmame + _pageTitle;
}
set {
_pageTitle = value;
}
}
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/WebPageBase.cs | C# | oos | 600 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECRole
{
#region Method-Role
/// <summary>
/// 更新对像
/// </summary>
public static int EditRole(EnRole model)
{
return Permissions.EditRole(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnRole GetRoleInfo(string strWhere)
{
return Permissions.GetRoleInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnRole> GetRoleList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Permissions.GetRoleList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnRole> GetRoleList(string strWhere, out int pageCount)
{
return GetRoleList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnRole> GetRoleList(string strWhere)
{
int tmpPageCount = 0;
return GetRoleList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetRoleListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBSystemRole, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnRole(int id)
{
return DeletEnRole(" where id=" + id);
}
///删除对象
public static int DeletEnRoleByIdList(string idList)
{
return DeletEnRole(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnRole(string strWhere)
{
return DataCommon.Delete(TableName.TBSystemRole, strWhere);
}
#endregion
#region 角色与权限关联
/// <summary>
/// 更新对像
/// </summary>
public static int EditRoleActionDef(EnRoleActionDef model)
{
return Permissions.EditRoleActionDef(model);
}
public static int DelRoleActionDef(int roleid)
{
return DataCommon.Delete(TableName.TBRoleActionDef, " WHERE roleid=" + roleid);
}
public static List<EnRoleActionDef> GetRoleActionDefList(string strWhere)
{
return Permissions.GetRoleActionDefList(strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECRole.cs | C# | oos | 2,902 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECModule
{
#region 共公
/// <summary>
/// 更新对像
/// </summary>
public static int EditModule(EnModule model)
{
return Permissions.EditModule(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnModule GetModuleInfo(string strWhere)
{
return Permissions.GetModuleInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnModule> GetModuleList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Permissions.GetModuleList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnModule> GetModuleList(string strWhere, out int pageCount)
{
return GetModuleList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnModule> GetModuleList(string strWhere)
{
int tmpPageCount = 0;
return GetModuleList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetModuleListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBSystemModule, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteModule(int id)
{
return DeleteModule(" where id=" + id);
}
///删除对象
public static int DeleteModuleByIdList(string idList)
{
return DeleteModule(" where id in (" + idList + ")");
}
public static int UpModuleSort(int id, string sort)
{
return DataCommon.UpdateValue(TableName.TBSystemModule, "sort", sort, " where id=" + id);
}
///删除对象
public static int DeleteModule(string strWhere)
{
return DataCommon.Delete(TableName.TBSystemModule, strWhere);
}
#endregion
}
public class EnModuleDescSort : IComparer<EnModule>
{
public int Compare(EnModule x, EnModule y)
{
return y.sort.CompareTo(x.sort);
}
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECModule.cs | C# | oos | 2,679 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using TRECommon;
using TREC.ECommerce;
using TREC.Entity;
namespace TREC.ECommerce
{
public class MarketPageBase : System.Web.UI.Page
{
public static int tmpPageCount = 0;
public static string webNmame = "家具快搜";
public string _pageTitle;
public string pageTitle { get {
return webNmame + _pageTitle;
}
set {
_pageTitle = value;
}
}
public static EnWebMarket marketInfo = new EnWebMarket();
public MarketPageBase()
{
if (ECommon.QueryMid == "" || ECommon.QueryMid == "0")
{
this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(),
System.Guid.NewGuid().ToString(),
"<script>window.top.location.href='" + ECommon.WebUrl + "'</script>"
);
}
else
{
marketInfo = ECMarket.GetWebMarketInfo(" where id=" + ECommon.QueryMid);
}
if (!HttpContext.Current.Request.RawUrl.Contains("index2.aspx"))
{
if (marketInfo.template == null || marketInfo.template == "0")
{
HttpContext.Current.Response.Redirect(WebUtils.ResolveUrl("~/" + string.Format(EnUrls.MarketInfoIndex2, marketInfo.id)));
return;
}
}
}
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/MarketPageBase.cs | C# | oos | 1,619 |
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECShop
{
public static int ExitShopTitle(string title)
{
return Shops.ExitShopTitle(title);
}
public static EnWebShop GetWebShopInfo(string strWhere)
{
return Shops.GetWebShopInfo(strWhere);
}
public static int UpConFilePath(string con, int id)
{
return DataCommon.UpdateValue(TableName.TBShop, "descript", con, " where id=" + id);
}
public static List<EnWebShop> GetWebShopList(int PageIndex, int PageSize, string strWhere,string sortkey,string ordertype, out int pageCount)
{
return Shops.GetWebShopList(PageIndex, PageSize, strWhere, sortkey, ordertype, out pageCount);
}
public static List<EnWebShopBrand> GetWebShopBrandList(int PageIndex, int PageSize, string strWhere, string sortkey,string ordertype, out int pageCount)
{
return Shops.GetWebShopBrandList(PageIndex, PageSize, strWhere, sortkey, ordertype, out pageCount);
}
public static List<EnSearchItem> GetSearchItem()
{
List<EnSearchItem> list = new List<EnSearchItem>();
List<EnSearchItem> itemList = (List<EnSearchItem>)DataCache.GetCache(CacheKey.ShopSearchItemList);
if (itemList == null)
{
itemList = Shops.GetShopSearchItem();
DataCache.SetCache(CacheKey.ShopSearchItemList, itemList);
}
foreach (EnSearchItem item in itemList)
{
if (item.type == "brand" && !string.IsNullOrEmpty(item.value))
{
if (ECommon.QuerySearchBrand != "" && ECommon.QuerySearchBrand.Split('_').Contains(item.value))
{
item.isCur = true;
list.Add(item);
continue;
}
else
{
item.isCur = false;
}
}
if (item.type == "style" && !string.IsNullOrEmpty(item.value))
{
if (ECommon.QuerySearchStyle != "" && ECommon.QuerySearchStyle.Split('_').Contains(item.value))
{
item.isCur = true;
list.Add(item);
continue;
}
else
{
item.isCur = false;
}
}
if (item.type == "material" && !string.IsNullOrEmpty(item.value))
{
if (ECommon.QuerySearchMaterial != "" && ECommon.QuerySearchMaterial.Split('_').Contains(item.value))
{
item.isCur = true;
list.Add(item);
continue;
}
else
{
item.isCur = false;
}
}
if (item.type == "spread" && !string.IsNullOrEmpty(item.value))
{
if (ECommon.QuerySearchSpread != "" && ECommon.QuerySearchSpread.Split('_').Contains(item.value))
{
item.isCur = true;
list.Add(item);
continue;
}
else
{
item.isCur = false;
}
}
if (item.type == "staffsize" && !string.IsNullOrEmpty(item.value))
{
if (ECommon.QuerySearchStaffsize != "" && ECommon.QuerySearchStaffsize.Split('_').Contains(item.value))
{
item.isCur = true;
list.Add(item);
continue;
}
else
{
item.isCur = false;
}
}
list.Add(item);
}
return list;
}
#region Method-ShopBrand
public static List<EnShopBrand> GetReaderShopBrandList(string strWhere)
{
return Shops.GetShopBrandList(strWhere);
}
/// <summary>
/// 更新对像
/// </summary>
public static int EditShopBrand(List<EnShopBrand> list)
{
return Shops.EditShopBrand(list);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnShopBrand> GetShopBrandList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Shops.GetShopBrandList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnShopBrand> GetShopBrandList(string strWhere, out int pageCount)
{
return GetShopBrandList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnShopBrand> GetShopBrandList(string strWhere)
{
int tmpPageCount = 0;
return GetShopBrandList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetShopBrandListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBShopBrand, PageIndex, PageSize, strWhere, "shopid", 1, out pageCount);
}
///删除对象
public static int DeletEnShopBrandByShopId(int shopid)
{
return DeletEnShopBrand(" where shopid=" + shopid);
}
///删除对象
public static int DeletEnShopBrandByIdListByShopId(string idList)
{
return DeletEnShopBrand(" where shopid in (" + idList + ")");
}
///删除对象
public static int DeletEnShopBrandByBrandId(int brandid)
{
return DeletEnShopBrand(" where brandid=" + brandid);
}
///删除对象
public static int DeletEnShopBrandByIdListByBrandId(string idList)
{
return DeletEnShopBrand(" where brandid in (" + idList + ")");
}
///删除对象
public static int DeletEnShopBrand(string strWhere)
{
return DataCommon.Delete(TableName.TBShopBrand, strWhere);
}
#endregion
#region Method-Shop
/// <summary>
/// 更新对像
/// </summary>
public static int EditShop(EnShop model)
{
return Shops.EditShop(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnShop GetShopInfo(string strWhere)
{
return Shops.GetShopInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnShop> GetShopList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Shops.GetShopList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnShop> GetShopList(string strWhere, out int pageCount)
{
return GetShopList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnShop> GetShopList(string strWhere)
{
int tmpPageCount = 0;
return GetShopList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetShopListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBShop, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnShop(int id)
{
return DeletEnShop(" where id=" + id);
}
///删除对象
public static int DeletEnShopByIdList(string idList)
{
return DeletEnShop(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnShop(string strWhere)
{
return DataCommon.Delete(TableName.TBShop, strWhere);
}
#endregion
#region Method-ShopGroup
/// <summary>
/// 更新对像
/// </summary>
public static int EditShopGroup(EnShopGroup model)
{
return Shops.EditShopGroup(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnShopGroup GetShopGroupInfo(string strWhere)
{
return Shops.GetShopGroupInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnShopGroup> GetShopGroupList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Shops.GetShopGroupList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnShopGroup> GetShopGroupList(string strWhere, out int pageCount)
{
return GetShopGroupList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnShopGroup> GetShopGroupList(string strWhere)
{
int tmpPageCount = 0;
return GetShopGroupList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetShopGroupListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBShopGroup, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnShopGroup(int id)
{
return DeletEnShopGroup(" where id=" + id);
}
///删除对象
public static int DeletEnShopGroupByIdList(string idList)
{
return DeletEnShopGroup(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnShopGroup(string strWhere)
{
return DataCommon.Delete(TableName.TBShopGroup, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECShop.cs | C# | oos | 11,069 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECGroupOrderPay
{
#region Method-GroupOrderPay
/// <summary>
/// 更新对像
/// </summary>
public static int EditGroupOrderPay(EnGroupOrderPay model)
{
return GroupOrders.EditGroupOrderPay(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnGroupOrderPay GetGroupOrderPayInfo(string strWhere)
{
return GroupOrders.GetGroupOrderPayInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnGroupOrderPay> GetGroupOrderPayList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return GroupOrders.GetGroupOrderPayList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnGroupOrderPay> GetGroupOrderPayList(string strWhere, out int pageCount)
{
return GetGroupOrderPayList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnGroupOrderPay> GetGroupOrderPayList(string strWhere)
{
int tmpPageCount = 0;
return GetGroupOrderPayList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetGroupOrderPayListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBGroupOrderPay, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteGroupOrderPay(int id)
{
return DeleteGroupOrderPay(" where id=" + id);
}
///删除对象
public static int DeleteGroupOrderPayByIdList(string idList)
{
return DeleteGroupOrderPay(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteGroupOrderPay(string strWhere)
{
return DataCommon.Delete(TableName.TBGroupOrderPay, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECGroupOrderPay.cs | C# | oos | 2,462 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using TREC.Entity;
using TRECommon;
namespace TREC.ECommerce
{
public class SupplerPageBase:System.Web.UI.Page
{
public static EnMember memberInfo = null;
public static EnCompany companyInfo = null;
public static EnDealer dealerInfo = null;
public static EnMarket marketInfo = null;
public static EnShop shopInfo = null;
public static List<EnBrand> brandList = new List<EnBrand>();
public static string _memberType;
public static string memberTypeName
{
get
{
if (memberInfo == null) { return "未登陆"; }
return _memberType;
}
set
{
_memberType = value;
}
}
public int tmpPageCount = 0;
public static string brandidlist = "";
public string dealerCreateBrandIdList = "";
public int memberObjId = 0;
public static List<EnMenu> menuList = new List<EnMenu>();
public SupplerPageBase()
{
if (CookiesHelper.GetCookie("mid") == "" ||
CookiesHelper.GetCookie("mname") == "" ||
CookiesHelper.GetCookie("mpwd") == "" )
{
this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(),
System.Guid.NewGuid().ToString(),
"<script>window.top.location.href='" + ECommon.WebUrl + "/login.aspx" + "'</script>"
);
return;
}
memberInfo = ECMember.GetMemberInfo(" where id=" + CookiesHelper.GetCookie("mid") + " and password='" + CookiesHelper.GetCookie("mpwd") + "'");
switch (memberInfo.type)
{
case (int)EnumMemberType.个人成员:
memberTypeName = Enum.GetName(typeof(EnumMemberType), EnumMemberType.个人成员);
companyInfo = null;
dealerInfo = null;
marketInfo = null;
shopInfo = null;
//ScriptUtils.RedirectFrame(this.Page, ECommon.WebUrl);
break;
case (int)EnumMemberType.工厂企业:
memberTypeName = Enum.GetName(typeof(EnumMemberType), EnumMemberType.工厂企业);
companyInfo = ECCompany.GetCompanyInfo(" where mid=" + memberInfo.id);
brandList = ECBrand.GetBrandList(" companyid=" + companyInfo.id);
memberObjId = companyInfo.id;
brandidlist = "";
if (brandList.Count > 0)
{
foreach (EnBrand b in brandList)
{
brandidlist += b.id + ",";
}
brandidlist = brandidlist.Length > 0 && brandidlist.EndsWith(",") ? brandidlist.Substring(0, brandidlist.Length - 1) : brandidlist;
}
else
{
brandList = null;
brandList = new List<EnBrand>();
}
brandidlist = string.IsNullOrEmpty(brandidlist) ? "0" : brandidlist;
break;
case (int)EnumMemberType.经销商:
memberTypeName = Enum.GetName(typeof(EnumMemberType), EnumMemberType.经销商);
dealerInfo = ECDealer.GetDealerInfo(" where mid=" + memberInfo.id);
memberObjId = dealerInfo.id;
List<EnAppBrand> appList = ECAppBrand.GetAppBrandList(" dealerid=" + dealerInfo.id);
brandidlist = "";
foreach (EnAppBrand b in appList)
{
if (b.appmodule == (int)EnumAppBrandModule.经销商申请 && b.apptype == (int)EnumAppBrandType.申请新建品牌)
{
dealerCreateBrandIdList += b.brandid + ",";
}
brandidlist += b.brandid + ",";
}
brandidlist = brandidlist.Length > 0 && brandidlist.EndsWith(",") ? brandidlist.Substring(0, brandidlist.Length - 1) : brandidlist;
dealerCreateBrandIdList = dealerCreateBrandIdList.Length > 0 && dealerCreateBrandIdList.EndsWith(",") ? dealerCreateBrandIdList.Substring(0, dealerCreateBrandIdList.Length - 1) : dealerCreateBrandIdList;
if (brandidlist.Length > 0)
{
brandList = ECBrand.GetBrandList(" id in(" + brandidlist + ")");
}
else
{
brandList = null;
brandList = new List<EnBrand>();
}
brandidlist = string.IsNullOrEmpty(brandidlist) ? "0" : brandidlist;
break;
case (int)EnumMemberType.卖场:
memberTypeName = Enum.GetName(typeof(EnumMemberType), EnumMemberType.卖场);
marketInfo = ECMarket.GetMarketInfo(" where mid=" + memberInfo.id);
break;
case (int)EnumMemberType.店铺管理员:
memberTypeName = Enum.GetName(typeof(EnumMemberType), EnumMemberType.店铺管理员);
shopInfo = ECShop.GetShopInfo(" where mid=" + memberInfo.id);
break;
}
}
public void SetPermission(EnMember memberInfo, EnCompany companyInfo, EnDealer dealerInfo, EnMarket marketInfo, EnShop shopInfo, int? mid, int? companyid, int? dealerid, int? marketid, int? shopid,int? brandid, params System.Web.UI.Control[] controls)
{
switch (memberInfo.type)
{
case (int)EnumMemberType.工厂企业:
if (companyid != companyInfo.id)
{
foreach (System.Web.UI.Control c in controls)
{
c.Visible = false;
}
UiCommon.setPDialog(this.Page);
}
break;
case (int)EnumMemberType.经销商:
if (brandid == 0 && mid != memberInfo.id)
{
foreach (System.Web.UI.Control c in controls)
{
c.Visible = false;
}
UiCommon.setPDialog(this.Page);
}
if (brandid != 0 && !dealerCreateBrandIdList.Contains(brandid.ToString()))
{
foreach (System.Web.UI.Control c in controls)
{
c.Visible = false;
}
UiCommon.setPDialog(this.Page);
}
break;
}
}
public void SetPermission(int? mid, int? companyid, int? dealerid, int? marketid, int? shopid,int? brandid,params System.Web.UI.Control[] controls)
{
SetPermission(memberInfo, companyInfo, dealerInfo, marketInfo, shopInfo, mid, companyid, dealerid, marketid, shopid,brandid, controls);
}
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/SupplerPageBase.cs | C# | oos | 7,686 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECAggregation
{
public static List<EnWebAggregation> GetWebAggregationList(int PageIndex, int PageSize, string strWhere,string sortKey, string orderby, out int pageCount)
{
return Aggregations.GetWebAggregationList(PageIndex, PageSize, strWhere,sortKey, orderby, out pageCount);
}
public static List<EnWebAggregation> GetWebAggregationList(string strWhere,string sortkey,string ordertype)
{
int pageCount = 0;
return GetWebAggregationList(1, 50, strWhere, sortkey, ordertype, out pageCount);
}
public static List<EnWebAggregation> GetWebAggregationList(string strWhere)
{
int pageCount = 0;
return GetWebAggregationList(1, 50, strWhere, "", "", out pageCount);
}
public static List<EnWebAggregation> GetWebAggregationListByParentIdList(string parentidlist)
{
int pageCount = 0;
return GetWebAggregationList(1, 50, " and parent in (" + parentidlist + ")", "","", out pageCount);
}
public static List<EnWebAggregation> GetWebIndexAggregationListByParentIdList()
{
List<EnWebAggregation> list = null;
int pageCount = 0;
list = GetWebAggregationList(1, 100000, " and parent in (1,6,9,14,17)", "sort","desc", out pageCount);
//if (DataCache.GetCache(CacheKey.IndexAggregation) != null)
//{
// list = (List<EnWebAggregation>)DataCache.GetCache(CacheKey.IndexAggregation);
//}
//else
//{
// int pageCount = 0;
// list= GetWebAggregationList(1, 50, " parent in (1,6,9,14,17)", "", out pageCount);
//}
return list;
}
public static List<EnWebAggregation> GetWebCommonAggregationListByParentIdList()
{
List<EnWebAggregation> list = null;
int pageCount = 0;
list = GetWebAggregationList(1, 50, " and parent in (27,28,29,33,34,37)", "", "", out pageCount);
//if (DataCache.GetCache(CacheKey.CommonAggregation) != null)
//{
// list = (List<EnWebAggregation>)DataCache.GetCache(CacheKey.CommonAggregation);
//}
//else
//{
// int pageCount = 0;
// list= GetWebAggregationList(1, 50, " parent in (1,6,9,14,17)", "", out pageCount);
//}
return list;
}
#region Method-Aggregation
/// <summary>
/// 更新对像
/// </summary>
public static int EditAggregation(EnAggregation model)
{
return Aggregations.EditAggregation(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnAggregation GetAggregationInfo(string strWhere)
{
return Aggregations.GetAggregationInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnAggregation> GetAggregationList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Aggregations.GetAggregationList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAggregation> GetAggregationList(string strWhere, out int pageCount)
{
return GetAggregationList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAggregation> GetAggregationList(string strWhere)
{
int tmpPageCount = 0;
return GetAggregationList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetAggregationListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBAggregation, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteAggregation(int id)
{
return DeleteAggregation(" where id=" + id);
}
///删除对象
public static int DeleteAggregationByIdList(string idList)
{
return DeleteAggregation(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteAggregation(string strWhere)
{
return DataCommon.Delete(TableName.TBAggregation, strWhere);
}
#endregion
#region Method-AggregationType
/// <summary>
/// 更新对像
/// </summary>
public static int EditAggregationType(EnAggregationType model)
{
return Aggregations.EditAggregationType(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnAggregationType GetAggregationTypeInfo(string strWhere)
{
return Aggregations.GetAggregationTypeInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnAggregationType> GetAggregationTypeList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
List<EnAggregationType> list=Aggregations.GetAggregationTypeList(PageIndex, PageSize, strWhere, out pageCount);
List<EnAggregationType> templist=new List<EnAggregationType>();
foreach (EnAggregationType t in list.Where(s => s.parentid == 0))
{
templist.Add(t);
foreach (EnAggregationType s in list.Where(s=>s.parentid==t.id))
{
templist.Add(s);
}
}
return templist;
}
///获取数据列表
public static List<EnAggregationType> GetAggregationTypeList(string strWhere, out int pageCount)
{
return GetAggregationTypeList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAggregationType> GetAggregationTypeList(string strWhere)
{
int tmpPageCount = 0;
return GetAggregationTypeList(-1, 0, strWhere, out tmpPageCount);
}
///获取数据列表
public static List<EnAggregationType> GetAggregationTypeListToDDL()
{
int tmpPageCount = 0;
List < EnAggregationType > list = GetAggregationTypeList(-1, 0, "", out tmpPageCount);
foreach (EnAggregationType t in list)
{
if (t.parentid != 0)
{
t.title = "|--" + t.title;
}
}
return list;
}
//获取数据列表ToDataTable
public static DataTable GetAggregationTypeListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBAggregationType, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteAggregationType(int id)
{
return DeleteAggregationType(" where id=" + id);
}
///删除对象
public static int DeleteAggregationTypeByIdList(string idList)
{
return DeleteAggregationType(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteAggregationType(string strWhere)
{
return DataCommon.Delete(TableName.TBAggregationType, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECAggregation.cs | C# | oos | 8,134 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECAdvertisementCategory
{
#region Method-AdvertisementCategory
public static int ExitAdvertisementCategory(int id)
{
return DataCommon.Exists(TableName.TBAdvertisementCategory, " where id=" + id);
}
public static string GetAdCategropyAdType(string id)
{
return DataCommon.GetDataRow(TableName.TBAdvertisementCategory, "adtype", " where id=" + id, "")["adtype"].ToString();
}
/// <summary>
/// 更新对像
/// </summary>
public static int EditAdvertisementCategory(EnAdvertisementCategory model)
{
return Advertisements.EditAdvertisementCategory(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnAdvertisementCategory GetAdvertisementCategoryInfo(string strWhere)
{
return Advertisements.GetAdvertisementCategoryInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnAdvertisementCategory> GetAdvertisementCategoryList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Advertisements.GetAdvertisementCategoryList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAdvertisementCategory> GetAdvertisementCategoryList(string strWhere, out int pageCount)
{
return GetAdvertisementCategoryList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAdvertisementCategory> GetAdvertisementCategoryList(string strWhere)
{
int tmpPageCount = 0;
return GetAdvertisementCategoryList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetAdvertisementCategoryListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBAdvertisementCategory, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnAdvertisementCategory(int id)
{
return DeletEnAdvertisementCategory(" where id=" + id);
}
///删除对象
public static int DeletEnAdvertisementCategoryByIdList(string idList)
{
return DeletEnAdvertisementCategory(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnAdvertisementCategory(string strWhere)
{
return DataCommon.Delete(TableName.TBAdvertisementCategory, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECAdvertisementCategory.cs | C# | oos | 3,076 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECMember
{
//获取最新注册用户
public static List<EnMember> GetTop20MemberList()
{
return GetMemberList("", " where type=" + (int)EnumMemberType.个人成员 + " and id not in (select mid from " + TableName.TBCompany + ") and id not in (select mid from " + TableName.TBDealer + ") and id not in (select mid from " + TableName.TBShop + ") and id not in (select mid from " + TableName.TBMarket + ") ", " order by id desc");
}
public static List<EnMember> GetTop20MemberList(string name)
{
string strWhere = "";
if (!string.IsNullOrEmpty(name))
{
strWhere += " and username like '%" + name + "%' ";
}
return GetMemberList(" top 20 * ", " where type=" + (int)EnumMemberType.个人成员 + " and id not in (select mid from " + TableName.TBCompany + ") and id not in (select mid from " + TableName.TBDealer + ") and id not in (select mid from " + TableName.TBShop + ") and id not in (select mid from " + TableName.TBMarket + ") " + strWhere, " order by id desc");
}
/// <summary>
/// 检查会员是否存在
/// </summary>
/// <param name="name"></param>
/// <returns></returns>
public static int ChkecUserName(string name)
{
return DataCommon.Exists(TableName.TBMember, " where username='" + name + "'");
}
/// <summary>
/// 登陆
/// </summary>
/// <param name="name"></param>
/// <param name="pwd"></param>
/// <returns></returns>
public static int Login(string name, string pwd)
{
DataRow dr = DataCommon.GetDataRow(TableName.TBMember, "id,type,logincount", " where username='" + name + "' and password='" + MyMD5.GetMD5(pwd) + "'", "");
if (dr != null && dr["id"] != Convert.DBNull)
{
DataCommon.UpdateValue(TableName.TBMember, "logincount", (TypeConverter.StrToInt(dr["logincount"].ToString())+1).ToString(), " where id=" + dr["id"].ToString());
CookiesHelper.WriteCookie("mid", dr["id"].ToString());
CookiesHelper.WriteCookie("mname", name);
CookiesHelper.WriteCookie("mpwd", MyMD5.GetMD5(pwd));
if (dr["type"] != Convert.DBNull && dr["type"].ToString() != "0" && dr["type"].ToString() != "")
{
return TypeConverter.StrToInt(dr["type"].ToString());
}
return TypeConverter.StrToInt(dr["type"].ToString());
}
return 0;
}
#region Method-Member
/// <summary>
/// 更新对像
/// </summary>
public static int EditMember(EnMember model)
{
return Members.EditMember(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnMember GetMemberInfo(string strWhere)
{
return Members.GetMemberInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnMember> GetMemberList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Members.GetMemberList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMember> GetMemberList(string strWhere, out int pageCount)
{
return GetMemberList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMember> GetMemberList(string strWhere)
{
int tmpPageCount = 0;
return GetMemberList(-1, 0, strWhere, out tmpPageCount);
}
///获取数据列表
public static List<EnMember> GetMemberList(string field,string strWhere,string sort)
{
return Members.GetMemberList(field, strWhere, sort);
}
//获取数据列表ToDataTable
public static DataTable GetMemberListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBMember, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnMember(int id)
{
return DeletEnMember(" where id=" + id);
}
///删除对象
public static int DeletEnMemberByIdList(string idList)
{
return DeletEnMember(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnMember(string strWhere)
{
return DataCommon.Delete(TableName.TBMember, strWhere);
}
#endregion
#region Method-MemberGroup
/// <summary>
/// 更新对像
/// </summary>
public static int EditMemberGroup(EnMemberGroup model)
{
return Members.EditMemberGroup(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnMemberGroup GetMemberGroupInfo(string strWhere)
{
return Members.GetMemberGroupInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnMemberGroup> GetMemberGroupList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Members.GetMemberGroupList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMemberGroup> GetMemberGroupList(string strWhere, out int pageCount)
{
return GetMemberGroupList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMemberGroup> GetMemberGroupList(string strWhere)
{
int tmpPageCount = 0;
return GetMemberGroupList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetMemberGroupListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBMemberGroup, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnMemberGroup(int id)
{
return DeletEnMemberGroup(" where id=" + id);
}
///删除对象
public static int DeletEnMemberGroupByIdList(string idList)
{
return DeletEnMemberGroup(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnMemberGroup(string strWhere)
{
return DataCommon.Delete(TableName.TBMemberGroup, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECMember.cs | C# | oos | 7,352 |
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的常规信息通过以下
// 特性集控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("TREC.ECommerce")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("FORDIO")]
[assembly: AssemblyProduct("TREC.ECommerce")]
[assembly: AssemblyCopyright("Copyright © FORDIO 2012")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 使此程序集中的类型
// 对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型,
// 则将该类型上的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("f5f24c73-6c29-4764-9005-6d21e75c90bb")]
// 程序集的版本信息由下面四个值组成:
//
// 主版本
// 次版本
// 内部版本号
// 修订号
//
// 可以指定所有这些值,也可以使用“内部版本号”和“修订号”的默认值,
// 方法是按如下所示使用“*”:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/Properties/AssemblyInfo.cs | C# | oos | 1,372 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TRECommon;
namespace TREC.ECommerce
{
public class ECUrls
{
public static string UrlIndex = "";
public static string UrlCompanyList = WebUtils.ResolveUrl("/company/list.aspx");
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECUrls.cs | C# | oos | 323 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECProductAttribute
{
#region Method-ProductAttribute
/// <summary>
/// 更新对像
/// </summary>
public static int EditProductAttribute(EnProductAttribute model)
{
return ProductAttributes.EditProductAttribute(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnProductAttribute GetProductAttributeInfo(string strWhere)
{
return ProductAttributes.GetProductAttributeInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnProductAttribute> GetProductAttributeList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return ProductAttributes.GetProductAttributeList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnProductAttribute> GetProductAttributeList(string strWhere, out int pageCount)
{
return GetProductAttributeList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnProductAttribute> GetProductAttributeList(string strWhere)
{
int tmpPageCount = 0;
return GetProductAttributeList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetProductAttributeListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBProductAttribute, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteProductAttribute(int id)
{
return DeleteProductAttribute(" where id=" + id);
}
///删除对象
public static int DeleteProductAttributeByIdList(string idList)
{
return DeleteProductAttribute(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteProductAttribute(string strWhere)
{
return DataCommon.Delete(TableName.TBProductAttribute, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECProductAttribute.cs | C# | oos | 2,569 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECGroupOrderProduct
{
#region Method-GroupOrderProduct
/// <summary>
/// 更新对像
/// </summary>
public static int EditGroupOrderProduct(EnGroupOrderProduct model)
{
return GroupOrders.EditGroupOrderProduct(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnGroupOrderProduct GetGroupOrderProductInfo(string strWhere)
{
return GroupOrders.GetGroupOrderProductInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnGroupOrderProduct> GetGroupOrderProductList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return GroupOrders.GetGroupOrderProductList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnGroupOrderProduct> GetGroupOrderProductList(string strWhere, out int pageCount)
{
return GetGroupOrderProductList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnGroupOrderProduct> GetGroupOrderProductList(string strWhere)
{
int tmpPageCount = 0;
return GetGroupOrderProductList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetGroupOrderProductListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBGroupOrderProduct, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteGroupOrderProduct(int id)
{
return DeleteGroupOrderProduct(" where id=" + id);
}
///删除对象
public static int DeleteGroupOrderProductByIdList(string idList)
{
return DeleteGroupOrderProduct(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteGroupOrderProduct(string strWhere)
{
return DataCommon.Delete(TableName.TBGroupOrderProduct, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECGroupOrderProduct.cs | C# | oos | 2,562 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using TRECommon;
using TREC.ECommerce;
using TREC.Entity;
namespace TREC.ECommerce
{
public class CompanyPageBase : System.Web.UI.Page
{
public static int tmpPageCount = 0;
public static string webNmame = "家具快搜";
public string _pageTitle;
public string pageTitle { get {
return webNmame + _pageTitle;
}
set {
_pageTitle = value;
}
}
public static EnWebCompany companyInfo = new EnWebCompany();
public CompanyPageBase()
{
if (ECommon.QueryCId == "" || ECommon.QueryCId == "0")
{
this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(),
System.Guid.NewGuid().ToString(),
"<script>window.top.location.href='" + ECommon.WebUrl + "'</script>"
);
}
else
{
companyInfo = ECCompany.GetWebCompanyInfo(" where id=" + ECommon.QueryCId);
}
if (!HttpContext.Current.Request.RawUrl.Contains("index2.aspx"))
{
if(companyInfo==null || companyInfo.id==0 || companyInfo.template == null || companyInfo.template == "0")
{
HttpContext.Current.Response.Redirect(WebUtils.ResolveUrl("~/" + string.Format(EnUrls.CompanyInfoIndex2, companyInfo.id)));
return;
}
}
}
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/CompanyPageBase.cs | C# | oos | 1,686 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Web;
using System.Web.UI.WebControls;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECArticle
{
public static void BindArticleCategory(DropDownList ddl)
{
int pageCount = 0;
List<EnArticleCategory> list = GetReaderArticleCategoryList(1, 10000, "", "", " lft", "asc", out pageCount);
foreach (EnArticleCategory c in list)
{
c.title = c.lev > 1 ? "├ " + c.title : c.title;
c.title = StringOperation.StringOfChar(c.lev - 1, " ") + c.title;
}
ddl.DataSource = list;
ddl.DataTextField = "title";
ddl.DataValueField = "id";
ddl.DataBind();
ddl.Items.Insert(0, new ListItem("请选择分类", "0"));
}
public static int UpConFilePath(string con, int id)
{
return DataCommon.UpdateValue(TableName.TBArticle, "context", con, " where id=" + id);
}
public static int UpCategoryConFilePath(string con, int id)
{
return DataCommon.UpdateValue(TableName.TBArticleCategory, "context", con, " where id=" + id);
}
//分类上移
public static int CategoryArticleNodeUp(int id)
{
return DataCommon.CategoryNodeUp(TableName.TPArticleCategoryUp, id);
//TPArticleCategoryUp
}
#region Method-Article
/// <summary>
/// 更新对像
/// </summary>
public static int EditArticle(EnArticle model)
{
return Articles.EditArticle(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnArticle GetArticleInfo(string strWhere)
{
return Articles.GetArticleInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnArticle> GetArticleList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Articles.GetArticleList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnArticle> GetArticleList(string strWhere, out int pageCount)
{
return GetArticleList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnArticle> GetArticleList(string strWhere)
{
int tmpPageCount = 0;
return GetArticleList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetArticleListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TVArticle, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
public static List<EnArticle> GetReaderArticleList(int PageIndex, int PageSize, string strWhere,string field,string orderkey,string ordertype, out int pageCount)
{
return Articles.GetArticleList(PageIndex, PageSize, strWhere, field, orderkey, ordertype, out pageCount);
}
public static List<EnArticle> GetReaderArticleList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Articles.GetArticleList(PageIndex, PageSize, strWhere, "", "", "", out pageCount);
}
///删除对象
public static int DeleteArticle(int id)
{
return DeleteArticle(" where id=" + id);
}
///删除对象
public static int DeleteArticleByIdList(string idList)
{
return DeleteArticle(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteArticle(string strWhere)
{
return DataCommon.Delete(TableName.TBArticle, strWhere);
}
#endregion
#region Method-ArticleCategory
/// <summary>
/// 更新对像
/// </summary>
public static int EditArticleCategory(EnArticleCategory model)
{
return Articles.EditArticleCategory(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnArticleCategory GetArticleCategoryInfo(string strWhere)
{
return Articles.GetArticleCategoryInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnArticleCategory> GetArticleCategoryList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Articles.GetArticleCategoryList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnArticleCategory> GetArticleCategoryList(string strWhere, out int pageCount)
{
return GetArticleCategoryList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnArticleCategory> GetArticleCategoryList(string strWhere)
{
int tmpPageCount = 0;
return GetArticleCategoryList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetArticleCategoryListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBArticleCategory, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
public static List<EnArticleCategory> GetReaderArticleCategoryList(int PageIndex, int PageSize, string strWhere, string field, string orderkey, string ordertype, out int pageCount)
{
return Articles.GetArticleCategoryList(PageIndex, PageSize, strWhere, field, orderkey, ordertype, out pageCount);
}
public static List<EnArticleCategory> GetReaderArticleCategoryList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Articles.GetArticleCategoryList(PageIndex, PageSize, strWhere, "", "", "", out pageCount);
}
///删除对象
public static int DeleteArticleCategory(int id)
{
return DeleteArticleCategory(" where id=" + id);
}
///删除对象
public static int DeleteArticleCategoryByIdList(string idList)
{
return DeleteArticleCategory(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteArticleCategory(string strWhere)
{
return DataCommon.Delete(TableName.TBArticleCategory, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECArticle.cs | C# | oos | 7,102 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECMenu
{
#region Method-Menu
/// <summary>
/// 更新对像
/// </summary>
public static int EditMenu(EnMenu model)
{
return Menus.EditMenu(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnMenu GetMenuInfo(string strWhere)
{
return Menus.GetMenuInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnMenu> GetMenuList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Menus.GetMenuList(PageIndex, PageSize, strWhere, out pageCount);
}
public static List<EnMenu> GetMenuList(string filed, string strWhere, string sort)
{
if (sort == "")
{
sort = "order by sort desc";
}
List<EnMenu> list = Menus.GetMenuList(filed, strWhere, sort);
List<EnMenu> t = new List<EnMenu>();
var p = list.GroupBy(x => new { x.module });
foreach (var i in p)
{
foreach (EnMenu m in list.Where(j => j.module == i.Key.module && j.parent==0))
{
t.Add(m);
foreach (EnMenu s in list.Where(n => n.parent == m.id))
{
t.Add(s);
}
}
}
return t;
}
///获取数据列表
public static List<EnMenu> GetMenuList(string strWhere, out int pageCount)
{
return GetMenuList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMenu> GetMenuList(string strWhere)
{
int tmpPageCount = 0;
return GetMenuList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetMenuListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBMenu, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteMenu(int id)
{
return DeleteMenu(" where id=" + id);
}
///删除对象
public static int DeleteMenuByIdList(string idList)
{
return DeleteMenu(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteMenu(string strWhere)
{
return DataCommon.Delete(TableName.TBMenu, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECMenu.cs | C# | oos | 3,037 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECAction
{
#region Method-Action
/// <summary>
/// 更新对像
/// </summary>
public static int EditAction(EnAction model)
{
return Permissions.EditAction(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnAction GetActionInfo(string strWhere)
{
return Permissions.GetActionInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnAction> GetActionList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Permissions.GetActionList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAction> GetActionList(string strWhere, out int pageCount)
{
return GetActionList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAction> GetActionList(string strWhere)
{
int tmpPageCount = 0;
return GetActionList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetActionListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBSystemAction, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnAction(int id)
{
return DeletEnAction(" where id=" + id);
}
///删除对象
public static int DeletEnActionByIdList(string idList)
{
return DeletEnAction(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnAction(string strWhere)
{
return DataCommon.Delete(TableName.TBSystemAction, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/EAction.cs | C# | oos | 2,304 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECDealer
{
public static int ExitDealer(string title)
{
return Dealers.ExitDealer(title);
}
public static int UpConFilePath(string con, int id)
{
return DataCommon.UpdateValue(TableName.TBDealer, "descript", con, " where id=" + id);
}
#region Method-Dealer
/// <summary>
/// 更新对像
/// </summary>
public static int EditDealer(EnDealer model)
{
return Dealers.EditDealer(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnDealer GetDealerInfo(string strWhere)
{
return Dealers.GetDealerInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnDealer> GetDealerList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Dealers.GetDealerList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnDealer> GetDealerList(string strWhere, out int pageCount)
{
return GetDealerList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnDealer> GetDealerList(string strWhere)
{
int tmpPageCount = 0;
return GetDealerList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetDealerListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBDealer, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteDealer(int id)
{
return DeleteDealer(" where id=" + id);
}
///删除对象
public static int DeleteDealerByIdList(string idList)
{
return DeleteDealer(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteDealer(string strWhere)
{
return DataCommon.Delete(TableName.TBDealer, strWhere);
}
#endregion
#region Method-DealerGroup
/// <summary>
/// 更新对像
/// </summary>
public static int EditDealerGroup(EnDealerGroup model)
{
return Dealers.EditDealerGroup(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnDealerGroup GetDealerGroupInfo(string strWhere)
{
return Dealers.GetDealerGroupInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnDealerGroup> GetDealerGroupList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Dealers.GetDealerGroupList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnDealerGroup> GetDealerGroupList(string strWhere, out int pageCount)
{
return GetDealerGroupList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnDealerGroup> GetDealerGroupList(string strWhere)
{
int tmpPageCount = 0;
return GetDealerGroupList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetDealerGroupListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBDealerGroup, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnDealerGroup(int id)
{
return DeletEnDealerGroup(" where id=" + id);
}
///删除对象
public static int DeletEnDealerGroupByIdList(string idList)
{
return DeletEnDealerGroup(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnDealerGroup(string strWhere)
{
return DataCommon.Delete(TableName.TBDealerGroup, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECDealer.cs | C# | oos | 4,745 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECMarketStorey
{
#region Method-MarketStorey
/// <summary>
/// 更新对像
/// </summary>
public static int EditMarketStorey(EnMarketStorey model)
{
return MarketStoreys.EditMarketStorey(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnMarketStorey GetMarketStoreyInfo(string strWhere)
{
return MarketStoreys.GetMarketStoreyInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnMarketStorey> GetMarketStoreyList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return MarketStoreys.GetMarketStoreyList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMarketStorey> GetMarketStoreyList(string strWhere, out int pageCount)
{
return GetMarketStoreyList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMarketStorey> GetMarketStoreyList(string strWhere)
{
int tmpPageCount = 0;
return GetMarketStoreyList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetMarketStoreyListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBMarketStorey, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteMarketStorey(int id)
{
return DeleteMarketStorey(" where id=" + id);
}
///删除对象
public static int DeleteMarketStoreyByIdList(string idList)
{
return DeleteMarketStorey(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteMarketStorey(string strWhere)
{
return DataCommon.Delete(TableName.TBMarketStorey, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECMarketStorey.cs | C# | oos | 2,445 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECPromotionDef
{
public static List<EnWebPromotionInfoList> GetWebPromotionInfoList(int PageIndex, int PageSize, string strWhere, string sortkey, string orderby, out int pageCount)
{
return Promotions.GetWebPromotionInfoList(PageIndex, PageSize, strWhere, sortkey, orderby, out pageCount);
}
public static EnWebPromotionInfoList GetWebPromotionInfoListInfo(string strWhere)
{
return Promotions.GetWebPromotionInfoListInfo(strWhere);
}
public static int ExtWebPromotionDefByBrand(int bid,int pid)
{
return DataCommon.Exists(TableName.TBPromotionDef, " where value=" + bid + " and type=" + (int)EnumPromotionDefType.品牌 + " and pid=" + pid);
}
public static EnWebPromotionInfoList GetWebPromotionInfoListInfo(int pid,int id)
{
return Promotions.GetWebPromotionInfoListInfo(" where pid=" + pid + " and id=" + id);
}
public static int UpConFilePath(string con, int id)
{
return DataCommon.UpdateValue(TableName.TBPromotionDef, "descript", con, " where id=" + id);
}
public static int ExistsDef(EnPromotionDef model)
{
return DataCommon.Exists(TableName.TBPromotionDef, " where type='" + model.type + "' and value='" + model.value + "' and pid='" + model.pid + "'");
}
#region Method-PromotionDef
/// <summary>
/// 更新对像
/// </summary>
public static int EditPromotionDef(EnPromotionDef model)
{
return Promotions.EditPromotionDef(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnPromotionDef GetPromotionDefInfo(string strWhere)
{
return Promotions.GetPromotionDefInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnPromotionDef> GetPromotionDefList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Promotions.GetPromotionDefList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnPromotionDef> GetPromotionDefList(string strWhere, out int pageCount)
{
return GetPromotionDefList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnPromotionDef> GetPromotionDefList(string strWhere)
{
int tmpPageCount = 0;
return GetPromotionDefList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetPromotionDefListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBPromotionDef, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletePromotionDef(int id)
{
return DeletePromotionDef(" where id=" + id);
}
///删除对象
public static int DeletePromotionDefByIdList(string idList)
{
return DeletePromotionDef(" where id in (" + idList + ")");
}
///删除对象
public static int DeletePromotionDef(string strWhere)
{
return DataCommon.Delete(TableName.TBPromotionDef, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECPromotionDef.cs | C# | oos | 3,832 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECConfig
{
//判断配置类型标识是否存在。/标识全局唯一
public static int ExitConfigTypeMark(string mark)
{
return DataCommon.Exists(TableName.TBConfigType, " where mark='" + mark + "'");
}
public static int UpConfigSort(string sort,int id)
{
return DataCommon.UpdateValue(TableName.TBConfig, "sort", sort, " where id=" + id);
}
//根据配置模块及模块配置类型读取名称
public static string GetTypeName(string module, string type)
{
if (module == "" || type == "")
{
return "";
}
DataRow dr = DataCommon.GetDataRow(TableName.TBConfigType, "title", " where type='" + module + "' and id=" + type, "");
if (dr != Convert.DBNull && dr != null && dr.Table.Rows.Count > 0)
return dr["title"].ToString();
return "";
}
#region Method-Config
/// <summary>
/// 更新对像
/// </summary>
public static int EditConfig(EnConfig model)
{
return Configs.EditConfig(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnConfig GetConfigInfo(string strWhere)
{
return Configs.GetConfigInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnConfig> GetConfigList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Configs.GetConfigList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnConfig> GetConfigList(string strWhere, out int pageCount)
{
return GetConfigList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnConfig> GetConfigList(string strWhere)
{
int tmpPageCount = 0;
return GetConfigList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetConfigListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBConfig, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteConfig(int id)
{
return DeleteConfig(" where id=" + id);
}
///删除对象
public static int DeleteConfigByIdList(string idList)
{
return DeleteConfig(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteConfig(string strWhere)
{
return DataCommon.Delete(TableName.TBConfig, strWhere);
}
#endregion
#region Method-ConfigType
/// <summary>
/// 更新对像
/// </summary>
public static int EditConfigType(EnConfigType model)
{
return Configs.EditConfigType(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnConfigType GetConfigTypeInfo(string strWhere)
{
return Configs.GetConfigTypeInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnConfigType> GetConfigTypeList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Configs.GetConfigTypeList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnConfigType> GetConfigTypeList(string strWhere, out int pageCount)
{
return GetConfigTypeList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnConfigType> GetConfigTypeList(string strWhere)
{
int tmpPageCount = 0;
return GetConfigTypeList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetConfigTypeListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBConfigType, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteConfigType(int id)
{
return DeleteConfigType(" where id=" + id);
}
///删除对象
public static int DeleteConfigTypeByIdList(string idList)
{
return DeleteConfigType(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteConfigType(string strWhere)
{
return DataCommon.Delete(TableName.TBConfigType, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECConfig.cs | C# | oos | 5,386 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECArea
{
#region Method-Area
/// <summary>
/// 更新对像
/// </summary>
public static int EditArea(EnArea model)
{
return Areas.EditArea(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnArea GetAreaInfo(string strWhere)
{
return Areas.GetAreaInfo(strWhere);
}
///获取数据列表
public static List<EnArea> GetAreaList(string strWhere)
{
return Areas.GetAreaList(" where " + strWhere);
}
///删除对象
public static int DeleteAreaByAreacode(string areacode)
{
return DeleteArea(" where areacode='" + areacode + "'");
}
///删除对象
public static int DeleteAreaByIdList(string idList)
{
return DeleteArea(" where id areacode (" + idList + ")");
}
///删除对象
public static int DeleteArea(string strWhere)
{
return DataCommon.Delete(TableName.TBArea, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECArea.cs | C# | oos | 1,412 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECMarketStoreyShop
{
public static EnWebMarketStoreyShop GetWebMarketStoreyShopInfo(string strWhere)
{
return MarketStoreyShops.GetWebMarketStoreyShopInfo(strWhere);
}
public static List<EnWebMarketStoreyShop> GetWebMarketStoreyShopList(int PageIndex, int PageSize, string strWhere,string sortkey, string ordertype, out int pageCount)
{
return MarketStoreyShops.GetWebWebMarketStoreyShopList(PageIndex, PageSize, strWhere, sortkey, ordertype, out pageCount);
}
#region Method-MarketStoreyShop
public static int UpMarketShopLev(string id, string lev)
{
return DataCommon.UpdateValue(TableName.TBMarketStoreyShop, "lev", lev, " where id=" + id);
}
public static int UpMarketShopTop(string id, string value)
{
return DataCommon.UpdateValue(TableName.TBMarketStoreyShop, "istop", value, " where id=" + id);
}
public static int UpMarketShopRecommend(string id, string value)
{
return DataCommon.UpdateValue(TableName.TBMarketStoreyShop, "isrecommend", value, " where id=" + id);
}
public static int UpMarketShorey(List<EnMarketStoreyShop> list)
{
return MarketStoreyShops.UpMarketShorey(list);
}
/// <summary>
/// 更新对像
/// </summary>
public static int EditMarketStoreyShop(EnMarketStoreyShop model)
{
return MarketStoreyShops.EditMarketStoreyShop(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnMarketStoreyShop GetMarketStoreyShopInfo(string strWhere)
{
return MarketStoreyShops.GetMarketStoreyShopInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnMarketStoreyShop> GetMarketStoreyShopList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return MarketStoreyShops.GetMarketStoreyShopList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMarketStoreyShop> GetMarketStoreyShopList(string strWhere, out int pageCount)
{
return GetMarketStoreyShopList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnMarketStoreyShop> GetMarketStoreyShopList(string strWhere)
{
int tmpPageCount = 0;
return GetMarketStoreyShopList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetMarketStoreyShopListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBMarketStoreyShop, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteMarketStoreyShop(int id)
{
return DeleteMarketStoreyShop(" where id=" + id);
}
///删除对象
public static int DeleteMarketStoreyShopByIdList(string idList)
{
return DeleteMarketStoreyShop(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteMarketStoreyShop(string strWhere)
{
return DataCommon.Delete(TableName.TBMarketStoreyShop, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECMarketStoreyShop.cs | C# | oos | 3,853 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECAppBrand
{
#region Method-AppBrand
public static int AddAppendBrand(List<EnAppBrand> list)
{
return Brands.AddAppendBrand(list);
}
/// <summary>
/// 更新对像
/// </summary>
public static int EditAppBrand(EnAppBrand model)
{
return Brands.EditAppBrand(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnAppBrand GetAppBrandInfo(string strWhere)
{
return Brands.GetAppBrandInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnAppBrand> GetAppBrandList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Brands.GetAppBrandList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAppBrand> GetAppBrandList(string strWhere, out int pageCount)
{
return GetAppBrandList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAppBrand> GetAppBrandList(string strWhere)
{
int tmpPageCount = 0;
return GetAppBrandList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetAppBrandListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBAppBrand, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
public static string GetAppBrandIdListByCompany(string companyId)
{
List<EnAppBrand> list = GetAppBrandList(" companyid=" + companyId);
StringBuilder sb = new StringBuilder();
foreach (EnAppBrand b in list)
{
sb.Append(b.id + ",");
}
return sb.ToString().Length > 0 && sb.ToString().EndsWith(",") ? sb.ToString().Substring(0, sb.ToString().Length - 1) : sb.ToString();
}
///删除对象
public static int UpAppBrand(int id)
{
return DataCommon.UpdateValue(TableName.TBAppBrand, "auditstatus", "1", " where id=" + id);
}
///删除对象
public static int DeleteAppBrand(int id)
{
return DeleteAppBrand(" where id=" + id);
}
///删除对象
public static int DeleteAppBrandByIdList(string idList)
{
return DeleteAppBrand(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteAppBrand(string strWhere)
{
return DataCommon.Delete(TableName.TBAppBrand, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECAppBrand.cs | C# | oos | 3,161 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using TRECommon;
namespace TREC.ECommerce
{
public class UiCommon
{
//根据参数或页面名称设置样式
public static string QueryStringCur(string query, string qvalue, string css, string curcss,char spl)
{
spl = spl.ToString()=="" ? ',' : spl;
string pageName = HttpContext.Current.Request.CurrentExecutionFilePath.Substring(HttpContext.Current.Request.CurrentExecutionFilePath.LastIndexOf("/") + 1);
if (WebRequest.GetQueryString(query) == "" || query == "pageName")
{
if (query == "pageName")
{
if (!string.IsNullOrEmpty(pageName))
{
foreach (string s in qvalue.Split(spl))
{
if (pageName.ToLower() == s.ToLower())
{
return curcss;
}
}
}
}
}
if (!string.IsNullOrEmpty(qvalue))
{
foreach (string s in qvalue.Split(spl))
{
if (s != "")
{
if (WebRequest.GetQueryString(query).ToLower() == qvalue.ToLower())
{
return curcss;
}
}
}
}
if (WebRequest.GetQueryString(query) == qvalue)
{
return curcss;
}
return css;
}
public static string QueryStringCur(string query, string qvalue, string css, string curcss)
{
return QueryStringCur(query, qvalue, css, curcss, ',');
}
#region 提示信息
/// <summary>
/// 遮罩提示窗口
/// </summary>
/// <param name="w">宽度</param>
/// <param name="h">高度</param>
/// <param name="msgtitle">窗口标题</param>
/// <param name="msgbox">提示文字</param>
/// <param name="url">返回地址</param>
/// <param name="msgcss">CSS样式</param>
public static void JscriptMsg(System.Web.UI.Page curPage, int w, int h, string msgtitle, string msgbox, string url, string msgcss)
{
string msbox = "";
msbox += "<script type=\"text/javascript\">\n";
msbox += "parent.jsmsg(" + w + "," + h + ",\"" + msgtitle + "\",\"" + msgbox + "\",\"" + url + "\",\"" + msgcss + "\")\n";
msbox += "</script>\n";
curPage.ClientScript.RegisterClientScriptBlock(curPage.GetType(), "JsMsg", msbox);
}
/// <summary>
/// 遮罩提示窗口
/// </summary>
/// <param name="w">宽度</param>
/// <param name="h">高度</param>
/// <param name="msgtitle">窗口标题</param>
/// <param name="msgbox">提示文字</param>
/// <param name="url">返回地址</param>
/// <param name="msgcss">CSS样式</param>
public static void JscriptMsgCurPage(System.Web.UI.Page curPage, int w, int h, string msgtitle, string msgbox, string url, string msgcss)
{
string msbox = "";
//msbox += "<script type=\"text/javascript\">\n";
msbox += "parent.jsmsgCurPage(" + w + "," + h + ",\"" + msgtitle + "\",\"" + msgbox + "\",\"" + url + "\",\"" + msgcss + "\")\n";
//msbox += "</script>\n";
ScriptUtils.RegistScriptAtPageLast(curPage, msbox);
}
/// <summary>
/// 添加编辑删除提示
/// </summary>
/// <param name="msgtitle">提示文字</param>
/// <param name="url">返回地址</param>
/// <param name="msgcss">CSS样式</param>
public static void JscriptPrint(System.Web.UI.Page curPage, string msgtitle, string url, string msgcss)
{
string msbox = "";
msbox += "<script type=\"text/javascript\">\n";
msbox += "parent.jsprint(\"" + msgtitle + "\",\"" + url + "\",\"" + msgcss + "\")\n";
msbox += "</script>\n";
curPage.ClientScript.RegisterClientScriptBlock(curPage.GetType(), "JsPrint", msbox);
}
/// <summary>
/// 添加编辑删除提示
/// </summary>
/// <param name="msgtitle">提示文字</param>
/// <param name="url">返回地址</param>
/// <param name="msgcss">CSS样式</param>
public static void JscriptPrintCurPage(System.Web.UI.Page curPage, string msgtitle, string url, string msgcss)
{
string msbox = "";
//\nmsbox += "<script type='text/javascript'>";
msbox += "parent.jsprintCurPage('" + msgtitle + "','" + url + "','" + msgcss + "')";
//msbox += "</script>";
//curPage.ClientScript.RegisterClientScriptBlock(curPage.GetType(), "JsPrint", msbox);
ScriptUtils.RegistScriptAtPageLast(curPage, msbox);
}
public static void setPDialog(System.Web.UI.Page curPage)
{
string msbox = "";
msbox += "<script type=\"text/javascript\">\n";
msbox += "SetPermission()";
msbox += "</script>\n";
curPage.Page.ClientScript.RegisterClientScriptBlock(curPage.Page.GetType(), "SetPermission", msbox);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/Ui/UiCommon.cs | C# | oos | 5,722 |
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Web;
using TRECommon;
using TREC.Entity;
namespace TREC.ECommerce
{
public class ECUpLoad
{
// private FordioB2B.Config.ThumbnailInfo thumbnailInfo;
// private FordioB2B.Config.SystemInfo systemInfo;
private string filePath; //上传目录名
private readonly string fileType; //文件类型
private readonly int fileSize; //文件大小0为不限制
private readonly int isWatermark; //0为不加水印,1为文字水印,2为图片水印
private readonly int waterStatus; //水印位置
private readonly int waterQuality; //水印图片质量
private readonly string imgWaterPath; //水印图片地址
private readonly int waterTransparency; //水印图片透时度
private readonly string textWater; //水印文字
private readonly string textWaterFont; //文字水印字体
private readonly int textFontSize; //文字大小
public ECUpLoad()
{
//webset = new DtCms.BLL.WebSet().loadConfig(Utils.GetXmlMapPath("Configpath"));
//thumbnailInfo = FordioB2B.Config.ThumbnailConfigs.GetConfig();
//systemInfo = FordioB2B.Config.SystemConfigs.GetConfig();
//filePath = systemInfo.WebPath + thumbnailInfo.WebFilePath;
//fileType = thumbnailInfo.WebFileType;
//fileSize = thumbnailInfo.WebFileSize;
//isWatermark = thumbnailInfo.IsWatermark;
//waterStatus = thumbnailInfo.WatermarkStatus;
//waterQuality = thumbnailInfo.ImgQuality;
//imgWaterPath = systemInfo.WebPath + thumbnailInfo.ImgWaterPath;
//waterTransparency = thumbnailInfo.ImgWaterTransparency;
//textWater = thumbnailInfo.WaterText;
//textWaterFont = thumbnailInfo.WaterFont;
//textFontSize = thumbnailInfo.FontSize;
filePath = "/upload/";
fileType = "doc|jpg|gif|png|jpeg";
fileSize = 6000000;
isWatermark = 0;
waterStatus = 0;
waterQuality = 0;
imgWaterPath = "";
waterTransparency = 0;
textWater = "";
textWaterFont = "";
textFontSize = 12;
}
///<summary>
/// 文件上传方法
/// </summary>
public string fileSaveAs(HttpPostedFile _postedFile, int _isWater)
{
//检查保存的路径 是否有/开头结尾
if (this.filePath.StartsWith("/") == false) this.filePath = "/" + this.filePath;
if (this.filePath.EndsWith("/") == false) this.filePath = this.filePath + "/";
return fileSaveAs(_postedFile, _isWater, this.filePath + "temp/");
}
///<summary>
/// 文件上传方法
/// </summary>
public string fileSaveAs(HttpPostedFile _postedFile, int _isWater, string savePath)
{
try
{
string _fileExt = _postedFile.FileName.Substring(_postedFile.FileName.LastIndexOf(".") + 1);
//验证合法的文件
if (!CheckFileExt(this.fileType, _fileExt))
{
return "{\"msg\": \"0\", \"msbox\": \"不允许上传" + _fileExt + "类型的文件!\"}";
}
if (this.fileSize > 0 && _postedFile.ContentLength > fileSize * 1024)
{
return "{\"msg\": \"0\", \"msbox\": \"文件超过限制的大小啦!\"}";
}
#region 设置存储目录
string _fileName = DateTime.Now.ToString("yyyyMMddHHmmssff") + "." + _fileExt; //随机文件名
//检查保存的路径 是否有/开头结尾
if (this.filePath.StartsWith("/") == false) this.filePath = "/" + this.filePath;
if (this.filePath.EndsWith("/") == false) this.filePath = this.filePath + "/";
//按日期归类保存
//string _datePath = DateTime.Now.ToString("yyyyMMdd") + "/";
//先存入临时文件夹
string _datePath = savePath;
//获得要保存的文件路径
string serverFileName = _datePath + _fileName;
//物理完整路径
string toFileFullPath = HttpContext.Current.Server.MapPath(_datePath);
//检查是否有该路径没有就创建
if (!Directory.Exists(toFileFullPath))
{
Directory.CreateDirectory(toFileFullPath);
}
//将要保存的完整文件名
string toFile = toFileFullPath + _fileName;
#endregion
//保存文件
_postedFile.SaveAs(toFile);
//是否打图片水印
if (isWatermark > 0 && _isWater == 1 && CheckFileExt("BMP|JPEG|JPG|GIF|PNG|TIFF", _fileExt))
{
//if (!Directory.Exists(savePath + "/water/"))
//{
// Directory.CreateDirectory(HttpContext.Current.Server.MapPath(savePath + "/water/"));
//}
switch (isWatermark)
{
case 1:
ImageWaterMark.AddImageSignText(serverFileName, savePath + _fileName, this.textWater, waterStatus, waterQuality, textWaterFont, textFontSize);
break;
case 2:
ImageWaterMark.AddImageSignPic(serverFileName, savePath + _fileName, this.imgWaterPath, waterStatus, waterQuality, waterTransparency);
break;
}
}
return "{\"msg\": \"1\", \"msbox\": \"" + _fileName + "\"}";
}
catch (Exception ex)
{
return "{\"msg\": \"0\", \"msbox\": \"上传过程中发生意外错误!\"}";
}
}
/// <summary>
/// 检查是否为合法的上传文件
/// </summary>
/// <returns></returns>
private bool CheckFileExt(string _fileType, string _fileExt)
{
string[] allowExt = _fileType.Split('|');
for (int i = 0; i < allowExt.Length; i++)
{
if (allowExt[i].ToLower() == _fileExt.ToLower()) { return true; }
}
return false;
}
/// <summary>
/// 移动文件 从临时上传目录移动到
/// </summary>
/// <param name="tempFileName">临时文件夹要移动的文件名</param>
/// <param name="destination">目的目录</param>
/// <returns></returns>
public void MoveFiles(string tempFileName, string destination)
{
//检查保存的路径 是否有/开头结尾
if (this.filePath.StartsWith("/") == false) this.filePath = "/" + this.filePath;
if (this.filePath.EndsWith("/") == false) this.filePath = this.filePath + "/";
string tempPath = HttpContext.Current.Server.MapPath(this.filePath + "temp/");
if (destination.StartsWith("/") == false) destination = "/" + destination;
if (destination.EndsWith("/") == false) destination = destination + "/";
string tempFileFullName = tempPath + tempFileName;
string destinationFullName = HttpContext.Current.Server.MapPath(destination) + tempFileName;
//如果临时目录存在文件
if (System.IO.File.Exists(tempFileFullName))
{
if (System.IO.File.Exists(destinationFullName))
{
System.IO.File.Delete(destinationFullName);
}
else
{
if (!Directory.Exists(HttpContext.Current.Server.MapPath(destination)))
{
Directory.CreateDirectory(HttpContext.Current.Server.MapPath(destination));
if (!Directory.Exists(HttpContext.Current.Server.MapPath(destination + "/0/")))
{
Directory.CreateDirectory(HttpContext.Current.Server.MapPath(destination + "/0/"));
}
}
}
System.IO.File.Move(tempFileFullName, destinationFullName);
}
else
{
if (System.IO.File.Exists(HttpContext.Current.Server.MapPath(destination + "/0/") + tempFileName))
{
System.IO.File.Move(HttpContext.Current.Server.MapPath(destination + "/0/") + tempFileName, destinationFullName);
}
}
}
/// <summary>
/// 批量移动
/// </summary>
/// <param name="arrTempFileName">数组文件名列表</param>
/// <param name="destination">目标目录</param>
public void MoveFiles(string[] arrTempFileName, string destination)
{
//如果文件夹存在 说明己增加过文件。并且 "0" 文件夹临时文件夹存在
//该方法主要解决 当缩略图文件夹或其它文件夹 己存在文件时 这时更新 缩略图 是重新即时上传模式。 临时文件夹temp有文件。
//则会执行 将temp文件移动到该文件夹。该文件夹原有文件。也会存在。下方法在该文件夹新建临时 “0” 存放过时或用过的文件。
if (Directory.Exists(HttpContext.Current.Server.MapPath(destination)))
{
//判断 "0" 文件夹临时文件夹存在 0则存在则更新。。只更新要改改的。
if (Directory.Exists(HttpContext.Current.Server.MapPath(destination + "/0/")))
{
//判断是否有文件
if (Directory.GetFiles(HttpContext.Current.Server.MapPath(destination)).Length > 0)
{
////因不更新的文件不会在temp文件夹存在。所以跳过。只将要更新的文件存在当前目录
//foreach (string s in Directory.GetFiles(HttpContext.Current.Server.MapPath(destination)))
//{
// //Directory.GetFiles(HttpContext.Current.Server.MapPath(destination))
//}
foreach (string s in Directory.GetFiles(HttpContext.Current.Server.MapPath(destination)))
{
//如果移动目标文件夹存在移动文件则删除
if (File.Exists(HttpContext.Current.Server.MapPath(destination + "/0/" + s.Substring(s.LastIndexOf("\\") + 1, s.Length - s.LastIndexOf("\\") - 1))))
{
File.Delete(HttpContext.Current.Server.MapPath(destination + "/0/" + s.Substring(s.LastIndexOf("\\") + 1, s.Length - s.LastIndexOf("\\") - 1)));
}
//移动
System.IO.File.Move(s, HttpContext.Current.Server.MapPath(destination + "/0/" + s.Substring(s.LastIndexOf("\\") + 1, s.Length - s.LastIndexOf("\\") - 1)));
}
}
}
}
foreach (string s in arrTempFileName)
{
if (!string.IsNullOrEmpty(s))
{
MoveFiles(s, destination);
}
}
}
/// <summary>
/// 批量移动
/// </summary>
/// <param name="arrTempFileName">数组文件名列表</param>
/// <param name="destination">目标目录</param>
public void MoveContentFiles(string[] arrTempFileName, string destination)
{
//检查保存的路径 是否有/开头结尾
if (this.filePath.StartsWith("/") == false) this.filePath = "/" + this.filePath;
if (this.filePath.EndsWith("/") == false) this.filePath = this.filePath + "/";
string tempPath = HttpContext.Current.Server.MapPath(this.filePath + "temp/");
if (destination.StartsWith("/") == false) destination = "/" + destination;
if (destination.EndsWith("/") == false) destination = destination + "/";
foreach (string s in arrTempFileName)
{
if (!string.IsNullOrEmpty(s))
{
string tempFileFullName = tempPath + s;
string destinationFullName = HttpContext.Current.Server.MapPath(destination) + s;
//如果临时目录存在文件该文件夹
if (System.IO.File.Exists(tempFileFullName))
{
if (System.IO.File.Exists(destinationFullName))
{
System.IO.File.Delete(destinationFullName);
}
else
{
if (!Directory.Exists(HttpContext.Current.Server.MapPath(destination)))
{
Directory.CreateDirectory(HttpContext.Current.Server.MapPath(destination));
}
}
System.IO.File.Move(tempFileFullName, destinationFullName);
}
}
}
}
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/Ui/ECUpload.cs | C# | oos | 14,048 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECGroupOrder
{
#region Method-GroupOrder
/// <summary>
/// 更新对像
/// </summary>
public static int EditGroupOrder(EnGroupOrder model)
{
return GroupOrders.EditGroupOrder(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnGroupOrder GetGroupOrderInfo(string strWhere)
{
return GroupOrders.GetGroupOrderInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnGroupOrder> GetGroupOrderList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return GroupOrders.GetGroupOrderList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnGroupOrder> GetGroupOrderList(string strWhere, out int pageCount)
{
return GetGroupOrderList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnGroupOrder> GetGroupOrderList(string strWhere)
{
int tmpPageCount = 0;
return GetGroupOrderList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetGroupOrderListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBGroupOrder, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteGroupOrder(int id)
{
return DeleteGroupOrder(" where id=" + id);
}
///删除对象
public static int DeleteGroupOrderByIdList(string idList)
{
return DeleteGroupOrder(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteGroupOrder(string strWhere)
{
return DataCommon.Delete(TableName.TBGroupOrder, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECGroupOrder.cs | C# | oos | 2,387 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using TREC.Data;
using TRECommon;
using TREC.Entity;
using System.Web;
using System.Web.UI.WebControls;
using TREC.Config;
namespace TREC.ECommerce
{
public class ECommon
{
///网站路径
public static string WebUrl = WebConfigs.GetConfig().WebUrl;
public static string AdminDirectory = "admin";
public static string SupplerDirectory = "suppler";
///资源根路径
public static string WebResourceUrl = WebConfigs.GetConfig().WebUrl+"/resource/";
///资源网站前台路径
public static string WebResourceUrlToWeb = WebConfigs.GetConfig().WebUrl + "/resource/web";
//通用程序文件路径
public static string WebCommonUrl = WebUrl + "/common/";
public static string WebUploadTempUrl = WebConfigs.GetConfig().WebUrl + "/upload/temp/";
public static int tmpPageCount = 0;
public static string WebTitle = "家具快搜";
#region QueryString
//ID
public static string QueryId
{
get
{
return WebRequest.GetQueryString("id");
}
}
public static string QueryCid
{
get
{
return WebRequest.GetQueryString("cid");
}
}
public static string QueryPid
{
get
{
return WebRequest.GetQueryString("pid");
}
}
//编辑0,增加,1,修改,2删除,默认0
public static string QueryEdit
{
get
{
return WebRequest.GetQueryString("edit");
}
}
public static int QueryPageIndex
{
get {
string page = WebRequest.GetQueryString("page");
return page == "" ? 1 : TypeConverter.StrToInt(page);
}
}
public static string QueryModuleId
{
get
{
return WebRequest.GetQueryString("moduleid");
}
}
public static string QueryRoleId
{
get
{
return WebRequest.GetQueryString("rid");
}
}
public static string QueryCId
{
get
{
return WebRequest.GetQueryString("cid");
}
}
public static string QueryBId
{
get
{
return WebRequest.GetQueryString("bid");
}
}
public static string QueryStime
{
get
{
return WebRequest.GetQueryString("stime");
}
}
public static string QueryEtime
{
get
{
return WebRequest.GetQueryString("etime");
}
}
public static string QueryPId
{
get
{
return WebRequest.GetQueryString("pid");
}
}
public static string QueryType
{
get
{
return WebRequest.GetQueryString("type");
}
}
public static string QueryValue
{
get
{
return WebRequest.GetQueryString("value");
}
}
public static string QueryContorl
{
get
{
return WebRequest.GetQueryString("contorl");
}
}
public static string QueryMid
{
get
{
return WebRequest.GetQueryString("mid");
}
}
public static string QueryMemberType
{
get
{
return WebRequest.GetQueryString("mt");
}
}
//ID
public static string QueryDId
{
get
{
return WebRequest.GetQueryString("did");
}
}
//OID
public static string QueryOId
{
get
{
return WebRequest.GetQueryString("oid");
}
}
//ID
public static string QuerySId
{
get
{
return WebRequest.GetQueryString("sid");
}
}
#endregion
/// <summary>
/// 替换路径
/// </summary>
/// <param name="con"></param>
/// <param name="source"></param>
/// <param name="repStr"></param>
/// <returns></returns>
public static string RepFilePathContent(string con, string source, string repStr)
{
return con.Replace(source, repStr);
}
public static string getMenuUrl(string urlFormat)
{
//格式 @web,@admin,@suppler,@shop,@market,@company,@dealer
string newUrl = urlFormat;
newUrl = newUrl.Replace("@web", WebUrl);
newUrl = newUrl.Replace("@admin", AdminDirectory);
newUrl = newUrl.Replace("@suppler", SupplerDirectory);
return newUrl;
}
public static void ListBoxBindToProductType(ListBox listbox,string strWhere)
{
listbox.Items.Clear();
listbox.DataSource = ECConfig.GetConfigList(" type=" + (int)EnumConfigByProduct.产品类型 + strWhere);
listbox.DataTextField = "title";
listbox.DataValueField = "value";
listbox.DataBind();
}
//检查名称
public static string CheckName(string name, string name2, string ctype)
{
switch (ctype)
{
case "m":
return DataCommon.Exists(TableName.TBMember, " where username='" + name + "'") > 0 ? "false" : "true";
case "c":
return DataCommon.Exists(TableName.TBCompany, " where title='" + name + "'") > 0 ? "false" : "true";
case "d":
return DataCommon.Exists(TableName.TBDealer, " where title='" + name + "'") > 0 ? "false" : "true";
case "s":
return DataCommon.Exists(TableName.TBShop, " where title='" + name + "'") > 0 ? "false" : "true";
case "m2":
return DataCommon.Exists(TableName.TBMarket, " where title='" + name + "") > 0 ? "false" : "true";
case "b":
return DataCommon.Exists(TableName.TBBrand, " where title='" + name + "'") > 0 ? "false" : "true";
default:
return "false";
}
}
#region searchQuerString
public static string QuerySearchBrand
{
get {
return WebRequest.GetQueryString("brand");
}
}
public static string QuerySearchStyle
{
get
{
return WebRequest.GetQueryString("style");
}
}
public static string QuerySearchMaterial
{
get
{
return WebRequest.GetQueryString("material");
}
}
public static string QuerySearchSpread
{
get
{
return WebRequest.GetQueryString("spread");
}
}
public static string QuerySearchStaffsize
{
get
{
return WebRequest.GetQueryString("staffsize");
}
}
public static string QuerySearchSort
{
get
{
return WebRequest.GetQueryString("sort");
}
}
public static string QuerySearchComposing
{
get
{
return WebRequest.GetQueryString("composing");
}
}
public static string QuerySearchKey
{
get
{
return WebRequest.GetQueryString("key");
}
}
public static string QuerySearchType
{
get
{
return WebRequest.GetQueryString("type");
}
}
public static string QuerySearchBrands
{
get
{
return WebRequest.GetQueryString("brands");
}
}
public static string QuerySearchPCategory
{
get
{
return WebRequest.GetQueryString("pcategory");
}
}
public static string QuerySearchCategory
{
get
{
return WebRequest.GetQueryString("category");
}
}
public static string QuerySearchColor
{
get
{
return WebRequest.GetQueryString("color");
}
}
public static string QuerySearchArea
{
get
{
return WebRequest.GetQueryString("area");
}
}
public static string QuerySearchMarketStorey
{
get
{
return WebRequest.GetQueryString("msid");
}
}
#endregion
public static List<EnWebAggregation> GetCompanyListTopBrand()
{
return ECAggregation.GetWebCommonAggregationListByParentIdList().Where(x => x.type == 30).ToList();
}
public static List<EnWebAggregation> GetCompanyBrandListTopBrand()
{
return ECAggregation.GetWebCommonAggregationListByParentIdList().Where(x => x.type == 35).ToList();
}
public static List<EnWebAggregation> GetShopBrandListTopBrand()
{
return ECAggregation.GetWebCommonAggregationListByParentIdList().Where(x => x.type == 36).ToList();
}
public static List<EnWebAggregation> GetShopListTopBrand()
{
return ECAggregation.GetWebCommonAggregationListByParentIdList().Where(x => x.type == 31).ToList();
}
public static List<EnWebAggregation> GetProductListTopBrand()
{
return ECAggregation.GetWebCommonAggregationListByParentIdList().Where(x => x.type == 32).ToList();
}
public static List<EnWebAggregation> GetMarketListTopBrand()
{
return ECAggregation.GetWebCommonAggregationListByParentIdList().Where(x => x.type == 38).ToList();
}
public static string GetConfigName(string modeule,string type,string value, char spl, string tostr)
{
if (value == null)
return "";
List<EnConfig> list = null;
if ((List<EnConfig>)DataCache.GetCache(CacheKey.ConfigList) != null)
{
list = (List<EnConfig>)DataCache.GetCache(CacheKey.ConfigList);
}
else
{
list = ECConfig.GetConfigList("");
DataCache.SetCache(CacheKey.ConfigList, list);
}
string tvalue = "";
List<EnConfig> tmp = list.Where(x => x.module.ToString() == modeule && x.type.ToString() == type).ToList();
foreach (string s in value.Split(spl))
{
if (s != "")
{
foreach (EnConfig c in tmp.Where(j => j.value == s))
{
tvalue += c.title + tostr;
}
}
}
return tvalue;
}
public static string GetProAreaName(string areacode)
{
string aname = "";
List<EnArea> list = new List<EnArea>();
if (DataCache.GetCache(CacheKey.arealist) != null)
{
list = (List<EnArea>)DataCache.GetCache(CacheKey.arealist);
}
else
{
list = ECArea.GetAreaList(" 1=1");
DataCache.SetCache(CacheKey.arealist, list);
}
if (!string.IsNullOrEmpty(areacode) && areacode.Length == 6)
{
aname = list.Find(x => x.areacode == areacode.Substring(0, 2) + "0000").areaname;
}
return aname;
}
public static string GetCityAreaName(string areacode)
{
string aname = "";
List<EnArea> list = new List<EnArea>();
if (DataCache.GetCache(CacheKey.arealist) != null)
{
list = (List<EnArea>)DataCache.GetCache(CacheKey.arealist);
}
else
{
list = ECArea.GetAreaList(" 1=1");
DataCache.SetCache(CacheKey.arealist, list);
}
if (!string.IsNullOrEmpty(areacode) && areacode.Length == 6)
{
aname = list.Find(x => x.areacode == areacode.Substring(0, 4) + "00").areaname;
}
return aname;
}
public static string GetAreaName(string areacode)
{
string aname="";
List<EnArea> list = new List<EnArea>();
if (DataCache.GetCache(CacheKey.arealist) != null)
{
list = (List<EnArea>)DataCache.GetCache(CacheKey.arealist);
}
else
{
list = ECArea.GetAreaList(" 1=1");
DataCache.SetCache(CacheKey.arealist, list);
}
if (!string.IsNullOrEmpty(areacode) && areacode.Length == 6)
{
string code=areacode;
do
{
aname = list.Find(x => x.areacode == code).areaname + aname;
code = list.Find(j => j.areacode == code).parentcode;
}
while (code != "0" && !string.IsNullOrEmpty(code));
}
if (aname != null && aname.Length > 0)
aname = aname.Replace("市辖区", "");
return aname;
}
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECommon.cs | C# | oos | 14,763 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using TRECommon;
using TREC.ECommerce;
using TREC.Entity;
namespace TREC.ECommerce
{
public class ShopPageBase : System.Web.UI.Page
{
public static int tmpPageCount = 0;
public static string webNmame = "家具快搜";
public string _pageTitle;
public string pageTitle { get {
return webNmame + _pageTitle;
}
set {
_pageTitle = value;
}
}
public static EnWebShop shopInfo = new EnWebShop();
public ShopPageBase()
{
if (ECommon.QuerySId == "" || ECommon.QuerySId == "0")
{
this.Page.ClientScript.RegisterStartupScript(this.Page.GetType(),
System.Guid.NewGuid().ToString(),
"<script>window.top.location.href='" + ECommon.WebUrl + "'</script>"
);
}
else
{
shopInfo = ECShop.GetWebShopInfo(" where id=" + ECommon.QuerySId);
}
if (!HttpContext.Current.Request.RawUrl.Contains("index2.aspx"))
{
if (shopInfo.template == null || shopInfo.template == "0")
{
HttpContext.Current.Response.Redirect(WebUtils.ResolveUrl("~/" + string.Format(EnUrls.ShopInfoIndex2, shopInfo.id)));
return;
}
}
}
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ShopPageBase.cs | C# | oos | 1,599 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECLog
{
/// <summary>
/// 增加日志
/// </summary>
/// <param name="module">模块ID</param>
/// <param name="action">动作ID</param>
/// <param name="aid">操作人ID</param>
/// <param name="aname">操作人名称</param>
/// <param name="title">操作内容</param>
/// <returns></returns>
public static int AddLog(int module, int action, int aid, string aname, string title)
{
EnLog model = new EnLog();
model.id = 0;
model.modeule = module;
model.action = action;
model.operateid = aid;
model.operatename = aname;
model.title = title;
model.lastedittime = DateTime.Now;
return EditLog(model);
}
#region Method-Log
/// <summary>
/// 更新对像
/// </summary>
public static int EditLog(EnLog model)
{
return Logs.EditLog(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnLog GetLogInfo(string strWhere)
{
return Logs.GetLogInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnLog> GetLogList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Logs.GetLogList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnLog> GetLogList(string strWhere, out int pageCount)
{
return GetLogList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnLog> GetLogList(string strWhere)
{
int tmpPageCount = 0;
return GetLogList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetLogListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBLog, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeleteLog(int id)
{
return DeleteLog(" where id=" + id);
}
///删除对象
public static int DeleteLogByIdList(string idList)
{
return DeleteLog(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteLog(string strWhere)
{
return DataCommon.Delete(TableName.TBLog, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECLog.cs | C# | oos | 3,018 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECPCategoryPTyp
{
#region Method-PCategoryPTyp
/// <summary>
/// 更新对像
/// </summary>
public static int EditPCategoryPTyp(List<EnPCategoryPTyp> list)
{
return PCategoryPTyps.EditPCategoryPTyp(list);
}
public static string GetProductCategoryTypeValueList(int productcategoryid)
{
List<EnPCategoryPTyp> list = ECPCategoryPTyp.GetPCategoryPTypList("", " where productcategoryid=" + productcategoryid);
string idlist = "";
foreach (EnPCategoryPTyp e in list)
{
idlist += e.producttypeid + ",";
}
return idlist.Length > 0 && idlist.EndsWith(",") ? idlist.Substring(0, idlist.Length - 1) : idlist == "" ? "0" : idlist;
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnPCategoryPTyp> GetPCategoryPTypList(string fields, string strWhere)
{
return PCategoryPTyps.GetPCategoryPTypList(fields, strWhere);
}
//获取数据列表ToDataTable
public static DataTable GetPCategoryPTypListToTable(string fields,string strWhere)
{
return DataCommon.GetDataTable(TableName.TBPCategoryPTyp, fields, strWhere, "");
}
///删除对象
public static int DeletePCategoryPTypByProductCategoryId(int productcategoryid)
{
return DeletePCategoryPTyp(" where productcategoryid=" + productcategoryid);
}
///删除对象
public static int DeletePCategoryPTypByProductCategoryIdList(string idList)
{
return DeletePCategoryPTyp(" where productcategoryid in (" + idList + ")");
}
///删除对象
public static int DeletePCategoryPTyp(string strWhere)
{
return DataCommon.Delete(TableName.TBPCategoryPTyp, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECPCategoryPTyp.cs | C# | oos | 2,247 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECModuleLink
{
#region Method-ModuleLink
/// <summary>
/// 更新对像
/// </summary>
public static int EditModuleLink(EnModuleLink model)
{
return Permissions.EditModuleLink(model);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnModuleLink> GetModuleLinkList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Permissions.GetModuleLinkList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnModuleLink> GetModuleLinkList(string strWhere, out int pageCount)
{
return GetModuleLinkList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnModuleLink> GetModuleLinkList(string strWhere)
{
int tmpPageCount = 0;
return GetModuleLinkList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetModuleLinkListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBSystemModuleLink, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnModuleLink(int id)
{
return DeletEnModuleLink(" where id=" + id);
}
///删除对象
public static int DeletEnModuleLinkByIdList(string idList)
{
return DeletEnModuleLink(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnModuleLink(string strWhere)
{
return DataCommon.Delete(TableName.TBSystemModuleLink, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECModuleLink.cs | C# | oos | 2,145 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECPromotion
{
public static List<EnWebPromotion> GetWebPromotionList(int PageIndex, int PageSize, string strWhere, string sortkey, string orderby, out int pageCount)
{
return Promotions.GetWebPromotionList(PageIndex, PageSize, strWhere, sortkey, orderby, out pageCount);
}
public static List<EnWebPromotion> GetWebTopPromotionList(int top, string strWhere, string orderKey, string orderType)
{
int pageCount = 0;
return Promotions.GetWebPromotionList(1, top, strWhere, orderKey, orderType, out pageCount);
}
public static List<EnWebPromotion> GetWebTopPromotionList(int top)
{
return GetWebTopPromotionList(top, "", "sort", "desc");
}
public static List<EnWebPromotion> GetWebTopPromotionListToShop(int top,int shopId)
{
//List<EnWebPromotion> list=GetWebTopPromotionList(top, " and shopidlist like '%" + shopId + ",%'", "sort", "desc");
//if (list.Count < top)
//{
// list = GetWebTopPromotionList(top - list.Count);
//}
//return GetWebTopPromotionList(top, " and shopidlist like '%" + shopId + ",%'", "sort", "desc");
return GetWebTopPromotionList(top, "", "sort", "desc");
}
public static List<EnWebPromotion> GetWebTopPromotionListToCompany(int top, int companyId)
{
//List<EnWebPromotion> list=GetWebTopPromotionList(top, " and companyidlist like '%" + companyId + ",%'", "sort", "desc");
//if (list.Count < top)
//{
// list = GetWebTopPromotionList(top - list.Count);
//}
//return GetWebTopPromotionList(top, " and companyidlist like '%" + companyId + ",%'", "sort", "desc");
return GetWebTopPromotionList(top, "", "sort", "desc");
}
public static List<EnWebPromotion> GetWebTopPromotionListToBrand(int top, int brandId)
{
//List<EnWebPromotion> list=GetWebTopPromotionList(top, " and brandidlist like '%" + brandId + ",%'", "sort", "desc");
//if (list.Count < top)
//{
// list = GetWebTopPromotionList(top - list.Count);
//}
//return GetWebTopPromotionList(top, " and brandidlist like '%" + brandId + ",%'", "sort", "desc"); ;
return GetWebTopPromotionList(top, "", "sort", "desc");
}
public static List<EnWebPromotion> GetWebTopPromotionListToMarket(int top, int marketId)
{
//List<EnWebPromotion> list=GetWebTopPromotionList(top, " and marketidlist like '%" + marketId + ",%'", "sort", "desc");
//if (list.Count < top)
//{
// list = GetWebTopPromotionList(top - list.Count);
//}
//return GetWebTopPromotionList(top, " and marketidlist like '%" + marketId + ",%'", "sort", "desc");
return GetWebTopPromotionList(top, "", "sort", "desc");
}
public static List<EnWebPromotion> GetWebTopPromotionListToProduct(int top, int productId)
{
//List<EnWebPromotion> list=GetWebTopPromotionList(top, " and productidlist like '%" + productId + ",%'", "sort", "desc");
//if (list.Count < top)
//{
// list = GetWebTopPromotionList(top - list.Count);
//}
//return GetWebTopPromotionList(top, " and productidlist like '%" + productId + ",%'", "sort", "desc"); ;
return GetWebTopPromotionList(top, "", "sort", "desc");
}
public static List<EnWebPromotion> GetWebTopPromotionListToShopList(int top)
{
//List<EnWebPromotion> list=GetWebTopPromotionList(top, " and shopidlist is not null and shopidlist<>''", "sort", "desc");
//if (list.Count < top)
//{
// list = GetWebTopPromotionList(top - list.Count);
//}
//return GetWebTopPromotionList(top, " and shopidlist is not null and shopidlist<>''", "sort", "desc");
return GetWebTopPromotionList(top, "", "sort", "desc");
}
public static List<EnWebPromotion> GetWebTopPromotionListToCompanyList(int top)
{
//List<EnWebPromotion> list=GetWebTopPromotionList(top, " and companyidlist is not null and companyidlist<>''", "sort", "desc");
//if (list.Count < top)
//{
// list = GetWebTopPromotionList(top - list.Count);
//}
//return GetWebTopPromotionList(top, " and companyidlist is not null and companyidlist<>''", "sort", "desc");
return GetWebTopPromotionList(top, "", "sort", "desc");
}
public static List<EnWebPromotion> GetWebTopPromotionListToMarketList(int top)
{
//List<EnWebPromotion> list=GetWebTopPromotionList(top, " and marketidlist is not null and marketidlist<>''", "sort", "desc");
//if (list.Count < top)
//{
// list = GetWebTopPromotionList(top - list.Count);
//}
//return GetWebTopPromotionList(top, " and marketidlist is not null and marketidlist<>''", "sort", "desc");
return GetWebTopPromotionList(top, "", "sort", "desc");
}
public static List<EnWebPromotion> GetWebTopPromotionListToProductList(int top)
{
//List<EnWebPromotion> list=GetWebTopPromotionList(top, " and productidlist is not null and productidlist<>''", "sort", "desc");
//if (list.Count < top)
//{
// list = GetWebTopPromotionList(top - list.Count);
//}
//return GetWebTopPromotionList(top, " and productidlist is not null and productidlist<>''", "sort", "desc");
return GetWebTopPromotionList(top, "", "sort", "desc");
}
public static string GetPromotionHtml(List<EnWebPromotion> list)
{
if(list.Count==0)
return "暂无促销信息";
StringBuilder sb = new StringBuilder();
foreach (EnWebPromotion p in list)
{
sb.Append("<div class=\"promotions2\">");
sb.Append("<h3>"+p.title+"</h3>");
sb.Append("<p class=\"time\">截至日期:" + DateTime.Parse(p.enddatetime.ToString()).ToShortDateString() + "</p>");
sb.Append("<p class=\"address\">" + p.address + "</p>");
//sb.Append("<p class=\"phone\">王丽君 13269291819</p>");
sb.Append("</div>");
}
return sb.ToString();
}
public static int UpConFilePath(string con, int id)
{
return DataCommon.UpdateValue(TableName.TBPromotion, "descript", con, " where id=" + id);
}
#region Method-Promotion
/// <summary>
/// 更新对像
/// </summary>
public static int EditPromotion(EnPromotion model)
{
return Promotions.EditPromotion(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnPromotion GetPromotionInfo(string strWhere)
{
return Promotions.GetPromotionInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnPromotion> GetPromotionList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Promotions.GetPromotionList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnPromotion> GetPromotionList(string strWhere, out int pageCount)
{
return GetPromotionList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnPromotion> GetPromotionList(string strWhere)
{
int tmpPageCount = 0;
return GetPromotionList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetPromotionListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBPromotion, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletePromotion(int id)
{
return DeletePromotion(" where id=" + id);
}
///删除对象
public static int DeletePromotionByIdList(string idList)
{
return DeletePromotion(" where id in (" + idList + ")");
}
///删除对象
public static int DeletePromotion(string strWhere)
{
return DataCommon.Delete(TableName.TBPromotion, strWhere);
}
#endregion
#region Method-PromotionDef
/// <summary>
/// 更新对像
/// </summary>
public static int EditPromotionDef(EnPromotionDef model)
{
return Promotions.EditPromotionDef(model);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnPromotionDef> GetPromotionDefList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Promotions.GetPromotionDefList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnPromotionDef> GetPromotionDefList(string strWhere, out int pageCount)
{
return GetPromotionDefList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnPromotionDef> GetPromotionDefList(string strWhere)
{
int tmpPageCount = 0;
return GetPromotionDefList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetPromotionDefListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBPromotionDef, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletePromotionDef(int id)
{
return DeletePromotionDef(" where id=" + id);
}
///删除对象
public static int DeletePromotionDefByIdList(string idList)
{
return DeletePromotionDef(" where id in (" + idList + ")");
}
///删除对象
public static int DeletePromotionDef(string strWhere)
{
return DataCommon.Delete(TableName.TBPromotionDef, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECPromotion.cs | C# | oos | 11,256 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECBrand
{
public static int ExitBrandTitleLetter(string letter)
{
return Brands.ExitBrandTitleLetter(letter);
}
public static int ExitBrandTitle(string title)
{
return Brands.ExitBrandTitle(title);
}
public static int ExitBrandsTitle(string title)
{
return Brands.ExitBrandsTitle(title);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnAllBrand> GetWebAllBrandList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Brands.GetAllBrandList(PageIndex, PageSize, strWhere, out pageCount);
}
public static DataTable GetBrandLetterList()
{
object obj = DataCache.GetCache(CacheKey.BrandLetter);
if (obj != null)
{
return (DataTable)obj;
}
else
{
DataTable brandLetterDt = DataCommon.GetDataTable(TableName.TBBrand, "id,title,substring(letter,1,1) as letter,companyid", "", "");
if (brandLetterDt.Rows.Count > 0)
{
TRECommon.DataCache.SetCache(CacheKey.BrandLetter, brandLetterDt);
}
return brandLetterDt;
}
}
public static DataTable GetMarketBrandLetterList(int marketid)
{
DataTable brandLetterDt = DataCommon.GetDataTable(TableName.TBBrand, "id,title,substring(letter,1,1) as letter,companyid", " where id in (select brandid from t_shopbrand where shopid in (select shopid from t_marketstoreyshop where marketid=" + marketid + "))", "");
return brandLetterDt;
}
public static int UpConFilePath(string con, int id)
{
return DataCommon.UpdateValue(TableName.TBBrand, "descript", con, " where id=" + id);
}
public static int UpBrandsConFilePath(string con, int id)
{
return DataCommon.UpdateValue(TableName.TBBrands, "descript", con, " where id=" + id);
}
#region Method-Brand
/// <summary>
/// 更新对像
/// </summary>
public static int EditBrand(EnBrand model)
{
return Brands.EditBrand(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnBrand GetBrandInfo(string strWhere)
{
return Brands.GetBrandInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnBrand> GetBrandList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Brands.GetBrandList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnBrand> GetBrandList(string strWhere, out int pageCount)
{
return GetBrandList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnBrand> GetBrandList(string strWhere)
{
int tmpPageCount = 0;
return GetBrandList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetBrandListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBBrand, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnWebBrand> GetWebBrandList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Brands.GetWebBrandList(PageIndex, PageSize, strWhere, out pageCount);
}
public static string GetBrandIdListByCompany(string companyId)
{
List<EnBrand> list = GetBrandList(" companyid=" + companyId);
StringBuilder sb = new StringBuilder();
foreach (EnBrand b in list)
{
sb.Append(b.id + ",");
}
return sb.ToString().Length > 0 && sb.ToString().EndsWith(",") ? sb.ToString().Substring(0, sb.ToString().Length - 1) : sb.ToString();
}
public static string GetBrandIdListByDealer(string dealerid)
{
List<EnAppBrand> list = ECAppBrand.GetAppBrandList(" dealerid=" + dealerid);
StringBuilder sb = new StringBuilder();
foreach (EnAppBrand b in list)
{
sb.Append(b.brandid + ",");
}
return sb.ToString().Length > 0 && sb.ToString().EndsWith(",") ? sb.ToString().Substring(0, sb.ToString().Length - 1) : sb.ToString();
}
///删除对象
public static int DeleteBrand(int id)
{
return DeleteBrand(" where id=" + id);
}
///删除对象
public static int DeleteBrandByIdList(string idList)
{
return DeleteBrand(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteBrand(string strWhere)
{
return DataCommon.Delete(TableName.TBBrand, strWhere);
}
#endregion
#region Method-Brands
/// <summary>
/// 更新对像
/// </summary>
public static int EditBrands(EnBrands model)
{
return Brands.EditBrands(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnBrands GetBrandsInfo(string strWhere)
{
return Brands.GetBrandsInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnBrands> GetBrandsList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Brands.GetBrandsList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnBrands> GetBrandsList(string strWhere, out int pageCount)
{
return GetBrandsList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnBrands> GetBrandsList(string strWhere)
{
int tmpPageCount = 0;
return GetBrandsList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetBrandsListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBBrands, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
public static DataTable GetBrandsListToTableByBrandId(string brandId)
{
return DataCommon.GetDataTable(TableName.TBBrands, " bs.*,b.title as brandtitle ", " bs left join " + TableName.TBBrand + " b on bs.brandid=b.id where b.id in(" + brandId + ")", " order by sort desc,id desc");
}
///删除对象
public static int DeleteBrands(int id)
{
return DeleteBrands(" where id=" + id);
}
///删除对象
public static int DeleteBrandsByIdList(string idList)
{
return DeleteBrands(" where id in (" + idList + ")");
}
///删除对象
public static int DeleteBrands(string strWhere)
{
return DataCommon.Delete(TableName.TBBrands, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECBrand.cs | C# | oos | 8,117 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECAdmin
{
#region Method-Admin
/// <summary>
/// 更新对像
/// </summary>
public static int EditAdmin(EnAdmin model)
{
return Administrators.EditAdmin(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnAdmin GetAdminInfo(string strWhere)
{
return Administrators.GetAdminInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnAdmin> GetAdminList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Administrators.GetAdminList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAdmin> GetAdminList(string strWhere, out int pageCount)
{
return GetAdminList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAdmin> GetAdminList(string strWhere)
{
int tmpPageCount = 0;
return GetAdminList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetAdminListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBAdmin, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnAdmin(int id)
{
return DeletEnAdmin(" where id=" + id);
}
///删除对象
public static int DeletEnAdminByIdList(string idList)
{
return DeletEnAdmin(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnAdmin(string strWhere)
{
return DataCommon.Delete(TableName.TBAdmin, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECAdmin.cs | C# | oos | 2,276 |
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using TREC.Entity;
using TREC.Data;
using TRECommon;
namespace TREC.ECommerce
{
public class ECAdvertisement
{
#region Method-Advertisement
/// <summary>
/// 更新对像
/// </summary>
public static int EditAdvertisement(EnAdvertisement model)
{
return Advertisements.EditAdvertisement(model);
}
/// <summary>
/// 得到一个对象实体
/// </summary>
public static EnAdvertisement GetAdvertisementInfo(string strWhere)
{
return Advertisements.GetAdvertisementInfo(strWhere);
}
/// <summary>
/// 获得数据列表
/// </summary>
public static List<EnAdvertisement> GetAdvertisementList(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return Advertisements.GetAdvertisementList(PageIndex, PageSize, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAdvertisement> GetAdvertisementList(string strWhere, out int pageCount)
{
return GetAdvertisementList(-1, 0, strWhere, out pageCount);
}
///获取数据列表
public static List<EnAdvertisement> GetAdvertisementList(string strWhere)
{
int tmpPageCount = 0;
return GetAdvertisementList(-1, 0, strWhere, out tmpPageCount);
}
//获取数据列表ToDataTable
public static DataTable GetAdvertisementListToTable(int PageIndex, int PageSize, string strWhere, out int pageCount)
{
return DataCommon.GetPageDataTable(TableName.TBAdvertisement, PageIndex, PageSize, strWhere, "id", 1, out pageCount);
}
///删除对象
public static int DeletEnAdvertisement(int id)
{
return DeletEnAdvertisement(" where id=" + id);
}
///删除对象
public static int DeletEnAdvertisementByIdList(string idList)
{
return DeletEnAdvertisement(" where id in (" + idList + ")");
}
///删除对象
public static int DeletEnAdvertisement(string strWhere)
{
return DataCommon.Delete(TableName.TBAdvertisement, strWhere);
}
#endregion
}
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.ECommerce/ECAdvertisement.cs | C# | oos | 2,476 |
/*验证表单样式*/
.regiinput{float:left;}
span.error{
margin-left:5px;
padding-left:25px;
color:#F00;
background:url(../images/onError.gif) left center no-repeat;
float:left;
}
span.success{
margin-left:5px;
padding-left:25px;
color:#999;
background:url(../images/onSuccess.gif) left center no-repeat;
}
span.error,span.success{ display:block; height:22px; float:left; line-height:22px;} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/web/css/common.css | CSS | oos | 423 |
@charset "utf-8";
/* CSS Document */
body {margin:0; padding:0; font:12px "\5B8B\4F53",sans-serif;background:#ffffff;}
div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,blockquote,p{padding:0; margin:0;}
table,td,tr,th{font-size:12px;}
li{list-style-type:none;}
img{vertical-align:top;border:0;}
ol,ul {list-style:none;}
h1,h2,h3,h4,h5,h6 {font-size:16px; font-weight:normal;}
address,cite,code,em,th {font-weight:normal; font-style:normal;}
a{color:#555555; text-decoration:none;}
a:hover{color:#b70d01; text-decoration:underline;}
.clearfix{width:100%;display:block;clear:both;zoom:1;height:0px;overflow:hidden;}
.topNav{ width:100%; height:188px; clear:both; background:url(../images/index_02.gif) repeat-x; color:#767676;}
.topNav992{ width:992px; margin:0 auto; clear:both;height:auto;}
.top{ height:35px; line-height:35px; clear:both;}
.topCity{ float:left; font-size:14px; font-weight:bold;}
.topCity span{ color:#b70c19; float:left;}
.topCity1{height:35px; width:78px; height:18px; margin:9px 0 0 8px; display:inline; float:left; position:relative;}
.topCity1 .a1{width:78px; height:18px; display:block; background:url(../images/index_07.jpg) no-repeat;}
.topCity1 .a1:hover{width:78px; height:18px; display:block; background:url(../images/index_07.jpg) no-repeat 0 -18px;}
.topCity12{ width:220px; border:1px solid #d2d2d2; line-height:29px; height:29px; background:#fff; position:absolute; left:0px; top:17px;}
.topCity12 a{color:#b70c19; margin:0 10px; float:left;}
.topLogin ,.topLogin img{ float:right; text-align:right;}
.logo{ height:106px; clear:both;}
.logo1{ float:left; margin-top:28px;}
.topSearch{ width:435px; height:32px; line-height:32px; float:right; background:#af152d url(../images/index_16.gif) no-repeat left; margin-top:33px;}
.topSearch1{ width:78px; height:26px; line-height:26px; float:left; margin:3px 0 0 16px; display:inline; position:relative;}
.topSearch1 img{ float:right; margin-top:12px; margin-right:9px;}
.topSearch1 ol{ width:89px; background:#fff; border:1px solid #d3d3d3; border-top:none; position:absolute; left:-13px; top:26px;color:#595959; display:block; z-index:100000;}
.topSearch1 ol a{ height:25px; line-height:25px; text-indent:12px; clear:both; display:block; background:#fff; color:#595959;}
.topSearch1 ol a:hover ,.topSearch1 ol .Searcha{ height:25px; line-height:25px; text-indent:12px; clear:both; display:block; background:#fff7e5; color:#af051c; text-decoration:none;}
.topSearch2{ float:left; width:236px; height:26px; margin-left:32px; margin-top:3px; line-height:26px; display:inline; border:none; background:none;}
.topSearch3{ width:64px; height:27px; float:right; margin:2px 4px 0 0; background:url(../images/index_18.gif) no-repeat;}
.topSearch3:hover{ width:64px; height:27px; float:right; margin:2px 4px 0 0; background:url(../images/index_18.gif) no-repeat 0 -27px;}
.nav{ height:47px; clear:both;}
.nav1{ height:32px; line-height:32px; margin-top:15px; font-size:14px; font-weight:bold;}
.nav1 li{ float:left; margin-right:2px; text-align:center;}
.nav1 li a{ width:85px; height:32px; display:block; background:url(../images/index_24.jpg) no-repeat; color:#fff;}
.nav1 li a:hover{ width:85px; height:32px; display:block; background:url(../images/index_24.jpg) no-repeat 0 -32px; color:#f9c664; text-decoration:none;}
.nav1 li a:active ,.nav1 li .active ,.nav1 li .active:hover ,.nav1 li .special{ width:85px; height:32px; display:block; background:url(../images/index_24.jpg) no-repeat 0 -64px; color:#a40320; text-decoration:none;}
.nav1 li .special ,.nav1 li .special:hover ,.nav1 li .special:active{background:url(../images/index_24.jpg) no-repeat 0 -96px; color:#a40320;}
.ad1{ margin-top:8px; padding-bottom:10px;}
.indexflash{ width:990px; height:383px; border:1px solid #d8d8d8; clear:both; margin-top:8px;}
.indexWithin{ margin:1px; overflow:hidden; background:url(../images/index_37.gif) repeat-x;}
.flashLeft{ width:735px; height:358px; float:left; margin:12px 0 0 11px; display:inline;}
.flashRight{ width:221px; height:276px; float:right; margin:51px 11px 0 0; display:inline; background:url(../images/index_42.jpg) no-repeat;}
.flashRight ul{ height:189px; *+height:224px; display:block; clear:both;}
.flashRight li{ line-height:18px; margin-top:14px; font-weight:bold; color:#fbd07c; padding-left:12px; padding-right:5px}
.flashRight .da1{ color:#96040c; font-size:16px; margin-top:36px; padding-left:23px; margin-bottom:33px;}
.inLogin{ font-size:14px; height:30px; line-height:30px; font-weight:bold; text-align:center; margin-top:10px;}
.inLogin .settled{ width:122px; height:30px; color:#323232; margin-left:9px; display:inline; float:left; background:none;}
.inLogin .settled:hover{ width:122px; height:30px; color:#ff9318; margin-left:9px; display:inline; float:left; background:url(../images/index_41.gif) no-repeat; text-decoration:none;}
.inProducts{ margin-top:6px; clear:both; height: 874px;}
.productsL{ width:756px; height:874px; float:left;}
.banner{ width:756px; height:207px; clear:both; overflow:hidden;}
.products{ height:657px; margin-top:7px; border:1px solid #d8d8d8;}
.poTitle{ width:752px; height:43px; line-height:43px; margin:1px 1px 0 1px; background:url(../images/index_60.gif) repeat-x;}
.poTitle a{ color:#fff;}
.poTitle a:hover{ text-decoration:underline; color:#fff;}
.poTitle div{ width:94px; text-indent:10px; font-size:14px; color:#fff; font-weight:bold; float:left;}
.poTitle ul{ float:left;}
.poTitle li{ margin-right:1px; font-size:12px; float:left;}
.poTitle li a{ height:43px; font-weight:bold; padding:0 12px; display:inline-block; color:#fff;}
/**/
.poTitle li a:hover ,.poTitle .hover .poTitlea,.poTitle li.on a{ height:43px; font-weight:bold;background:url(../images/index_62.gif) repeat-x; border:1px solid #e8e8e8; border-width:0 1px; color:#a31026; padding:0 11px; display:inline-block; text-decoration:none;}
/**/
.poContent{height:405px;background:url(../images/ajax-loader.gif) no-repeat center center; border-bottom:1px solid #e7e7e7}
.poContent .item{background:#fff;}
.poTitle span{ float:right; margin-right:12px;}
.products1{ margin-left:10px; margin-top:15px; display:inline-block; clear:both; height:370px; overflow:hidden;}
.products1 li{ width:123px; text-align:center; line-height:16px; float:left; overflow:hidden; margin-bottom:15px; display:inline; height:180px; border-bottom:1px solid #e7e7e7}
.products1 li:hover { background:#fff8eb;}
.products1 .amount{ font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#b10f00; line-height:24px;}
.products2{ display:inline; clear:both;}
.products2Trim1{width:754px;overflow:hidden;display:block;}
.products2Wrap{width:760px;}
.products21{ width:151px; height:205px; float:left;}
/*gx*/
.titlepr{ height:36px; line-height:36px; font-weight:bold; color:#595959; border-right:1px solid #d5d5d5; background:#eaeaea; text-align:center;}
.prList{ height:162px; background:#fafafa; border-right:1px dotted #d5d5d5; padding-top:8px;}
/*gx*/
.prList a{ width:60px; height:18px; line-height:18px; margin-left:10px; display:inline; float:left; white-space:nowrap; overflow:hidden;}
.prList .bold{ color:#a61222; font-weight:bold;}
.products21:hover .titlepr{ background:#f1efe8;}
.products21:hover .prList{ background:#fbf9f1;}/*
.products210{ width:149px;}.products210 .titlepr{ border-right-color:#fff;}.products210 .prList{ border-right:1px solid #fff;}
*/
.promotionsR{ width:230px; height:874px; float:right;}
.promotionsR1{ height:660px; border:1px solid #d8d8d8; clear:both;}
.promotions{ height:33px; line-height:33px; font-size:14px; font-weight:bold; color:#595959; text-indent:8px; background:url(../images/index_47.gif) repeat-x;}
.promotions span{ float:right; font-size:12px; font-weight:normal; margin-right:10px;}
.promotions span a{ color:#af152d;}
.prAd1{ margin:14px 0 0 9px; clear:both;}
.prAd1 img{ margin-bottom:8px;}
.promotions2{ width:200px; margin:20px auto 0 auto; clear:both; line-height:18px; color:#484848;}
.promotions2 h3{ font-size:12px; font-weight:bold; color:#c61f38; line-height:18px;}
.promotions2 p{ padding-left:18px;}
.promotions2 .time{ background:url(../images/index_68.gif) no-repeat left 4px;}
.promotions2 span{ font-weight:bold; color:#e31b1d;}
.promotions2 .address{ background:url(../images/index_74.gif) no-repeat left 3px; color:#707070;}
.promotions2 .phone{ background:url(../images/index_76.gif) no-repeat left 2px;}
.promotionsR2{ margin-top:5px; clear:both;}
.inBrand{ width:990px; height:378px; border:1px solid #d8d8d8; clear:both; margin-top:8px;}
.brTitle{width:988px; height:35px; line-height:35px; margin:1px 1px 0 1px; background:#eaeaea;}
.brTitle strong{ width:140px; float:left; font-size:14px;height:35px; background:url(../images/index_85.gif) repeat-x; color:#fff; text-indent:12px;}
.brTitle span{ float:right; font-size:12px; font-weight:normal; margin-right:10px;}
.brTitle span a{ color:#af152d;}
.inBrand1{ width:762px; float:left; margin-top:22px;}
.inBrand1 li{ height:80px; line-height:20px;display:inline; float:left; white-space:nowrap; cursor:pointer;}
.inBrand1 li a { padding-right:5px;}
.inBrand1 li:hover { background:#fff8eb;}
.inBrand1 li img{ border:1px solid #cfcfcf; margin-top:10px; margin:10px 10px 4px 10px;}
.inBrand1 li a{ color:#9c0001;}
.brandgz{ width:203px; height:312px; margin-left:14px; margin-top:15px; display:inline; float:left;}
.brandgz1{ width:203px; height:28px; line-height:28px; font-size:14px; font-weight:bold; color:#fff; text-indent:8px; background:url(../images/index_89.gif) no-repeat;}
.brandgz2{ padding:5px 8px 5px 8px; border:1px solid #e9d7d1; border-top:none; background:#ffefeb;}
.brandgz2 li{ height:26px; line-height:26px; border-bottom:1px dashed #d2d2d2; cursor:pointer}
.brandgz2 li:hover span.szh {background:url(../images/paih.gif) no-repeat; color:#555555;}
.brandgz2 li:hover span {background:url(../images/paih.gif) no-repeat; color:#555555;}
.brandgz2 li span{ width:16px; height:16px; line-height:16px; float:left; text-align:center; font-family:Arial, Helvetica, sans-serif; background:url(../images/index_100.gif) no-repeat; color:#555; margin:6px 8px 0 0;}
.brandgz2 li .szh{color:#fff;background:url(../images/index_97.gif) no-repeat}
.brandgz2 li .san{}
.preferential0{width:758px; padding-left:4px; float:left; margin-top:15px;}
.preferential{ width:174px; height:315px; border-right:1px dotted #ccc; float:left; padding:0 7px; display:inline;}
.preferential:hover{background:#fff8eb}
.brefimg{ text-align:center; font-size:14px; font-weight:bold; text-align:center; line-height:36px;}
.brefimg a{ color:353535;}
.brefList li{ width:162px; padding-left:12px; margin-top:5px; background:url(../images/index_110.gif) no-repeat 3px 6px; line-height:18px;}
.brefList li:hover {background:url(../images/index_110.gif) no-repeat 3px 6px #f7f7f7;}
.brefList li a:hover ,.brefList li .brefLista{color:#b70d01; text-decoration:none;}
.indexjx0{ margin-top:14px; margin-left:15px; margin-right:6px; display:inline; width:742px;}
.indexjx{ height:76px; border-bottom:1px dotted #949494; color:#5d5d5d; line-height:20px;}
.indexjx1{ width:370px; float:left; cursor:pointer; margin-left:1px;}
.indexjx1:hover{ background:#fff8eb}
.indexjx1 dd{ width:105px; margin-right:8px; float:left; padding-top:8px;}
.indexjx1 dd img{border:1px solid #cfcfcf;}
.indexjx1 dt{ float:left; padding-top:8px; padding-bottom:8px;}
.indexjx1 .titlejx{ font-size:14px; font-weight:bold;}
.indexjx1 .titlejx a{ color:#d0233f;}
.indexjx1 p span{ width:23px; text-align:center; float:left; padding-top:2px;}
/*更新*/
.coSearch{ width:100%; height:112px; background:#fff7e5; margin-top:10px; float:left;}
/*更新*/
.coSearch1{ width:436px; margin:0px auto;}
.coseli{ display:block; padding-top:18px; height:32px; clear:both; line-height:32px;}
.coseli dd{ float:left; width:60px; text-align:center}
.coseli dd{ float:left;}.coseli dt{ width:1px; height:12px; background:#b2b2b2; float:left; margin:11px 5px 0 5px; display:inline;}
.coseli dd a:hover ,.coseli dd .coselia{ color:#b3001b; font-weight:bold; text-decoration:none;}
.coSearch11{ width:436px; height:39px; background:#af152d url(../images/index_130.gif) no-repeat; clear:both;}
.souinput{ width:321px; height:31px; line-height:31px; border:none; background:none; margin:4px 0 0 36px; display:inline; float:left;}
.soubutton{ width:64px; height:33px; border:none; margin:3px 3px 0 0; background:url(../images/index_133.gif) no-repeat; float:right; cursor:pointer}
.soubutton:hover{ background:url(../images/butox.gif) no-repeat;}
.copyright{ border-top:2px solid #ff7300; width:100%; margin-top:12px; clear:both; text-align:center; height:130px; line-height:24px; padding-top:20px; float:left;}
.copyright img{ margin-top:7px;_margin-top:0px;}
.copyright p { _padding-bottom:8px;}
/*----产品----*/
.central{ overflow:hidden;}
.productDe{ margin-top:22px; clear:both;}
.productDe1{ width:992px; height:49px; line-height:49px; color:#5e5e5e; font-size:24px; font-family:"微软雅黑"; border-bottom:1px solid #a31222; float:left;}
.productDe1 img{ float:left; margin:6px 30px 0 18px; display:inline;}
.productDe1 font{ color:#96101f; font-size:24px;}
.productDe2{ width:573px; height:428px; float:left; background:#f4f4f4; padding:12px 0 0 20px; margin-top:1px;}
.productDe3{ width:384px; margin-left:15px; display:inline; color:#555555; float:left;}
.pr-de{ clear:both; border-bottom:1px dotted #cecece; line-height:26px; overflow:hidden; padding:4px 0;}
.pr-de span{ color:#9c1221; }
.pr-de font{ font-size:16px; font-weight:bold;}
.pr-de dl{ display:block; clear:both;}
.pr-de dl dd{ float:left; padding-left:12px;}
.pr-de dl dt{ float:left;}
.pr-de dl .prbj1{ padding-right:12px; background:url(../images/product_10.gif) no-repeat right 9px; display:block;}
.pr-de li{ float:left; margin:0 5px 0 5px; display:inline-block; position:relative; line-height:18px; vertical-align: middle;}
.pr-de li a{ padding:0 6px; border:1px solid #d4d4d4; display:block; color:#5f5f5f; height:20px; text-decoration:none;}
.pr-de li a:hover ,.pr-de li .pr-selected{ padding:0 6px; border:2px solid #af051c; margin:-1px; color:#af051c;}
.pr-de li i{ width:10px; height:10px; position:absolute; right:-1px; top:13px; background:url(../images/product_14.gif) no-repeat;}
.pr-quote{ clear:both; height:103px; margin-top:14px;}
.pr-quote1{ float:left; width:266px; line-height:20px; padding-left:12px;}
.pr-quote1 h4{ font-size:14px; font-weight:bold; color:#d0233f;}
.time{ background:url(../images/index_68.gif) no-repeat left 4px;}
.address{ background:url(../images/index_74.gif) no-repeat left 2px; color:#707070; padding-left:18px;}
.phone{ background:url(../images/index_76.gif) no-repeat left 2px; padding-left:18px;}
.pr-quote2{ width:105px; height:51px; line-height:20px; float:right; padding-top:8px; text-align:center; font-weight:bold; background:url(../images/product_18.gif) no-repeat;}
.pr-quote2 span{ color:#d90c0c; font-size:20px;}
.pr-promotion{ height:98px; border:1px solid #f1d38b; background:#fcf4cd; clear:both; position:relative;}
.pr-promotion1{ width:px; height:px; position:absolute; left:-3px; top:-3px;}
.pr-title ,.pr-title li{ height:30px; line-height:30px; float:left;}
.pr-title li a{ float:left; margin-left:22px; display:inline; color:#dd8c00;}
.pr-title li a:hover ,.pr-title li .titlea{ float:left; margin-left:22px; display:inline; font-weight:bold; color:#d60002; text-decoration:none;}
.pr-li{ height:62px; width:368px; background:#fff; line-height:20px; color:#777777; padding:4px 6px 0 6px; float:left; margin:1px;}
.productPa{ clear:both; overflow:hidden; margin-top:9px; padding-top:10px;}
.productDetails{ height:36px; width:992px; background:url(../images/product_x.gif) repeat-x 0 30px; font-size:14pxpx; float:left;}
.productDetails li{ width:147px; float:left; margin-right:3px; text-align:center; line-height:30px; font-size:14px; font-weight:bold;}
/*.productDetails li a{width:147px; height:36px; color:#4d4d4d; background:url(../images/product_y.jpg) no-repeat 0 0; display:block;}
.productDetails li a:hover ,.productDetails .current{width:147px; height:36px; color:#fff; background:url(../images/product_y.jpg) no-repeat 0 -36px;}*/
.productDetails li {width:147px; height:36px; color:#4d4d4d; background:url(../images/product_y.jpg) no-repeat 0 0; display:block; cursor:pointer}
.productDetails li:hover,.productDetails li.hover{width:147px; height:36px; color:#fff; background:url(../images/product_y.jpg) no-repeat 0 -36px;}
.productPa1{ width:723px; height:516px; border:1px solid #e2e2e2; background:#f6f6f6; padding:5px; float:left; margin-top:5px;}
.productPa1 div{ color:#575757; padding:5px 14px 0 14px; line-height:18px; background:#fcfcfc; height:100%;text-align:justify; text-justify:inter-ideograph;}
.productPa2{ width:229px; height:245px; padding:7px; margin-top:5px; border:1px solid #ebebeb; color:#666; line-height:22px; float:right;}
.titlepro{ line-height:18px; font-weight:bold; margin-top:4px; height:18px; overflow:hidden;}
.productPa2 p span{ color:#d20b0f; padding-right:10px;}
.productPa2 p span a{ color:#d20b0f;}
.productPaimg{ clear:both; color:#aaaaaa; line-height:34px; margin-top:26px; text-align:center; border:1px solid #e5e5e5; }
.productPaimg img{padding:1px;}
/*--02--*/
.productMap{ width:593px; height:390px; overflow:hidden; margin-top:8px; float:left;}
.productMap1{ width:384px; padding-bottom:30px; float:right;}
.productFilter{ border-bottom:1px dotted #cecece; height:23px; line-height:23px; color:#cd3241; padding:12px 0;}
.productFilter span{ float:right; font-weight:bold;}.productFilter b{ font-size:16px;}
.productDetails1{ height:75px; border-bottom:1px dotted #cecece;padding:12px 0; margin:0;}
/*--03--*/
.productList1{ width:756px; margin-top:6px; float:left;}
.prlifl1{ height:33px; line-height:38px; background:url(../images/product_x.gif) repeat-x 0 -6px; border:1px solid #d8d8d8; border-width:0 1px; position:relative;z-index:10009}
.prentc{ width:724px; overflow:hidden; border:1px solid #f1d38b; padding:15px; background:#fcf4cd; line-height:24px; position:absolute; left:-1px; top:30px;display:none;z-index:10001;box-shadow: 2px 2px 2px #bbb;}
.prentc li{ width:52px; float:left; overflow:hidden;}
.pren{ float:left; font-family:Arial, Helvetica, sans-serif;width:670px;height:33px;}
.pren li{float:left;display:inline;}
.pren a.a1,a.noprena{float:left; width:25px; height:25px; line-height:25px; margin:5px 0px 0 0; text-align:center; display:inline-block;font-weight:bold;}
.pren a.a1:hover ,.pren .prena{ color:#da1a00; background:#f1d38b; text-decoration:none; }
.pren .noprena{color:#c5c5c5; cursor:inherit;}
.prsq{ width:67px; height:27px; line-height:27px; text-indent:14px; margin:5px 10px 0 0; background:#fff; border:1px solid #d8d8d8; border-bottom:none; float:right;}
.prsq a{ width:67px; height:27px; display:block; background:url(../images/product_06.gif) no-repeat 42px 10px;}
.prsq a.on{background:#fcf4cd url(../images/product_06.gif) no-repeat 42px -12px;}
.prsq1 a{ width:67px; height:27px; display:block; background:url(../images/brands_16.gif) repeat-x; color:#fff;}
.prlifl2{ border:1px solid #f1d38b; border-top:none; padding:0 2px 2px 2px; background:#fcf4cd; overflow:hidden;}
.prlifl20{ background:#fff; overflow:hidden;}
.prli-selected{ margin:10px 6px 0 6px; height:27px; padding:3px 0 3px 12px; overflow:hidden; background:#ffe1b3; color:#ce0a11; line-height:27px; clear:both;}
.prli-selected span{ float:left;}
.prli-selected a{ border:1px solid #f1d38b; height:19px; line-height:19px; color:#808080; background:#fff url(../images/product_11.gif) no-repeat right -11px; padding:0 22px 0 7px; margin:3px 5px 0 5px; display:inline; float:left;}
.prli-selected a:hover{ border:1px solid #f1d38b; height:19px; line-height:19px; color:#c30815; background:#fff url(../images/product_11.gif) no-repeat right 5px; padding:0 22px 0 7px; margin:3px 5px 0 5px; display:inline; float:left; text-decoration:none;}
.prlifldl{ border-bottom:1px dotted #ffd598;_height:100%; color:#403e3e; overflow:hidden; clear:both; line-height:18px; padding:12px 0;}
.prlifldl dd{ float:left; width:104px; text-indent:18px;}
.prlifldl dt{ float:left; width:626px;}
.prlifldl dt a{ color:#b44806; float:left; margin-right:20px; white-space:nowrap;}
.prlifldl dt a:hover{ color:#c30815;}
.prlifldl .dt1{ width:590px;}
.prlifldl .dt1 a{ width:85px; margin:0;}
.prlifldl .dt1 a.ahide{display:none;}
.prlifldl .prWhole{ width:40px;}
.prlifldl .prWhole a{ color:#c30815; margin:0; padding-left:14px; display:block; background:url(../images/product_07.gif) no-repeat 0 6px;}
.prlifldl .prWhole a.on{background:url(../images/product_07.gif) no-repeat 0 -13px;}
.prlifldl .prAway a{ color:#c30815; margin:0; padding-left:14px; display:block; background:url(../images/product_07.gif) no-repeat 0 -13px;}
/*gx*/
.productList12{ background:url(../images/product_x.gif) repeat-x 0 -39px; margin-top:30px;}
/*gx*/
.productList121{ height:28px; line-height:26px; clear:both;}
.pr12-ti{ float:left;}
.pr12-ti li{ width:98px; float:left; margin-right:2px; display:inline; text-align:center;}
.pr12-ti li a{ color:#333; background:url(../images/product_15.gif) no-repeat 0 -28px; display:block;}
.pr12-ti li a:hover ,.pr12-ti li .pr12-tia{ color:#fff; font-weight:bold; background:url(../images/product_15.gif) no-repeat 0 0; text-decoration:none;}
.pr12-tiTrim1 li{width:51px;margin-right:5px;}
.pr12-tiTrim1 li.li0{width:98px;}
.pr12-tiTrim1 li.li0 a{width:98px;background:url(../images/product_15.gif) no-repeat 0 -28px}
.pr12-tiTrim1 li.li0 a:hover,.pr12-tiTrim1 li.li0 a.pr12-tia{background:url(../images/product_15.gif) no-repeat 0 0}
.pr12-tiTrim1 li a{background:url(../images/market12.gif) no-repeat 0 -28px;}
.pr12-tiTrim1 li a:hover ,.pr12-tiTrim1 li .pr12-tiaTrim1{background:url(../images/market12.gif) no-repeat 0 0}
.pr12-fy{ float:right; line-height:22px;}
.xyy{ height:20px; border:1px solid #d4d4d4; padding:0 5px; float:right;}
.xyy:hover {border:1px solid #cd3301; text-decoration:none}
.pr12-fy span{ float:right; padding:0 10px;}
.productList122{border:1px solid #febe5c; border-width:0 1px; clear:both; height:37px;}
.productList122 .s1{ float:left; padding:0 19px;line-height:37px;}
/*2012.01.13 star*/
.productList122 .pr_xl{ width:91px; height:20px; line-height:20px; float:left; background:url(../images/product_29.gif) no-repeat; text-indent:10px; margin:9px 8px 0 0; display:inline; position:relative; z-index:1111}
.productList122 label{line-height:37px;_margin-top:8px;}
.productList122 label input{vertical-align:middle;}
.productList122 label s{margin-left:5px;display:inline;text-decoration:none;}
.productList122 .inputDate{width:48px;border:0;height:20px;margin:0;font-size:11px;margin:1px 0 0 0px;}
/*2012.01.13 end*/
.productList122 .pr_xl ul{ position:absolute; width:89px; left:0; top:19px; background:#f5f5f5; overflow:hidden; border:1px solid #a9a9a9; border-top:none;}
.productList122 .pr_xl ul li a{ height:22px; line-height:22px; display:block;}
.productList122 .pr_xl ul li a:hover ,.productList122 .pr_xl ul li .pr_xla{ height:22px; line-height:22px;background:#fff; color:#af051c; text-decoration:none;}
.productLi_w{ width:785px;}
.productLit{ width:229px; height:auto; float:left; margin:10px 10px 0 0; padding:7px; display:inline;}
.proList{ width:229px; height:26px; line-height:26px; text-indent:26px; background:url(../images/product_34.gif) no-repeat; color:#6c6c6c; margin-bottom:6px; clear:both; position:relative;}
.productLit:hover { background:#fdf6e2; cursor:pointer}
.productLit:hover .productLitc{ display:block}
.productLit .productLitc{ display:none}
.proList0 { font-weight:bold;}
.proList0 span{ color:#d90c0c; font-size:20px;}
.productLitc{ width:243px; height:96px; background:#fdf6e2; border:1px solid #ebebeb; border-top:none; text-indent:0; position:absolute; left:-8px; top:38px;overflow:hidden;}
.productLiph{ width:229px; margin:0 auto; clear:both; line-height:20px;}
.productLiph h4 ,.productLiph h4 a{ font-size:14px; font-weight:bold; color:#d0233f;}
.productLiph2{ height:31px; line-height:31px; margin:4px 1px 1px; background:url(../images/product_x.gif) repeat-x 0 -104px;overflow:hidden;width:245px;}
.productLiph2 a{ background:url(../images/brands_03.jpg) no-repeat 0 -35px; color:#910b1c; display:inline-block; float:left;width:81px;height:31px;text-indent:10px;}
/**/
.productLiph2 a:hover{ color:#fff; background:url(../images/brands_03.jpg) no-repeat; font-weight:bold; text-decoration:none;}
/**/
.prodjjm{ border:1px solid #d8d8d8; overflow:hidden; padding:1px; margin-top:20px;}
.prodjjmTitle{ height:33px; line-height:33px; text-indent:8px; font-size:14px; color:#595959; background:url(../images/product_x.gif) repeat-x 0 -135px;}
.prodjjmTitle span{ float:right; margin-right:12px;}.prodjjmTitle span a{ color:#af152d; font-size:12px;}
.prodjjm1{ width:174px; height:302px; margin:10px 0 0 11px; display:inline; float:left;}
.prodjjm1 .promotions2{ width:174px; margin-top:0;}
.prodjjm1 .address{ padding:0; background:none;}
.prodjjm1 h3 a{color:#c61f38;}
.productList2{ width:230px; margin-top:6px; float:right;}
.productList21{ height:34px; line-height:34px; font-size:14px; font-weight:bold; text-align:center;clear:both;}
.productList21 li{ float:left;}
.productList21 li .pla1{ width:115px; height:34px; display:block; color:#ffe1b3; background:url(../images/product_05.jpg) no-repeat 0 -34px;}
/*.productList21 li .pla1:hover ,.productList21 li .pla1dq{ width:115px; height:34px; display:block; color:#fff; background:url(../images/product_05.jpg) no-repeat; text-decoration:none;}
.productList21 li .pla2{ width:115px; height:34px; display:block; color:#ffe1b3; background:url(../images/product_05.jpg) no-repeat -115px -34px;}
.productList21 li .pla2:hover ,.productList21 li .pla2dq{ width:115px; height:34px; display:block; color:#fff; background:url(../images/product_05.jpg) no-repeat -115px 0; text-decoration:none;}
*/
.productList21 li .pla1:hover ,.productList21 li.hover .pla1{ width:115px; height:34px; display:block; color:#fff; background:url(../images/product_05.jpg) no-repeat; text-decoration:none;}
.productList21 li .pla2{ width:115px; height:34px; display:block; color:#ffe1b3; background:url(../images/product_05.jpg) no-repeat -115px -34px;}
.productList21 li .pla2:hover ,.productList21 li.hover .pla2{ width:115px; height:34px; display:block; color:#fff; background:url(../images/product_05.jpg) no-repeat -115px 0; text-decoration:none;}
.productList22{ border:1px solid #ebebeb; background:#f9f9f9; overflow:hidden;}
.productList22 .cur{ background:#fdf6e2;}
.productList22 .cur a strong {color:#a20320;}
.productList221{ border-bottom:1px dotted #c0c0c0; padding:10px 0; margin:1px;line-height:20px; overflow:hidden; clear:both;cursor:pointer}
.productList221:hover p { color:#a20320;}
.productList221:hover{ background:#fdf6e2; cursor:pointer}
.productList221 a strong { color:#a20320;}
.productList221 p{ line-height:30px; font-size:14px; color:#595959; font-weight:bold;}
.productList221 img{ float:left; margin:10px 6px 0 18px; display:inline;}
.productList221 ul{ margin-left:30px; display:inline-block;}
.productList221 li{ width:86px; float:left; white-space:nowrap;}
/*gx*/
.hForum222{height:55px; line-height:28px; font-size:14px; clear:both; margin-top:20px; margin-left:170px;}
/*gx*/
.hForum2221 ,.hForum2221 li{ float:left; font-family:Arial, Helvetica, sans-serif; display:block;}.hForum2221 li{ margin-right:3px; display:inline;}
.hForum2221 li a{ border:1px solid #a3a3a3; color:#a3a3a3; padding:0 7px; display:inline-block;}
.hForum2221 li a:hover ,.hForum2221 .hForum2221a{ border:1px solid #bc0000; background:#bc0000; color:#fff;text-decoration:none;}
.hForum2221 li .hForum222110{cursor:default; border:1px solid #ddd; background:#fff; color:#ddd;}
/*gx*/
.pager{text-align:center;margin:20px 0;clear:both;}
/*gx*/
.pager span{padding:7px 6px;border:1px solid #ddd;height:14px;line-height:14px;color:#ddd;display:inline-block;*display:inline;zoom:1;border:1px solid #a3a3a3;background:#bc0000;color:#fff;border:0px;padding:8px 6px;}
.pager span.cur{padding:7px 6px;border:1px solid #ddd;height:14px;line-height:14px;color:#ddd;display:inline-block;*display:inline;zoom:1;background:#bc0000;color:#fff;border:0px;padding:8px 6px;}
.pager a{padding:7px 6px;border:1px solid #a3a3a3;height:14px;line-height:14px;color:#999;display:inline-block;*display:inline;zoom:1;}
.pager a:hover{border:1px solid #BC0000;color:#BC0000;}
#AspNetPager1_btn{border:1px solid #BC0000;background:#BC0000;color:#fff;cursor:pointer;margin-left:5px;display:inline;}
#AspNetPager1_input{height:17px;line-height:17px;}
/*--04--*/
.productPic{ width:752px; overflow:hidden; border:1px solid #ebebeb; padding:1px; margin-top:8px; clear:both;}
.productPic1{overflow:hidden;}
.productPic:hover{ background:#fdf6e2;}
.productView{display:none;width:100%;}
.productPic01{ background:#fffaf1;}
.productPic0{ background:#fff;}
.productPic11{ width:230px; height:175px; float:left; margin-right:15px;}
.productPic12{ width:265px; float:left; color:#666; line-height:26px;}
.productPic12 p { color:#d20b0f}
.productPicTrim1{ width:752px; overflow:hidden; padding:1px; margin-top:8px; clear:both; float:left;}
/*gx*/
.productPic12 p select { margin-bottom:0px;margin-top:2px;}
/*gx*/
.productPic12 p strong { color:#666666; line-height:26px;}
.productPic12 h4{ font-size:14px; font-weight:bold; line-height:18px;}
.productPic12 h4 a{ text-decoration:underline;}
.productPic13{ height:172px; width:192px; line-height:18px; border-left:1px dotted #c0c0c0; padding-left:15px; float:right;}
.productPic131{ clear:both; line-height:20px; margin-bottom:10px; margin-top:3px;}
.productPicdh{ width:190px; height:26px; line-height:26px; text-indent:25px; font-size:11px; background:url(../images/product_30.gif) no-repeat; color:#6c6c6c; margin-top:4px; margin-bottom:6px; clear:both; position:relative;}
.productPicdh1 { font-weight:bold; font-size:12px;}
.productPicdh span{ color:#d90c0c; font-size:20px;}
.productPic131 .address{ margin-top:4px;}
.productPic132{ line-height:20px; color:#f96700; clear:both;}
.brandp3{ margin:0 10px; clear:both;}
.brandp3 li{ width:144px; margin:6px 20px 0 10px;text-align:center; float:left; line-height:30px;display:inline; overflow:hidden;}
.brandp3 li p{ margin:0;}
.brandp31{ width:140px; border:1px solid #e3e3e3; text-align:center; padding:1px;}
.productPic .br-gcs{ clear:both;}
/*----品牌厂商----*/
.brandst{ background:url(../images/brands_01.gif) no-repeat; width:230px;}
.brandsUl{ padding:0 2px 2px 2px;border:1px solid #f1d38b; background:#fcf4cd; overflow:hidden;}
.brandsUl ul{ background:#fff; height:202px; overflow:hidden;display:block; padding-left:1px;}
.brandsUl ul li{ width:105px; height:38px; float:left; border:1px solid #e0e0e0; margin:5px 2px; display:inline;}
.brandsgc{ padding:1px; border:1px solid #ebebeb;color:#777; clear:both; margin-top:6px;padding-bottom:35px;}
.brandsgc:hover{background:#fdf6e2;}
.brandsgc0{ overflow:hidden; padding:10px 16px; }
.brandsgc01{ float:left; margin-right:24px;}
.brandsgc02{ width:420px; float:left;}
.brandsgc02 h3{ font-size:14px; font-weight:bold; line-height:24px;}
.brandsgc02 h3 a{ color:#b1051b; text-decoration:underline;}
.brandsgc02 td{ line-height:21px;}
.brandsgc02 div{ line-height:16px; border:1px dotted #c0c0c0; border-width:1px 0; padding:4px 0;}
.brandsgc02 p{ line-height:28px;}
.brandsgc02 p font{color:#fa6803;}
.brandsgc00{ border:1px solid #f86500;}
.brandsgc010 .brandsgc0{ background:#fdf6e2;}
.brandsgc020 .brandsgc0{background:#f7f7f7;}
.br-gcs{ height:35px; background:url(../images/brands_02.gif) repeat-x;}
.br-gcs ul{ float:right; margin-right:6px; display:inline;}
.br-gcs li{ float:left; line-height:35px; margin-right:3px;}
.br-gcs li a{ width:89px; height:35px; display:block; text-indent:15px; color:#910b1c; background:url(../images/brands_03.jpg) no-repeat 0 -35px;}
/**/
.br-gcs li.on a,.br-gcs li a:hover{ color:#fff; background:url(../images/brands_03.jpg) no-repeat; font-weight:bold; text-decoration:none;}
/**/
.br-jj{background:#fd8b30; clear:both;display:none;padding-bottom:10px;}
.br-jj .item{ height:206px; margin:0 9px; background:#fff; line-height:16px; color:#5e5e5e; overflow:auto;display:none;}
.br-jj .item p{ margin:6px 10px; display:inline-block;}
.br-jj .item .p1{ font-size:14px; border-bottom:1px dotted #c0c0c0; line-height:30px; font-weight:bold; display:block;}
.braAboutjli{ float:left; padding-left:10px; display:inline;}
.braAboutjli li{ width:200px; height:63px; float:left; padding:14px 0 10px 25px; overflow:hidden;}
.braAboutjli li p{ margin:0;}
.haui{ font-size:14px; height:18px; line-height:18px; font-weight:bold;}
.braAboutjli li:hover{ background:#fefae8;}
.braAboutjli10{float:left; margin:0 10px; display:inline;}
.braAboutjli1 li{ padding-left:18px; width:673px; background:url(../images/brands_05.gif) no-repeat 4px 11px; line-height:30px; border-bottom:1px dotted #c0c0c0; display:block;}
.braAboutjli1 li font ,.brandjs4 div ,.promcjie{ float:right; font-size:12px; padding-left:18px; background:url(../images/index_68.gif) no-repeat 0 9px; padding-right:5px;}
.braAboutjli1 li span ,.brandjs4 div span ,.promcjie span{font-weight:bold; color:#e31b1d;}
.brandsgc03{ float:right; width:107px; margin-top:20px;}
.brandsgc03 img{ margin-top:4px; border:1px solid #e7e7e7;}
/*--02--*/
.homebrandst{ width:100%; height:83px; background:url(../images/homebrands_x.gif) repeat-x;}
.homepplogo{ float:left; width:365px; margin:16px 0 0 14px; display:inline;}
.homeppSearch{ width:255px; height:28px; line-height:28px; margin-top:16px; background:url(../images/homebrands_10.gif) no-repeat left; float:left;}
.homebrandst .topLogin{ line-height:58px;}.homebrandst .topLogin img{ margin-top:16px;}
.homeppSearch .topSearch1{width:64px; height:24px; line-height:24px; margin:3px 0 0 7px;}
.homeppSearch .topSearch1 img{ margin-top:10px;}
.homeppSearch ol{width:69px; left:-6px; top:24px;}
.homeppSearch .topSearch2{ width:82px;margin-left:28px; margin-top:2px;}
.homeppSearch .topSearch3{margin-top:0px;}
.homebrandsNav{clear:both;}
.homebrandsNav1{ height:62px; line-height:58px; clear:both;}
.homebrandsNav1 h1{ float:left; font-size:26px; font-weight:bold; color:#545454; margin-right:30px;}
.homebrandsNav1 span{float:left;margin:20px 20px 0 0;}
.homebrandsNav11{ float:left; color:#666;}.homebrandsNav11 font{ color:#a01022; font-size:12px;}
.homebrandsNav12{ float:right;}
.homebrandsNav12 img{ margin-top:5px; margin-left:8px; border:1px solid #e7e7e7; display:inline;}
.homebrandsNav2{ height:34px; background:url(../images/homebrands_x.gif) repeat-x 0 -83px; clear:both;overflow:hidden;}
.homebrandsNav2 dl{ float:left; margin-left:10px;line-height:30px; margin-top:4px;}
.homebrandsNav2 dd{ float:left; height:30px; overflow:hidden; text-align:center; font-size:14px; font-weight:bold;}
.homebrandsNav2 dd a{ width:81px; height:30px; color:#fcf0d4; display:block; background:none;}
.homebrandsNav2 dd a:hover{ color:#fcf0d4px; background:url(../images/homebrands_21.jpg) no-repeat 0 -30px; text-decoration:none;}
.homebrandsNav2 dd a:active ,.homebrandsNav2 dd .homebrandsNava,.homebrandsNav2 dd .homebrandsNava:hover{ color:#be1c34; background:url(../images/homebrands_21.jpg) no-repeat; text-decoration:none;}
.homebrandsNav2 dl dt{ float:left; width:2px; margin:6px 6px 0 6px; display:inline;}
.homebrandsNav2 div{ width:220px; height:34px; background:url(../images/homebrands_x.gif) repeat-x 0 -117px; line-height:34px; color:#a10221; font-size:14px; font-weight:bold; float:right; text-align:center;}
/*gx*/
.homebrandsc{ width:100%; margin-top:2px; padding-bottom:17px; overflow:hidden;}
/*gx*/
.homebraLift{ width:768px; float:left; background:#fff; }
.homebraLi1{ height:331px; clear:both; margin:0px 0 0 1px; display:inline;}
.homebraLi2{ margin-top:5px; border:1px solid #d8d8d8; overflow:hidden; _height:100%; background:#fff;padding-bottom:35px;}
.homebraLi21{ height:29px; line-height:29px; margin:1px; background:url(../images/homebrands_x.gif) repeat-x 0 -153px;}
.homebraLi21 strong{ width:175px; height:29px; color:#fff; font-size:14px; text-indent:15px; float:left; background:#a4081f url(../images/homebrands_32.jpg) no-repeat 0 -78px;}
.spana1{ float:right; font-size:12px; font-weight:normal; margin-right:10px;}
.spana1 a{ color:#af152d;}
.homebraLi22{ padding:18px; color:#777; line-height:16px; float:left;}
.homebraLi2 .productLit{ margin-left:5px; margin-right:5px;}
.homebraLi23{ width:766px; height:68px; float:left; clear:both;}
.homebraLi23 a{ width:157px; height:39px; line-height:38px; text-align:center; font-size:14px; font-weight:bold; color:#fff; margin:14px auto 0 auto; background:url(../images/homebrands_32.jpg) no-repeat 0 0; display:block;}
.homebraLi23 a:hover{background:url(../images/homebrands_32.jpg) no-repeat 0 -39px; color:#fff; text-decoration:none;}
.homebraLi23 input{display:block; width:157px; height:39px; background:none; border:none; text-align:center; font-size:14px; font-weight:bold; color:#fff;}
.homebraRight{ width:220px; float:right;}
.homebraRight1{ border:1px solid #d8d8d8; color:#6b6b6b; background:#fff; padding:1px; }
.homebraRight11{ background:#f5f5f5; border-bottom:1px solid #d5d5d5; height:154px; padding-top:12px;}
.bra-xz{ height:26px; text-align:center;}
.bra-xz select{ height:21px; line-height:21px; width:176px;}
.bra-xz input{ height:21px; line-height:21px; width:172px;}
.homebraRight11 .homebraLi23{ width:216px; height:auto; }.homebraRight11 .homebraLi23 a{ margin-top:6px;}
.homebraRight12{ margin-left:30px; padding:12px 0; display:inline-block;}
.homebraRight12 li{ width:92px; line-height:18px; float:left; white-space:nowrap;}
.homebraRight2{ margin-top:3px;}
.homebraRight21{ padding:10px 0 20px 8px; line-height:18px; clear:both;}
.homebraRight22{ height:106px; width:178px; margin:44px auto 25px auto;}
.bra-jt1 ,.bra-jt2{ width:20px; float:left;}
.bra-jt1 a ,.bra-jt2 a{ width:20px; height:106px; display:block; background:url(../images/homebrands_41.gif) no-repeat -57px 55px;}
.bra-jt1 a:hover{background:url(../images/homebrands_41.gif) no-repeat 2px 55px;}
.bra-jt2 a{background:url(../images/homebrands_41.gif) no-repeat -15px 55px;}
.bra-jt2 a:hover{background:url(../images/homebrands_41.gif) no-repeat -74px 55px;}
.bra-tp{ width:138px; text-align:center; overflow:hidden; float:left;}
.homebraRight3{margin-top:3px; padding-bottom:15px;}
.homebraLi221{text-align:justify; width:572px; text-justify:inter-ideograph; float:left;}
.homebraRight3 ul li{display:inline;}
/*--03--*/
.brandsproduct{ width:175px; line-height:33px; font-weight:bold; margin:16px auto 0 auto;}
.braAbout{ width:750px; margin:12px auto 0 auto; clear:both;}
.braabtitle{ height:30px; line-height:30px; font-size:14px; font-weight:bold; color:#000; border-bottom:1px solid #a31222;}
.braAbout .homebraLi22{ padding:18px 7px;}
.braAbout1{ border:1px solid #ebebeb; padding:1px; overflow:hidden; margin:10px 0; clear:both;padding-bottom:35px;}
.braAbout10{ overflow:hidden; _height:100%;}
.braAbout11{ float:left; padding:10px 0 16px; margin:0 7px; display:inline; line-height:18px; border-bottom:1px dotted #c0c0c0;}
.braAbout111{ width:126px; float:left;}.braAbout111 img{ border:1px solid #e7e7e7;}
.braAbout112{ width:602px; color:#777; float:left;}
.braAbout12{ display:block; height:184px; clear:both;}
.braAbout12 li{width:175px; line-height:33px; float:left; margin:18px 0 0 9px; display:inline;}
.braAbout1 .br-gcs{ float:left; width:746px;}
.braAboutzs{ width:750px; height:152px; overflow:hidden; margin-top:10px;}
.braAboutzs li:hover{border:1px solid #A31222;}
.braAboutzs ul{ width:800px;}
.braAboutzs li{ width:168px; height:122px; padding:4px; border:1px solid #e8e8e8; float:left; text-align:center; line-height:122px; margin-right:12px;}
.braAboutlx{ margin-top:10px; height:260px; line-height:24px; color:#515151;}
.braAbout10:hover{ background:#fdf6e2;}
.braAboutlx .p1{padding-left:22px;background:url(../images/market02.gif) no-repeat 0 center;color:#c91f39;cursor:pointer;line-height:22px;height:22px;}
/*--04--*/
.brandjs{ clear:both;}
.brandjs1{ height:46px;color:#3c3c3c;padding-top:9px; background:#f2f2f2; border-bottom:1px dotted #c0c0c0; border-top:1px solid #fff;}
.brandjs1 .s1{ margin-left:20px; float:left;font-size:14px; font-weight:bold; line-height:37px; }
.brandjs1 .ul1{ float:right; margin-right:30px;}
.brandjs1 .ul1 li { float:left; margin-right:2px; line-height:39px; text-align:center;}
.brandjs1 .ul1 li a{ width:105px; height:39px; background:#fff; padding-top:6px; border:1px solid #c0c0c0; border-bottom:none; display:block;}
.brandjs1 .ul1 li a:hover ,.brandjs1 .ul1 .brandjs1a{ background:#fff url(../images/brands_06.gif) repeat-x top; color:#a11127; text-decoration:none;height:39px;border-bottom:1px solid #fff;}
.brandjs2{ color:#777; line-height:18px; margin:20px 10px;}
.brandjs3{ clear:both;}
.brandjs31{ width:375px; height:56px; margin:17px 0; float:left;}
.brandjs31 span{ float:left;}
.brandjs31 p{ float:left; width:270px; line-height:20px; margin-left:10px; display:inline;}
.brandjs4{ line-height:18px; border-bottom:1px dotted #c0c0c0; padding:20px 0; color:#343434; overflow:hidden;}
.brandjs4 p{ padding-left:28px; padding-right:10px; display:block; clear:both;}
.brandjs4 h2{ font-size:14px; padding-left:28px; background:url(../images/brands_05.gif) no-repeat 14px 12px; line-height:34px; font-weight:bold; float:left;}
.brandjs4 h2 a{ color:#c61f38;}
.brandjs4 div{ line-height:34px; float:left; margin-left:12px;}
.brandjs4 .p2{ background:url(../images/index_74.gif) no-repeat 10px 2px; color:#838383;margin-bottom:8px; display:block;}
.brandjs4 .p2 span{ padding-left:30px; background:url(../images/index_76.gif) no-repeat 10px -1px;}
/*--05--*/
.homebraLi2 .productList12{ width:760px; margin:10px auto 0 auto;}
.homebraLi2 .productList122{ width:auto; height:37px; clear:both;}
.cansanimg{ float:right;}
.cansanimg a{ margin:13px 10px 0 0; display:inline-block;}
/*--06--*/
.brandsNew{ color:#4c4c4c; line-height:18px; margin:10px 6px; display:inline-block;}
.brandsNew li{ border-bottom:1px dotted #c0c0c0; margin-top:1px; padding:10px 15px 15px 15px;}
.brandsNew li:hover{ background:#fdf6e2; color:#c18112;}
.brandsNew li h3{line-height:44px; font-size:12px; color:#4c4c4c;}
.brandsNew li h3 a{ color:#ad152d; font-size:14px; font-weight:bold; }
/*--07--*/
.brandstu{ text-align:center;}
.brandstu1{ width:750px; overflow:hidden; margin-top:10px;}
.brandstu1 ul{ width:800px; margin-bottom:30px;}
.brandstu1 li{ width:176px; height:192px; float:left; margin-right:12px; line-height:16px;}.brandstu1 li a:hover{ text-decoration:none;}
.brandstu1 .tu1 a{ width:168px; padding:4px; height:122px; border:1px solid #e8e8e8; text-align:center; margin-bottom:8px; line-height:122px; display:block;text-align:center;}
.brandstu1 .tu1 a:hover{ border-color:#8d0b1f;}
.brandstu1 .tu1 a img{display:block;margin:0 auto;}
/*--08--*/
.brandsDealer-map{ width:755px; height:388px; margin:9px auto;}
.brandsDealer{ margin:9px 7px 0 7px; _height:100%; border:1px solid #ebebeb; color:#666; padding:1px; clear:both; overflow:hidden; position:relative;padding-bottom:35px;}
.brandsDealerBj{ overflow:hidden; padding:10px 16px;}
.brandsDealerBjTrim1 .brandsDealer2{width:315px;border-right:1px dotted #c0c0c0;}
.brandsDealerBjTrim1 .brandsgc03{width:395px;}
.brandsDealerBjTrim1 .brandsgc03 img{margin:0 10px 0 10px;}
.brandsDealerBjTrim1 .Dealer1 strong a{display:block;clear:both;width:100%;float:none;}
.brandsDealerBjTrim1 .Dealer1 strong a img{border:1px solid #e7e7e7;}
.brandsDealerBjTrim1 p.Dealer1{width:120px;float:left;clear:none;}
.brandsDealerBjTrim1 p.Dealer1Trim1{width:175px;float:left;clear:none;line-height:20px;margin:0;padding:0;position:relative;}
.brandsDealerBjTrim1 p.Dealer1Trim1 .img1{position:absolute;right:0;top:0;}
.brandsDealerBjTrim1 .brandsDealer2 span.clearfix{margin-bottom:10px;}
.brandsDealerBjTrim1 p.Dealer1Trim1 a{color:#d0233f;}
/**/
.brandsDealerBj:hover ,.brandsDealer0{ background:#fdf6e2;}
.brandsDealer:hover { background:#fdf6e2;}
.brandsDealerBj:hover .brandsDealer2 div ,.brandsDealer0 .brandsDealer2 div{ background:url(../images/brands_12.gif) no-repeat 0 -34px; color:#fff;}
.brandsDealer:hover .brandsDealer2 div { background:url(../images/brands_12.gif) no-repeat 0 -34px; color:#fff;}
.brandsDealer .brandsDealer2 div.lianxifl { visibility:hidden;}
.brandsDealer:hover .brandsDealer2 div.lianxifl{ visibility:visible;background:url(../images/sanjiaot.gif) 15px center no-repeat; color:#ba1d1d; font-weight:bold}
/**/
.brandsDealer1{ width:141px; height:106px; float:left; margin:16px 16px 0 0;}
.brandsDealer2{ width:360px; float:left; margin-top:14px; line-height:25px;}
.brandsDealer2 p{ display:block; clear:both;}
.Dealer1 strong a{ color:#d0233f; text-decoration:underline; font-size:14px; margin-right:6px; float:left;}
.brandsDealer2 .Dealer2{ font-weight:bold; color:#d0233f; padding-left:15px; background:url(../images/brands_13.gif) no-repeat 0 8px; line-height:20px;}
.brandsDealer2 font{ color:#d0233f; font-size:12px;}
.brandsDealer2 div{ width:248px; height:34px; line-height:34px; font-family:"微软雅黑"; font-size:24px; color:#b61c1c; padding-left:48px; background:url(../images/brands_12.gif) no-repeat;}
.brandsDealer3{ height:142px; width:198px; line-height:18px; border-left:1px dotted #c0c0c0; float:left;}
.brandsDealer3 dd{ width:20px; height:18px; margin-top:8px; background:url(../images/index_110.gif) no-repeat 10px 6px; float:left;}
.brandsDealer3 dt{ float:left; width:177px; margin-top:8px;}
.brandsDealer .br-gcs{}
.brandsDealer .p1{ margin:4px; width:700px; overflow:hidden;}
.dealerEn{ width:13px; height:18px; line-height:18px; text-align:center; font-weight:bold; color:#b30100; border:1px solid #ebebeb; background:#fff; position:absolute; left:-1px; top:-1px;}
/*--09--*/
.brandsPromotion{ float:left; font-size:12px; font-weight:normal;}
.brandsPromotion .calenderFrom,.brandsPromotion .calenderTo{ width:66px; height:22px; padding-left:3px; margin-right:8px; line-height:22px; background:url(../images/brands_14.gif) no-repeat; display:block; float:left; margin-top:8px;}
.brandsPromotion .inputDate{width:60px;border:0;height:20px;margin:0;font-size:11px;margin:1px 0 0 0px; }
.brandsPromotion ol{ float:left; margin-left:10px; display:inline;line-height:37px;}
.brandsProm1{ width:517px; color:#343434; line-height:18px; float:left;}
.promcjie{ clear:both; float:none; line-height:30px; margin-left:14px;}
.brandsProm1 h2{font-size:14px; padding-left:14px; background:url(../images/brands_05.gif) no-repeat 0 8px; line-height:24px; font-weight:bold; float:left;}
.c61f38 a{ color:#c61f38;}
.brandsProm1 p{ clear:both; display:block; padding-left:14px;}
.brandsProm2{ width:180px; height:114px; border-left:1px dotted #c0c0c0; float:left; padding-left:18px; padding-top:2x; _margin-bottom:10px; line-height:20px;}
.pm1{ font-size:14px; font-weight:bold; line-height:24px; display:block;width:180px; clear:both; position:relative;}
.pm1 a{ float:left;}
.pm1 a img{ margin-top:4px;}
.pmtancu{ width:216px; border:1px solid #f1d38b; overflow:hidden; position:absolute; left:-19px; top:-50px; background:#fff; display:block;}
.pmtancu1{ border:2px solid #fcf4cd; width:208px; padding:4px 0 4px 4px; overflow:hidden; font-size:12px; font-weight:normal; line-height:20px; display:block;}
.pm2 {display:block;width:180px; clear:both;}
.pm2 img{ float:left; margin:0 3px; display:inline;}
.promove{ overflow:visible;}
.promove .brandsDealerBj{overflow:visible; padding-bottom:0; height:120px;}
/*--10--*/
.homebraLi2 .productPic{ margin-left:auto; margin-right:auto; z-index:100;}
.brandp4 li{ width:170px; margin:0 4px 0 0; line-height:28px; text-align:left;}
.brandsrzbj0{width:100%; height:100%; position:absolute; left:0; top:0;}
.brandsrzbj{width:100%; height:100%; overflow:hidden; text-align:left;
background:rgba(0, 0, 0, 0.5) none repeat scroll 0 0 !important;
filter:Alpha(opacity=50); background:#000; min-height:2000px;}
.brandsrz{ width:813px; height:675px; margin:12% auto 0 auto; position:relative;}
.brandsrz1{ width:809px; margin-left:2px; background:#fff; height:1px; overflow:hidden; clear:both;}
.brandsrz2{ width:811px; margin-left:1px; background:#fff; height:1px; overflow:hidden; clear:both;}
.brandsrz0{ width:813px; height:671px; background:#fff; overflow:hidden; clear:both;}
.braClose{ height:36px; clear:both;}
.braClose a{ float:right; margin:17px 19px 0 0;}
.braPaddling{ width:782px; height:498px; margin:0 auto; clear:both;}
.braPad1 ,.braPad3{ width:31px; height:498px; float:left;}
.braPad1 a ,.braPad3 a { width:31px; height:68px; display:block; margin-top:210px; background:url(../images/brands_16.jpg) no-repeat -33px 0;}
.braPad1 a:hover{ background-position:-33px -75px;}
.braPad1 .braPad10{background-position:-33px -148px;}}
.braPad3{ float:right;}
.braPad3 a{ background-position:0px 0px;}
.braPad3 a:hover{ background-position:0px -75px;}
.braPad3 .braPad30{background-position:0px -148px;}
.braPad2{ float:left;}
.braPad2{ float:left; line-height:32px; text-align:center; color:#666; font-weight:bold;}
.braPad2 .img{ width:706px; height:452px; line-height:452px; padding:6px; overflow:hidden; border:1px solid #ebebeb;}
.braXiao{ width:720px; height:130px; margin:0 auto; padding-top:14px; border-top:1px solid #a31223; clear:both;}
.braXiao li{ width:84px; margin:0 3px; display:inline; float:left; line-height:18px; text-align:center;}
.braXiao .border{ width:80px; height:58px; border:1px solid #e8e8e8; padding:1px; margin-bottom:10px; display:block;}
/*----经销商----*/
.dealerList1 .brandsDealerBj{ padding-bottom:0;}
.dealerList1 .brandsgc03{ margin-top:43px;}
.dealerList1 .brandsDealer1{ height:128px; }
/*--01--*/
.prlifldl .dt2{ width:590px;}
.prlifldl .dealerLiM{ width:42px;}
.prlifldl .dealerLiM a ,.prlifldl .dealerLiM1 a{width:42px; height:16px; color:#c30815; margin:0; display:block; background:url(../images/dealer_03.gif) no-repeat; border:1px solid #ccc;}
.prlifldl .dealerLiM a:hover ,.prlifldl .dealerLiM1 a:hover{border:1px solid #f25700;}
.prlifldl .dealerLiM1 a{ background:url(../images/dealer_03.gif) no-repeat 0 -16px;}
.prlifldl1{ background:#fcf4cd;}
.prlifldl1 dt a{ width:98px; overflow:hidden; float:left; margin:0; white-space:nowrap;}
.prlifldl1 dt a:hover{ text-decoration:none; color:#f30000;}
.prlifldl1 dt a input{ float:left; height:18px; overflow:hidden; margin-right:4px; position:relative;}
.prlifldl1 dt p{ width:590px; display:block; clear:both; text-align:center;}
.prlifldl1 dt p input{ width:58px; line-height:18px; margin-top:10px;}
.dealerLiM2{ height:44px; line-height:44px; color:#706e6e; clear:both;}
.dealerLiMc{ border:1px solid #ebebeb; clear:both; color:#4e4647; padding:1px; margin-bottom:24px; _height:100%;padding-bottom:35px;}
.dealerLiMc:hover ,.dealerLiMc0{ background:#fdf6e2;}
.dealLiMc11{ height:50px; background:url(../images/dealer_04.gif) repeat-x; clear:both}
.demc-Mlo{ width:105px; height:38px; border:1px solid #e7e7e7; float:left; background:fff; margin:4px 0 0 6px; display:inline;}
.demc-Mli{ float:left; line-height:50px; color:#fff;}
.demc-Mli li{ margin-left:12px; float:left; display:inline-block;}
.demc-Mli .mlia1,.demc-Mli .mlia1 a,.demc-Mli .mlia1 a:hover{ font-weight:bold; color:#fcf4cd; font-size:14px;}
.demc-Men{ width:13px; height:18px; line-height:18px; background:#fff; border:1px solid #ebebeb; color:#b30100; font-weight:bold; font-family:Arial, Helvetica, sans-serif; text-align:center; float:right; margin:14px 4px 0 0; display:inline;}
.dealLiMc12{ clear:both; padding:10px; padding-top:6px; padding-bottom:0; margin-bottom:10px; overflow:hidden;}
.dealLiMc1-li1{ width:500px; height:232px;border-bottom:1px dotted #c0c0c0; float:left;}
.dealLiMc1-li1 li{ width:162px; margin:10px 0 10px 2px; display:inline-block; overflow:hidden; float:left; line-height:20px;}
.dealLiMc1-lipic{ width:78px; height:28px; border:1px solid #e7e7e7;}
.dealLiMc1-litit{ font-size:14px; line-height:26px; font-weight:bold;}
.dealLiMc1-li2{ width:500px; line-height:22px; margin-top:8px; float:left;}
.dealLiMc1-li2 p{ clear:both; display:block;}
.dealLiMc1-li2 .li21 a{ width:70px; float:left; white-space:nowrap;}
.dealLiMc1-li2 .li22 a{ line-height:26px; color:#d0233f;}
.dealLiMc1-img{ width:218px; height:346px; border-left:1px dotted #c0c0c0; padding:5px 0 5px 13px; float:right;}
.dealerMap{ width:226px; height:282px; padding:1px; border:1px solid #d0d0d0; clear:both;}
/*--02--*/
.dealerLiMc1 .dealLiMc11{ background:url(../images/dealer_04.gif) repeat-x 0 -50px;}
.dealerLiMc1 .dealLiMc110{background:url(../images/dealer_04.gif) repeat-x 0 -100px;}
.dealerLiMc1 .demc-Mli{color:#b90718;}
.dealerLiMc1 .demc-Mli li{ margin-left:25px;}
.dealerLiMc1 .demc-Mli li strong{ color:#666;}
.dealerLiMc12{ width:530px; line-height:20px; float:left;}
.dealerLiMc12 .p1 img{border:1px solid #ebebeb;margin-top:10px;}
.dealerLiMc12 li{ width:260px; margin-left:5px; display:inline; float:left; margin-top:7px;}
.dealerLiMc12 p{ clear:both;}
.dealerLiMc12 a{ float:left; margin-right:12px;}
.dealerLiMc13{ width:174px; height:76px; padding-top:6px; line-height:20px; padding-left:16px; float:right; border-left:1px dotted #c0c0c0; margin-bottom:10px;}
/*----促销信息----*/
.productList122 .brandsPromotion font{ margin-top:6px;}
.productList122 .inputDate{width:48px;border:0;height:20px;margin:0;font-size:11px;margin:1px 0 0 0px;}
.productList1 .brandsDealer{ margin-left:0; margin-right:0;}
.qtPromoxx img{ margin-bottom:4px; border:1px solid #e7e7e7;}
.qtPromoxx1{width:450px;float:left;}
.qtPromoxx1 li{width:420px; line-height:30px; border:none;}
.qtPromoxx2{ height:122px;}
.dealerLiMc .br-gcs{ clear:both;}
.qtPromoxx3{ width:500px; border-bottom:1px dotted #c0c0c0; padding-bottom:10px;}
.qtPromoxx3 li{ width:470px; border:none;}
.qtPromoxx4{ height:auto; float:left; margin:10px 0 5px 0; border:none; padding:0; width:250px;}
.qtPromoxx5{ text-align:right; line-height:30px;}
.qtPromoxx6{ border:1px solid #ebebeb; padding:1px; margin-top:10px; color:#343434;}
.qtPromoxx61{ height:84px; clear:both;}
.qtPromoxx611{ width:520px; float:left; font-size:14px; padding-left:18px; background:url(../images/brands_05.gif) no-repeat 8px 28px; color:#333;}
.qtPromoxx611 h1{ font-family:"微软雅黑"; font-size:24px; color:#c30914; margin-top:14px;}
.time1{background:url(../images/index_68.gif) no-repeat left 6px; line-height:24px; font-size:14px; padding-left:18px;}
.time1 span{ font-weight:bold; color:#e31b1d;}
.qtPromoxx612{ width:200px; height:66px; margin-top:10px; border-left:1px dashed #c0c0c0; line-height:20px; float:right; padding-left:10px;}
.qtPromoxx62{ padding:16px; line-height:18px; clear:both;}
.qtPromoxx7{ height:235px; margin-top:10px; border:1px solid #f1d38b; clear:both;}
.qtPromoxx70{ border:2px solid #fcf4cd; height:231px; overflow:hidden; background:#fff;}
.qtPromoxx71{ height:36px; line-height:36px; background:url(../images/dealer_08.gif) repeat-x; clear:both;}
.qtPromoxx-li71 ,.qtPromoxx-li71 li{ float:left;}
.qtPromoxx-li71 a{ width:104px; height:36px; text-align:center; border-left:1px solid #fff; border-right:1px solid #dcdcdc; color:#777; display:block; background:none;}
/**/
.qtPromoxx-li71 a:hover ,.qtPromoxx-li71 .hover .li17ahover{color:#c61f38; font-weight:bold; text-decoration:none; background:#fff;}
/**/
.qtPromoxx72{ clear:both; margin-top:6px;}
.qtPromoxx72 .braAboutjli1{ padding:0 10px;}
.qtPromoxx72 .braAboutjli1 li{ width:auto;}
.qtPromoxx7 .qtPromoxx1{ width:522px;}
.qtPromoxx7 .qtPromoxx1 li{ width:502px; border-bottom:1px dotted #C0C0C0;}
.qtPromoxx-li72{height:162px; padding-top:10px;}
/*----店铺----*/
.shopindex1{ border:1px solid #d8d8d8; padding:10px; overflow:hidden; clear:both; background:#fff;}
.shopindex11{ width:302px; float:left;}
.shopindex12{ margin-left:18px; display:inline; float:left;}
.shopindex12 li{ line-height:24px; padding-left:11px; background:url(../images/index_110.gif) no-repeat 0 11px;}
.shopindex12 li span{ float:right; color:#999;}
.shopindex12 .sho1{ line-height:40px; font-weight:bold; background:none; padding:0;}
.shopindex12 .sho1 span{ color:#c91f39;}
.shopindex12 .sho1 a{ color:#c91f39; text-decoration:underline; font-size:14px;}
.shopindex2{ margin-top:3px;}
.shopindex2 .homebraRight21{ padding-left:0; padding-right:0;}
.shopindex2 p{ line-height:22px; padding-left:8px;}
.shopindex2 .homebraRight21div{ width:216px; overflow:hidden; clear:both;}
.shopindex2 .tiaiu{ padding-left:30px; background:url(../images/shop_09.gif) no-repeat 8px 3px;}
.shopindex2 .promotions{ height:34px; line-height:34px; background:url(../images/shop_10.jpg) no-repeat; color:#fff;}
.shopindex2 .promotions a{ color:#fff;}.shopindex2 .promotions a:hover{ color:#fff;}
.shopindex3{ height:106px; overflow: visible; padding:10px 16px 0 16px;}
.shopindex3 .brandsProm1{ width:auto; padding:px;}
.shopindex3:hover{ background:#fdf6e2;}
.shopindex4{ border-bottom:1px dotted #d0d0d0;}
/*注册*/
.zhucetop1{ height:59px;}
.zhucetop2{ width:100%; height:42px; line-height:42px; color:#c37106; background:url(../images/zcfi_01.gif) repeat-x; font-size:14px; font-weight:bold;}
.zhucetopff{ color:#fff;}
.zhucetop21{ width:262px; text-indent:2em; float:left;}
.zhucetop22{ width:440px; float:left;}
.zhucetop23{float:left;}
.registration{ width:564px; float:left; border-right:1px dotted #d0d0d0; margin-top:14px; padding-top:16px; padding-bottom:32px;}
.registration1{ display:block;}
.registration1 td{ line-height:48px; color:#515151; font-size:14px;}
.regiinput{ width:263px; height:29px; line-height:29px; font-size:14px; color:#666; border:1px solid #e1e1e1; padding-left:2px; background:url(../images/zcfi_07.gif) repeat-x top;}
.registration1 .homebraLi23{ width:auto; text-align:left;}
.registration1 .homebraLi23 a{ float:left;}
.login{ width:290px; margin-right:85px; color:#7c7c7c; line-height:24px; float:right;margin-top:14px; display:inline;}
.login a{ font-size:14px; font-weight:bold; line-height:42px;}
.login1{ width:273px; height:51px; padding:1px; overflow:hidden; border:1px solid #f5dca4; margin-bottom:12px;}
.login10{ background:#fef0d0; height:51px; overflow:hidden;}
.login1 a{ width:122px; height:30px; text-align:center; line-height:30px; margin:12px auto 0 auto; display:block; background:url(../images/index_42.jpg) no-repeat -9px -234px; color:#323232;}
.login1 a:hover{ background:url(../images/index_41.gif) no-repeat; text-decoration:none;color:#ff9318}
.zhuce{ width:888px; border:1px #d8d8d8 solid; margin:80px auto; padding:1px; overflow:hidden;}
.bzctit { height:40px; background:url(../images/zcfi_03.gif) repeat-x; line-height:40px; color:#404040; text-indent:15px; font-size:14px; font-weight:bold}
.bzccon .logp { line-height:55px; padding-left:110px; color:#cd2e46}
.bzccon1{ width:500px; float:left;border-right:1px dotted #d0d0d0; margin:8px 0;}
/*bob更改*/
.topSearch1 { cursor:pointer}
.topSearch1 ol { display:none;}
/*.topSearch1:hover ol { display:block;}*/
.topCity1 { cursor:pointer}
.topCity1 ul { display:none;}
.topCity1:hover ul { display:block;}
.pr_xl { cursor:pointer}
.pr_xl ul { display:none;}
.pr_xl:hover ul { display:block;}
.productPic {padding-bottom:35px;}
/*2012.01.13*/
.dealerLiMc:hover .br-gcs{ width:100%; display:block}
.c61f38 .pmtancu{ display:none; cursor:pointer}
.c61f38:hover .pmtancu{ display:block}
.fanzuoy { background:url(../images/product_19.gif) no-repeat; display:block; width:22px; height:22px;}
.fanzuoy:hover { background:url(../images/zuosanjiao.gif) no-repeat; }
.logincgjs { width:160px; margin:0 auto; height:55px; background:url(../images/zccg_03.gif) right center no-repeat; font-size:30px; color:#b31528; font-family:"微软雅黑"; line-height:55px; margin-top:65px;}
.logincgword{ width:482px; height:117px;background:url(../images/zccg_07.gif) top left no-repeat; font-size:14px; line-height:24px; text-align:center; margin:0 auto; padding-top:8px; color:#bb8301; clear:both;}
.logincgword font { font-size:14px; color:#b31528; font-weight:bold;}
.logincgbut { width:189px; height:40px; clear:both; margin:30px auto;}
.logincgbut a { line-height:38px; text-align:center;color:#FFF; background:url(../images/zccg_11.gif); display:block; font-size:14px; font-weight:bold}
.logincgbut a:hover { background:url(../images/zccg_14.gif) no-repeat; text-decoration:none}
.brandsDealer2 div.lianxifl { clear:both; float:left;font-size:12px; font-family:"宋体"; padding-left:30px; background:url(../images/sanjiaot.gif) 15px center no-repeat}
.brandsDealer2 div.lianxifl:hover {background:url(../images/sanjiaot.gif) 15px center no-repeat}
/***market***/
/*gx*/
.marketdesc{ width:100%; background:#fff; margin-top:0; padding-bottom:0; overflow:hidden;}
/*gx*/
.marketdesc .shopindex3{height:auto;padding-bottom:15px;}
.marketdesc .shopindex3:hover p{color:#c18112;}
.marketdesc .brandsProm1{float:none;}
.brandsProm1 h2 span{font-weight:normal;color:#4e4e4e;font-size:12px;}
.mapType .preferential{padding:0 6px}
.market{margin:0 auto;width:990px;}
.marketL{width:767px;float:left;margin-top:6px;}
.marketR{width:220px;float:right;overflow:hidden;margin-top:6px;}
.marketL .col1{padding:10px 10px 0;border:1px solid #d8d8d8;width:745px;margin-bottom:5px;}
.marketL .focusMarket{margin-top:5px;cursor:pointer;}
.marketL .focusMarket *{cursor:pointer;}
.marketL .focusMarket a{color:#d0233f;text-align:center;background:#000}
.marketL .focusMarket b{color:#fff;}
.marketL .focusMarket img{background:#000;}
.marketL .focusMarket span{display:none;float:left;}
.marketL .focusMarket .l label{display:block;text-align:center;}
.marketL .focusMarket .l{float:left;width:372px;height:278px;overflow:hidden;}
.marketL .focusMarket .l span{width:372px;height:278px;line-height:18px;padding-top:85px;}
.marketL .focusMarket .r label{display:block;text-align:center; text-decoration:none;}
.marketL .focusMarket .r label.label2{width:150px;text-align:left;margin:0 0 0 40px; text-decoration:none;}
.marketL .focusMarket .r{float:right;margin:0 0px 5px 5px;width:181px;height:136px;overflow:hidden;}
.marketL .focusMarket .r span{width:181px;height:136px;padding:25px 0 40px;line-height:18px;}
.marketL .focusMarket .r label b{ text-decoration:none;}
.marketL .focusMarket a{position:relative;}
.marketL .focusMarket span{position:absolute;left:0;top:0;}
.marketL .focusMarket i{font-style:normal;}
.marketR .col{margin-bottom:5px;}
.marketR .col .hd{height:34px; display:block; color:#fff; background:url(../images/market06.gif) no-repeat; text-decoration:none;line-height:34px;font-weight:bold;font-size:14px;padding:0 10px;border:1px solid #d8d8d8;border-bottom:0;}
.marketR .col .hd a{float:right;font-weight:normal;font-size:12px;color:#fff;}
.marketR .col .bd{line-height:20px;color:#595959;border:1px solid #d8d8d8;}
.marketR .col .bd .p0{padding:5px 10px 15px;}
.focusMarket2{overflow:hidden;margin-top:5px;width:745px;}
.focusMarket2 ul{display:block;float:left;clear:both;text-align:center;width:760px;}
.focusMarket2 li{width:118px;height:72px;zoom:1;margin-bottom:10px; margin-right:7px; float:left;}
.focusMarket2 li a{display:block;width:100%;border:1px solid #d9d9d9;height:70px;text-align:center;}
.focusMarket2 li a:hover{border:1px solid #d20d00;background:#fdf6e2;text-decoration:none;}
.focusMarket2 li img{margin-top:5px;}
.focusMarket2 li span{display:block;line-height:22px;}
/***通告***/
.tabNotice{border:1px solid #d5d5d5;border-top:0px;margin-bottom:5px;overflow:hidden;}
.tabNotice .hd li{width:116px;float:left;cursor:pointer;text-align:center;color:#737373;height:28px;line-height:28px;border-bottom:1px solid #d5d5d5;border-top:1px solid #d5d5d5;border-right:1px solid #d5d5d5;}
.tabNotice .hd ul{width:235px;overflow:hidden;}
.tabNotice .hd li.cur{color:#cc0000;border-top:2px solid #cc0000;border-bottom:0px;}
.tabNotice .item{display:none;padding:13px 10px;overflow:hidden;width:210px;overflow:hidden;float:left;clear:both;}
.tabNotice .item ul{display:block;clear:both;float:left;width:210px;}
.tabNotice .item li{height:23px;overflow:hidden;width:198px;float:left;line-height:23px;overflow:hidden;clear:both;}
.tabNotice .item a{color:#454545;overflow:hidden;width:198px;}
.tabNotice .item a:hover{color:#cf3241;}
.tabNotice .item a.gonggaoRed{color:#cf3241;font-weight:bold;}
/***marketFloor***/
.marketFloor{height:195px;overflow:hidden;}
.marketFloor .mF_taobao2010_wrap{float:left;width:466px;}
.marketFloor .marketFloorTrim1{float:right;width:290px;}
.marketFloor .l{float:left;width:256px;height:191px;overflow:hidden;border:2px solid #ffb918}
.marketFloor .l .item{position:relative;display:none;}
.marketFloor .l p{background:#ffb918 url(../images/market16.gif) no-repeat 8px 7px;width:150px;margin:0 auto;height:22px;line-height:22px;text-indent:25px;position:absolute;bottom:0;left:55px;color:#614400;}
.marketFloor .r{float:right;width:30px;}
.marketFloor .r a{background:url(../images/market17.gif) no-repeat 0 -20px;width:29px;height:20px;display:block;line-height:20px;text-align:center;color:#ad152c;margin:0 0 1px 0;}
.marketFloor .r a:hover{background:url(../images/market17.gif) no-repeat 0 0;width:29px;height:20px;color:#fff;}
.marketFloor .r li.on a{background:url(../images/market17.gif) no-repeat 0 0;width:29px;height:20px;color:#fff;}
/***Verification slider***/
.infiniteCarousel{width:178px;position:relative;height:106px;margin:0 auto;overflow}
.infiniteCarousel .wrapper{width:178px;height:106px;position:absolute;top:0;left:0;overflow:hidden;}
.infiniteCarousel .wrapper ul{width:9999px;position:absolute;top:0;margin:0;padding:0;}
.infiniteCarousel ul li{display:block;float:left;height:106px;width:178px;text-align:center;}
.infiniteCarousel .arrow{display:block;height:9px;width:6px;text-indent:-999px;position:absolute;top:50px;cursor:pointer;overflow:hidden;background-image:url(../images/homebrands_41.gif);background-repeat:no-repeat;}
.infiniteCarousel .forward{background-position:-59px 0;left:0;}
.infiniteCarousel .forward:hover{background-position: 0 0;}
.infiniteCarousel .back{background-position: -27px 0;right:0;}
.infiniteCarousel .back:hover{background-position:-86px 0;}
.infiniteCarousel li{position:relative;}
.infiniteCarousel2{width:750px;position:relative;height:500px;margin:0 auto;overflow}
.infiniteCarousel2 .wrapper{width:750px;height:500px;position:absolute;top:0;left:0;overflow:hidden;}
.infiniteCarousel2 .wrapper ul{width:9999px;position:absolute;top:0;margin:0;padding:0;}
.infiniteCarousel2 ul li{display:block;float:left;width:750px;height:500px;text-align:center;}
.infiniteCarousel2 .arrow{display:block;height:66px;width:30px;text-indent:-999px;position:absolute;top:150px;cursor:pointer;overflow:hidden;background-image:url(../images/brands_16.jpg);background-repeat:no-repeat;}
.infiniteCarousel2 .back{background-position: 0 0;right:0;}/*向后*/
.infiniteCarousel2 .back:hover{background-position:0 -75px;}
.infiniteCarousel2 .forward{background-position:-34px 0;left:0;}/*向前*/
.infiniteCarousel2 .forward:hover{background-position: -34px -75px;}
.infiniteCarousel2 li{position:relative;}
/***css lightbox***/
#jquery-overlay{position:absolute; top:0; left:0; z-index:90; width:100%; height:500px}
#jquery-lightbox{position:absolute; top:0; left:0; width:100%; z-index:100; text-align:center; line-height:0}
#jquery-lightbox a img{border:none}
#lightbox-container-image-box{position:relative; background-color:#fff; width:250px; height:250px; margin:0 auto}
#lightbox-container-image{padding:10px}
#lightbox-loading{position:absolute; top:40%; left:0%; height:25%; width:100%; text-align:center; line-height:0}
#lightbox-nav{position:absolute; top:0; left:0; height:100%; width:100%; z-index:10}
#lightbox-container-image-box >#lightbox-nav{left:0}
#lightbox-nav a{outline:none}
#lightbox-nav-btnPrev, #lightbox-nav-btnNext{width:49%; height:100%; zoom:1; display:block}
#lightbox-nav-btnPrev{left:0; float:left}
#lightbox-nav-btnNext{right:0; float:right}
#lightbox-container-image-data-box{font:10px Verdana,Helvetica,sans-serif; background-color:#fff; margin:0 auto; line-height:1.4em; overflow:auto; width:100%; padding:0 10px 0}
#lightbox-container-image-data{padding:0 10px; color:#666}
#lightbox-container-image-data #lightbox-image-details{width:70%; float:left; text-align:left}
#lightbox-image-details-caption{font-weight:bold}
#lightbox-image-details-currentNumber{display:block; clear:left; padding-bottom:1.0em}
#lightbox-secNav-btnClose{width:66px; float:right; padding-bottom:0.7em}
/** 修改 **/
.calenderFrom_company_promotion{width:85px; height:22px; padding-left:3px; margin-right:8px; line-height:22px; background:url(../images/brands_14_2.gif) no-repeat; display:block; float:left; margin-top:8px;}
.calenderFrom_company_promotion .inputDate{width:60px;border:0;height:20px;margin:0;font-size:11px;margin:1px 0 0 0px; line-height:20px; }
.indexflye { line-height:26px; font-size:12px;}
.indexflye span{ float:left; line-height:26px;}
.indexflye font { color:#c21f30;font-size:25px;padding-left:8px; float:left; font-weight:bold; padding-right:8px;}
.indexBannel{margin:10px auto; height:231px;}
.indexBannelL{width:228px; height:227px; float:left; border:1px solid #f5dca4; padding:1px;}
.indexBannelL ul{ background:#fef1d2;}
.indexBannelL ul li{float:left; background:#fef1d2; height:45px; border-bottom:1px solid #f9c86b; width:228px; line-height:20px; color:#282828; overflow:hidden; cursor:pointer}
.indexBannelL ul li span { display:block; float:left;}
.indexBannelL ul li span.tuel1{line-height:45px; margin-top:15px; width:17px; margin-left:5px;}
.indexBannelL ul li span.tuel2{line-height:45px; margin-left:5px; width:90px;}
.indexBannelL ul li span.tuel3{line-height:45px; color:#e4bf67; margin-left:5px; width:95px;}
.indexBannelL ul li span.tuel4{ clear:both}
.indexBannelL ul li a{ text-decoration:none; display:block; height:41px; width:224px; overflow:hidden}
.indexBannelL ul li div.cur{ background:#fff; border:1px solid #f9c86b; height:43px;}
.indexBannelR{height:232px; margin-left:4px; float:left;}
.indexBannelL ul li a img{ margin-top:15px;*margin-top:-1px; margin-left:5px;}
/***searchbar part***/
.search{margin-bottom:10px;}
.searchBar{z-index:1000;}
.searchBarL{background:url(../images/home/home7.jpg) no-repeat 0 0;width:5px;overflow:hidden;height:71px;position:relative;float:left;}
.searchBarM{background:url(../images/home/home8.jpg) repeat-x 0 0;width:982px;height:71px;position:relative;float:left;}
.searchBarR{background:url(../images/home/home11.jpg) no-repeat 0 0;width:5px;overflow:hidden;height:71px;position:relative;float:left;}
.searchBarM .tbUl{width:225px;position:absolute;left:0;top:13px;z-index:10001;}
.searchBarM .tbUl li{float:left;background:url(../images/home/home54.jpg) no-repeat right 3px;width:69px;margin-right:5px;}
.searchBarM .tbUl li a{font-size:16px;color:#fff;font-weight:bold;width:63px;height:67px;text-align:center;padding-top:13px;overflow:hidden;display:block;}
.searchBarM .tbUl li.on a{background:url(../images/home/home55.jpg) no-repeat 0 0;color:#bd0717;}
.searchBarM .tbUl li a:hover{text-decoration:none;}
.searchBarML{background:url(../images/home/home5.jpg) no-repeat 0 0;width:491px;overflow:hidden;height:40px;float:left;display:inline;margin:22px 0 0 245px;}
.searchBarMR{float:right;width:400px;}
#searchBox{width:343px;height:30px;line-height:30px;overflow:hidden;background:transparent;border:0px;display:inline;float:left;margin:1px 0 0 38px;color:#828282;font-size:14px;}
#searchBtn{width:128px;height:30px;line-height:30px;overflow:hidden;float:right;margin:5px 23px 0 0;background:transparent;border:none;cursor:pointer;}
.searchBarMR{width:231px;height:64px;float:left;display:inline;margin:7px 0 0 15px; position:relative; background:url(../images/home/home12.jpg) no-repeat;}
.searchBarMR a{color:#8d600b;margin-right:15px;display:inline;}
.searchCateList .inBrand{width:980px;overflow:hidden;}
.searchCateList .itemTab{display:none; width:742px;}
.searchCateList .preferential0{width:1000px; float:left;overflow:hidden;}
.searchCateList .preferential{ width:174px; height:315px; border-right:1px dotted #ccc; float:left; padding:0 11px 0 0;margin-right:14px; display:inline;}
.searchCateList .preferential:hover{background:#fff8eb}
.searchCateList .brefimg{ text-align:center; font-size:14px; font-weight:bold; text-align:center; line-height:36px;}
.searchCateList .brefimg a{ color:#353535;}
.searchCateList .brefList li{ width:162px; padding-left:12px; margin-top:5px; background:url(images/index_110.gif) no-repeat 3px 6px; line-height:18px;}
.searchCateList .brefList li:hover {background:url(images/index_110.gif) no-repeat 3px 6px #f7f7f7;}
.searchCateList .brefList li a:hover ,.brefList li .brefLista{color:#b70d01; text-decoration:none;}
/***searchCate part***/
.searchCate{width:990px;border:1px solid #fba732;border-top:0px; position: relative; background:url(../images/home/home36.jpg) repeat-x 0 0;padding-top:25px; height:390px;}
.searchCateArrow{overflow:hidden;height:12px;width:20px;position:absolute;top:-2px;left:35px;background:url(../images/home/home35.jpg) no-repeat 0 0;}
.searchCateb1{overflow:hidden;height:4px;width:4px;position:absolute;bottom:-1px;left:-1px;background:url(../images/home/home34.jpg) no-repeat 0 0;}
.searchCateb2{overflow:hidden;height:4px;width:4px;position:absolute;bottom:-1px;right:-1px;background:url(../images/home/home33.jpg) no-repeat 0 0;}
.searchCateList dl.dlBlock{clear:both;display:block;margin-bottom:12px;float:left;clear:both;width:980px;overflow:hidden;}
.searchCateList dt.dtBlock{background:url(../images/home/home15.jpg) no-repeat 0 0;width:67px;height:21px;overflow:hidden;line-height:21px;text-indent:5px;color:#fff;font-weight:bold;float:left;display:inline;margin-right:16px;}
.searchCateList dd.ddBlock{float:left;width:890px;overflow:hidden;}
.searchCateList dd .a1{color:#595959;line-height:21px;margin-right:15px;display:inline;}
.searchCateList ul li{ width:285px; float:left; height:80px; padding-left:86px; margin-bottom:14px; background-repeat:no-repeat;}
.searchCateList ul li .searchitem{ height:100%; margin-left:27px;}
.searchCateList ul li .searchitem a{ display: inline-block; margin-top:10px; margin-right:10px;}
.searchCateList{width:745px;padding:0px 0 10px 10px;overflow:hidden; float:left;}
.hybridSearch{ background:url(../images/home/home13.jpg) no-repeat; width:228px; height:421px; z-index:1000; position:absolute; left:755px; top:0px;}
.hybridSearch .input{position: absolute; left:32px; background-color:transparent; border:0; height:24px; line-height:24px; width:164px; z-index:1000;}
.hybridSearch .input0{top:151px;}
.hybridSearch .input1{top:199px;}
.hybridSearch .input2{top:250px;}
.hybridSearch .input3{top:300px;}
.hybridSearch .hybridSearchBtn{ position:absolute; top:340px; left:32px; border:0; background:transparent; width:166px; height:37px; cursor:pointer;}
.searchStyle li{display:inline;background:url(../images/home/home9.jpg) no-repeat right 1px;padding-right:8px;margin-right:5px;}
.searchStyle li.cur{display:inline;background:url(../images/home/home10.jpg) no-repeat right 1px;}
.searchStyle li a{line-height:21px;margin-right:5px;display:inline;}
/***searchBrand part***/
.searchBrand{position:relative;z-index:999;overflow:hidden;width:890px;}
.searchBrand .hd{width:100%;display:block;float:left;clear:both;position:relative;z-index:1000;bottom:-1px;}
.searchBrand .hd ul{}
.searchBrand .hd li{background:#ededed;margin-right:2px;float:left;width:28px;height:20px;text-align:center;line-height:18px;font-weight:bold;font-size:12px;color:#4a4a4a;font-family:Verdana;border:1px solid #dcdcdc;cursor:pointer;}
.searchBrand .hd li b{width:28px;height:20px;overflow:hidden;float:left;clear:both;display:block;border-top:1px solid #ededed;}
.searchBrand .hd li.on{background:#fff;border-bottom:1px solid #fff}
.searchBrand .hd li.on b{border-top:1px solid #f88f1f;}
.searchBrand .hd li.liTrim{margin-right:0;}
.searchBrand .bd{width:888px;display:block;float:left;clear:both;position:relative;z-index:999;overflow:hidden;}
.searchBrand .bd{border:1px solid #dcdcdc;background:url(../../images/home/home37.jpg) repeat-x 0 0;height:89px;}
.searchBrand .bd a{display:block;text-align:center;}
.searchBrand .bd li{width:115px;float:left;display:inline;}
.searchBrand .bd .item{width:820px;overflow:hidden;float:left;clear:both;height:55px;margin-top:15px;margin-left:25px;display:inline; display:none}
.searchCateInner2{width:1000px;float:left;height:auto;clear:both;}
.hotPro{width:765px;float:left;height:auto;clear:both;overflow:hidden;}
.hotProInner{width:780px;}
.hotProInner img{margin-right:9px;}
.searchCateInner{width:888px;float:left;clear:both;border:1px solid #d5d5d5;overflow:hidden;}
.searchCateInner dl{width:157px;float:left;}
.searchCateInner dl dt{width:100%;display:block;background:#eaeaea;height:35px;line-height:35px;text-align:center;color:#595959;font-weight:bold;border-right:1px solid #d5d5d5;}
.searchCateInner dl dd{border-right:1px dotted #d5d5d5;display:block;height:auto;height:185px;padding-top:5px;cursor:default}
.searchCateInner dl dd a{display:block;float:left;width:79px;line-height:20px;height:20px;overflow:hidden;padding:0 0 0 10px;}
.searchCateInner .red{color:#cf3241;font-weight:bold;}
.searchCateInner dl dd a{color:#8f8f8f;}
.searchCateInner dl dd a:hover{color:#cf3241;text-decoration:underline;}
.searchCateInner dl dd a strong{font-size:11px;}
.searchCateInner dl .ddTrim1{background:#fbf9f1}
.searchCateInner dl .dtTrim1{background:#f1efe8;}
.searchCateInner .dl1{width:179px;}
.searchCateInner .dl2{width:179px;}
.searchCateInner .dl3{width:179px;}
.searchCateInner .dl4{width:179px;}
.searchCateInner .dl5{width:179px;}
.searchCateInner .dt1{width:178px;}
.searchCateInner .dt2{width:178px;}
.searchCateInner .dt3{width:178px;}
.searchCateInner .dt4{width:178px;}
.searchCateInner .dt5{width:178px;}
.searchCateInner .dd1{width:178px;}
.searchCateInner .dd2{width:178px;}
.searchCateInner .dd3{width:178px;}
.searchCateInner .dd4{width:178px;}
.searchCateInner .dd5{width:178px;}
/***searchCon part***/
.searchCon{border:1px solid #fbb334;-webkit-border-radius: 3px;-moz-border-radius: 3px;margin-bottom:15px;background:#fff;width:955px;padding:7px 10px;height:20px;}
.searchCon ul{float:right;width:850px;display:inline}
.searchCon b{float:left;width:80px;display:inline}
.searchCon li{background: url(../images/home/home42.jpg) no-repeat 0 0;float: left;height: 19px;line-height: 19px;margin-right: 15px;padding: 0 0 2px 5px;}
.searchCon a{color: #E90000;display: block;float:left;}
.searchCon em{background: url(../images/home/home42.jpg) no-repeat right 0;cursor: pointer;display: block;float: left;height: 19px;width: 22px;}
/***null infomation***/
.coSearch{margin-top:0;}
.nullInfo{width:100%; margin:20px 0px 0px 0px;background:url(../images/ni2.gif) no-repeat right bottom; height:500px;}
.nullText{width:300px; float:left; margin:60px 0px 0px 20px;}
.nullText .nullTextTitle{ background:url(../images/contact_head.gif) no-repeat; color:#fff; font-weight:bold; height:25px; line-height:25px; width:300px; float:left;}
.nullText table.c{width:100%; float:left; border:1px solid #FF7300; border-top:none;}
.nullText table.c td{ height:35px; line-height:35px; text-align:center;;}
.nullText table.c td span.i{width:260px; background:none repeat scroll 0 0 #FFFEBF; padding:5px; border:1px solid #FFC600; color:#333333; font-weight:bold;}
.nullError{background:url(../images/ni1.gif) no-repeat 20px center;padding-left:70px;width:540px; height:80px; float:left; margin-top:80px;}
.nullError .p1{color:#5f5f5f;font-size:16px;font-weight:bold;margin-bottom:5px;}
.nullError .p1 a{color:#b5172f}
.nullError .p2,.nullBrand .p3{color:#b5172f;line-height:20px;}
.nullError .p3 a{color:#b5172f;}
.nullBrand2{color:#777;padding:15px;border:1px solid #d8d8d8;}
.nullBrand2 .col{margin-bottom:50px;}
.nullBrand2 .col .l{float:left;width:150px;}
.nullBrand2 .col .r{float:right;width:800px;}
.nullBrand2 .col .r .d1{margin-bottom:4px;}
.nullBrand2Shop{}
.nullBrand2Shop .col .l{float:left;width:225px;}
.nullBrand2Shop .col .r{float:right;width:725px;}
.nullBrand2 .col2 .d1{border-bottom:1px solid #af162d;padding-bottom:10px;margin-bottom:30px;}
.nullBrand2 .col2 .d1 label{color:#af162d;font-size:14px;font-weight:bold;}
.nullBrand2 .col2 .d1 .pr_xl{background: url("../images/product_29.gif") no-repeat 0 0;display: inline-block;*display:inline;zoom:1;height: 20px;line-height: 20px;margin: 9px 8px 0 0;position: relative;text-indent: 10px;width: 91px;z-index: 1111;}
.nullBrand2 .col2 .d1 .pr_xl ul{position:absolute; width:89px; left:0; top:19px; background:#f5f5f5; overflow:hidden; border:1px solid #a9a9a9; border-top:none;}
.nullBrand2 .col2 .d2{width:958px;overflow:hidden;}
.nullBrand2 .col2 .d2 .l{float:left;width:80px;}
.nullBrand2 .col2 .d2 .r{float:right;width:210px;}
.nullBrand2 .col2 .d2 ul{width:990px;}
.nullBrand2 .col2 .d2 li{width:300px;float:left;margin:0 30px 30px 0;}
.nullBrand2 .col2 .d2 .p1{margin-bottom:8px;}
.nullBrand2 .col2 .d2 .p1 a{font-weight:bold;color:#d0233f;font-size:14px;}
.nullBrand2 .col2 .d2 .p2{background: url("../images/index_74.gif") no-repeat 0 center;padding-left:15px;margin-bottom:4px;}
.nullBrand2 .col2 .d2 .p3{background: url("../images/index_76.gif") no-repeat 0 center;padding-left:15px;margin-bottom:4px;}
.nullBrand3 .products{height:auto;margin-bottom:35px;}
.nullBrand3 .products .hd{width:100%;}
.nullBrand3 .products1 li{width:114px;}
.nullBrand2Shop .col2 .d2 li{width:110px;margin:0 11px 30px 0;}
.nullBrand2Shop .col2 .d2 li img{border:1px solid #ccc;}
.nullBrand2Shop .col2 .d2 .l{width:100%;}
.nullBrand2Shop .col2 .d2 .r{width:100%;}
.nullBrand3 .preferential0{width:1000px;overflow:hidden;}
.nullBrand3 .inBrand{overflow:hidden;width:990px;}
.nullBrand3 .preferential{width:183px;}
.nullBrand3Shop{margin-bottom:30px;}
/*oms_autocomplate*/
.auto_E15A00{color:#E15A00;}
.auto_BDBDBD{color:#BDBDBD;}
.auto_BD182D{color:#BD182D;}
.auto_FFC445{color:#FFC445;}
.auto_1B899D{color:#1B899D;}
.auto_item_right{width:110px;position:absolute; top:2px;right:0;}
/*oms_autocomplate end*/ | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/web/css/index.css | CSS | oos | 83,480 |
/*
Stylesheet for Tigra Calendar v5.0
Product is Public Domain (Free for any kind of applicaiton, customization and derivative works are allowed)
URL: http://www.softcomplex.com/products/tigra_calendar/
- all image paths are relative to path of stylesheet
- the styles below can be moved into the document or in existing stylesheet
*/
/* input box in default state */
.tcalInput {
background: url('../images/cal.gif') 100% 50% no-repeat;
padding-right: 20px;
cursor: pointer;
}
/* additional properties for input boxe in activated state, above still applies unless in conflict */
.tcalActive {
background-image: url('../images/no_cal.gif');
}
/* container of calendar's pop-up */
#tcal {
position: absolute;
visibility: hidden;
z-index: 100;
width: 170px;
background-color: white;
margin-top: 2px;
padding: 0 2px 2px 2px;
border: 1px solid silver;
-moz-box-shadow: 3px 3px 4px silver;
-webkit-box-shadow: 3px 3px 4px silver;
box-shadow: 3px 3px 4px silver;
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='silver')";
filter: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='silver');
}
/* table containing navigation and current month */
#tcalControls {
border-collapse: collapse;
border: 0;
width: 100%;
}
#tcalControls td {
border-collapse: collapse;
border: 0;
padding: 0;
width: 16px;
background-position: 50% 50%;
background-repeat: no-repeat;
cursor: pointer;
}
#tcalControls th {
border-collapse: collapse;
border: 0;
padding: 0;
line-height: 25px;
font-size: 10px;
text-align: center;
font-family: Tahoma, Geneva, sans-serif;
font-weight: bold;
white-space: nowrap;
}
#tcalPrevYear { background-image: url('../images/prev_year.gif'); }
#tcalPrevMonth { background-image: url('../images/prev_mon.gif'); }
#tcalNextMonth { background-image: url('../images/next_mon.gif'); }
#tcalNextYear { background-image: url('../images/next_year.gif'); }
/* table containing week days header and calendar grid */
#tcalGrid {
border-collapse: collapse;
border: 1px solid silver;
width: 100%;
}
#tcalGrid th {
border: 1px solid silver;
border-collapse: collapse;
padding: 3px 0;
text-align: center;
font-family: Tahoma, Geneva, sans-serif;
font-size: 10px;
background-color: gray;
color: white;
}
#tcalGrid td {
border: 0;
border-collapse: collapse;
padding: 2px 0;
text-align: center;
font-family: Tahoma, Geneva, sans-serif;
width: 14%;
font-size: 11px;
cursor: pointer;
}
#tcalGrid td.tcalOtherMonth { color: silver; }
#tcalGrid td.tcalWeekend { background-color: #ACD6F5; }
#tcalGrid td.tcalToday { border: 1px solid red; }
#tcalGrid td.tcalSelected { background-color: #FFB3BE; }
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/web/css/tcal.css | CSS | oos | 2,814 |
.countLabel
{
color:Gray;
font-style:italic;
}
.storageBox
{
display:none;
}
.copiedOption
{
background-color:Yellow;
} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/listbox/styles.css | CSS | oos | 156 |
/* Artfully masterminded by ZURB */
body {
position: relative;
}
#joyRideTipContent { display: none; }
/* Default styles for the container */
.joyride-tip-guide {
position: absolute;
background: #000;
background: rgba(0,0,0,0.8);
padding: 10px 10px 10px 15px;
color: #fff;
width: 300px;
z-index:99999999;
font-family: "HelveticaNeue", "Helvetica Neue", "Helvetica", Helvetica, Arial, Lucida, sans-serif;
font-weight: normal;
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}
/* Add a little css triangle pip, older browser just miss out on the fanciness of it */
.joyride-tip-guide span.joyride-nub {
display: block;
position: absolute;
left: 22px;
width: 0;
height: 0;
border: solid 14px;
border: solid 14px;
}
.joyride-tip-guide span.joyride-nub.top {
border-top-color: transparent !important;
border-left-color: transparent !important;
border-right-color: transparent !important;
border-bottom-color: #000;
border-bottom-color: rgba(0,0,0,0.8);
top: -28px;
bottom: none;
}
.joyride-tip-guide span.joyride-nub.bottom {
border-bottom-color: transparent !important;
border-left-color: transparent !important;
border-right-color: transparent !important;
border-top-color: #000;
border-top-color: rgba(0,0,0,0.8) !important;
bottom: -28px;
bottom: none;
}
/* Typography */
.joyride-tip-guide h1,.joyride-tip-guide h2,.joyride-tip-guide h3,.joyride-tip-guide h4,.joyride-tip-guide h5,.joyride-tip-guide h6 {
line-height: 1.25;
margin: 0;
font-weight: bold;
color: #fff;
}
.joyride-tip-guide h1 { font-size: 30px; }
.joyride-tip-guide h2 { font-size: 26px; }
.joyride-tip-guide h3 { font-size: 22px; }
.joyride-tip-guide h4 { font-size: 18px; }
.joyride-tip-guide h5 { font-size: 16px; }
.joyride-tip-guide h6 { font-size: 14px; }
.joyride-tip-guide p {
margin: 0 0 18px 0;
font-size: 14px;
line-height: 18px;
}
.joyride-tip-guide a {
color: rgb(255,255,255);
text-decoration: none;
border-bottom: dotted 1px rgba(255,255,255,0.6);
}
.joyride-tip-guide a:hover {
color: rgba(255,255,255,0.8);
border-bottom: none;
}
/* Button Style */
.joyride-tip-guide .joyride-next-tip:after {
clear: both;
}
.joyride-tip-guide .joyride-next-tip {
width: auto;
padding: 6px 18px 4px;
font-size: 13px;
text-decoration: none;
color: rgb(255,255,255);
float: left;
margin: 0 6px 8px 0px;
border: solid 1px rgb(0,60,180);
background: rgb(0,99,255);
background: -moz-linear-gradient(top, rgb(0,99,255) 0%, rgb(0,85,214) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(0,99,255)), color-stop(100%,rgb(0,85,214)));
background: -webkit-linear-gradient(top, rgb(0,99,255) 0%,rgb(0,85,214) 100%);
background: -o-linear-gradient(top, rgb(0,99,255) 0%,rgb(0,85,214) 100%);
background: -ms-linear-gradient(top, rgb(0,99,255) 0%,rgb(0,85,214) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#0063ff', endColorstr='#0055d6',GradientType=0 );
background: linear-gradient(top, rgb(0,99,255) 0%,rgb(0,85,214) 100%);
text-shadow: 0 -1px 0 rgba(0,0,0,0.5);
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
-webkit-box-shadow: 0px 1px 0px rgba(255,255,255,0.3) inset;
-moz-box-shadow: 0px 1px 0px rgba(255,255,255,0.3) inset;
box-shadow: 0px 1px 0px rgba(255,255,255,0.3) inset;
}
.joyride-next-tip:hover {
color: rgb(255,255,255) !important;
border: solid 1px rgb(0,60,180) !important;
background: rgb(43,128,255);
background: -moz-linear-gradient(top, rgb(43,128,255) 0%, rgb(29,102,211) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgb(43,128,255)), color-stop(100%,rgb(29,102,211)));
background: -webkit-linear-gradient(top, rgb(43,128,255) 0%,rgb(29,102,211) 100%);
background: -o-linear-gradient(top, rgb(43,128,255) 0%,rgb(29,102,211) 100%);
background: -ms-linear-gradient(top, rgb(43,128,255) 0%,rgb(29,102,211) 100%);
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#2b80ff', endColorstr='#1d66d3',GradientType=0 );
background: linear-gradient(top, rgb(43,128,255) 0%,rgb(29,102,211) 100%);
}
.joyride-timer-indicator-wrap {
width: 50px;
height: 3px;
border: solid 1px rgba(255,255,255,0.1);
position: absolute;
right: 17px;
bottom: 16px;
}
.joyride-timer-indicator {
display: block;
width: 0;
height: inherit;
background: rgba(255,255,255,0.25);
}
.joyride-close-tip {
position: absolute;
right: 10px;
top: 10px;
color: rgba(255,255,255,0.4) !important;
text-decoration: none;
font-family: Verdana, sans-serif;
font-size: 10px;
font-weight: bold;
border-bottom: none !important;
}
.joyride-close-tip:hover {
color: rgba(255,255,255,0.9) !important;
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/joyride/joyride-1.0.2.css | CSS | oos | 4,830 |
/*
* My97 DatePicker 4.7 Skin:whyGreen
*/
.WdateDiv{
width:180px;
background-color:#fff;
border:#C5E1E4 1px solid;
padding:2px;
}
.WdateDiv2{
width:360px;
}
.WdateDiv *{font-size:9pt;}
.WdateDiv .NavImg a{
cursor:pointer;
display:block;
width:16px;
height:16px;
margin-top:1px;
}
.WdateDiv .NavImgll a{
float:left;
background:url(img.gif) no-repeat;
}
.WdateDiv .NavImgl a{
float:left;
background:url(img.gif) no-repeat -16px 0px;
}
.WdateDiv .NavImgr a{
float:right;
background:url(img.gif) no-repeat -32px 0px;
}
.WdateDiv .NavImgrr a{
float:right;
background:url(img.gif) no-repeat -48px 0px;
}
.WdateDiv #dpTitle{
height:24px;
padding:1px;
border:#c5d9e8 1px solid;
background:url(bg.jpg);
margin-bottom:2px;
}
.WdateDiv .yminput{
margin-top:2px;
text-align:center;
border:0px;
height:20px;
width:50px;
color:#034c50;
background-color:transparent;
cursor:pointer;
}
.WdateDiv .yminputfocus{
margin-top:2px;
text-align:center;
border:#939393 1px solid;
font-weight:bold;
color:#034c50;
height:20px;
width:50px;
}
.WdateDiv .menuSel{
z-index:1;
position:absolute;
background-color:#FFFFFF;
border:#A3C6C8 1px solid;
display:none;
}
.WdateDiv .menu{
cursor:pointer;
background-color:#fff;
color:#11777C;
}
.WdateDiv .menuOn{
cursor:pointer;
background-color:#BEEBEE;
}
.WdateDiv .invalidMenu{
color:#aaa;
}
.WdateDiv .YMenu{
margin-top:20px;
}
.WdateDiv .MMenu{
margin-top:20px;
*width:62px;
}
.WdateDiv .hhMenu{
margin-top:-90px;
margin-left:26px;
}
.WdateDiv .mmMenu{
margin-top:-46px;
margin-left:26px;
}
.WdateDiv .ssMenu{
margin-top:-24px;
margin-left:26px;
}
.WdateDiv .Wweek {
text-align:center;
background:#DAF3F5;
border-right:#BDEBEE 1px solid;
}
.WdateDiv .MTitle{
color:#13777e;
background-color:#bdebee;
}
.WdateDiv .WdayTable2{
border-collapse:collapse;
border:#BEE9F0 1px solid;
}
.WdateDiv .WdayTable2 table{
border:0;
}
.WdateDiv .WdayTable{
line-height:20px;
color:#13777e;
background-color:#edfbfb;
border:#BEE9F0 1px solid;
}
.WdateDiv .WdayTable td{
text-align:center;
}
.WdateDiv .Wday{
cursor:pointer;
}
.WdateDiv .WdayOn{
cursor:pointer;
background-color:#74d2d9 ;
}
.WdateDiv .Wwday{
cursor:pointer;
color:#ab1e1e;
}
.WdateDiv .WwdayOn{
cursor:pointer;
background-color:#74d2d9;
}
.WdateDiv .Wtoday{
cursor:pointer;
color:blue;
}
.WdateDiv .Wselday{
background-color:#A7E2E7;
}
.WdateDiv .WspecialDay{
background-color:#66F4DF;
}
.WdateDiv .WotherDay{
cursor:pointer;
color:#0099CC;
}
.WdateDiv .WotherDayOn{
cursor:pointer;
background-color:#C0EBEF;
}
.WdateDiv .WinvalidDay{
color:#aaa;
}
.WdateDiv #dpTime{
float:left;
margin-top:3px;
margin-right:30px;
}
.WdateDiv #dpTime #dpTimeStr{
margin-left:1px;
color:#497F7F;
}
.WdateDiv #dpTime input{
height:20px;
width:18px;
text-align:center;
color:#333;
border:#61CAD0 1px solid;
}
.WdateDiv #dpTime .tB{
border-right:0px;
}
.WdateDiv #dpTime .tE{
border-left:0;
border-right:0;
}
.WdateDiv #dpTime .tm{
width:7px;
border-left:0;
border-right:0;
}
.WdateDiv #dpTime #dpTimeUp{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -32px -16px;
}
.WdateDiv #dpTime #dpTimeDown{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -48px -16px;
}
.WdateDiv #dpQS {
float:left;
margin-right:3px;
margin-top:3px;
background:url(img.gif) no-repeat 0px -16px;
width:20px;
height:20px;
cursor:pointer;
}
.WdateDiv #dpControl {
text-align:right;
margin-top:3px;
}
.WdateDiv .dpButton{
height:20px;
width:45px;
margin-top:2px;
border:#38B1B9 1px solid;
background-color:#CFEBEE;
color:#08575B;
} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/My97DatePicker/skin/whyGreen/datepicker.css | CSS | oos | 3,933 |
/*
* My97 DatePicker 4.7
*/
.WdateDiv{
width:180px;
background-color:#FFFFFF;
border:#bbb 1px solid;
padding:2px;
}
.WdateDiv2{
width:360px;
}
.WdateDiv *{font-size:9pt;}
.WdateDiv .NavImg a{
display:block;
cursor:pointer;
height:16px;
width:16px;
}
.WdateDiv .NavImgll a{
float:left;
background:transparent url(img.gif) no-repeat scroll 0 0;
}
.WdateDiv .NavImgl a{
float:left;
background:transparent url(img.gif) no-repeat scroll -16px 0;
}
.WdateDiv .NavImgr a{
float:right;
background:transparent url(img.gif) no-repeat scroll -32px 0;
}
.WdateDiv .NavImgrr a{
float:right;
background:transparent url(img.gif) no-repeat scroll -48px 0;
}
.WdateDiv #dpTitle{
height:24px;
margin-bottom:2px;
padding:1px;
}
.WdateDiv .yminput{
margin-top:2px;
text-align:center;
height:20px;
border:0px;
width:50px;
cursor:pointer;
}
.WdateDiv .yminputfocus{
margin-top:2px;
text-align:center;
font-weight:bold;
height:20px;
color:blue;
border:#ccc 1px solid;
width:50px;
}
.WdateDiv .menuSel{
z-index:1;
position:absolute;
background-color:#FFFFFF;
border:#ccc 1px solid;
display:none;
}
.WdateDiv .menu{
cursor:pointer;
background-color:#fff;
}
.WdateDiv .menuOn{
cursor:pointer;
background-color:#BEEBEE;
}
.WdateDiv .invalidMenu{
color:#aaa;
}
.WdateDiv .YMenu{
margin-top:20px;
}
.WdateDiv .MMenu{
margin-top:20px;
*width:62px;
}
.WdateDiv .hhMenu{
margin-top:-90px;
margin-left:26px;
}
.WdateDiv .mmMenu{
margin-top:-46px;
margin-left:26px;
}
.WdateDiv .ssMenu{
margin-top:-24px;
margin-left:26px;
}
.WdateDiv .Wweek {
text-align:center;
background:#DAF3F5;
border-right:#BDEBEE 1px solid;
}
.WdateDiv .MTitle{
background-color:#BDEBEE;
}
.WdateDiv .WdayTable2{
border-collapse:collapse;
border:#c5d9e8 1px solid;
}
.WdateDiv .WdayTable2 table{
border:0;
}
.WdateDiv .WdayTable{
line-height:20px;
border:#c5d9e8 1px solid;
}
.WdateDiv .WdayTable td{
text-align:center;
}
.WdateDiv .Wday{
cursor:pointer;
}
.WdateDiv .WdayOn{
cursor:pointer;
background-color:#C0EBEF;
}
.WdateDiv .Wwday{
cursor:pointer;
color:#FF2F2F;
}
.WdateDiv .WwdayOn{
cursor:pointer;
color:#000;
background-color:#C0EBEF;
}
.WdateDiv .Wtoday{
cursor:pointer;
color:blue;
}
.WdateDiv .Wselday{
background-color:#A9E4E9;
}
.WdateDiv .WspecialDay{
background-color:#66F4DF;
}
.WdateDiv .WotherDay{
cursor:pointer;
color:#6A6AFF;
}
.WdateDiv .WotherDayOn{
cursor:pointer;
background-color:#C0EBEF;
}
.WdateDiv .WinvalidDay{
color:#aaa;
}
.WdateDiv #dpTime{
float:left;
margin-top:3px;
margin-right:30px;
}
.WdateDiv #dpTime #dpTimeStr{
margin-left:1px;
}
.WdateDiv #dpTime input{
width:18px;
height:20px;
text-align:center;
border:#ccc 1px solid;
}
.WdateDiv #dpTime .tB{
border-right:0px;
}
.WdateDiv #dpTime .tE{
border-left:0;
border-right:0;
}
.WdateDiv #dpTime .tm{
width:7px;
border-left:0;
border-right:0;
}
.WdateDiv #dpTime #dpTimeUp{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -32px -16px;
}
.WdateDiv #dpTime #dpTimeDown{
height:10px;
width:13px;
border:0px;
background:url(img.gif) no-repeat -48px -16px;
}
.WdateDiv #dpQS {
float:left;
margin-right:3px;
margin-top:3px;
background:url(img.gif) no-repeat 0px -16px;
width:20px;
height:20px;
cursor:pointer;
}
.WdateDiv #dpControl {
text-align:right;
}
.WdateDiv .dpButton{
height:20px;
width:45px;
border:#ccc 1px solid;
margin-top:2px;
margin-right:1px;
} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/My97DatePicker/skin/default/datepicker.css | CSS | oos | 3,726 |
.Wdate{
border:#999 1px solid;
height:20px;
background:#fff url(datePicker.gif) no-repeat right;
}
.WdateFmtErr{
font-weight:bold;
color:red;
} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/My97DatePicker/skin/WdatePicker.css | CSS | oos | 158 |
var $lang={
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u8303\u56F4,\u9700\u8981\u64A4\u9500\u5417?",
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],
aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"],
aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],
clearStr: "\u6E05\u7A7A",
todayStr: "\u4ECA\u5929",
okStr: "\u786E\u5B9A",
updateStr: "\u786E\u5B9A",
timeStr: "\u65F6\u95F4",
quickStr: "\u5FEB\u901F\u9009\u62E9",
err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u4E8E\u6700\u5927\u65E5\u671F!'
} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/My97DatePicker/lang/zh-cn.js | JavaScript | oos | 1,089 |
var $lang={
errAlertMsg: "Invalid date or the date out of range,redo or not?",
aWeekStr: ["wk", "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
aLongWeekStr:["wk","Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],
aMonStr: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
aLongMonStr: ["January","February","March","April","May","June","July","August","September","October","November","December"],
clearStr: "Clear",
todayStr: "Today",
okStr: "OK",
updateStr: "OK",
timeStr: "Time",
quickStr: "Quick Selection",
err_1: 'MinDate Cannot be bigger than MaxDate!'
} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/My97DatePicker/lang/en.js | JavaScript | oos | 644 |
var $lang={
errAlertMsg: "\u4E0D\u5408\u6CD5\u7684\u65E5\u671F\u683C\u5F0F\u6216\u8005\u65E5\u671F\u8D85\u51FA\u9650\u5B9A\u7BC4\u570D,\u9700\u8981\u64A4\u92B7\u55CE?",
aWeekStr: ["\u5468","\u65E5","\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D"],
aLongWeekStr:["\u5468","\u661F\u671F\u65E5","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"],
aMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00","\u5341\u4E8C"],
aLongMonStr: ["\u4E00\u6708","\u4E8C\u6708","\u4E09\u6708","\u56DB\u6708","\u4E94\u6708","\u516D\u6708","\u4E03\u6708","\u516B\u6708","\u4E5D\u6708","\u5341\u6708","\u5341\u4E00\u6708","\u5341\u4E8C\u6708"],
clearStr: "\u6E05\u7A7A",
todayStr: "\u4ECA\u5929",
okStr: "\u78BA\u5B9A",
updateStr: "\u78BA\u5B9A",
timeStr: "\u6642\u9593",
quickStr: "\u5FEB\u901F\u9078\u64C7",
err_1: '\u6700\u5C0F\u65E5\u671F\u4E0D\u80FD\u5927\u65BC\u6700\u5927\u65E5\u671F!'
} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/My97DatePicker/lang/zh-tw.js | JavaScript | oos | 1,088 |
//可以自动关闭的提示
function jsAutoMsg(msgtitle, url) {
$("#btnSave").attr("disabled", "disabled");
var str = "<div id=\"jsAutoMsg\" class=\"pcent correct\">" + msgtitle + "</div>";
$("body").append(str);
$("#jsAutoMsg").show();
//3秒后清除提示
setTimeout(function() {
$("#jsAutoMsg").remove();
if (url == "back") {
history.back(-1);
} else if (url != "") {
location.href = url;
}
}, 3000);
}
//遮罩提示窗口
function jsLayMsg(w, h, options) {
$("#jsLayMsg").remove();
var cssname = "";
//提示窗口的样式
switch (options.mscss) {
case "Success":
cssname = "icon-01";
break;
case "Error":
cssname = "icon-02";
break;
default:
cssname = "icon-03";
break;
}
//向页面插入标记
var str = "<div id='jsLayMsg' title='" + options.title + "'><p class='" + cssname + "'>" + options.msbox + "</p></div>";
$("body").append(str);
$("#jsLayMsg").dialog({
//title: null,
//show: null,
bgiframe: true,
autoOpen: false,
width: w,
//height: h,
resizable: false,
closeOnEscape: false,
draggable:false,
buttons: { "确定": function() { $(this).dialog("close"); }},
close: function() {
if (options.url == "back") {
history.back(-1);
} else if (options.url != "") {
location.href = options.url;
}
},
modal: true
});
$("#jsLayMsg").dialog("open");
} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/flash/library/msg.js | JavaScript | oos | 1,715 |
$(function() {
$(".input,.login_input,.textarea").focus(function() {
$(this).addClass("focus");
}).blur(function() {
$(this).removeClass("focus");
});
//输入框提示,获取拥有HintTitle,HintInfo属性的对象
$("[HintTitle],[HintInfo]").focus(function(event) {
$("*").stop(); //停止所有正在运行的动画
$("#HintMsg").remove(); //先清除,防止重复出错
var HintHtml = "<ul id=\"HintMsg\"><li class=\"HintTop\"></li><li class=\"HintInfo\"><b>" + $(this).attr("HintTitle") + "</b>" + $(this).attr("HintInfo") + "</li><li class=\"HintFooter\"></li></ul>"; //设置显示的内容
var offset = $(this).offset(); //取得事件对象的位置
$("body").append(HintHtml); //添加节点
$("#HintMsg").fadeTo(0, 0.85); //对象的透明度
var HintHeight = $("#HintMsg").height(); //取得容器高度
$("#HintMsg").css({ "top": offset.top - HintHeight + "px", "left": offset.left + "px" }).fadeIn(500);
}).blur(function(event) {
$("#HintMsg").remove(); //删除UL
});
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/flash/library/focus.js | JavaScript | oos | 1,121 |
@charset "utf-8";
/*验证提示样式*/
.focus{background:#fffee5;}
span.error{margin-left:5px;padding:5px 0 5px 25px;color:#F00;background:url(msg_bg.gif) 0 2px no-repeat;}
span.success{margin-left:5px;padding-left:25px;color:#999;background:url(msg_bg.gif) 0 -22px no-repeat;}
/*自动提示样式*/
.pcent{top:48%;right:38%;position:absolute;display:none;}/*页面居中显示*/
.correct{padding:5px 10px 5px 30px;border:1px solid #3072b3;color:#090;background:url(msg-01.gif) no-repeat 10px center #e9f2fc;}
/*提示文字样式*/
#HintMsg{width:271px;position:absolute;display:none;}
#HintMsg .HintTop{height:9px;background:url(hintbg1.gif) no-repeat;overflow:hidden;}
#HintMsg .HintInfo{padding:0 5px;border-left:1px solid #000;border-right:1px solid #000;background:#FFFFE1;line-height:1.5em;}
#HintMsg .HintInfo b{display:block;margin-bottom:6px;padding-left:15px;background:url(hint.gif) left center no-repeat;height:13px;line-height:16px;}
#HintMsg .HintInfo b span{display:block;float:right;text-indent:-9999px;background:url(close.gif) no-repeat;width:12px;height:12px;cursor:pointer;}
#HintMsg .HintFooter{height:22px;background:url(hintbg2.gif) no-repeat;}
/*设置提示样式*/
.icon-01,.icon-02,.icon-03{margin:0; padding:10px 0 0 80px; color:#4D4D4D; font-family:"微软雅黑"; line-height:1.8em; min-height:60px;}
.icon-01{background:url(icon-01.gif) no-repeat 10px 10px;}
.icon-02{background:url(icon-02.gif) no-repeat 10px 10px;}
.icon-03{background:url(icon-03.gif) no-repeat 10px 10px;}
.icon-01 b,.icon-02 b,.icon-03 b{display:block;font-size:14px;line-height:2.0em;}
.icon-01 b{color:#090;}
.icon-02 b{color:#F00;}
.icon-03 b{color:#FC0;} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/flash/library/msg.css | CSS | oos | 1,697 |
@charset "utf-8";
/*
* artDialog skin
* http://code.google.com/p/artdialog/
* (c) 2009-2011 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
/* common start */
body { _margin:0; _height:100%; /*IE6 BUG*/ }
.aui_outer { text-align:left; }
table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; }
.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; }
.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; }
.aui_title { overflow:hidden; text-overflow: ellipsis; }
.aui_state_noTitle .aui_title { display:none; }
.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; }
.aui_close:hover { text-decoration:none; }
.aui_main { text-align:center; min-width:9em; min-width:0\9/*IE8 BUG*/; }
.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; }
.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; }
.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; }
.aui_icon { vertical-align: middle; }
.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; }
.aui_buttons { padding:8px; text-align:right; white-space:nowrap; }
.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; }
.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; }
.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); }
.aui_buttons button:hover { color:#000; border-color:#666; }
.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); }
.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; }
button.aui_state_highlight { color: #FFF; border: solid 1px #1c6a9e; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; }
button.aui_state_highlight:hover { color:#FFF; border-color:#0F3A56; }
button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); }
/* common end */
.aui_inner { background:#FFF; }
.aui_titleBar { width:100%; }
.aui_title { position:absolute; left:0; top:0; width:100%; height:22px; text-align:left; text-indent:-999em; font-size:0; }
.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(idialog/idialog_s.png); background-repeat:no-repeat; }
.aui_nw { width:15px; height:15px; background-position: 0 0; _png:idialog/ie6/aui_nw.png; }
.aui_ne { width:15px; height:15px; background-position: -15px 0; _png:idialog/ie6/aui_ne.png; }
.aui_sw { width:15px; height:15px; background-position: 0 -15px; _png:idialog/ie6/aui_sw.png; }
.aui_se { width:15px; height:15px; background-position: -15px -15px; _png:idialog/ie6/aui_se.png; }
.aui_close { position:absolute; right:-8px; top:-8px; _z-index:1; width:34px; height:34px; _font-size:0; _line-height:0; text-indent:-9999em; background-position:0 -60px; _png:idialog/ie6/aui_close.png; }
.aui_close:hover { background-position:0 -94px; _png:idialog/ie6/aui_close.hover.png; }
.aui_n, .aui_s { background-repeat:repeat-x; }
.aui_n { background-position: 0 -30px; _png:idialog/ie6/aui_n.png; }
.aui_s { background-position: 0 -45px; _png:idialog/ie6/aui_s.png; }
.aui_w, .aui_e { background-image:url(idialog/idialog_s2.png); background-repeat:repeat-y; }
.aui_w { background-position:left top; _png:idialog/ie6/aui_w.png; }
.aui_e { background-position: right bottom; _png:idialog/ie6/aui_e.png; }
@media screen and (min-width:0) {/* css3 */
.aui_nw, .aui_ne, .aui_sw, .aui_se{ width:5px; height:5px; }
.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_e, .aui_sw, .aui_s, .aui_se { background:none; }
.aui_sw, .aui_s, .aui_se { background:url(idialog/idialog_s.png) repeat-x 0 -45px; }
.aui_sw { border-radius:0 0 0 5px; }
.aui_se { border-radius:0 0 5px 0; }
.aui_outer { border:1px solid #929292; border-radius:5px; box-shadow:0 3px 8px rgba(0, 0, 0, .2); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: -webkit-box-shadow linear .2s; }
.aui_border { border-radius:5px; background:#FFF; }
.aui_state_drag .aui_outer { box-shadow:none; }
.aui_state_lock .aui_outer { box-shadow:0 3px 26px rgba(0, 0, 0, .9); }
.aui_outer:active { box-shadow:0 0 5px rgba(0, 0, 0, .1)!important; }
.aui_state_drag .aui_outer { box-shadow:none!important; }
.aui_close { right:-16px; top:-16px; }
}
@media screen and (-webkit-min-device-pixel-ratio:0) {/* apple | webkit */
.aui_close { right:auto; left:-16px; top:-16px; }
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/altdialog/skins/idialog.css | CSS | oos | 6,807 |
@charset "utf-8";
/*
* artDialog skin
* http://code.google.com/p/artdialog/
* (c) 2009-2011 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
/* common start */
body { _margin:0; _height:100%; /*IE6 BUG*/ }
.aui_outer { text-align:left; }
table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; }
.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; }
.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; }
.aui_title { overflow:hidden; text-overflow: ellipsis; }
.aui_state_noTitle .aui_title { display:none; }
.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; }
.aui_close:hover { text-decoration:none; }
.aui_main { text-align:center; min-width:9em; min-width:0\9/*IE8 BUG*/; }
.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; }
.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; }
.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; }
.aui_icon { vertical-align: middle; }
.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; }
.aui_buttons { padding:8px; text-align:right; white-space:nowrap; }
.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; }
.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; }
.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); }
.aui_buttons button:hover { color:#000; border-color:#666; }
.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); }
.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; }
button.aui_state_highlight { color: #FFF; border: solid 1px #1c6a9e; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; }
button.aui_state_highlight:hover { color:#FFF; border-color:#0F3A56; }
button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); }
/* common end */
.aui_inner { background:rgba(0, 0, 0, .7); }
.aui_dialog { background:#FFF; border-radius:3px; }
.aui_outer { border:1px solid #000; border-radius:5px; box-shadow: 0 3px 0 rgba(0,0,0,0.1); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: -webkit-box-shadow linear .2s; }
.aui_state_lock .aui_outer { box-shadow:0 3px 26px rgba(0, 0, 0, .9); }
.aui_outer:active { box-shadow:none!important; }
.aui_state_drag .aui_outer { box-shadow:none!important; }
.aui_border { border-radius:3px; }
.aui_nw, .aui_ne { width:5px; height:37px; }
.aui_sw, .aui_se { width:5px; height:5px; }
.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_e, .aui_sw, .aui_s, .aui_se { background:rgba(0, 0, 0, .7); background:#000\9!important; filter:alpha(opacity=70); }
.aui_titleBar { width:100%; height:0; position:relative; bottom:33px; _bottom:0; _margin-top:-33px; }
.aui_title { height:27px; line-height:27px; padding:0 16px 0 5px; color:#FFF; font-weight:700; text-shadow:0 1px 0 #000; }
.aui_close { padding:0; top:2px; right:5px; width:21px; height:21px; line-height:21px; font-size:18px; text-align:center; color:#EBEBEB; font-family: Helvetica, STHeiti; _font-family: Tahoma, '\u9ed1\u4f53', 'Book Antiqua', Palatino; border:1px solid transparent; _border:0 none; background:#000; border-radius:15px; }
.aui_state_drag .aui_close { color:#FFF; }
.aui_close:hover { background:#C72015; border:1px solid #000; _border:0 none; box-shadow: 0 1px 0 rgba(255, 255, 255, .3), inset 0 1px 0 rgba(255, 255, 255, .3); }
.aui_close:active { box-shadow: none; }
.aui_state_noTitle { }
.aui_content { color:#666; }
.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne { height:5px; }
.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; }
.aui_state_noTitle .aui_close { top:5px; }
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/altdialog/skins/twitter.css | CSS | oos | 6,118 |
@charset "utf-8";
/*
* artDialog skin
* http://code.google.com/p/artdialog/
* (c) 2009-2011 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
/* common start */
body { _margin:0; _height:100%; /*IE6 BUG*/ }
.aui_outer { text-align:left; }
table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; }
.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; }
.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; }
.aui_title { overflow:hidden; text-overflow: ellipsis; }
.aui_state_noTitle .aui_title { display:none; }
.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; }
.aui_close:hover { text-decoration:none; }
.aui_main { text-align:center; min-width:9em; min-width:0\9/*IE8 BUG*/; }
.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; }
.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; }
.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; }
.aui_icon { vertical-align: middle; }
.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; }
.aui_buttons { padding:8px; text-align:right; white-space:nowrap; }
.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; }
.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; }
.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); }
.aui_buttons button:hover { color:#000; border-color:#666; }
.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); }
.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; }
button.aui_state_highlight { color: #FFF; border: solid 1px #1c6a9e; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; }
button.aui_state_highlight:hover { color:#FFF; border-color:#0F3A56; }
button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); }
/* common end */
.aui_inner { background:#f0f1f9; }
.aui_titleBar { width:100%; height:0; position:relative; bottom:27px; _bottom:0; _margin-top:-27px; }
.aui_title { height:27px; line-height:27px; padding:0 37px 0 0; _padding:0; color:#333; text-shadow:1px 1px 0 rgba(255, 255, 255, .7); }
.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(opera/s1.png); background-repeat:no-repeat; }
.aui_nw { width:15px; height:32px; background-position: 0 0; _png:opera/ie6/aui_nw.png; }
.aui_ne { width:15px; height:32px; background-position: -15px 0; _png:opera/ie6/aui_ne.png; }
.aui_sw { width:15px; height:15px; background-position: 0 -33px; _png:opera/ie6/aui_sw.png; }
.aui_se { width:15px; height:15px; background-position: -15px -33px; _png:opera/ie6/aui_se.png; }
.aui_close { top:0; right:0; _z-index:1; width:27px; height:27px; _font-size:0; _line-height:0; *zoom:1; text-indent:-9999em; background-position:0 -96px; _png:opera/ie6/aui_close.png; }
.aui_close:hover { background-position:0 -123px; _png:opera/ie6/aui_close.hover.png; }
.aui_n, .aui_s { background-repeat:repeat-x; }
.aui_n { background-position: 0 -48px; _png:opera/ie6/aui_n.png; }
.aui_s { background-position: 0 -81px; _png:opera/ie6/aui_s.png; }
.aui_w, .aui_e { background-image:url(opera/s2.png); background-repeat:repeat-y; }
.aui_w { background-position:left top; _png:opera/ie6/aui_w.png; }
.aui_e { background-position: right bottom; _png:opera/ie6/aui_e.png; }
.aui_icon, .aui_main { padding-top:10px; }
.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_se { width:3px; height:3px; }
.aui_state_noTitle .aui_inner { border:1px solid #666; background:#FFF; }
.aui_state_noTitle .aui_outer { box-shadow:none; }
.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_n, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_w, .aui_state_noTitle .aui_e, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_s, .aui_state_noTitle .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5)!important; }
.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; }
.aui_state_noTitle .aui_close { top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; text-indent:0; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; background:none; filter:!important; }
.aui_state_noTitle .aui_close:hover, .aui_state_noTitle .aui_close:active { text-decoration:none; color:#900; } | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/altdialog/skins/opera.css | CSS | oos | 6,873 |
@charset "utf-8";
/*
* artDialog skin
* http://code.google.com/p/artdialog/
* (c) 2009-2011 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
/* common start */
body { _margin:0; _height:100%; /*IE6 BUG*/ }
.aui_outer { text-align:left; }
table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; }
.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; }
.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; }
.aui_title { overflow:hidden; text-overflow: ellipsis; }
.aui_state_noTitle .aui_title { display:none; }
.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; }
.aui_close:hover { text-decoration:none; }
.aui_main { text-align:center; min-width:9em; min-width:0 \9/*IE8 BUG*/; }
.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; }
.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; }
.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; }
.aui_icon { vertical-align: middle; }
.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; }
.aui_buttons { padding:8px; text-align:right; white-space:nowrap; }
.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; }
.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; }
.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); }
.aui_buttons button:hover { color:#000; border-color:#666; }
.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); }
.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; }
button.aui_state_highlight { color: #FFF; border: solid 1px #3399dd; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; }
button.aui_state_highlight:hover { color:#FFF; border-color:#1c6a9e; }
button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); }
/* common end */
.aui_inner { background:#f7f7f7; }
.aui_titleBar { width:100%; height:0; position:relative; bottom:30px; _bottom:0; _margin-top:-30px; }
.aui_title { height:29px; line-height:29px; padding:0 25px 0 0; _padding:0; text-indent:5px; color:#FFF; font-weight:700; text-shadow:-1px -1px 0 rgba(0, 0, 0, .7); }
.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(black/bg.png); background-repeat:no-repeat; }
.aui_nw { width:15px; height:38px; background-position: 0 0; _png:black/ie6/nw.png; }
.aui_ne { width:15px; height:38px; background-position: -15px 0; _png:black/ie6/ne.png; }
.aui_sw { width:15px; height:18px; background-position: 0 -38px; _png:black/ie6/sw.png; }
.aui_se { width:15px; height:18px; background-position: -15px -38px; _png:black/ie6/se.png; }
.aui_close { top:4px; right:4px; _z-index:1; width:20px; height:20px; _font-size:0; _line-height:0; text-indent:-9999em; background-position:0 -112px; _png:black/ie6/close.png; }
.aui_close:hover { background-position:0 -132px; }
.aui_n, .aui_s { background-repeat:repeat-x; }
.aui_n { background-position: 0 -56px; _png:black/ie6/n.png; }
.aui_s { background-position: 0 -94px; _png:black/ie6/s.png; }
.aui_w, .aui_e { background-image:url(black/bg2.png); background-repeat:repeat-y; }
.aui_w { background-position:left top; _png:black/ie6/w.png; }
.aui_e { background-position: right bottom; _png:black/ie6/e.png; }
aui_icon, .aui_main { padding-top:3px; }
@media screen and (min-width:0) {
.aui_outer { border-radius:8px; box-shadow:0 5px 15px rgba(0, 0, 0, .4); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: -webkit-box-shadow linear .2s; }
.aui_state_drag .aui_outer { box-shadow:none; }
.aui_state_lock .aui_outer { box-shadow:0 3px 26px rgba(0, 0, 0, .9); }
.aui_outer:active { box-shadow:0 0 5px rgba(0, 0, 0, .1)!important; }
.aui_state_drag .aui_outer { box-shadow:none!important; }
.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(black/bg_css3.png); }
.aui_nw { width:5px; height:31px; }
.aui_ne { width:5px; height:31px; background-position: -5px 0; _png:black/ie6/ne.png; }
.aui_sw { width:5px; height:5px;background-position: 0 -31px; }
.aui_se { width:5px; height:5px; background-position: -5px -31px; }
.aui_close { background-position:0 -72px; }
.aui_close:hover { background-position:0 -92px; }
.aui_n { background-position: 0 -36px; }
.aui_s { background-position: 0 -67px; }
.aui_w, .aui_e { background-image:url(black/bg_css3_2.png); }
}
.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_se { width:3px; height:3px; }
.aui_state_noTitle .aui_inner { border:1px solid #666; background:#FFF; }
.aui_state_noTitle .aui_outer { box-shadow:none; }
.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_n, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_w, .aui_state_noTitle .aui_e, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_s, .aui_state_noTitle .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5)!important; }
.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; }
.aui_state_noTitle .aui_close { top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; text-indent:0; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; background:none; filter:!important; }
.aui_state_noTitle .aui_close:hover, .aui_state_noTitle .aui_close:active { text-decoration:none; color:#900; } | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/altdialog/skins/black.css | CSS | oos | 7,958 |
@charset "utf-8";
/*
* artDialog skin
* http://code.google.com/p/artdialog/
* (c) 2009-2011 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
/* common start */
body { _margin:0; _height:100%; /*IE6 BUG*/ }
.aui_outer { text-align:left; }
table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; }
.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; }
.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; }
.aui_title { overflow:hidden; text-overflow: ellipsis; }
.aui_state_noTitle .aui_title { display:none; }
.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; }
.aui_close:hover { text-decoration:none; }
.aui_main { text-align:center; min-width:9em; min-width:0\9/*IE8 BUG*/; }
.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; }
.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; }
.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; }
.aui_icon { vertical-align: middle; }
.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; }
.aui_buttons { padding:8px; text-align:right; white-space:nowrap; }
.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; }
.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; }
.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); }
.aui_buttons button:hover { color:#000; border-color:#666; }
.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); }
.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; }
button.aui_state_highlight { color: #FFF; border: solid 1px #1c6a9e; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; }
button.aui_state_highlight:hover { color:#FFF; border-color:#0F3A56; }
button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); }
/* common end */
.aui_inner { background:#FFF; }
.aui_titleBar { width:100%; height:0; position:relative; bottom:26px; _bottom:0; _margin-top:-26px;}
.aui_title { height:26px; line-height:23px; padding:0 60px 0 5px; color:#FFF; font-weight:700; text-shadow:0 1px 0 #000; }
.aui_nw, .aui_ne, .aui_w, .aui_e, .aui_sw, .aui_se, .aui_close { background-image:url(chrome/chrome_s.png); background-repeat:no-repeat; }
.aui_nw { width:5px; height:26px; background-position: -46px -8px; }
.aui_ne { width:5px; height:26px; background-position: -53px -8px; }
.aui_w { background-position:-60px 0; background-repeat:repeat-y; }
.aui_e { background-position:-65px 0; background-repeat:repeat-y; }
.aui_sw { width:5px; height:5px; background-position: -46px -2px;}
.aui_se { width:5px; height:5px; background-position: -53px -2px;}
.aui_close { top:1px; right:0; width:44px; height:17px; background-position:0 0; _font-size:0; _line-height:0; text-indent:-9999em; }
.aui_close:hover { background-position:0 -18px; }
.aui_n, .aui_s { background-image:url(chrome/border.png); background-repeat:repeat-x; }
.aui_n { background-position:0 top; }
.aui_s { background-position: 0 bottom; }
.aui_buttons { background-color:#F6F6F6; border-top:solid 1px #DADEE5; }
.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_se { width:3px; height:3px; }
.aui_state_noTitle .aui_inner { border:1px solid #666; background:#FFF; }
.aui_state_noTitle .aui_outer { box-shadow:none; }
.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_n, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_w, .aui_state_noTitle .aui_e, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_s, .aui_state_noTitle .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5)!important; }
.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; }
.aui_state_noTitle .aui_close { top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; text-indent:0; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; background:none; filter:!important; }
.aui_state_noTitle .aui_close:hover, .aui_state_noTitle .aui_close:active { text-decoration:none; color:#900; }
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/altdialog/skins/chrome.css | CSS | oos | 6,600 |
@charset "utf-8";
/*
* artDialog skin
* http://code.google.com/p/artdialog/
* (c) 2009-2011 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
/* common start */
body { _margin:0; _height:100%; /*IE6 BUG*/ }
.aui_outer { text-align:left; }
table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; }
.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; }
.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; }
.aui_title { overflow:hidden; text-overflow: ellipsis; }
.aui_state_noTitle .aui_title { display:none; }
.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; }
.aui_close:hover { text-decoration:none; }
.aui_main { text-align:center; min-width:9em; min-width:0 \9/*IE8 BUG*/; }
.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; }
.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; }
.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; }
.aui_icon { vertical-align: middle; }
.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; }
.aui_buttons { padding:8px; text-align:right; white-space:nowrap; }
.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; }
.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; }
.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(0, 50, 0, .7); }
.aui_buttons button:hover { color:#000; border-color:#666; }
.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(0, 50, 0, .7), inset 0 1px 1em rgba(0, 0, 0, .3); }
.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; }
button.aui_state_highlight { color: #FFF; border: solid 1px #679a10; background: #7cb61b; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#98d237', endColorstr='#7cb61b'); background: linear-gradient(top, #98d237, #7cb61b); background: -moz-linear-gradient(top, #98d237, #7cb61b); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#98d237), to(#7cb61b)); text-shadow: -1px -1px 1px #679a10; }
button.aui_state_highlight:focus { border-color:#679a10; }
button.aui_state_highlight:hover { color:#FFF; border-color:#3c5412; }
button.aui_state_highlight:active { border-color:#3c5412; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#98d237', endColorstr='#7cb61b'); background: linear-gradient(top, #98d237, #7cb61b); background: -moz-linear-gradient(top, #98d237, #7cb61b); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#98d237), to(#7cb61b)); }
/* common end */
.aui_inner { background:#f7f7f7; }
.aui_titleBar { width:100%; height:0; position:relative; bottom:30px; _bottom:0; _margin-top:-30px; }
.aui_title { height:29px; line-height:29px; padding:0 25px 0 0; _padding:0; text-indent:5px; color:#FFF; font-weight:700; text-shadow:-1px -1px 0 rgba(0, 50, 0, .7); }
.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(green/bg.png); background-repeat:no-repeat; }
.aui_nw { width:15px; height:38px; background-position: 0 0; _png:green/ie6/nw.png; }
.aui_ne { width:15px; height:38px; background-position: -15px 0; _png:green/ie6/ne.png; }
.aui_sw { width:15px; height:18px; background-position: 0 -38px; _png:green/ie6/sw.png; }
.aui_se { width:15px; height:18px; background-position: -15px -38px; _png:green/ie6/se.png; }
.aui_close { top:4px; right:4px; _z-index:1; width:20px; height:20px; _font-size:0; _line-height:0; text-indent:-9999em; background-position:0 -112px; _png:green/ie6/close.png; }
.aui_close:hover { background-position:0 -132px; }
.aui_n, .aui_s { background-repeat:repeat-x; }
.aui_n { background-position: 0 -56px; _png:green/ie6/n.png; }
.aui_s { background-position: 0 -94px; _png:green/ie6/s.png; }
.aui_w, .aui_e { background-image:url(green/bg2.png); background-repeat:repeat-y; }
.aui_w { background-position:left top; _png:green/ie6/w.png; }
.aui_e { background-position: right bottom; _png:green/ie6/e.png; }
aui_icon, .aui_main { padding-top:3px; }
@media screen and (min-width:0) {
.aui_outer { border-radius:8px; box-shadow:0 5px 15px rgba(0, 50, 0, .4); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: -webkit-box-shadow linear .2s; }
.aui_state_lock .aui_outer { box-shadow:0 3px 26px rgba(0, 0, 0, .9); }
.aui_outer:active { box-shadow:0 0 5px rgba(0, 50, 0, .1)!important; }
.aui_state_drag .aui_outer { box-shadow:none!important; }
.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(green/bg_css3.png); }
.aui_nw { width:5px; height:31px; }
.aui_ne { width:5px; height:31px; background-position: -5px 0; _png:green/ie6/ne.png; }
.aui_sw { width:5px; height:5px;background-position: 0 -31px; }
.aui_se { width:5px; height:5px; background-position: -5px -31px; }
.aui_close { background-position:0 -72px; }
.aui_close:hover { background-position:0 -92px; }
.aui_n { background-position: 0 -36px; }
.aui_s { background-position: 0 -67px; }
.aui_w, .aui_e { background-image:url(green/bg_css3_2.png); }
}
.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_se { width:3px; height:3px; }
.aui_state_noTitle .aui_inner { border:1px solid #666; background:#FFF; }
.aui_state_noTitle .aui_outer { box-shadow:none; }
.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_n, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_w, .aui_state_noTitle .aui_e, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_s, .aui_state_noTitle .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5)!important; }
.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; }
.aui_state_noTitle .aui_close { top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; text-indent:0; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; background:none; filter:!important; }
.aui_state_noTitle .aui_close:hover, .aui_state_noTitle .aui_close:active { text-decoration:none; color:#900; } | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/altdialog/skins/green.css | CSS | oos | 7,963 |
@charset "utf-8";
/*
* artDialog skin
* http://code.google.com/p/artdialog/
* (c) 2009-2011 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
/* common start */
body { _margin:0; _height:100%; /*IE6 BUG*/ }
.aui_outer { text-align:left; }
table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; }
.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; }
.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; }
.aui_title { overflow:hidden; text-overflow: ellipsis; }
.aui_state_noTitle .aui_title { display:none; }
.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; }
.aui_close:hover { text-decoration:none; }
.aui_main { text-align:center; min-width:9em; min-width:0\9/*IE8 BUG*/; }
.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; }
.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; }
.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; }
.aui_icon { vertical-align: middle; }
.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; }
.aui_buttons { padding:8px; text-align:right; white-space:nowrap; }
.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; }
.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; }
.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); }
.aui_buttons button:hover { color:#000; border-color:#666; }
.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); }
.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; }
button.aui_state_highlight { color: #FFF; border: solid 1px #1c6a9e; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; }
button.aui_state_highlight:hover { color:#FFF; border-color:#0F3A56; }
button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); }
/* common end */
.aui_inner { background:#FFF; border:1px solid #666; }
.aui_nw, .aui_ne, .aui_sw, .aui_se { width:3px; height:3px; }
.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_e, .aui_sw, .aui_s, .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5); }
.aui_titleBar { position:relative; height:100%; }
.aui_title { position:absolute; top:0; left:0; width:100%; height:24px; text-indent:-9999em; overflow:hidden; font-size:0; }
.aui_state_drag .aui_title { color:#666; }
.aui_close { padding:0; top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; }
.aui_close:hover, .aui_close:active { text-decoration:none; color:#900; }
.aui_content { color:#666; }
.aui_state_focus .aui_content { color:#000; }
@media screen and (min-width:0) {
.aui_close { width:20px; height:20px; line-height:20px; right:-10px; top:-10px; border-radius:20px; background:#999; color:#FFF; box-shadow:0 1px 3px rgba(0, 0, 0, .3); -moz-transition: linear .06s; -webkit-transition: linear .06s; transition: linear .06s; }
.aui_close:hover { width:24px; height:24px; line-height:24px; right:-12px; top:-12px; color:#FFF; box-shadow:0 1px 3px rgba(209, 40, 42, .5); background:#d1282a; border-radius:24px; }
.aui_state_lock .aui_dialog { box-shadow:0 3px 26px rgba(0, 0, 0, .9); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: -webkit-box-shadow linear .2s; }
.aui_dialog:active { box-shadow:0 0 5px rgba(0, 0, 0, .1)!important; }
.aui_state_drag .aui_outer { box-shadow:none!important; }
}
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/altdialog/skins/simple.css | CSS | oos | 6,006 |
@charset "utf-8";
/*
* artDialog skin
* http://code.google.com/p/artdialog/
* (c) 2009-2011 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
/* common start */
body { _margin:0; _height:100%; /*IE6 BUG*/ }
.aui_outer { text-align:left; }
table.aui_border, table.aui_dialog { border:0; margin:0; border-collapse:collapse; width:auto; }
.aui_nw, .aui_n, .aui_ne, .aui_w, .aui_c, .aui_e, .aui_sw, .aui_s, .aui_se, .aui_header, .aui_tdIcon, .aui_main, .aui_footer { padding:0; }
.aui_header, .aui_buttons button { font: 12px/1.11 'Microsoft Yahei', Tahoma, Arial, Helvetica, STHeiti; _font-family:Tahoma,Arial,Helvetica,STHeiti; -o-font-family: Tahoma, Arial; }
.aui_title { overflow:hidden; text-overflow: ellipsis; }
.aui_state_noTitle .aui_title { display:none; }
.aui_close { display:block; position:absolute; text-decoration:none; outline:none; _cursor:pointer; }
.aui_close:hover { text-decoration:none; }
.aui_main { text-align:center; min-width:9em; min-width:0 \9/*IE8 BUG*/; }
.aui_content { display:inline-block; *zoom:1; *display:inline; text-align:left; border:none 0; }
.aui_content.aui_state_full { display:block; width:100%; margin:0; padding:0!important; height:100%; }
.aui_loading { width:96px; height:32px; text-align:left; text-indent:-999em; overflow:hidden; background:url(icons/loading.gif) no-repeat center center; }
.aui_icon { vertical-align: middle; }
.aui_icon div { width:48px; height:48px; margin:10px 0 10px 10px; background-position: center center; background-repeat:no-repeat; }
.aui_buttons { padding:8px; text-align:right; white-space:nowrap; }
.aui_buttons button { margin-left:15px; padding: 6px 8px; cursor: pointer; display: inline-block; text-align: center; line-height: 1; *padding:4px 10px; *height:2em; letter-spacing:2px; font-family: Tahoma, Arial/9!important; width:auto; overflow:visible; *width:1; color: #333; border: solid 1px #999; border-radius: 5px; background: #DDD; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#FFFFFF', endColorstr='#DDDDDD'); background: linear-gradient(top, #FFF, #DDD); background: -moz-linear-gradient(top, #FFF, #DDD); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFF), to(#DDD)); text-shadow: 0px 1px 1px rgba(255, 255, 255, 1); box-shadow: 0 1px 0 rgba(255, 255, 255, .7), 0 -1px 0 rgba(0, 0, 0, .09); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: box-shadow linear .2s; }
.aui_buttons button::-moz-focus-inner{ border:0; padding:0; margin:0; }
.aui_buttons button:focus { outline:none 0; border-color:#426DC9; box-shadow:0 0 8px rgba(66, 109, 201, .9); }
.aui_buttons button:hover { color:#000; border-color:#666; }
.aui_buttons button:active { border-color:#666; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#DDDDDD', endColorstr='#FFFFFF'); background: linear-gradient(top, #DDD, #FFF); background: -moz-linear-gradient(top, #DDD, #FFF); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#DDD), to(#FFF)); box-shadow:inset 0 1px 5px rgba(66, 109, 201, .9), inset 0 1px 1em rgba(0, 0, 0, .3); }
.aui_buttons button[disabled] { cursor:default; color:#666; background:#DDD; border: solid 1px #999; filter:alpha(opacity=50); opacity:.5; box-shadow:none; }
button.aui_state_highlight { color: #FFF; border: solid 1px #3399dd; background: #2288cc; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); text-shadow: -1px -1px 1px #1c6a9e; }
button.aui_state_highlight:hover { color:#FFF; border-color:#1c6a9e; }
button.aui_state_highlight:active { border-color:#1c6a9e; filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#33bbee', endColorstr='#2288cc'); background: linear-gradient(top, #33bbee, #2288cc); background: -moz-linear-gradient(top, #33bbee, #2288cc); background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#33bbee), to(#2288cc)); }
/* common end */
.aui_inner { background:#f7f7f7; }
.aui_titleBar { width:100%; height:0; position:relative; bottom:30px; _bottom:0; _margin-top:-30px; }
.aui_title { height:29px; line-height:29px; padding:0 25px 0 0; _padding:0; text-indent:5px; color:#FFF; font-weight:700; text-shadow:-1px -1px 0 rgba(33, 79, 183, .7); }
.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(blue/bg.png); background-repeat:no-repeat; }
.aui_nw { width:15px; height:38px; background-position: 0 0; _png:blue/ie6/nw.png; }
.aui_ne { width:15px; height:38px; background-position: -15px 0; _png:blue/ie6/ne.png; }
.aui_sw { width:15px; height:18px; background-position: 0 -38px; _png:blue/ie6/sw.png; }
.aui_se { width:15px; height:18px; background-position: -15px -38px; _png:blue/ie6/se.png; }
.aui_close { top:4px; right:4px; _z-index:1; width:20px; height:20px; _font-size:0; _line-height:0; text-indent:-9999em; background-position:0 -112px; _png:blue/ie6/close.png; }
.aui_close:hover { background-position:0 -132px; }
.aui_n, .aui_s { background-repeat:repeat-x; }
.aui_n { background-position: 0 -56px; _png:blue/ie6/n.png; }
.aui_s { background-position: 0 -94px; _png:blue/ie6/s.png; }
.aui_w, .aui_e { background-image:url(blue/bg2.png); background-repeat:repeat-y; }
.aui_w { background-position:left top; _png:blue/ie6/w.png; }
.aui_e { background-position: right bottom; _png:blue/ie6/e.png; }
aui_icon, .aui_main { padding-top:3px; }
@media screen and (min-width:0) {
.aui_outer { border-radius:8px; box-shadow:0 5px 15px rgba(2, 37, 69, .4); -moz-transition:-moz-box-shadow linear .2s; -webkit-transition: -webkit-box-shadow linear .2s; transition: -webkit-box-shadow linear .2s; }
.aui_state_drag .aui_outer { box-shadow:none; }
.aui_state_lock .aui_outer { box-shadow:0 3px 26px rgba(0, 0, 0, .9); }
.aui_outer:active { box-shadow:0 0 5px rgba(2, 37, 69, .1)!important; }
.aui_state_drag .aui_outer { box-shadow:none!important; }
.aui_nw, .aui_ne, .aui_sw, .aui_se, .aui_n, .aui_s, .aui_close { background-image:url(blue/bg_css3.png); }
.aui_nw { width:5px; height:31px; }
.aui_ne { width:5px; height:31px; background-position: -5px 0; _png:blue/ie6/ne.png; }
.aui_sw { width:5px; height:5px;background-position: 0 -31px; }
.aui_se { width:5px; height:5px; background-position: -5px -31px; }
.aui_close { background-position:0 -72px; }
.aui_close:hover { background-position:0 -92px; }
.aui_n { background-position: 0 -36px; }
.aui_s { background-position: 0 -67px; }
.aui_w, .aui_e { background-image:url(blue/bg_css3_2.png); }
}
.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_se { width:3px; height:3px; }
.aui_state_noTitle .aui_inner { border:1px solid #666; background:#FFF; }
.aui_state_noTitle .aui_outer { box-shadow:none; }
.aui_state_noTitle .aui_nw, .aui_state_noTitle .aui_n, .aui_state_noTitle .aui_ne, .aui_state_noTitle .aui_w, .aui_state_noTitle .aui_e, .aui_state_noTitle .aui_sw, .aui_state_noTitle .aui_s, .aui_state_noTitle .aui_se { background:rgba(0, 0, 0, .05); background:#000\9!important; filter:alpha(opacity=5)!important; }
.aui_state_noTitle .aui_titleBar { bottom:0; _bottom:0; _margin-top:0; }
.aui_state_noTitle .aui_close { top:0; right:0; width:18px; height:18px; line-height:18px; text-align:center; text-indent:0; font-family: Helvetica, STHeiti; _font-family: '\u9ed1\u4f53', 'Book Antiqua', Palatino; font-size:18px; text-decoration:none; color:#214FA3; background:none; filter:!important; }
.aui_state_noTitle .aui_close:hover, .aui_state_noTitle .aui_close:active { text-decoration:none; color:#900; } | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/altdialog/skins/blue.css | CSS | oos | 7,952 |
/*!
* artDialog iframeTools
* Date: 2011-11-25 13:54
* http://code.google.com/p/artdialog/
* (c) 2009-2011 TangBin, http://www.planeArt.cn
*
* This is licensed under the GNU LGPL, version 2.1 or later.
* For details, see: http://creativecommons.org/licenses/LGPL/2.1/
*/
;(function ($, window, artDialog, undefined) {
var _topDialog, _proxyDialog, _zIndex,
_data = '@ARTDIALOG.DATA',
_open = '@ARTDIALOG.OPEN',
_opener = '@ARTDIALOG.OPENER',
_winName = window.name = window.name
|| '@ARTDIALOG.WINNAME' + + new Date,
_isIE6 = window.VBArray && !window.XMLHttpRequest;
$(function () {
!window.jQuery && document.compatMode === 'BackCompat'
// 不支持怪异模式,请用主流的XHTML1.0或者HTML5的DOCTYPE申明
&& alert('artDialog Error: document.compatMode === "BackCompat"');
});
/** 获取 artDialog 可跨级调用的最高层的 window 对象 */
var _top = artDialog.top = function () {
var top = window,
test = function (name) {
try {
var doc = window[name].document; // 跨域|无权限
doc.getElementsByTagName; // chrome 本地安全限制
} catch (e) {
return false;
};
return window[name].artDialog
// 框架集无法显示第三方元素
&& doc.getElementsByTagName('frameset').length === 0;
};
if (test('top')) {
top = window.top;
} else if (test('parent')) {
top = window.parent;
};
return top;
}();
artDialog.parent = _top; // 兼容v4.1之前版本,未来版本将删除此
_topDialog = _top.artDialog;
// 获取顶层页面对话框叠加值
_zIndex = function () {
return _topDialog.defaults.zIndex;
};
/**
* 跨框架数据共享接口
* @see http://www.planeart.cn/?p=1554
* @param {String} 存储的数据名
* @param {Any} 将要存储的任意数据(无此项则返回被查询的数据)
*/
artDialog.data = function (name, value) {
var top = artDialog.top,
cache = top[_data] || {};
top[_data] = cache;
if (value !== undefined) {
cache[name] = value;
} else {
return cache[name];
};
return cache;
};
/**
* 数据共享删除接口
* @param {String} 删除的数据名
*/
artDialog.removeData = function (name) {
var cache = artDialog.top[_data];
if (cache && cache[name]) delete cache[name];
};
/** 跨框架普通对话框 */
artDialog.through = _proxyDialog = function () {
var api = _topDialog.apply(this, arguments);
// 缓存从当前 window(可能为iframe)调出所有跨框架对话框,
// 以便让当前 window 卸载前去关闭这些对话框。
// 因为iframe注销后也会从内存中删除其创建的对象,这样可以防止回调函数报错
if (_top !== window) artDialog.list[api.config.id] = api;
return api;
};
// 框架页面卸载前关闭所有穿越的对话框
_top !== window && $(window).bind('unload', function () {
var list = artDialog.list, config;
for (var i in list) {
if (list[i]) {
config = list[i].config;
if (config) config.duration = 0; // 取消动画
list[i].close();
//delete list[i];
};
};
});
/**
* 弹窗 (iframe)
* @param {String} 地址
* @param {Object} 配置参数. 这里传入的回调函数接收的第1个参数为iframe内部window对象
* @param {Boolean} 是否允许缓存. 默认true
*/
artDialog.open = function (url, options, cache) {
options = options || {};
var api, DOM,
$content, $main, iframe, $iframe, $idoc, iwin, ibody,
top = artDialog.top,
initCss = 'position:absolute;left:-9999em;top:-9999em;border:none 0;background:transparent',
loadCss = 'width:100%;height:100%;border:none 0';
if (cache === false) {
var ts = + new Date,
ret = url.replace(/([?&])_=[^&]*/, "$1_=" + ts );
url = ret + ((ret === url) ? (/\?/.test(url) ? "&" : "?") + "_=" + ts : "");
};
var load = function () {
var iWidth, iHeight,
loading = DOM.content.find('.aui_loading'),
aConfig = api.config;
$content.addClass('aui_state_full');
loading && loading.hide();
try {
iwin = iframe.contentWindow;
$idoc = $(iwin.document);
ibody = iwin.document.body;
} catch (e) {// 跨域
iframe.style.cssText = loadCss;
aConfig.follow
? api.follow(aConfig.follow)
: api.position(aConfig.left, aConfig.top);
options.init && options.init.call(api, iwin, top);
options.init = null;
return;
};
// 获取iframe内部尺寸
iWidth = aConfig.width === 'auto'
? $idoc.width() + (_isIE6 ? 0 : parseInt($(ibody).css('marginLeft')))
: aConfig.width;
iHeight = aConfig.height === 'auto'
? $idoc.height()
: aConfig.height;
// 适应iframe尺寸
setTimeout(function () {
iframe.style.cssText = loadCss;
}, 0);// setTimeout: 防止IE6~7对话框样式渲染异常
api.size(iWidth, iHeight);
// 调整对话框位置
aConfig.follow
? api.follow(aConfig.follow)
: api.position(aConfig.left, aConfig.top);
options.init && options.init.call(api, iwin, top);
options.init = null;
};
var config = {
zIndex: _zIndex(),
init: function () {
api = this;
DOM = api.DOM;
$main = DOM.main;
$content = DOM.content;
iframe = api.iframe = top.document.createElement('iframe');
iframe.src = url;
iframe.name = 'Open' + api.config.id;
iframe.style.cssText = initCss;
iframe.setAttribute('frameborder', 0, 0);
iframe.setAttribute('allowTransparency', true);
$iframe = $(iframe);
api.content().appendChild(iframe);
iwin = iframe.contentWindow;
try {
iwin.name = iframe.name;
artDialog.data(iframe.name + _open, api);
artDialog.data(iframe.name + _opener, window);
} catch (e) {};
$iframe.bind('load', load);
},
close: function () {
$iframe.css('display', 'none').unbind('load', load);
if (options.close && options.close.call(this, iframe.contentWindow, top) === false) {
return false;
};
$content.removeClass('aui_state_full');
// 重要!需要重置iframe地址,否则下次出现的对话框在IE6、7无法聚焦input
// IE删除iframe后,iframe仍然会留在内存中出现上述问题,置换src是最容易解决的方法
$iframe[0].src = 'about:blank';
$iframe.remove();
try {
artDialog.removeData(iframe.name + _open);
artDialog.removeData(iframe.name + _opener);
} catch (e) {};
}
};
// 回调函数第一个参数指向iframe内部window对象
if (typeof options.ok === 'function') config.ok = function () {
return options.ok.call(api, iframe.contentWindow, top);
};
if (typeof options.cancel === 'function') config.cancel = function () {
return options.cancel.call(api, iframe.contentWindow, top);
};
delete options.content;
for (var i in options) {
if (config[i] === undefined) config[i] = options[i];
};
return _proxyDialog(config);
};
/** 引用open方法扩展方法(在open打开的iframe内部私有方法) */
artDialog.open.api = artDialog.data(_winName + _open);
/** 引用open方法触发来源页面window(在open打开的iframe内部私有方法) */
artDialog.opener = artDialog.data(_winName + _opener) || window;
artDialog.open.origin = artDialog.opener; // 兼容v4.1之前版本,未来版本将删除此
/** artDialog.open 打开的iframe页面里关闭对话框快捷方法 */
artDialog.close = function () {
var api = artDialog.data(_winName + _open);
api && api.close();
return false;
};
// 点击iframe内容切换叠加高度
_top != window && $(document).bind('mousedown', function () {
var api = artDialog.open.api;
api && api.zIndex();
});
/**
* Ajax填充内容
* @param {String} 地址
* @param {Object} 配置参数
* @param {Boolean} 是否允许缓存. 默认true
*/
artDialog.load = function(url, options, cache){
cache = cache || false;
var opt = options || {};
var config = {
zIndex: _zIndex(),
init: function(here){
var api = this,
aConfig = api.config;
$.ajax({
url: url,
success: function (content) {
api.content(content);
opt.init && opt.init.call(api, here);
},
cache: cache
});
}
};
delete options.content;
for (var i in opt) {
if (config[i] === undefined) config[i] = opt[i];
};
return _proxyDialog(config);
};
/**
* 警告
* @param {String} 消息内容
*/
artDialog.alert = function (content, callback) {
return _proxyDialog({
id: 'Alert',
zIndex: _zIndex(),
icon: 'warning',
fixed: true,
lock: true,
content: content,
ok: true,
close: callback
});
};
/**
* 确认
* @param {String} 消息内容
* @param {Function} 确定按钮回调函数
* @param {Function} 取消按钮回调函数
*/
artDialog.confirm = function (content, yes, no) {
return _proxyDialog({
id: 'Confirm',
zIndex: _zIndex(),
icon: 'question',
fixed: true,
lock: true,
opacity: .1,
content: content,
ok: function (here) {
return yes.call(this, here);
},
cancel: function (here) {
return no && no.call(this, here);
}
});
};
/**
* 提问
* @param {String} 提问内容
* @param {Function} 回调函数. 接收参数:输入值
* @param {String} 默认值
*/
artDialog.prompt = function (content, yes, value) {
value = value || '';
var input;
return _proxyDialog({
id: 'Prompt',
zIndex: _zIndex(),
icon: 'question',
fixed: true,
lock: true,
opacity: .1,
content: [
'<div style="margin-bottom:5px;font-size:12px">',
content,
'</div>',
'<div>',
'<input value="',
value,
'" style="width:18em;padding:6px 4px" />',
'</div>'
].join(''),
init: function () {
input = this.DOM.content.find('input')[0];
input.select();
input.focus();
},
ok: function (here) {
return yes && yes.call(this, input.value, here);
},
cancel: true
});
};
/**
* 短暂提示
* @param {String} 提示内容
* @param {Number} 显示时间 (默认1.5秒)
*/
artDialog.tips = function (content, time) {
return _proxyDialog({
id: 'Tips',
zIndex: _zIndex(),
title: false,
cancel: false,
fixed: true,
lock: false
})
.content('<div style="padding: 0 1em;">' + content + '</div>')
.time(time || 1.5);
};
// 增强artDialog拖拽体验
// - 防止鼠标落入iframe导致不流畅
// - 对超大对话框拖动优化
$(function () {
var event = artDialog.dragEvent;
if (!event) return;
var $window = $(window),
$document = $(document),
positionType = _isIE6 ? 'absolute' : 'fixed',
dragEvent = event.prototype,
mask = document.createElement('div'),
style = mask.style;
style.cssText = 'display:none;position:' + positionType + ';left:0;top:0;width:100%;height:100%;'
+ 'cursor:move;filter:alpha(opacity=0);opacity:0;background:#FFF';
document.body.appendChild(mask);
dragEvent._start = dragEvent.start;
dragEvent._end = dragEvent.end;
dragEvent.start = function () {
var DOM = artDialog.focus.DOM,
main = DOM.main[0],
iframe = DOM.content[0].getElementsByTagName('iframe')[0];
dragEvent._start.apply(this, arguments);
style.display = 'block';
style.zIndex = artDialog.defaults.zIndex + 3;
if (positionType === 'absolute') {
style.width = $window.width() + 'px';
style.height = $window.height() + 'px';
style.left = $document.scrollLeft() + 'px';
style.top = $document.scrollTop() + 'px';
};
if (iframe && main.offsetWidth * main.offsetHeight > 307200) {
main.style.visibility = 'hidden';
};
};
dragEvent.end = function () {
var dialog = artDialog.focus;
dragEvent._end.apply(this, arguments);
style.display = 'none';
if (dialog) dialog.DOM.main[0].style.visibility = 'visible';
};
});
})(this.art || this.jQuery, this, this.artDialog);
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/altdialog/plugins/iframeTools.source.js | JavaScript | oos | 12,030 |
$.extend({
includePath: '',
include: function (file) {
var files = typeof file == "string" ? [file] : file;
for (var i = 0; i < files.length; i++) {
var name = files[i].replace(/^\s|\s$/g, "");
var att = name.split('.');
var ext = att[att.length - 1].toLowerCase();
var isCSS = ext == "css";
var tag = isCSS ? "link" : "script";
var attr = isCSS ? " type='text/css' rel='stylesheet' " : " language='javascript' type='text/javascript' ";
var link = (isCSS ? "href" : "src") + "='" + $.includePath + name + "'";
if ($(tag + "[" + link + "]").length == 0) document.write("<" + tag + attr + link + "></" + tag + ">");
}
}
});
$(function () {
//文本框焦点
$("input.webSearch").focus(function () {
$(this).addClass("webfocus");
}).blur(function () {
$(this).removeClass("webfocus");
});
}) | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/common.js | JavaScript | oos | 980 |
myFocus.extend({//*********************搜狐体育******************
mF_sohusports:function(par,F){
var box=F.$(par.id);
F.addList(box,['txt','num']);
var pic=F.$li('pic',box),txt=F.$li('txt',box),num=F.$li('num',box),n=txt.length;
//CSS
for(var i=0;i<n;i++){pic[i].style.display=txt[i].style.display='none';}
//PLAY
eval(F.switchMF(function(){
pic[index].style.display='none';
txt[index].style.display='none';
num[index].className='';
},function(){
F.fadeIn(pic[next]);
txt[next].style.display='';
num[next].className='current';
}))
eval(F.bind('num','par.trigger',par.delay));
}
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_sohusports.js | JavaScript | oos | 644 |
/*=========mF_taobao2010========*/
.mF_taobao2010 .pic{position:absolute;}
.mF_taobao2010 .pic li{position:relative;overflow:hidden;}
.mF_taobao2010 .left li{float:left;}
.mF_taobao2010 .right li{float:right;}
.mF_taobao2010 .txt li{position:absolute;z-index:2;bottom:0;width:100%;height:38px;line-height:38px;display:none;}/*默认标题高度*/
.mF_taobao2010 .txt li a{display:block;position:relative;z-index:1;color:#fff;padding-left:16px;font-size:14px;font-weight:bold;text-decoration:none;}/*标题样式*/
.mF_taobao2010 .txt li span{display:block;height:100%;position:absolute;top:0;left:0;background:#000;filter:alpha(opacity=30);opacity:0.3;}
.mF_taobao2010 .num{position:absolute;z-index:3;bottom:6px;right:6px;}/*按钮样式*/
.mF_taobao2010 .num li{float:left;}
.mF_taobao2010 .num li a{float:left;color:#E54B3B;width:20px;height:18px;position:relative;line-height:18px;border:1px solid #F27602;text-align:center;margin-right:3px;cursor:pointer;background:#FDF1D4;text-decoration:none;}
.mF_taobao2010 .num li.current a,.mF_taobao2010 .num li.hover a{background:#FE8B18;color:#fff;border-color:#D86C01;font-weight:bold;height:20px;line-height:20px;top:-2px;} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_taobao2010.css | CSS | oos | 1,184 |
myFocus.extend({//*********************配件商城风格******************
mF_peijianmall:function(par,F){
var box=F.$(par.id);
F.addList(box,['txt']);
var pics=F.$c('pic',box),txt=F.$li('txt',box),n=txt.length,param={};//运行时相关参数
pics.innerHTML+=pics.innerHTML;//无缝复制
//CSS
var pic=F.$li('pic',box),dir=par.direction,dis=par.width;//先假设左右
for(var i=0;i<pic.length;i++) pic[i].style.cssText='width:'+par.width+'px;height:'+par.height+'px;'//消除上下li间的多余间隙
if(dir=='left'||dir=='right') {pics.style.cssText='width:'+2*dis*n+'px;';pics.className+=' '+dir;}//左右运动设定
else {dis=par.height; pics.style.height=2*dis*n + 'px';}//上下运动设定
if(dir=='bottom'||dir=='right') pics.style[dir]=0+'px';//向下或向右的特殊处理
//CSS++
var txtH=isNaN(par.txtHeight/1)?34:par.txtHeight;//设置默认的文字高度
if(txtH===0) for(var i=0;i<n;i++) txt[i].innerHTML='';
//PLAY
eval(F.switchMF(function(){
txt[index>=n?(index-n):index].className = '';
},function(){
param[dir]=-dis*next;
F.slide(pics,param,par.duration,par.easing);
txt[next>=n?(next-n):next].className = 'current';
},'par.less','dir'));
eval(F.bind('txt','par.trigger',par.delay));
}
});
myFocus.set.params('mF_peijianmall',{//可选个性参数
less:true,//是否无缝,可选:true(是) | false(否)
duration:800,//过渡时间(毫秒),时间越大速度越小
direction:'left',//运动方向,可选:'top'(向上) | 'bottom'(向下) | 'left'(向左) | 'right'(向右)
easing:'easeOut'//运动形式,可选:'easeOut'(快出慢入) | 'easeIn'(慢出快入) | 'easeInOut'(慢出慢入) | 'swing'(摇摆运动) | 'linear'(匀速运动)
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_peijianmall.js | JavaScript | oos | 1,764 |
myFocus.extend({//*********************tbhuabao******************
mF_tbhuabao:function(par,F){
var box=F.$(par.id);
F.addList(box,['dot','txt','prev','next']);F.wrap([F.$c('pic',box)],'win');
var pics=F.$c('pic',box),dot=F.$li('dot',box),txt=F.$li('txt',box),pre=F.$c('prev',box),nex=F.$c('next',box),n=txt.length;
pics.innerHTML+=pics.innerHTML;//无缝复制
for(var i=0;i<n;i++) dot[i].innerHTML='<a href="javascript:;">•</a>';//小点
pre.innerHTML='<a href="javascript:;">‹</a>';nex.innerHTML='<a href="javascript:;">›</a>';//前后箭头
//CSS
var win=F.$c('win',box),pic=F.$li('pic',box),dots=F.$c('dot',box),dotH=32,arTop=par.height/2-32;
box.style.height=par.height+dotH+'px';
win.style.cssText='width:'+par.width+'px;height:'+par.height+'px;';
pics.style.width=par.width*2*n+'px';
for(var i=0;i<n;i++) txt[i].style.bottom=dotH+'px';
for(var i=0;i<2*n;i++) pic[i].style.cssText='width:'+par.width+'px;height:'+par.height+'px;';//滑动固定其大小
pre.style.cssText=nex.style.cssText='top:'+arTop+'px;';
//PLAY
eval(F.switchMF(function(){
txt[index>=n?(index-n):index].style.display='none';
dot[index>=n?(index-n):index].className = '';
},function(){
F.slide(pics,{left:-par.width*next});
txt[next>=n?(next-n):next].style.display='block';
dot[next>=n?(next-n):next].className = 'current';
},'par.less'));
eval(F.bind('dot','par.trigger',par.delay));
eval(F.turn('pre','nex'));
}
});
myFocus.set.params('mF_tbhuabao',{less:true});//支持无缝设置 | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_tbhuabao.js | JavaScript | oos | 1,564 |
/*=========mF_luluJQ========*/
.mF_luluJQ_wrap{padding:8px;border:1px solid #999;float:left;background:#fff;}/*背景边框*/
.mF_luluJQ{width:546px;}/*loading前显示的宽,可以随意调整,不影响实际宽度,也可删除*/
.mF_luluJQ .pic{width:100%;}
.mF_luluJQ .pic li{position:absolute;}
.mF_luluJQ .pic li a{display:block;width:100%;height:100%;position:relative;text-decoration:none;overflow:hidden;}
.mF_luluJQ .pic li a span{display:block;position:relative;width:100%;height:34px;line-height:34px;overflow:hidden;}
.mF_luluJQ .pic li a span b{display:block;position:relative;color:#fff;padding-left:16px;font-size:14px;z-index:1;cursor:pointer;}
.mF_luluJQ .pic li a span i{position:absolute;left:0;top:0;width:100%;height:100%;filter:alpha(opacity=50);opacity: 0.5;background:#000;} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_luluJQ.css | CSS | oos | 812 |
myFocus.extend({//*********************淘宝2010主页风格******************
mF_taobao2010:function(par,F){
var box=F.$(par.id);
F.addList(box,['txt','num']);
var pics=F.$c('pic',box),txt=F.$li('txt',box),num=F.$li('num',box);
var n=txt.length,param={};//运行时相关参数
pics.innerHTML+=pics.innerHTML;//无缝复制
//CSS
var pic=F.$li('pic',box),dir=par.direction,dis=par.width;//先假设左右
for(var i=0;i<pic.length;i++) pic[i].style.cssText='width:'+par.width+'px;height:'+par.height+'px;'//消除上下li间的多余间隙
if(dir=='left'||dir=='right') {pics.style.cssText='width:'+2*dis*n+'px;';pics.className+=' '+dir;}//左右运动设定
else {dis=par.height; pics.style.height=2*dis*n + 'px';}//上下运动设定
if(dir=='bottom'||dir=='right') pics.style[dir]=0+'px';//向下或向右的特殊处理
//PLAY
eval(F.switchMF(function(){
txt[index>=n?(index-n):index].style.display='none';
num[index>=n?(index-n):index].className = '';
},function(){
param[dir]=-dis*next;
F.slide(pics,param,par.duration,par.easing);
txt[next>=n?(next-n):next].style.display='block';
num[next>=n?(next-n):next].className = 'current';
},'par.less','dir'))
eval(F.bind('num','par.trigger',par.delay));
}
});
myFocus.set.params('mF_taobao2010',{//可选个性参数
less:true,//是否无缝,可选:true(是)/false(否)
duration:600,//过渡时间(毫秒),时间越大速度越小
direction:'top',//运动方向,可选:'top'(向上) | 'bottom'(向下) | 'left'(向左) | 'right'(向右)
easing:'easeOut'//运动形式,可选:'easeOut'(快出慢入) | 'easeIn'(慢出快入) | 'easeInOut'(慢出慢入) | 'swing'(摇摆运动) | 'linear'(匀速运动)
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_taobao2010.js | JavaScript | oos | 1,756 |
myFocus.extend({//*********************kiki******************
mF_kiki:function(par,F){
var box=F.$(par.id);
F.addList(box,['txt','btn','prev','next']);
var pic=F.$li('pic',box),txt=F.$li('txt',box),btn=F.$li('btn',box),pre=F.$c('prev',box),nex=F.$c('next',box),n=txt.length;
F.wrap([pre,nex],'con'),pre.innerHTML='<a href="javascript:;">PREV</a> |',nex.innerHTML='<a href="javascript:;">NEXT</a>';
//CSS
var d1=par.width/2,d2=par.height/2,txtH=isNaN(par.txtHeight/1)?30:par.txtHeight;//设置默认的文字高度;
box.style.height=par.height+txtH+'px';
//PLAY
var s1,s2=1;//方向选择
switch(par.turn){
case 'left':s1=1,s2=1;break;
case 'right':s1=1,s2=-1;break;
case 'up':s1=2,s2=1;break;
case 'down':s1=2,s2=-1;break;
}
eval(F.switchMF(function(){},function(){
btn[prev].className='',btn[next].className='current';
var tt=s1==1?1:(s1==2?2:Math.round(1+(Math.random()*(2-1)))),dis,d,p_s1={},p_s2={},p_e={};
dis=tt==1?d1:d2,d=s2*dis,p_s1[tt==1?'left':'top']=d,p_s2[tt==1?'left':'top']=-d,p_e[tt==1?'left':'top']=0;
if(!first){F.stop(pic[prev]),pic[prev].style.cssText='left:0;top:0;z-index:3';}
if(!first){F.stop(pic[next]),pic[next].style.cssText='left:0;top:0;z-index:2';}
F.slide(pic[prev],p_s2,300,'linear',function(){txt[prev].style.display='none',this.style.zIndex=1,F.slide(this,p_e,800,'easeOut',function(){this.style.zIndex='';});});
F.slide(pic[next],p_s1,300,'linear',function(){txt[next].style.display='block',this.style.zIndex=3,F.slide(this,p_e,800,'easeOut');});
}));
eval(F.bind('btn','par.trigger',0));
eval(F.turn('pre','nex'));
}
});
myFocus.set.params('mF_kiki',{turn:'random'})//翻牌方向,可选:'left'(左)|'right'(右)|'up'(上)|'down'(下)|'random'(单向随机) | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_kiki.js | JavaScript | oos | 1,789 |
/*=========mF_pconline========*/
.mF_pconline .pic li{width:100%;height:100%;overflow:hidden;position:absolute;display:none;}
.mF_pconline .txt li{position:absolute;z-index:2;bottom:0;height:28px;line-height:28px;background:#DBDBDB;display:none;}
.mF_pconline .txt li a{display:block;position:relative;z-index:1;color:#333;padding-left:10px;font-size:12px;font-weight:bold;text-decoration:none;}/*标题样式*/
.mF_pconline .num{position:absolute;z-index:3;bottom:5px;right:5px;}/*按钮样式*/
.mF_pconline .num li{float:left;}
.mF_pconline .num li a{color:#333;float:left;margin-left:3px;width:15px;height:15px;line-height:15px;*line-height:14px;overflow:hidden;border:1px solid #AEC1CC;text-align:center;cursor:pointer;background:#fff;text-decoration:none;}
.mF_pconline .num li.current a,.mF_pconline .num li.hover a{color:#fff;background:#f60;}/*当前/悬停按钮样式* | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_pconline.css | CSS | oos | 886 |
/*=========mF_expo2010 --2010世博主题========*/
.mF_expo2010 .pic li{position:absolute;}
.mF_expo2010 .txt li{position:absolute;z-index:2;left:0;height:36px;line-height:36px;}
.mF_expo2010 .txt li a{display:block;color:#fff;padding:2px 0 0 16px;font-size:14px;font-weight:bold;text-decoration:none;}/*标题样式*/
.mF_expo2010 .txt-bg{position:absolute;bottom:0;z-index:1;height:36px;background:#000;filter:alpha(opacity=40);opacity:0.4;}/*标题背景*/
.mF_expo2010 .num{position:absolute;z-index:3;bottom:8px;right:8px;}
.mF_expo2010 .num li{float:left;position:relative;width:22px;height:18px;line-height:18px;overflow:hidden;text-align:center;margin-right:1px;cursor:pointer;}
.mF_expo2010 .num li a,.mF_expo2010 .num li span{position:absolute;z-index:2;display:block;color:#fff;width:100%;height:100%;top:0;left:0;text-decoration:none;}/*按钮样式*/
.mF_expo2010 .num li span{z-index:1;background:#fff;filter:alpha(opacity=50);opacity:0.5;}
.mF_expo2010 .num li.current a,.mF_expo2010 .num li.hover a{background:#F60;}/*当前/悬停按钮*/ | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_expo2010.css | CSS | oos | 1,065 |
/*=========mF_liuzg --绚丽切片风格========*/
.mF_liuzg .pic li{position:relative;overflow:hidden;float:left;}
.mF_liuzg .pic li div{width:100%;position:absolute;}
.mF_liuzg .pic li div a{display:block;overflow:hidden;}
.mF_liuzg .txt li{position:absolute;z-index:2;bottom:0;height:36px;line-height:36px;display:none;}
.mF_liuzg .txt li a{display:block;position:relative;z-index:1;color:#fff;padding-left:16px;font-size:14px;font-weight:bold;text-decoration:none;}/*标题样式*/
.mF_liuzg .txt li span{display:block;height:100%;position:absolute;top:0;left:0;background:#000;filter:alpha(opacity=40);opacity:0.4;}/*标题背景*/
.mF_liuzg .num{position:absolute;z-index:3;bottom:6px;right:8px;color:#333;}
.mF_liuzg .num li{float:left;width:22px;height:18px;position:relative;border:1px solid #333;line-height:18px;text-align:center;margin-right:3px;cursor:pointer;background:#eee;filter:alpha(opacity=70);opacity:0.7;}/*按钮样式*/
.mF_liuzg .num li a{color:#333;text-decoration:none;}
.mF_liuzg .num li.current{background:#f60;font-weight:bold;height:20px;line-height:20px;top:-2px;filter:alpha(opacity=100);opacity:1;}
.mF_liuzg .num li.current a{color:#fff;} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_liuzg.css | CSS | oos | 1,184 |
myFocus.extend({//*********************pithy******************
mF_pithy_tb:function(par,F){
var box=F.$(par.id);
F.addList(box,['thumb','txt','prev','next']);
var pics=F.$c('pic',box),thus=F.$c('thumb',box),thu=F.$li('thumb',box),txt=F.$li('txt',box),pre=F.$c('prev',box),nex=F.$c('next',box),n=txt.length;
pics.innerHTML+=pics.innerHTML;//无缝复制
//CSS
var pic=F.$li('pic',box),sw=par.width/4,sh=Math.floor(par.height/4);
box.style.width=5*sw+4+'px';
pics.style.height=2*par.height*n + 'px';
thus.style.cssText='width:'+sw+'px;height:'+sh*n+'px;';
for(var i=0;i<n;i++){
thu[i].style.cssText='width:'+(sw-17)+'px;height:'+(sh-10)+'px';//减去总padding
F.$$('span',thu[i])[0].style.cssText='width:'+(sw-7-1)+'px;height:'+(sh-2)+'px';//减去1px边框和pading
}
for(var i=0;i<2*n;i++) pic[i].style.height=par.height+'px';//消除间隙
pre.style.right=sw+40+'px';nex.style.right=sw+16+'px';//相差nex的宽=24
//PLAY
eval(F.switchMF(function(){
txt[index>=n?(index-n):index].style.display='none';
thu[index>=n?(index-n):index].className = '';
},function(){
F.slide(pics,{top:-par.height*next},600);
txt[next>=n?(next-n):next].style.display='block';
thu[next>=n?(next-n):next].className = 'current';
eval(F.scroll('thus','"top"','sh',4));
},'par.less','"top"'));
eval(F.bind('thu','"click"'));//让其只支持click点击
eval(F.turn('pre','nex'));
}
});
myFocus.set.params('mF_pithy_tb',{less:true}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_pithy_tb.js | JavaScript | oos | 1,502 |
myFocus.extend({
mF_classicHB:function(par,F){//*********************经典怀旧系列二--海报风格******************
var box=F.$(par.id);//定义焦点图盒子
F.addList(box,['txt','num']);//添加ul列表
var pic=F.$li('pic',box),txt=F.$li('txt',box),num=F.$li('num',box),n=pic.length;//定义焦点图元素
//CSS
var txtH=isNaN(par.txtHeight/1)?20:par.txtHeight;//设置默认的文字高度
for(var i=0;i<n;i++){
pic[i].style.cssText="display:none;top:-"+0.1*par.height+"px;left:-"+0.1*par.width+"px;width:"+1.2*par.width+"px;height:"+1.2*par.height+"px;"
txt[i].style.top=-txtH+'px';
}
//PLAY
eval(F.switchMF(function(){
F.stop(pic[index]).stop(txt[index]);
pic[index].style.cssText="display:none;top:-"+0.1*par.height+"px;left:-"+0.1*par.width+"px;width:"+1.2*par.width+"px;height:"+1.2*par.height+"px;"
txt[index].style.top=-txtH+'px';
F.slide(num[index],{width:16},200),num[index].className='';
},function(){
F.fadeIn(pic[next],300).slide(pic[next],{width:par.width,height:par.height,top:0,left:0},300)
F.slide(txt[next],{top:0},300);
F.slide(num[next],{width:26},200),num[next].className='current';
}))
eval(F.bind('num','par.trigger',par.delay));
}
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_classicHB.js | JavaScript | oos | 1,246 |
myFocus.extend({//*********************趣玩风格******************
mF_quwan:function(par,F){
var box=F.$(par.id);
F.addList(box,['txt','num']);
var pic=F.$li('pic',box),txt=F.$li('txt',box),num=F.$li('num',box),n=txt.length;
//CSS
var numH=num[0].offsetHeight;
for(var i=0;i<n;i++){
box.style.height=par.height+numH+1+'px';
txt[i].style.cssText='bottom:'+(numH+1)+'px;';
}
//PLAY
eval(F.switchMF(function(){
pic[index].style.display='none';
txt[index].style.display='none';
num[index].className='';
},function(){
F.fadeIn(pic[next]);
txt[next].style.display='block';
num[next].className='current';
}));
eval(F.bind('num','par.trigger',par.delay));
}
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_quwan.js | JavaScript | oos | 729 |
myFocus.extend({//*********************液动风格******************
mF_liquid:function(par,F){
var box=F.$(par.id);
F.addList(box,['mod','txt','num']);F.$c('mod',box).innerHTML=F.$c('pic',box).innerHTML;
var pic=F.$li('pic',box),mod=F.$li('mod',box),txt=F.$li('txt',box),num=F.$li('num',box),n=pic.length;
//CSS
var imod=(function(){for(var a=[],i=0;i<n;i++) a.push(F.$$('img',mod[i])[0]);return a;})();
for(var i=0;i<n;i++){
pic[i].style.cssText='width:0px;z-index:1;';
imod[i].style.cssText='width:'+par.width*10+'px;height:'+par.height+'px;left:'+par.width+'px;';
}
//PLAY
eval(F.switchMF(function(){
F.stop(pic[index]).stop(imod[index]);
pic[index].style.width=0+'px';
imod[index].style.left=par.width+'px';
txt[index].style.display='none';
num[index].className = '';
},function(){
F.slide(imod[next],{left:0},100,'linear',function(){F.slide(pic[next],{width:par.width},700).slide(this,{left:-9*par.width},700)});
txt[next].style.display='block';
num[next].className = 'current';
}));
eval(F.bind('num','par.trigger',0));//延迟固定为0以兼容IE6
}
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_liquid.js | JavaScript | oos | 1,144 |
/*=========mF_peijianmall========*/
.mF_peijianmall .pic{position:absolute;}
.mF_peijianmall .pic li{overflow:hidden;}
.mF_peijianmall .left li{float:left;}
.mF_peijianmall .right li{float:right;}
.mF_peijianmall .txt{position:absolute;z-index:2;left:18px;bottom:10px;}
.mF_peijianmall .txt li{float:left;margin-right:10px;height:34px;width:62px;padding:3px;border:1px solid #f90;overflow:hidden;cursor:pointer;background:#FBF6DC;}
.mF_peijianmall .txt li a{color:#D3520C; text-decoration:none;}
.mF_peijianmall .txt li.current{border:1px solid #c00;background:#FB7917;}
.mF_peijianmall .txt li.current a{color:#fff;}
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_peijianmall.css | CSS | oos | 628 |
/*=========mF_kiki========*/
.mF_kiki_wrap{padding:6px;border:1px solid #999;float:left;background:#fff;}/*背景边框*/
.mF_kiki .pic li{position:absolute;top:0;left:0;width:100%;height:100%;overflow:hidden;}
.mF_kiki .txt li{position:absolute;z-index:2;left:0;bottom:0;height:30px;line-height:30px;*line-height:32px;overflow:hidden;background:url(http://www.cosmissy.com/img/myfocus/tit-ar.gif) left 10px no-repeat;display:none;}
.mF_kiki .txt li a{display:block;color:#333;padding-left:32px;font-size:12px;text-decoration:none;}
.mF_kiki .btn{position:absolute;bottom:34px;right:2px;z-index:9;}
.mF_kiki .btn li{float:left;margin-right:2px;width:20px;height:6px;overflow:hidden;border:1px solid #000;background:#ccc;cursor:pointer;}
.mF_kiki .btn li.current,.mF_kiki .btn li.hover{background:#E92B00;}
.mF_kiki .con{position:absolute;width:100px;height:30px;line-height:30px;z-index:3;bottom:0;right:0;}/*按钮样式*/
.mF_kiki .con .prev{float:left;cursor:pointer;padding-left:10px;background:url(http://www.cosmissy.com/img/myfocus/ar-left.gif) left no-repeat;}
.mF_kiki .con .next{float:left;cursor:pointer;padding:0 10px 0 4px;background:url(http://www.cosmissy.com/img/myfocus/ar-right.gif) right no-repeat;}
.mF_kiki .con .prev a,.mF_kiki .con .next a{color:#333; text-decoration:none;}
.mF_kiki .con .prev a:hover,.mF_kiki .con .next a:hover{color:#D91C00;} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_kiki.css | CSS | oos | 1,381 |
myFocus.extend({
mF_classicHC:function(par,F){//*********************经典怀旧系列一--慧聪风格******************
var box=F.$(par.id);//定义焦点图盒子
F.addList(box,['txt','num-bg','num']);//添加ul列表
var pic=F.$li('pic',box),txt=F.$li('txt',box),num=F.$li('num',box),n=pic.length;//定义焦点图元素
//CSS
var txtH=isNaN(par.txtHeight/1)?26:par.txtHeight;//设置默认的文字高度
box.style.width=par.width+2+'px';box.style.height=par.height+txtH+2+'px';
F.$c('num-bg',box).style.bottom=F.$c('num',box).style.bottom=txtH+1+'px';
for(var i=0;i<n;i++){
pic[i].style.display='none';
txt[i].style.cssText='display:none;top:'+(par.height+2)+'px;width:'+(par.width+2)+'px';
}
//PLAY
eval(F.switchMF(function(){
pic[index].style.display='none';
txt[index].style.display='none';
num[index].className='';
},function(){
F.fadeIn(pic[next]);
txt[next].style.display='';
num[next].className='current';
}))
eval(F.bind('num','par.trigger',par.delay));
}
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_classicHC.js | JavaScript | oos | 1,053 |
myFocus.extend({//*********************ladyQ******************
mF_ladyQ:function(par,F){
var box=F.$(par.id);
F.addList(box,['txt','num','cout']);F.wrap([F.$c('num',box)],'num_box');
var pic=F.$li('pic',box),txt=F.$li('txt',box),num=F.$li('num',box),cout=F.$c('cout',box),n=txt.length,over=false,start=true;
//CSS
var numH=28,coutW=par.width-23*n-6;
box.style.height=par.height+numH+'px';
cout.style.cssText='top:'+(par.height+4)+'px;width:'+coutW+'px';
for(var i=0;i<n;i++) txt[i].style.bottom=numH-1+'px',pic[i].style.display='none';
//PLAY
eval(F.switchMF(function(){
pic[index].style.zIndex=1;
if(!start) F.slide(pic[index],{opacity:0},600,'easeOut',function(){this.index=''});
txt[index].style.display='none';
num[index].className='';
F.stop(cout),cout.style.width=coutW+'px';
if(!over) F.slide(cout,{width:0},_t,'linear');
},function(){
F.slide(pic[next],{opacity:1},600,'easeInOut');
txt[next].style.display='block';
num[next].className='current',start=false;
}));
eval(F.bind('num','par.trigger',par.delay));
F.addEvent(box,'mouseover',function(){F.stop(cout),cout.style.width=coutW+'px',over=true;});
F.addEvent(box,'mouseout',function(){F.slide(cout,{width:0},_t,'linear'),over=false;});
}
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_ladyQ.js | JavaScript | oos | 1,289 |
myFocus.extend({//*********************2010世博******************
mF_expo2010:function(par,F){
var box=F.$(par.id);//定义焦点图盒子
F.addList(box,['txt-bg','txt','num']);//添加ul列表
var pic=F.$li('pic',box),txt=F.$li('txt',box),num=F.$li('num',box),n=pic.length;//定义焦点图元素
//CSS
var H='default'?36:par.txtHeight+60;
for(var i=0;i<n;i++){
pic[i].style.display="none";
txt[i].style.bottom=-H+'px';
}
//PLAY
eval(F.switchMF(function(){
F.fadeOut(pic[index]);
num[index].className='';
},function(){
F.fadeIn(pic[next]);
F.slide(txt[prev],{bottom:-H},200,'swing',function(){F.slide(txt[next],{bottom:0},200,'easeOut')});
num[next].className='current';
}))
eval(F.bind('num','par.trigger',200));//固定其延迟
}
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_expo2010.js | JavaScript | oos | 808 |
/*=========mF_quwan========*/
.mF_quwan,.mF_quwan .pic{border-bottom:1px solid #E2E2E2;}
.mF_quwan .pic li{width:100%;height:100%;overflow:hidden;position:absolute;display:none;}
.mF_quwan .txt li{position:absolute;z-index:2;*bottom:16px!important;height:34px;line-height:34px;display:none;}
.mF_quwan .txt li a{display:block;position:relative;z-index:1;color:#fff;padding-left:16px;font-size:14px;font-weight:bold;text-decoration:none;}/*标题样式*/
.mF_quwan .txt li span{display:block;height:100%;position:absolute;top:0;left:0;background:#000;filter:alpha(opacity=30);opacity:0.3;}/*标题背景*/
.mF_quwan .num{position:absolute;z-index:3;bottom:0;*bottom:-1px;right:0;}/*按钮样式*/
.mF_quwan .num li{float:left;}
.mF_quwan .num li a{color:#B5AAB0;float:left;width:56px;height:16px;line-height:16px;overflow:hidden;text-align:center;border-left:1px solid #E2E2E2;cursor:pointer;text-decoration:none;}
.mF_quwan .num li.current a,.mF_quwan .num li.hover a{color:#fff;font-weight:bold;background:#DA0A0A;}/*当前/悬停按钮样式*/
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_quwan.css | CSS | oos | 1,056 |
/*=========mF_games_tb========*/
.mF_games_tb_wrap{float:left;background:#fff;}/*背景边框*/
.mF_games_tb {background:#f1f1f1;}
.mF_games_tb .pic{position:absolute;top:0;left:0;}
.mF_games_tb .pic li{position:absolute;width:100%;height:100%;overflow:hidden;display:none;}
.mF_games_tb .win{position:absolute;bottom:0;left:0;margin:0 10px;overflow:hidden;}
.mF_games_tb .win .thumb{position:absolute;top:0;left:0;}
.mF_games_tb .win .thumb li{position:relative;float:left;padding:14px 7px;overflow:hidden;cursor:pointer;}
.mF_games_tb .win .thumb li img{position:relative;z-index:1;width:100%;height:100%;}
.mF_games_tb .win .thumb li span{position:absolute;top:11px;left:4px;border:3px solid #D3D3D3;}
.mF_games_tb .win .thumb li.current{background:url(http://www.cosmissy.com/img/myfocus/ar.gif) center 5px no-repeat;}
.mF_games_tb .win .thumb li.current span{border-color:#FF8C00;}
.mF_games_tb .txt li{position:absolute;z-index:2;width:100%;height:38px;line-height:38px;display:none;}/*默认标题高度*/
.mF_games_tb .txt li a{display:block;position:relative;z-index:1;color:#fff;padding-left:16px;font-size:14px;font-weight:bold;text-decoration:none;}/*标题样式*/
.mF_games_tb .txt li span{display:block;height:100%;position:absolute;top:0;left:0;background:#000;filter:alpha(opacity=30);opacity:0.3;}
.mF_games_tb .prev,.mF_games_tb .next{font:bold 28px/28px arial;width:16px;overflow:hidden;position:absolute;z-index:4;left:0;bottom:11px;cursor:pointer;}
.mF_games_tb .next{left:auto;right:0;}
.mF_games_tb .prev a,.mF_games_tb .next a{display:block;color:#bbb;text-align:center;text-decoration:none;}
.mF_games_tb .prev a:hover,.mF_games_tb .next a:hover{color:#f60;} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_games_tb.css | CSS | oos | 1,702 |
myFocus.extend({//*********************luluJQ******************
mF_luluJQ:function(par,F){
var box=F.$(par.id),pics=F.$c('pic',box);
for(var i=0,l=F.$$('a',pics);i<l.length;i++) l[i].innerHTML+='<span><b>'+F.$$('img',pics)[i].alt+'</b><i></i></span>';
var pics=F.$c('pic',box),pic=F.$li('pic',box),txt=F.$$('span',pics),txtBg=F.$$('i',pics),n=pic.length;
//CSS
var pad=par.pad||32,txtH=isNaN(par.txtHeight/1)?34:par.txtHeight;//设置默认的文字高度;
box.style.width=par.width+(n-1)*pad+'px';
for(var i=0;i<n;i++){
if(i>0) pic[i].style.left=par.width+(i-1)*pad+'px';
if(i>0&&par.gray) F.alterSRC(pic[i],'-2');
txt[i].style.cssText=txtBg[i].style.cssText='height:'+txtH+'px;line-height:'+txtH+'px;'
}
//PLAY
eval(F.switchMF(function(){
F.slide(txt[index],{top:0});
if(par.gray) F.alterSRC(pic[index],'-2');
},function(){
for(var i=0;i<n;i++){
if(i<=next) F.slide(pic[i],{left:i*pad});
else F.slide(pic[i],{left:par.width+i*pad-pad});
}
F.slide(txt[next],{top:-txtH});
if(par.gray) F.alterSRC(pic[next],'-2',true);
}))
eval(F.bind('pic','par.trigger',par.delay));
}
});
myFocus.set.params('mF_luluJQ',{//可选个性参数
pad:68,//图片留边宽度(像素)
gray:false//非当前图片是否变灰,可选:true(是) | false(否),如果要变灰,请先准备图片灰色的副本并命名为:"原来图片的名字-2"
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_luluJQ.js | JavaScript | oos | 1,424 |
myFocus__AGENT__.extend({//*********************mF_slide3D******************
mF_slide3D:function(par,F){
var box=F.$(par.id);
F.addList(box,['mask11','mask12','mask21','mask22','num','next']);
var pics=F.$c('pic',box),num=F.$li('num',box),m11=F.$c('mask11',box),m12=F.$c('mask12',box),m21=F.$c('mask21',box),m22=F.$c('mask22',box),nex=F.$c('next',box),n=num.length;
pics.innerHTML+=pics.innerHTML;
nex.innerHTML='NEXT';
//PLAY
var pic=F.$li('pic',box),d=Math.ceil(par.height/6);
eval(F.switchMF(function(){
m11.style.cssText=m12.style.cssText='border-width:0px '+par.width/2+'px;';
m21.style.cssText=m22.style.cssText='border-width:'+d+'px 0px;';
num[index].className='';
},function(){
pic[n].innerHTML=pic[prev].innerHTML;
pic[n+1].innerHTML=pic[next].innerHTML;
F.$$('img',pic[n])[0].style.cssText='width:'+par.width+'px;height:'+par.height+'px';
F.$$('img',pic[n+1])[0].style.cssText='width:0px;height:'+par.height+'px';
F.slide(F.$$('img',pic[n])[0],{width:0});
F.slide(F.$$('img',pic[n+1])[0],{width:par.width});
F.slide(m11,{borderLeftWidth:0,borderRightWidth:0,borderTopWidth:d,borderBottomWidth:d});
F.slide(m12,{borderLeftWidth:0,borderRightWidth:0,borderTopWidth:d,borderBottomWidth:d});
F.slide(m21,{borderLeftWidth:par.width/2,borderRightWidth:par.width/2,borderTopWidth:0,borderBottomWidth:0});
F.slide(m22,{borderLeftWidth:par.width/2,borderRightWidth:par.width/2,borderTopWidth:0,borderBottomWidth:0});
num[next].className='current';
}));
eval(F.bind('num','par.trigger',par.delay));
eval(F.turn('nex','nex'));
}
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_slide3D.js | JavaScript | oos | 1,628 |
myFocus.extend({//*********************太平洋电脑网风格******************
mF_pconline:function(par,F){
var box=F.$(par.id);
F.addList(box,['txt','num']);
var pic=F.$li('pic',box),txt=F.$li('txt',box),num=F.$li('num',box),n=txt.length;
//CSS
var txtH=isNaN(par.txtHeight/1)?28:par.txtHeight;//设置默认的文字高度
box.style.height=par.height+txtH+'px';
//PLAY
eval(F.switchMF(function(){
pic[index].style.display='none';
txt[index].style.display='none';
num[index].className='';
},function(){
F.fadeIn(pic[next],par.duration);
txt[next].style.display='block';
num[next].className='current';
}));
eval(F.bind('num','par.trigger',par.delay));
}
});
myFocus.set.params('mF_pconline',{duration:300}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_pconline.js | JavaScript | oos | 773 |
/*=========mF_tbhuabao========*/
.mF_tbhuabao {background:#ddd;border:10px solid #333;overflow:visible;margin-left:10px;}
.mF_tbhuabao .pic,.mF_tbhuabao .win{position:absolute;top:0;left:0;overflow:hidden;}
.mF_tbhuabao .pic li{position:relative;float:left;overflow:hidden;}
.mF_tbhuabao .txt li{position:absolute;z-index:2;width:100%;height:38px;line-height:38px;display:none;}/*默认标题高度*/
.mF_tbhuabao .txt li a{display:block;position:relative;z-index:1;color:#fff;padding-left:16px;font-size:14px;font-weight:bold;text-decoration:none;}/*标题样式*/
.mF_tbhuabao .txt li span{display:block;height:100%;position:absolute;top:0;left:0;background:#000;filter:alpha(opacity=30);opacity:0.3;}
.mF_tbhuabao .dot{position:absolute;bottom:0;left:0;height:32px;line-height:28px;width:100%;text-align:center;}
.mF_tbhuabao .dot li{display:inline;margin:0 3px;}
.mF_tbhuabao .dot li a{color:#999;font-size:26px;text-decoration:none;}
.mF_tbhuabao .dot li.current a{color:#f60;}
.mF_tbhuabao .prev,.mF_tbhuabao .next{font:700 53px/58px arial;width:37px;height:65px;overflow:hidden;position:absolute;z-index:4;left:-20px;cursor:pointer;background:url(http://www.cosmissy.com/img/myfocus/btn-bg.gif) no-repeat;}
.mF_tbhuabao .next{left:auto;right:-20px;}
.mF_tbhuabao .prev a,.mF_tbhuabao .next a{display:block;color:#bbb;text-align:center;text-decoration:none;}
.mF_tbhuabao .prev a:hover,.mF_tbhuabao .next a:hover{color:#f60;}
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_tbhuabao.css | CSS | oos | 1,447 |
myFocus.extend({//*********************51xflash******************
mF_51xflash:function(par,F){
var box=F.$(par.id);
F.addList(box,['txt','play']);F.wrap([F.$c('pic',box)],'cont')
var cont=F.$c('cont',box),pics=F.$c('pic',cont),pic=F.$li('pic',cont),txt=F.$li('txt',box),btn=F.$c('play',box);
var n=pic.length;//运行时相关参数
//CSS
var pad=4,w=(par.width/3),h=(par.height-pad*2)/3,disX=w+pad,disY=h+pad,txtH=isNaN(par.txtHeight/1)?34:par.txtHeight;
box.style.cssText='width:'+(par.width+disX)+'px;height:'+(par.height+txtH+(txtH==0?0:pad))+'px;';//焦点图盒子
cont.style.cssText='width:'+(par.width+disX)+'px;height:'+par.height+'px;';//图片盒子
for(var i=0;i<n;i++){
txt[i].style.display='none';
pic[i].style.cssText='width:'+w+'px;height:'+h+'px;top:'+disY*(i-1)+'px;';
}
//PLAY
eval(F.switchMF(function(){
txt[index].style.display='none';
},function(){
pic[prev].style.zIndex=2,pic[next].style.zIndex=1;
F.slide(pic[prev],{right:0,top:parseInt(pic[next].style.top),width:w,height:h},400,'easeOut',function(){this.style.zIndex=''});
F.slide(pic[next],{right:disX,top:0,width:par.width,height:par.height},400);
txt[next].style.display='';
}))
eval(F.bind('pic','"click"'));
eval(F.toggle('btn','play','stop'));
}
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_51xflash.js | JavaScript | oos | 1,313 |
myFocus.extend({//*********************淘宝商城风格******************
mF_taobaomall:function(par,F){
var box=F.$(par.id);
F.addList(box,['txt']);F.wrap([F.$c('pic',box)],'cont')
var cont=F.$c('cont',box),pics=F.$c('pic',box),txt=F.$li('txt',box);
var n=txt.length,param={};//运行时相关参数
pics.innerHTML+=pics.innerHTML;//无缝复制
//CSS
var pic=F.$li('pic',cont),dir=par.direction,dis=par.width;//先假设左右
for(var i=0;i<pic.length;i++) pic[i].style.cssText='width:'+par.width+'px;height:'+par.height+'px;'//消除上下li间的多余间隙
if(dir=='left'||dir=='right') {pics.style.cssText='width:'+2*dis*n+'px;';pics.className+=' '+dir;}//左右运动设定
else {dis=par.height; pics.style.height=2*dis*n + 'px';}//上下运动设定
if(dir=='bottom'||dir=='right') pics.style[dir]=0+'px';//向下或向右的特殊处理
//CSS++
var txtH=isNaN(par.txtHeight/1)?28:par.txtHeight;//设置默认的文字高度
box.style.cssText='height:'+(par.height+txtH+1)+'px;';
cont.style.cssText='width:'+par.width+'px;height:'+par.height+'px;';
for(var i=0;i<n;i++) txt[i].style.width=(par.width-n-1)/n+1+'px';
txt[n-1].style.border=0;
F.$c('txt',box).style.width=2*par.width+'px';
//PLAY
eval(F.switchMF(function(){
txt[index>=n?(index-n):index].className = '';
},function(){
param[dir]=-dis*next;
F.slide(pics,param,par.duration,par.easing);
txt[next>=n?(next-n):next].className = 'current';
},'par.less','dir'));
eval(F.bind('txt','par.trigger',par.delay));
}
});
myFocus.set.params('mF_taobaomall',{//可选个性参数
less:true,//是否无缝:true(是)| false(否)
duration:600,//过渡时间(毫秒),时间越大速度越小
direction:'top',//运动方向,可选:'top'(向上) | 'bottom'(向下) | 'left'(向左) | 'right'(向右)
easing:'easeOut'//运动形式,可选:'easeOut'(快出慢入) | 'easeIn'(慢出快入) | 'easeInOut'(慢出慢入) | 'swing'(摇摆运动) | 'linear'(匀速运动)
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_taobaomall.js | JavaScript | oos | 2,032 |
/*=========mF_sohusports========*/
.mF_sohusports_wrap{padding:8px;border:1px solid #999;float:left;background:#fff;}/*背景边框*/
.mF_sohusports .pic li{position:absolute;}
.mF_sohusports .txt li{position:absolute;z-index:2;bottom:0;height:60px;line-height:32px;}
.mF_sohusports .txt li a{display:block;position:relative;z-index:1;color:#fff;padding-left:16px;font-size:14px;font-weight:bold;text-decoration:none;}/*标题样式*/
.mF_sohusports .txt li span{display:block;height:100%;position:absolute;top:0;left:0;background:#000;filter:alpha(opacity=40);opacity:0.4;}/*标题背景*/
.mF_sohusports .txt li p{display:none;}/*隐藏详细描述*/
.mF_sohusports .num{position:absolute;z-index:3;bottom:8px;right:6px;}/*按钮样式*/
.mF_sohusports .num li{float:left;}
.mF_sohusports .num li a{color:#fff;float:left;width:20px;height:20px;line-height:18px;overflow:hidden;text-align:center;margin-right:4px;cursor:pointer;background:url(http://www.cosmissy.com/myfocus/img/sh-btn.gif) left no-repeat;text-decoration:none;}
.mF_sohusports .num li.current a,.mF_sohusports .num li.hover a{color:#FF7B11;background-position:right;}/*当前/悬停按钮样式*/ | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_sohusports.css | CSS | oos | 1,174 |
/*=========mF_51xflash========*/
.mF_51xflash_wrap{padding:8px;border:1px solid #999;float:left;background:#fff;}/*背景边框*/
.mF_51xflash .cont{position:absolute;top:0;left:0;overflow:hidden;}
.mF_51xflash .cont .pic{position:static;}
.mF_51xflash .cont .pic li{position:absolute;right:0;}
.mF_51xflash .cont .pic li a,.mF_51xflash .cont .pic li a img{display:block;width:100%;height:100%;}
.mF_51xflash .txt{position:absolute;left:0;bottom:0;width:100%;height:34px;line-height:34px;}
.mF_51xflash .txt li{position:absolute;width:100%;height:100%;background:#f1f1f1;}
.mF_51xflash .txt li a{display:block;padding-left:40px;font-size:14px;color:#333;font-weight:bold;text-decoration:none;background:url(http://www.cosmissy.com/img/myfocus/tit-ar.gif) 6px center no-repeat;}
.mF_51xflash .play,.mF_51xflash .stop{position:absolute;right:10px;bottom:6px;z-index:9;width:30px;height:23px;overflow:hidden;cursor:pointer;background:url(http://www.cosmissy.com/img/myfocus/play.gif) left -25px no-repeat;}
.mF_51xflash .stop{background-position:left top;}
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_51xflash.css | CSS | oos | 1,065 |
myFocus.extend({//*********************雷柏风格******************
mF_rapoo:function(par,F){
var box=F.$(par.id);
F.addList(box,['txt','num','prev','next']);
var pic=F.$li('pic',box),txt=F.$li('txt',box),num=F.$li('num',box),pre=F.$c('prev',box),nex=F.$c('next',box);
var n=txt.length;//运行时相关参数
pre.innerHTML='<a href="javascript:;">‹</a>';nex.innerHTML='<a href="javascript:;">›</a>';//前后箭头
//CSS
var txts=F.$c('txt',box),nums=F.$c('num',box),txtW=par.txtWidth=='default'?68:par.txtWidth||68;//设置默认的文字宽度;
txts.style.width=(n-1)*24+txtW+'px';nums.style.width=n*24+6+txtW+'px';
pre.style.right=parseInt(nums.style.width)+26+'px';
for(var i=0;i<n;i++){
txt[i].style.left=i*24+'px';
pic[i].style.left=par.width+'px';
}
//PLAY
eval(F.switchMF(function(){
txt[index].style.width=0+'px';
num[index].className='';
for(var i=0;i<n;i++) num[i].style.marginLeft=6+'px';
nex.style.right=88+'px'
},function(){
pic[next].style.zIndex=1;
F.slide(pic[next],{left:0},400,'easeInOut',function(){this.style.zIndex='';if(prev!==next){pic[prev].style.left=par.width+'px';}}).slide(txt[next],{width:txtW},400,'easeInOut').slide(nex,{right:14},400,'easeInOut');
if(next<n-1) F.slide(num[next+1],{marginLeft:txtW+12},400,'easeInOut');
num[next].className='current';
}));
eval(F.bind('num','"click"',par.delay));//让其只支持click点击
eval(F.turn('pre','nex'));
}
});
myFocus.set.params('mF_rapoo',{//可选个性参数
txtWidth:68//文字段宽度(像素)
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_rapoo.js | JavaScript | oos | 1,597 |
/*=========mF_taobaomall========*/
.mF_taobaomall{border:1px solid #ccc;}
.mF_taobaomall .cont{position:relative;overflow:hidden;border-bottom:0;}
.mF_taobaomall .cont .pic{position:absolute;}
.mF_taobaomall .cont .pic li{position:relative;overflow:hidden;}
.mF_taobaomall .cont .left li{float:left;}
.mF_taobaomall .cont .right li{float:right;}
.mF_taobaomall .txt{line-height:28px;border-top:1px solid #ccc;overflow:hidden;}/*默认标题高度*/
.mF_taobaomall .txt li{float:left;border-right:1px solid #dedede;overflow:hidden;}/*默认标题高度*/
.mF_taobaomall .txt li a{display:block;color:#333;padding-left:10px;font-size:12px;text-decoration:none;background:url(http://www.cosmissy.com/img/myfocus/btn-bg2.gif) left -44px repeat-x;}/*标题样式*/
.mF_taobaomall .txt li.current a{color:#fff;font-weight:bold;background-position:left top;}
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_taobaomall.css | CSS | oos | 863 |
myFocus.extend({//*********************奇艺******************
mF_qiyi:function(par,F){
var box=F.$(par.id);
F.addList(box,['txt','num']);F.wrap([F.$c('pic',box),F.$c('txt',box)],'swt');
var swt=F.$c('swt',box),pic=F.$li('pic',swt),txt=F.$li('txt',swt),num=F.$li('num',box),n=txt.length;
//CSS
var txtH=isNaN(par.txtHeight/1)?34:par.txtHeight;//设置默认的文字高度
swt.style.width=par.width*n+'px';
for(var i=0;i<n;i++) pic[i].style.width=par.width+'px';
//PLAY
eval(F.switchMF(function(){
num[index].className='';
},function(){
txt[next].style.top=0+'px';//复位
F.slide(swt,{left:-par.width*next},800,'easeOut',function(){F.slide(txt[next],{top:-txtH})});
num[next].className='current';
}))
eval(F.bind('num','par.trigger',par.delay));
}
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_qiyi.js | JavaScript | oos | 810 |
/*=========mF_pithy_tb========*/
.mF_pithy_tb_wrap{padding:8px;border:1px solid #999;float:left;background:#fff;}/*背景边框*/
.mF_pithy_tb .pic{position:absolute;top:0;left:0;}
.mF_pithy_tb .pic li{width:100%;overflow:hidden;}
.mF_pithy_tb .thumb,.mF_pithy_tb .tw{position:absolute;top:0;right:0;overflow:hidden;}
.mF_pithy_tb .thumb li{position:relative;float:left;padding:5px 5px 5px 12px;overflow:hidden;cursor:pointer;}
.mF_pithy_tb .thumb li img{position:relative;z-index:1;width:100%;height:100%;}
.mF_pithy_tb .thumb li span{position:absolute;top:0;left:7px;border:1px solid #f1f1f1;background:#f1f1f1;}
.mF_pithy_tb .thumb li.current{background:url(http://www.cosmissy.com/img/myfocus/btn.gif) left center no-repeat;}
.mF_pithy_tb .thumb li.current span{border:1px solid #ccc;border-left:0;background:0;}
.mF_pithy_tb .txt li{position:absolute;z-index:2;bottom:0;width:100%;height:38px;line-height:38px;display:none;}/*默认标题高度*/
.mF_pithy_tb .txt li a{display:block;position:relative;z-index:1;color:#fff;padding-left:16px;font-size:14px;font-weight:bold;text-decoration:none;}/*标题样式*/
.mF_pithy_tb .txt li span{display:block;height:100%;position:absolute;top:0;left:0;background:#000;filter:alpha(opacity=30);opacity:0.3;}
.mF_pithy_tb .prev,.mF_pithy_tb .next{width:23px;height:15px;overflow:hidden;position:absolute;z-index:4;bottom:12px;cursor:pointer;background:url(http://www.cosmissy.com/img/myfocus/turn.gif) left top no-repeat;}
.mF_pithy_tb .next{width:24px;background-position:right top;}
| 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_pithy_tb.css | CSS | oos | 1,546 |
myFocus.extend({//*********************YSlide--翻页效果******************
mF_YSlider:function(par,F){
var box=F.$(par.id);
F.addList(box,['rePic','txt','num']);F.$c('rePic',box).innerHTML=F.$c('pic',box).innerHTML;//复制
var pic=F.$li('pic',box),rePic=F.$li('rePic',box),txt=F.$li('txt',box),num=F.$li('num',box),n=pic.length;
//PLAY
var s=par.direct=='one'?1:0,d1=par.width,d2=par.height;
eval(F.switchMF(function(){
var r=s?1:Math.round(1+(Math.random()*(2-1))),dis,d,p={};
dis=r==1?d1:d2,d=Math.round(Math.random()+s)?dis:-dis,p[r==1?'left':'top']=d;
pic[index].style.display=txt[index].style.display='none';
rePic[index].style.cssText='left:0;top:0;display:block;filter:alpha(opacity=100);opacity:1;';
F.slide(rePic[index],p,500,'swing').fadeOut(rePic[index],500);
num[index].className='';
},function(){
pic[next].style.display=txt[next].style.display='block';
num[next].className='current';
}))
eval(F.bind('num','par.trigger',par.delay));
}
});
myFocus.set.params('mF_YSlider',{direct:'random'});//切出方向,可选:'random'(随机) | 'one'(单向/向右) | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_YSlider.js | JavaScript | oos | 1,136 |
myFocus.extend({//*********************games******************
mF_games_tb:function(par,F){
var box=F.$(par.id);
F.addList(box,['thumb','txt','prev','next']);F.wrap([F.$c('thumb',box)],'win');
var pics=F.$c('pic',box),win=F.$c('win',box),thus=F.$c('thumb',box),thu=F.$li('thumb',box),txt=F.$li('txt',box),pre=F.$c('prev',box),nex=F.$c('next',box),n=txt.length;
pre.innerHTML='<a href="javascript:;">‹</a>';nex.innerHTML='<a href="javascript:;">›</a>';//前后箭头
//CSS
var pic=F.$li('pic',box),winW=par.width-20,sw=Math.floor(winW/3),sh=par.height/par.width*(sw-14)+28;//参考*按比例求高
box.style.height=par.height+sh+'px';
win.style.cssText='width:'+winW+'px;height:'+sh+'px;';
thus.style.width=sw*n+'px';
for(var i=0;i<n;i++){
thu[i].style.cssText='width:'+(sw-14)+'px;height:'+(sh-28)+'px';//减去总padding
F.$$('span',thu[i])[0].style.cssText='width:'+(sw-14)+'px;height:'+(sh-28)+'px';//参考*
txt[i].style.bottom=sh+'px';
}
pre.style.cssText=nex.style.cssText='height:'+(sh-28+6)+'px;line-height:'+(sh-28+6)+'px;';
//PLAY
eval(F.switchMF(function(){
pic[index].style.display='none';
txt[index].style.display='none';
thu[index].className = '';
},function(){
F.fadeIn(pic[next]);
txt[next].style.display='block';
thu[next].className = 'current';
eval(F.scroll('thus','"left"','sw',4));
}));
eval(F.bind('thu','"click"'));//让其只支持click点击
eval(F.turn('pre','nex'));
}
}); | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_games_tb.js | JavaScript | oos | 1,510 |
/*=========mF_rapoo========*/
.mF_rapoo_wrap{padding:4px;border:1px solid #999;float:left;background:#fff;}/*背景边框*/
.mF_rapoo .pic li{width:100%;height:100%;overflow:hidden;position:absolute;}
.mF_rapoo .txt{position:absolute;z-index:2;bottom:12px;width:140px;height:18px;right:26px;}
.mF_rapoo .txt li{position:absolute;height:18px;line-height:18px;*line-height:20px;width:0px;background:#f6f6f6;}
.mF_rapoo .txt li a{display:block;position:relative;z-index:1;color:#f60;padding:0 10px;font-size:12px;text-decoration:none;}/*标题*/
.mF_rapoo .num{position:absolute;z-index:3;bottom:12px;right:26px;}/*按钮样式*/
.mF_rapoo .num li{float:left;display:inline;margin-left:6px;width:18px;height:18px;line-height:18px;overflow:hidden;text-align:center;cursor:pointer;}
.mF_rapoo .num li a{display:block;color:#f60;background:#eee;text-decoration:none;}
.mF_rapoo .num li.current a,.mF_rapoo .num li.hover a{color:#fff;background:#f60;}/*当前/悬停按钮样式*/
.mF_rapoo .prev,.mF_rapoo .next{width:8px;height:22px;overflow:hidden;position:absolute;z-index:4;bottom:15px;right:88px;cursor:pointer;}
.mF_rapoo .prev a,.mF_rapoo .next a{display:block;font:bold 26px/28px arial;color:#E3E3E3;text-align:center;}
.mF_rapoo .prev a:hover,.mF_rapoo .next a:hover{color:#f60;} | 10aaa-10aaa | trunk/TRECommerce/TREC.Web/resource/script/pattern/mF_rapoo.css | CSS | oos | 1,294 |