delete cache

This commit is contained in:
wayne 2023-06-28 03:51:56 +08:00
parent 77a5d6e2c4
commit 0970914a32
46 changed files with 0 additions and 8065 deletions

View File

@ -1,91 +0,0 @@
<!-- $Id: admin_logs.htm 15477 2008-12-22 03:44:50Z sunxiaodong $ -->
<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>
<div class="form-div">
<table>
<tr>
<td width="50%">
<form name="theForm" method="POST" action="admin_logs.php">
<?php echo $this->_var['lang']['view_ip']; ?>
<select name="ip">
<option value='0'><?php echo $this->_var['lang']['select_ip']; ?></option>
<?php echo $this->html_options(array('options'=>$this->_var['ip_list'],'selected'=>$this->_var['ip'])); ?>
</select>
<input type="submit" value="<?php echo $this->_var['lang']['comfrom']; ?>" class="button" />
</form>
</td>
<td>
<form name="Form2" action="admin_logs.php?act=batch_drop" method="POST">
<?php echo $this->_var['lang']['drop_logs']; ?>
<select name="log_date">
<option value='0'><?php echo $this->_var['lang']['select_date']; ?></option>
<option value='1'><?php echo $this->_var['lang']['week_date']; ?></option>
<option value='2'><?php echo $this->_var['lang']['month_date']; ?></option>
<option value='3'><?php echo $this->_var['lang']['three_month']; ?></option>
<option value='4'><?php echo $this->_var['lang']['six_month']; ?></option>
<option value='5'><?php echo $this->_var['lang']['a_yaer']; ?></option>
</select>
<input name="drop_type_date" type="submit" value="<?php echo $this->_var['lang']['comfrom']; ?>" class="button" />
</form>
</td>
</tr>
</table>
</div>
<form method="POST" action="admin_logs.php?act=batch_drop" name="listForm">
<!-- start admin_logs list -->
<div class="list-div" id="listDiv">
<?php endif; ?>
<table cellpadding="3" cellspacing="1">
<tr>
<th><input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
<a href="javascript:listTable.sort('log_id'); "><?php echo $this->_var['lang']['log_id']; ?></a><?php echo $this->_var['sort_log_id']; ?></th>
<th><a href="javascript:listTable.sort('user_id'); "><?php echo $this->_var['lang']['user_id']; ?></a><?php echo $this->_var['sort_user_id']; ?></th>
<th><a href="javascript:listTable.sort('log_time'); "><?php echo $this->_var['lang']['log_time']; ?></a><?php echo $this->_var['sort_log_time']; ?></th>
<th><a href="javascript:listTable.sort('ip_address'); "><?php echo $this->_var['lang']['ip_address']; ?></a><?php echo $this->_var['sort_ip_address']; ?></th>
<th><?php echo $this->_var['lang']['log_info']; ?></th>
</tr>
<?php $_from = $this->_var['log_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'list');if (count($_from)):
foreach ($_from AS $this->_var['list']):
?>
<tr>
<td width="10%"><span><input name="checkboxes[]" type="checkbox" value="<?php echo $this->_var['list']['log_id']; ?>" /><?php echo $this->_var['list']['log_id']; ?></span></td>
<td width="15%" class="first-cell"><span><?php echo htmlspecialchars($this->_var['list']['user_name']); ?></span></td>
<td width="20%" align="center"><span><?php echo $this->_var['list']['log_time']; ?></span></td>
<td width="15%" align="left"><span><?php echo $this->_var['list']['ip_address']; ?></span></td>
<td width="40%" align="left"><span><?php echo $this->_var['list']['log_info']; ?></span></td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<tr>
<td colspan="2"><input name="drop_type_id" type="submit" id="btnSubmit" value="<?php echo $this->_var['lang']['drop_logs']; ?>" disabled="true" class="button" /></td>
<td align="right" nowrap="true" colspan="10"><?php echo $this->fetch('page.htm'); ?></td>
</tr>
</table>
<?php if ($this->_var['full_page']): ?>
</div>
<!-- end ad_position list -->
<script type="text/javascript" language="JavaScript">
listTable.recordCount = <?php echo $this->_var['record_count']; ?>;
listTable.pageCount = <?php echo $this->_var['page_count']; ?>;
<?php $_from = $this->_var['filter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
listTable.filter.<?php echo $this->_var['key']; ?> = '<?php echo $this->_var['item']; ?>';
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
onload = function()
{
// &#65533;&#65533;&#700;&#65533;&#65533;鹜&#65533;&#65533;
startCheckOrder();
}
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>

View File

@ -1,91 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- $Id: drag.htm 14216 2008-03-10 02:27:21Z testyang $ -->
<html>
<head>
<title></title>
<style type="text/css">
body {
margin: 0;
padding: 0;
}
</style>
<script type="text/javascript" language="JavaScript">
<!--
var pic = new Image();
pic.src="images/arrow_right.gif";
function toggleMenu()
{
frmBody = parent.document.getElementById('frame-body');
imgArrow = document.getElementById('img');
var ele= document.getElementById("show_right");
// var ele2=ele.document.getElementById("main-div");
//alert(ele.document);
if (frmBody.cols == "180, 10, *")
{
frmBody.cols="0, 47, *";
imgArrow.src = "images/arrow_left.gif";
ele.style["display"]="block";
}
else
{
frmBody.cols="180, 10, *";
imgArrow.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();
}
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;
}
//-->
</script>
</head>
<body >
<div class="" onClick="toggleMenu();">
<div id="show_right" style="display:none; position:relative; height:100%; width:37px; background:url(images/show_icon.gif) no-repeat center top; cursor:pointer;"></div>
<table height="100%" cellspacing="0" cellpadding="0" id="tbl" style=" position:absolute; right:0;top:0%; background: #303030;">
<tr><td><a href="javascript:void(0);"><img src="images/arrow_left.gif" width="10" height="30" id="img" border="0" /></a></td></tr>
</table>
</div>
</body>
</html>

View File

@ -1,74 +0,0 @@
<!-- $Id: category_info.htm 16752 2009-10-20 09:59:38Z wangleisvn $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<!-- start add new category form -->
<div class="main-div">
<form action="facility.php" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
<table width="100%" id="general-table">
<tr>
<td class="label">名稱:</td>
<td>
<input type='text' name='name' maxlength="20" value='<?php echo htmlspecialchars($this->_var['fac']['name']); ?>' size='27' /> <font color="red">*</font>
</td>
</tr>
<tr>
<td class="label">排序:</td>
<td>
<input type="text" name='sort_order' <?php if ($this->_var['fac']['sort_order']): ?>value='<?php echo $this->_var['fac']['sort_order']; ?>'<?php else: ?> value="50"<?php endif; ?> size="15" />
</td>
</tr>
<tr>
<td class="label">是否有效:</td>
<td>
<input type="radio" name="is_show" value="1" <?php if ($this->_var['fac']['is_show'] != 0): ?> checked="true"<?php endif; ?>/> <?php echo $this->_var['lang']['yes']; ?>
<input type="radio" name="is_show" value="0" <?php if ($this->_var['fac']['is_show'] == 0): ?> checked="true"<?php endif; ?> /> <?php echo $this->_var['lang']['no']; ?>
</td>
</tr>
<tr>
<td class="label">上傳檔案:</td>
<td>
<input type="file" name="image"/><br />
<div style="padding:10px 0px">
<?php if ($this->_var['fac']['image'] != ''): ?>
<a href="javascript:void(0);" onClick="openwindow('../<?php echo $this->_var['fac']['image']; ?>','照片',800,500);">
<img src="../<?php echo $this->_var['fac']['image']; ?>" width="100" height="100" />
</a>
<?php else: ?>
<?php echo $this->_var['lang']['msg_na']; ?>
<?php endif; ?>
</div>
</td>
</tr>
</table>
<div class="button-div">
<input type="submit" value="確定" />
<input type="reset" value="重置" />
</div>
<input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
<input type="hidden" name="id" value="<?php echo $this->_var['fac']['id']; ?>" />
</form>
</div>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,validator.js')); ?>
<script language="JavaScript">
<!--
document.forms['theForm'].elements['name'].focus();
/**
* 检查表单输入的数据
*/
function validate()
{
validator = new Validator("theForm");
validator.required("name",'名稱未填');
return validator.passed();
}
onload = function()
{
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,57 +0,0 @@
<!-- $Id: facility_list.htm 17019 2010-01-29 10:10:34Z liuhui $ -->
<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>
<form method="post" action="" name="listForm">
<!-- start ad position list -->
<div class="list-div" id="listDiv">
<?php endif; ?>
<table width="100%" cellspacing="1" cellpadding="2" id="list-table">
<tr>
<th>設施名稱</th>
<th>設施圖檔</th>
<th>是否有效</th>
<th>排序</th>
<th><?php echo $this->_var['lang']['handler']; ?></th>
</tr>
<?php $_from = $this->_var['fac_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'fac');if (count($_from)):
foreach ($_from AS $this->_var['fac']):
?>
<tr align="center">
<td align="left" class="first-cell" >
<span><?php echo $this->_var['fac']['name']; ?></span>
</td>
<td width="10%">
<?php if ($this->_var['fac']['image']): ?>
<img src="../<?php echo $this->_var['fac']['image']; ?>" border="0" style="vertical-align:middle;" width="25px" height="25px">
<?php endif; ?>
</td>
<td width="10%"><img src="images/<?php if ($this->_var['fac']['is_show'] == '1'): ?>yes<?php else: ?>no<?php endif; ?>.gif" onclick="listTable.toggle(this, 'toggle_is_show', <?php echo $this->_var['fac']['id']; ?>)" /></td>
<td width="10%" align="right"><span onclick="listTable.edit(this, 'edit_sort_order', <?php echo $this->_var['fac']['id']; ?>)"><?php echo $this->_var['fac']['sort_order']; ?></span></td>
<td width="24%" align="center">
<a href="facility.php?act=edit&id=<?php echo $this->_var['fac']['id']; ?>">編輯</a> |
<a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['fac']['id']; ?>, '確認刪除')" title="刪除">移除</a>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
<?php if ($this->_var['full_page']): ?>
</div>
</form>
<script language="JavaScript">
<!--
onload = function()
{
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>

View File

@ -1,28 +0,0 @@
<!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><?php echo $this->_var['lang']['cp_home']; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="Text/Javascript" language="JavaScript">
<!--
if (window.top != window)
{
window.top.location.href = document.location.href;
}
//-->
</script>
<frameset rows="118,*" framespacing="0" border="0">
<frame src="index.php?act=top" id="header-frame" name="header-frame" frameborder="no" scrolling="no" style="background:#212121;">
<frameset cols="180, 10, *" framespacing="0" border="0" id="frame-body">
<frame src="index.php?act=menu" id="menu-frame" name="menu-frame" frameborder="no" scrolling="yes">
<frame src="index.php?act=drag" id="drag-frame" name="drag-frame" frameborder="no" scrolling="no">
<frame src="index.php?act=main" id="main-frame" name="main-frame" frameborder="no" scrolling="yes">
</frameset>
</frameset><noframes></noframes>
</head>
<body>
</body>
</html>

View File

@ -1,159 +0,0 @@
<!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><?php echo $this->_var['lang']['cp_home']; ?><?php if ($this->_var['ur_here']): ?> - <?php echo $this->_var['ur_here']; ?><?php endif; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body,html {
height: 100%;
overflow: hidden;
}
</style>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,validator.js,../js/transport.js')); ?>
<script language="JavaScript">
<!--
// 这里把JS用到的所有语言都赋值到这里
<?php $_from = $this->_var['lang']['js_languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
if (window.parent != window) {
window.top.location.href = location.href;
}
//-->
</script>
</head>
<body style="height: 100%;padding: 0">
<form class="login-body" method="post" action="privilege.php" name='theForm' onsubmit="return validate()">
<div class="login-hd">
</div>
<div class="center-wrap" id="centerWrap">
<div class="login-center">
</div>
<div class="message"><?php echo $this->_var['login_err']; ?></div>
<div class="z-bd">
<div class="login-panel" id="loginPanel">
<h3 class="panel-hd cl-link-blue"><?php echo $this->_var['lang']['ecshop_login']; ?></h3>
<div class="controls first">
<svg class="iconphone" width="20px" height="20px" viewBox="0 0 20 20">
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<g id="2-copy-2" sketch:type="MSArtboardGroup" transform="translate(-505.000000, -357.000000)" fill="#666">
<path d="M517.388314,366.868305 C519.068314,366.001784 520.220053,364.252653 520.220053,362.231784 C520.220053,359.350479 517.883966,357.014392 515.002662,357.014392 C512.121357,357.014392 509.78527,359.350479 509.78527,362.231784 C509.78527,364.252653 510.936575,366.001784 512.616575,366.868305 C508.246575,367.938305 505.002662,371.879175 505.002662,376.57961 C505.002662,376.81961 505.197009,377.014392 505.437444,377.014392 C505.677444,377.014392 505.872227,376.81961 505.872227,376.57961 C505.872227,371.537001 509.960053,367.449175 515.002662,367.449175 C520.04527,367.449175 524.133096,371.537001 524.133096,376.57961 C524.133096,376.81961 524.327444,377.014392 524.567879,377.014392 C524.807879,377.014392 525.002662,376.81961 525.002662,376.57961 C525.002662,371.879175 521.758749,367.938305 517.388314,366.868305 L517.388314,366.868305 Z M510.654835,362.231784 C510.654835,359.830479 512.601357,357.883957 515.002662,357.883957 C517.403966,357.883957 519.350488,359.830479 519.350488,362.231784 C519.350488,364.632653 517.403966,366.57961 515.002662,366.57961 C512.601357,366.57961 510.654835,364.632653 510.654835,362.231784 L510.654835,362.231784 Z" id="id" sketch:type="MSShapeGroup"></path>
</g>
</g>
</svg>
<input type="text" name="username" placeholder="<?php echo $this->_var['lang']['label_username']; ?>" />
</div>
<div class="controls two">
<svg class="iconphone" width="20px" height="20px" viewBox="0 0 20 20">
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<g id="2-copy-2" sketch:type="MSArtboardGroup" transform="translate(-505.000000, -407.000000)" fill="#666">
<path d="M515,418.304324 C514.12782,418.304324 513.421091,418.888119 513.421091,419.608723 C513.421091,419.995004 513.624357,420.341947 513.947394,420.580774 L513.947394,421.782554 C513.947394,422.262857 514.418637,422.652187 515.00003,422.652187 C515.581302,422.652187 516.052667,422.262857 516.052667,421.782554 L516.052667,420.580774 C516.375703,420.341947 516.579,419.995004 516.579,419.608723 C516.57897,418.888119 515.87221,418.304324 515,418.304324 L515,418.304324 L515,418.304324 Z M522.368454,414.391327 L521.315788,414.391327 L521.315788,412.217421 C521.315788,409.335657 518.488418,407 515,407 C511.511582,407 508.684212,409.335657 508.684212,412.217421 L508.684212,414.391327 L507.631576,414.391327 C506.178003,414.391327 505,415.364503 505,416.565234 L505,424.826193 C505,426.026824 506.178003,427 507.631576,427 L522.368424,427 C523.821422,427 525,426.026899 525,424.826193 L525,416.565234 C525.00003,415.364478 523.821422,414.391327 522.368454,414.391327 L522.368454,414.391327 L522.368454,414.391327 Z M515,407.869583 C517.906571,407.869583 520.263152,409.816309 520.263152,412.217396 L520.263152,414.391302 L509.737544,414.391302 L509.737544,412.217396 L509.736848,412.217396 C509.736848,409.816309 512.093459,407.869583 515,407.869583 L515,407.869583 L515,407.869583 Z M523.947364,424.826093 C523.947364,425.546622 523.240604,426.130392 522.368454,426.130392 L507.631606,426.130392 C506.759396,426.130392 506.052667,425.546622 506.052667,424.826093 L506.052667,416.565234 C506.052667,415.84468 506.759426,415.260835 507.631606,415.260835 L522.368454,415.260835 C523.240635,415.260835 523.947364,415.844705 523.947364,416.565234 L523.947364,424.826093 L523.947364,424.826093 L523.947364,424.826093 Z" id="pw" sketch:type="MSShapeGroup"></path>
</g>
</g>
</svg>
<input type="password" name="password" placeholder="<?php echo $this->_var['lang']['label_password']; ?>"/>
</div>
<?php if ($this->_var['gd_version'] > 0): ?>
<div class="controls third">
<svg class="iconphone" width="20px" height="20px" viewBox="0 0 20 20">
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<g id="2-copy-2" sketch:type="MSArtboardGroup" transform="translate(-505.000000, -457.000000)" fill="#666">
<path d="M514.992364,462.720402 C514.752337,462.720402 514.558125,462.879933 514.558125,463.077076 L514.558125,468.784241 C514.558125,468.981384 514.752337,469.140915 514.992364,469.140915 C515.232364,469.140915 515.426576,468.981384 515.426576,468.784241 L515.426576,463.077076 C515.426576,462.879933 515.232364,462.720402 514.992364,462.720402 L514.992364,462.720402 Z M524.979837,460.500513 C524.421168,460.552589 523.839891,460.580179 523.242853,460.580179 C519.219511,460.580179 515.906875,459.331741 515.474864,457.726607 L515.426603,457.726607 L515.426603,457.369955 C515.426603,457.173147 515.232391,457.013259 514.992391,457.013259 C514.752364,457.013259 514.558152,457.17317 514.558152,457.369955 L514.558152,457.726629 L514.509891,457.726629 C514.077853,459.331763 510.76519,460.580201 506.741821,460.580201 C506.14481,460.580201 505.563533,460.552589 505.004891,460.500536 L505.004891,461.214799 C505.015217,461.215737 505.025462,461.216808 505.035815,461.217746 C505.015408,461.592723 505.004891,461.974732 505.004891,462.363705 C505.004891,470.440558 509.476196,476.988237 514.992391,476.988237 C520.50856,476.988237 524.979864,470.440558 524.979864,462.363705 C524.979864,461.974732 524.969321,461.592723 524.948913,461.217746 C524.959266,461.216808 524.969511,461.215759 524.979864,461.214799 L524.979864,460.500513 L524.979837,460.500513 Z M514.992364,476.274866 C509.956196,476.274866 505.873315,470.046652 505.873315,462.363705 C505.873315,461.994085 505.882962,461.631317 505.901576,461.27529 C506.178125,461.287299 506.458315,461.293638 506.741793,461.293638 C510.588886,461.293638 513.851549,460.163281 514.992364,458.597634 C516.133152,460.163281 519.395842,461.293638 523.242853,461.293638 C523.526386,461.293638 523.806576,461.287299 524.083125,461.27529 C524.101739,461.631317 524.111386,461.994107 524.111386,462.363705 C524.111386,470.046629 520.028533,476.274866 514.992364,476.274866 L514.992364,476.274866 Z M514.992364,469.85433 C514.752337,469.85433 514.558125,470.014196 514.558125,470.211004 L514.558125,470.924375 C514.558125,471.121518 514.752337,471.281094 514.992364,471.281094 C515.232364,471.281094 515.426576,471.121518 515.426576,470.924375 L515.426576,470.211004 C515.426576,470.014196 515.232364,469.85433 514.992364,469.85433 L514.992364,469.85433 Z" id="code" sketch:type="MSShapeGroup"></path>
</g>
</g>
</svg>
<input type="text" name="no-captcha" class="capital" placeholder="<?php echo $this->_var['lang']['label_captcha']; ?>" />
<!--<input name="captchas" type="text" data-error-msg="验证码不能为空" class="Inp-v" placeholder="输入验证码"><i class="Ico"></i>-->
<div class="" style="position: absolute; right: 8px; top: 8px;" id="number_div">
<img src="index.php?act=captcha&<?php echo $this->_var['random']; ?>" width="102" height="34" alt="CAPTCHA" border="1" onclick= this.src="index.php?act=captcha&"+Math.random() style="cursor: pointer;" title="<?php echo $this->_var['lang']['click_for_another']; ?>" />
</div>
</div>
<?php endif; ?>
<div class="controls last">
<input type="submit" class="btn-a" value="<?php echo $this->_var['lang']['signin_now']; ?>" class="button" />
<span style="display: none" id="login_error_msg"></span>
</div>
<div class="controls bside" style="border: none">
<input type="checkbox" value="1" name="remember" id="remember" />
<label for="remember"><?php echo $this->_var['lang']['remember']; ?></label></td>
</div>
</div>
</div>
</div>
<input type="hidden" name="act" value="signin" />
</form>
<script language="JavaScript">
//三次密码输入错误,出现验证码(火狐触发不了,不过影响不大)
(function(win,doc){
if(!doc.getCookie('loginNum')){
doc.setCookie('loginNum','1',1);
}else{
doc.setCookie('loginNum',doc.getCookie('loginNum')*1+1,1);
}
//if(doc.getCookie('loginNum')>3){
var oInput=doc.getElementsByClassName('capital')[0];
var oT=doc.getElementsByClassName('third')[0];
oT.classList.add('active');
oT.previousElementSibling.classList.add('active');
oInput.name='captcha';
//}
})(window,document);
<!--
document.forms['theForm'].elements['username'].focus();
/**
* 检查表单输入的内容
*/
function validate()
{
var validator = new Validator('theForm');
validator.required('username', user_name_empty);
//validator.required('password', password_empty);
if (document.forms['theForm'].elements['captcha'])
{
validator.required('captcha', captcha_empty);
}
return validator.passed();
}
var dom ="<h3 class='panel-hd cl-orange'><?php echo $this->_var['lang']['yunqi_login']; ?></h3><div class='main'><span class='error-hint' <?php if (! $this->_var['error_msg']): ?> style='display:none' <?php endif; ?> id='login_error_msg'><?php echo $this->_var['error_msg']; ?></span><iframe id='loginFrame' src='<?php echo $this->_var['iframe_url']; ?>' height='220' frameborder='0' scrolling='no'></iframe><div class='cloud-passw'><a target='_blank' href='https://account.shopex.cn/forget?' style='float:left;'><?php echo $this->_var['lang']['forget_pwd']; ?></a> <a href='javascript:void(0)' style='float:right;' onclick='loginTab()'><?php echo $this->_var['lang']['back_local_login']; ?>&gt;&gt;</a> </div> </div>";
var cloudLogin = document.getElementById('cloudLogin');
var elsePanel = document.getElementById('elseLogin');
var loginPanel = document.getElementById('loginPanel');
var oldLogin = loginPanel.innerHTML;
var oldElseTxt = elsePanel.getElementsByTagName('p')[0].innerHTML;
cloudLogin.onclick = function(){
loginTab();
}
function loginTab(){
if(JSON.stringify(elsePanel.classList).indexOf('ecshop')<0){
loginPanel.classList.add('cloud');
elsePanel.classList.add('ecshop');
loginPanel.innerHTML= dom;
elsePanel.getElementsByTagName('p')[0].innerHTML = '<?php echo $this->_var['lang']['ecshop_account']; ?>';
}else{
loginPanel.classList.remove('cloud');
elsePanel.classList.remove('ecshop');
loginPanel.innerHTML= oldLogin;
elsePanel.getElementsByTagName('p')[0].innerHTML = oldElseTxt;
}
}
</script>
</body>

View File

@ -1,564 +0,0 @@
<!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>ECSHOP Menu</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<script language="JavaScript">
<!--
var noHelp = "<p align='center' style='color: #666'><?php echo $this->_var['lang']['no_help']; ?></p>";
var helpLang = "<?php echo $this->_var['help_lang']; ?>";
//-->
</script>
<style type="text/css">
body {
background: #212121;
}
#tabbar-div {
padding-left: 10px;
height: 34px;
padding-top: 0px;
background:#303030;
}
#tabbar-div p {
margin: 1px 0 0 0;
}
.tab-front {
line-height: 33px;
font-weight: bold;
padding: 4px 15px 4px 18px;
cursor: hand;
cursor: pointer; font-size:14px; font-family:"微软雅黑"; color:#fff;
}
.tab-back {
color: #F4FAFB;
line-height: 20px;
padding: 4px 15px 4px 18px;
cursor: hand;
cursor: pointer;
}
.tab-hover {
color: #F4FAFB;
line-height: 20px;
padding: 4px 15px 4px 18px;
cursor: hand;
cursor: pointer;
background: #2F9DB5;
}
#top-div
{
padding: 3px 0 2px;
background: #BBDDE5;
margin: 5px;
text-align: center;
}
#main-div {
}
#menu-list {
padding: 0;
margin: 0;
}
#menu-list ul {
padding: 0;
margin: 0;
list-style-type: none;
color: #335B64;
}
#menu-list li {
cursor: hand;
cursor: pointer;
}
#menu-list li:hover{background-color:#454545;}
#menu-list li.collapse ul{}
#menu-list li span {
font-size:14px;padding: 0px 12px; color:#FFF;
}
.collapse, .explode{
display: block;
border-top: #7f7f7f 1px solid;width:100%; color:#FFF; line-height: 42px; text-align:left;}
#main-div a:visited, #menu-list a:link, #menu-list a:hover {
color: #666
text-decoration: none;
}
#menu-list a:active {
color: #fff;
}
.collapse , .explode {
text-indent:40px;
}
.ico_1{background:#575757 url(images/menu_1.png) 9px 0 no-repeat ;}
.ico_2{background:#575757 url(images/menu_2.png) 9px 0 no-repeat ;}
.ico_3{background:#575757 url(images/menu_3.png) 9px 0 no-repeat ;}
.ico_4{background:#575757 url(images/menu_4.png) 9px 0 no-repeat ;}
.ico_5{background:#575757 url(images/menu_5.png) 9px 0 no-repeat ;}
.ico_6{background:#575757 url(images/menu_6.png) 9px 0 no-repeat ;}
.ico_7{background:#575757 url(images/menu_7.png) 9px 0 no-repeat ;}
.ico_8{background:#575757 url(images/menu_8.png) 9px 0 no-repeat ;}
.ico_9{background:#575757 url(images/menu_9.png) 9px 0 no-repeat ;}
.ico_10{background:#575757 url(images/menu_10.png) 9px 0 no-repeat ;}
.ico_11{background:#575757 url(images/menu_11.png) 9px 0 no-repeat ;}
.ico_12{background:#575757 url(images/menu_12.png) 9px 0 no-repeat ;}
.ico_13{background:#575757 url(images/menu_13.png) 9px 0 no-repeat ;}
.ico_14{background:#575757 url(images/menu_14.png) 9px 0 no-repeat ;}
.ico_15{background:#575757 url(images/menu_15.png) 9px 0 no-repeat ;}
.ico_16{background:#575757 url(images/menu_16.png) 9px 0 no-repeat ;}
.ico2_1{background:#454545 url(images/menu1_1.png) 9px 0px no-repeat ;}
.ico2_2{background:#454545 url(images/menu1_2.png) 9px 0px no-repeat ;}
.ico2_3{background:#454545 url(images/menu1_3.png) 9px 0px no-repeat ;}
.ico2_4{background:#454545 url(images/menu1_4.png) 9px 0px no-repeat ;}
.ico2_5{background:#454545 url(images/menu1_5.png) 9px 0px no-repeat ;}
.ico2_6{background:#454545 url(images/menu1_6.png) 9px 0px no-repeat ;}
.ico2_7{background:#454545 url(images/menu1_7.png) 9px 0px no-repeat ;}
.ico2_8{background:#454545 url(images/menu1_8.png) 9px 0px no-repeat ;}
.ico2_9{background:#454545 url(images/menu1_9.png) 9px 0px no-repeat ;}
.ico2_10{background:#454545 url(images/menu1_10.png) 9px 0px no-repeat ;}
.ico2_11{background:#454545 url(images/menu1_11.png) 9px 0px no-repeat ;}
.ico2_12{background:#454545 url(images/menu1_12.png) 9px 0px no-repeat ;}
.ico2_13{background:#454545 url(images/menu1_13.png) 9px 0px no-repeat ;}
.ico2_14{background:#454545 url(images/menu1_14.png) 9px 0px no-repeat ;}
.ico2_15{background:#454545 url(images/menu1_15.png) 9px 0px no-repeat ;}
.ico2_16{background:#454545 url(images/menu1_16.png) 9px 0px no-repeat ;}
#menu-list li.collapse {
}
.menu-item {font-size: 12px;
height: 30px;
line-height: 30px;
display: block;
font-weight: normal; background:#575757
}
.menu-item a{font-size: 12px;
height: 30px;
line-height: 30px;
display: block; color:#d7d7d7;}
.menu-item a:hover,.menu-item a.on{background-color:#797979; text-decoration:none; color:#fff;}
#help-title {
font-size: 14px;
color: #000080;
margin: 5px 0;
padding: 0px;
}
#help-content {
margin: 0;
padding: 0;
}
.tips {
color: #CC0000;
}
.link {
color: #000099;
}
</style>
</head>
<body>
<div id="tabbar-div">
<p>
<span class="tab-front" id="menu-tab"><?php echo $this->_var['lang']['menu']; ?></span>
</p>
</div>
<div id="main-div">
<div id="menu-list">
<ul id="menu-ul">
<?php $_from = $this->_var['menus']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('k', 'menu');$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
foreach ($_from AS $this->_var['k'] => $this->_var['menu']):
$this->_foreach['foo']['iteration']++;
?>
<?php if ($this->_var['menu']['action']): ?>
<li class="collapse ico_<?php echo $this->_foreach['foo']['iteration']; ?>" key_data1="lis ico_<?php echo $this->_foreach['foo']['iteration']; ?>" key_data2="lis ico2_<?php echo $this->_foreach['foo']['iteration']; ?>"><a href="<?php echo $this->_var['menu']['action']; ?>" target="main-frame"><?php echo $this->_var['menu']['label']; ?></a></li>
<?php else: ?>
<li class="collapse lis ico_<?php echo $this->_foreach['foo']['iteration']; ?>" key="<?php echo $this->_var['k']; ?>" name="menu" key_data1="lis ico_<?php echo $this->_foreach['foo']['iteration']; ?>" key_data2="lis ico2_<?php echo $this->_foreach['foo']['iteration']; ?>">
<?php echo $this->_var['menu']['label']; ?>
<?php if ($this->_var['menu']['children']): ?>
<ul style="display:none;">
<?php $_from = $this->_var['menu']['children']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');if (count($_from)):
foreach ($_from AS $this->_var['child']):
?>
<li class="menu-item"><a href="<?php echo $this->_var['child']['action']; ?>" target="main-frame"><?php echo $this->_var['child']['label']; ?></a></li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
<?php endif; ?>
</li>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>
<div id="help-div" style="display:none">
<h1 id="help-title"></h1>
<div id="help-content"></div>
</div>
</div>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/jquery-1.9.1.min.js,../js/jquery.json.js')); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/global.js,../js/utils.js,../js/transport_jquery.js')); ?>
<script language="JavaScript">
<!--
var collapse_all = "<?php echo $this->_var['lang']['collapse_all']; ?>";
var expand_all = "<?php echo $this->_var['lang']['expand_all']; ?>";
var collapse = true;
var getClass=function(name){
var ele=document.getElementById("menu-ul").getElementsByTagName("li"),arr=[];
var reg=new RegExp("(^|\\s)"+name+"(\\s|$)");
for(var i=0;i<ele.length;i++){
if(reg.test(ele[i].className)){
arr.push(ele[i]);
}
}
return arr;
}
function toggleCollapse()
{
var items = document.getElementsByTagName('LI');
var span=document.getElementById('menu-ul').getElementsByTagName("span");
for (i = 0; i < items.length; i++)
{
if (collapse)
{
if (items[i].className == "explode")
{
toggleCollapseExpand(items[i], "collapse");
}
}
else
{
if ( items[i].className == "collapse")
{
toggleCollapseExpand(items[i], "explode");
ToggleHanlder.Reset();
}
}
}
collapse = !collapse;
var toggleImg = document.getElementById('toggleImg');
if(toggleImg)
{
toggleImg.src = collapse ? 'images/menu_minus.gif' : 'images/menu_plus.gif';
toggleImg.alt = collapse ? collapse_all : expand_all;
}
}
function toggleCollapseExpand(obj, status)
{
var lis=getClass("lis");
var explode=getClass("explode");
var ie=/ie 7/i.test(navigator.userAgent),dis=null;
var ul=document.getElementById("menu-ul").getElementsByTagName("ul");
if (obj.tagName.toLowerCase() == 'li' && obj.className != 'menu-item')
{
for (i = 0; i < obj.childNodes.length; i++)
{
if (obj.childNodes[i].tagName == "UL")
{
if (status == null)
{
if(ie){
dis=obj.childNodes[1].style.display;
}else{
dis=obj.childNodes[1].style.display;
}
if (dis!= "none")
{
for(var j=0;j<ul.length;j++){
ul[j].style["display"]="none";
}
if(ie){
obj.childNodes[1].style.display = "none";
}else{
obj.childNodes[1].style.display = "none";
}
ToggleHanlder.RecordState(obj.getAttribute("key"), "collapse");
var s = obj.getAttribute("key_data1");
obj.className = "collapse "+s;
}
else
{
for(var j=0;j<ul.length;j++){
ul[j].style["display"]="none";
}
if(ie){
obj.childNodes[1].style.display = "block";
}else{
obj.childNodes[1].style.display = "block";
}
for(var i=0;i<lis.length;i++){
var tmp=lis[i].getAttribute("key_data1");
lis[i].className="collapse "+tmp;
}
ToggleHanlder.RecordState(obj.getAttribute("key"), "explode");
var s = obj.getAttribute("key_data2");
obj.className = "explode "+s;
}
break;
}
else
{
if( status == "collapse")
{
ToggleHanlder.RecordState(obj.getAttribute("key"), "collapse");
var s = obj.getAttribute("key_data1");
obj.className = "collapse "+s;
}
else
{
ToggleHanlder.RecordState(obj.getAttribute("key"), "explode");
var s = obj.getAttribute("key_data2");
obj.className = "explode "+s;
}
if(ie){
obj.childNodes[1].style.display = (status == "explode") ? "block" : "none";
}else{
obj.childNodes[1].style.display = (status == "explode") ? "block" : "none";
}
}
}
}
}
}
document.getElementById('menu-list').onclick = function(e)
{
var obj = Utils.srcElement(e);
toggleCollapseExpand(obj);
var target = e.target;
if(target.nodeName == "A"){
var menu_a = document.getElementById('menu-list').getElementsByTagName("a");
var alength = menu_a.length;
for(var i = 0 ; i < alength; i ++){
removeClass(menu_a[i],"on");
}
addClass(target,"on");
}
}
//原生js addClass,hasClass,removeClass
function addClass(obj, cls) {
if (!this.hasClass(obj, cls)) obj.className += " " + cls;
}
function hasClass(obj, cls) {
return obj.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)'));
}
function removeClass(obj, cls) {
if (hasClass(obj, cls)) {
var reg = new RegExp('(\\s|^)' + cls + '(\\s|$)');
obj.className = obj.className.replace(reg, ' ');
}
}
document.getElementById('tabbar-div').onmouseover=function(e)
{
var obj = Utils.srcElement(e);
if (obj.className == "tab-back")
{
obj.className = "tab-hover";
}
}
document.getElementById('tabbar-div').onmouseout=function(e)
{
var obj = Utils.srcElement(e);
if (obj.className == "tab-hover")
{
obj.className = "tab-back";
}
}
document.getElementById('tabbar-div').onclick=function(e)
{
var obj = Utils.srcElement(e);
// var mnuTab = document.getElementById('menu-tab');
var hlpTab = document.getElementById('help-tab');
var mnuDiv = document.getElementById('menu-list');
var hlpDiv = document.getElementById('help-div');
//if (obj.id == 'menu-tab')
// {
// mnuTab.className = 'tab-front';
// hlpTab.className = 'tab-back';
// mnuDiv.style.display = "block";
// hlpDiv.style.display = "none";
// }
if (obj.id == 'help-tab')
{
mnuTab.className = 'tab-back';
hlpTab.className = 'tab-front';
mnuDiv.style.display = "none";
hlpDiv.style.display = "block";
loc = parent.frames['main-frame'].location.href;
pos1 = loc.lastIndexOf("/");
pos2 = loc.lastIndexOf("?");
pos3 = loc.indexOf("act=");
pos4 = loc.indexOf("&", pos3);
filename = loc.substring(pos1 + 1, pos2 - 4);
act = pos4 < 0 ? loc.substring(pos3 + 4) : loc.substring(pos3 + 4, pos4);
loadHelp(filename, act);
}
}
/**
* 创建XML对象
*/
function createDocument()
{
var xmlDoc;
// create a DOM object
if (window.ActiveXObject)
{
try
{
xmlDoc = new ActiveXObject("Msxml2.DOMDocument.6.0");
}
catch (e)
{
try
{
xmlDoc = new ActiveXObject("Msxml2.DOMDocument.5.0");
}
catch (e)
{
try
{
xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0");
}
catch (e)
{
try
{
xmlDoc = new ActiveXObject("Msxml2.DOMDocument.3.0");
}
catch (e)
{
alert(e.message);
}
}
}
}
}
else
{
if (document.implementation && document.implementation.createDocument)
{
xmlDoc = document.implementation.createDocument("","doc",null);
}
else
{
alert("Create XML object is failed.");
}
}
xmlDoc.async = false;
return xmlDoc;
}
//菜单展合状态处理器
var ToggleHanlder = new Object();
Object.extend(ToggleHanlder ,{
SourceObject : new Object(),
CookieName : 'Toggle_State',
RecordState : function(name,state)
{
if(state == "collapse")
{
this.SourceObject[name] = state;
}
else
{
if(this.SourceObject[name])
{
delete(this.SourceObject[name]);
}
}
var date = new Date();
date.setTime(date.getTime() + 99999999);
document.setCookie(this.CookieName, $.toJSON(this.SourceObject), date.toGMTString());
},
Reset :function()
{
var date = new Date();
date.setTime(date.getTime() + 99999999);
document.setCookie(this.CookieName, "{}" , date.toGMTString());
},
Load : function()
{
if (document.getCookie(this.CookieName) != null)
{
//this.SourceObject = t_eval();
var items = document.getElementsByTagName('LI');
for (var i = 0; i < items.length; i++)
{
if ( items[0].getAttribute("name") == "menu" && items[0].getAttribute("id") != '20_yun')
{
for (var k in this.SourceObject)
{
if ( typeof(items[i]) == "object")
{
if (items[i].getAttribute('key') == k)
{
toggleCollapseExpand(items[i], this.SourceObject[k]);
collapse = false;
}
}
}
}
}
}
var toggleImg = document.getElementById('toggleImg');
if(toggleImg)
{
toggleImg.src = collapse ? 'images/menu_minus.gif' : 'images/menu_plus.gif';
toggleImg.alt = collapse ? collapse_all : expand_all;
}
}
});
ToggleHanlder.CookieName += "_<?php echo $this->_var['admin_id']; ?>";
//初始化菜单状态
ToggleHanlder.Load();
//-->
</script>
</body>
</html>

View File

@ -1,77 +0,0 @@
<?php echo $this->fetch('pageheader.htm'); ?>
<div class="list-div message">
<div style="background:#FFF; padding: 20px 50px; margin: 2px;">
<table align="center" width="400" style="background:#fff;">
<tr>
<td width="50" valign="top">
<?php if ($this->_var['msg_type'] == 0): ?>
<img src="images/information.gif" width="32" height="32" border="0" alt="information" />
<?php elseif ($this->_var['msg_type'] == 1): ?>
<img src="images/warning.gif" width="32" height="32" border="0" alt="warning" />
<?php else: ?>
<img src="images/confirm.gif" width="32" height="32" border="0" alt="confirm" />
<?php endif; ?>
</td>
<td style="font-size: 14px; font-weight: bold"><?php echo $this->_var['msg_detail']; ?></td>
</tr>
<tr>
<td></td>
<td id="redirectionMsg">
<?php if ($this->_var['auto_redirect']): ?><?php echo $this->_var['lang']['auto_redirection']; ?><?php endif; ?>
</td>
</tr>
<tr>
<td></td>
<td>
<ul style="margin:0; padding:0 10px" class="msg-link">
<?php $_from = $this->_var['links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'link');if (count($_from)):
foreach ($_from AS $this->_var['link']):
?>
<li><a href="<?php echo $this->_var['link']['href']; ?>" <?php if ($this->_var['link']['target']): ?>target="<?php echo $this->_var['link']['target']; ?>"<?php endif; ?>><?php echo $this->_var['link']['text']; ?></a></li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</td>
</tr>
</table>
</div>
</div>
<?php if ($this->_var['auto_redirect']): ?>
<script language="JavaScript">
<!--
var seconds = 3;
var defaultUrl = "<?php echo $this->_var['default_url']; ?>";
onload = function()
{
if (defaultUrl == 'javascript:history.go(-1)' && window.history.length == 0)
{
document.getElementById('redirectionMsg').innerHTML = '';
return;
}
window.setInterval(redirection, 1000);
}
function redirection()
{
if (seconds <= 0)
{
window.clearInterval();
return;
}
seconds --;
document.getElementById('spanSeconds').innerHTML = seconds;
if (seconds == 0)
{
window.clearInterval();
location.href = defaultUrl;
}
}
//-->
</script>
<?php endif; ?>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,52 +0,0 @@
<!-- $Id: optimize.htm 14216 2008-03-10 02:27:21Z testyang $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<!-- start form -->
<div class="form-div">
<form method="post" action="database.php" name="theForm">
<?php echo $this->_var['lang']['chip_count']; ?>:<?php echo $this->_var['num']; ?>
<input type="submit" value="<?php echo $this->_var['lang']['start_optimize']; ?>" class="button" />
<input type= "hidden" name= "num" value = "<?php echo $this->_var['num']; ?>">
<input type= "hidden" name="act" value = "run_optimize">
</form>
</div>
<!-- end form -->
<!-- start list -->
<div class="list-div" id="listDiv">
<table cellspacing='1' cellpadding='3' id='listTable'>
<tr>
<th><?php echo $this->_var['lang']['table']; ?></th>
<th><?php echo $this->_var['lang']['type']; ?></th>
<th><?php echo $this->_var['lang']['rec_num']; ?></th>
<th><?php echo $this->_var['lang']['rec_size']; ?></th>
<th><?php echo $this->_var['lang']['rec_chip']; ?></th>
<th><?php echo $this->_var['lang']['charset']; ?></th>
<th><?php echo $this->_var['lang']['status']; ?></th>
</tr>
<?php $_from = $this->_var['list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
foreach ($_from AS $this->_var['item']):
?>
<tr>
<td class="first-cell"><?php echo $this->_var['item']['table']; ?></td>
<td align ="left"><?php echo $this->_var['item']['type']; ?></td>
<td align ="right"><?php echo $this->_var['item']['rec_num']; ?></td>
<td align ="right"><?php echo $this->_var['item']['rec_size']; ?></td>
<td align ="right"><?php echo $this->_var['item']['rec_chip']; ?></td>
<td align ="left"><?php echo $this->_var['item']['charset']; ?></td>
<td align ="left"><?php echo $this->_var['item']['status']; ?></td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
</div>
<!-- end list -->
<script type="Text/Javascript" language="JavaScript">
<!--
onload = function()
{
// 开始检查订单
startCheckOrder();
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,17 +0,0 @@
<!-- $Id: page.htm 14216 2008-03-10 02:27:21Z testyang $ -->
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js')); ?>
<div id="turn-page">
<?php echo $this->_var['lang']['total_records']; ?> <span id="totalRecords"><?php echo $this->_var['record_count']; ?></span>
<?php echo $this->_var['lang']['total_pages']; ?> <span id="totalPages"><?php echo $this->_var['page_count']; ?></span>
<?php echo $this->_var['lang']['page_current']; ?> <span id="pageCurrent"><?php echo $this->_var['filter']['page']; ?></span>
<?php echo $this->_var['lang']['page_size']; ?> <input type='text' size='3' id='pageSize' value="<?php echo $this->_var['filter']['page_size']; ?>" onkeypress="return listTable.changePageSize(event)" />
<span id="page-link">
<a href="javascript:listTable.gotoPageFirst()"><?php echo $this->_var['lang']['page_first']; ?></a>
<a href="javascript:listTable.gotoPagePrev()"><?php echo $this->_var['lang']['page_prev']; ?></a>
<a href="javascript:listTable.gotoPageNext()"><?php echo $this->_var['lang']['page_next']; ?></a>
<a href="javascript:listTable.gotoPageLast()"><?php echo $this->_var['lang']['page_last']; ?></a>
<select id="gotoPage" onchange="listTable.gotoPage(this.value)">
<?php echo $this->smarty_create_pages(array('count'=>$this->_var['page_count'],'page'=>$this->_var['filter']['page'])); ?>
</select>
</span>
</div>

View File

@ -1,196 +0,0 @@
<div id="footer">
<?php echo $this->_var['query_info']; ?><?php echo $this->_var['gzip_enabled']; ?><?php echo $this->_var['memory_info']; ?><br />
<?php echo $this->_var['lang']['copyright']; ?>
</div>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js')); ?>
<!-- 新订单提示信息 -->
<div id="popMsg">
<table cellspacing="0" cellpadding="0" width="100%" bgcolor="#cfdef4" border="0">
<tr>
<td style="color: #0f2c8c" width="30" height="24"></td>
<td style="font-weight: normal; color: #1f336b; padding-top: 4px;padding-left: 4px" valign="center" width="100%"> <?php echo $this->_var['lang']['order_notify']; ?></td>
<td style="padding-top: 2px;padding-right:2px" valign="center" align="right" width="19"><span title="開閉" style="cursor: hand;cursor:pointer;color:red;font-size:12px;font-weight:bold;margin-right:4px;" onclick="Message.close()" >×</span><!-- <img title=关闭 style="cursor: hand" onclick=closediv() hspace=3 src="msgclose.jpg"> --></td>
</tr>
<tr>
<td style="padding-right: 1px; padding-bottom: 1px" colspan="3" height="70">
<div id="popMsgContent">
<p>
<?php echo $this->_var['lang']['new_order_1']; ?><br />
<strong style="color:#ff0000" id="spanNewUser">0</strong>個會員驗證<br />
<strong style="color:#ff0000" id="spanNewDeposit">0</strong>個充值申請<br />
<strong style="color:#ff0000" id="spanNewRepay">0</strong>個取款申請<br />
<strong style="color:#ff0000" id="spanNewTrans">0</strong>個轉點確認
</p>
<!-- <p align="center" style="word-break:break-all"><a href="user_account.php?act=list"><span style="color:#ff0000"><?php echo $this->_var['lang']['new_order_link']; ?></span></a></p>-->
</div>
</td>
</tr>
</table>
</div>
<div id="loadFacebookG">
<div id="blockG_1" class="facebook_blockG"></div>
<div id="blockG_2" class="facebook_blockG"></div>
<div id="blockG_3" class="facebook_blockG"></div>
</div>
<audio id="msgBeep" src="" controls="controls" autoplay="autoplay" hidden="true" style="display:none" >
<!--
<embed src="images/online.wav" width="0" height="0" autostart="false" name="msgBeep" id="msgBeep" enablejavascript="true"/>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" id="msgBeep" width="1" height="1">
<param name="movie" value="images/online.swf">
<param name="quality" value="high">
<embed src="images/online.swf" name="msgBeep" id="msgBeep" quality="high" width="0" height="0" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?p1_prod_version=shockwaveflash">
</embed>
</object>
-->
<script language="JavaScript">
document.onmousemove=function(e)
{
var obj = Utils.srcElement(e);
if (typeof(obj.onclick) == 'function' && obj.onclick.toString().indexOf('listTable.edit') != -1)
{
obj.title = '<?php echo $this->_var['lang']['span_edit_help']; ?>';
obj.style.cssText = 'background: #278296;';
obj.onmouseout = function(e)
{
this.style.cssText = '';
}
}
else if (typeof(obj.href) != 'undefined' && obj.href.indexOf('listTable.sort') != -1)
{
obj.title = '<?php echo $this->_var['lang']['href_sort_help']; ?>';
}
}
<!--
<?php if ($this->_var['enable_order_check'] == '0'): ?>
startCheckOrder = function(){}
<?php endif; ?>
var MyTodolist;
function showTodoList(adminid)
{
if(!MyTodolist)
{
var global = $import("../js/global.js","js");
global.onload = global.onreadystatechange= function()
{
if(this.readyState && this.readyState=="loading")return;
var md5 = $import("js/md5.js","js");
md5.onload = md5.onreadystatechange= function()
{
if(this.readyState && this.readyState=="loading")return;
var todolist = $import("js/todolist.js","js");
todolist.onload = todolist.onreadystatechange = function()
{
if(this.readyState && this.readyState=="loading")return;
MyTodolist = new Todolist();
MyTodolist.show();
}
}
}
}
else
{
if(MyTodolist.visibility)
{
MyTodolist.hide();
}
else
{
MyTodolist.show();
}
}
}
if (Browser.isIE)
{
onscroll = function()
{
//document.getElementById('calculator').style.top = document.body.scrollTop;
document.getElementById('popMsg').style.top = (document.body.scrollTop + document.body.clientHeight - document.getElementById('popMsg').offsetHeight) + "px";
}
}
if (document.getElementById("listDiv"))
{
document.getElementById("listDiv").onmouseover = function(e)
{
obj = Utils.srcElement(e);
if (obj)
{
if (obj.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode;
else if (obj.parentNode.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode.parentNode;
else return;
for (i = 0; i < row.cells.length; i++)
{
if (row.cells[i].tagName != "TH") row.cells[i].style.backgroundColor = '#F4FAFB';
}
}
}
document.getElementById("listDiv").onmouseout = function(e)
{
obj = Utils.srcElement(e);
if (obj)
{
if (obj.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode;
else if (obj.parentNode.parentNode.tagName.toLowerCase() == "tr") row = obj.parentNode.parentNode;
else return;
for (i = 0; i < row.cells.length; i++)
{
if (row.cells[i].tagName != "TH") row.cells[i].style.backgroundColor = '#FFF';
}
}
}
document.getElementById("listDiv").onclick = function(e)
{
var obj = Utils.srcElement(e);
if (obj.tagName == "INPUT" && obj.type == "checkbox")
{
if (!document.forms['listForm'])
{
return;
}
var nodes = document.forms['listForm'].elements;
var checked = false;
for (i = 0; i < nodes.length; i++)
{
if (nodes[i].checked)
{
checked = true;
break;
}
}
if(document.getElementById("btnSubmit"))
{
document.getElementById("btnSubmit").disabled = !checked;
}
for (i = 1; i <= 10; i++)
{
if (document.getElementById("btnSubmit" + i))
{
document.getElementById("btnSubmit" + i).disabled = !checked;
}
}
}
}
}
//-->
</script>
</body>
</html>

View File

@ -1,53 +0,0 @@
<!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><?php echo $this->_var['lang']['cp_home']; ?><?php if ($this->_var['ur_here']): ?> - <?php echo $this->_var['ur_here']; ?> <?php endif; ?></title>
<meta name="robots" content="noindex, nofollow">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/jquery-1.9.1.min.js,../js/jquery.json.js')); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/transport_jquery.js,common.js,respond.src.js')); ?>
<script language="JavaScript">
<!--
// 这里把JS用到的所有语言都赋值到这里
<?php $_from = $this->_var['lang']['js_languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
//-->
function openwindow(url,name,iWidth,iHeight)
{
var url; //網頁位置;
var name; //網頁名稱;
var iWidth; //視窗的寬度;
var iHeight; //視窗的高度;
var iTop = (window.screen.availHeight-30-iHeight)/2; //視窗的垂直位置;
var iLeft = (window.screen.availWidth-10-iWidth)/2; //視窗的水平位置;
window.open(url,name,'height='+iHeight+',innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft);
}
$('#loadFacebookG').show();
$.ready(function(){
});
$(window).on('load',function(){ //load函数
jQuery("#loadFacebookG").hide();
});
</script>
</head>
<body>
<h1>
<?php if ($this->_var['action_link']): ?>
<span class="action-span"><a href="<?php echo $this->_var['action_link']['href']; ?>"><?php echo $this->_var['action_link']['text']; ?></a></span>
<?php endif; ?>
<?php if ($this->_var['action_link2']): ?>
<span class="action-span"><a href="<?php echo $this->_var['action_link2']['href']; ?>"><?php echo $this->_var['action_link2']['text']; ?></a>&nbsp;&nbsp;</span>
<?php endif; ?>
<span class="action-span1"><a href="index.php?act=main"><?php echo $this->_var['lang']['cp_home']; ?></a> </span><span id="search_id" class="action-span1"><?php if ($this->_var['ur_here']): ?> - <?php echo $this->_var['ur_here']; ?> <?php endif; ?></span>
<div style="clear:both"></div>
</h1>

View File

@ -1,751 +0,0 @@
<!-- $Id: goods_info.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,selectzone.js,colorselector.js')); ?>
<script type="text/javascript" src="../js/calendar.php?lang=<?php echo $this->_var['cfg_lang']; ?>"></script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<?php if ($this->_var['warning']): ?>
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
<li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" ><?php echo $this->_var['warning']; ?></li>
</ul>
<?php endif; ?>
<!-- start goods form -->
<div class="tab-div">
<!-- tab bar -->
<!-- tab body -->
<div id="tabbody-div">
<form enctype="multipart/form-data" action="" method="post" name="theForm" >
<input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
<table width="90%" id="general-table" align="center">
<tr>
<td class="label">入口名稱:</td>
<td><input type="text" name="name" value="<?php echo htmlspecialchars($this->_var['portal']['name']); ?>" size="50" />
</td>
</tr>
<tr>
<td class="label">網址:</td>
<td><input type="text" name="domain" value="<?php echo $this->_var['portal']['domain']; ?>" size="50" />
</td>
</tr>
<tr>
<td class="label">TITLE:</td>
<td><input type="text" name="mtitle" value="<?php echo $this->_var['portal']['mtitle']; ?>" size="50" />
</td>
</tr>
<tr>
<td class="label">關鍵字:</td>
<td><input type="text" name="mkeyword" value="<?php echo $this->_var['portal']['mkeyword']; ?>" size="50" /><br/>
填寫%s代入搜尋字串
</td>
</tr>
<tr>
<td class="label">網頁描述:</td>
<td>
<textarea name="mdesc" id="mdesc" cols="50" rows="5"><?php echo $this->_var['portal']['mdesc']; ?></textarea><br/>
填寫%s代入搜尋字串
</td>
</tr>
<tr>
<td class="label">入口大LOGO:</td>
<td>
<input type="file" name="logo" size="35" /><br/>
<?php if ($this->_var['portal']['logo']): ?>
<a href="portal.php?act=show_image&img_url=<?php echo $this->_var['portal']['logo']; ?>" target="_blank">
<img src="../<?php echo $this->_var['portal']['logo']; ?>" width="100" />
<img src="images/yes.gif" border="0" />
</a>
<?php else: ?>
<img src="images/no.gif" />
<?php endif; ?>
</td>
</tr>
<tr>
<td class="label">入口小LOGO:</td>
<td>
<input type="file" name="slogo" size="35" /><br/>
<?php if ($this->_var['portal']['slogo']): ?>
<a href="portal.php?act=show_image&img_url=<?php echo $this->_var['portal']['slogo']; ?>" target="_blank">
<img src="../<?php echo $this->_var['portal']['slogo']; ?>" width="100" />
<img src="images/yes.gif" border="0" />
</a>
<?php else: ?>
<img src="images/no.gif" />
<?php endif; ?>
</td>
</tr>
<tr>
<td class="label">類型:</td>
<td>
<select name="type">
<option value="1" <?php if ($this->_var['portal']['type'] == 1): ?> selected="selected"<?php endif; ?>>一般</option>
<option value="2" <?php if ($this->_var['portal']['type'] == 2): ?> selected="selected"<?php endif; ?>>地區</option>
<option value="3" <?php if ($this->_var['portal']['type'] == 3): ?> selected="selected"<?php endif; ?>>景點</option>
</select>
</td>
</tr>
</table>
<div class="button-div">
<input type="hidden" name="id" value="<?php echo $this->_var['portal']['id']; ?>" />
<input type="button" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="button" onclick="validate('<?php echo $this->_var['portal']['id']; ?>')" />
<input type="reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" class="button" />
</div>
<input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
</form>
</div>
</div>
<!-- end goods form -->
<?php echo $this->smarty_insert_scripts(array('files'=>'validator.js,tab.js')); ?>
<script language="JavaScript">
var Id = '<?php echo $this->_var['portal']['id']; ?>';
var elements = document.forms['theForm'].elements;
onload = function()
{
handlePromote(document.forms['theForm'].elements['is_promote'].checked);
if (document.forms['theForm'].elements['auto_thumb'])
{
handleAutoThumb(document.forms['theForm'].elements['auto_thumb'].checked);
}
startCheckOrder();
document.forms['theForm'].reset();
}
function validate(goods_id)
{
var validator = new Validator('theForm');
// var goods_sn = document.forms['theForm'].elements['goods_sn'].value;
// validator.required('games_name', games_name_not_null);
// checkVolumeData("1",validator);
if(validator.passed())
{
document.forms['theForm'].submit();
}
// Ajax.call('goods.php?is_ajax=1&act=check_goods_sn', "goods_sn=" + goods_sn + "&goods_id=" + goods_id, callback, "GET", "JSON");
}
/**
* 鍒囨崲鍟嗗搧绫诲瀷
*/
function getAttrList(goodsId)
{
var selGoodsType = document.forms['theForm'].elements['goods_type'];
if (selGoodsType != undefined)
{
var goodsType = selGoodsType.options[selGoodsType.selectedIndex].value;
Ajax.call('goods.php?is_ajax=1&act=get_attr', 'goods_id=' + goodsId + "&goods_type=" + goodsType, setAttrList, "GET", "JSON");
}
}
function setAttrList(result, text_result)
{
document.getElementById('tbody-goodsAttr').innerHTML = result.content;
}
/**
* 鎸夋瘮渚嬭?绠椾环鏍
* @param string inputName 杈撳叆妗嗗悕绉
* @param float rate 姣斾緥
* @param string priceName 浠锋牸杈撳叆妗嗗悕绉帮紙濡傛灉娌℃湁锛屽彇shop_price锛
*/
function computePrice(inputName, rate, priceName)
{
var shopPrice = priceName == undefined ? document.forms['theForm'].elements['shop_price'].value : document.forms['theForm'].elements[priceName].value;
shopPrice = Utils.trim(shopPrice) != '' ? parseFloat(shopPrice)* rate : 0;
if(inputName == 'integral')
{
shopPrice = parseInt(shopPrice);
}
shopPrice += "";
n = shopPrice.lastIndexOf(".");
if (n > -1)
{
shopPrice = shopPrice.substr(0, n + 3);
}
if (document.forms['theForm'].elements[inputName] != undefined)
{
document.forms['theForm'].elements[inputName].value = shopPrice;
}
else
{
document.getElementById(inputName).value = shopPrice;
}
}
/**
* 璁剧疆浜嗕竴涓?晢鍝佷环鏍硷紝鏀瑰彉甯傚満浠锋牸銆佺Н鍒嗕互鍙婁細鍛樹环鏍
*/
function priceSetted()
{
computePrice('market_price', marketPriceRate);
computePrice('integral', integralPercent / 100);
<?php $_from = $this->_var['user_rank_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
foreach ($_from AS $this->_var['item']):
?>
set_price_note(<?php echo $this->_var['item']['rank_id']; ?>);
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
}
/**
* 璁剧疆浼氬憳浠锋牸娉ㄩ噴
*/
function set_price_note(rank_id)
{
var shop_price = parseFloat(document.forms['theForm'].elements['shop_price'].value);
var rank = new Array();
<?php $_from = $this->_var['user_rank_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
foreach ($_from AS $this->_var['item']):
?>
rank[<?php echo $this->_var['item']['rank_id']; ?>] = <?php echo empty($this->_var['item']['discount']) ? '100' : $this->_var['item']['discount']; ?>;
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
if (shop_price >0 && rank[rank_id] && document.getElementById('rank_' + rank_id) && parseInt(document.getElementById('rank_' + rank_id).value) == -1)
{
var price = parseInt(shop_price * rank[rank_id] + 0.5) / 100;
if (document.getElementById('nrank_' + rank_id))
{
document.getElementById('nrank_' + rank_id).innerHTML = '(' + price + ')';
}
}
else
{
if (document.getElementById('nrank_' + rank_id))
{
document.getElementById('nrank_' + rank_id).innerHTML = '';
}
}
}
/**
* 鏍规嵁甯傚満浠锋牸锛岃?绠楀苟鏀瑰彉鍟嗗簵浠锋牸銆佺Н鍒嗕互鍙婁細鍛樹环鏍
*/
function marketPriceSetted()
{
computePrice('shop_price', 1/marketPriceRate, 'market_price');
computePrice('integral', integralPercent / 100);
<?php $_from = $this->_var['user_rank_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
foreach ($_from AS $this->_var['item']):
?>
set_price_note(<?php echo $this->_var['item']['rank_id']; ?>);
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
}
/**
* 鏂板?涓€涓??
*/
function addSpec(obj)
{
var src = obj.parentNode.parentNode;
var idx = rowindex(src);
var tbl = document.getElementById('attrTable');
var row = tbl.insertRow(idx + 1);
var cell1 = row.insertCell(-1);
var cell2 = row.insertCell(-1);
var regx = /<a([^>]+)<\/a>/i;
cell1.className = 'label';
cell1.innerHTML = src.childNodes[0].innerHTML.replace(/(.*)(addSpec)(.*)(\[)(\+)/i, "$1removeSpec$3$4-");
cell2.innerHTML = src.childNodes[1].innerHTML.replace(/readOnly([^\s|>]*)/i, '');
}
/**
* 鍒犻櫎瑙勬牸鍊
*/
function removeSpec(obj)
{
var row = rowindex(obj.parentNode.parentNode);
var tbl = document.getElementById('attrTable');
tbl.deleteRow(row);
}
/**
* 澶勭悊瑙勬牸
*/
function handleSpec()
{
var elementCount = document.forms['theForm'].elements.length;
for (var i = 0; i < elementCount; i++)
{
var element = document.forms['theForm'].elements[i];
if (element.id.substr(0, 5) == 'spec_')
{
var optCount = element.options.length;
var value = new Array(optCount);
for (var j = 0; j < optCount; j++)
{
value[j] = element.options[j].value;
}
var hiddenSpec = document.getElementById('hidden_' + element.id);
hiddenSpec.value = value.join(String.fromCharCode(13)); // 鐢ㄥ洖杞﹂敭闅斿紑姣忎釜瑙勬牸
}
}
return true;
}
function handlePromote(checked)
{
document.forms['theForm'].elements['promote_price'].disabled = !checked;
document.forms['theForm'].elements['selbtn1'].disabled = !checked;
document.forms['theForm'].elements['selbtn2'].disabled = !checked;
}
function handleAutoThumb(checked)
{
document.forms['theForm'].elements['goods_thumb'].disabled = checked;
document.forms['theForm'].elements['goods_thumb_url'].disabled = checked;
}
/**
* ?€熸坊鍔犲搧鐗
*/
function rapidBrandAdd(conObj)
{
var brand_div = document.getElementById("brand_add");
if(brand_div.style.display != '')
{
var brand =document.forms['theForm'].elements['addedBrandName'];
brand.value = '';
brand_div.style.display = '';
}
}
function hideBrandDiv()
{
var brand_add_div = document.getElementById("brand_add");
if(brand_add_div.style.display != 'none')
{
brand_add_div.style.display = 'none';
}
}
function goBrandPage()
{
if(confirm(go_brand_page))
{
window.location.href='brand.php?act=add';
}
else
{
return;
}
}
function rapidCatAdd()
{
var cat_div = document.getElementById("category_add");
if(cat_div.style.display != '')
{
var cat =document.forms['theForm'].elements['addedCategoryName'];
cat.value = '';
cat_div.style.display = '';
}
}
function addBrand()
{
var brand = document.forms['theForm'].elements['addedBrandName'];
if(brand.value.replace(/^\s+|\s+$/g, '') == '')
{
alert(brand_cat_not_null);
return;
}
var params = 'brand=' + brand.value;
Ajax.call('brand.php?is_ajax=1&act=add_brand', params, addBrandResponse, 'GET', 'JSON');
}
function addBrandResponse(result)
{
if (result.error == '1' && result.message != '')
{
alert(result.message);
return;
}
var brand_div = document.getElementById("brand_add");
brand_div.style.display = 'none';
var response = result.content;
var selCat = document.forms['theForm'].elements['brand_id'];
var opt = document.createElement("OPTION");
opt.value = response.id;
opt.selected = true;
opt.text = response.brand;
if (Browser.isIE)
{
selCat.add(opt);
}
else
{
selCat.appendChild(opt);
}
return;
}
function addCategory()
{
var parent_id = document.forms['theForm'].elements['cat_id'];
var cat = document.forms['theForm'].elements['addedCategoryName'];
if(cat.value.replace(/^\s+|\s+$/g, '') == '')
{
alert(category_cat_not_null);
return;
}
var params = 'parent_id=' + parent_id.value;
params += '&cat=' + cat.value;
Ajax.call('category.php?is_ajax=1&act=add_category', params, addCatResponse, 'GET', 'JSON');
}
function hideCatDiv()
{
var category_add_div = document.getElementById("category_add");
if(category_add_div.style.display != null)
{
category_add_div.style.display = 'none';
}
}
function addCatResponse(result)
{
if (result.error == '1' && result.message != '')
{
alert(result.message);
return;
}
var category_add_div = document.getElementById("category_add");
category_add_div.style.display = 'none';
var response = result.content;
var selCat = document.forms['theForm'].elements['cat_id'];
var opt = document.createElement("OPTION");
opt.value = response.id;
opt.selected = true;
opt.innerHTML = response.cat;
//鑾峰彇瀛愬垎绫荤殑绌烘牸鏁
var str = selCat.options[selCat.selectedIndex].text;
var temp = str.replace(/^\s+/g, '');
var lengOfSpace = str.length - temp.length;
if(response.parent_id != 0)
{
lengOfSpace += 4;
}
for (i = 0; i < lengOfSpace; i++)
{
opt.innerHTML = '&nbsp;' + opt.innerHTML;
}
for (i = 0; i < selCat.length; i++)
{
if(selCat.options[i].value == response.parent_id)
{
if(i == selCat.length)
{
if (Browser.isIE)
{
selCat.add(opt);
}
else
{
selCat.appendChild(opt);
}
}
else
{
selCat.insertBefore(opt, selCat.options[i + 1]);
}
//opt.selected = true;
break;
}
}
return;
}
function goCatPage()
{
if(confirm(go_category_page))
{
window.location.href='category.php?act=add';
}
else
{
return;
}
}
/**
* 鍒犻櫎蹇?€熷垎绫
*/
function removeCat()
{
if(!document.forms['theForm'].elements['parent_cat'] || !document.forms['theForm'].elements['new_cat_name'])
{
return;
}
var cat_select = document.forms['theForm'].elements['parent_cat'];
var cat = document.forms['theForm'].elements['new_cat_name'];
cat.parentNode.removeChild(cat);
cat_select.parentNode.removeChild(cat_select);
}
/**
* 鍒犻櫎蹇?€熷搧鐗
*/
function removeBrand()
{
if (!document.forms['theForm'].elements['new_brand_name'])
{
return;
}
var brand = document.theForm.new_brand_name;
brand.parentNode.removeChild(brand);
}
/**
* 娣诲姞鎵╁睍鍒嗙被
*/
function addOtherCat(conObj)
{
var sel = document.createElement("SELECT");
var selCat = document.forms['theForm'].elements['cat_id'];
for (i = 0; i < selCat.length; i++)
{
var opt = document.createElement("OPTION");
opt.text = selCat.options[i].text;
opt.value = selCat.options[i].value;
if (Browser.isIE)
{
sel.add(opt);
}
else
{
sel.appendChild(opt);
}
}
conObj.appendChild(sel);
sel.name = "other_cat[]";
sel.onChange = function() {checkIsLeaf(this);};
}
/* 鍏宠仈鍟嗗搧鍑芥暟 */
function searchGoods(szObject, catId, brandId, keyword)
{
var filters = new Object;
filters.cat_id = elements[catId].value;
filters.brand_id = elements[brandId].value;
filters.keyword = Utils.trim(elements[keyword].value);
filters.exclude = document.forms['theForm'].elements['goods_id'].value;
szObject.loadOptions('get_goods_list', filters);
}
/**
* 鍏宠仈鏂囩珷鍑芥暟
*/
function searchArticle()
{
var filters = new Object;
filters.title = Utils.trim(elements['article_title'].value);
sz3.loadOptions('get_article_list', filters);
}
/**
* 鏂板?涓€涓?浘鐗
*/
function addImg(obj)
{
var src = obj.parentNode.parentNode;
var idx = rowindex(src);
var tbl = document.getElementById('gallery-table');
var row = tbl.insertRow(idx + 1);
var cell = row.insertCell(-1);
cell.innerHTML = src.cells[0].innerHTML.replace(/(.*)(addImg)(.*)(\[)(\+)/i, "$1removeImg$3$4-");
}
/**
* 鍒犻櫎鍥剧墖涓婁紶
*/
function removeImg(obj)
{
var row = rowindex(obj.parentNode.parentNode);
var tbl = document.getElementById('gallery-table');
tbl.deleteRow(row);
}
/**
* 鍒犻櫎鍥剧墖
*/
function dropImg(imgId)
{
Ajax.call('goods.php?is_ajax=1&act=drop_image', "img_id="+imgId, dropImgResponse, "GET", "JSON");
}
function dropImgResponse(result)
{
if (result.error == 0)
{
document.getElementById('gallery_' + result.content).style.display = 'none';
}
}
/**
* 灏嗗競鍦轰环鏍煎彇鏁
*/
function integral_market_price()
{
document.forms['theForm'].elements['market_price'].value = parseInt(document.forms['theForm'].elements['market_price'].value);
}
/**
* 灏嗙Н鍒嗚喘涔伴?搴﹀彇鏁
*/
function parseint_integral()
{
document.forms['theForm'].elements['integral'].value = parseInt(document.forms['theForm'].elements['integral'].value);
}
/**
* 妫€鏌ヨ揣鍙锋槸鍚﹀瓨鍦
*/
function checkGoodsSn(goods_sn, goods_id)
{
if (goods_sn == '')
{
document.getElementById('goods_sn_notice').innerHTML = "";
return;
}
var callback = function(res)
{
if (res.error > 0)
{
document.getElementById('goods_sn_notice').innerHTML = res.message;
document.getElementById('goods_sn_notice').style.color = "red";
}
else
{
document.getElementById('goods_sn_notice').innerHTML = "";
}
}
//Ajax.call('goods.php?is_ajax=1&act=check_goods_sn', "goods_sn=" + goods_sn + "&goods_id=" + goods_id, callback, "GET", "JSON");
}
/**
* 鏂板?涓€涓?紭鎯犱环鏍
*/
function addVolumePrice(obj)
{
var src = obj.parentNode.parentNode;
var tbl = document.getElementById('tbody-volume');
var validator = new Validator('theForm');
checkVolumeData("0",validator);
if (!validator.passed())
{
return false;
}
var row = tbl.insertRow(tbl.rows.length);
var cell = row.insertCell(-1);
cell.innerHTML = src.cells[0].innerHTML.replace(/(.*)(addVolumePrice)(.*)(\[)(\+)/i, "$1removeVolumePrice$3$4-");
var number_list = document.getElementsByName("volume_number[]");
var price_list = document.getElementsByName("volume_price[]");
number_list[number_list.length-1].value = "";
price_list[price_list.length-1].value = "";
}
/**
* 鍒犻櫎浼樻儬浠锋牸
*/
function removeVolumePrice(obj)
{
var row = rowindex(obj.parentNode.parentNode);
var tbl = document.getElementById('tbody-volume');
tbl.deleteRow(row);
}
/**
* 鏍¢獙浼樻儬鏁版嵁鏄?惁姝g‘
*/
function checkVolumeData(isSubmit,validator)
{
var volumeNum = document.getElementsByName("volume_number[]");
var volumePri = document.getElementsByName("volume_price[]");
var numErrNum = 0;
var priErrNum = 0;
for (i = 0 ; i < volumePri.length ; i ++)
{
if ((isSubmit != 1 || volumeNum.length > 1) && numErrNum <= 0 && volumeNum.item(i).value == "")
{
validator.addErrorMsg(volume_num_not_null);
numErrNum++;
}
if (numErrNum <= 0 && Utils.trim(volumeNum.item(i).value) != "" && ! Utils.isNumber(Utils.trim(volumeNum.item(i).value)))
{
validator.addErrorMsg(volume_num_not_number);
numErrNum++;
}
if ((isSubmit != 1 || volumePri.length > 1) && priErrNum <= 0 && volumePri.item(i).value == "")
{
validator.addErrorMsg(volume_price_not_null);
priErrNum++;
}
if (priErrNum <= 0 && Utils.trim(volumePri.item(i).value) != "" && ! Utils.isNumber(Utils.trim(volumePri.item(i).value)))
{
validator.addErrorMsg(volume_price_not_number);
priErrNum++;
}
}
}
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,82 +0,0 @@
<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>
<!-- 商品搜索 -->
<!-- 商品列表 -->
<form method="post" action="" name="listForm" onsubmit="return confirmSubmit(this)">
<!-- start games list -->
<div class="list-div" id="listDiv">
<?php endif; ?>
<table cellpadding="3" cellspacing="1">
<tr>
<th>
<a href="javascript:listTable.sort('id'); ">編號</a><?php echo $this->_var['sort_id']; ?>
</th>
<th>入口名稱</th>
<th>網域</th>
<th>類型</th>
<th><?php echo $this->_var['lang']['handler']; ?></th>
<tr>
<?php $_from = $this->_var['portal_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'portal');if (count($_from)):
foreach ($_from AS $this->_var['portal']):
?>
<tr>
<td><?php echo $this->_var['portal']['id']; ?></td>
<td class="first-cell"><?php echo htmlspecialchars($this->_var['portal']['name']); ?></td>
<td align="center"><?php echo $this->_var['portal']['domain']; ?></td>
<td align="center"><?php if ($this->_var['portal']['type'] == 2): ?>地區<?php elseif ($this->_var['portal']['type'] == 3): ?>景點<?php else: ?>一般<?php endif; ?></td>
<td align="center">
<a href="portal.php?act=edit&id=<?php echo $this->_var['portal']['id']; ?><?php if ($this->_var['code'] != 'real_gamess'): ?>&extension_code=<?php echo $this->_var['code']; ?><?php endif; ?>" title="<?php echo $this->_var['lang']['edit']; ?>"><img src="images/icon_edit.gif" width="16" height="16" border="0" /></a>
<?php if ($this->_var['portal']['id'] != 1): ?>
<a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['portal']['id']; ?>, '確認刪除?')" title="刪除"><img src="images/icon_trash.gif" width="16" height="16" border="0" /></a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; else: ?>
<tr><td class="no-records" colspan="5">沒有資料</td></tr>
<?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
<!-- end games list -->
<!-- 分页 -->
<table id="page-table" cellspacing="0">
<tr>
<td align="right" nowrap="true">
<?php echo $this->fetch('page.htm'); ?>
</td>
</tr>
</table>
<?php if ($this->_var['full_page']): ?>
</div>
</form>
<script type="text/javascript">
listTable.recordCount = <?php echo $this->_var['record_count']; ?>;
listTable.pageCount = <?php echo $this->_var['page_count']; ?>;
<?php $_from = $this->_var['filter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
listTable.filter.<?php echo $this->_var['key']; ?> = '<?php echo $this->_var['item']; ?>';
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
onload = function()
{
document.forms['listForm'].reset();
}
/**
* @param: bool ext 其他条件:用于转移分类
*/
function confirmSubmit(frm, ext)
{
return true;
}
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>

View File

@ -1,231 +0,0 @@
<!-- $Id: privilege_info.htm 16616 2009-08-27 01:56:35Z liuhui $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<div class="main-div">
<form name="theForm" method="post" enctype="multipart/form-data" onsubmit="return validate();">
<table width="100%">
<tr>
<td class="label"><?php echo $this->_var['lang']['user_name']; ?></td>
<td>
<input type="text" name="user_name" maxlength="20" value="<?php echo htmlspecialchars($this->_var['user']['user_name']); ?>" size="34"/><?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<?php if ($this->_var['action'] == "add"): ?>
<tr>
<td class="label"><?php echo $this->_var['lang']['password']; ?></td>
<td>
<input type="password" name="password" maxlength="32" size="34" /><?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td class="label"><?php echo $this->_var['lang']['pwd_confirm']; ?></td>
<td>
<input type="password" name="pwd_confirm" maxlength="32" size="34" /><?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<?php endif; ?>
<?php if ($this->_var['action'] != "add"): ?>
<tr>
<td class="label">
<a href="javascript:showNotice('passwordNotic');" title="<?php echo $this->_var['lang']['form_notice']; ?>">
<img src="images/notice.gif" width="16" height="16" border="0" alt="<?php echo $this->_var['lang']['form_notice']; ?>"></a><?php echo $this->_var['lang']['old_password']; ?></td>
<td>
<input type="password" name="old_password" size="34" /><?php echo $this->_var['lang']['require_field']; ?>
<br /><span class="notice-span" <?php if ($this->_var['help_open']): ?>style="display:block" <?php else: ?> style="display:none" <?php endif; ?> id="passwordNotic"><?php echo $this->_var['lang']['password_notic']; ?></span></td>
</tr>
<tr>
<td class="label"><?php echo $this->_var['lang']['new_password']; ?></td>
<td>
<input type="password" name="new_password" maxlength="32" size="34" /><?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td class="label"><?php echo $this->_var['lang']['pwd_confirm']; ?></td>
<td>
<input type="password" name="pwd_confirm" value="" size="34" /><?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<?php if ($this->_var['user']['agency_name']): ?>
<tr>
<td class="label"><?php echo $this->_var['lang']['agency']; ?></td>
<td><?php echo $this->_var['user']['agency_name']; ?></td>
</tr>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->_var['select_role']): ?>
<tr>
<td class="label"><?php echo $this->_var['lang']['select_role']; ?></td>
<td>
<select name="select_role">
<option value=""><?php echo $this->_var['lang']['select_please']; ?></option>
<?php $_from = $this->_var['select_role']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'list');if (count($_from)):
foreach ($_from AS $this->_var['list']):
?>
<option value="<?php echo $this->_var['list']['role_id']; ?>" <?php if ($this->_var['list']['role_id'] == $this->_var['user']['role_id']): ?> selected="selected" <?php endif; ?> ><?php echo $this->_var['list']['role_name']; ?></option>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</select>
</td>
</tr>
<?php endif; ?>
<?php if ($this->_var['action'] == "modif"): ?>
<tr>
<td align="left" class="label"><?php echo $this->_var['lang']['edit_navi']; ?></td>
<td>
<table style="width:300px" cellspacing="0">
<tr>
<td valign="top">
<input type="hidden" name="nav_list[]" id="nav_list[]" />
<select name="menus_navlist" id="menus_navlist" multiple="true" style="width: 120px; height: 180px" onclick="setTimeout('toggleButtonSatus()', 1);">
<?php echo $this->html_options(array('options'=>$this->_var['nav_arr'])); ?>
</select></td>
<td align="center">
<input type="button" class="button" value="<?php echo $this->_var['lang']['move_up']; ?>" id="btnMoveUp" onclick="moveOptions('up')" disabled="true" />
<input type="button" class="button" value="<?php echo $this->_var['lang']['move_down']; ?>" id="btnMoveDown" onclick="moveOptions('down')" disabled="true" />
<input type="button" value="<?php echo $this->_var['lang']['add_nav']; ?>" id="btnAdd" onclick="JavaScript:addItem(theForm.all_menu_list,theForm.menus_navlist); this.disabled=true; " class="button" disabled="true" /><br />
<input type="button" value="<?php echo $this->_var['lang']['remove_nav']; ?>" onclick="JavaScript:delItem(theForm.menus_navlist); toggleButtonSatus()" class="button" disabled="true" id="btnRemove" /></td>
<td>
<select id="all_menu_list" name="all_menu_list" size="15" multiple="true" style="width:150px; height: 180px" onchange="toggleAddButton()">
<?php $_from = $this->_var['menus']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'menu');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['menu']):
?>
<?php if ($this->_var['key'] != "admin_home" && $this->_var['menus'][$this->_var['key']]): ?>
<option value="" style="font-weight:bold;"><?php echo $this->_var['lang'][$this->_var['key']]; ?></option>
<?php $_from = $this->_var['menus'][$this->_var['key']]; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('k', 'item');if (count($_from)):
foreach ($_from AS $this->_var['k'] => $this->_var['item']):
?>
<option value="<?php echo $this->_var['item']; ?>">&nbsp;&nbsp;&nbsp;&nbsp;<?php echo $this->_var['lang'][$this->_var['k']]; ?></option>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</select></td>
</tr>
</table></td>
</tr>
<?php endif; ?>
<tr>
<td colspan="2" align="center">
<input type="submit" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="button" />&nbsp;&nbsp;&nbsp;
<input type="reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" class="button" />
<input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
<input type="hidden" name="token" value="<?php echo $this->_var['token']; ?>" />
<input type="hidden" name="id" value="<?php echo $this->_var['user']['user_id']; ?>" /></td>
</tr>
</table>
</form>
</div>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,validator.js')); ?>
<script language="JavaScript">
var action = "<?php echo $this->_var['action']; ?>";
<!--
document.forms['theForm'].elements['user_name'].focus();
onload = function()
{
// 开始检查订单
startCheckOrder();
}
/**
* 切换增加按钮的状态
*/
function toggleAddButton()
{
var sel = document.getElementById("all_menu_list");
document.getElementById("btnAdd").disabled = (sel.selectedIndex > -1) ? false : true;
}
/**
* 切换移出,上移,下移按钮状态
*/
function toggleButtonSatus()
{
var sel = document.getElementById("menus_navlist");
document.getElementById("btnRemove").disabled = (sel.selectedIndex > -1) ? false : true;
document.getElementById("btnMoveUp").disabled = (sel.selectedIndex > -1) ? false : true;
document.getElementById("btnMoveDown").disabled = (sel.selectedIndex > -1) ? false : true;
}
/**
* 移动选定的列表项
*/
function moveOptions(direction)
{
var sel = document.getElementById('menus_navlist');
if (sel.selectedIndex == -1)
{
return;
}
len = sel.length
for (i = 0; i < len; i++)
{
if (sel.options[i].selected)
{
if (i == 0 && direction == 'up')
{
return;
}
newOpt = sel.options[i].cloneNode(true);
sel.removeChild(sel.options[i]);
tarOpt = (direction == "up") ? sel.options[i-1] : sel.options[i+1]
sel.insertBefore(newOpt, tarOpt);
newOpt.selected = true;
break;
}
}
}
/**
* 检查表单输入的数据
*/
function validate()
{
get_navlist();
validator = new Validator("theForm");
validator.password = function (controlId, msg)
{
var obj = document.forms[this.formName].elements[controlId];
obj.value = Utils.trim(obj.value);
if (!(obj.value.length >= 6 && /\d+/.test(obj.value) && /[a-zA-Z]+/.test(obj.value)))
{
this.addErrorMsg(msg);
}
}
validator.required("user_name", user_name_empty);
validator.required("email", email_empty, 1);
validator.isEmail("email", email_error);
if (action == "add")
{
if (document.forms['theForm'].elements['password'])
{
validator.password("password", password_invaild);
validator.eqaul("password", "pwd_confirm", password_error);
}
}
if (action == "edit" || action == "modif")
{
if (document.forms['theForm'].elements['old_password'].value.length > 0)
{
validator.password("new_password", password_invaild);
validator.eqaul("new_password", "pwd_confirm", password_error);
}
}
return validator.passed();
}
function get_navlist()
{
if (!document.getElementById('nav_list[]'))
{
return;
}
document.getElementById('nav_list[]').value = joinItem(document.getElementById('menus_navlist'));
//alert(document.getElementById('nav_list[]').value);
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,45 +0,0 @@
<!-- $Id: privilege_list.htm 14216 2008-03-10 02:27:21Z testyang $ -->
<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'utils.js,listtable.js')); ?>
<div class="list-div" id="listDiv">
<?php endif; ?>
<table cellspacing='1' cellpadding='3' id='list-table'>
<tr>
<th><?php echo $this->_var['lang']['user_name']; ?></th>
<th><?php echo $this->_var['lang']['join_time']; ?></th>
<th><?php echo $this->_var['lang']['last_time']; ?></th>
<th><?php echo $this->_var['lang']['handler']; ?></th>
</tr>
<?php $_from = $this->_var['admin_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'list');if (count($_from)):
foreach ($_from AS $this->_var['list']):
?>
<tr>
<td class="first-cell" ><?php echo $this->_var['list']['user_name']; ?></td>
<td align="center"><?php echo $this->_var['list']['add_time']; ?></td>
<td align="center"><?php echo empty($this->_var['list']['last_login']) ? 'N/A' : $this->_var['list']['last_login']; ?></td>
<td align="center">
<a href="privilege.php?act=allot&id=<?php echo $this->_var['list']['user_id']; ?>&user=<?php echo $this->_var['list']['user_name']; ?>" title="<?php echo $this->_var['lang']['allot_priv']; ?>"><img src="images/icon_priv.gif" border="0" height="21" width="21"></a>&nbsp;&nbsp;
<a href="admin_logs.php?act=list&id=<?php echo $this->_var['list']['user_id']; ?>" title="<?php echo $this->_var['lang']['view_log']; ?>"><img src="images/icon_view.gif" border="0" height="21" width="21"></a>&nbsp;&nbsp;
<a href="privilege.php?act=edit&id=<?php echo $this->_var['list']['user_id']; ?>" title="<?php echo $this->_var['lang']['edit']; ?>"><img src="images/icon_edit.gif" border="0" height="21" width="21"></a>&nbsp;&nbsp;
<a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['list']['user_id']; ?>, '<?php echo $this->_var['lang']['drop_confirm']; ?>')" title="<?php echo $this->_var['lang']['remove']; ?>"><img src="images/icon_drop.gif" border="0" height="21" width="21"></a></td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
<?php if ($this->_var['full_page']): ?>
</div>
<script type="text/javascript" language="JavaScript">
onload = function()
{
// 开始检查订单
startCheckOrder();
}
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>

View File

@ -1,59 +0,0 @@
<!-- $Id: category_info.htm 16752 2009-10-20 09:59:38Z wangleisvn $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<!-- start add new category form -->
<div class="main-div">
<form action="search.php" method="post" name="theForm" enctype="multipart/form-data" onsubmit="return validate()">
<table width="100%" id="general-table">
<tr>
<td class="label">名稱:</td>
<td>
<input type='text' name='name' maxlength="20" value='<?php echo htmlspecialchars($this->_var['search']['name']); ?>' size='27' /> <font color="red">*</font>
</td>
</tr>
<tr>
<td class="label">排序:</td>
<td>
<input type="text" name='sort_order' <?php if ($this->_var['search']['sort_order']): ?>value='<?php echo $this->_var['search']['sort_order']; ?>'<?php else: ?> value="50"<?php endif; ?> size="15" />
</td>
</tr>
<tr>
<td class="label">是否有效:</td>
<td>
<input type="radio" name="enable" value="1" <?php if ($this->_var['search']['enable'] != 0): ?> checked="true"<?php endif; ?>/> <?php echo $this->_var['lang']['yes']; ?>
<input type="radio" name="enable" value="0" <?php if ($this->_var['search']['enable'] == 0): ?> checked="true"<?php endif; ?> /> <?php echo $this->_var['lang']['no']; ?>
</td>
</tr>
</table>
<div class="button-div">
<input type="submit" value="確定" />
<input type="reset" value="重置" />
</div>
<input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
<input type="hidden" name="id" value="<?php echo $this->_var['search']['id']; ?>" />
</form>
</div>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,validator.js')); ?>
<script language="JavaScript">
<!--
document.forms['theForm'].elements['name'].focus();
/**
* 检查表单输入的数据
*/
function validate()
{
validator = new Validator("theForm");
validator.required("name",'名稱未填');
return validator.passed();
}
onload = function()
{
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,51 +0,0 @@
<!-- $Id: facility_list.htm 17019 2010-01-29 10:10:34Z liuhui $ -->
<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>
<form method="post" action="" name="listForm">
<!-- start ad position list -->
<div class="list-div" id="listDiv">
<?php endif; ?>
<table width="100%" cellspacing="1" cellpadding="2" id="list-table">
<tr>
<th>字串名稱</th>
<th>是否有效</th>
<th>排序</th>
<th><?php echo $this->_var['lang']['handler']; ?></th>
</tr>
<?php $_from = $this->_var['search_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'search');if (count($_from)):
foreach ($_from AS $this->_var['search']):
?>
<tr align="center">
<td align="left" class="first-cell" >
<span><?php echo $this->_var['search']['name']; ?></span>
</td>
<td width="10%"><img src="images/<?php if ($this->_var['search']['enable'] == '1'): ?>yes<?php else: ?>no<?php endif; ?>.gif" onclick="listTable.toggle(this, 'toggle_enable', <?php echo $this->_var['search']['id']; ?>)" /></td>
<td width="10%" align="right"><span onclick="listTable.edit(this, 'edit_sort_order', <?php echo $this->_var['search']['id']; ?>)"><?php echo $this->_var['search']['sort_order']; ?></span></td>
<td width="24%" align="center">
<a href="search.php?act=edit&id=<?php echo $this->_var['search']['id']; ?>">編輯</a> |
<a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['search']['id']; ?>, '確認刪除')" title="刪除">移除</a>
</td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
<?php if ($this->_var['full_page']): ?>
</div>
</form>
<script language="JavaScript">
<!--
onload = function()
{
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>

View File

@ -1,79 +0,0 @@
<!-- $Id: shop_config.htm 16865 2009-12-10 06:05:32Z sxc_shop $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,../js/region.js')); ?>
<div class="tab-div">
<!-- tab bar -->
<div id="tabbar-div">
<p>
<?php $_from = $this->_var['group_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'group');$this->_foreach['bar_group'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['bar_group']['total'] > 0):
foreach ($_from AS $this->_var['group']):
$this->_foreach['bar_group']['iteration']++;
?><span class="<?php if ($this->_foreach['bar_group']['iteration'] == 1): ?>tab-front<?php else: ?>tab-back<?php endif; ?>" id="<?php echo $this->_var['group']['code']; ?>-tab"><?php echo $this->_var['group']['name']; ?></span><?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</p>
</div>
<!-- tab body -->
<div id="tabbody-div">
<form enctype="multipart/form-data" name="theForm" action="?act=post" method="post">
<?php $_from = $this->_var['group_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'group');$this->_foreach['body_group'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['body_group']['total'] > 0):
foreach ($_from AS $this->_var['group']):
$this->_foreach['body_group']['iteration']++;
?>
<table width="90%" id="<?php echo $this->_var['group']['code']; ?>-table" <?php if ($this->_foreach['body_group']['iteration'] != 1): ?>style="display:none"<?php endif; ?>>
<?php $_from = $this->_var['group']['vars']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'var');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['var']):
?>
<?php echo $this->fetch('shop_config_form.htm'); ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<div class="button-div">
<input name="submit" type="submit" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="button" />
<input name="reset" type="reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" class="button" />
</div>
</form>
</div>
</div>
<?php echo $this->smarty_insert_scripts(array('files'=>'tab.js,validator.js')); ?>
<script language="JavaScript">
region.isAdmin = true;
onload = function()
{
// 开始检查订单
startCheckOrder();
}
var ReWriteSelected = null;
var ReWriteRadiobox = document.getElementsByName("value[209]");
for (var i=0; i<ReWriteRadiobox.length; i++)
{
if (ReWriteRadiobox[i].checked)
{
ReWriteSelected = ReWriteRadiobox[i];
}
}
function ReWriterConfirm(sender)
{
if (sender == ReWriteSelected) return true;
var res = true;
if (sender != ReWriteRadiobox[0]) {
var res = confirm('<?php echo $this->_var['rewrite_confirm']; ?>');
}
if (res==false)
{
ReWriteSelected.checked = true;
}
else
{
ReWriteSelected = sender;
}
return res;
}
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,117 +0,0 @@
<tr>
<td class="label" valign="top">
<?php if ($this->_var['var']['desc']): ?>
<a href="javascript:showNotice('notice<?php echo $this->_var['var']['code']; ?>');" title="<?php echo $this->_var['lang']['form_notice']; ?>"><img src="images/notice.gif" width="16" height="16" border="0" alt="<?php echo $this->_var['lang']['form_notice']; ?>" /></a>
<?php endif; ?>
<?php echo $this->_var['var']['name']; ?>:
</td>
<td>
<?php if ($this->_var['var']['type'] == "text"): ?>
<input name="value[<?php echo $this->_var['var']['id']; ?>]" type="text" value="<?php echo $this->_var['var']['value']; ?>" size="40" />
<?php elseif ($this->_var['var']['type'] == "password"): ?>
<input name="value[<?php echo $this->_var['var']['id']; ?>]" type="password" value="<?php echo $this->_var['var']['value']; ?>" size="40" />
<?php elseif ($this->_var['var']['type'] == "textarea"): ?>
<textarea name="value[<?php echo $this->_var['var']['id']; ?>]" cols="80" rows="10"><?php echo $this->_var['var']['value']; ?></textarea>
<?php elseif ($this->_var['var']['type'] == "select"): ?>
<?php $_from = $this->_var['var']['store_options']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('k', 'opt');if (count($_from)):
foreach ($_from AS $this->_var['k'] => $this->_var['opt']):
?>
<label for="value_<?php echo $this->_var['var']['id']; ?>_<?php echo $this->_var['k']; ?>"><input type="radio" name="value[<?php echo $this->_var['var']['id']; ?>]" id="value_<?php echo $this->_var['var']['id']; ?>_<?php echo $this->_var['k']; ?>" value="<?php echo $this->_var['opt']; ?>"
<?php if ($this->_var['var']['value'] == $this->_var['opt']): ?>checked="true"<?php endif; ?>
<?php if ($this->_var['var']['code'] == 'rewrite'): ?>
onclick="return ReWriterConfirm(this);"
<?php endif; ?>
<?php if ($this->_var['var']['code'] == 'smtp_ssl' && $this->_var['opt'] == 1): ?>
onclick="return confirm('<?php echo $this->_var['lang']['smtp_ssl_confirm']; ?>');"
<?php endif; ?>
<?php if ($this->_var['var']['code'] == 'enable_gzip' && $this->_var['opt'] == 1): ?>
onclick="return confirm('<?php echo $this->_var['lang']['gzip_confirm']; ?>');"
<?php endif; ?>
<?php if ($this->_var['var']['code'] == 'retain_original_img' && $this->_var['opt'] == 0): ?>
onclick="return confirm('<?php echo $this->_var['lang']['retain_original_confirm']; ?>');"
<?php endif; ?>
/><?php echo $this->_var['var']['display_options'][$this->_var['k']]; ?></label>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<?php elseif ($this->_var['var']['type'] == "options"): ?>
<select name="value[<?php echo $this->_var['var']['id']; ?>]" id="value_<?php echo $this->_var['var']['id']; ?>_<?php echo $this->_var['key']; ?>">
<?php echo $this->html_options(array('options'=>$this->_var['lang']['cfg_range'][$this->_var['var']['code']],'selected'=>$this->_var['var']['value'])); ?>
</select>
<?php elseif ($this->_var['var']['type'] == "file"): ?>
<input name="<?php echo $this->_var['var']['code']; ?>" type="file" size="40" />
<?php if (( $this->_var['var']['code'] == "shop_logo" || $this->_var['var']['code'] == "no_picture" || $this->_var['var']['code'] == "watermark" || $this->_var['var']['code'] == "shop_slagon" || $this->_var['var']['code'] == "wap_logo" ) && $this->_var['var']['value']): ?>
<a href="?act=del&code=<?php echo $this->_var['var']['code']; ?>"><img src="images/no.gif" alt="Delete" border="0" /></a> <img src="images/yes.gif" border="0" onmouseover="showImg('<?php echo $this->_var['var']['code']; ?>_layer', 'show')" onmouseout="showImg('<?php echo $this->_var['var']['code']; ?>_layer', 'hide')" />
<div id="<?php echo $this->_var['var']['code']; ?>_layer" style="position:absolute; width:100px; height:100px; z-index:1; visibility:hidden" border="1">
<img src="<?php echo $this->_var['var']['value']; ?>" border="0" />
</div>
<?php else: ?>
<?php if ($this->_var['var']['value'] != ""): ?>
<img src="images/yes.gif" alt="yes" />
<?php else: ?>
<img src="images/no.gif" alt="no" />
<?php endif; ?>
<?php endif; ?>
<?php elseif ($this->_var['var']['type'] == "manual"): ?>
<?php if ($this->_var['var']['code'] == "shop_country"): ?>
<select name="value[<?php echo $this->_var['var']['id']; ?>]" id="selCountries" onchange="region.changed(this, 1, 'selProvinces')">
<option value=''><?php echo $this->_var['lang']['select_please']; ?></option>
<?php $_from = $this->_var['countries']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'region');if (count($_from)):
foreach ($_from AS $this->_var['region']):
?>
<option value="<?php echo $this->_var['region']['region_id']; ?>" <?php if ($this->_var['region']['region_id'] == $this->_var['cfg']['shop_country']): ?>selected<?php endif; ?>><?php echo $this->_var['region']['region_name']; ?></option>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</select>
<?php elseif ($this->_var['var']['code'] == "shop_province"): ?>
<select name="value[<?php echo $this->_var['var']['id']; ?>]" id="selProvinces" onchange="region.changed(this, 2, 'selCities')">
<option value=''><?php echo $this->_var['lang']['select_please']; ?></option>
<?php $_from = $this->_var['provinces']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'region');if (count($_from)):
foreach ($_from AS $this->_var['region']):
?>
<option value="<?php echo $this->_var['region']['region_id']; ?>" <?php if ($this->_var['region']['region_id'] == $this->_var['cfg']['shop_province']): ?>selected<?php endif; ?>><?php echo $this->_var['region']['region_name']; ?></option>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</select>
<?php elseif ($this->_var['var']['code'] == "shop_city"): ?>
<select name="value[<?php echo $this->_var['var']['id']; ?>]" id="selCities">
<option value=''><?php echo $this->_var['lang']['select_please']; ?></option>
<?php $_from = $this->_var['cities']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'region');if (count($_from)):
foreach ($_from AS $this->_var['region']):
?>
<option value="<?php echo $this->_var['region']['region_id']; ?>" <?php if ($this->_var['region']['region_id'] == $this->_var['cfg']['shop_city']): ?>selected<?php endif; ?>><?php echo $this->_var['region']['region_name']; ?></option>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</select>
<?php elseif ($this->_var['var']['code'] == "lang"): ?>
<select name="value[<?php echo $this->_var['var']['id']; ?>]">
<?php echo $this->html_options(array('values'=>$this->_var['lang_list'],'output'=>$this->_var['lang_list'],'selected'=>$this->_var['var']['value'])); ?>
</select>
<?php elseif ($this->_var['var']['code'] == "invoice_type"): ?>
<table>
<tr>
<th scope="col"><?php echo $this->_var['lang']['invoice_type']; ?></th>
<th scope="col"><?php echo $this->_var['lang']['invoice_rate']; ?></th>
</tr>
<tr>
<td><input name="invoice_type[]" type="text" value="<?php echo $this->_var['cfg']['invoice_type']['type']['0']; ?>" /></td>
<td><input name="invoice_rate[]" type="text" value="<?php echo $this->_var['cfg']['invoice_type']['rate']['0']; ?>" /></td>
</tr>
<tr>
<td><input name="invoice_type[]" type="text" value="<?php echo $this->_var['cfg']['invoice_type']['type']['1']; ?>" /></td>
<td><input name="invoice_rate[]" type="text" value="<?php echo $this->_var['cfg']['invoice_type']['rate']['1']; ?>" /></td>
</tr>
<tr>
<td><input name="invoice_type[]" type="text" value="<?php echo $this->_var['cfg']['invoice_type']['type']['2']; ?>" /></td>
<td><input name="invoice_rate[]" type="text" value="<?php echo $this->_var['cfg']['invoice_type']['rate']['2']; ?>" /></td>
</tr>
</table>
<?php endif; ?>
<?php endif; ?>
<?php if ($this->_var['var']['desc']): ?>
<br />
<span class="notice-span" <?php if ($this->_var['help_open']): ?>style="display:block" <?php else: ?> style="display:none" <?php endif; ?> id="notice<?php echo $this->_var['var']['code']; ?>"><?php echo nl2br($this->_var['var']['desc']); ?></span>
<?php endif; ?>
</td>
</tr>

View File

@ -1,12 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<img src="<?php echo $this->_var['img_url']; ?>" />
</body>
</html>

View File

@ -1,185 +0,0 @@
<!-- $Id: start.htm 17216 2011-01-19 06:03:12Z liubo $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<!-- directory install start -->
<ul id="lilist" style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
<?php $_from = $this->_var['warning_arr']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'warning');if (count($_from)):
foreach ($_from AS $this->_var['warning']):
?>
<li class="Start315"><?php echo $this->_var['warning']; ?></li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
<!-- <script type="text/javascript" src="http://bbs.ecshop.com/notice.php?v=1&n=8&f=ul"></script>-->
</ul>
<!-- directory install end -->
<!-- start personal message -->
<div class="list-div" style="border: 1px solid #CC0000">
<table cellspacing='1' cellpadding='3'>
<tr>
<th>客戶名稱</th>
<th>入口</th>
<th>廣告區</th>
<th>到期日</th>
</tr>
<?php $_from = $this->_var['expire_ad']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad');if (count($_from)):
foreach ($_from AS $this->_var['ad']):
?>
<tr align="center">
<td align="left"><?php echo $this->_var['ad']['uname']; ?></td>
<td><?php echo $this->_var['ad']['pname']; ?></td>
<td><?php echo $this->_var['ad']['block']; ?></td>
<td><?php echo $this->_var['ad']['dstamp']; ?></td>
</tr>
<?php endforeach; else: ?>
<tr >
<td colspan=4 align="center">暫無資料</td>
</tr>
<?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
</div>
<br />
<!-- end personal message -->
</div>
<!-- start system information -->
<div class="list-div">
<table cellspacing='1' cellpadding='3'>
<tr>
<th colspan="4" class="group-title"><?php echo $this->_var['lang']['system_info']; ?></th>
</tr>
<tr>
<td width="20%"><?php echo $this->_var['lang']['os']; ?></td>
<td width="30%"><?php echo $this->_var['sys_info']['os']; ?> (<?php echo $this->_var['sys_info']['ip']; ?>)</td>
<td width="20%"><?php echo $this->_var['lang']['web_server']; ?></td>
<td width="30%"><?php echo $this->_var['sys_info']['web_server']; ?></td>
</tr>
<tr>
<td><?php echo $this->_var['lang']['php_version']; ?></td>
<td><?php echo $this->_var['sys_info']['php_ver']; ?></td>
<td><?php echo $this->_var['lang']['mysql_version']; ?></td>
<td><?php echo $this->_var['sys_info']['mysql_ver']; ?></td>
</tr>
<tr>
<td><?php echo $this->_var['lang']['safe_mode']; ?></td>
<td><?php echo $this->_var['sys_info']['safe_mode']; ?></td>
<td><?php echo $this->_var['lang']['safe_mode_gid']; ?></td>
<td><?php echo $this->_var['sys_info']['safe_mode_gid']; ?></td>
</tr>
<tr>
<td><?php echo $this->_var['lang']['socket']; ?></td>
<td><?php echo $this->_var['sys_info']['socket']; ?></td>
<td><?php echo $this->_var['lang']['timezone']; ?></td>
<td><?php echo $this->_var['sys_info']['timezone']; ?></td>
</tr>
<tr>
<td><?php echo $this->_var['lang']['gd_version']; ?></td>
<td><?php echo $this->_var['sys_info']['gd']; ?></td>
<td><?php echo $this->_var['lang']['zlib']; ?></td>
<td><?php echo $this->_var['sys_info']['zlib']; ?></td>
</tr>
<tr>
<td><?php echo $this->_var['lang']['ec_charset']; ?></td>
<td><?php echo $this->_var['ecs_charset']; ?></td>
<td><?php echo $this->_var['lang']['max_filesize']; ?></td>
<td><?php echo $this->_var['sys_info']['max_filesize']; ?></td>
</tr>
</table>
</div>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/echarts-all.js')); ?>
<script type="Text/Javascript" language="JavaScript">
var reg_chart = echarts.init(document.getElementById('reg_chart_div'));
reg_chart.setOption(<?php echo $this->_var['reg_option']; ?>);
var order_chart = echarts.init(document.getElementById('order_chart_div'));
order_chart.setOption(<?php echo $this->_var['orders_option']; ?>);
var sales_chart = echarts.init(document.getElementById('sales_chart_div'));
sales_chart.setOption(<?php echo $this->_var['sales_option']; ?>);
// var froms_chart = echarts.init(document.getElementById('froms_chart_div'));
// froms_chart.setOption(<?php echo $this->_var['froms_option']; ?>);
</script>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js')); ?>
<script type="Text/Javascript" language="JavaScript">
<!--
onload = function()
{
}
function startStat()
{
Ajax.call('index.php?is_ajax=1&act=start_stat','', start_stat_Response, 'GET', 'JSON');
}
function start_stat_Response(result)
{
document.getElementById("today_deposit").innerHTML=result.today_deposit;
document.getElementById("today_repay").innerHTML=result.today_repay;
document.getElementById("today_user").innerHTML=result.today_user;
document.getElementById("today_visit").innerHTML=result.today_visit;
}
//Ajax.call('index.php?is_ajax=1&act=main_api','', start_api, 'GET', 'TEXT','FLASE');
//Ajax.call('cloud.php?is_ajax=1&act=cloud_remind','', cloud_api, 'GET', 'JSON');
function start_api(result)
{
apilist = document.getElementById("lilist").innerHTML;
document.getElementById("lilist").innerHTML =result+apilist;
if(document.getElementById("Marquee") != null)
{
var Mar = document.getElementById("Marquee");
lis = Mar.getElementsByTagName('div');
//alert(lis.length); //显示li元素的个数
if(lis.length>1)
{
api_styel();
}
}
}
function api_styel()
{
if(document.getElementById("Marquee") != null)
{
var Mar = document.getElementById("Marquee");
if (Browser.isIE)
{
Mar.style.height = "52px";
}
else
{
Mar.style.height = "36px";
}
var child_div=Mar.getElementsByTagName("div");
var picH = 16;//移动高度
var scrollstep=2;//移动步幅,越大越快
var scrolltime=30;//移动频度(毫秒)越大越慢
var stoptime=4000;//间断时间(毫秒)
var tmpH = 0;
function start()
{
if(tmpH < picH)
{
tmpH += scrollstep;
if(tmpH > picH )tmpH = picH ;
Mar.scrollTop = tmpH;
setTimeout(start,scrolltime);
}
else
{
tmpH = 0;
Mar.appendChild(child_div[0]);
Mar.scrollTop = 0;
setTimeout(start,stoptime);
}
}
setTimeout(start,stoptime);
}
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,499 +0,0 @@
<!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><?php echo $this->_var['app_name']; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<style type="text/css">
#header-div {
background: <?php echo $this->_var['back_color']; ?>; height:76px;
}
#logo-div {
margin-left: 30px;
margin-top: 10px;
width: 250px;
height: 45px;
float: left;
color: #FFFFFF;
}
#loading-div {
clear: right;
text-align: right;
display: block;
}
#submenu-div {
text-align: center;
width: 1000px;
position: absolute;
right: 0px;
height: 75px;
}
#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: 67px;
width: 82px;
padding-top: 8px;
display: block;
text-decoration: none;
color: #FFFFFF;
}
#submenu-div li a:hover {
background:#404040;
}
#submenu-div li span {
margin-top: 6px;
display: block;
}
#submenu-div li img {
margin: auto;
display: block;
height:35px;
}
#menu-div {
background: #575757;
height: 41px;
border-bottom:1px solid #212121;
}
#menu-div ul {
margin: 0px 0px 0px 15px;
padding: 0;
list-style-type: none;
}
#menu-div ul li {
float: left;
display: block;
height: 41px;
line-height: 41px;
position: relative;
}
.muneFG {
height: 13px;
width: 0px;
border-right: 1px solid #656565;
margin-top: 15px;
*margin-top:-18px;
_margin-top: 0px;
border-left: 1px solid #303030;
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;
}
#menu-div ul li div.drop_menu{
height:180px; width:160px;border:1px solid #e5e5e5; background:#f4f4f4; position:absolute;left:0;top:42px; z-index:1000;
}
.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: #454545;
}
#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: red;
}
#menu-div ul li:hover ul li a.hide {
background: red;
color: #fff;
}
#menu-div ul li:hover ul li:hover a.hide {
background: red;
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>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/jquery-1.9.1.min.js,../js/jquery.json.js')); ?>
<?php echo $this->smarty_insert_scripts(array('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 = "<?php echo $this->_var['admin_id']; ?>";
</script>
</head>
<body>
<div id="header-div" style="padding: 0px;">
<div id="logo-div" style="bgcolor:#000000;">
<h1><?php echo $this->_var['back_name']; ?></h1>
</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><?php echo $this->_var['lang']['signout']; ?></span></a></li>
<li><a href="index.php?act=clear_cache" target="main-frame" class="fix-submenu"><img src="images/qingchu.png" style="border:none;"/><span><?php echo $this->_var['lang']['clear_cache']; ?></span></a></li>
<li><a href="privilege.php?act=modif" target="main-frame"><img src="images/topmune_04.png" style="border:none;"/><span><?php echo $this->_var['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><?php echo $this->_var['lang']['refresh']; ?></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;">
<?php if ($this->_var['send_mail_on'] == 'on'): ?>
<span id="send_msg"><img src="images/top_loader.gif" width="16" height="16" alt="<?php echo $this->_var['lang']['loading']; ?>" style="vertical-align: middle" /> <?php echo $this->_var['lang']['email_sending']; ?></span>
<a href="javascript:;" onClick="Javascript:switcher()" id="lnkSwitch" style="margin-right:10px;color: #FF9900;text-decoration: underline"><?php echo $this->_var['lang']['pause']; ?></a>
<?php endif; ?>
<a href="index.php?act=clear_cache" target="main-frame" class="fix-submenu"><?php echo $this->_var['lang']['clear_cache']; ?></a>
<a href="privilege.php?act=logout" target="_top" class="fix-submenu"><?php echo $this->_var['lang']['signout']; ?></a>
</div>
<script type="text/javascript" charset="utf-8">
var cn = window.setInterval("check_new()", 10000);
function check_new()
{
// Ajax.call('index.php?is_ajax=1&act=check_new','', check_new_Response, 'GET', 'JSON');
}
function check_new_Response(result)
{
if(isNaN(result.new_trans) || isNaN(result.new_user) || isNaN(result.new_deposit) || isNaN(result.new_repay)){
// window.location.replace('privilege.php?act=login');
}else{
// document.getElementById("new_user").innerHTML=result.new_user;
}
}
<?php if ($this->_var['send_mail_on'] == 'on'): ?>
var sm = window.setInterval("start_sendmail()", 5000);
var finished = 0;
var error = 0;
var conti = "<?php echo $this->_var['lang']['conti']; ?>";
var pause = "<?php echo $this->_var['lang']['pause']; ?>";
var counter = 0;
var str = "<?php echo $this->_var['lang']['str']; ?>";
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;
<?php endif; ?>
</script>
<div id="load-div" style="padding: 5px 10px 0 0; text-align: right; color: #FF9900; display: none;width:40%;float:right;"><img src="images/top_loader.gif" width="16" height="16" alt="<?php echo $this->_var['lang']['loading']; ?>" style="vertical-align: middle" /> <?php echo $this->_var['lang']['loading']; ?></div>
</div>
</div>
<div id="menu-div">
<ul>
<li class="fix-spacel">&nbsp;</li>
<li style="border-left:none;"><a href="index.php?act=main" target="main-frame"><img src="images/index-11_07.png" width="17" height="18" style="border:none;" align="absmiddle"/><span><?php echo $this->_var['lang']['admin_home']; ?></span></a><span class="muneFG"></span></li>
<li><a href="privilege.php?act=modif" target="main-frame"><img src="images/index-11_41.png" width="17" height="18" align="absmiddle"/><span><?php echo $this->_var['lang']['set_navigator']; ?></span></a><span class="muneFG"></span></li>
<?php $_from = $this->_var['nav_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
<li><a href="<?php echo $this->_var['key']; ?>" target="main-frame"><?php echo $this->_var['item']; ?></a></li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<li class="fix-spacer">&nbsp;</li>
</ul>
<br class="clear" />
</div>
</body>
</html>

View File

@ -1,176 +0,0 @@
<!-- $Id: user_info.htm 16854 2009-12-07 06:20:09Z sxc_shop $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<!-- Magnific Popup core CSS file -->
<link rel="stylesheet" href="styles/jquery-ui.min.css">
<script src="js/jquery-ui.min.js"></script>
<script src="js/clipboard.min.js"></script>
<script type="text/javascript" src="../js/calendar.php?lang=<?php echo $this->_var['cfg_lang']; ?>"></script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<script>
function openwindow(url,name,iWidth,iHeight)
{
var url; //網頁位置;
var name; //網頁名稱;
var iWidth; //視窗的寬度;
var iHeight; //視窗的高度;
var iTop = (window.screen.availHeight-30-iHeight)/2; //視窗的垂直位置;
var iLeft = (window.screen.availWidth-10-iWidth)/2; //視窗的水平位置;
window.open(url,name,'height='+iHeight+',innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft);
}
</script>
<div class="main-div">
<form method="post" action="users.php" name="theForm" onsubmit="return validate()" enctype="multipart/form-data">
<table width="100%" >
<tr>
<td>二區文字:</td>
<td>
<textarea name="ad_text2" cols=100 rows=10><?php echo $this->_var['web']['ad_text2']; ?></textarea>
</td>
</tr>
<tr>
<td>上傳檔案:</td>
<td>
輪撥:<input type="file" name="image1"/><br />
一區:<input type="file" name="image2"/><br />
二區:<input type="file" name="image3"/><br />
三區:<input type="file" name="image4"/><br />
<div style="padding:10px 0px">
<?php if ($this->_var['web']['image1'] != ''): ?>
<a href="javascript:void(0);" onClick="openwindow('../<?php echo $this->_var['web']['image1']; ?>','照片',800,500);">
<img src="../<?php echo $this->_var['web']['image1']; ?>" width="100" height="100" />
</a>
<?php else: ?>
<?php echo $this->_var['lang']['msg_na']; ?>
<?php endif; ?>
<?php if ($this->_var['web']['image2'] != ''): ?>
<a href="javascript:void(0);" onClick="openwindow('../<?php echo $this->_var['web']['image2']; ?>','照片',800,500);">
<img src="../<?php echo $this->_var['web']['image2']; ?>" width="100" height="100" />
</a>
<?php else: ?>
<?php echo $this->_var['lang']['msg_na']; ?>
<?php endif; ?>
<?php if ($this->_var['web']['image3'] != ''): ?>
<a href="javascript:void(0);" onClick="openwindow('../<?php echo $this->_var['web']['image3']; ?>','照片',800,500);">
<img src="../<?php echo $this->_var['web']['image3']; ?>" width="100" height="100" />
</a>
<?php else: ?>
<?php echo $this->_var['lang']['msg_na']; ?>
<?php endif; ?>
<?php if ($this->_var['web']['image4'] != ''): ?>
<a href="javascript:void(0);" onClick="openwindow('../<?php echo $this->_var['web']['image4']; ?>','照片',800,500);">
<img src="../<?php echo $this->_var['web']['image4']; ?>" width="100" height="100" />
</a>
<?php else: ?>
<?php echo $this->_var['lang']['msg_na']; ?>
<?php endif; ?>
</div>
</td>
</tr>
<tr>
<td >廣告位置:</td>
<td>
<table width="100%" >
<tr>
<td>入口</td>
<td>輪撥</td>
<td>一區</td>
<td>二區</td>
<td>三區</td>
<td>到期日</td>
</tr>
<?php $_from = $this->_var['portals']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'portal');if (count($_from)):
foreach ($_from AS $this->_var['portal']):
?>
<tr>
<td><?php echo $this->_var['portal']['name']; ?></td>
<td><input type="checkbox" name="ad[<?php echo $this->_var['portal']['id']; ?>][]" value="1" <?php if ($this->_var['portal']['block'] & 1): ?>checked<?php endif; ?>></td>
<td><input type="checkbox" name="ad[<?php echo $this->_var['portal']['id']; ?>][]" value="2" <?php if ($this->_var['portal']['block'] & 2): ?>checked<?php endif; ?>></td>
<td><input type="checkbox" name="ad[<?php echo $this->_var['portal']['id']; ?>][]" value="4" <?php if ($this->_var['portal']['block'] & 4): ?>checked<?php endif; ?>></td>
<td><input type="checkbox" name="ad[<?php echo $this->_var['portal']['id']; ?>][]" value="8" <?php if ($this->_var['portal']['block'] & 8): ?>checked<?php endif; ?>></td>
<td><input name="expire[<?php echo $this->_var['portal']['id']; ?>]" type="text" id="expire_<?php echo $this->_var['portal']['id']; ?>" size="15" value='<?php echo $this->_var['portal']['dstamp']; ?>' /></td>
</tr>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="button" />
<input type="reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" class="button" />
<input type="hidden" name="act" value="<?php echo $this->_var['form_action']; ?>" />
<input type="hidden" name="id" value="<?php echo $this->_var['id']; ?>" /> </td>
</tr>
</table>
</form>
</div>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,validator.js')); ?>
<script language="JavaScript">
<!--
if (document.forms['theForm'].elements['act'].value == "insert")
{
document.forms['theForm'].elements['username'].focus();
}
else
{
document.forms['theForm'].elements['email'].focus();
}
//onload = function()
/{
// 开始检查订单
// startCheckOrder();
//}
/**
* 检查表单输入的数据
*/
function validate()
{
validator = new Validator("theForm");
validator.isMobile("mobile_phone", invalid_mobile_phone, true);
if (document.forms['theForm'].elements['act'].value == "insert")
{
validator.required("username", no_username);
validator.required("password", no_password);
validator.required("confirm_password", no_confirm_password);
// validator.required("mobile_phone", no_mobile_phone);
validator.eqaul("password", "confirm_password", password_not_same);
var password_value = document.forms['theForm'].elements['password'].value;
if (password_value.length < 6)
{
validator.addErrorMsg(less_password);
}
if (/ /.test(password_value) == true)
{
validator.addErrorMsg(passwd_balnk);
}
}
else if (document.forms['theForm'].elements['act'].value == "update")
{
var newpass = document.forms['theForm'].elements['password'];
var confirm_password = document.forms['theForm'].elements['confirm_password'];
if(newpass.value.length > 0 || confirm_password.value.length)
{
if(newpass.value.length >= 6 || confirm_password.value.length >= 6)
{
validator.eqaul("password", "confirm_password", password_not_same);
}
else
{
validator.addErrorMsg(password_len_err);
}
}
}
return validator.passed();
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,193 +0,0 @@
<!-- $Id: user_info.htm 16854 2009-12-07 06:20:09Z sxc_shop $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<!-- Magnific Popup core CSS file -->
<link rel="stylesheet" href="styles/jquery-ui.min.css">
<script src="js/jquery-ui.min.js"></script>
<script src="js/clipboard.min.js"></script>
<script>
function openwindow(url,name,iWidth,iHeight)
{
var url; //網頁位置;
var name; //網頁名稱;
var iWidth; //視窗的寬度;
var iHeight; //視窗的高度;
var iTop = (window.screen.availHeight-30-iHeight)/2; //視窗的垂直位置;
var iLeft = (window.screen.availWidth-10-iWidth)/2; //視窗的水平位置;
window.open(url,name,'height='+iHeight+',innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft);
}
</script>
<div class="main-div">
<form method="post" action="users.php" name="theForm" onsubmit="return validate()" enctype="multipart/form-data">
<table width="100%" >
<tr>
<td class="label"><?php echo $this->_var['lang']['username']; ?>:</td>
<td><?php if ($this->_var['form_action'] == "update"): ?><?php echo $this->_var['user']['user_name']; ?><input type="hidden" name="username" value="<?php echo $this->_var['user']['user_name']; ?>" /><?php else: ?><input type="text" name="username" maxlength="60" value="<?php echo $this->_var['user']['user_name']; ?>" /><?php echo $this->_var['lang']['require_field']; ?><?php endif; ?></td>
</tr>
<?php if ($this->_var['form_action'] == "insert"): ?>
<tr>
<td class="label"><?php echo $this->_var['lang']['password']; ?>:</td>
<td><input type="password" name="password" maxlength="20" size="20" /><?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td class="label"><?php echo $this->_var['lang']['confirm_password']; ?>:</td>
<td><input type="password" name="confirm_password" maxlength="20" size="20" /><?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<?php elseif ($this->_var['form_action'] == "update"): ?>
<tr>
<td class="label"><?php echo $this->_var['lang']['newpass']; ?>:</td>
<td><input type="password" name="password" maxlength="20" size="20" /></td>
</tr>
<tr>
<td class="label"><?php echo $this->_var['lang']['confirm_password']; ?>:</td>
<td><input type="password" name="confirm_password" maxlength="20" size="20" /></td>
</tr>
<?php endif; ?>
<tr>
<td class="label">名稱:</td>
<td><input type="text" id="name" name="name" maxlength="60" size="40" value="<?php echo $this->_var['user']['name']; ?>" /><?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td class="label">電話:</td>
<td><input type="text" id="tel" name="tel" size="40" value="<?php echo $this->_var['user']['tel']; ?>" /></td>
</tr>
<tr>
<td class="label">Email:</td>
<td><input type="text" id="email" name="email" size="40" value="<?php echo $this->_var['user']['email']; ?>" /></td>
</tr>
<tr>
<td class="label">地址:</td>
<td><input type="text" id="address" name="address" size="40" value="<?php echo $this->_var['user']['address']; ?>" /></td>
</tr>
<?php if ($this->_var['form_action'] == "update"): ?>
<tr>
<td class="label">狀態:</td>
<td>
<select name="status">
<option value="0" <?php if ($this->_var['user']['status'] == 0): ?> selected="selected"<?php endif; ?>>上架</option>
<option value="1" <?php if ($this->_var['user']['status'] == 1): ?> selected="selected"<?php endif; ?>>下架</option>
</select>
</td>
</tr>
<tr>
<td class="label"><?php echo $this->_var['lang']['note']; ?>:</td>
<td>
<textarea name="note" cols="50" rows="5"><?php echo $this->_var['user']['note']; ?></textarea>
</td>
</tr>
<?php endif; ?>
<?php if ($this->_var['user']['parent_id']): ?>
<tr>
<td class="label"><?php echo $this->_var['lang']['parent_user']; ?>:</td>
<td><a href="users.php?act=edit&id=<?php echo $this->_var['user']['parent_id']; ?>"><?php echo $this->_var['user']['parent_id']; ?></a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="users.php?act=remove_parent&id=<?php echo $this->_var['user']['user_id']; ?>"><?php echo $this->_var['lang']['parent_remove']; ?></a></td>
</tr>
<?php endif; ?>
<?php if ($this->_var['affiliate']['on'] == 1 && $this->_var['affdb']): ?>
<tr>
<td class="label"><?php echo $this->_var['lang']['affiliate_user']; ?>:</td>
<td>[<a href="users.php?act=aff_list&auid=<?php echo $this->_var['user']['user_id']; ?>"><?php echo $this->_var['lang']['show_affiliate_users']; ?></a>][<a href="affiliate_ck.php?act=list&auid=<?php echo $this->_var['user']['user_id']; ?>"><?php echo $this->_var['lang']['show_affiliate_orders']; ?></a>]</td>
</tr>
<tr>
<td></td>
<td>
<table border="0" cellspacing="1" style="background: #dddddd; width:30%;">
<tr>
<td bgcolor="#ffffff"><?php echo $this->_var['lang']['affiliate_lever']; ?></td>
<?php $_from = $this->_var['affdb']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('level', 'val0');if (count($_from)):
foreach ($_from AS $this->_var['level'] => $this->_var['val0']):
?>
<td bgcolor="#ffffff"><?php echo $this->_var['level']; ?></td>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</tr>
<tr>
<td bgcolor="#ffffff"><?php echo $this->_var['lang']['affiliate_num']; ?></td>
<?php $_from = $this->_var['affdb']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'val');if (count($_from)):
foreach ($_from AS $this->_var['val']):
?>
<td bgcolor="#ffffff"><?php echo $this->_var['val']['num']; ?></td>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</tr>
</table>
</td>
</tr>
<?php endif; ?>
<tr>
<td colspan="2" align="center">
<input type="submit" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="button" />
<input type="reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" class="button" />
<input type="hidden" name="oldstatus" value="<?php echo $this->_var['user']['status']; ?>" />
<input type="hidden" name="act" value="<?php echo $this->_var['form_action']; ?>" />
<input type="hidden" name="id" value="<?php echo $this->_var['user']['user_id']; ?>" /> </td>
</tr>
</table>
</form>
</div>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,validator.js')); ?>
<script language="JavaScript">
<!--
if (document.forms['theForm'].elements['act'].value == "insert")
{
document.forms['theForm'].elements['username'].focus();
}
else
{
document.forms['theForm'].elements['email'].focus();
}
//onload = function()
/{
// 开始检查订单
// startCheckOrder();
//}
/**
* 检查表单输入的数据
*/
function validate()
{
validator = new Validator("theForm");
validator.isMobile("mobile_phone", invalid_mobile_phone, true);
if (document.forms['theForm'].elements['act'].value == "insert")
{
validator.required("username", no_username);
validator.required("password", no_password);
validator.required("confirm_password", no_confirm_password);
// validator.required("mobile_phone", no_mobile_phone);
validator.eqaul("password", "confirm_password", password_not_same);
var password_value = document.forms['theForm'].elements['password'].value;
if (password_value.length < 6)
{
validator.addErrorMsg(less_password);
}
if (/ /.test(password_value) == true)
{
validator.addErrorMsg(passwd_balnk);
}
}
else if (document.forms['theForm'].elements['act'].value == "update")
{
var newpass = document.forms['theForm'].elements['password'];
var confirm_password = document.forms['theForm'].elements['confirm_password'];
if(newpass.value.length > 0 || confirm_password.value.length)
{
if(newpass.value.length >= 6 || confirm_password.value.length >= 6)
{
validator.eqaul("password", "confirm_password", password_not_same);
}
else
{
validator.addErrorMsg(password_len_err);
}
}
}
return validator.passed();
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,158 +0,0 @@
<?php if ($this->_var['full_page']): ?>
<!-- $Id: users_list.htm 17053 2010-03-15 06:50:26Z sxc_shop $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>
<div class="form-div">
<form action="javascript:searchUser()" name="searchForm">
<img src="images/icon_search.gif" width="26" height="22" border="0" alt="SEARCH" />
&nbsp;狀態 <select name="status">
<option value="-1"><?php echo $this->_var['lang']['select_all']; ?></option>
<option value="0">上架</option>
<option value="1">下架</option>
</select>
&nbsp;<?php echo $this->_var['lang']['label_user_name']; ?> &nbsp;<input type="text" name="keyword" placeholder="會員帳號/名稱/電話"/>
<input type="submit" value="<?php echo $this->_var['lang']['button_search']; ?>" />
</form>
</div>
<form method="POST" action="" name="listForm" onsubmit="return confirm_bath()">
<!-- start users list -->
<div class="list-div" id="listDiv">
<?php endif; ?>
<!--用户列表部分-->
<table cellpadding="3" cellspacing="1">
<tr>
<th>
<!-- <input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox"> -->
<a href="javascript:listTable.sort('user_id'); "><?php echo $this->_var['lang']['record_id']; ?></a><?php echo $this->_var['sort_user_id']; ?>
</th>
<th><a href="javascript:listTable.sort('user_name'); "><?php echo $this->_var['lang']['username']; ?></a><?php echo $this->_var['sort_user_name']; ?></th>
<th>名稱</th>
<th>電話</th>
<th>Email</th>
<!-- <th>地址</th>-->
<th><a href="javascript:listTable.sort('reg_time'); ">建立日期</a><?php echo $this->_var['sort_reg_time']; ?></th>
<th><a href="javascript:listTable.sort('last_time'); ">更新日期</a><?php echo $this->_var['sort_last_time']; ?></th>
<th>是否上架</th>
<th><?php echo $this->_var['lang']['handler']; ?></th>
<tr>
<?php $_from = $this->_var['user_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'user');if (count($_from)):
foreach ($_from AS $this->_var['user']):
?>
<tr>
<td>
<!--<input type="checkbox" name="checkboxes[]" value="<?php echo $this->_var['user']['user_id']; ?>" notice="<?php if ($this->_var['user']['user_money'] != 0): ?>1<?php else: ?>0<?php endif; ?>"/>-->
<?php echo $this->_var['user']['user_id']; ?></td>
<td class="first-cell">
<span style="margin-bottom: 2px; line-height: 14px; display: block;"><?php echo htmlspecialchars($this->_var['user']['user_name']); ?></span>
<!-- <?php if ($this->_var['user']['rank_name'] != null): ?> -->
<!-- <?php if ($this->_var['user']['is_special'] == 0): ?> -->
<span style="border: 1px #6DD26A solid; background-color: #6DD26A; padding: 1px 2px 0px 2px; color: white; display: inline; border-radius: 2px;"> <?php echo $this->_var['user']['rank_name']; ?> </span>
<!-- <?php else: ?> -->
<span style="border: 1px #FBB24E solid; background-color: #FBB24E; padding: 1px 2px 0px 2px; color: white; display: inline; border-radius: 2px;"> <?php echo $this->_var['user']['name']; ?> </span>
<!-- <?php endif; ?> -->
<!-- <?php endif; ?> -->
<!-- <?php if ($this->_var['user']['enable'] == 1): ?> -->
&nbsp;&nbsp;<span style="border: 1px #d6bd07 solid; background-color: #d6bd07; padding: 1px 2px 0px 2px; color: white; display: inline; border-radius: 2px;"> <?php echo $this->_var['lang']['enable_value_1']; ?> </span>
<!-- <?php elseif ($this->_var['user']['enable'] == 2): ?> -->
&nbsp;&nbsp;<span style="border: 1px #fd6017 solid; background-color: #fd6017; padding: 1px 2px 0px 2px; color: white; display: inline; border-radius: 2px;"> <?php echo $this->_var['lang']['enable_value_2']; ?> </span>
<!-- <?php elseif ($this->_var['user']['enable'] == 3): ?> -->
&nbsp;&nbsp;<span style="border: 1px #b53c04 solid; background-color: #b53c04; padding: 1px 2px 0px 2px; color: white; display: inline; border-radius: 2px;"> <?php echo $this->_var['lang']['enable_value_3']; ?> </span>
<!-- <?php endif; ?> -->
</td>
<td><?php echo $this->_var['user']['name']; ?></td>
<td><?php echo $this->_var['user']['tel']; ?></td>
<td><?php echo $this->_var['user']['email']; ?></td>
<!-- <td><?php echo $this->_var['user']['address']; ?></td>-->
<td align="center"><?php echo $this->_var['user']['reg_time']; ?></td>
<td align="center"><?php echo $this->_var['user']['last_time']; ?></td>
<td align="center">
<img src="images/<?php if ($this->_var['user']['status'] == '0'): ?>yes<?php else: ?>no<?php endif; ?>.gif" onclick="listTable.toggle(this, 'toggle_status', <?php echo $this->_var['user']['id']; ?>)" />
</td>
<td align="center">
<?php if ($this->_var['user']['web']): ?>
<a href="http://<?php echo $this->_var['user']['web']; ?>" target="_blank" title="網站前台">
網站前台
</a>
<?php endif; ?>
<a href="users.php?act=user_ad&id=<?php echo $this->_var['user']['user_id']; ?>" title="<?php echo $this->_var['lang']['view']; ?>">
廣告
</a>
<a href="../back/privilege.php?act=rsignin&uid=<?php echo $this->_var['user']['user_id']; ?>" target="_blank" title="網站後台">
網站後台
</a>
<a href="users.php?act=edit&id=<?php echo $this->_var['user']['user_id']; ?>" title="<?php echo $this->_var['lang']['edit']; ?>">
編輯
</a>
<a href="javascript:confirm_redirect('<?php if ($this->_var['user']['user_money'] != 0): ?><?php echo $this->_var['lang']['still_accounts']; ?><?php endif; ?><?php echo $this->_var['lang']['remove_confirm']; ?>', 'users.php?act=remove&id=<?php echo $this->_var['user']['user_id']; ?>')" title="<?php echo $this->_var['lang']['remove']; ?>">
刪除
</a>
</td>
</tr>
<?php endforeach; else: ?>
<tr><td class="no-records" colspan="14"><?php echo $this->_var['lang']['no_records']; ?></td></tr>
<?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
<tr>
<td align="right" nowrap="true" colspan="15">
<?php echo $this->fetch('page.htm'); ?>
</td>
</tr>
</table>
<?php if ($this->_var['full_page']): ?>
</div>
<!-- end users list -->
</form>
<script type="text/javascript" language="JavaScript">
<!--
listTable.recordCount = <?php echo $this->_var['record_count']; ?>;
listTable.pageCount = <?php echo $this->_var['page_count']; ?>;
<?php $_from = $this->_var['filter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
listTable.filter.<?php echo $this->_var['key']; ?> = '<?php echo $this->_var['item']; ?>';
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
onload = function()
{
document.forms['searchForm'].elements['keyword'].focus();
// 开始检查订单
}
/**
* 搜索用户
*/
function searchUser()
{
listTable.filter['keywords'] = Utils.trim(document.forms['searchForm'].elements['keyword'].value);
listTable.filter['status'] = document.forms['searchForm'].elements['status'].value;;
listTable.filter['page'] = 1;
listTable.loadList();
}
function confirm_bath()
{
userItems = document.getElementsByName('checkboxes[]');
cfm = '<?php echo $this->_var['lang']['list_remove_confirm']; ?>';
for (i=0; userItems[i]; i++)
{
if (userItems[i].checked && userItems[i].notice == 1)
{
cfm = '<?php echo $this->_var['lang']['list_still_accounts']; ?>' + '<?php echo $this->_var['lang']['list_remove_confirm']; ?>';
break;
}
}
return confirm(cfm);
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>

View File

@ -1,145 +0,0 @@
<!-- $Id: privilege_info.htm 16616 2009-08-27 01:56:35Z liuhui $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<div class="main-div">
<form name="theForm" method="post" enctype="multipart/form-data" onsubmit="return validate();">
<table id="form-table" class="table table-bordered table-hover">
<tr>
<td><?php echo $this->_var['lang']['user_name']; ?></td>
<td><?php echo htmlspecialchars($this->_var['user_name']); ?></td>
</tr>
<tr>
<td><?php echo $this->_var['lang']['new_password']; ?></td>
<td>
<input type="password" name="new_password" maxlength="32" size="34" /><?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td><?php echo $this->_var['lang']['pwd_confirm']; ?></td>
<td>
<input type="password" name="pwd_confirm" value="" size="34" /><?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="button" />&nbsp;&nbsp;&nbsp;
<input type="reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" class="button" />
<input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
<input type="hidden" name="token" value="<?php echo $this->_var['token']; ?>" />
<input type="hidden" name="id" value="<?php echo $this->_var['agent_id']; ?>" /></td>
</tr>
</table>
</form>
</div>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,validator.js')); ?>
<script language="JavaScript">
var action = "<?php echo $this->_var['action']; ?>";
<!--
document.forms['theForm'].elements['user_name'].focus();
onload = function()
{
}
/**
* 切换增加按钮的状态
*/
function toggleAddButton()
{
var sel = document.getElementById("all_menu_list");
document.getElementById("btnAdd").disabled = (sel.selectedIndex > -1) ? false : true;
}
/**
* 切换移出,上移,下移按钮状态
*/
function toggleButtonSatus()
{
var sel = document.getElementById("menus_navlist");
document.getElementById("btnRemove").disabled = (sel.selectedIndex > -1) ? false : true;
document.getElementById("btnMoveUp").disabled = (sel.selectedIndex > -1) ? false : true;
document.getElementById("btnMoveDown").disabled = (sel.selectedIndex > -1) ? false : true;
}
/**
* 移动选定的列表项
*/
function moveOptions(direction)
{
var sel = document.getElementById('menus_navlist');
if (sel.selectedIndex == -1)
{
return;
}
len = sel.length
for (i = 0; i < len; i++)
{
if (sel.options[i].selected)
{
if (i == 0 && direction == 'up')
{
return;
}
newOpt = sel.options[i].cloneNode(true);
sel.removeChild(sel.options[i]);
tarOpt = (direction == "up") ? sel.options[i-1] : sel.options[i+1]
sel.insertBefore(newOpt, tarOpt);
newOpt.selected = true;
break;
}
}
}
/**
* 检查表单输入的数据
*/
function validate()
{
get_navlist();
validator = new Validator("theForm");
validator.password = function (controlId, msg)
{
var obj = document.forms[this.formName].elements[controlId];
obj.value = Utils.trim(obj.value);
if (!(obj.value.length >= 6 && /\d+/.test(obj.value) && /[a-zA-Z]+/.test(obj.value)))
{
this.addErrorMsg(msg);
}
}
if (action == "add")
{
if (document.forms['theForm'].elements['password'])
{
validator.password("password", password_invaild);
validator.eqaul("password", "pwd_confirm", password_error);
}
}
if (action == "edit" || action == "modif")
{
if (document.forms['theForm'].elements['old_password'].value.length > 0)
{
validator.password("new_password", password_invaild);
validator.eqaul("new_password", "pwd_confirm", password_error);
}
}
return validator.passed();
}
function get_navlist()
{
if (!document.getElementById('nav_list[]'))
{
return;
}
document.getElementById('nav_list[]').value = joinItem(document.getElementById('menus_navlist'));
//alert(document.getElementById('nav_list[]').value);
}
//-->
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,829 +0,0 @@
<!-- $Id: goods_info.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,selectzone.js,colorselector.js')); ?>
<script type="text/javascript" src="../js/calendar.php?lang=<?php echo $this->_var['cfg_lang']; ?>"></script>
<script charset="utf-8" src="../includes/kindeditor/kindeditor.js?v=2020082702"></script>
<script charset="utf-8" src="../includes/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
var editor;
KindEditor.ready(function(K) {
editor = K.create('#editor_id');
editor2 = K.create('#editor_id2');
});
</script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<?php if ($this->_var['warning']): ?>
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
<li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" ><?php echo $this->_var['warning']; ?></li>
</ul>
<?php endif; ?>
<!-- start goods form -->
<div class="tab-div">
<!-- tab bar -->
<div id="tabbar-div">
<p>
<span class="tab-front" id="web-tab">網頁內容</span>
<span class="tab-back" id="general-tab">一般信息</span>
<span class="tab-back" id="detail-tab">關於我們</span>
<span class="tab-back" id="location-tab">交通位置</span>
<span class="tab-back" id="fac-tab">服務類別</span>
<span class="tab-back" id="gallery-tab">工程案例</span>
</p>
</div>
<!-- tab body -->
<div id="tabbody-div">
<form enctype="multipart/form-data" action="" method="post" name="theForm" >
<input type="hidden" name="MAX_FILE_SIZE" value="2097152" />
<table width="90%" id="general-table" style="display:none" align="center">
<tr>
<td>DESC</td>
<td><input type="text" name="mdesc" value="<?php echo $this->_var['hs']['mdesc']; ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>KEYWORD</td>
<td><textarea name="mkeyword" style="width:80%;height:300px;"><?php echo htmlspecialchars($this->_var['hs']['mkeyword']); ?></textarea>
</td>
</tr>
</table>
<table width="90%" id="web-table" align="center" class="goods_info">
<tr>
<td>網址</td>
<td><input type="text" name="domain" value="<?php echo htmlspecialchars($this->_var['hs']['domain']); ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>中文名稱</td>
<td><input type="text" name="cname" value="<?php echo htmlspecialchars($this->_var['hs']['cname']); ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>英文名稱</td>
<td><input type="text" name="ename" value="<?php echo htmlspecialchars($this->_var['hs']['ename']); ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>電話</td>
<td><input type="text" name="tel" value="<?php echo $this->_var['hs']['tel']; ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>email</td>
<td><input type="text" name="email" value="<?php echo $this->_var['hs']['email']; ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>住址</td>
<td><input type="text" name="address" value="<?php echo $this->_var['hs']['address']; ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>Facebook</td>
<td><input type="text" name="facebook" value="<?php echo $this->_var['hs']['facebook']; ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>BANNER文字</td>
<td><input type="text" name="banner_text" value="<?php echo $this->_var['hs']['banner_text']; ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>標語</td>
<td><input type="text" name="slogon" value="<?php echo $this->_var['hs']['slogon']; ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>Google地圖</td>
<td><input type="text" name="vrmap" value="<?php echo $this->_var['hs']['vrmap']; ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>Youtube</td>
<td><input type="text" name="index_ytb" value="<?php echo $this->_var['hs']['index_ytb']; ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>上傳大LOGO圖</td>
<td>
<input type="file" name="logo" size="35" />
<?php if ($this->_var['hs']['logo']): ?>
<a href="homestay.php?act=show_image&img_url=<?php echo $this->_var['hs']['logo']; ?>" target="_blank"><img src="images/yes.gif" border="0" /></a>
<?php else: ?>
<img src="images/no.gif" />
<?php endif; ?>
</td>
</tr>
<tr>
<td>上傳小LOGO圖</td>
<td>
<input type="file" name="slogo" size="35" />
<?php if ($this->_var['hs']['slogo']): ?>
<a href="homestay.php?act=show_image&img_url=<?php echo $this->_var['hs']['slogo']; ?>" target="_blank"><img src="images/yes.gif" border="0" /></a>
<?php else: ?>
<img src="images/no.gif" />
<?php endif; ?>
</td>
</tr>
<tr>
<td>上傳Banner圖</td>
<td>
<input type="file" name="index_banner" size="35" />
<?php if ($this->_var['hs']['index_banner']): ?>
<a href="homestay.php?act=show_image&img_url=<?php echo $this->_var['hs']['index_banner']; ?>" target="_blank"><img src="images/yes.gif" border="0" /></a>
<?php else: ?>
<img src="images/no.gif" />
<?php endif; ?>
</td>
</tr>
<tr>
<td>上傳AboutUs圖</td>
<td>
<input type="file" name="about_image" size="35" />
<?php if ($this->_var['hs']['about_image']): ?>
<a href="homestay.php?act=show_image&img_url=<?php echo $this->_var['hs']['about_image']; ?>" target="_blank"><img src="images/yes.gif" border="0" /></a>
<?php else: ?>
<img src="images/no.gif" />
<?php endif; ?>
</td>
</tr>
<tr>
<td>上傳內頁Banner圖</td>
<td>
<input type="file" name="inbanner" size="35" />
<?php if ($this->_var['hs']['inbanner']): ?>
<a href="homestay.php?act=show_image&img_url=<?php echo $this->_var['hs']['inbanner']; ?>" target="_blank"><img src="images/yes.gif" border="0" /></a>
<?php else: ?>
<img src="images/no.gif" />
<?php endif; ?>
</td>
</tr>
</table>
<table width="90%" id="detail-table" style="display:none">
<tr>
<td><textarea id="editor_id" name="aboutus" style="width:100%;height:300px;"><?php echo $this->_var['hs']['aboutus']; ?></textarea></td>
</tr>
</table>
<table width="90%" id="location-table" style="display:none">
<tr>
<td>Google地圖</td>
<td><input type="text" name="location_map" value="<?php echo $this->_var['hs']['location_map']; ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td colspan=2>
&nbsp;
</td>
</tr>
<tr>
<td colspan=2><textarea id="editor_id2" name="location_desc" style="width:100%;height:300px;"><?php echo $this->_var['hs']['location_desc']; ?></textarea></td>
</tr>
</table>
<table width="90%" id="fac-table" style="display:none">
<tr>
<td>
<?php $_from = $this->_var['fac_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('i', 'fac');$this->_foreach['fac'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['fac']['total'] > 0):
foreach ($_from AS $this->_var['i'] => $this->_var['fac']):
$this->_foreach['fac']['iteration']++;
?>
<input type="checkbox" name="fac[]" value="<?php echo $this->_var['fac']['id']; ?>" <?php if ($this->_var['fac']['selected']): ?>checked<?php endif; ?>>&nbsp;&nbsp;<?php echo $this->_var['fac']['name']; ?>
<?php if ($this->_foreach['fac']['iteration'] % 10 == 0): ?>
<br/>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</td>
</tr>
</table>
<table width="90%" id="gallery-table" style="display:none" align="center">
<tr>
<td>
<?php $_from = $this->_var['img_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('i', 'img');if (count($_from)):
foreach ($_from AS $this->_var['i'] => $this->_var['img']):
?>
<div id="gallery_<?php echo $this->_var['img']['img_id']; ?>" style="float:left; text-align:center; border: 1px solid #DADADA; margin: 4px; padding:2px;">
<a href="javascript:;" onclick="if (confirm('確定刪除?')) dropImg('<?php echo $this->_var['img']['img_id']; ?>')">[-]</a><br />
<a href="homestay.php?act=show_image&img_url=<?php echo $this->_var['img']['img_url']; ?>" target="_blank">
<img src="../<?php if ($this->_var['img']['img_url']): ?><?php echo $this->_var['img']['img_url']; ?><?php else: ?><?php echo $this->_var['img']['img_url']; ?><?php endif; ?>" <?php if ($this->_var['thumb_width'] != 0): ?>width="<?php echo $this->_var['thumb_width']; ?>"<?php endif; ?> <?php if ($this->_var['thumb_height'] != 0): ?>height="<?php echo $this->_var['thumb_height']; ?>"<?php endif; ?> border="0" />
</a><br />
<input type="text" value="<?php echo htmlspecialchars($this->_var['img']['img_desc']); ?>" size="15" name="old_img_desc[<?php echo $this->_var['img']['img_id']; ?>]" />
</div>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>
<a href="javascript:;" onclick="addImg(this)">[+]</a>圖片描述 <input type="text" name="img_desc[]" size="20" />上傳文件 <input type="file" name="img_url[]" />
</td>
</tr>
</table>
<div class="button-div">
<input type="hidden" name="id" value="<?php echo $this->_var['hs']['id']; ?>" />
<input type="button" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="button" onclick="validate('<?php echo $this->_var['hs']['id']; ?>')" />
<input type="reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" class="button" />
</div>
<input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
</form>
</div>
</div>
<!-- end goods form -->
<?php echo $this->smarty_insert_scripts(array('files'=>'validator.js,tab.js')); ?>
<script language="JavaScript">
var goodsId = '<?php echo $this->_var['goods']['goods_id']; ?>';
var elements = document.forms['theForm'].elements;
var sz1 = new SelectZone(1, elements['source_select1'], elements['target_select1']);
var sz2 = new SelectZone(2, elements['source_select2'], elements['target_select2'], elements['price2']);
var sz3 = new SelectZone(1, elements['source_select3'], elements['target_select3']);
var marketPriceRate = <?php echo empty($this->_var['cfg']['market_price_rate']) ? '1' : $this->_var['cfg']['market_price_rate']; ?>;
var integralPercent = <?php echo empty($this->_var['cfg']['integral_percent']) ? '0' : $this->_var['cfg']['integral_percent']; ?>;
onload = function()
{
// handlePromote(document.forms['theForm'].elements['is_promote'].checked);
if (document.forms['theForm'].elements['auto_thumb'])
{
handleAutoThumb(document.forms['theForm'].elements['auto_thumb'].checked);
}
// 妫€鏌ユ柊璁㈠崟
startCheckOrder();
<?php $_from = $this->_var['user_rank_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
foreach ($_from AS $this->_var['item']):
?>
set_price_note(<?php echo $this->_var['item']['rank_id']; ?>);
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
document.forms['theForm'].reset();
}
function validate(hs_id)
{
var validator = new Validator('theForm');
editor.sync();
editor2.sync();
validator.required('domain', '網址不能為空');
validator.required('cname', '名稱不能為空');
if(validator.passed())
{
document.forms['theForm'].submit();
}
}
/**
* 鍒囨崲鍟嗗搧绫诲瀷
*/
function getAttrList(goodsId)
{
var selGoodsType = document.forms['theForm'].elements['goods_type'];
if (selGoodsType != undefined)
{
var goodsType = selGoodsType.options[selGoodsType.selectedIndex].value;
Ajax.call('homestay.php?is_ajax=1&act=get_attr', 'goods_id=' + goodsId + "&goods_type=" + goodsType, setAttrList, "GET", "JSON");
}
}
function setAttrList(result, text_result)
{
document.getElementById('tbody-goodsAttr').innerHTML = result.content;
}
/**
* 鎸夋瘮渚嬭?绠椾环鏍
* @param string inputName 杈撳叆妗嗗悕绉
* @param float rate 姣斾緥
* @param string priceName 浠锋牸杈撳叆妗嗗悕绉帮紙濡傛灉娌℃湁锛屽彇shop_price锛
*/
function computePrice(inputName, rate, priceName)
{
var shopPrice = priceName == undefined ? document.forms['theForm'].elements['shop_price'].value : document.forms['theForm'].elements[priceName].value;
shopPrice = Utils.trim(shopPrice) != '' ? parseFloat(shopPrice)* rate : 0;
if(inputName == 'integral')
{
shopPrice = parseInt(shopPrice);
}
shopPrice += "";
n = shopPrice.lastIndexOf(".");
if (n > -1)
{
shopPrice = shopPrice.substr(0, n + 3);
}
if (document.forms['theForm'].elements[inputName] != undefined)
{
document.forms['theForm'].elements[inputName].value = shopPrice;
}
else
{
document.getElementById(inputName).value = shopPrice;
}
}
/**
* 璁剧疆浼氬憳浠锋牸娉ㄩ噴
*/
function set_price_note(rank_id)
{
var shop_price = parseFloat(document.forms['theForm'].elements['shop_price'].value);
var rank = new Array();
<?php $_from = $this->_var['user_rank_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
foreach ($_from AS $this->_var['item']):
?>
rank[<?php echo $this->_var['item']['rank_id']; ?>] = <?php echo empty($this->_var['item']['discount']) ? '100' : $this->_var['item']['discount']; ?>;
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
if (shop_price >0 && rank[rank_id] && document.getElementById('rank_' + rank_id) && parseInt(document.getElementById('rank_' + rank_id).value) == -1)
{
var price = parseInt(shop_price * rank[rank_id] + 0.5) / 100;
if (document.getElementById('nrank_' + rank_id))
{
document.getElementById('nrank_' + rank_id).innerHTML = '(' + price + ')';
}
}
else
{
if (document.getElementById('nrank_' + rank_id))
{
document.getElementById('nrank_' + rank_id).innerHTML = '';
}
}
}
/**
* 鏂板?涓€涓??
*/
function addSpec(obj)
{
var src = obj.parentNode.parentNode;
var idx = rowindex(src);
var tbl = document.getElementById('attrTable');
var row = tbl.insertRow(idx + 1);
var cell1 = row.insertCell(-1);
var cell2 = row.insertCell(-1);
var regx = /<a([^>]+)<\/a>/i;
cell1.className = 'label';
cell1.innerHTML = src.childNodes[0].innerHTML.replace(/(.*)(addSpec)(.*)(\[)(\+)/i, "$1removeSpec$3$4-");
cell2.innerHTML = src.childNodes[1].innerHTML.replace(/readOnly([^\s|>]*)/i, '');
}
/**
* 鍒犻櫎瑙勬牸鍊
*/
function removeSpec(obj)
{
var row = rowindex(obj.parentNode.parentNode);
var tbl = document.getElementById('attrTable');
tbl.deleteRow(row);
}
/**
* 澶勭悊瑙勬牸
*/
function handleSpec()
{
var elementCount = document.forms['theForm'].elements.length;
for (var i = 0; i < elementCount; i++)
{
var element = document.forms['theForm'].elements[i];
if (element.id.substr(0, 5) == 'spec_')
{
var optCount = element.options.length;
var value = new Array(optCount);
for (var j = 0; j < optCount; j++)
{
value[j] = element.options[j].value;
}
var hiddenSpec = document.getElementById('hidden_' + element.id);
hiddenSpec.value = value.join(String.fromCharCode(13)); // 鐢ㄥ洖杞﹂敭闅斿紑姣忎釜瑙勬牸
}
}
return true;
}
function handlePromote(checked)
{
document.forms['theForm'].elements['promote_price'].disabled = !checked;
document.forms['theForm'].elements['selbtn1'].disabled = !checked;
document.forms['theForm'].elements['selbtn2'].disabled = !checked;
}
function handleAutoThumb(checked)
{
document.forms['theForm'].elements['goods_thumb'].disabled = checked;
document.forms['theForm'].elements['goods_thumb_url'].disabled = checked;
}
/**
* ?€熸坊鍔犲搧鐗
*/
function rapidBrandAdd(conObj)
{
var brand_div = document.getElementById("brand_add");
if(brand_div.style.display != '')
{
var brand =document.forms['theForm'].elements['addedBrandName'];
brand.value = '';
brand_div.style.display = '';
}
}
function hideBrandDiv()
{
var brand_add_div = document.getElementById("brand_add");
if(brand_add_div.style.display != 'none')
{
brand_add_div.style.display = 'none';
}
}
function goBrandPage()
{
if(confirm(go_brand_page))
{
window.location.href='brand.php?act=add';
}
else
{
return;
}
}
function rapidCatAdd()
{
var cat_div = document.getElementById("category_add");
if(cat_div.style.display != '')
{
var cat =document.forms['theForm'].elements['addedCategoryName'];
cat.value = '';
cat_div.style.display = '';
}
}
function addBrand()
{
var brand = document.forms['theForm'].elements['addedBrandName'];
if(brand.value.replace(/^\s+|\s+$/g, '') == '')
{
alert(brand_cat_not_null);
return;
}
var params = 'brand=' + brand.value;
Ajax.call('brand.php?is_ajax=1&act=add_brand', params, addBrandResponse, 'GET', 'JSON');
}
function addBrandResponse(result)
{
if (result.error == '1' && result.message != '')
{
alert(result.message);
return;
}
var brand_div = document.getElementById("brand_add");
brand_div.style.display = 'none';
var response = result.content;
var selCat = document.forms['theForm'].elements['brand_id'];
var opt = document.createElement("OPTION");
opt.value = response.id;
opt.selected = true;
opt.text = response.brand;
if (Browser.isIE)
{
selCat.add(opt);
}
else
{
selCat.appendChild(opt);
}
return;
}
function addCategory()
{
var parent_id = document.forms['theForm'].elements['cat_id'];
var cat = document.forms['theForm'].elements['addedCategoryName'];
if(cat.value.replace(/^\s+|\s+$/g, '') == '')
{
alert(category_cat_not_null);
return;
}
var params = 'parent_id=' + parent_id.value;
params += '&cat=' + cat.value;
Ajax.call('category.php?is_ajax=1&act=add_category', params, addCatResponse, 'GET', 'JSON');
}
function hideCatDiv()
{
var category_add_div = document.getElementById("category_add");
if(category_add_div.style.display != null)
{
category_add_div.style.display = 'none';
}
}
function addCatResponse(result)
{
if (result.error == '1' && result.message != '')
{
alert(result.message);
return;
}
var category_add_div = document.getElementById("category_add");
category_add_div.style.display = 'none';
var response = result.content;
var selCat = document.forms['theForm'].elements['cat_id'];
var opt = document.createElement("OPTION");
opt.value = response.id;
opt.selected = true;
opt.innerHTML = response.cat;
//鑾峰彇瀛愬垎绫荤殑绌烘牸鏁
var str = selCat.options[selCat.selectedIndex].text;
var temp = str.replace(/^\s+/g, '');
var lengOfSpace = str.length - temp.length;
if(response.parent_id != 0)
{
lengOfSpace += 4;
}
for (i = 0; i < lengOfSpace; i++)
{
opt.innerHTML = '&nbsp;' + opt.innerHTML;
}
for (i = 0; i < selCat.length; i++)
{
if(selCat.options[i].value == response.parent_id)
{
if(i == selCat.length)
{
if (Browser.isIE)
{
selCat.add(opt);
}
else
{
selCat.appendChild(opt);
}
}
else
{
selCat.insertBefore(opt, selCat.options[i + 1]);
}
//opt.selected = true;
break;
}
}
return;
}
function goCatPage()
{
if(confirm(go_category_page))
{
window.location.href='category.php?act=add';
}
else
{
return;
}
}
/**
* 鍒犻櫎蹇?€熷垎绫
*/
function removeCat()
{
if(!document.forms['theForm'].elements['parent_cat'] || !document.forms['theForm'].elements['new_cat_name'])
{
return;
}
var cat_select = document.forms['theForm'].elements['parent_cat'];
var cat = document.forms['theForm'].elements['new_cat_name'];
cat.parentNode.removeChild(cat);
cat_select.parentNode.removeChild(cat_select);
}
/**
* 鍒犻櫎蹇?€熷搧鐗
*/
function removeBrand()
{
if (!document.forms['theForm'].elements['new_brand_name'])
{
return;
}
var brand = document.theForm.new_brand_name;
brand.parentNode.removeChild(brand);
}
/**
* 娣诲姞鎵╁睍鍒嗙被
*/
function addOtherCat(conObj)
{
var sel = document.createElement("SELECT");
var selCat = document.forms['theForm'].elements['cat_id'];
for (i = 0; i < selCat.length; i++)
{
var opt = document.createElement("OPTION");
opt.text = selCat.options[i].text;
opt.value = selCat.options[i].value;
if (Browser.isIE)
{
sel.add(opt);
}
else
{
sel.appendChild(opt);
}
}
conObj.appendChild(sel);
sel.name = "other_cat[]";
sel.onChange = function() {checkIsLeaf(this);};
}
/* 鍏宠仈鍟嗗搧鍑芥暟 */
function searchGoods(szObject, catId, brandId, keyword)
{
var filters = new Object;
filters.keyword = Utils.trim(elements[keyword].value);
filters.exclude = document.forms['theForm'].elements['goods_id'].value;
szObject.loadOptions('get_goods_list', filters);
}
/**
* 鍏宠仈鏂囩珷鍑芥暟
*/
function searchArticle()
{
var filters = new Object;
filters.title = Utils.trim(elements['article_title'].value);
sz3.loadOptions('get_article_list', filters);
}
/**
* 鏂板?涓€涓?浘鐗
*/
function addImg(obj)
{
var src = obj.parentNode.parentNode;
var idx = rowindex(src);
var tbl = document.getElementById('gallery-table');
var row = tbl.insertRow(idx + 1);
var cell = row.insertCell(-1);
cell.innerHTML = src.cells[0].innerHTML.replace(/(.*)(addImg)(.*)(\[)(\+)/i, "$1removeImg$3$4-");
}
/**
* 鍒犻櫎鍥剧墖涓婁紶
*/
function removeImg(obj)
{
var row = rowindex(obj.parentNode.parentNode);
var tbl = document.getElementById('gallery-table');
tbl.deleteRow(row);
}
function dropImg(imgId)
{
Ajax.call('homestay.php?is_ajax=1&act=drop_image', "img_id="+imgId, dropImgResponse, "GET", "JSON");
}
function dropImgResponse(result)
{
if (result.error == 0)
{
document.getElementById('gallery_' + result.content).style.display = 'none';
}
}
function integral_market_price()
{
document.forms['theForm'].elements['market_price'].value = parseInt(document.forms['theForm'].elements['market_price'].value);
}
function parseint_integral()
{
document.forms['theForm'].elements['integral'].value = parseInt(document.forms['theForm'].elements['integral'].value);
}
function addVolumePrice(obj)
{
var src = obj.parentNode.parentNode;
var tbl = document.getElementById('tbody-volume');
var validator = new Validator('theForm');
checkVolumeData("0",validator);
if (!validator.passed())
{
return false;
}
var row = tbl.insertRow(tbl.rows.length);
var cell = row.insertCell(-1);
cell.innerHTML = src.cells[0].innerHTML.replace(/(.*)(addVolumePrice)(.*)(\[)(\+)/i, "$1removeVolumePrice$3$4-");
var number_list = document.getElementsByName("volume_number[]");
var price_list = document.getElementsByName("volume_price[]");
number_list[number_list.length-1].value = "";
price_list[price_list.length-1].value = "";
}
/**
* 鍒犻櫎浼樻儬浠锋牸
*/
function removeVolumePrice(obj)
{
var row = rowindex(obj.parentNode.parentNode);
var tbl = document.getElementById('tbody-volume');
tbl.deleteRow(row);
}
/**
* 鏍¢獙浼樻儬鏁版嵁鏄?惁姝g‘
*/
function checkVolumeData(isSubmit,validator)
{
var volumeNum = document.getElementsByName("volume_number[]");
var volumePri = document.getElementsByName("volume_price[]");
var numErrNum = 0;
var priErrNum = 0;
for (i = 0 ; i < volumePri.length ; i ++)
{
if ((isSubmit != 1 || volumeNum.length > 1) && numErrNum <= 0 && volumeNum.item(i).value == "")
{
validator.addErrorMsg(volume_num_not_null);
numErrNum++;
}
if (numErrNum <= 0 && Utils.trim(volumeNum.item(i).value) != "" && ! Utils.isNumber(Utils.trim(volumeNum.item(i).value)))
{
validator.addErrorMsg(volume_num_not_number);
numErrNum++;
}
if ((isSubmit != 1 || volumePri.length > 1) && priErrNum <= 0 && volumePri.item(i).value == "")
{
validator.addErrorMsg(volume_price_not_null);
priErrNum++;
}
if (priErrNum <= 0 && Utils.trim(volumePri.item(i).value) != "" && ! Utils.isNumber(Utils.trim(volumePri.item(i).value)))
{
validator.addErrorMsg(volume_price_not_number);
priErrNum++;
}
}
}
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,162 +0,0 @@
<!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><?php echo $this->_var['lang']['cp_home']; ?><?php if ($this->_var['ur_here']): ?> - <?php echo $this->_var['ur_here']; ?><?php endif; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body,html {
height: 100%;
overflow: hidden;
}
</style>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,validator.js,../js/transport.js')); ?>
<script language="JavaScript">
<!--
// 这里把JS用到的所有语言都赋值到这里
<?php $_from = $this->_var['lang']['js_languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
if (window.parent != window) {
window.top.location.href = location.href;
}
//-->
</script>
</head>
<body style="height: 100%;padding: 0">
<form class="login-body" method="post" action="privilege.php" name='theForm' onsubmit="return validate()">
<div class="login-hd">
</div>
<div class="center-wrap" id="centerWrap">
<div class="login-center">
<div class="bd-logo">
<!-- <img src="images/logo.png" width="373" height="103" border="0" /> -->
後台系統
</div>
</div>
<div class="message"><?php echo $this->_var['login_err']; ?></div>
<div class="z-bd">
<div class="login-panel" id="loginPanel">
<h3 class="panel-hd cl-link-blue"><?php echo $this->_var['lang']['ecshop_login']; ?></h3>
<div class="controls first">
<svg class="iconphone" width="20px" height="20px" viewBox="0 0 20 20">
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<g id="2-copy-2" sketch:type="MSArtboardGroup" transform="translate(-505.000000, -357.000000)" fill="#666">
<path d="M517.388314,366.868305 C519.068314,366.001784 520.220053,364.252653 520.220053,362.231784 C520.220053,359.350479 517.883966,357.014392 515.002662,357.014392 C512.121357,357.014392 509.78527,359.350479 509.78527,362.231784 C509.78527,364.252653 510.936575,366.001784 512.616575,366.868305 C508.246575,367.938305 505.002662,371.879175 505.002662,376.57961 C505.002662,376.81961 505.197009,377.014392 505.437444,377.014392 C505.677444,377.014392 505.872227,376.81961 505.872227,376.57961 C505.872227,371.537001 509.960053,367.449175 515.002662,367.449175 C520.04527,367.449175 524.133096,371.537001 524.133096,376.57961 C524.133096,376.81961 524.327444,377.014392 524.567879,377.014392 C524.807879,377.014392 525.002662,376.81961 525.002662,376.57961 C525.002662,371.879175 521.758749,367.938305 517.388314,366.868305 L517.388314,366.868305 Z M510.654835,362.231784 C510.654835,359.830479 512.601357,357.883957 515.002662,357.883957 C517.403966,357.883957 519.350488,359.830479 519.350488,362.231784 C519.350488,364.632653 517.403966,366.57961 515.002662,366.57961 C512.601357,366.57961 510.654835,364.632653 510.654835,362.231784 L510.654835,362.231784 Z" id="id" sketch:type="MSShapeGroup"></path>
</g>
</g>
</svg>
<input type="text" name="username" placeholder="<?php echo $this->_var['lang']['label_dealer_username']; ?>" />
</div>
<div class="controls two">
<svg class="iconphone" width="20px" height="20px" viewBox="0 0 20 20">
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<g id="2-copy-2" sketch:type="MSArtboardGroup" transform="translate(-505.000000, -407.000000)" fill="#666">
<path d="M515,418.304324 C514.12782,418.304324 513.421091,418.888119 513.421091,419.608723 C513.421091,419.995004 513.624357,420.341947 513.947394,420.580774 L513.947394,421.782554 C513.947394,422.262857 514.418637,422.652187 515.00003,422.652187 C515.581302,422.652187 516.052667,422.262857 516.052667,421.782554 L516.052667,420.580774 C516.375703,420.341947 516.579,419.995004 516.579,419.608723 C516.57897,418.888119 515.87221,418.304324 515,418.304324 L515,418.304324 L515,418.304324 Z M522.368454,414.391327 L521.315788,414.391327 L521.315788,412.217421 C521.315788,409.335657 518.488418,407 515,407 C511.511582,407 508.684212,409.335657 508.684212,412.217421 L508.684212,414.391327 L507.631576,414.391327 C506.178003,414.391327 505,415.364503 505,416.565234 L505,424.826193 C505,426.026824 506.178003,427 507.631576,427 L522.368424,427 C523.821422,427 525,426.026899 525,424.826193 L525,416.565234 C525.00003,415.364478 523.821422,414.391327 522.368454,414.391327 L522.368454,414.391327 L522.368454,414.391327 Z M515,407.869583 C517.906571,407.869583 520.263152,409.816309 520.263152,412.217396 L520.263152,414.391302 L509.737544,414.391302 L509.737544,412.217396 L509.736848,412.217396 C509.736848,409.816309 512.093459,407.869583 515,407.869583 L515,407.869583 L515,407.869583 Z M523.947364,424.826093 C523.947364,425.546622 523.240604,426.130392 522.368454,426.130392 L507.631606,426.130392 C506.759396,426.130392 506.052667,425.546622 506.052667,424.826093 L506.052667,416.565234 C506.052667,415.84468 506.759426,415.260835 507.631606,415.260835 L522.368454,415.260835 C523.240635,415.260835 523.947364,415.844705 523.947364,416.565234 L523.947364,424.826093 L523.947364,424.826093 L523.947364,424.826093 Z" id="pw" sketch:type="MSShapeGroup"></path>
</g>
</g>
</svg>
<input type="password" name="password" placeholder="<?php echo $this->_var['lang']['label_dealer_password']; ?>"/>
</div>
<?php if ($this->_var['gd_version'] > 0): ?>
<div class="controls third">
<svg class="iconphone" width="20px" height="20px" viewBox="0 0 20 20">
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">
<g id="2-copy-2" sketch:type="MSArtboardGroup" transform="translate(-505.000000, -457.000000)" fill="#666">
<path d="M514.992364,462.720402 C514.752337,462.720402 514.558125,462.879933 514.558125,463.077076 L514.558125,468.784241 C514.558125,468.981384 514.752337,469.140915 514.992364,469.140915 C515.232364,469.140915 515.426576,468.981384 515.426576,468.784241 L515.426576,463.077076 C515.426576,462.879933 515.232364,462.720402 514.992364,462.720402 L514.992364,462.720402 Z M524.979837,460.500513 C524.421168,460.552589 523.839891,460.580179 523.242853,460.580179 C519.219511,460.580179 515.906875,459.331741 515.474864,457.726607 L515.426603,457.726607 L515.426603,457.369955 C515.426603,457.173147 515.232391,457.013259 514.992391,457.013259 C514.752364,457.013259 514.558152,457.17317 514.558152,457.369955 L514.558152,457.726629 L514.509891,457.726629 C514.077853,459.331763 510.76519,460.580201 506.741821,460.580201 C506.14481,460.580201 505.563533,460.552589 505.004891,460.500536 L505.004891,461.214799 C505.015217,461.215737 505.025462,461.216808 505.035815,461.217746 C505.015408,461.592723 505.004891,461.974732 505.004891,462.363705 C505.004891,470.440558 509.476196,476.988237 514.992391,476.988237 C520.50856,476.988237 524.979864,470.440558 524.979864,462.363705 C524.979864,461.974732 524.969321,461.592723 524.948913,461.217746 C524.959266,461.216808 524.969511,461.215759 524.979864,461.214799 L524.979864,460.500513 L524.979837,460.500513 Z M514.992364,476.274866 C509.956196,476.274866 505.873315,470.046652 505.873315,462.363705 C505.873315,461.994085 505.882962,461.631317 505.901576,461.27529 C506.178125,461.287299 506.458315,461.293638 506.741793,461.293638 C510.588886,461.293638 513.851549,460.163281 514.992364,458.597634 C516.133152,460.163281 519.395842,461.293638 523.242853,461.293638 C523.526386,461.293638 523.806576,461.287299 524.083125,461.27529 C524.101739,461.631317 524.111386,461.994107 524.111386,462.363705 C524.111386,470.046629 520.028533,476.274866 514.992364,476.274866 L514.992364,476.274866 Z M514.992364,469.85433 C514.752337,469.85433 514.558125,470.014196 514.558125,470.211004 L514.558125,470.924375 C514.558125,471.121518 514.752337,471.281094 514.992364,471.281094 C515.232364,471.281094 515.426576,471.121518 515.426576,470.924375 L515.426576,470.211004 C515.426576,470.014196 515.232364,469.85433 514.992364,469.85433 L514.992364,469.85433 Z" id="code" sketch:type="MSShapeGroup"></path>
</g>
</g>
</svg>
<input type="text" name="no-captcha" class="capital" placeholder="<?php echo $this->_var['lang']['label_captcha']; ?>" />
<!--<input name="captchas" type="text" data-error-msg="验证码不能为空" class="Inp-v" placeholder="输入验证码"><i class="Ico"></i>-->
<div class="" style="position: absolute; right: 8px; top: 8px;" id="number_div">
<img src="index.php?act=captcha&<?php echo $this->_var['random']; ?>" width="102" height="34" alt="CAPTCHA" border="1" onclick= this.src="index.php?act=captcha&"+Math.random() style="cursor: pointer;" title="<?php echo $this->_var['lang']['click_for_another']; ?>" />
</div>
</div>
<?php endif; ?>
<div class="controls last">
<input type="submit" class="btn-a" value="<?php echo $this->_var['lang']['dealer_signin_now']; ?>" class="button" />
<span style="display: none" id="login_error_msg"></span>
</div>
<div class="controls bside" style="border: none">
<input type="checkbox" value="1" name="remember" id="remember" />
<label for="remember"><?php echo $this->_var['lang']['remember']; ?></label></td>
</div>
</div>
</div>
</div>
<input type="hidden" name="act" value="signin" />
</form>
<script language="JavaScript">
//三次密码输入错误,出现验证码(火狐触发不了,不过影响不大)
(function(win,doc){
if(!doc.getCookie('loginNum')){
doc.setCookie('loginNum','1',1);
}else{
doc.setCookie('loginNum',doc.getCookie('loginNum')*1+1,1);
}
//if(doc.getCookie('loginNum')>3){
var oInput=doc.getElementsByClassName('capital')[0];
var oT=doc.getElementsByClassName('third')[0];
oT.classList.add('active');
oT.previousElementSibling.classList.add('active');
oInput.name='captcha';
//}
})(window,document);
document.forms['theForm'].elements['username'].focus();
/**
* 检查表单输入的内容
*/
function validate()
{
var validator = new Validator('theForm');
validator.required('username', user_name_empty);
validator.required('password', password_empty);
if (document.forms['theForm'].elements['captcha'])
{
validator.required('captcha', captcha_empty);
}
return validator.passed();
}
var dom ="<h3 class='panel-hd cl-orange'><?php echo $this->_var['lang']['yunqi_login']; ?></h3><div class='main'><span class='error-hint' <?php if (! $this->_var['error_msg']): ?> style='display:none' <?php endif; ?> id='login_error_msg'><?php echo $this->_var['error_msg']; ?></span><iframe id='loginFrame' src='<?php echo $this->_var['iframe_url']; ?>' height='220' frameborder='0' scrolling='no'></iframe><div class='cloud-passw'><a target='_blank' href='https://account.shopex.cn/forget?' style='float:left;'><?php echo $this->_var['lang']['forget_pwd']; ?></a> <a href='javascript:void(0)' style='float:right;' onclick='loginTab()'><?php echo $this->_var['lang']['back_local_login']; ?>&gt;&gt;</a> </div> </div>";
var cloudLogin = document.getElementById('cloudLogin');
var elsePanel = document.getElementById('elseLogin');
var loginPanel = document.getElementById('loginPanel');
var oldLogin = loginPanel.innerHTML;
var oldElseTxt = elsePanel.getElementsByTagName('p')[0].innerHTML;
cloudLogin.onclick = function(){
loginTab();
}
function loginTab(){
if(JSON.stringify(elsePanel.classList).indexOf('ecshop')<0){
loginPanel.classList.add('cloud');
elsePanel.classList.add('ecshop');
loginPanel.innerHTML= dom;
elsePanel.getElementsByTagName('p')[0].innerHTML = '<?php echo $this->_var['lang']['ecshop_account']; ?>';
}else{
loginPanel.classList.remove('cloud');
elsePanel.classList.remove('ecshop');
loginPanel.innerHTML= oldLogin;
elsePanel.getElementsByTagName('p')[0].innerHTML = oldElseTxt;
}
}
</script>
</body>

View File

@ -1,77 +0,0 @@
<?php echo $this->fetch('pageheader.htm'); ?>
<div class="list-div">
<div style="background:#ffffff; padding: 20px 50px; margin: 2px;">
<table align="center" width="400" border="0" style="background:#FFF;">
<tr>
<td width="50" valign="top">
<?php if ($this->_var['msg_type'] == 0): ?>
<img src="images/information.gif" width="32" height="32" border="0" alt="information" />
<?php elseif ($this->_var['msg_type'] == 1): ?>
<img src="images/warning.gif" width="32" height="32" border="0" alt="warning" />
<?php else: ?>
<img src="images/confirm.gif" width="32" height="32" border="0" alt="confirm" />
<?php endif; ?>
</td>
<td style="font-size: 14px; font-weight: bold"><?php echo $this->_var['msg_detail']; ?></td>
</tr>
<tr>
<td></td>
<td id="redirectionMsg">
<?php if ($this->_var['auto_redirect']): ?><?php echo $this->_var['lang']['auto_redirection']; ?><?php endif; ?>
</td>
</tr>
<tr>
<td></td>
<td>
<ul style="margin:0; padding:0 10px" class="msg-link">
<?php $_from = $this->_var['links']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'link');if (count($_from)):
foreach ($_from AS $this->_var['link']):
?>
<li><a href="<?php echo $this->_var['link']['href']; ?>" <?php if ($this->_var['link']['target']): ?>target="<?php echo $this->_var['link']['target']; ?>"<?php endif; ?>><?php echo $this->_var['link']['text']; ?></a></li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</td>
</tr>
</table>
</div>
</div>
<?php if ($this->_var['auto_redirect']): ?>
<script language="JavaScript">
<!--
var seconds = 3;
var defaultUrl = "<?php echo $this->_var['default_url']; ?>";
onload = function()
{
if (defaultUrl == 'javascript:history.go(-1)' && window.history.length == 0)
{
document.getElementById('redirectionMsg').innerHTML = '';
return;
}
window.setInterval(redirection, 1000);
}
function redirection()
{
if (seconds <= 0)
{
window.clearInterval();
return;
}
seconds --;
document.getElementById('spanSeconds').innerHTML = seconds;
if (seconds == 0)
{
window.clearInterval();
location.href = defaultUrl;
}
}
//-->
</script>
<?php endif; ?>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,125 +0,0 @@
<!-- $Id: goods_info.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js')); ?>
<script type="text/javascript" src="../js/calendar.php?lang=<?php echo $this->_var['cfg_lang']; ?>"></script>
<script charset="utf-8" src="../includes/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="../includes/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
var editor;
KindEditor.ready(function(K) {
editor = K.create('#editor_id');
});
</script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<?php if ($this->_var['warning']): ?>
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
<li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" ><?php echo $this->_var['warning']; ?></li>
</ul>
<?php endif; ?>
<!-- start goods form -->
<div class="tab-div">
<!-- tab body -->
<div id="tabbody-div">
<form enctype="multipart/form-data" action="" method="post" name="theForm" >
<table width="90%" id="web-table" align="center" class="goods_info">
<tr>
<td>文章標題</td>
<td><input type="text" name="subject" value="<?php echo $this->_var['news']['subject']; ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>文章內容</td>
<td><textarea id="editor_id" name="content" style="width:100%;height:300px;">
<?php echo $this->_var['news']['content']; ?>
</textarea>
</td>
</tr>
<tr>
<td>上傳新聞圖</td>
<td>
<input type="file" name="image" size="35" />
<?php if ($this->_var['news']['image']): ?>
<a href="news.php?act=show_image&img_url=<?php echo $this->_var['news']['image']; ?>" target="_blank">
<img src="../<?php echo $this->_var['news']['image']; ?>" width="100" />
<img src="images/yes.gif" border="0" />
</a>
<?php else: ?>
<img src="images/no.gif" />
<?php endif; ?>
</td>
</tr>
<tr>
<td>
開始日期
</td>
<td>
<input name="start_time" type="text" id="start_time" size="22" value='<?php echo $this->_var['news']['start_time']; ?>' readonly="readonly" />
<input name="selbtn1" type="button" id="selbtn1" onclick="return showCalendar('start_time', '%Y-%m-%d', false, false, 'selbtn1');" value="<?php echo $this->_var['lang']['btn_select']; ?>" class="button"/>
</td>
</tr>
<tr>
<td>結束日期</td>
<td>
<input name="end_time" type="text" id="end_time" size="22" value='<?php echo $this->_var['news']['end_time']; ?>' readonly="readonly" />
<input name="selbtn2" type="button" id="selbtn2" onclick="return showCalendar('end_time', '%Y-%m-%d', false, false, 'selbtn2');" value="<?php echo $this->_var['lang']['btn_select']; ?>" class="button"/> </td>
</tr>
</table>
<div class="button-div">
<input type="hidden" name="id" value="<?php echo $this->_var['news']['id']; ?>" />
<input type="button" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="button" onclick="validate('<?php echo $this->_var['news']['id']; ?>')" />
<input type="reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" class="button" />
</div>
<input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
</form>
</div>
</div>
<!-- end goods form -->
<?php echo $this->smarty_insert_scripts(array('files'=>'validator.js')); ?>
<script language="JavaScript">
onload = function()
{
// handlePromote(document.forms['theForm'].elements['is_promote'].checked);
if (document.forms['theForm'].elements['auto_thumb'])
{
handleAutoThumb(document.forms['theForm'].elements['auto_thumb'].checked);
}
document.forms['theForm'].reset();
}
function validate(id)
{
var validator = new Validator('theForm');
editor.sync();
// validator.required('domain', '網址不能為空');
// validator.required('cname', '名稱不能為空');
if(validator.passed())
{
document.forms['theForm'].submit();
}
}
function searchGoods(szObject, catId, brandId, keyword)
{
var filters = new Object;
filters.cat_id = elements[catId].value;
filters.brand_id = elements[brandId].value;
filters.keyword = Utils.trim(elements[keyword].value);
filters.exclude = document.forms['theForm'].elements['goods_id'].value;
szObject.loadOptions('get_goods_list', filters);
}
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,120 +0,0 @@
<!-- $Id: goods_list.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>
<!-- 搜索 -->
<!-- 列表 -->
<form method="post" action="" name="listForm" onsubmit="return confirmSubmit(this)">
<!-- start goods list -->
<div class="list-div" id="listDiv">
<?php endif; ?>
<table id="simple-table" class="table table-bordered table-hover">
<tr>
<th>
<a href="javascript:listTable.sort('id'); "><?php echo $this->_var['lang']['record_id']; ?></a><?php echo $this->_var['sort_id']; ?>
</th>
<th>文章標題</th>
<th>是否顯示</th>
<th><?php echo $this->_var['lang']['handler']; ?></th>
<tr>
<?php $_from = $this->_var['news_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'news');if (count($_from)):
foreach ($_from AS $this->_var['news']):
?>
<tr>
<td><?php echo $this->_var['news']['id']; ?></td>
<td class="first-cell"><?php echo htmlspecialchars($this->_var['news']['subject']); ?></td>
<td align="center"><img src="images/<?php if ($this->_var['news']['enable']): ?>yes<?php else: ?>no<?php endif; ?>.gif" onclick="listTable.toggle(this, 'toggle_enable', <?php echo $this->_var['news']['id']; ?>)" /></td>
<!-- <td align="center"><span onclick="listTable.edit(this, 'edit_sort_order', <?php echo $this->_var['goods']['goods_id']; ?>)"><?php echo $this->_var['goods']['sort_order']; ?></span></td>-->
<td align="center">
<a href="news.php?act=edit&id=<?php echo $this->_var['news']['id']; ?>" title="<?php echo $this->_var['lang']['edit']; ?>"><img src="images/icon_edit.gif" width="21" height="21" border="0" /></a>
<a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['news']['id']; ?>, '確認刪除')" title="刪除"><img src="images/icon_trash.gif" width="21" height="21" border="0" /></a>
</td>
</tr>
<?php endforeach; else: ?>
<tr><td class="no-records" colspan="10"><?php echo $this->_var['lang']['no_records']; ?></td></tr>
<?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
<!-- end goods list -->
<!-- 分页 -->
<table id="page-table" cellspacing="0">
<tr>
<td align="right" nowrap="true">
<?php echo $this->fetch('page.htm'); ?>
</td>
</tr>
</table>
<?php if ($this->_var['full_page']): ?>
</div>
</form>
<script type="text/javascript">
listTable.recordCount = <?php echo $this->_var['record_count']; ?>;
listTable.pageCount = <?php echo $this->_var['page_count']; ?>;
<?php $_from = $this->_var['filter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
listTable.filter.<?php echo $this->_var['key']; ?> = '<?php echo $this->_var['item']; ?>';
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
onload = function()
{
startCheckOrder(); // 开始检查订单
document.forms['listForm'].reset();
}
/**
* @param: bool ext 其他条件:用于转移分类
*/
function confirmSubmit(frm, ext)
{
if (frm.elements['type'].value == 'trash')
{
return confirm(batch_trash_confirm);
}
else if (frm.elements['type'].value == 'not_on_sale')
{
return confirm(batch_no_on_sale);
}
else if (frm.elements['type'].value == 'move_to')
{
ext = (ext == undefined) ? true : ext;
return ext && frm.elements['target_cat'].value != 0;
}
else if (frm.elements['type'].value == '')
{
return false;
}
else
{
return true;
}
}
function changeAction()
{
var frm = document.forms['listForm'];
// 切换分类列表的显示
frm.elements['target_cat'].style.display = frm.elements['type'].value == 'move_to' ? '' : 'none';
<?php if ($this->_var['suppliers_list'] > 0): ?>
frm.elements['suppliers_id'].style.display = frm.elements['type'].value == 'suppliers_move_to' ? '' : 'none';
<?php endif; ?>
if (!document.getElementById('btnSubmit').disabled &&
confirmSubmit(frm, false))
{
frm.submit();
}
}
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>

View File

@ -1,17 +0,0 @@
<!-- $Id: page.htm 14216 2008-03-10 02:27:21Z testyang $ -->
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js')); ?>
<div id="turn-page">
<?php echo $this->_var['lang']['total_records']; ?> <span id="totalRecords"><?php echo $this->_var['record_count']; ?></span>
<?php echo $this->_var['lang']['total_pages']; ?> <span id="totalPages"><?php echo $this->_var['page_count']; ?></span>
<?php echo $this->_var['lang']['page_current']; ?> <span id="pageCurrent"><?php echo $this->_var['filter']['page']; ?></span>
<?php echo $this->_var['lang']['page_size']; ?> <input type='text' size='3' id='pageSize' value="<?php echo $this->_var['filter']['page_size']; ?>" onkeypress="return listTable.changePageSize(event)" />
<span id="page-link">
<a href="javascript:listTable.gotoPageFirst()"><?php echo $this->_var['lang']['page_first']; ?></a>
<a href="javascript:listTable.gotoPagePrev()"><?php echo $this->_var['lang']['page_prev']; ?></a>
<a href="javascript:listTable.gotoPageNext()"><?php echo $this->_var['lang']['page_next']; ?></a>
<a href="javascript:listTable.gotoPageLast()"><?php echo $this->_var['lang']['page_last']; ?></a>
<select id="gotoPage" onchange="listTable.gotoPage(this.value)">
<?php echo $this->smarty_create_pages(array('count'=>$this->_var['page_count'],'page'=>$this->_var['filter']['page'])); ?>
</select>
</span>
</div>

View File

@ -1,46 +0,0 @@
<!-- PAGE CONTENT ENDS -->
</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.page-content -->
</div>
</div><!-- /.main-content -->
<div class="footer">
<div class="footer-inner">
<div class="footer-content">
<span class="bigger-120">
</span>
&nbsp; &nbsp;
<span class="action-buttons">
</span>
</div>
</div>
</div>
<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse">
<i class="ace-icon fa fa-angle-double-up icon-only bigger-110"></i>
</a>
</div><!-- /.main-container -->
<!-- basic scripts -->
<!--[if !IE]> -->
<!-- <![endif]-->
<!--[if IE]>
<![endif]-->
<script type="text/javascript">
if('ontouchstart' in document.documentElement) document.write("<script src='assets/js/jquery.mobile.custom.min.js'>"+"<"+"/script>");
</script>
<script src="assets/js/bootstrap.min.js"></script>
<!-- page specific plugin scripts -->
<!-- ace scripts -->
<script src="assets/js/ace-elements.min.js"></script>
<script src="assets/js/ace.min.js"></script>
<!-- inline scripts related to this page -->
</body>
</html>

View File

@ -1,448 +0,0 @@
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<title><?php echo $this->_var['lang']['cp_home']; ?><?php if ($this->_var['ur_here']): ?> - <?php echo $this->_var['ur_here']; ?> <?php endif; ?></title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<!-- bootstrap & fontawesome -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css" />
<link rel="stylesheet" href="assets/font-awesome/4.5.0/css/font-awesome.min.css" />
<!-- page specific plugin styles -->
<!-- text fonts -->
<link rel="stylesheet" href="assets/css/fonts.googleapis.com.css" />
<!-- ace styles -->
<link rel="stylesheet" href="assets/css/ace.min.css" class="ace-main-stylesheet" id="main-ace-style" />
<!--[if lte IE 9]>
<link rel="stylesheet" href="assets/css/ace-part2.min.css" class="ace-main-stylesheet" />
<![endif]-->
<link rel="stylesheet" href="assets/css/ace-skins.min.css" />
<link rel="stylesheet" href="assets/css/ace-rtl.min.css" />
<!--[if lte IE 9]>
<link rel="stylesheet" href="assets/css/ace-ie.min.css" />
<![endif]-->
<!-- inline styles related to this page -->
<!-- ace settings handler -->
<script src="assets/js/ace-extra.min.js"></script>
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<link href="styles/general.css" rel="stylesheet" type="text/css" />
<!-- HTML5shiv and Respond.js for IE8 to support HTML5 elements and media queries -->
<!--[if lte IE 8]>
<script src="assets/js/html5shiv.min.js"></script>
<script src="assets/js/respond.min.js"></script>
<![endif]-->
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/jquery-1.9.1.min.js,../js/jquery.json.js')); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/transport_jquery.js,common.js,respond.src.js')); ?>
<script language="JavaScript">
<!--
// 这里把JS用到的所有语言都赋值到这里
<?php $_from = $this->_var['lang']['js_languages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
var <?php echo $this->_var['key']; ?> = "<?php echo $this->_var['item']; ?>";
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
//-->
function openwindow(url,name,iWidth,iHeight)
{
var url; //網頁位置;
var name; //網頁名稱;
var iWidth; //視窗的寬度;
var iHeight; //視窗的高度;
var iTop = (window.screen.availHeight-30-iHeight)/2; //視窗的垂直位置;
var iLeft = (window.screen.availWidth-10-iWidth)/2; //視窗的水平位置;
window.open(url,name,'height='+iHeight+',innerHeight='+iHeight+',width='+iWidth+',innerWidth='+iWidth+',top='+iTop+',left='+iLeft);
}
</script>
</head>
<body class="no-skin">
<div id="navbar" class="navbar navbar-default ace-save-state">
<div class="navbar-container ace-save-state" id="navbar-container">
<button type="button" class="navbar-toggle menu-toggler pull-left" id="menu-toggler" data-target="#sidebar">
<span class="sr-only">Toggle sidebar</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="navbar-header pull-left">
<a href="/back/" class="navbar-brand">
<small>
後台系統
<?php if ($_SESSION['name']): ?>
-<?php echo $_SESSION['name']; ?>
<?php endif; ?>
</small>
</a>
</div>
<div class="navbar-buttons navbar-header pull-right" role="navigation">
<ul class="nav ace-nav">
<!-- <li class="grey dropdown-modal">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<i class="ace-icon fa fa-tasks"></i>
<span class="badge badge-grey">4</span>
</a>
<ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
<li class="dropdown-header">
<i class="ace-icon fa fa-check"></i>
4 Tasks to complete
</li>
<li class="dropdown-content">
<ul class="dropdown-menu dropdown-navbar">
<li>
<a href="#">
<div class="clearfix">
<span class="pull-left">Software Update</span>
<span class="pull-right">65%</span>
</div>
<div class="progress progress-mini">
<div style="width:65%" class="progress-bar"></div>
</div>
</a>
</li>
<li>
<a href="#">
<div class="clearfix">
<span class="pull-left">Hardware Upgrade</span>
<span class="pull-right">35%</span>
</div>
<div class="progress progress-mini">
<div style="width:35%" class="progress-bar progress-bar-danger"></div>
</div>
</a>
</li>
<li>
<a href="#">
<div class="clearfix">
<span class="pull-left">Unit Testing</span>
<span class="pull-right">15%</span>
</div>
<div class="progress progress-mini">
<div style="width:15%" class="progress-bar progress-bar-warning"></div>
</div>
</a>
</li>
<li>
<a href="#">
<div class="clearfix">
<span class="pull-left">Bug Fixes</span>
<span class="pull-right">90%</span>
</div>
<div class="progress progress-mini progress-striped active">
<div style="width:90%" class="progress-bar progress-bar-success"></div>
</div>
</a>
</li>
</ul>
</li>
<li class="dropdown-footer">
<a href="#">
See tasks with details
<i class="ace-icon fa fa-arrow-right"></i>
</a>
</li>
</ul>
</li>
<li class="purple dropdown-modal">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<i class="ace-icon fa fa-bell icon-animated-bell"></i>
<span class="badge badge-important">8</span>
</a>
<ul class="dropdown-menu-right dropdown-navbar navbar-pink dropdown-menu dropdown-caret dropdown-close">
<li class="dropdown-header">
<i class="ace-icon fa fa-exclamation-triangle"></i>
8 Notifications
</li>
<li class="dropdown-content">
<ul class="dropdown-menu dropdown-navbar navbar-pink">
<li>
<a href="#">
<div class="clearfix">
<span class="pull-left">
<i class="btn btn-xs no-hover btn-pink fa fa-comment"></i>
New Comments
</span>
<span class="pull-right badge badge-info">+12</span>
</div>
</a>
</li>
<li>
<a href="#">
<i class="btn btn-xs btn-primary fa fa-user"></i>
Bob just signed up as an editor ...
</a>
</li>
<li>
<a href="#">
<div class="clearfix">
<span class="pull-left">
<i class="btn btn-xs no-hover btn-success fa fa-shopping-cart"></i>
New Orders
</span>
<span class="pull-right badge badge-success">+8</span>
</div>
</a>
</li>
<li>
<a href="#">
<div class="clearfix">
<span class="pull-left">
<i class="btn btn-xs no-hover btn-info fa fa-twitter"></i>
Followers
</span>
<span class="pull-right badge badge-info">+11</span>
</div>
</a>
</li>
</ul>
</li>
<li class="dropdown-footer">
<a href="#">
See all notifications
<i class="ace-icon fa fa-arrow-right"></i>
</a>
</li>
</ul>
</li>
<li class="green dropdown-modal">
<a data-toggle="dropdown" class="dropdown-toggle" href="#">
<i class="ace-icon fa fa-envelope icon-animated-vertical"></i>
<span class="badge badge-success">5</span>
</a>
<ul class="dropdown-menu-right dropdown-navbar dropdown-menu dropdown-caret dropdown-close">
<li class="dropdown-header">
<i class="ace-icon fa fa-envelope-o"></i>
5 Messages
</li>
<li class="dropdown-content">
<ul class="dropdown-menu dropdown-navbar">
<li>
<a href="#" class="clearfix">
<img src="assets/images/avatars/avatar.png" class="msg-photo" alt="Alex's Avatar" />
<span class="msg-body">
<span class="msg-title">
<span class="blue">Alex:</span>
Ciao sociis natoque penatibus et auctor ...
</span>
<span class="msg-time">
<i class="ace-icon fa fa-clock-o"></i>
<span>a moment ago</span>
</span>
</span>
</a>
</li>
<li>
<a href="#" class="clearfix">
<img src="assets/images/avatars/avatar3.png" class="msg-photo" alt="Susan's Avatar" />
<span class="msg-body">
<span class="msg-title">
<span class="blue">Susan:</span>
Vestibulum id ligula porta felis euismod ...
</span>
<span class="msg-time">
<i class="ace-icon fa fa-clock-o"></i>
<span>20 minutes ago</span>
</span>
</span>
</a>
</li>
<li>
<a href="#" class="clearfix">
<img src="assets/images/avatars/avatar4.png" class="msg-photo" alt="Bob's Avatar" />
<span class="msg-body">
<span class="msg-title">
<span class="blue">Bob:</span>
Nullam quis risus eget urna mollis ornare ...
</span>
<span class="msg-time">
<i class="ace-icon fa fa-clock-o"></i>
<span>3:15 pm</span>
</span>
</span>
</a>
</li>
<li>
<a href="#" class="clearfix">
<img src="assets/images/avatars/avatar2.png" class="msg-photo" alt="Kate's Avatar" />
<span class="msg-body">
<span class="msg-title">
<span class="blue">Kate:</span>
Ciao sociis natoque eget urna mollis ornare ...
</span>
<span class="msg-time">
<i class="ace-icon fa fa-clock-o"></i>
<span>1:33 pm</span>
</span>
</span>
</a>
</li>
<li>
<a href="#" class="clearfix">
<img src="assets/images/avatars/avatar5.png" class="msg-photo" alt="Fred's Avatar" />
<span class="msg-body">
<span class="msg-title">
<span class="blue">Fred:</span>
Vestibulum id penatibus et auctor ...
</span>
<span class="msg-time">
<i class="ace-icon fa fa-clock-o"></i>
<span>10:09 am</span>
</span>
</span>
</a>
</li>
</ul>
</li>
<li class="dropdown-footer">
<a href="inbox.html">
See all messages
<i class="ace-icon fa fa-arrow-right"></i>
</a>
</li>
</ul>
</li>
-->
<li class="light-blue dropdown-modal">
<a href="privilege.php?act=logout">
<i class="ace-icon fa fa-power-off"></i>
登出
</a>
</li>
</ul>
</div>
</div><!-- /.navbar-container -->
</div>
<div class="main-container ace-save-state" id="main-container">
<script type="text/javascript">
try{ace.settings.loadState('main-container')}catch(e){}
</script>
<div id="sidebar" class="sidebar responsive ace-save-state">
<script type="text/javascript">
try{ace.settings.loadState('sidebar')}catch(e){}
</script>
<!-- menu : start -->
<ul class="nav nav-list">
<li class="">
<a href="index.php">
<i class="menu-icon fa fa-tachometer"></i>
<span class="menu-text"> 首頁控制台 </span>
</a>
<b class="arrow"></b>
</li>
<?php $_from = $this->_var['menus']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('k', 'menu');if (count($_from)):
foreach ($_from AS $this->_var['k'] => $this->_var['menu']):
?>
<li class="active open">
<a href="#" class="dropdown-toggle">
<i class="menu-icon fa fa-file-o"></i>
<span class="menu-text">
<?php echo $this->_var['menu']['label']; ?>
<!-- <span class="badge badge-primary">5</span> -->
</span>
<b class="arrow fa fa-angle-down"></b>
</a>
<b class="arrow"></b>
<?php if ($this->_var['menu']['children']): ?>
<ul class="submenu">
<?php $_from = $this->_var['menu']['children']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'child');if (count($_from)):
foreach ($_from AS $this->_var['child']):
?>
<li class="">
<a href="<?php echo $this->_var['child']['action']; ?>">
<i class="menu-icon fa fa-caret-right"></i>
<?php echo $this->_var['child']['label']; ?>
</a>
<b class="arrow"></b>
</li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
<?php endif; ?>
</li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul><!-- /.nav-list -->
<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
<i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
</div>
</div>
<!-- menu : end -->
<div class="main-content">
<div class="main-content-inner">
<div class="breadcrumbs ace-save-state" id="breadcrumbs">
<ul class="breadcrumb">
<li>
<i class="ace-icon fa fa-home home-icon"></i>
<a href="index.php?act=main">後台首頁</a>
</li>
<!-- <li>
<a href="#">Other Pages</a>
</li>-->
<li class="active"><?php if ($this->_var['ur_here']): ?> <?php echo $this->_var['ur_here']; ?> <?php endif; ?></li>
</ul><!-- /.breadcrumb -->
<?php if ($this->_var['action_link']): ?>
<span class="action-span"><a href="<?php echo $this->_var['action_link']['href']; ?>"><?php echo $this->_var['action_link']['text']; ?></a></span>
<?php endif; ?>
<?php if ($this->_var['action_link2']): ?>
<span class="action-span"><a href="<?php echo $this->_var['action_link2']['href']; ?>"><?php echo $this->_var['action_link2']['text']; ?></a>&nbsp;&nbsp;</span>
<?php endif; ?>
</div>
<div class="page-content">
<div class="row">
<div class="col-xs-12">
<!-- PAGE CONTENT BEGINS -->

View File

@ -1,657 +0,0 @@
<!-- $Id: goods_info.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js')); ?>
<script type="text/javascript" src="../js/calendar.php?lang=<?php echo $this->_var['cfg_lang']; ?>"></script>
<script charset="utf-8" src="../includes/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="../includes/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
var editor;
KindEditor.ready(function(K) {
editor = K.create('#editor_id');
editor2 = K.create('#editor_id2');
});
</script>
<link href="../js/calendar/calendar.css" rel="stylesheet" type="text/css" />
<?php if ($this->_var['warning']): ?>
<ul style="padding:0; margin: 0; list-style-type:none; color: #CC0000;">
<li style="border: 1px solid #CC0000; background: #FFFFCC; padding: 10px; margin-bottom: 5px;" ><?php echo $this->_var['warning']; ?></li>
</ul>
<?php endif; ?>
<!-- start goods form -->
<div class="tab-div">
<!-- tab bar -->
<div id="tabbar-div">
<p>
<span class="tab-front" id="general-tab">一般信息</span>
<span class="tab-back" id="intro-tab">服務說明</span>
<span class="tab-back" id="notice-tab">注意事項</span>
<span class="tab-back" id="gallery-tab">服務相片</span>
</p>
</div>
<!-- tab body -->
<div id="tabbody-div">
<form enctype="multipart/form-data" action="" method="post" name="theForm" >
<table width="90%" id="general-table" align="center">
<tr>
<td>名稱</td>
<td><input type="text" name="name" value="<?php echo $this->_var['room']['name']; ?>" size="50" />
<?php echo $this->_var['lang']['require_field']; ?></td>
</tr>
<tr>
<td>價格</td>
<td><input type="text" name="price" value="<?php echo $this->_var['room']['price']; ?>" size="50" />
</td>
</tr>
<tr>
<td>上傳圖片</td>
<td>
<input type="file" name="image1" size="35" />
<?php if ($this->_var['room']['image1']): ?>
<a href="room.php?act=show_image&img_url=<?php echo $this->_var['room']['image1']; ?>" target="_blank">
<img src="../<?php echo $this->_var['room']['image1']; ?>" width="100" />
<img src="images/yes.gif" border="0" />
</a>
<?php else: ?>
<img src="images/no.gif" />
<?php endif; ?>
</td>
</tr>
</table>
<table width="90%" id="intro-table" style="display:none">
<tr>
<td><textarea id="editor_id" name="intro" style="width:100%;height:400px;"><?php echo $this->_var['room']['intro']; ?></textarea></td>
</tr>
</table>
<table width="90%" id="notice-table" style="display:none">
<tr>
<td><textarea id="editor_id2" name="notice" style="width:100%;height:400px;"><?php echo $this->_var['room']['notice']; ?></textarea></td>
</tr>
</table>
<table width="90%" id="mix-table" style="display:none" align="center">
<?php if ($this->_var['cfg']['use_storage']): ?>
<tr>
<td><a href="javascript:showNotice('noticeStorage');" title="<?php echo $this->_var['lang']['form_notice']; ?>"><img src="images/notice.gif" width="16" height="16" border="0" alt="<?php echo $this->_var['lang']['form_notice']; ?>"></a> <?php echo $this->_var['lang']['lab_goods_number']; ?></td>
<!-- <td><input type="text" name="goods_number" value="<?php echo $this->_var['goods']['goods_number']; ?>" size="20" <?php if ($this->_var['code'] != '' || $this->_var['goods']['_attribute'] != ''): ?>readonly="readonly"<?php endif; ?> /><br />-->
<td><input type="text" name="goods_number" value="<?php echo $this->_var['goods']['goods_number']; ?>" size="20" /><br />
<span class="notice-span" <?php if ($this->_var['help_open']): ?>style="display:block" <?php else: ?> style="display:none" <?php endif; ?> id="noticeStorage"><?php echo $this->_var['lang']['notice_storage']; ?></span></td>
</tr>
<tr>
<td><?php echo $this->_var['lang']['lab_warn_number']; ?></td>
<td><input type="text" name="warn_number" value="<?php echo $this->_var['goods']['warn_number']; ?>" size="20" /></td>
</tr>
<?php endif; ?>
<tr id="alone_sale_1">
<td class="label" id="alone_sale_2"><?php echo $this->_var['lang']['lab_is_on_sale']; ?></td>
<td id="alone_sale_3"><input type="checkbox" name="is_on_sale" value="1" <?php if ($this->_var['goods']['is_on_sale']): ?>checked="checked"<?php endif; ?> /> <?php echo $this->_var['lang']['on_sale_desc']; ?></td>
</tr>
<tr>
<td><?php echo $this->_var['lang']['lab_keywords']; ?></td>
<td><input type="text" name="keywords" value="<?php echo htmlspecialchars($this->_var['goods']['keywords']); ?>" size="40" /> <?php echo $this->_var['lang']['notice_keywords']; ?></td>
</tr>
<tr>
<td><?php echo $this->_var['lang']['lab_goods_brief']; ?></td>
<td><textarea name="goods_brief" cols="40" rows="3"><?php echo htmlspecialchars($this->_var['goods']['goods_brief']); ?></textarea></td>
</tr>
<tr>
<td>
<a href="javascript:showNotice('noticeSellerNote');" title="<?php echo $this->_var['lang']['form_notice']; ?>"><img src="images/notice.gif" width="16" height="16" border="0" alt="<?php echo $this->_var['lang']['form_notice']; ?>"></a> <?php echo $this->_var['lang']['lab_seller_note']; ?> </td>
<td><textarea name="seller_note" cols="40" rows="3"><?php echo $this->_var['goods']['seller_note']; ?></textarea><br />
<span class="notice-span" <?php if ($this->_var['help_open']): ?>style="display:block" <?php else: ?> style="display:none" <?php endif; ?> id="noticeSellerNote"><?php echo $this->_var['lang']['notice_seller_note']; ?></span></td>
</tr>
</table>
<?php if ($this->_var['goods_type_list']): ?>
<table width="90%" id="properties-table" style="display:none" align="center">
<tr>
<td><a href="javascript:showNotice('noticeGoodsType');" title="<?php echo $this->_var['lang']['form_notice']; ?>"><img src="images/notice.gif" width="16" height="16" border="0" alt="<?php echo $this->_var['lang']['form_notice']; ?>"></a><?php echo $this->_var['lang']['lab_goods_type']; ?></td>
<td>
<select name="goods_type" onchange="getAttrList(<?php echo $this->_var['goods']['goods_id']; ?>)">
<option value="0"><?php echo $this->_var['lang']['sel_goods_type']; ?></option>
<?php echo $this->_var['goods_type_list']; ?>
</select><br />
<span class="notice-span" <?php if ($this->_var['help_open']): ?>style="display:block" <?php else: ?> style="display:none" <?php endif; ?> id="noticeGoodsType"><?php echo $this->_var['lang']['notice_goods_type']; ?></span></td>
</tr>
<tr>
<td id="tbody-goodsAttr" colspan="2" style="padding:0"><?php echo $this->_var['goods_attr_html']; ?></td>
</tr>
</table>
<?php endif; ?>
<table width="90%" id="gallery-table" style="display:none" align="center">
<tr>
<td>
<?php $_from = $this->_var['img_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('i', 'img');if (count($_from)):
foreach ($_from AS $this->_var['i'] => $this->_var['img']):
?>
<div id="gallery_<?php echo $this->_var['img']['img_id']; ?>" style="float:left; text-align:center; border: 1px solid #DADADA; margin: 4px; padding:2px;">
<a href="javascript:;" onclick="if (confirm('確定刪除?')) dropImg('<?php echo $this->_var['img']['img_id']; ?>')">[-]</a><br />
<a href="homestay.php?act=show_image&img_url=<?php echo $this->_var['img']['img_url']; ?>" target="_blank">
<img src="../<?php if ($this->_var['img']['img_url']): ?><?php echo $this->_var['img']['img_url']; ?><?php else: ?><?php echo $this->_var['img']['img_url']; ?><?php endif; ?>" <?php if ($this->_var['thumb_width'] != 0): ?>width="<?php echo $this->_var['thumb_width']; ?>"<?php endif; ?> <?php if ($this->_var['thumb_height'] != 0): ?>height="<?php echo $this->_var['thumb_height']; ?>"<?php endif; ?> border="0" />
</a><br />
<input type="text" value="<?php echo htmlspecialchars($this->_var['img']['img_desc']); ?>" size="15" name="old_img_desc[<?php echo $this->_var['img']['img_id']; ?>]" oninput = "value=value.replace(/[^\d]/g,'')"/>
</div>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</td>
</tr>
<tr><td>&nbsp;</td></tr>
<tr>
<td>
<a href="javascript:;" onclick="addImg(this)">[+]</a>排序 <input type="text" name="img_desc[]" size="20" value="50" oninput = "value=value.replace(/[^\d]/g,'')"/>上傳文件 <input type="file" name="img_url[]" />
</td>
</tr>
</table>
<div class="button-div">
<input type="hidden" name="id" value="<?php echo $this->_var['room']['id']; ?>" />
<input type="button" value="<?php echo $this->_var['lang']['button_submit']; ?>" class="button" onclick="validate('<?php echo $this->_var['hs']['id']; ?>')" />
<input type="reset" value="<?php echo $this->_var['lang']['button_reset']; ?>" class="button" />
</div>
<input type="hidden" name="act" value="<?php echo $this->_var['form_act']; ?>" />
</form>
</div>
</div>
<!-- end goods form -->
<?php echo $this->smarty_insert_scripts(array('files'=>'validator.js,tab.js')); ?>
<script language="JavaScript">
onload = function()
{
// handlePromote(document.forms['theForm'].elements['is_promote'].checked);
if (document.forms['theForm'].elements['auto_thumb'])
{
handleAutoThumb(document.forms['theForm'].elements['auto_thumb'].checked);
}
// 妫€鏌ユ柊璁㈠崟
startCheckOrder();
<?php $_from = $this->_var['user_rank_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'item');if (count($_from)):
foreach ($_from AS $this->_var['item']):
?>
set_price_note(<?php echo $this->_var['item']['rank_id']; ?>);
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
document.forms['theForm'].reset();
}
function validate(hs_id)
{
var validator = new Validator('theForm');
editor.sync();
editor2.sync();
validator.required('name', '名稱不能為空');
if(validator.passed())
{
document.forms['theForm'].submit();
}
}
function addSpec(obj)
{
var src = obj.parentNode.parentNode;
var idx = rowindex(src);
var tbl = document.getElementById('attrTable');
var row = tbl.insertRow(idx + 1);
var cell1 = row.insertCell(-1);
var cell2 = row.insertCell(-1);
var regx = /<a([^>]+)<\/a>/i;
cell1.className = 'label';
cell1.innerHTML = src.childNodes[0].innerHTML.replace(/(.*)(addSpec)(.*)(\[)(\+)/i, "$1removeSpec$3$4-");
cell2.innerHTML = src.childNodes[1].innerHTML.replace(/readOnly([^\s|>]*)/i, '');
}
/**
* 鍒犻櫎瑙勬牸鍊
*/
function removeSpec(obj)
{
var row = rowindex(obj.parentNode.parentNode);
var tbl = document.getElementById('attrTable');
tbl.deleteRow(row);
}
/**
* 澶勭悊瑙勬牸
*/
function handleSpec()
{
var elementCount = document.forms['theForm'].elements.length;
for (var i = 0; i < elementCount; i++)
{
var element = document.forms['theForm'].elements[i];
if (element.id.substr(0, 5) == 'spec_')
{
var optCount = element.options.length;
var value = new Array(optCount);
for (var j = 0; j < optCount; j++)
{
value[j] = element.options[j].value;
}
var hiddenSpec = document.getElementById('hidden_' + element.id);
hiddenSpec.value = value.join(String.fromCharCode(13)); // 鐢ㄥ洖杞﹂敭闅斿紑姣忎釜瑙勬牸
}
}
return true;
}
function handlePromote(checked)
{
document.forms['theForm'].elements['promote_price'].disabled = !checked;
document.forms['theForm'].elements['selbtn1'].disabled = !checked;
document.forms['theForm'].elements['selbtn2'].disabled = !checked;
}
function handleAutoThumb(checked)
{
document.forms['theForm'].elements['goods_thumb'].disabled = checked;
document.forms['theForm'].elements['goods_thumb_url'].disabled = checked;
}
/**
* ?€熸坊鍔犲搧鐗
*/
function rapidBrandAdd(conObj)
{
var brand_div = document.getElementById("brand_add");
if(brand_div.style.display != '')
{
var brand =document.forms['theForm'].elements['addedBrandName'];
brand.value = '';
brand_div.style.display = '';
}
}
function hideBrandDiv()
{
var brand_add_div = document.getElementById("brand_add");
if(brand_add_div.style.display != 'none')
{
brand_add_div.style.display = 'none';
}
}
function goBrandPage()
{
if(confirm(go_brand_page))
{
window.location.href='brand.php?act=add';
}
else
{
return;
}
}
function rapidCatAdd()
{
var cat_div = document.getElementById("category_add");
if(cat_div.style.display != '')
{
var cat =document.forms['theForm'].elements['addedCategoryName'];
cat.value = '';
cat_div.style.display = '';
}
}
function addBrand()
{
var brand = document.forms['theForm'].elements['addedBrandName'];
if(brand.value.replace(/^\s+|\s+$/g, '') == '')
{
alert(brand_cat_not_null);
return;
}
var params = 'brand=' + brand.value;
Ajax.call('brand.php?is_ajax=1&act=add_brand', params, addBrandResponse, 'GET', 'JSON');
}
function addBrandResponse(result)
{
if (result.error == '1' && result.message != '')
{
alert(result.message);
return;
}
var brand_div = document.getElementById("brand_add");
brand_div.style.display = 'none';
var response = result.content;
var selCat = document.forms['theForm'].elements['brand_id'];
var opt = document.createElement("OPTION");
opt.value = response.id;
opt.selected = true;
opt.text = response.brand;
if (Browser.isIE)
{
selCat.add(opt);
}
else
{
selCat.appendChild(opt);
}
return;
}
function addCategory()
{
var parent_id = document.forms['theForm'].elements['cat_id'];
var cat = document.forms['theForm'].elements['addedCategoryName'];
if(cat.value.replace(/^\s+|\s+$/g, '') == '')
{
alert(category_cat_not_null);
return;
}
var params = 'parent_id=' + parent_id.value;
params += '&cat=' + cat.value;
Ajax.call('category.php?is_ajax=1&act=add_category', params, addCatResponse, 'GET', 'JSON');
}
function hideCatDiv()
{
var category_add_div = document.getElementById("category_add");
if(category_add_div.style.display != null)
{
category_add_div.style.display = 'none';
}
}
function addCatResponse(result)
{
if (result.error == '1' && result.message != '')
{
alert(result.message);
return;
}
var category_add_div = document.getElementById("category_add");
category_add_div.style.display = 'none';
var response = result.content;
var selCat = document.forms['theForm'].elements['cat_id'];
var opt = document.createElement("OPTION");
opt.value = response.id;
opt.selected = true;
opt.innerHTML = response.cat;
//鑾峰彇瀛愬垎绫荤殑绌烘牸鏁
var str = selCat.options[selCat.selectedIndex].text;
var temp = str.replace(/^\s+/g, '');
var lengOfSpace = str.length - temp.length;
if(response.parent_id != 0)
{
lengOfSpace += 4;
}
for (i = 0; i < lengOfSpace; i++)
{
opt.innerHTML = '&nbsp;' + opt.innerHTML;
}
for (i = 0; i < selCat.length; i++)
{
if(selCat.options[i].value == response.parent_id)
{
if(i == selCat.length)
{
if (Browser.isIE)
{
selCat.add(opt);
}
else
{
selCat.appendChild(opt);
}
}
else
{
selCat.insertBefore(opt, selCat.options[i + 1]);
}
//opt.selected = true;
break;
}
}
return;
}
function goCatPage()
{
if(confirm(go_category_page))
{
window.location.href='category.php?act=add';
}
else
{
return;
}
}
/**
* 鍒犻櫎蹇?€熷垎绫
*/
function removeCat()
{
if(!document.forms['theForm'].elements['parent_cat'] || !document.forms['theForm'].elements['new_cat_name'])
{
return;
}
var cat_select = document.forms['theForm'].elements['parent_cat'];
var cat = document.forms['theForm'].elements['new_cat_name'];
cat.parentNode.removeChild(cat);
cat_select.parentNode.removeChild(cat_select);
}
/**
* 鍒犻櫎蹇?€熷搧鐗
*/
function removeBrand()
{
if (!document.forms['theForm'].elements['new_brand_name'])
{
return;
}
var brand = document.theForm.new_brand_name;
brand.parentNode.removeChild(brand);
}
/**
* 娣诲姞鎵╁睍鍒嗙被
*/
function addOtherCat(conObj)
{
var sel = document.createElement("SELECT");
var selCat = document.forms['theForm'].elements['cat_id'];
for (i = 0; i < selCat.length; i++)
{
var opt = document.createElement("OPTION");
opt.text = selCat.options[i].text;
opt.value = selCat.options[i].value;
if (Browser.isIE)
{
sel.add(opt);
}
else
{
sel.appendChild(opt);
}
}
conObj.appendChild(sel);
sel.name = "other_cat[]";
sel.onChange = function() {checkIsLeaf(this);};
}
/* 鍏宠仈鍟嗗搧鍑芥暟 */
function searchGoods(szObject, catId, brandId, keyword)
{
var filters = new Object;
filters.cat_id = elements[catId].value;
filters.brand_id = elements[brandId].value;
filters.keyword = Utils.trim(elements[keyword].value);
filters.exclude = document.forms['theForm'].elements['goods_id'].value;
szObject.loadOptions('get_goods_list', filters);
}
/**
* 鍏宠仈鏂囩珷鍑芥暟
*/
function searchArticle()
{
var filters = new Object;
filters.title = Utils.trim(elements['article_title'].value);
sz3.loadOptions('get_article_list', filters);
}
/**
* 鏂板?涓€涓?浘鐗
*/
function addImg(obj)
{
var src = obj.parentNode.parentNode;
var idx = rowindex(src);
var tbl = document.getElementById('gallery-table');
var row = tbl.insertRow(idx + 1);
var cell = row.insertCell(-1);
cell.innerHTML = src.cells[0].innerHTML.replace(/(.*)(addImg)(.*)(\[)(\+)/i, "$1removeImg$3$4-");
}
/**
* 鍒犻櫎鍥剧墖涓婁紶
*/
function removeImg(obj)
{
var row = rowindex(obj.parentNode.parentNode);
var tbl = document.getElementById('gallery-table');
tbl.deleteRow(row);
}
function dropImg(imgId)
{
Ajax.call('room.php?is_ajax=1&act=drop_image', "img_id="+imgId, dropImgResponse, "GET", "JSON");
}
function dropImgResponse(result)
{
if (result.error == 0)
{
document.getElementById('gallery_' + result.content).style.display = 'none';
}
}
function integral_market_price()
{
document.forms['theForm'].elements['market_price'].value = parseInt(document.forms['theForm'].elements['market_price'].value);
}
function parseint_integral()
{
document.forms['theForm'].elements['integral'].value = parseInt(document.forms['theForm'].elements['integral'].value);
}
function addVolumePrice(obj)
{
var src = obj.parentNode.parentNode;
var tbl = document.getElementById('tbody-volume');
var validator = new Validator('theForm');
checkVolumeData("0",validator);
if (!validator.passed())
{
return false;
}
var row = tbl.insertRow(tbl.rows.length);
var cell = row.insertCell(-1);
cell.innerHTML = src.cells[0].innerHTML.replace(/(.*)(addVolumePrice)(.*)(\[)(\+)/i, "$1removeVolumePrice$3$4-");
var number_list = document.getElementsByName("volume_number[]");
var price_list = document.getElementsByName("volume_price[]");
number_list[number_list.length-1].value = "";
price_list[price_list.length-1].value = "";
}
/**
* 鍒犻櫎浼樻儬浠锋牸
*/
function removeVolumePrice(obj)
{
var row = rowindex(obj.parentNode.parentNode);
var tbl = document.getElementById('tbody-volume');
tbl.deleteRow(row);
}
/**
* 鏍¢獙浼樻儬鏁版嵁鏄?惁姝g‘
*/
function checkVolumeData(isSubmit,validator)
{
var volumeNum = document.getElementsByName("volume_number[]");
var volumePri = document.getElementsByName("volume_price[]");
var numErrNum = 0;
var priErrNum = 0;
for (i = 0 ; i < volumePri.length ; i ++)
{
if ((isSubmit != 1 || volumeNum.length > 1) && numErrNum <= 0 && volumeNum.item(i).value == "")
{
validator.addErrorMsg(volume_num_not_null);
numErrNum++;
}
if (numErrNum <= 0 && Utils.trim(volumeNum.item(i).value) != "" && ! Utils.isNumber(Utils.trim(volumeNum.item(i).value)))
{
validator.addErrorMsg(volume_num_not_number);
numErrNum++;
}
if ((isSubmit != 1 || volumePri.length > 1) && priErrNum <= 0 && volumePri.item(i).value == "")
{
validator.addErrorMsg(volume_price_not_null);
priErrNum++;
}
if (priErrNum <= 0 && Utils.trim(volumePri.item(i).value) != "" && ! Utils.isNumber(Utils.trim(volumePri.item(i).value)))
{
validator.addErrorMsg(volume_price_not_number);
priErrNum++;
}
}
}
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>

View File

@ -1,121 +0,0 @@
<!-- $Id: goods_list.htm 17126 2010-04-23 10:30:26Z liuhui $ -->
<?php if ($this->_var['full_page']): ?>
<?php echo $this->fetch('pageheader.htm'); ?>
<?php echo $this->smarty_insert_scripts(array('files'=>'../js/utils.js,listtable.js')); ?>
<!-- 商品搜索 -->
<?php echo $this->fetch('goods_search.htm'); ?>
<!-- 商品列表 -->
<form method="post" action="" name="listForm" onsubmit="return confirmSubmit(this)">
<!-- start goods list -->
<div class="list-div" id="listDiv">
<?php endif; ?>
<table id="simple-table" class="table table-bordered table-hover">
<tr>
<th>
<a href="javascript:listTable.sort('id'); "><?php echo $this->_var['lang']['record_id']; ?></a><?php echo $this->_var['sort_id']; ?>
</th>
<th><a href="javascript:listTable.sort('cname'); ">名稱</a><?php echo $this->_var['sort_cname']; ?></th>
<th><a href="javascript:listTable.sort('is_on_sale'); ">是否上架</a><?php echo $this->_var['sort_is_on_sale']; ?></th>
<th><a href="javascript:listTable.sort('sort_order'); "><?php echo $this->_var['lang']['sort_order']; ?></a><?php echo $this->_var['sort_sort_order']; ?></th>
<th><?php echo $this->_var['lang']['handler']; ?></th>
<tr>
<?php $_from = $this->_var['room_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'room');if (count($_from)):
foreach ($_from AS $this->_var['room']):
?>
<tr>
<td>&nbsp;<?php echo $this->_var['room']['id']; ?></td>
<td class="first-cell"><?php echo htmlspecialchars($this->_var['room']['name']); ?></td>
<td align="center"><img src="images/<?php if ($this->_var['room']['enable']): ?>yes<?php else: ?>no<?php endif; ?>.gif" onclick="listTable.toggle(this, 'toggle_enable', <?php echo $this->_var['room']['id']; ?>)" /></td>
<td align="center"><span onclick="listTable.edit(this, 'edit_sort_order', <?php echo $this->_var['room']['id']; ?>)"><?php echo $this->_var['room']['sort_order']; ?></span></td>
<td align="center">
<a href="room.php?act=edit&id=<?php echo $this->_var['room']['id']; ?>" title="<?php echo $this->_var['lang']['edit']; ?>"><img src="images/icon_edit.gif" width="21" height="21" border="0" /></a>
<a href="javascript:;" onclick="listTable.remove(<?php echo $this->_var['room']['id']; ?>, '確認刪除')" title="刪除"><img src="images/icon_trash.gif" width="21" height="21" border="0" /></a>
</td>
</tr>
<?php endforeach; else: ?>
<tr><td class="no-records" colspan="10"><?php echo $this->_var['lang']['no_records']; ?></td></tr>
<?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
</table>
<!-- end goods list -->
<!-- 分页 -->
<table id="page-table" cellspacing="0">
<tr>
<td align="right" nowrap="true">
<?php echo $this->fetch('page.htm'); ?>
</td>
</tr>
</table>
<?php if ($this->_var['full_page']): ?>
</div>
</form>
<script type="text/javascript">
listTable.recordCount = <?php echo $this->_var['record_count']; ?>;
listTable.pageCount = <?php echo $this->_var['page_count']; ?>;
<?php $_from = $this->_var['filter']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('key', 'item');if (count($_from)):
foreach ($_from AS $this->_var['key'] => $this->_var['item']):
?>
listTable.filter.<?php echo $this->_var['key']; ?> = '<?php echo $this->_var['item']; ?>';
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
onload = function()
{
startCheckOrder(); // 开始检查订单
document.forms['listForm'].reset();
}
/**
* @param: bool ext 其他条件:用于转移分类
*/
function confirmSubmit(frm, ext)
{
if (frm.elements['type'].value == 'trash')
{
return confirm(batch_trash_confirm);
}
else if (frm.elements['type'].value == 'not_on_sale')
{
return confirm(batch_no_on_sale);
}
else if (frm.elements['type'].value == 'move_to')
{
ext = (ext == undefined) ? true : ext;
return ext && frm.elements['target_cat'].value != 0;
}
else if (frm.elements['type'].value == '')
{
return false;
}
else
{
return true;
}
}
function changeAction()
{
var frm = document.forms['listForm'];
// 切换分类列表的显示
frm.elements['target_cat'].style.display = frm.elements['type'].value == 'move_to' ? '' : 'none';
<?php if ($this->_var['suppliers_list'] > 0): ?>
frm.elements['suppliers_id'].style.display = frm.elements['type'].value == 'suppliers_move_to' ? '' : 'none';
<?php endif; ?>
if (!document.getElementById('btnSubmit').disabled &&
confirmSubmit(frm, false))
{
frm.submit();
}
}
</script>
<?php echo $this->fetch('pagefooter.htm'); ?>
<?php endif; ?>

View File

@ -1,12 +0,0 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
</head>
<body>
<img src="<?php echo $this->_var['img_url']; ?>" />
</body>
</html>

View File

@ -1,30 +0,0 @@
<?php echo $this->fetch('library/page_header.html'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/news.css">
<div class="mainArea">
<div class="wrap b-box">
<div class="titleBox clearfix">
<h2><em>NEWS</em><strong>最新消息</strong></h2>
</div>
<div class="contentBox clearfix">
<div class="g-tl-12 leftBox">
<div class="shareBox">
<div class="btn-fb">
<div class="fb-like" data-layout="button_count" data-action="like" data-show-faces="false" data-share="false"></div>
</div>
</div>
<div class="titleArea clearfix">
<div class="newsDate">
<div class="newIcon newIcon_gold">最新消息</div>
<strong></i><?php echo $this->_var['news']['start_time']; ?></strong>
</div>
<h1><?php echo $this->_var['news']['subject']; ?></h1>
</div>
<div class="textEditor clearfix">
<?php echo $this->_var['news']['content']; ?>
</div>
</div>
</div>
</div>
</div>
<?php echo $this->fetch('library/page_footer.html'); ?>

View File

@ -1,46 +0,0 @@
<?php echo $this->fetch('library/page_header.html'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/room.css">
<div class="mainArea">
<div class="wrap b-box">
<div class="titleBox clearfix">
<h2><em>SERVICE</em><strong>服務項目</strong></h2>
</div>
<div class="contentBox clearfix">
<div class="g-tl-12 leftBox">
<h1 class="articleTitle"><?php echo $this->_var['room']['name']; ?></h1>
<div class="Img"><img src="<?php echo $this->_var['room']['image1']; ?>"></div>
<ul class="side_album clearfix">
<?php $_from = $this->_var['rm_gallery_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'rm_gallery');$this->_foreach['rm_gallery'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['rm_gallery']['total'] > 0):
foreach ($_from AS $this->_var['rm_gallery']):
$this->_foreach['rm_gallery']['iteration']++;
?>
<li class="b-box"><a class="titan-lb" data-titan-group="gallery" data-fancybox="group" rel="fancybox-thumb" href="<?php echo $this->_var['rm_gallery']['img_url']; ?>" title=""><img src="<?php echo $this->_var['rm_gallery']['img_url']; ?>" ></a></li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
<div class="tab clearfix">
<a href="#intro" class="current">服務說明</a>
<a href="#notice">注意事項</a>
</div>
<ul class="tabContent">
<li id="intro">
<div class="textEditor">
<?php echo $this->_var['room']['intro']; ?>
</div>
</li>
<li id="price">
</li>
<li id="notice">
<div class="textEditor">
<?php echo $this->_var['room']['notice']; ?>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
<?php echo $this->fetch('library/page_footer.html'); ?>

View File

@ -1,35 +0,0 @@
<?php echo $this->fetch('library/page_header.html'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/news.css">
<div class="mainArea">
<div class="wrap b-box">
<div class="titleBox clearfix">
<h2><em>NEWS</em><strong>最新消息</strong></h2>
</div>
<div class="contentBox clearfix">
<div class="g-tv-12 topBox">
</div>
<div class="g-tv-12 bottom">
<ul class="newsList clearfix">
<?php $_from = $this->_var['news_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'news');$this->_foreach['news'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['news']['total'] > 0):
foreach ($_from AS $this->_var['news']):
$this->_foreach['news']['iteration']++;
?>
<li class="g-d-4 g-ml-6 g-mv-12 clearfix">
<div class="item clearfix">
<div class="Img"><a href="news.php?act=view&id=<?php echo $this->_var['news']['id']; ?>" title="<?php echo $this->_var['news']['subject']; ?>"><img src="<?php echo $this->_var['news']['image']; ?>"></a></div>
<div class="Txt b-box">
<div class="date"><?php echo $this->_var['news']['start_time']; ?></div>
<h3><a href="news.php?act=view&id=<?php echo $this->_var['news']['id']; ?>" title="<?php echo $this->_var['news']['subject']; ?>" data-abhover="<?php echo $this->_var['news']['subject']; ?>"><?php echo $this->_var['news']['subject']; ?></a></h3>
<a href="news.php?act=view&id=<?php echo $this->_var['news']['id']; ?>" class="btnMore">View More</a>
</div>
</div>
</li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>
</div>
</div>
</div>
<?php echo $this->fetch('library/page_footer.html'); ?>

View File

@ -1,132 +0,0 @@
<footer class="clearfix">
<div class="wrap b-box clearfix">
<div class="g-4 row one">
<ul class="downMenu cleafix">
<li id="menu11"><a href="/#about">關於我們</a></li>
<li id="menu12"><a href="/#news">最新消息</a></li>
<li id="menu13"><a href="/room.php?act=list">服務項目</a></li>
<li id="menu14"><a href="/#fac">工程案例</a></li>
<li id="menu15"><a href="/#location">交通位置</a></li>
<li id="menu16"><a href="<?php echo $this->_var['site']['facebook']; ?>" target="_blank">FB粉絲團</a></li>
</ul>
</div>
<div class="g-3 row two">
<h5 class="copyright">
<p><?php echo $this->_var['web']['cname']; ?></p><p class="en"><?php echo $this->_var['web']['ename']; ?></p><br />
<address><?php echo $this->_var['web']['address']; ?></address><br />
<?php echo $this->_var['web']['tel']; ?><br />
<?php echo $this->_var['web']['email']; ?></h5>
</div>
<div class="g-5 row three clearfix">
<div class="title">Contact Us</div>
<div class="social">
<a href="mailto:<?php echo $this->_var['web']['email']; ?>" class="contactLink" data-mail="<?php echo $this->_var['web']['email']; ?>"><i class="fa fa-envelope"></i></a>
<a href="tel:<?php echo $this->_var['web']['tel']; ?>"><i class="fa fa-phone"></i></a>
<?php if ($this->_var['web']['facebook']): ?>
<a class="fb" href="javascript: void(window.open('<?php echo $this->_var['web']['facebook']; ?>');"><i class="fa fa-facebook"></i></a>
<?php endif; ?>
<?php if ($this->_var['web']['line']): ?>
<a class="fb" href="javascript: void(window.open('<?php echo $this->_var['web']['line']; ?>');"><i class="fa fa-comment"></i></a>
<?php endif; ?>
</div>
<div class="endArea"><?php echo $this->_var['web']['ename']; ?> © ALL RIGHTS RESERVED.</div>
</div>
</div>
<div class="top"></div>
</footer>
</div>
<div class="m_menu b-box clearfix">
<div class="mask"></div>
<div class="controlBox clearfix">
<a class="main"><!--<i class="fa fa-reorder"></i>--></a>
<div class="m_logo"><a href="/"><img src="<?php echo $this->_var['web']['slogo']; ?>"></a></div>
<div class="bookingBox">
<a href="tel:<?php echo $this->_var['web']['tel']; ?>" target="_blank">CONTACT</a>
</div>
</div>
<div class="hideBox">
<p class="sp">CONTACT</p>
<div class="mfun">
<a href="<?php echo $this->_var['web']['location_map']; ?>" class="marker" target="_blank"><i class="fa fa-map-marker"></i></a>
<a href="tel:<?php echo $this->_var['web']['tel']; ?>"><i class="fa fa-phone"></i></a>
<a href="mailto:<?php echo $this->_var['web']['email']; ?>" class="contactLink" data-mail="<?php echo $this->_var['web']['email']; ?>"><i class="fa fa-envelope"></i></a>
</div>
<!--<p class="sp sp_menu">MENU</p>-->
</div>
</div>
<div class="fMenu">
<ul class="clearfix">
<li><a href="/"><i class="fa fa-calendar-check-o"></i><span>首頁</span></a></li>
<li><a href="/room.php?act=list"><i class="fa fa-star"></i><span>服務</span></a></li>
<li><a href="/#news"><i class="fa fa-rss"></i><span>消息</span></a></li>
<li><a href="/#location" class="marker"><i class="fa fa-map-marker"></i><span>地圖</span></a></li>
<li><a class="goTop"><i class="fa fa-angle-up"></i><span>Top</span></a></li>
</ul>
</div>
<link rel="stylesheet" href="<?php echo $this->_var['tpl']; ?>css/all.css">
<script src="<?php echo $this->_var['tpl']; ?>js/all.js"></script>
<script src="<?php echo $this->_var['tpl']; ?>js/google.js"></script>
<script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<script src="<?php echo $this->_var['tpl']; ?>js/tab.js"></script>
</body>
</html>

View File

@ -1,53 +0,0 @@
<!DOCTYPE html>
<html lang="zh-Hant">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $this->_var['title']; ?></title>
<meta name="description" content="<?php echo $this->_var['web']['mdesc']; ?>">
<meta name="keywords" content="<?php echo $this->_var['web']['mkeyword']; ?>">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/layout.css">
<script src="<?php echo $this->_var['tpl']; ?>js/include.js"></script>
</head>
<body>
<div class="outerWrap ins b-box">
<div class="bannerArea b-box">
<div class="wrap b-box">
<div class="bannerBox">
<ul id="banner">
<li><img src="<?php echo $this->_var['web']['inbanner']; ?>" alt="baner3"></li>
</ul>
<div class="bannerTopLogo"></div>
</div>
</div>
</div>
<header>
<div class="wrap b-box clearfix">
<div class="leftBox clearfix">
<div class="logo"><a href="/" title="<?php echo $this->_var['web']['cname']; ?>" style="background: url(<?php echo $this->_var['web']['logo']; ?>) no-repeat;"><?php echo $this->_var['web']['cname']; ?></a></div>
</div>
<nav class="menuBox">
<ul class="menu cleafix">
<li id="menu01"><a href="/#about">關於我們</a></li>
<li id="menu02"><a href="/#news">最新消息</a></li>
<li id="menu03"><a href="/room.php?act=list">服務項目</a></li>
<li id="menu04"><a href="/#fac">工程案例</a></li>
<li id="menu05"><a href="/#location">交通位置</a></li>
<li id="menu06"><a href="<?php echo $this->_var['site']['facebook']; ?>" target="_blank">FB粉絲團</a></li>
</ul>
</nav>
<div class="social">
<?php if ($this->_var['web']['line']): ?>
<a class="fb" href="<?php echo $this->_var['web']['line']; ?>" target="_blank"><i class="fa fa-comment"></i></a>
<?php endif; ?>
<a href="#" class="contactLink" data-mail="<?php echo $this->_var['web']['email']; ?>"><i class="fa fa-envelope"></i></a>
<a href="tel:<?php echo $this->_var['web']['tel']; ?>"><i class="fa fa-phone"></i></a>
<?php if ($this->_var['web']['facebook']): ?>
<a class="fb" href="<?php echo $this->_var['web']['facebook']; ?>" target="_blank"><i class="fa fa-facebook"></i></a>
<?php endif; ?>
</div>
<div class="rightBox">
<a href="tel:<?php echo $this->_var['web']['tel']; ?>" target="_blank">來電諮詢 / CONTACT</a>
</div>
</div>
</header>

View File

@ -1,263 +0,0 @@
<!DOCTYPE html>
<html lang="zh-Hant-TW"><head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $this->_var['pt']['name']; ?><?php echo $this->_var['pt']['mtitle']; ?></title>
<meta name="description" content="<?php echo $this->_var['pt']['mdesc']; ?>">
<meta name="keywords" content="<?php echo $this->_var['pt']['mkeyword']; ?>">
<link rel="canonical" href="https://<?php echo $this->_var['main_domain']; ?>/" />
<script src="<?php echo $this->_var['tpl']; ?>js/zln2mrk.js"></script>
<script>try{Typekit.load({async: true});}catch(e){}</script>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/layout.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/home.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/main.css">
<script src="<?php echo $this->_var['tpl']; ?>js/include.js?v=2020082701"></script>
<link href="https://fonts.googleapis.com/css?family=Noto+Sans+TC&display=swap" rel="stylesheet">
</head>
<body>
<div class="outerWrap b-box">
<header>
<div class="logo"><a href="/" title="<?php echo $this->_var['pt']['name']; ?>" style="background: url('<?php echo $this->_var['pt']['logo']; ?>') no-repeat;"><?php echo $this->_var['pt']['name']; ?></a></div>
<nav class="menuBox">
<ul class="menu cleafix">
<?php $_from = $this->_var['rnd5_portals_1']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'pts1');$this->_foreach['pts1'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['pts1']['total'] > 0):
foreach ($_from AS $this->_var['pts1']):
$this->_foreach['pts1']['iteration']++;
?>
<li><a href="<?php echo $this->_var['http']; ?><?php echo $this->_var['pts1']['domain']; ?>"><?php echo $this->_var['pts1']['name']; ?></a></li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</nav>
<div style="display:flex;">
<div class="hotelslink">
<strong class="hotelslinkbut"><?php echo $this->_var['keywords']; ?></strong>
<ul>
<li><a href="/">不分區</a></li>
<?php $_from = $this->_var['keyword_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'keyword');$this->_foreach['keyword'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['keyword']['total'] > 0):
foreach ($_from AS $this->_var['keyword']):
$this->_foreach['keyword']['iteration']++;
?>
<li><a href="/<?php echo $this->_var['keyword']['name']; ?>-<?php echo $this->_var['pt']['name']; ?>"><?php echo $this->_var['keyword']['name']; ?></a></li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>
<!--<div class="bookingArea"><strong class="bookingBtn" href="javascript:;">依景點分類</strong>-->
<!--<ul>-->
<?php $_from = $this->_var['rnd5_portals_3']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'pts3');$this->_foreach['pts3'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['pts3']['total'] > 0):
foreach ($_from AS $this->_var['pts3']):
$this->_foreach['pts3']['iteration']++;
?>
<!--<li><a href="<?php echo $this->_var['http']; ?><?php echo $this->_var['pts3']['domain']; ?>"><?php echo $this->_var['pts3']['name']; ?></a></li>-->
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
<!--</ul>-->
<!--</div>-->
</div>
</header>
<div class="bannerArea b-box">
<div class="bannerBox">
<ul id="banner">
<?php $_from = $this->_var['ad1_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad1s');$this->_foreach['ad1s'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['ad1s']['total'] > 0):
foreach ($_from AS $this->_var['ad1s']):
$this->_foreach['ad1s']['iteration']++;
?>
<li>
<a href="<?php echo $this->_var['http']; ?><?php echo $this->_var['ad1s']['domain']; ?>" target="_blank">
<img src="/<?php echo $this->_var['ad1s']['image1']; ?>">
<div class="btxt">
<h2><?php echo $this->_var['ad1s']['cname']; ?></h2>
<h3><?php echo $this->_var['ad1s']['banner_text']; ?></h3>
<?php echo $this->_var['ad1s']['slogon']; ?>
</div>
</a>
</li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>
</div>
<div class="mainArea">
<div class="aboutArea" id="about">
<a class="btnDown"></a>
</div>
<div class="hotelsArea linkshow" id="hotels">
<div class="wrap b-box clearfix">
<div class="titleBox">
<em>Hot Store</em>
<h2>熱門店家推薦</h2>
</div>
<ul>
<?php $_from = $this->_var['ad2_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad2s');$this->_foreach['ad2s'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['ad2s']['total'] > 0):
foreach ($_from AS $this->_var['ad2s']):
$this->_foreach['ad2s']['iteration']++;
?>
<li>
<div class="item clearfix">
<div class="Img">
<h3><?php echo $this->_var['ad2s']['cname']; ?><em>View More</em></h3>
<a href="<?php echo $this->_var['http']; ?><?php echo $this->_var['ad2s']['domain']; ?>" target="_blank"><img src="/<?php echo $this->_var['ad2s']['image2']; ?>" alt="<?php echo $this->_var['ad2s']['cname']; ?>"></a>
<div class="infobar">
<p class="information">
<?php echo $this->_var['ad2s']['address']; ?><br>
訂房專線:<?php echo $this->_var['ad2s']['tel']; ?></p>
<a class="weblink" target="_blank" href="<?php echo $this->_var['http']; ?><?php echo $this->_var['ad2s']['domain']; ?>" title="官方網站">官方網站<em>WEB</em></a>
<a class="bookinglink" target="_blank" href="<?php echo $this->_var['ad2s']['vrmap']; ?>" title="地理位置">地理位置<em>VIEW</em></a>
</div>
</div>
</div>
</li>
<?php if ($this->_foreach['ad2s']['iteration'] == 2): ?>
</ul>
<ul>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>
</div>
<div class="newsArea golist2" id="news">
<div class="wrap b-box clearfix" id="hot">
<div class="titleBox">
<em>Recommend</em>
<h2>優質店家推薦</h2>
</div>
<ul class="clearfix">
<?php $_from = $this->_var['ad3_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad3s');$this->_foreach['ad3s'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['ad3s']['total'] > 0):
foreach ($_from AS $this->_var['ad3s']):
$this->_foreach['ad3s']['iteration']++;
?>
<li class="room">
<div class="roomslick">
<div class="roomimg"><img alt="<?php echo $this->_var['ad3s']['name']; ?>" src="<?php echo $this->_var['ad3s']['image3']; ?>" title="<?php echo $this->_var['ad3s']['name']; ?>"></div>
<?php $_from = $this->_var['ad3s']['room']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'a3room');$this->_foreach['a3room'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['a3room']['total'] > 0):
foreach ($_from AS $this->_var['a3room']):
$this->_foreach['a3room']['iteration']++;
?>
<!-- <div class="roomimg"><img alt="<?php echo $this->_var['a3room']['name']; ?>" src="themes/vr/portal/images/index01.jpg" title="<?php echo $this->_var['a3room']['name']; ?>"></div>-->
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</div>
<h3 class="ti">| <?php echo $this->_var['ad3s']['cname']; ?></h3>
<div class="text">
<?php echo $this->_var['ad3s']['ad_text2']; ?>
</div>
<ul class="rooms_icon">
<?php $_from = $this->_var['ad3s']['fac_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'a3fac');$this->_foreach['a3fac'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['a3fac']['total'] > 0):
foreach ($_from AS $this->_var['a3fac']):
$this->_foreach['a3fac']['iteration']++;
?>
<li><img src="<?php echo $this->_var['a3fac']['image']; ?>"><p><?php echo $this->_var['a3fac']['name']; ?></p></li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
<div class="w100">
<a class="btn btn-style01" target="_blank" href="<?php echo $this->_var['http']; ?><?php echo $this->_var['ad3s']['domain']; ?>" title="官方網站">官方網站</a>
<a class="btn btn-style02" target="_blank" href="<?php echo $this->_var['ad3s']['vrmap']; ?>" title="地理位置">地理位置</a>
</div>
</li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
<!--<div class="text-center bt-wrap">
<a class="btn btn-normal" href="#" title="看更多房型">看更多房型</a>
</div>-->
<div id="order-now-non"></div>
</div>
</div>
<div class="newsArea golist2" id="news">
<div class="wrap b-box clearfix">
<div class="titleBox">
<em>All Store</em>
<h2>所有店家查詢</h2>
</div>
<ul class="linkList clearfix">
<?php $_from = $this->_var['ad4_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'ad4s');$this->_foreach['ad4s'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['ad4s']['total'] > 0):
foreach ($_from AS $this->_var['ad4s']):
$this->_foreach['ad4s']['iteration']++;
?>
<li>
<div class="item clearfix">
<div class="Imgbox">
<div class="Img">
<a href="<?php echo $this->_var['http']; ?><?php echo $this->_var['ad4s']['domain']; ?>" target='_blank' title="<?php echo $this->_var['ad4s']['cname']; ?>">
<?php if ($this->_var['ad4s']['image4']): ?>
<img src="<?php echo $this->_var['ad4s']['image4']; ?>" alt=<?php echo $this->_var['ad4s']['cname']; ?>">
<?php else: ?>
<img src="themes/vr/portal/images/nopic.png" alt=<?php echo $this->_var['ad4s']['cname']; ?>">
<?php endif; ?>
</a>
</div>
<div class="Txt">
<h3><a href="<?php echo $this->_var['http']; ?><?php echo $this->_var['ad4s']['domain']; ?>" target='_blank' title="<?php echo $this->_var['ad4s']['cname']; ?>"><?php echo $this->_var['ad4s']['cname']; ?></a></h3>
<p><?php echo $this->_var['ad4s']['slogon']; ?></p>
<a class="link" href="<?php echo $this->_var['http']; ?><?php echo $this->_var['ad4s']['domain']; ?>" target='_blank' title="more">more</a>
</div>
</div>
<a class="info" href="<?php echo $this->_var['http']; ?><?php echo $this->_var['ad4s']['domain']; ?>" target='_blank'>
<div class="ad_info">
<div class="date"><?php echo $this->_var['ad4s']['cname']; ?></div>
<b class="hotels">more</b>
</div>
</a>
</div>
</li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>
</div>
</div>
<footer>
<a class="gotopbut">TOP</a>
<div class="wrap">
<?php echo $this->_var['footer_text']; ?>
<div class="copyright">
Copyright © 2020 <?php echo $this->_var['pt']['name']; ?>|優質店家推薦
</div>
</div>
</footer>
</div>
<div class="m_menu b-box clearfix">
<div class="mask"></div>
<div class="controlBox clearfix">
<a class="main"><span></span></a>
<div class="m_logo"><a href="/"><img src="<?php echo $this->_var['pt']['slogo']; ?>"></a></div>
<div class="m_hotelslink">
<strong class="m_hotelslinkbut"><?php echo $this->_var['keywords']; ?></strong>
<ul>
<li><a href="/">不分區</a></li>
<?php $_from = $this->_var['keyword_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'keyword');$this->_foreach['keyword'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['keyword']['total'] > 0):
foreach ($_from AS $this->_var['keyword']):
$this->_foreach['keyword']['iteration']++;
?>
<li><a href="/<?php echo $this->_var['keyword']['name']; ?>-<?php echo $this->_var['pt']['name']; ?>"><?php echo $this->_var['keyword']['name']; ?></a></li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>
</div>
<div class="hideBox">
<p class="sp">CONTACT</p>
<div class="mfun">
<a href="tel:02-66008966"><i class="fa fa-phone"></i></a>
</div>
<p class="sp sp_menu">MENU</p>
</div>
</div>
<link rel="stylesheet" href="<?php echo $this->_var['tpl']; ?>css/index.css">
<script src="<?php echo $this->_var['tpl']; ?>js/index.js?v=2020073001"></script>
<div id="fb-root"></div>
<script src="<?php echo $this->_var['tpl']; ?>js/fb.js"></script>
</body>
</html>

View File

@ -1,43 +0,0 @@
<?php echo $this->fetch('library/page_header.html'); ?>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/room.css">
<div class="mainArea ins">
<div class="wrap b-box">
<div class="titleBox clearfix">
<h2><em>SERVICE</em><strong>服務項目</strong></h2>
</div>
<div class="contentBox clearfix">
<div class="classBox">
<div class="m_classLink"></div>
</div>
<ul class="roomList clearfix">
<?php $_from = $this->_var['rooms']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'room');$this->_foreach['room'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['room']['total'] > 0):
foreach ($_from AS $this->_var['room']):
$this->_foreach['room']['iteration']++;
?>
<li class="g-mv-12 clearfix">
<div class="item clearfix">
<div class="roomLeftBox">
<div class="Img">
<a href="room.php?act=view&id=<?php echo $this->_var['room']['id']; ?>"><img src="<?php echo $this->_var['room']['image1']; ?>" alt="<?php echo $this->_var['room']['name']; ?>"></a>
</div>
</div>
<div class="roomRightBox">
<div class="Txt b-box">
<h3><strong><a href="room.php?act=view&id=<?php echo $this->_var['room']['id']; ?>"><?php echo $this->_var['room']['name']; ?></a></strong></h3>
<p class="ellipsis">
<?php echo $this->_var['room']['price']; ?>
</p>
<br/>
<a href="room.php?act=view&id=<?php echo $this->_var['room']['id']; ?>" class="btnMore">View More</a>
</div>
</div>
</div>
</li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>
</div>
</div>
<?php echo $this->fetch('library/page_footer.html'); ?>

View File

@ -1,607 +0,0 @@
<!DOCTYPE html>
<html lang="zh-Hant">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo $this->_var['site']['cname']; ?></title>
<meta name="description" content="<?php echo $this->_var['site']['mdesc']; ?>">
<meta name="keywords" content="<?php echo $this->_var['site']['mkeyword']; ?>">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/layout.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/home.css?v=6">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/fac.css">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/video.css?v=9">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_var['tpl']; ?>css/jquery.mb.YTPlayer.min.css">
<script src="<?php echo $this->_var['tpl']; ?>js/include.js"></script>
<script src="<?php echo $this->_var['tpl']; ?>js/jquery.mb.YTPlayer.js"></script>
<script src="<?php echo $this->_var['tpl']; ?>js/player.js"></script>
</head>
<body>
<div class="loadingArea">
<div class="loadingMask"></div>
<div class="loader">
<div class="Img"><img src="<?php echo $this->_var['site']['slogo']; ?>"></div>
<div class="spin"><img src="themes/vr/web/images/loader.svg"></div>
</div>
</div>
<div class="outerWrap b-box">
<div class="bannerArea b-box">
<div class="wrap b-box">
<div class="bannerBox">
<div class="bannerTopLogo"></div>
<ul id="banner">
<li>
<img src="<?php echo $this->_var['site']['index_banner']; ?>" alt="banner">
<div class="bannerContent">
<div class="titleBox">
<div class="topTitle"><?php echo $this->_var['site']['ename']; ?></div>
<div class="bottomTitle"><?php echo $this->_var['site']['cname']; ?></div>
</div>
<span style="font-size:0.5rem;"><span style="color:#ffffff;">
<?php echo $this->_var['site']['slogon']; ?>
</span></span>
<br />
<div class="pc">
<div class="btn clearfix">
<a href="tel:<?php echo $this->_var['site']['tel']; ?>" target="_blank"><i class="fa fa-calendar-check-o"></i> 立即來電諮詢</a>
<a href="<?php echo $this->_var['site']['vrmap']; ?>" target="_blank"><i class="fa fa-youtube-play"></i> 地理位置</a>
</div>
</div>
</div>
<div class="playerBox pc" style="background:url('<?php echo $this->_var['site']['index_banner']; ?>'); background-size:cover;">
<div id="bgndVideo" class="player pc" data-property="{videoURL:'<?php echo $this->_var['site']['index_ytb']; ?>',containment:'.playerBox',autoPlay:true, mute:true, startAt:0, opacity:1}">My video</div>
</div>
</li>
</ul>
</div>
</div>
<div class="btnDown"></div>
</div>
<header>
<div class="wrap b-box clearfix">
<div class="leftBox clearfix">
<div class="logo"><a href="/" title="<?php echo $this->_var['site']['cname']; ?>" style="background: url(<?php echo $this->_var['site']['logo']; ?>) no-repeat;"><?php echo $this->_var['site']['cname']; ?></a></div>
</div>
<nav class="menuBox">
<ul class="menu cleafix">
<li id="menu01"><a href="#about">關於我們</a></li>
<li id="menu02"><a href="#news">最新消息</a></li>
<li id="menu03"><a href="room.php?act=list">服務項目</a></li>
<li id="menu04"><a href="#fac">工程案例</a></li>
<li id="menu05"><a href="#location">交通位置</a></li>
<li id="menu06"><a href="<?php echo $this->_var['site']['facebook']; ?>" target="_blank">FB粉絲團</a></li>
</ul>
</nav>
<div class="social">
<?php if ($this->_var['site']['line']): ?>
<a class="fb" href="<?php echo $this->_var['site']['line']; ?>" target="_blank"><i class="fa fa-comment"></i></a>
<?php endif; ?>
<a href="mailto:<?php echo $this->_var['site']['email']; ?>" class="contactLink" data-mail="<?php echo $this->_var['site']['email']; ?>"><i class="fa fa-envelope"></i></a>
<a href="tel:<?php echo $this->_var['site']['tel']; ?>"><i class="fa fa-phone"></i></a>
<a class="fb" href="<?php echo $this->_var['site']['facebook']; ?>" target="_blank"><i class="fa fa-facebook"></i></a>
</div>
<div class="rightBox" id="headerBooking">
<a href="tel:<?php echo $this->_var['site']['tel']; ?>" target="_blank">來電諮詢 / CONTACT</a>
</div>
</div>
</header>
<div class="mainArea">
<div class="newsArea" id="news">
<div class="wrap b-box clearfix">
<div class="topBox">
<div class="boxWrap">
<span>最新消息</span>
<h3>
<a href="news.php?act=list" data-news="NEWS">NEWS</a>
</h3>
</div>
</div>
<ul class="clearfix" id="newsAreaLink">
<?php $_from = $this->_var['news_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'news');$this->_foreach['news'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['news']['total'] > 0):
foreach ($_from AS $this->_var['news']):
$this->_foreach['news']['iteration']++;
?>
<li class="g-tl-4 g-tv-12 clearfix">
<div class="item clearfix">
<div class="Img"><a href="news.php?id=<?php echo $this->_var['news']['id']; ?>" title="<?php echo $this->_var['news']['subject']; ?>"><img src="<?php echo $this->_var['news']['image']; ?>"></a></div>
<div class="Txt b-box">
<div class="date"><?php echo $this->_var['news']['start_time']; ?></div>
<h3><a href="news.php?id=<?php echo $this->_var['news']['id']; ?>" title="<?php echo $this->_var['news']['subject']; ?>" data-abhover="<?php echo $this->_var['news']['subject']; ?>"><?php echo $this->_var['news']['subject']; ?></a></h3>
<a href="news.php?id=<?php echo $this->_var['news']['id']; ?>" class="btnMore">View More</a>
</div>
</div>
</li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>
</div>
<div class="roomArea" id="rooms">
<div class="wrap b-box clearfix">
<div class="leftBox">
<ul class="roomList clearfix" id="roomList">
<?php $_from = $this->_var['rooms_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'room');$this->_foreach['room'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['room']['total'] > 0):
foreach ($_from AS $this->_var['room']):
$this->_foreach['room']['iteration']++;
?>
<li class="">
<div class="item clearfix">
<div class="Img">
<a href="room.php?id=<?php echo $this->_var['room']['id']; ?>">
<img src="<?php echo $this->_var['room']['image1']; ?>" alt="<?php echo $this->_var['room']['name']; ?>">
</a>
</div>
</div>
</li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>
<div class="rightBox">
<div class="topBox">
<div class="boxWrap">
<span>服務項目</span>
<h3><a href="room.php?act=list" data-news="SERVICE">SERVICE</a></h3>
</div>
</div>
<ul class="roomTxtList clearfix" id="roomTxtList">
<?php $_from = $this->_var['rooms_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'room');$this->_foreach['room'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['room']['total'] > 0):
foreach ($_from AS $this->_var['room']):
$this->_foreach['room']['iteration']++;
?>
<li class="">
<div class="item clearfix">
<div class="Txt b-box">
<h3><strong><a href="room.php?id=<?php echo $this->_var['room']['id']; ?>" ><?php echo $this->_var['room']['name']; ?></a></strong></h3>
<p class="ellipsis"><?php echo $this->_var['room']['price']; ?></p>
<a href="room.php?id=<?php echo $this->_var['room']['id']; ?>" class="btnMore">View More</a>
</div>
</div>
</li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
<div class="arrowBox">
<div class="prevArrow"></div>
<div class="nextArrow"></div>
</div>
</div>
</div>
</div>
<div class="aboutArea" id="about">
<div class="wrap b-box clearfix">
<div class="Img"><img src="<?php echo $this->_var['site']['about_image']; ?>" alt="about"></div>
<div class="contentArea">
<div class="topBox">
<div class="rightBox">
<div class="Txt">
<?php echo $this->_var['site']['aboutus']; ?>
<div class="btn">
<a href="tel:<?php echo $this->_var['site']['tel']; ?>">Contact Us</a>
</div>
</div>
</div>
</div>
<div class="bottomBox">
<div class="leftBox">
<h2>about</h2>
</div>
</div>
</div>
</div>
</div>
<div class="mapArea mapArea123" id="fac">
<div class="wrap b-box clearfix">
<div class="pc" style="text-align: center;">
<div class="topBox">
<div class="boxWrap">
<span>工程案例</span>
<h3>
<a href="javascript:;" data-location="CASE">CASE</a>
</h3>
</div>
</div>
</div>
<div class="mo">
<div class="topBox">
<div class="boxWrap">
<span>工程案例</span>
<h3>
<a href="javascript:;" data-location="CASE">CASE</a>
</h3>
</div>
</div>
</div>
<div class="contentBox clearfix">
<div class="classBox">
<ul class="classLink">
<?php $_from = $this->_var['fac_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'fac');$this->_foreach['fac'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['fac']['total'] > 0):
foreach ($_from AS $this->_var['fac']):
$this->_foreach['fac']['iteration']++;
?>
<?php if ($this->_var['fac']['selected']): ?>
<li><a href="javascript:;" class="current"><?php echo $this->_var['fac']['name']; ?></a></li>
<?php endif; ?>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
<div class="m_classLink"></div>
</div>
<ul class="facList clearfix">
<?php $_from = $this->_var['facility_list']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'facility');$this->_foreach['facility'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['facility']['total'] > 0):
foreach ($_from AS $this->_var['facility']):
$this->_foreach['facility']['iteration']++;
?>
<li class="g-d-3 g-ml-6 g-mv-12 clearfix">
<div class="Img"><a class="titan-lb" data-titan-group="gallery" data-fancybox="group" rel="fancybox-thumb" href="<?php echo $this->_var['facility']['img_url']; ?>"><img src="<?php echo $this->_var['facility']['img_url']; ?>"></a></div>
</li>
<?php endforeach; endif; unset($_from); ?><?php $this->pop_vars();; ?>
</ul>
</div>
</div>
</div>
<div class="mapArea" id="location">
<div class="wrap b-box clearfix">
<div class="topBox topBox04">
<div class="boxWrap">
<span>交通位置</span>
<h3>
<a href="javascript:;" data-location="LOCATION">LOCATION</a>
</h3>
</div>
</div>
<div class="textEditor">
<iframe allowfullscreen="<?php echo $this->_var['site']['location_map']; ?>" frameborder="0" scrolling="no" src="<?php echo $this->_var['site']['location_map']; ?>" style="border:0" width="100%" height="450"></iframe><br />
<br />
<?php echo $this->_var['site']['location_desc']; ?>
</div>
</div>
</div>
</div>
<footer class="clearfix">
<div class="wrap b-box clearfix">
<div class="g-4 row one">
<ul class="downMenu cleafix">
<li id="menu11"><a href="#about">關於我們</a></li>
<li id="menu12"><a href="#news">最新消息</a></li>
<li id="menu13"><a href="room.php?act=list">服務項目</a></li>
<li id="menu14"><a href="#fac">工程案例</a></li>
<li id="menu15"><a href="#location">交通位置</a></li>
<li id="menu16"><a href="<?php echo $this->_var['site']['facebook']; ?>" target="_blank">FB粉絲團</a></li>
</ul>
</div>
<div class="g-3 row two">
<h5 class="copyright">
<p><?php echo $this->_var['site']['cname']; ?></p><p class="en"><?php echo $this->_var['site']['ename']; ?></p><br />
<address><?php echo $this->_var['site']['address']; ?></address><br />
<?php echo $this->_var['site']['tel']; ?><br />
<?php echo $this->_var['site']['email']; ?></h5>
</div>
<div class="g-5 row three clearfix">
<div class="title">Contact Us</div>
<div class="social">
<a href="mailto:<?php echo $this->_var['site']['email']; ?>" class="contactLink" data-mail="<?php echo $this->_var['site']['email']; ?>"><i class="fa fa-envelope"></i></a>
<a href="tel:<?php echo $this->_var['site']['tel']; ?>"><i class="fa fa-phone"></i></a>
<a class="fb" href="<?php echo $this->_var['site']['facebook']; ?>" target="_blank"><i class="fa fa-facebook"></i></a>
</div>
<div class="endArea"><?php echo $this->_var['site']['ename']; ?> © ALL RIGHTS RESERVED.</div>
</div>
</div>
<div class="top"></div>
</footer>
</div>
<canvas class="clickFire"></canvas>
<div class="m_menu b-box clearfix">
<div class="mask"></div>
<div class="controlBox clearfix">
<a class="main"><!--<i class="fa fa-reorder"></i>--></a>
<div class="m_logo"><a href="/"><img src="<?php echo $this->_var['site']['slogo']; ?>"></a></div>
<div class="bookingBox">
<a href="tel:<?php echo $this->_var['site']['tel']; ?>" target="_blank">CONTACT</a>
</div>
</div>
<div class="hideBox">
<p class="sp">CONTACT</p>
<div class="mfun">
<a href="<?php echo $this->_var['site']['vrmap']; ?>" class="marker" target="_blank"><i class="fa fa-map-marker"></i></a>
<a href="tel:<?php echo $this->_var['site']['tel']; ?>"><i class="fa fa-phone"></i></a>
<a href="mailto:<?php echo $this->_var['site']['email']; ?>" class="contactLink" data-mail="<?php echo $this->_var['site']['email']; ?>"><i class="fa fa-envelope"></i></a>
</div>
<!--<p class="sp sp_menu">MENU</p>-->
</div>
</div>
<div class="fMenu">
<ul class="clearfix">
<li><a href="/"><i class="fa fa-calendar-check-o"></i><span>首頁</span></a></li>
<li><a href="room.php?act=list"><i class="fa fa-bed"></i><span>服務</span></a></li>
<li><a href="#news"><i class="fa fa-rss"></i><span>消息</span></a></li>
<li><a href="#location" class="marker"><i class="fa fa-map-marker"></i><span>地圖</span></a></li>
<li><a class="goTop"><i class="fa fa-angle-up"></i><span>Top</span></a></li>
</ul>
</div>
<link rel="stylesheet" href="<?php echo $this->_var['tpl']; ?>css/index.css">
<script src="<?php echo $this->_var['tpl']; ?>js/index.js?v=20200726"></script>
<script src="<?php echo $this->_var['tpl']; ?>js/google.js"></script>
<script type="text/javascript" src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<div id="fb-root"></div>
<script src="<?php echo $this->_var['tpl']; ?>js/fb.js"></script>
</body>
</html>