2 changed files with 937 additions and 937 deletions
@ -1,441 +1,441 @@ |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|||
<head> |
|||
<title>{$lang.cp_home}</title> |
|||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|||
<link href="styles/general.css" rel="stylesheet" type="text/css" /> |
|||
{insert_scripts files="../js/jquery-1.4.2.min.js,../js/jquery.json.js,../js/transport_jquery.js"} |
|||
<script type="Text/Javascript" language="JavaScript"> |
|||
{literal} |
|||
<!-- |
|||
var pic = new Image(); |
|||
pic.src="images/arrow_right.gif"; |
|||
|
|||
|
|||
|
|||
var orgX = 0; |
|||
document.onmousedown = function(e) |
|||
{ |
|||
var evt = Utils.fixEvent(e); |
|||
orgX = evt.clientX; |
|||
|
|||
if (Browser.isIE) document.getElementById('tbl').setCapture(); |
|||
} |
|||
|
|||
if(document.getElementById('frame-body')){ |
|||
document.onmouseup = function(e) |
|||
{ |
|||
var evt = Utils.fixEvent(e); |
|||
|
|||
frmBody = parent.document.getElementById('frame-body'); |
|||
frmWidth = frmBody.cols.substr(0, frmBody.cols.indexOf(',')); |
|||
frmWidth = (parseInt(frmWidth) + (evt.clientX - orgX)); |
|||
|
|||
frmBody.cols = frmWidth + ", 10, *"; |
|||
|
|||
if (Browser.isIE) document.releaseCapture(); |
|||
} |
|||
} |
|||
|
|||
var Browser = new Object(); |
|||
|
|||
Browser.isMozilla = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined') && (typeof HTMLDocument != 'undefined'); |
|||
Browser.isIE = window.ActiveXObject ? true : false; |
|||
Browser.isFirefox = (navigator.userAgent.toLowerCase().indexOf("firefox") != - 1); |
|||
Browser.isSafari = (navigator.userAgent.toLowerCase().indexOf("safari") != - 1); |
|||
Browser.isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") != - 1); |
|||
|
|||
var Utils = new Object(); |
|||
|
|||
Utils.fixEvent = function(e) |
|||
{ |
|||
var evt = (typeof e == "undefined") ? window.event : e; |
|||
return evt; |
|||
} |
|||
if (window.top != window) |
|||
{ |
|||
window.top.location.href = document.location.href; |
|||
} |
|||
onload = function() |
|||
{ |
|||
Ajax.call('index.php?is_ajax=1&act=license','', start_sendmail_Response, 'GET', 'JSON'); |
|||
} |
|||
/** |
|||
* 帮助系统调用 |
|||
*/ |
|||
function web_address() |
|||
{ |
|||
var ne_add = parent.document.getElementById('main-frame'); |
|||
var ne_list = ne_add.contentWindow.document.getElementById('search_id').innerHTML; |
|||
ne_list.replace('-', ''); |
|||
var arr = ne_list.split('-'); |
|||
window.open('help.php?al='+arr[arr.length - 1],'_blank'); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 授权检测回调处理 |
|||
*/ |
|||
function start_sendmail_Response(result) |
|||
{ |
|||
// 运行正常 |
|||
if (result.error == 0) |
|||
{ |
|||
var str = ''; |
|||
if (result['content']['auth_str']) |
|||
{ |
|||
str = '<a href="javascript:void(0);" target="_blank">' + result['content']['auth_str']; |
|||
if (result['content']['auth_type']) |
|||
{ |
|||
str += '[' + result['content']['auth_type'] + ']'; |
|||
} |
|||
str += '</a> '; |
|||
} |
|||
|
|||
document.getElementById('license-div').innerHTML = str; |
|||
} |
|||
} |
|||
|
|||
function modalDialog(url, name, width, height) |
|||
{ |
|||
if (width == undefined) |
|||
{ |
|||
width = 400; |
|||
} |
|||
if (height == undefined) |
|||
{ |
|||
height = 300; |
|||
} |
|||
|
|||
if (window.showModalDialog) |
|||
{ |
|||
window.showModalDialog(url, name, 'dialogWidth=' + (width) + 'px; dialogHeight=' + (height+5) + 'px; status=off'); |
|||
} |
|||
else |
|||
{ |
|||
x = (window.screen.width - width) / 2; |
|||
y = (window.screen.height - height) / 2; |
|||
|
|||
window.open(url, name, 'height='+height+', width='+width+', left='+x+', top='+y+', toolbar=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, modal=yes'); |
|||
} |
|||
} |
|||
|
|||
function ShowToDoList() |
|||
{ |
|||
try |
|||
{ |
|||
var mainFrame = window.top.frames['main-frame']; |
|||
mainFrame.window.showTodoList(adminId); |
|||
} |
|||
catch (ex) |
|||
{ |
|||
} |
|||
} |
|||
|
|||
|
|||
var adminId = "{$admin_id}"; |
|||
{/literal} |
|||
|
|||
//--> |
|||
|
|||
</script> |
|||
</head> |
|||
<body style="margin:0; overflow:hidden;"> |
|||
<div id="header-div"> |
|||
{if $priv_ru > 0} |
|||
<div id="logo-div"><img src="images/topLogo.jpg" alt="ECMOBAN - power for e-commerce" /></div> |
|||
{else} |
|||
<div id="logo-div" style="font-size:24px; color:#fff; width:auto!important; float:left;">{$shop_name}</div> |
|||
{/if} |
|||
<div id="submenu-div"> |
|||
<ul> |
|||
<li><a href="privilege.php?act=logout" target="main-frame"><img src="images/topmune_08.png" style="border:none;"/><span>{$lang.signout}</span></a></li> |
|||
<li><a href="index.php?act=clear_cache" target="main-frame"><img src="images/qingchu.png" style="border:none;"/><span>{$lang.clear_cache}</span></a></li> |
|||
{if $priv_ru > 0} |
|||
<li><a href="http://www.ecmoban.com/ecshop.html" target="_blank"><img src="images/topmune_007.png" style="border:none;"/><span>{$lang.help}</span></a></li> |
|||
{/if} |
|||
{if $priv_ru > 0} |
|||
<li><a href="../" target="_blank"><img src="images/topmune_06.png" style="border:none;"/><span>{$lang.preview}</span></a></li> |
|||
{else} |
|||
<li><a href="../merchants_store.php?merchant_id={$ru_id}" target="_blank"><img src="images/topmune_06.png" style="border:none;"/><span>我的店铺</span></a></li> |
|||
{/if} |
|||
{if $priv_ru > 0} |
|||
<li><a href="message.php?act=list" target="main-frame"><img src="images/topmune_05.png" style="border:none;"/><span>{$lang.view_message}</span></a></li> |
|||
{/if} |
|||
<li><a href="privilege.php?act=modif" target="main-frame"><img src="images/topmune_04.png" style="border:none;"/><span>{$lang.profile}</span></a></li> |
|||
<li><a href="javascript:window.top.frames['main-frame'].document.location.reload();window.top.frames['header-frame'].document.location.reload()"><img src="images/topmune_03.png" style="border:none;"/><span>{$lang.refresh}</span></a></li> |
|||
{if $priv_ru > 0} |
|||
<li><a href="#" onclick="ShowToDoList()"><img src="images/topmune_02.png" style="border:none;"/><span>{$lang.todolist}</span></a></li> |
|||
<li style="border-left:none;"><a href="index.php?act=first" target="main-frame"><img src="images/topmune_01.png" style="border:none;"/><span>{$lang.shop_guide}</span></a></li> |
|||
{/if} |
|||
</ul> |
|||
<div id="send_info" style="padding: 5px 10px 0 0; clear:right;text-align: right; color: #FF9900;width:40%;float: right; display:none;"> {if $send_mail_on eq 'on'} <span id="send_msg"><img src="images/top_loader.gif" width="21" height="21" alt="{$lang.loading}" style="vertical-align: middle" /> {$lang.email_sending}</span> <a href="javascript:;" onClick="Javascript:switcher()" id="lnkSwitch" style="margin-right:10px;color: #FF9900;text-decoration: underline">{$lang.pause}</a> {/if} <a href="index.php?act=clear_cache" target="main-frame" class="fix-submenu">{$lang.clear_cache}</a> </div> |
|||
{if $send_mail_on eq 'on'} |
|||
<script type="text/javascript" charset="gb2312"> |
|||
var sm = window.setInterval("start_sendmail()", 5000); |
|||
var finished = 0; |
|||
var error = 0; |
|||
var conti = "{$lang.conti}"; |
|||
var pause = "{$lang.pause}"; |
|||
var counter = 0; |
|||
var str = "{$lang.str}"; |
|||
{literal} |
|||
function start_sendmail() |
|||
{ |
|||
Ajax.call('index.php?is_ajax=1&act=send_mail','', start_sendmail_Response, 'GET', 'JSON'); |
|||
} |
|||
function start_sendmail_Response(result) |
|||
{ |
|||
if (typeof(result.count) == 'undefined') |
|||
{ |
|||
result.count = 0; |
|||
result.message = ''; |
|||
} |
|||
if (typeof(result.count) != 'undefined' && result.count == 0) |
|||
{ |
|||
counter --; |
|||
document.getElementById('lnkSwitch').style.display = "none"; |
|||
window.clearInterval(sm); |
|||
} |
|||
|
|||
if( typeof(result.goon) != 'undefined' ) |
|||
{ |
|||
start_sendmail(); |
|||
} |
|||
|
|||
counter ++ ; |
|||
|
|||
document.getElementById('send_msg').innerHTML = result.message; |
|||
} |
|||
function switcher() |
|||
{ |
|||
if(document.getElementById('lnkSwitch').innerHTML == conti) |
|||
{ |
|||
//do pause |
|||
document.getElementById('lnkSwitch').innerHTML = pause; |
|||
sm = window.setInterval("start_sendmail()", 5000); |
|||
} |
|||
else |
|||
{ |
|||
//do continue |
|||
document.getElementById('lnkSwitch').innerHTML = conti; |
|||
document.getElementById('send_msg').innerHTML = sprintf(str, counter); |
|||
window.clearInterval(sm); |
|||
} |
|||
} |
|||
|
|||
|
|||
|
|||
sprintfWrapper = { |
|||
|
|||
init : function () { |
|||
|
|||
if (typeof arguments == "undefined") { return null; } |
|||
if (arguments.length < 1) { return null; } |
|||
if (typeof arguments[0] != "string") { return null; } |
|||
if (typeof RegExp == "undefined") { return null; } |
|||
|
|||
var string = arguments[0]; |
|||
var exp = new RegExp(/(%([%]|(\-)?(\+|\x20)?(0)?(\d+)?(\.(\d)?)?([bcdfosxX])))/g); |
|||
var matches = new Array(); |
|||
var strings = new Array(); |
|||
var convCount = 0; |
|||
var stringPosStart = 0; |
|||
var stringPosEnd = 0; |
|||
var matchPosEnd = 0; |
|||
var newString = ''; |
|||
var match = null; |
|||
|
|||
while (match = exp.exec(string)) { |
|||
if (match[9]) { convCount += 1; } |
|||
|
|||
stringPosStart = matchPosEnd; |
|||
stringPosEnd = exp.lastIndex - match[0].length; |
|||
strings[strings.length] = string.substring(stringPosStart, stringPosEnd); |
|||
|
|||
matchPosEnd = exp.lastIndex; |
|||
matches[matches.length] = { |
|||
match: match[0], |
|||
left: match[3] ? true : false, |
|||
sign: match[4] || '', |
|||
pad: match[5] || ' ', |
|||
min: match[6] || 0, |
|||
precision: match[8], |
|||
code: match[9] || '%', |
|||
negative: parseInt(arguments[convCount]) < 0 ? true : false, |
|||
argument: String(arguments[convCount]) |
|||
}; |
|||
} |
|||
strings[strings.length] = string.substring(matchPosEnd); |
|||
|
|||
if (matches.length == 0) { return string; } |
|||
if ((arguments.length - 1) < convCount) { return null; } |
|||
|
|||
var code = null; |
|||
var match = null; |
|||
var i = null; |
|||
|
|||
for (i=0; i<matches.length; i++) { |
|||
|
|||
if (matches[i].code == '%') { substitution = '%' } |
|||
else if (matches[i].code == 'b') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(2)); |
|||
substitution = sprintfWrapper.convert(matches[i], true); |
|||
} |
|||
else if (matches[i].code == 'c') { |
|||
matches[i].argument = String(String.fromCharCode(parseInt(Math.abs(parseInt(matches[i].argument))))); |
|||
substitution = sprintfWrapper.convert(matches[i], true); |
|||
} |
|||
else if (matches[i].code == 'd') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument))); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 'f') { |
|||
matches[i].argument = String(Math.abs(parseFloat(matches[i].argument)).toFixed(matches[i].precision ? matches[i].precision : 6)); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 'o') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(8)); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 's') { |
|||
matches[i].argument = matches[i].argument.substring(0, matches[i].precision ? matches[i].precision : matches[i].argument.length) |
|||
substitution = sprintfWrapper.convert(matches[i], true); |
|||
} |
|||
else if (matches[i].code == 'x') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(16)); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 'X') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(16)); |
|||
substitution = sprintfWrapper.convert(matches[i]).toUpperCase(); |
|||
} |
|||
else { |
|||
substitution = matches[i].match; |
|||
} |
|||
|
|||
newString += strings[i]; |
|||
newString += substitution; |
|||
|
|||
} |
|||
newString += strings[i]; |
|||
|
|||
return newString; |
|||
|
|||
}, |
|||
|
|||
convert : function(match, nosign){ |
|||
if (nosign) { |
|||
match.sign = ''; |
|||
} else { |
|||
match.sign = match.negative ? '-' : match.sign; |
|||
} |
|||
var l = match.min - match.argument.length + 1 - match.sign.length; |
|||
var pad = new Array(l < 0 ? 0 : l).join(match.pad); |
|||
if (!match.left) { |
|||
if (match.pad == "0" || nosign) { |
|||
return match.sign + pad + match.argument; |
|||
} else { |
|||
return pad + match.sign + match.argument; |
|||
} |
|||
} else { |
|||
if (match.pad == "0" || nosign) { |
|||
return match.sign + match.argument + pad.replace(/0/g, ' '); |
|||
} else { |
|||
return match.sign + match.argument + pad; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
sprintf = sprintfWrapper.init; |
|||
|
|||
{/literal} |
|||
</script> |
|||
{/if} |
|||
<div id="load-div" style="padding: 30px 20px 0 0; text-align: right; color: #FF9900; display: none;float:right;"><img src="images/top_loader.gif" width="21" height="21" alt="{$lang.loading}" style="vertical-align: middle" /> {$lang.loading}</div> |
|||
</div> |
|||
</div> |
|||
<div class="clear"></div> |
|||
<div id="menu-div"> |
|||
<ul> |
|||
<li style="border-left:none;"><a href="index.php?act=main" target="main-frame"><img src="images/menu/index-11_07.png" width="17" height="17" style="border:none;" align="absmiddle"/><span>起始页</span></a><span class="muneFG"></span></li> |
|||
{foreach from=$menus item=item key=key name=menu} |
|||
{if $key < 7} |
|||
<li{if $key ==6} class="last"{/if}> |
|||
<a href="javascript:changeMenu({$key}, '{$item.href}')"><img src="images/menu/index-11_{$key}.png" width="17" height="17" align="absmiddle"/><span>{$item.label}</span> |
|||
{if $item.label eq '商品管理' || $item.label eq '订单管理' || $item.label eq '广告管理'}<span class="num">{$item.number|default:0}</span>{/if} |
|||
</a> |
|||
<span class="muneFG"></span> |
|||
</li> |
|||
{/if} |
|||
{/foreach} |
|||
</ul> |
|||
<br class="clear"/> |
|||
<div class="menuSerach" style="display:none"> |
|||
<input name="" type="text" value="请输入要查找的关键词" onfocus="if (value =='请输入要查找的关键词'){value =''}" onblur="if (value ==''){value='请输入要查找的关键词'}" class="text" /> |
|||
<input name="submit" type="image" src="images/menu/index-11_04.png" class="image"/> |
|||
</div> |
|||
</div> |
|||
<div id="frame-body"> |
|||
<iframe src="index.php?act=menu" id="menu-frame" name="menu-frame" width="180" frameborder="no" scrolling="yes"></iframe> |
|||
<div class="show_content" id="drag-frame"> |
|||
<div id="show_right"></div> |
|||
<div class="jiantou"><a href="javascript:void(0);"><img src="images/arrow_right.gif" width="10" height="30" id="img" border="0" /></a></div> |
|||
</div> |
|||
<iframe src="index.php?act=main" id="main-frame" name="main-frame" frameborder="no" scrolling="yes"></iframe> |
|||
</div> |
|||
</body> |
|||
<script> |
|||
window.onresize = function(){ |
|||
$("#menu-frame,#main-frame,#drag-frame,#tbl").height($(window).height()-126); |
|||
$("#main-frame").width($(window).width()-190); |
|||
} |
|||
$(function(){ |
|||
var menuFrame = $("#menu-frame"),dragFrame = $("#drag-frame"),mainFrame = $("#main-frame"); |
|||
|
|||
//根据浏览器变化宽高度 |
|||
menuFrame.height($(window).height()-126); |
|||
dragFrame.height($(window).height()-126); |
|||
mainFrame.height($(window).height()-126); |
|||
mainFrame.width($(window).width()-190); |
|||
|
|||
dragFrame.find(".jiantou").click(function(){ |
|||
var $this = $(this); |
|||
if(!$this.parent().hasClass("show_left")){ |
|||
menuFrame.width(0); |
|||
mainFrame.width($(window).width()-47); |
|||
$this.css("left","37px"); |
|||
$this.parent().css("width","47px"); |
|||
$this.prev("#show_right").show(); |
|||
$this.find("img").attr("src","images/arrow_left.gif"); |
|||
$this.parent().addClass("show_left"); |
|||
}else{ |
|||
menuFrame.width(180); |
|||
mainFrame.width($(window).width()-190); |
|||
$this.css("left",0); |
|||
$this.parent().css("width","10px"); |
|||
$this.prev("#show_right").hide(); |
|||
$this.find("img").attr("src","images/arrow_right.gif"); |
|||
$this.parent().removeClass("show_left"); |
|||
} |
|||
}); |
|||
dragFrame.find("#show_right").click(function(){ |
|||
menuFrame.width(180); |
|||
$(this).hide(); |
|||
$(this).next().css("left",0); |
|||
$(this).parent().css("width","10px"); |
|||
$(this).parent().removeClass("show_left"); |
|||
$(this).next().find("img").attr("src","images/arrow_right.gif"); |
|||
mainFrame.width($(window).width()-190); |
|||
}); |
|||
$(window).resize(function(){ |
|||
mainFrame.width($(window).width()-menuFrame.width()-dragFrame.width()); |
|||
}); |
|||
}); |
|||
function changeMenu(id, url){ |
|||
$(document.getElementById('menu-frame').contentWindow.document.body).find(".menulist_"+id).show().siblings().hide(); |
|||
window.frames[1].location.href = url; |
|||
} |
|||
</script> |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|||
<head> |
|||
<title>{$lang.cp_home}</title> |
|||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|||
<link href="styles/general.css" rel="stylesheet" type="text/css" /> |
|||
{insert_scripts files="../js/jquery-1.4.2.min.js,../js/jquery.json.js,../js/transport_jquery.js"} |
|||
<script type="Text/Javascript" language="JavaScript"> |
|||
{literal} |
|||
<!-- |
|||
var pic = new Image(); |
|||
pic.src="images/arrow_right.gif"; |
|||
|
|||
|
|||
|
|||
var orgX = 0; |
|||
document.onmousedown = function(e) |
|||
{ |
|||
var evt = Utils.fixEvent(e); |
|||
orgX = evt.clientX; |
|||
|
|||
if (Browser.isIE) document.getElementById('tbl').setCapture(); |
|||
} |
|||
|
|||
if(document.getElementById('frame-body')){ |
|||
document.onmouseup = function(e) |
|||
{ |
|||
var evt = Utils.fixEvent(e); |
|||
|
|||
frmBody = parent.document.getElementById('frame-body'); |
|||
frmWidth = frmBody.cols.substr(0, frmBody.cols.indexOf(',')); |
|||
frmWidth = (parseInt(frmWidth) + (evt.clientX - orgX)); |
|||
|
|||
frmBody.cols = frmWidth + ", 10, *"; |
|||
|
|||
if (Browser.isIE) document.releaseCapture(); |
|||
} |
|||
} |
|||
|
|||
var Browser = new Object(); |
|||
|
|||
Browser.isMozilla = (typeof document.implementation != 'undefined') && (typeof document.implementation.createDocument != 'undefined') && (typeof HTMLDocument != 'undefined'); |
|||
Browser.isIE = window.ActiveXObject ? true : false; |
|||
Browser.isFirefox = (navigator.userAgent.toLowerCase().indexOf("firefox") != - 1); |
|||
Browser.isSafari = (navigator.userAgent.toLowerCase().indexOf("safari") != - 1); |
|||
Browser.isOpera = (navigator.userAgent.toLowerCase().indexOf("opera") != - 1); |
|||
|
|||
var Utils = new Object(); |
|||
|
|||
Utils.fixEvent = function(e) |
|||
{ |
|||
var evt = (typeof e == "undefined") ? window.event : e; |
|||
return evt; |
|||
} |
|||
if (window.top != window) |
|||
{ |
|||
window.top.location.href = document.location.href; |
|||
} |
|||
onload = function() |
|||
{ |
|||
Ajax.call('index.php?is_ajax=1&act=license','', start_sendmail_Response, 'GET', 'JSON'); |
|||
} |
|||
/** |
|||
* 帮助系统调用 |
|||
*/ |
|||
function web_address() |
|||
{ |
|||
var ne_add = parent.document.getElementById('main-frame'); |
|||
var ne_list = ne_add.contentWindow.document.getElementById('search_id').innerHTML; |
|||
ne_list.replace('-', ''); |
|||
var arr = ne_list.split('-'); |
|||
window.open('help.php?al='+arr[arr.length - 1],'_blank'); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 授权检测回调处理 |
|||
*/ |
|||
function start_sendmail_Response(result) |
|||
{ |
|||
// 运行正常 |
|||
if (result.error == 0) |
|||
{ |
|||
var str = ''; |
|||
if (result['content']['auth_str']) |
|||
{ |
|||
str = '<a href="javascript:void(0);" target="_blank">' + result['content']['auth_str']; |
|||
if (result['content']['auth_type']) |
|||
{ |
|||
str += '[' + result['content']['auth_type'] + ']'; |
|||
} |
|||
str += '</a> '; |
|||
} |
|||
|
|||
document.getElementById('license-div').innerHTML = str; |
|||
} |
|||
} |
|||
|
|||
function modalDialog(url, name, width, height) |
|||
{ |
|||
if (width == undefined) |
|||
{ |
|||
width = 400; |
|||
} |
|||
if (height == undefined) |
|||
{ |
|||
height = 300; |
|||
} |
|||
|
|||
if (window.showModalDialog) |
|||
{ |
|||
window.showModalDialog(url, name, 'dialogWidth=' + (width) + 'px; dialogHeight=' + (height+5) + 'px; status=off'); |
|||
} |
|||
else |
|||
{ |
|||
x = (window.screen.width - width) / 2; |
|||
y = (window.screen.height - height) / 2; |
|||
|
|||
window.open(url, name, 'height='+height+', width='+width+', left='+x+', top='+y+', toolbar=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, modal=yes'); |
|||
} |
|||
} |
|||
|
|||
function ShowToDoList() |
|||
{ |
|||
try |
|||
{ |
|||
var mainFrame = window.top.frames['main-frame']; |
|||
mainFrame.window.showTodoList(adminId); |
|||
} |
|||
catch (ex) |
|||
{ |
|||
} |
|||
} |
|||
|
|||
|
|||
var adminId = "{$admin_id}"; |
|||
{/literal} |
|||
|
|||
//--> |
|||
|
|||
</script> |
|||
</head> |
|||
<body style="margin:0; overflow:hidden;"> |
|||
<div id="header-div"> |
|||
{if $priv_ru > 0} |
|||
<div id="logo-div"><img src="images/topLogo.jpg" alt="ECMOBAN - power for e-commerce" /></div> |
|||
{else} |
|||
<div id="logo-div" style="font-size:24px; color:#fff; width:auto!important; float:left;">{$shop_name}</div> |
|||
{/if} |
|||
<div id="submenu-div"> |
|||
<ul> |
|||
<li><a href="privilege.php?act=logout" target="main-frame"><img src="images/topmune_08.png" style="border:none;"/><span>{$lang.signout}</span></a></li> |
|||
<li><a href="index.php?act=clear_cache" target="main-frame"><img src="images/qingchu.png" style="border:none;"/><span>{$lang.clear_cache}</span></a></li> |
|||
{if $priv_ru > 0} |
|||
<li><a href="http://www.ecmoban.com/ecshop.html" target="_blank"><img src="images/topmune_007.png" style="border:none;"/><span>{$lang.help}</span></a></li> |
|||
{/if} |
|||
{if $priv_ru > 0} |
|||
<li><a href="../" target="_blank"><img src="images/topmune_06.png" style="border:none;"/><span>{$lang.preview}</span></a></li> |
|||
{else} |
|||
<li><a href="../merchants_store.php?merchant_id={$ru_id}" target="_blank"><img src="images/topmune_06.png" style="border:none;"/><span>我的店铺</span></a></li> |
|||
{/if} |
|||
{if $priv_ru > 0} |
|||
<li><a href="message.php?act=list" target="main-frame"><img src="images/topmune_05.png" style="border:none;"/><span>{$lang.view_message}</span></a></li> |
|||
{/if} |
|||
<li><a href="privilege.php?act=modif" target="main-frame"><img src="images/topmune_04.png" style="border:none;"/><span>{$lang.profile}</span></a></li> |
|||
<li><a href="javascript:window.top.frames['main-frame'].document.location.reload();window.top.frames['header-frame'].document.location.reload()"><img src="images/topmune_03.png" style="border:none;"/><span>{$lang.refresh}</span></a></li> |
|||
{if $priv_ru > 0} |
|||
<li><a href="#" onclick="ShowToDoList()"><img src="images/topmune_02.png" style="border:none;"/><span>{$lang.todolist}</span></a></li> |
|||
<li style="border-left:none;"><a href="index.php?act=first" target="main-frame"><img src="images/topmune_01.png" style="border:none;"/><span>{$lang.shop_guide}</span></a></li> |
|||
{/if} |
|||
</ul> |
|||
<div id="send_info" style="padding: 5px 10px 0 0; clear:right;text-align: right; color: #FF9900;width:40%;float: right; display:none;"> {if $send_mail_on eq 'on'} <span id="send_msg"><img src="images/top_loader.gif" width="21" height="21" alt="{$lang.loading}" style="vertical-align: middle" /> {$lang.email_sending}</span> <a href="javascript:;" onClick="Javascript:switcher()" id="lnkSwitch" style="margin-right:10px;color: #FF9900;text-decoration: underline">{$lang.pause}</a> {/if} <a href="index.php?act=clear_cache" target="main-frame" class="fix-submenu">{$lang.clear_cache}</a> </div> |
|||
{if $send_mail_on eq 'on'} |
|||
<script type="text/javascript" charset="gb2312"> |
|||
var sm = window.setInterval("start_sendmail()", 5000); |
|||
var finished = 0; |
|||
var error = 0; |
|||
var conti = "{$lang.conti}"; |
|||
var pause = "{$lang.pause}"; |
|||
var counter = 0; |
|||
var str = "{$lang.str}"; |
|||
{literal} |
|||
function start_sendmail() |
|||
{ |
|||
Ajax.call('index.php?is_ajax=1&act=send_mail','', start_sendmail_Response, 'GET', 'JSON'); |
|||
} |
|||
function start_sendmail_Response(result) |
|||
{ |
|||
if (typeof(result.count) == 'undefined') |
|||
{ |
|||
result.count = 0; |
|||
result.message = ''; |
|||
} |
|||
if (typeof(result.count) != 'undefined' && result.count == 0) |
|||
{ |
|||
counter --; |
|||
document.getElementById('lnkSwitch').style.display = "none"; |
|||
window.clearInterval(sm); |
|||
} |
|||
|
|||
if( typeof(result.goon) != 'undefined' ) |
|||
{ |
|||
start_sendmail(); |
|||
} |
|||
|
|||
counter ++ ; |
|||
|
|||
document.getElementById('send_msg').innerHTML = result.message; |
|||
} |
|||
function switcher() |
|||
{ |
|||
if(document.getElementById('lnkSwitch').innerHTML == conti) |
|||
{ |
|||
//do pause |
|||
document.getElementById('lnkSwitch').innerHTML = pause; |
|||
sm = window.setInterval("start_sendmail()", 5000); |
|||
} |
|||
else |
|||
{ |
|||
//do continue |
|||
document.getElementById('lnkSwitch').innerHTML = conti; |
|||
document.getElementById('send_msg').innerHTML = sprintf(str, counter); |
|||
window.clearInterval(sm); |
|||
} |
|||
} |
|||
|
|||
|
|||
|
|||
sprintfWrapper = { |
|||
|
|||
init : function () { |
|||
|
|||
if (typeof arguments == "undefined") { return null; } |
|||
if (arguments.length < 1) { return null; } |
|||
if (typeof arguments[0] != "string") { return null; } |
|||
if (typeof RegExp == "undefined") { return null; } |
|||
|
|||
var string = arguments[0]; |
|||
var exp = new RegExp(/(%([%]|(\-)?(\+|\x20)?(0)?(\d+)?(\.(\d)?)?([bcdfosxX])))/g); |
|||
var matches = new Array(); |
|||
var strings = new Array(); |
|||
var convCount = 0; |
|||
var stringPosStart = 0; |
|||
var stringPosEnd = 0; |
|||
var matchPosEnd = 0; |
|||
var newString = ''; |
|||
var match = null; |
|||
|
|||
while (match = exp.exec(string)) { |
|||
if (match[9]) { convCount += 1; } |
|||
|
|||
stringPosStart = matchPosEnd; |
|||
stringPosEnd = exp.lastIndex - match[0].length; |
|||
strings[strings.length] = string.substring(stringPosStart, stringPosEnd); |
|||
|
|||
matchPosEnd = exp.lastIndex; |
|||
matches[matches.length] = { |
|||
match: match[0], |
|||
left: match[3] ? true : false, |
|||
sign: match[4] || '', |
|||
pad: match[5] || ' ', |
|||
min: match[6] || 0, |
|||
precision: match[8], |
|||
code: match[9] || '%', |
|||
negative: parseInt(arguments[convCount]) < 0 ? true : false, |
|||
argument: String(arguments[convCount]) |
|||
}; |
|||
} |
|||
strings[strings.length] = string.substring(matchPosEnd); |
|||
|
|||
if (matches.length == 0) { return string; } |
|||
if ((arguments.length - 1) < convCount) { return null; } |
|||
|
|||
var code = null; |
|||
var match = null; |
|||
var i = null; |
|||
|
|||
for (i=0; i<matches.length; i++) { |
|||
|
|||
if (matches[i].code == '%') { substitution = '%' } |
|||
else if (matches[i].code == 'b') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(2)); |
|||
substitution = sprintfWrapper.convert(matches[i], true); |
|||
} |
|||
else if (matches[i].code == 'c') { |
|||
matches[i].argument = String(String.fromCharCode(parseInt(Math.abs(parseInt(matches[i].argument))))); |
|||
substitution = sprintfWrapper.convert(matches[i], true); |
|||
} |
|||
else if (matches[i].code == 'd') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument))); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 'f') { |
|||
matches[i].argument = String(Math.abs(parseFloat(matches[i].argument)).toFixed(matches[i].precision ? matches[i].precision : 6)); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 'o') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(8)); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 's') { |
|||
matches[i].argument = matches[i].argument.substring(0, matches[i].precision ? matches[i].precision : matches[i].argument.length) |
|||
substitution = sprintfWrapper.convert(matches[i], true); |
|||
} |
|||
else if (matches[i].code == 'x') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(16)); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 'X') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(16)); |
|||
substitution = sprintfWrapper.convert(matches[i]).toUpperCase(); |
|||
} |
|||
else { |
|||
substitution = matches[i].match; |
|||
} |
|||
|
|||
newString += strings[i]; |
|||
newString += substitution; |
|||
|
|||
} |
|||
newString += strings[i]; |
|||
|
|||
return newString; |
|||
|
|||
}, |
|||
|
|||
convert : function(match, nosign){ |
|||
if (nosign) { |
|||
match.sign = ''; |
|||
} else { |
|||
match.sign = match.negative ? '-' : match.sign; |
|||
} |
|||
var l = match.min - match.argument.length + 1 - match.sign.length; |
|||
var pad = new Array(l < 0 ? 0 : l).join(match.pad); |
|||
if (!match.left) { |
|||
if (match.pad == "0" || nosign) { |
|||
return match.sign + pad + match.argument; |
|||
} else { |
|||
return pad + match.sign + match.argument; |
|||
} |
|||
} else { |
|||
if (match.pad == "0" || nosign) { |
|||
return match.sign + match.argument + pad.replace(/0/g, ' '); |
|||
} else { |
|||
return match.sign + match.argument + pad; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
sprintf = sprintfWrapper.init; |
|||
|
|||
{/literal} |
|||
</script> |
|||
{/if} |
|||
<div id="load-div" style="padding: 30px 20px 0 0; text-align: right; color: #FF9900; display: none;float:right;"><img src="images/top_loader.gif" width="21" height="21" alt="{$lang.loading}" style="vertical-align: middle" /> {$lang.loading}</div> |
|||
</div> |
|||
</div> |
|||
<div class="clear"></div> |
|||
<div id="menu-div"> |
|||
<ul> |
|||
<li style="border-left:none;"><a href="index.php?act=main" target="main-frame"><img src="images/menu/index-11_07.png" width="17" height="17" style="border:none;" align="absmiddle"/><span>起始页</span></a><span class="muneFG"></span></li> |
|||
{foreach from=$menus item=item key=key name=menu} |
|||
{if $key < 7} |
|||
<li{if $key ==6} class="last"{/if}> |
|||
<a href="javascript:changeMenu({$key}, '{$item.href}')"><img src="images/menu/index-11_{$key}.png" width="17" height="17" align="absmiddle"/><span>{$item.label}</span> |
|||
{if $item.label eq '商品管理' || $item.label eq '订单管理' || $item.label eq '广告管理'}<span class="num">{$item.number|default:0}</span>{/if} |
|||
</a> |
|||
<span class="muneFG"></span> |
|||
</li> |
|||
{/if} |
|||
{/foreach} |
|||
</ul> |
|||
<br class="clear"/> |
|||
<div class="menuSerach" style="display:none"> |
|||
<input name="" type="text" value="请输入要查找的关键词" onfocus="if (value =='请输入要查找的关键词'){value =''}" onblur="if (value ==''){value='请输入要查找的关键词'}" class="text" /> |
|||
<input name="submit" type="image" src="images/menu/index-11_04.png" class="image"/> |
|||
</div> |
|||
</div> |
|||
<div id="frame-body"> |
|||
<iframe src="index.php?act=menu" id="menu-frame" name="menu-frame" width="180" frameborder="no" scrolling="yes"></iframe> |
|||
<div class="show_content" id="drag-frame"> |
|||
<div id="show_right"></div> |
|||
<div class="jiantou"><a href="javascript:void(0);"><img src="images/arrow_right.gif" width="10" height="30" id="img" border="0" /></a></div> |
|||
</div> |
|||
<iframe src="index.php?act=main" id="main-frame" name="main-frame" frameborder="no" scrolling="yes"></iframe> |
|||
</div> |
|||
</body> |
|||
<script> |
|||
window.onresize = function(){ |
|||
$("#menu-frame,#main-frame,#drag-frame,#tbl").height($(window).height()-126); |
|||
$("#main-frame").width($(window).width()-190); |
|||
} |
|||
$(function(){ |
|||
var menuFrame = $("#menu-frame"),dragFrame = $("#drag-frame"),mainFrame = $("#main-frame"); |
|||
|
|||
//根据浏览器变化宽高度 |
|||
menuFrame.height($(window).height()-126); |
|||
dragFrame.height($(window).height()-126); |
|||
mainFrame.height($(window).height()-126); |
|||
mainFrame.width($(window).width()-190); |
|||
|
|||
dragFrame.find(".jiantou").click(function(){ |
|||
var $this = $(this); |
|||
if(!$this.parent().hasClass("show_left")){ |
|||
menuFrame.width(0); |
|||
mainFrame.width($(window).width()-47); |
|||
$this.css("left","37px"); |
|||
$this.parent().css("width","47px"); |
|||
$this.prev("#show_right").show(); |
|||
$this.find("img").attr("src","images/arrow_left.gif"); |
|||
$this.parent().addClass("show_left"); |
|||
}else{ |
|||
menuFrame.width(180); |
|||
mainFrame.width($(window).width()-190); |
|||
$this.css("left",0); |
|||
$this.parent().css("width","10px"); |
|||
$this.prev("#show_right").hide(); |
|||
$this.find("img").attr("src","images/arrow_right.gif"); |
|||
$this.parent().removeClass("show_left"); |
|||
} |
|||
}); |
|||
dragFrame.find("#show_right").click(function(){ |
|||
menuFrame.width(180); |
|||
$(this).hide(); |
|||
$(this).next().css("left",0); |
|||
$(this).parent().css("width","10px"); |
|||
$(this).parent().removeClass("show_left"); |
|||
$(this).next().find("img").attr("src","images/arrow_right.gif"); |
|||
mainFrame.width($(window).width()-190); |
|||
}); |
|||
$(window).resize(function(){ |
|||
mainFrame.width($(window).width()-menuFrame.width()-dragFrame.width()); |
|||
}); |
|||
}); |
|||
function changeMenu(id, url){ |
|||
$(document.getElementById('menu-frame').contentWindow.document.body).find(".menulist_"+id).show().siblings().hide(); |
|||
window.frames[1].location.href = url; |
|||
} |
|||
</script> |
|||
</html> |
|||
@ -1,498 +1,498 @@ |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|||
<head> |
|||
<title>{$app_name}</title> |
|||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|||
<link href="styles/general.css" rel="stylesheet" type="text/css" /> |
|||
{literal} |
|||
<style type="text/css"> |
|||
#header-div { |
|||
background: #1b9ad5; |
|||
border-bottom: 1px solid #118ec9; |
|||
height: 83px; |
|||
} |
|||
#logo-div { |
|||
margin-left: 8px; |
|||
margin-top: 21px; |
|||
width: 262px; |
|||
height: 45px; |
|||
float: left; |
|||
} |
|||
#license-div { |
|||
height: 50px; |
|||
float: left; |
|||
text-align: center; |
|||
vertical-align: middle; |
|||
line-height: 50px; |
|||
} |
|||
#license-div a:visited, #license-div a:link { |
|||
color: #EB8A3D; |
|||
} |
|||
#license-div a:hover { |
|||
text-decoration: none; |
|||
color: #EB8A3D; |
|||
} |
|||
#loading-div { |
|||
clear: right; |
|||
text-align: right; |
|||
display: block; |
|||
} |
|||
#submenu-div { |
|||
text-align: center; |
|||
width: 1000px; |
|||
position: absolute; |
|||
right: 0px; |
|||
height: 84px; |
|||
} |
|||
#submenu-div ul { |
|||
margin: 0; |
|||
padding: 0; |
|||
list-style-type: none; |
|||
} |
|||
#submenu-div li { |
|||
float: right; |
|||
width: 82px; |
|||
height: 82px; |
|||
border-left: 1px solid #27aae7; |
|||
border-right: 1px solid #0779ba; |
|||
} |
|||
#submenu-div li a { |
|||
text-align: center; |
|||
height: 74px; |
|||
width: 82px; |
|||
padding-top: 8px; |
|||
display: block; |
|||
text-decoration: none; |
|||
color: #FFF; |
|||
} |
|||
#submenu-div li a:hover { |
|||
background: url(images/muneBG.JPG) repeat-x top center; |
|||
} |
|||
#submenu-div li span { |
|||
margin-top: 6px; |
|||
display: block; |
|||
} |
|||
#submenu-div li img { |
|||
margin: auto; |
|||
display: block; |
|||
} |
|||
#menu-div { |
|||
background: #0e92d0; |
|||
height: 42px; |
|||
} |
|||
#menu-div ul { |
|||
margin: 0px 0px 0px 15px; |
|||
padding: 0; |
|||
list-style-type: none; |
|||
} |
|||
#menu-div ul li { |
|||
float: left; |
|||
display: block; |
|||
height: 42px; |
|||
line-height: 42px; |
|||
position: relative; |
|||
} |
|||
.muneFG { |
|||
height: 13px; |
|||
width: 0px; |
|||
border-right: 1px solid #15aae3; |
|||
margin-top: 15px; |
|||
*margin-top:-18px; |
|||
_margin-top: 0px; |
|||
border-left: 1px solid #08679f; |
|||
display: inline-block; |
|||
} |
|||
#menu-div ul li a { |
|||
float: LEFT; |
|||
color: #FFF; |
|||
padding: 0px 12px; |
|||
display: block; |
|||
text-decoration: none; |
|||
_margin-top: 14px; |
|||
} |
|||
#menu-div ul li a:hover { |
|||
background: #1887bb |
|||
} |
|||
#menu-div ul li a span { |
|||
margin-left: 10px; |
|||
} |
|||
.num { |
|||
width: 32px; |
|||
height: 16px; |
|||
background: url(images/index-11_22.png) no-repeat scroll; |
|||
display: inline-block; |
|||
line-height: 16px; |
|||
vertical-align: middle; |
|||
text-align: center; |
|||
} |
|||
#menu-div ul li a img { |
|||
border: none; |
|||
} |
|||
#menu-div ul li ul { |
|||
display: none; |
|||
} |
|||
#menu-div ul li:hover a { |
|||
color: #fff; |
|||
background: #1887bb; |
|||
} |
|||
#menu-div ul li:hover ul { |
|||
display: block; |
|||
position: absolute; |
|||
top: 42px; |
|||
left: -15px; |
|||
} |
|||
#menu-div ul li:hover ul li { |
|||
border-bottom: 1px solid #11689c; |
|||
border-top: #1f9dd1 1px solid; |
|||
} |
|||
#menu-div ul li:hover ul li a { |
|||
width: 133px; |
|||
display: block; |
|||
} |
|||
#menu-div ul li:hover ul li a:hover { |
|||
width: 133px; |
|||
display: block; |
|||
background: #1480b3; |
|||
} |
|||
#menu-div ul li:hover ul li a.hide { |
|||
background: #6a3; |
|||
color: #fff; |
|||
} |
|||
#menu-div ul li:hover ul li:hover a.hide { |
|||
background: #6fc; |
|||
color: #fff; |
|||
} |
|||
#menu-div li.fix-spacer { |
|||
border: none; |
|||
} |
|||
.menuSerach { |
|||
width: 237px; |
|||
height: 15px; |
|||
float: right; |
|||
margin-right: 18px; |
|||
margin-top: -35px; |
|||
_width: 240px; |
|||
} |
|||
</style> |
|||
{insert_scripts files="../js/transport_jquery.js"} |
|||
<script type="text/javascript"> |
|||
onload = function() |
|||
{ |
|||
Ajax.call('index.php?is_ajax=1&act=license','', start_sendmail_Response, 'GET', 'JSON'); |
|||
} |
|||
/** |
|||
* 帮助系统调用 |
|||
*/ |
|||
function web_address() |
|||
{ |
|||
var ne_add = parent.document.getElementById('main-frame'); |
|||
var ne_list = ne_add.contentWindow.document.getElementById('search_id').innerHTML; |
|||
ne_list.replace('-', ''); |
|||
var arr = ne_list.split('-'); |
|||
window.open('help.php?al='+arr[arr.length - 1],'_blank'); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 授权检测回调处理 |
|||
*/ |
|||
function start_sendmail_Response(result) |
|||
{ |
|||
// 运行正常 |
|||
if (result.error == 0) |
|||
{ |
|||
var str = ''; |
|||
if (result['content']['auth_str']) |
|||
{ |
|||
str = '<a href="javascript:void(0);" target="_blank">' + result['content']['auth_str']; |
|||
if (result['content']['auth_type']) |
|||
{ |
|||
str += '[' + result['content']['auth_type'] + ']'; |
|||
} |
|||
str += '</a> '; |
|||
} |
|||
|
|||
document.getElementById('license-div').innerHTML = str; |
|||
} |
|||
} |
|||
|
|||
function modalDialog(url, name, width, height) |
|||
{ |
|||
if (width == undefined) |
|||
{ |
|||
width = 400; |
|||
} |
|||
if (height == undefined) |
|||
{ |
|||
height = 300; |
|||
} |
|||
|
|||
if (window.showModalDialog) |
|||
{ |
|||
window.showModalDialog(url, name, 'dialogWidth=' + (width) + 'px; dialogHeight=' + (height+5) + 'px; status=off'); |
|||
} |
|||
else |
|||
{ |
|||
x = (window.screen.width - width) / 2; |
|||
y = (window.screen.height - height) / 2; |
|||
|
|||
window.open(url, name, 'height='+height+', width='+width+', left='+x+', top='+y+', toolbar=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, modal=yes'); |
|||
} |
|||
} |
|||
|
|||
function ShowToDoList() |
|||
{ |
|||
try |
|||
{ |
|||
var mainFrame = window.top.frames['main-frame']; |
|||
mainFrame.window.showTodoList(adminId); |
|||
} |
|||
catch (ex) |
|||
{ |
|||
} |
|||
} |
|||
|
|||
|
|||
var adminId = "{$admin_id}"; |
|||
{/literal} |
|||
</script> |
|||
</head> |
|||
<body> |
|||
<div id="header-div"> |
|||
<div id="logo-div"><img src="images/topLogo.jpg" alt="ECMOBAN - power for e-commerce" /></div> |
|||
<div id="submenu-div"> |
|||
<ul> |
|||
<li><a href="privilege.php?act=logout" target="main-frame"><img src="images/topmune_08.png" style="border:none;"/><span>{$lang.signout}</span></a></li> |
|||
<li><a href="http://www.ecmoban.com/ecshop_jieshao.html" target="_blank"><img src="images/topmune_07.png" style="border:none;"/><span>{$lang.about}</span></a></li> |
|||
<li><a href="http://www.ecmoban.com/ecshop.html" target="_blank"><img src="images/topmune_007.png" style="border:none;"/><span>{$lang.help}</span></a></li> |
|||
<li><a href="../" target="_blank"><img src="images/topmune_06.png" style="border:none;"/><span>{$lang.preview}</span></a></li> |
|||
<li><a href="message.php?act=list" target="main-frame"><img src="images/topmune_05.png" style="border:none;"/><span>{$lang.view_message}</span></a></li> |
|||
<li><a href="privilege.php?act=modif" target="main-frame"><img src="images/topmune_04.png" style="border:none;"/><span>{$lang.profile}</span></a></li> |
|||
<li><a href="javascript:window.top.frames['main-frame'].document.location.reload();window.top.frames['header-frame'].document.location.reload()"><img src="images/topmune_03.png" style="border:none;"/><span>{$lang.refresh}</span></a></li> |
|||
<li><a href="#" onclick="ShowToDoList()"><img src="images/topmune_02.png" style="border:none;"/><span>{$lang.todolist}</span></a></li> |
|||
<li style="border-left:none;"><a href="index.php?act=first" target="main-frame"><img src="images/topmune_01.png" style="border:none;"/><span>{$lang.shop_guide}</span></a></li> |
|||
</ul> |
|||
<div id="send_info" style="padding: 5px 10px 0 0; clear:right;text-align: right; color: #FF9900;width:40%;float: right; display:none;"> {if $send_mail_on eq 'on'} <span id="send_msg"><img src="images/top_loader.gif" width="21" height="21" alt="{$lang.loading}" style="vertical-align: middle" /> {$lang.email_sending}</span> <a href="javascript:;" onClick="Javascript:switcher()" id="lnkSwitch" style="margin-right:10px;color: #FF9900;text-decoration: underline">{$lang.pause}</a> {/if} <a href="index.php?act=clear_cache" target="main-frame" class="fix-submenu">{$lang.clear_cache}</a> </div> |
|||
{if $send_mail_on eq 'on'} |
|||
<script type="text/javascript" charset="gb2312"> |
|||
var sm = window.setInterval("start_sendmail()", 5000); |
|||
var finished = 0; |
|||
var error = 0; |
|||
var conti = "{$lang.conti}"; |
|||
var pause = "{$lang.pause}"; |
|||
var counter = 0; |
|||
var str = "{$lang.str}"; |
|||
{literal} |
|||
function start_sendmail() |
|||
{ |
|||
Ajax.call('index.php?is_ajax=1&act=send_mail','', start_sendmail_Response, 'GET', 'JSON'); |
|||
} |
|||
function start_sendmail_Response(result) |
|||
{ |
|||
if (typeof(result.count) == 'undefined') |
|||
{ |
|||
result.count = 0; |
|||
result.message = ''; |
|||
} |
|||
if (typeof(result.count) != 'undefined' && result.count == 0) |
|||
{ |
|||
counter --; |
|||
document.getElementById('lnkSwitch').style.display = "none"; |
|||
window.clearInterval(sm); |
|||
} |
|||
|
|||
if( typeof(result.goon) != 'undefined' ) |
|||
{ |
|||
start_sendmail(); |
|||
} |
|||
|
|||
counter ++ ; |
|||
|
|||
document.getElementById('send_msg').innerHTML = result.message; |
|||
} |
|||
function switcher() |
|||
{ |
|||
if(document.getElementById('lnkSwitch').innerHTML == conti) |
|||
{ |
|||
//do pause |
|||
document.getElementById('lnkSwitch').innerHTML = pause; |
|||
sm = window.setInterval("start_sendmail()", 5000); |
|||
} |
|||
else |
|||
{ |
|||
//do continue |
|||
document.getElementById('lnkSwitch').innerHTML = conti; |
|||
document.getElementById('send_msg').innerHTML = sprintf(str, counter); |
|||
window.clearInterval(sm); |
|||
} |
|||
} |
|||
|
|||
|
|||
|
|||
sprintfWrapper = { |
|||
|
|||
init : function () { |
|||
|
|||
if (typeof arguments == "undefined") { return null; } |
|||
if (arguments.length < 1) { return null; } |
|||
if (typeof arguments[0] != "string") { return null; } |
|||
if (typeof RegExp == "undefined") { return null; } |
|||
|
|||
var string = arguments[0]; |
|||
var exp = new RegExp(/(%([%]|(\-)?(\+|\x20)?(0)?(\d+)?(\.(\d)?)?([bcdfosxX])))/g); |
|||
var matches = new Array(); |
|||
var strings = new Array(); |
|||
var convCount = 0; |
|||
var stringPosStart = 0; |
|||
var stringPosEnd = 0; |
|||
var matchPosEnd = 0; |
|||
var newString = ''; |
|||
var match = null; |
|||
|
|||
while (match = exp.exec(string)) { |
|||
if (match[9]) { convCount += 1; } |
|||
|
|||
stringPosStart = matchPosEnd; |
|||
stringPosEnd = exp.lastIndex - match[0].length; |
|||
strings[strings.length] = string.substring(stringPosStart, stringPosEnd); |
|||
|
|||
matchPosEnd = exp.lastIndex; |
|||
matches[matches.length] = { |
|||
match: match[0], |
|||
left: match[3] ? true : false, |
|||
sign: match[4] || '', |
|||
pad: match[5] || ' ', |
|||
min: match[6] || 0, |
|||
precision: match[8], |
|||
code: match[9] || '%', |
|||
negative: parseInt(arguments[convCount]) < 0 ? true : false, |
|||
argument: String(arguments[convCount]) |
|||
}; |
|||
} |
|||
strings[strings.length] = string.substring(matchPosEnd); |
|||
|
|||
if (matches.length == 0) { return string; } |
|||
if ((arguments.length - 1) < convCount) { return null; } |
|||
|
|||
var code = null; |
|||
var match = null; |
|||
var i = null; |
|||
|
|||
for (i=0; i<matches.length; i++) { |
|||
|
|||
if (matches[i].code == '%') { substitution = '%' } |
|||
else if (matches[i].code == 'b') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(2)); |
|||
substitution = sprintfWrapper.convert(matches[i], true); |
|||
} |
|||
else if (matches[i].code == 'c') { |
|||
matches[i].argument = String(String.fromCharCode(parseInt(Math.abs(parseInt(matches[i].argument))))); |
|||
substitution = sprintfWrapper.convert(matches[i], true); |
|||
} |
|||
else if (matches[i].code == 'd') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument))); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 'f') { |
|||
matches[i].argument = String(Math.abs(parseFloat(matches[i].argument)).toFixed(matches[i].precision ? matches[i].precision : 6)); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 'o') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(8)); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 's') { |
|||
matches[i].argument = matches[i].argument.substring(0, matches[i].precision ? matches[i].precision : matches[i].argument.length) |
|||
substitution = sprintfWrapper.convert(matches[i], true); |
|||
} |
|||
else if (matches[i].code == 'x') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(16)); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 'X') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(16)); |
|||
substitution = sprintfWrapper.convert(matches[i]).toUpperCase(); |
|||
} |
|||
else { |
|||
substitution = matches[i].match; |
|||
} |
|||
|
|||
newString += strings[i]; |
|||
newString += substitution; |
|||
|
|||
} |
|||
newString += strings[i]; |
|||
|
|||
return newString; |
|||
|
|||
}, |
|||
|
|||
convert : function(match, nosign){ |
|||
if (nosign) { |
|||
match.sign = ''; |
|||
} else { |
|||
match.sign = match.negative ? '-' : match.sign; |
|||
} |
|||
var l = match.min - match.argument.length + 1 - match.sign.length; |
|||
var pad = new Array(l < 0 ? 0 : l).join(match.pad); |
|||
if (!match.left) { |
|||
if (match.pad == "0" || nosign) { |
|||
return match.sign + pad + match.argument; |
|||
} else { |
|||
return pad + match.sign + match.argument; |
|||
} |
|||
} else { |
|||
if (match.pad == "0" || nosign) { |
|||
return match.sign + match.argument + pad.replace(/0/g, ' '); |
|||
} else { |
|||
return match.sign + match.argument + pad; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
sprintf = sprintfWrapper.init; |
|||
|
|||
|
|||
|
|||
{/literal} |
|||
</script> |
|||
{/if} |
|||
<div id="load-div" style="padding: 30px 20px 0 0; text-align: right; color: #FF9900; display: none;float:right;"><img src="images/top_loader.gif" width="21" height="21" alt="{$lang.loading}" style="vertical-align: middle" /> {$lang.loading}</div> |
|||
</div> |
|||
</div> |
|||
<div class="clear"></div> |
|||
<div id="menu-div"> |
|||
<ul> |
|||
<li class="fix-spacer"></li> |
|||
|
|||
<li style="border-left:none;"><a href="#" target="main-frame"><img src="images/index-11_07.png" width="17" height="18" style="border:none;" align="absmiddle"/><span>起始页</span></a><span class="muneFG"></span></li> |
|||
<li><a href="#"><img src="images/index-11_09.png" width="17" height="18" align="absmiddle"/><span>商品管理</span></a><span class="muneFG"></span></li> |
|||
<li><a href="#"><img src="images/index-11_11.png" width="17" height="18" align="absmiddle"/><span>促销管理</span></a><span class="muneFG"></span></li> |
|||
<li><a href="#"><img src="images/dd.png" width="15" height="18" align="absmiddle"/><span>订单管理</span><span class="num">132</span></a><span class="muneFG"></span></li> |
|||
<li><a href="#"><img src="images/index-11_13.png" width="17" height="20" align="absmiddle"/><span>广告管理</span><span class="num">132</span></a><span class="muneFG"></span></li> |
|||
<li><a href="#"><img src="images/index-11_15.png" width="17" height="20" align="absmiddle"/><span>报表统计</span></a><span class="muneFG"></span></li> |
|||
<li><a href="#"><img src="images/index-11_17.png" width="17" height="20" align="absmiddle"/><span>文章管理</span><span class="num">132</span></a><span class="muneFG"></span></li> |
|||
<li ><a href="#"><img src="images/index-11_19.png" width="21" height="20" align="absmiddle"/><span>会员管理</span></a><span class="muneFG"></span></li> |
|||
<li style="border-right:none;"><a href="#"><span style="margin-left:0px;">更多</span><img src="images/index-11_25.png" style="margin-left:5px;" width="8" height="4" /></a> |
|||
<ul> |
|||
<li style="border-top:none;"><a href="#"><img src="images/index-11_38.png" width="21" height="20" align="absmiddle"/><span>权限管理</span></a></li> |
|||
<li><a href="#"><img src="images/index-11_41.png" width="21" height="20" align="absmiddle"/><span>系统设置</span></a></li> |
|||
<li><a href="#"><img src="images/index-11_43.png" width="21" height="20" align="absmiddle"/><span>短信管理</span></a></li> |
|||
<li><a href="#"><img src="images/index-11_45.png" width="21" height="20" align="absmiddle"/><span>推荐管理</span></a></li> |
|||
<li><a href="#"><img src="images/index-11_47.png" width="21" height="20" align="absmiddle"/><span>邮件群发管理</span></a></li> |
|||
<li><a href="#"><img src="images/index-11_41.png" width="21" height="20" align="absmiddle"/><span>商家入驻管理</span></a></li> |
|||
<li><a href="#"><img src="images/index-11_41.png" width="21" height="20" align="absmiddle"/><span>商品批量管理</span></a></li> |
|||
<li style="border-bottom:none;"><a href="#"><img src="images/index-11_50.png" width="21" height="20" align="absmiddle"/><span>云服务中心</span></a></li> |
|||
</ul> |
|||
</li> |
|||
<li class="fix-spacer"> </li> |
|||
</ul> |
|||
<br class="clear"/> |
|||
<div class="menuSerach"> |
|||
<input name="" type="text" value="请输入要查找的关键词" onfocus="if (value =='请输入要查找的关键词'){value =''}" onblur="if (value ==''){value='请输入要查找的关键词'}" style="width:202px; padding-left:9px; height:25px; line-height:25px; border:none; color:#fff; background:url(images/index-11_03.png) no-repeat scroll left top; float:left; display:block;" /> |
|||
<input name="submit" type="image" src="images/index-11_04.png" style="display:block; width:25px; height:25px; float:left;"/> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|||
<html xmlns="http://www.w3.org/1999/xhtml"> |
|||
<head> |
|||
<title>{$app_name}</title> |
|||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> |
|||
<link href="styles/general.css" rel="stylesheet" type="text/css" /> |
|||
{literal} |
|||
<style type="text/css"> |
|||
#header-div { |
|||
background: #1b9ad5; |
|||
border-bottom: 1px solid #118ec9; |
|||
height: 83px; |
|||
} |
|||
#logo-div { |
|||
margin-left: 8px; |
|||
margin-top: 21px; |
|||
width: 262px; |
|||
height: 45px; |
|||
float: left; |
|||
} |
|||
#license-div { |
|||
height: 50px; |
|||
float: left; |
|||
text-align: center; |
|||
vertical-align: middle; |
|||
line-height: 50px; |
|||
} |
|||
#license-div a:visited, #license-div a:link { |
|||
color: #EB8A3D; |
|||
} |
|||
#license-div a:hover { |
|||
text-decoration: none; |
|||
color: #EB8A3D; |
|||
} |
|||
#loading-div { |
|||
clear: right; |
|||
text-align: right; |
|||
display: block; |
|||
} |
|||
#submenu-div { |
|||
text-align: center; |
|||
width: 1000px; |
|||
position: absolute; |
|||
right: 0px; |
|||
height: 84px; |
|||
} |
|||
#submenu-div ul { |
|||
margin: 0; |
|||
padding: 0; |
|||
list-style-type: none; |
|||
} |
|||
#submenu-div li { |
|||
float: right; |
|||
width: 82px; |
|||
height: 82px; |
|||
border-left: 1px solid #27aae7; |
|||
border-right: 1px solid #0779ba; |
|||
} |
|||
#submenu-div li a { |
|||
text-align: center; |
|||
height: 74px; |
|||
width: 82px; |
|||
padding-top: 8px; |
|||
display: block; |
|||
text-decoration: none; |
|||
color: #FFF; |
|||
} |
|||
#submenu-div li a:hover { |
|||
background: url(images/muneBG.JPG) repeat-x top center; |
|||
} |
|||
#submenu-div li span { |
|||
margin-top: 6px; |
|||
display: block; |
|||
} |
|||
#submenu-div li img { |
|||
margin: auto; |
|||
display: block; |
|||
} |
|||
#menu-div { |
|||
background: #0e92d0; |
|||
height: 42px; |
|||
} |
|||
#menu-div ul { |
|||
margin: 0px 0px 0px 15px; |
|||
padding: 0; |
|||
list-style-type: none; |
|||
} |
|||
#menu-div ul li { |
|||
float: left; |
|||
display: block; |
|||
height: 42px; |
|||
line-height: 42px; |
|||
position: relative; |
|||
} |
|||
.muneFG { |
|||
height: 13px; |
|||
width: 0px; |
|||
border-right: 1px solid #15aae3; |
|||
margin-top: 15px; |
|||
*margin-top:-18px; |
|||
_margin-top: 0px; |
|||
border-left: 1px solid #08679f; |
|||
display: inline-block; |
|||
} |
|||
#menu-div ul li a { |
|||
float: LEFT; |
|||
color: #FFF; |
|||
padding: 0px 12px; |
|||
display: block; |
|||
text-decoration: none; |
|||
_margin-top: 14px; |
|||
} |
|||
#menu-div ul li a:hover { |
|||
background: #1887bb |
|||
} |
|||
#menu-div ul li a span { |
|||
margin-left: 10px; |
|||
} |
|||
.num { |
|||
width: 32px; |
|||
height: 16px; |
|||
background: url(images/index-11_22.png) no-repeat scroll; |
|||
display: inline-block; |
|||
line-height: 16px; |
|||
vertical-align: middle; |
|||
text-align: center; |
|||
} |
|||
#menu-div ul li a img { |
|||
border: none; |
|||
} |
|||
#menu-div ul li ul { |
|||
display: none; |
|||
} |
|||
#menu-div ul li:hover a { |
|||
color: #fff; |
|||
background: #1887bb; |
|||
} |
|||
#menu-div ul li:hover ul { |
|||
display: block; |
|||
position: absolute; |
|||
top: 42px; |
|||
left: -15px; |
|||
} |
|||
#menu-div ul li:hover ul li { |
|||
border-bottom: 1px solid #11689c; |
|||
border-top: #1f9dd1 1px solid; |
|||
} |
|||
#menu-div ul li:hover ul li a { |
|||
width: 133px; |
|||
display: block; |
|||
} |
|||
#menu-div ul li:hover ul li a:hover { |
|||
width: 133px; |
|||
display: block; |
|||
background: #1480b3; |
|||
} |
|||
#menu-div ul li:hover ul li a.hide { |
|||
background: #6a3; |
|||
color: #fff; |
|||
} |
|||
#menu-div ul li:hover ul li:hover a.hide { |
|||
background: #6fc; |
|||
color: #fff; |
|||
} |
|||
#menu-div li.fix-spacer { |
|||
border: none; |
|||
} |
|||
.menuSerach { |
|||
width: 237px; |
|||
height: 15px; |
|||
float: right; |
|||
margin-right: 18px; |
|||
margin-top: -35px; |
|||
_width: 240px; |
|||
} |
|||
</style> |
|||
{insert_scripts files="../js/transport_jquery.js"} |
|||
<script type="text/javascript"> |
|||
onload = function() |
|||
{ |
|||
Ajax.call('index.php?is_ajax=1&act=license','', start_sendmail_Response, 'GET', 'JSON'); |
|||
} |
|||
/** |
|||
* 帮助系统调用 |
|||
*/ |
|||
function web_address() |
|||
{ |
|||
var ne_add = parent.document.getElementById('main-frame'); |
|||
var ne_list = ne_add.contentWindow.document.getElementById('search_id').innerHTML; |
|||
ne_list.replace('-', ''); |
|||
var arr = ne_list.split('-'); |
|||
window.open('help.php?al='+arr[arr.length - 1],'_blank'); |
|||
} |
|||
|
|||
|
|||
/** |
|||
* 授权检测回调处理 |
|||
*/ |
|||
function start_sendmail_Response(result) |
|||
{ |
|||
// 运行正常 |
|||
if (result.error == 0) |
|||
{ |
|||
var str = ''; |
|||
if (result['content']['auth_str']) |
|||
{ |
|||
str = '<a href="javascript:void(0);" target="_blank">' + result['content']['auth_str']; |
|||
if (result['content']['auth_type']) |
|||
{ |
|||
str += '[' + result['content']['auth_type'] + ']'; |
|||
} |
|||
str += '</a> '; |
|||
} |
|||
|
|||
document.getElementById('license-div').innerHTML = str; |
|||
} |
|||
} |
|||
|
|||
function modalDialog(url, name, width, height) |
|||
{ |
|||
if (width == undefined) |
|||
{ |
|||
width = 400; |
|||
} |
|||
if (height == undefined) |
|||
{ |
|||
height = 300; |
|||
} |
|||
|
|||
if (window.showModalDialog) |
|||
{ |
|||
window.showModalDialog(url, name, 'dialogWidth=' + (width) + 'px; dialogHeight=' + (height+5) + 'px; status=off'); |
|||
} |
|||
else |
|||
{ |
|||
x = (window.screen.width - width) / 2; |
|||
y = (window.screen.height - height) / 2; |
|||
|
|||
window.open(url, name, 'height='+height+', width='+width+', left='+x+', top='+y+', toolbar=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, modal=yes'); |
|||
} |
|||
} |
|||
|
|||
function ShowToDoList() |
|||
{ |
|||
try |
|||
{ |
|||
var mainFrame = window.top.frames['main-frame']; |
|||
mainFrame.window.showTodoList(adminId); |
|||
} |
|||
catch (ex) |
|||
{ |
|||
} |
|||
} |
|||
|
|||
|
|||
var adminId = "{$admin_id}"; |
|||
{/literal} |
|||
</script> |
|||
</head> |
|||
<body> |
|||
<div id="header-div"> |
|||
<div id="logo-div"><img src="images/topLogo.jpg" alt="ECMOBAN - power for e-commerce" /></div> |
|||
<div id="submenu-div"> |
|||
<ul> |
|||
<li><a href="privilege.php?act=logout" target="main-frame"><img src="images/topmune_08.png" style="border:none;"/><span>{$lang.signout}</span></a></li> |
|||
<li><a href="http://www.ecmoban.com/ecshop_jieshao.html" target="_blank"><img src="images/topmune_07.png" style="border:none;"/><span>{$lang.about}</span></a></li> |
|||
<li><a href="http://www.ecmoban.com/ecshop.html" target="_blank"><img src="images/topmune_007.png" style="border:none;"/><span>{$lang.help}</span></a></li> |
|||
<li><a href="../" target="_blank"><img src="images/topmune_06.png" style="border:none;"/><span>{$lang.preview}</span></a></li> |
|||
<li><a href="message.php?act=list" target="main-frame"><img src="images/topmune_05.png" style="border:none;"/><span>{$lang.view_message}</span></a></li> |
|||
<li><a href="privilege.php?act=modif" target="main-frame"><img src="images/topmune_04.png" style="border:none;"/><span>{$lang.profile}</span></a></li> |
|||
<li><a href="javascript:window.top.frames['main-frame'].document.location.reload();window.top.frames['header-frame'].document.location.reload()"><img src="images/topmune_03.png" style="border:none;"/><span>{$lang.refresh}</span></a></li> |
|||
<li><a href="#" onclick="ShowToDoList()"><img src="images/topmune_02.png" style="border:none;"/><span>{$lang.todolist}</span></a></li> |
|||
<li style="border-left:none;"><a href="index.php?act=first" target="main-frame"><img src="images/topmune_01.png" style="border:none;"/><span>{$lang.shop_guide}</span></a></li> |
|||
</ul> |
|||
<div id="send_info" style="padding: 5px 10px 0 0; clear:right;text-align: right; color: #FF9900;width:40%;float: right; display:none;"> {if $send_mail_on eq 'on'} <span id="send_msg"><img src="images/top_loader.gif" width="21" height="21" alt="{$lang.loading}" style="vertical-align: middle" /> {$lang.email_sending}</span> <a href="javascript:;" onClick="Javascript:switcher()" id="lnkSwitch" style="margin-right:10px;color: #FF9900;text-decoration: underline">{$lang.pause}</a> {/if} <a href="index.php?act=clear_cache" target="main-frame" class="fix-submenu">{$lang.clear_cache}</a> </div> |
|||
{if $send_mail_on eq 'on'} |
|||
<script type="text/javascript" charset="gb2312"> |
|||
var sm = window.setInterval("start_sendmail()", 5000); |
|||
var finished = 0; |
|||
var error = 0; |
|||
var conti = "{$lang.conti}"; |
|||
var pause = "{$lang.pause}"; |
|||
var counter = 0; |
|||
var str = "{$lang.str}"; |
|||
{literal} |
|||
function start_sendmail() |
|||
{ |
|||
Ajax.call('index.php?is_ajax=1&act=send_mail','', start_sendmail_Response, 'GET', 'JSON'); |
|||
} |
|||
function start_sendmail_Response(result) |
|||
{ |
|||
if (typeof(result.count) == 'undefined') |
|||
{ |
|||
result.count = 0; |
|||
result.message = ''; |
|||
} |
|||
if (typeof(result.count) != 'undefined' && result.count == 0) |
|||
{ |
|||
counter --; |
|||
document.getElementById('lnkSwitch').style.display = "none"; |
|||
window.clearInterval(sm); |
|||
} |
|||
|
|||
if( typeof(result.goon) != 'undefined' ) |
|||
{ |
|||
start_sendmail(); |
|||
} |
|||
|
|||
counter ++ ; |
|||
|
|||
document.getElementById('send_msg').innerHTML = result.message; |
|||
} |
|||
function switcher() |
|||
{ |
|||
if(document.getElementById('lnkSwitch').innerHTML == conti) |
|||
{ |
|||
//do pause |
|||
document.getElementById('lnkSwitch').innerHTML = pause; |
|||
sm = window.setInterval("start_sendmail()", 5000); |
|||
} |
|||
else |
|||
{ |
|||
//do continue |
|||
document.getElementById('lnkSwitch').innerHTML = conti; |
|||
document.getElementById('send_msg').innerHTML = sprintf(str, counter); |
|||
window.clearInterval(sm); |
|||
} |
|||
} |
|||
|
|||
|
|||
|
|||
sprintfWrapper = { |
|||
|
|||
init : function () { |
|||
|
|||
if (typeof arguments == "undefined") { return null; } |
|||
if (arguments.length < 1) { return null; } |
|||
if (typeof arguments[0] != "string") { return null; } |
|||
if (typeof RegExp == "undefined") { return null; } |
|||
|
|||
var string = arguments[0]; |
|||
var exp = new RegExp(/(%([%]|(\-)?(\+|\x20)?(0)?(\d+)?(\.(\d)?)?([bcdfosxX])))/g); |
|||
var matches = new Array(); |
|||
var strings = new Array(); |
|||
var convCount = 0; |
|||
var stringPosStart = 0; |
|||
var stringPosEnd = 0; |
|||
var matchPosEnd = 0; |
|||
var newString = ''; |
|||
var match = null; |
|||
|
|||
while (match = exp.exec(string)) { |
|||
if (match[9]) { convCount += 1; } |
|||
|
|||
stringPosStart = matchPosEnd; |
|||
stringPosEnd = exp.lastIndex - match[0].length; |
|||
strings[strings.length] = string.substring(stringPosStart, stringPosEnd); |
|||
|
|||
matchPosEnd = exp.lastIndex; |
|||
matches[matches.length] = { |
|||
match: match[0], |
|||
left: match[3] ? true : false, |
|||
sign: match[4] || '', |
|||
pad: match[5] || ' ', |
|||
min: match[6] || 0, |
|||
precision: match[8], |
|||
code: match[9] || '%', |
|||
negative: parseInt(arguments[convCount]) < 0 ? true : false, |
|||
argument: String(arguments[convCount]) |
|||
}; |
|||
} |
|||
strings[strings.length] = string.substring(matchPosEnd); |
|||
|
|||
if (matches.length == 0) { return string; } |
|||
if ((arguments.length - 1) < convCount) { return null; } |
|||
|
|||
var code = null; |
|||
var match = null; |
|||
var i = null; |
|||
|
|||
for (i=0; i<matches.length; i++) { |
|||
|
|||
if (matches[i].code == '%') { substitution = '%' } |
|||
else if (matches[i].code == 'b') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(2)); |
|||
substitution = sprintfWrapper.convert(matches[i], true); |
|||
} |
|||
else if (matches[i].code == 'c') { |
|||
matches[i].argument = String(String.fromCharCode(parseInt(Math.abs(parseInt(matches[i].argument))))); |
|||
substitution = sprintfWrapper.convert(matches[i], true); |
|||
} |
|||
else if (matches[i].code == 'd') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument))); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 'f') { |
|||
matches[i].argument = String(Math.abs(parseFloat(matches[i].argument)).toFixed(matches[i].precision ? matches[i].precision : 6)); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 'o') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(8)); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 's') { |
|||
matches[i].argument = matches[i].argument.substring(0, matches[i].precision ? matches[i].precision : matches[i].argument.length) |
|||
substitution = sprintfWrapper.convert(matches[i], true); |
|||
} |
|||
else if (matches[i].code == 'x') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(16)); |
|||
substitution = sprintfWrapper.convert(matches[i]); |
|||
} |
|||
else if (matches[i].code == 'X') { |
|||
matches[i].argument = String(Math.abs(parseInt(matches[i].argument)).toString(16)); |
|||
substitution = sprintfWrapper.convert(matches[i]).toUpperCase(); |
|||
} |
|||
else { |
|||
substitution = matches[i].match; |
|||
} |
|||
|
|||
newString += strings[i]; |
|||
newString += substitution; |
|||
|
|||
} |
|||
newString += strings[i]; |
|||
|
|||
return newString; |
|||
|
|||
}, |
|||
|
|||
convert : function(match, nosign){ |
|||
if (nosign) { |
|||
match.sign = ''; |
|||
} else { |
|||
match.sign = match.negative ? '-' : match.sign; |
|||
} |
|||
var l = match.min - match.argument.length + 1 - match.sign.length; |
|||
var pad = new Array(l < 0 ? 0 : l).join(match.pad); |
|||
if (!match.left) { |
|||
if (match.pad == "0" || nosign) { |
|||
return match.sign + pad + match.argument; |
|||
} else { |
|||
return pad + match.sign + match.argument; |
|||
} |
|||
} else { |
|||
if (match.pad == "0" || nosign) { |
|||
return match.sign + match.argument + pad.replace(/0/g, ' '); |
|||
} else { |
|||
return match.sign + match.argument + pad; |
|||
} |
|||
} |
|||
} |
|||
} |
|||
|
|||
sprintf = sprintfWrapper.init; |
|||
|
|||
|
|||
|
|||
{/literal} |
|||
</script> |
|||
{/if} |
|||
<div id="load-div" style="padding: 30px 20px 0 0; text-align: right; color: #FF9900; display: none;float:right;"><img src="images/top_loader.gif" width="21" height="21" alt="{$lang.loading}" style="vertical-align: middle" /> {$lang.loading}</div> |
|||
</div> |
|||
</div> |
|||
<div class="clear"></div> |
|||
<div id="menu-div"> |
|||
<ul> |
|||
<li class="fix-spacer"></li> |
|||
|
|||
<li style="border-left:none;"><a href="#" target="main-frame"><img src="images/index-11_07.png" width="17" height="18" style="border:none;" align="absmiddle"/><span>起始页</span></a><span class="muneFG"></span></li> |
|||
<li><a href="#"><img src="images/index-11_09.png" width="17" height="18" align="absmiddle"/><span>商品管理</span></a><span class="muneFG"></span></li> |
|||
<li><a href="#"><img src="images/index-11_11.png" width="17" height="18" align="absmiddle"/><span>促销管理</span></a><span class="muneFG"></span></li> |
|||
<li><a href="#"><img src="images/dd.png" width="15" height="18" align="absmiddle"/><span>订单管理</span><span class="num">132</span></a><span class="muneFG"></span></li> |
|||
<li><a href="#"><img src="images/index-11_13.png" width="17" height="20" align="absmiddle"/><span>广告管理</span><span class="num">132</span></a><span class="muneFG"></span></li> |
|||
<li><a href="#"><img src="images/index-11_15.png" width="17" height="20" align="absmiddle"/><span>报表统计</span></a><span class="muneFG"></span></li> |
|||
<li><a href="#"><img src="images/index-11_17.png" width="17" height="20" align="absmiddle"/><span>文章管理</span><span class="num">132</span></a><span class="muneFG"></span></li> |
|||
<li ><a href="#"><img src="images/index-11_19.png" width="21" height="20" align="absmiddle"/><span>会员管理</span></a><span class="muneFG"></span></li> |
|||
<li style="border-right:none;"><a href="#"><span style="margin-left:0px;">更多</span><img src="images/index-11_25.png" style="margin-left:5px;" width="8" height="4" /></a> |
|||
<ul> |
|||
<li style="border-top:none;"><a href="#"><img src="images/index-11_38.png" width="21" height="20" align="absmiddle"/><span>权限管理</span></a></li> |
|||
<li><a href="#"><img src="images/index-11_41.png" width="21" height="20" align="absmiddle"/><span>系统设置</span></a></li> |
|||
<li><a href="#"><img src="images/index-11_43.png" width="21" height="20" align="absmiddle"/><span>短信管理</span></a></li> |
|||
<li><a href="#"><img src="images/index-11_45.png" width="21" height="20" align="absmiddle"/><span>推荐管理</span></a></li> |
|||
<li><a href="#"><img src="images/index-11_47.png" width="21" height="20" align="absmiddle"/><span>邮件群发管理</span></a></li> |
|||
<li><a href="#"><img src="images/index-11_41.png" width="21" height="20" align="absmiddle"/><span>商家入驻管理</span></a></li> |
|||
<li><a href="#"><img src="images/index-11_41.png" width="21" height="20" align="absmiddle"/><span>商品批量管理</span></a></li> |
|||
<li style="border-bottom:none;"><a href="#"><img src="images/index-11_50.png" width="21" height="20" align="absmiddle"/><span>云服务中心</span></a></li> |
|||
</ul> |
|||
</li> |
|||
<li class="fix-spacer"> </li> |
|||
</ul> |
|||
<br class="clear"/> |
|||
<div class="menuSerach"> |
|||
<input name="" type="text" value="请输入要查找的关键词" onfocus="if (value =='请输入要查找的关键词'){value =''}" onblur="if (value ==''){value='请输入要查找的关键词'}" style="width:202px; padding-left:9px; height:25px; line-height:25px; border:none; color:#fff; background:url(images/index-11_03.png) no-repeat scroll left top; float:left; display:block;" /> |
|||
<input name="submit" type="image" src="images/index-11_04.png" style="display:block; width:25px; height:25px; float:left;"/> |
|||
</div> |
|||
</div> |
|||
</body> |
|||
</html> |
|||
Loading…
Reference in new issue