/*
* Ext JS Library 0.30
* Copyright(c) 2006-2009, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
/*
* Ext JS Library 2.3.0
* Copyright(c) 2006-2009, Ext JS, LLC.
* licensing@extjs.com
*
* http://extjs.com/license
*/
Ext.DomHelper = function(){
var tempTableEl = null;
var emptyTags = /^(?:br|frame|hr|img|input|link|meta|range|spacer|wbr|area|param|col)$/i;
var tableRe = /^table|tbody|tr|td$/i;
// build as innerHTML where available
var createHtml = function(o){
if(typeof o == 'string'){
return o;
}
var b = "";
if (Ext.isArray(o)) {
for (var i = 0, l = o.length; i < l; i++) {
b += createHtml(o[i]);
}
return b;
}
if(!o.tag){
o.tag = "div";
}
b += "<" + o.tag;
for(var attr in o){
if(attr == "tag" || attr == "children" || attr == "cn" || attr == "html" || typeof o[attr] == "function") continue;
if(attr == "style"){
var s = o["style"];
if(typeof s == "function"){
s = s.call();
}
if(typeof s == "string"){
b += ' style="' + s + '"';
}else if(typeof s == "object"){
b += ' style="';
for(var key in s){
if(typeof s[key] != "function"){
b += key + ":" + s[key] + ";";
}
}
b += '"';
}
}else{
if(attr == "cls"){
b += ' class="' + o["cls"] + '"';
}else if(attr == "htmlFor"){
b += ' for="' + o["htmlFor"] + '"';
}else{
b += " " + attr + '="' + o[attr] + '"';
}
}
}
if(emptyTags.test(o.tag)){
b += "/>";
}else{
b += ">";
var cn = o.children || o.cn;
if(cn){
b += createHtml(cn);
} else if(o.html){
b += o.html;
}
b += "</" + o.tag + ">";
}
return b;
};
// build as dom
var createDom = function(o, parentNode){
var el;
if (Ext.isArray(o)) { // Allow Arrays of siblings to be inserted
el = document.createDocumentFragment(); // in one shot using a DocumentFragment
for(var i = 0, l = o.length; i < l; i++) {
createDom(o[i], el);
}
} else if (typeof o == "string") { // Allow a string as a child spec.
el = document.createTextNode(o);
} else {
el = document.createElement(o.tag||'div');
var useSet = !!el.setAttribute; // In IE some elements don't have setAttribute
for(var attr in o){
if(attr == "tag" || attr == "children" || attr == "cn" || attr == "html" || attr == "style" || typeof o[attr] == "function") continue;
if(attr=="cls"){
el.className = o["cls"];
}else{
if(useSet) el.setAttribute(attr, o[attr]);
else el[attr] = o[attr];
}
}
Ext.DomHelper.applyStyles(el, o.style);
var cn = o.children || o.cn;
if(cn){
createDom(cn, el);
} else if(o.html){
el.innerHTML = o.html;
}
}
if(parentNode){
parentNode.appendChild(el);
}
return el;
};
var ieTable = function(depth, s, h, e){
tempTableEl.innerHTML = [s, h, e].join('');
var i = -1, el = tempTableEl;
while(++i < depth){
el = el.firstChild;
}
return el;
};
// kill repeat to save bytes
var ts = '<table>',
te = '</table>',
tbs = ts+'<tbody>',
tbe = '</tbody>'+te,
trs = tbs + '<tr>',
tre = '</tr>'+tbe;
var insertIntoTable = function(tag, where, el, html){
if(!tempTableEl){
tempTableEl = document.createElement('div');
}
var node;
var before = null;
if(tag == 'td'){
if(where == 'afterbegin' || where == 'beforeend'){ // INTO a TD
return;
}
if(where == 'beforebegin'){
before = el;
el = el.parentNode;
} else{
before = el.nextSibling;
el = el.parentNode;
}
node = ieTable(4, trs, html, tre);
}
else if(tag == 'tr'){
if(where == 'beforebegin'){
before = el;
el = el.parentNode;
node = ieTable(3, tbs, html, tbe);
} else if(where == 'afterend'){
before = el.nextSibling;
el = el.parentNode;
node = ieTable(3, tbs, html, tbe);
} else{ // INTO a TR
if(where == 'afterbegin'){
before = el.firstChild;
}
node = ieTable(4, trs, html, tre);
}
} else if(tag == 'tbody'){
if(where == 'beforebegin'){
before = el;
el = el.parentNode;
node = ieTable(2, ts, html, te);
} else if(where == 'afterend'){
before = el.nextSibling;
el = el.parentNode;
node = ieTable(2, ts, html, te);
} else{
if(where == 'afterbegin'){
before = el.firstChild;
}
node = ieTable(3, tbs, html, tbe);
}
} else{ // TABLE
if(where == 'beforebegin' || where == 'afterend'){ // OUTSIDE the table
return;
}
if(where == 'afterbegin'){
before = el.firstChild;
}
node = ieTable(2, ts, html, te);
}
el.insertBefore(node, before);
return node;
};
return {
useDom : false,
markup : function(o){
return createHtml(o);
},
applyStyles : function(el, styles){
if(styles){
el = Ext.fly(el);
if(typeof styles == "string"){
var re = /\s?([a-z\-]*)\:\s?([^;]*);?/gi;
var matches;
while ((matches = re.exec(styles)) != null){
el.setStyle(matches[1], matches[2]);
}
}else if (typeof styles == "object"){
for (var style in styles){
el.setStyle(style, styles[style]);
}
}else if (typeof styles == "function"){
Ext.DomHelper.applyStyles(el, styles.call());
}
}
},
insertHtml : function(where, el, html){
where = where.toLowerCase();
if(el.insertAdjacentHTML){
if(tableRe.test(el.tagName)){
var rs;
if(rs = insertIntoTable(el.tagName.toLowerCase(), where, el, html)){
return rs;
}
}
switch(where){
case "beforebegin":
el.insertAdjacentHTML('BeforeBegin', html);
return el.previousSibling;
case "afterbegin":
el.insertAdjacentHTML('AfterBegin', html);
return el.firstChild;
case "beforeend":
el.insertAdjacentHTML('BeforeEnd', html);
return el.lastChild;
case "afterend":
el.insertAdjacentHTML('AfterEnd', html);
return el.nextSibling;
}
throw 'Illegal insertion point ->
没有合适的资源?快使用搜索试试~ 我知道了~
游戏点卡asp.NET
共2169个文件
gif:1142个
js:553个
png:127个
需积分: 3 14 下载量 132 浏览量
2011-02-17
01:59:07
上传
评论 1
收藏 5.73MB RAR 举报
温馨提示
该系统要求实现管理员后台管理和会员购买卡片功能。 会员操作包括:会员注册、修改个人信息、汇款、投诉、购买物品、查看个人汇款信息和购物信息等; 管理员后台管理包括:修改个人资料、新会员和会员汇款审核、用户管理、角色管理、卡片类别管理、游戏卡管理、汇款审核、公告管理、销售统计、投诉浏览。
资源详情
资源评论
资源推荐
收起资源包目录
游戏点卡asp.NET (2169个子文件)
Loading.ascx 5KB
Navigation.ascx 4KB
Help.ascx 827B
Bottom.ascx 545B
HomePage.aspx 8KB
MemberReqister.aspx 7KB
ShoppingCar.aspx 7KB
ReworkDetum.aspx 7KB
AdminIndex.aspx 5KB
RemitReqister.aspx 5KB
CardType.aspx 4KB
Card.aspx 4KB
ShoppingReqister.aspx 4KB
RemitInform.aspx 4KB
SelectPassword.aspx 4KB
Relation.aspx 3KB
CardASC.aspx 3KB
Car.aspx 3KB
NewsId.aspx 2KB
ComplainMake.aspx 2KB
News.aspx 2KB
AdminLogin.aspx 823B
Index.aspx 484B
PostAuditingManage.aspx 146B
ComplaintDelete.aspx 141B
ComplaintManage.aspx 141B
AuditingDelette.aspx 140B
AuditingManage.aspx 140B
CardTypeDelete.aspx 138B
CardTypeManage.aspx 138B
AfficheManage.aspx 135B
CardTypeEdit.aspx 134B
CardTypeAdd.aspx 134B
AuditingWork.aspx 134B
CardDelete.aspx 128B
RoleDelete.aspx 128B
RoleManage.aspx 128B
NewsEdit.aspx 127B
NewsDelete.aspx 127B
CardManage.aspx 126B
CardEdit.aspx 124B
UserManage.aspx 124B
NewsAdd.aspx 123B
AdminLogout.aspx 123B
UserWork.aspx 122B
UserInfo.aspx 122B
RoleEdit.aspx 122B
SellManage.aspx 121B
RondomCodeReg.aspx 121B
CardAdd.aspx 120B
RoleAdd.aspx 120B
AdminLogin.aspx 119B
AdminMain.aspx 117B
RandomCode.aspx 117B
Logout.aspx 101B
caifutong.bmp 2KB
nongye.bmp 2KB
zhifubao.bmp 2KB
gongshang.bmp 2KB
jianshe.bmp 2KB
qqtalk.bmp 2KB
ResolveAssemblyReference.cache 16KB
ResolveAssemblyReference.cache 3KB
Web.config 7KB
CardTypeService.cs 41KB
CardService.cs 30KB
PostHistoryService.cs 20KB
UserInfoService.cs 19KB
ShopHistoryService.cs 14KB
RoleInfoService.cs 12KB
ShoppingCartService.cs 12KB
postFailedInfoService.cs 11KB
NewsService.cs 10KB
SysFunService.cs 10KB
ShoppingCar.aspx.cs 10KB
AdviceService.cs 9KB
RandomCode.cs 9KB
ApproveStateService.cs 7KB
UserStateService.cs 7KB
CardStateService.cs 7KB
CardManager.cs 7KB
CardTypeManager.cs 6KB
CardType.aspx.cs 6KB
DBHelper.cs 5KB
Loading.ascx.cs 5KB
Navigation.ascx.cs 4KB
UserInfoManager.cs 4KB
CardTypeEdit.aspx.cs 4KB
PostHistoryManager.cs 4KB
UserWork.aspx.cs 4KB
Card.aspx.cs 3KB
RoleInfoManager.cs 3KB
CardTypeAdd.aspx.cs 3KB
ShoppingCartManager.cs 3KB
NewsManager.cs 3KB
UserInfo.aspx.cs 3KB
AdminMain.aspx.cs 3KB
ReworkDetum.aspx.cs 3KB
MemberReqister.aspx.cs 3KB
Car.aspx.cs 3KB
共 2169 条
- 1
- 2
- 3
- 4
- 5
- 6
- 22
xiaomadudu0816
- 粉丝: 36
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于STM32F103C8T6单片机蓄电池在线监测系统主板硬件(原理图+PCB)工程文件.zip
- mysql大纲资料.txt
- c++大纲资料.txt
- 效率工具bat脚本实现日志提取
- MyBatis 中动态 SQL 的示例
- STM8L101F3P6单片机+CC1100模块433M遥控器设计硬件(原理图+PCB)工程文件.zip
- 上传下载铁人下载系统 Liuxing 1.0-liuxing1.0.rar
- 南京邮电大学数学实验实力雄厚,凭借其优秀的师资力量、丰富的实践教学资源和卓越的科研成果,成为国内一流的数学实验教学和科研基地
- 【火爆朋友圈的今天吃什么源码 v1.0】随机的为用户带来每一天的用餐选择和推荐.rar
- MPU6050中文版数据手册
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0