⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 setindex.htm

📁 PHPShops多用户商城系统(简称PHPShops)是基于电子商务的一套平台交易系统
💻 HTM
📖 第 1 页 / 共 2 页
字号:
}elseif($id=='category'){print <<<EOT
-->
<table cellspacing="0" cellpadding="0" style="margin-top:15px">
	<caption>商品分类显示设置</caption>
	<tr class="tr2"><td width="25%">选择显示的分类</td><td>
<!--
EOT;
foreach($_Category as $key=>$value){
if($value[type]==0){
$ifcheck = in_array($value['cid'],$syscache) ? 'checked' : '';
print <<<EOT
-->
		<div style="float:left;width:18%"><input type="checkbox" name="cate[]" value="$value[cid]" $ifcheck /> $value[name]</div>
<!--
EOT;
}}print <<<EOT
-->
	</td></tr>
</table>
<!--
EOT;
}elseif($id=='hotgoods'){
${'ifcheck_'.$sysconfig[type]} = 'checked';
print <<<EOT
-->
<table cellspacing="0" cellpadding="0" style="margin-top:15px">
	<caption>推荐商品设置</caption>
	<tr class="tr2"><td width="25%">推荐商品显示个数</td><td><input type="text" class="ip" name="sysconfig[num]" value="$sysconfig[num]" size="10" /></td></tr>
	<tr class="tr2"><td>推荐商品抽取方式</td><td><input type="radio" name="sysconfig[type]" value="1" $ifcheck_1 /> 最新推荐商品 <input type="radio" name="sysconfig[type]" value="2" $ifcheck_2 /> 随机抽取推荐商品</td></tr>
	<tr class="tr2"><td>自动更新频率(3600为1小时)</td><td><input type="text" class="ip" name="upstep" value="$rt[upstep]" size="20" /></td></tr>
</table>
<!--
EOT;
}elseif($id=='hotshop'){
${'ifcheck_'.$sysconfig[type]} = 'checked';
print <<<EOT
-->
<table cellspacing="0" cellpadding="0" style="margin-top:15px">
	<caption>推荐店铺设置</caption>
	<tr class="tr2"><td width="25%">推荐店铺显示个数</td><td><input type="text" class="ip" name="sysconfig[num]" value="$sysconfig[num]" size="10" /></td></tr>
	<tr class="tr2"><td>推荐店铺抽取方式</td><td><input type="radio" name="sysconfig[type]" value="1" $ifcheck_1 /> 最新推荐店铺 <input type="radio" name="sysconfig[type]" value="2" $ifcheck_2 /> 随机抽取推荐店铺</td></tr>
	<tr class="tr2"><td>自动更新频率(3600为1小时)</td><td><input type="text" class="ip" name="upstep" value="$rt[upstep]" size="20" /></td></tr>
</table>
<!--
EOT;
}elseif($id=='newtrade'){
${'ifpay_'.$sysconfig[ifpay]} = 'checked';
print <<<EOT
-->
<table cellspacing="0" cellpadding="0" style="margin-top:15px">
	<caption>最新交易设置</caption>
	<tr class="tr2"><td width="25%">选择交易成功规则</td><td><input type="radio" name="sysconfig[ifpay]" value="1" $ifpay_1 />拍下商品即算 <input type="radio" name="sysconfig[ifpay]" value="2" $ifpay_2 />买家付完款即算 <input type="radio" name="sysconfig[ifpay]" value="3" $ifpay_3 />卖家发完货即算 <input type="radio" name="sysconfig[ifpay]" value="4" $ifpay_4 />买家确认收货即算</td></tr>
	<tr class="tr2"><td width="25%">显示条数</td><td><input type="text" class="ip" name="sysconfig[num]" value="$sysconfig[num]" size="10" /></td></tr>
	<tr class="tr2"><td>模块自定义高度(单位 px)<br />当该值 < 实际高度时,将翻滚显示</td><td><input type="text" class="ip" name="sysconfig[height]" value="$sysconfig[height]" size="10" /> (用来调整首页左右布局,建议设置在 200左右)</td></tr>
	<tr class="tr2"><td>自动更新频率(3600为1小时)</td><td><input type="text" class="ip" name="upstep" value="$rt[upstep]" size="20" /></td></tr>
</table>
<!--
EOT;
}elseif($id=='guidebuy'){print <<<EOT
-->
<div class="itable">
<table cellspacing="0" cellpadding="0">
	<caption>说明</caption>
	<tr><td>
	<div style="line-height:20px;margin:5px 0 5px 20px;">
		1. 添加商品的tid,可重新自定义商品名称和显示图片,留空则用该商品本身的名称和图片<br />
		2. 首页只显示四个导购商品,若导购商品大于四个,则随机抽取的方式进行显示
	</div>
	</td></tr>
</table>
</div>
<div class="c"></div>

<table cellspacing="0" cellpadding="0" style="margin-top:15px">
	<caption>导购参数设置</caption>
	<tr class="tr2"><td width="25%">自动更新频率(3600为1小时)</td><td><input type="text" class="ip" name="upstep" value="$rt[upstep]" size="20" /></td></tr>
</table>

<table cellspacing="0" cellpadding="0" style="margin-top:15px">
	<caption><a style="cursor:pointer;color:blue" onclick="addimg();" class="fr">[添加]</a>导购设置</caption>
	<tbody id="qmode" style="display:none"><tr class="tr2" align="center">
		<td><input type="text" size="5" class="ip" name="tid[]" value="" /></td>
		<td><input type="text" size="30" class="ip" name="subject[]" value="" /></td>
		<td><input type="text" size="30" class="ip" name="goodsimg[]" value="" /></td>
		<td><input type="checkbox" name="ifopen[]" value="1" checked /></td>
		<td><a style="cursor:pointer;" onclick="delimg(this);">删除</a></td>
	</tr></tbody>
	<tr class="tr1" align="center">
		<td>商品 tid</td>
		<td>商品名称</td>
		<td>商品图片</td>
		<td>启用?</td>
		<td>删?</td>
	</tr>
<!--
EOT;
foreach($sysconfig as $key=>$value){
$ifcheck = $value['ifopen'] ? 'checked' : '';
print <<<EOT
-->
	<tr class="tr2" align="center">
		<td><input type="text" size="5" class="ip" name="tid[]" value="$value[tid]" /></td>
		<td><input type="text" size="30" class="ip" name="subject[]" value="$value[subject]" /></td>
		<td><input type="text" size="30" class="ip" name="goodsimg[]" value="$value[goodsimg]" /></td>
		<td><input type="checkbox" name="ifopen[]" value="1" $ifcheck /></td>
		<td><a style="cursor:pointer;" onclick="delimg(this);">删除</a></td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
	<tbody id="qbody"></tbody>
</table>
<script language="JavaScript">
function addimg(){
	var s = $('qmode').firstChild.cloneNode(true);
	$('qbody').appendChild(s);
}
function delimg(obj){
	var o = obj.parentNode.parentNode;
	o.parentNode.removeChild(o);
}
</script>
<!--
EOT;
} elseif($id == 'goods'){
${'ifcheck_'.$sysconfig[type]} = 'checked';
${'showtype_'.$sysconfig[showtype]} = 'checked';
print <<<EOT
-->
<div class="itable">
<table cellspacing="0" cellpadding="0">
	<caption>帮助信息</caption>
	<tr><td>
	<div style="line-height:20px;margin:5px 0 5px 20px;">
		商品显示方式:选择文字显示,则排版再首页的右侧;选择图文显示,则排版再左侧。
	</div>
	</td></tr>
</table>
</div>
<div class="c"></div>

<table cellspacing="0" cellpadding="0" style="margin-top:15px">
	<caption>商品显示设置</caption>
	<tr class="tr2"><td width="25%">商品显示个数</td><td><input type="text" class="ip" name="sysconfig[num]" value="$sysconfig[num]" size="10" /></td></tr>
	<tr class="tr2"><td>商品抽取方式</td><td><input type="radio" name="sysconfig[type]" value="1" $ifcheck_1 /> 最新商品 <input type="radio" name="sysconfig[type]" value="2" $ifcheck_2 /> 随机抽取商品</td></tr>
	<tr class="tr2"><td>商品显示方式</td><td><input type="radio" name="sysconfig[showtype]" value="1" $showtype_1 /> 文字显示 <input type="radio" name="sysconfig[showtype]" value="2" $showtype_2 /> 图文显示</td></tr>
	<tr class="tr2"><td>自动更新频率(3600为1小时)</td><td><input type="text" class="ip" name="upstep" value="$rt[upstep]" size="20" /></td></tr>
</table>
<!--
EOT;
} elseif($id == 'shop'){
${'ifcheck_'.$sysconfig[type]} = 'checked';
print <<<EOT
-->
<table cellspacing="0" cellpadding="0" style="margin-top:15px">
	<caption>店铺显示设置</caption>
	<tr class="tr2"><td width="25%">店铺显示个数</td><td><input type="text" class="ip" name="sysconfig[num]" value="$sysconfig[num]" size="10" /></td></tr>
	<tr class="tr2"><td>店铺抽取方式</td><td><input type="radio" name="sysconfig[type]" value="1" $ifcheck_1 /> 最新店铺 <input type="radio" name="sysconfig[type]" value="2" $ifcheck_2 /> 随机抽取店铺</td></tr>
	<tr class="tr2"><td>自动更新频率(3600为1小时)</td><td><input type="text" class="ip" name="upstep" value="$rt[upstep]" size="20" /></td></tr>
</table>
<!--
EOT;
} elseif(substr($id,0,4) == 'bbs_'){
${'ifcheck_'.$sysconfig[type]} = 'checked';
print <<<EOT
-->
<table cellspacing="0" cellpadding="0" style="margin-top:15px">
	<caption>模块设置</caption>
	<tr class="tr2"><td width="25%">调用类型</td><td><input type="radio" name="sysconfig[type]" value="new" $ifcheck_new onclick="sendtype('unforum')" /> 最新帖子 <input type="radio" name="sysconfig[type]" value="digest" $ifcheck_digest onclick="sendtype('unforum')" /> 精华帖子 <input type="radio" name="sysconfig[type]" value="hit" $ifcheck_hit onclick="sendtype('unforum')" /> 点击量最高帖子 <input type="radio" name="sysconfig[type]" value="reply" $ifcheck_reply onclick="sendtype('unforum')" /> 最新回复 <input type="radio" name="sysconfig[type]" value="forum" $ifcheck_forum onclick="sendtype('forum')" /> 版块帖子</td></tr>
	<tbody id="forum" style="display:none">
	<tr class="tr1">
		<td>论坛版块FID</td>
		<td><input size="30" name="sysconfig[fid]" value="$sysconfig[fid]" class="ip" ></td>
	</tr>
	</tbody>
	<tr class="tr2"><td>自动更新频率(3600为1小时)</td><td><input size="30" name="upstep" value="$rt[upstep]" class="ip" /></td></tr>
	<tr class="tr2"><td>论坛访问地址<br />(注意不要在最后加/)</td><td><input size="30" name="sysconfig[bbsurl]" value="$sysconfig[bbsurl]" class="ip" /></td></tr>
	<tr class="tr2"><td>每个模块调用帖子个数</td><td><input size="30" name="sysconfig[num]" value="$sysconfig[num]" class="ip" /></td></tr>
	<tr class="tr2"><td>图片地址</td><td><input size="30" name="sysconfig[imgurl]" value="$sysconfig[imgurl]" class="ip" /></td></tr>
	<tr class="tr2"><td>图片链接地址</td><td><input size="30" name="sysconfig[imglink]" value="$sysconfig[imglink]" class="ip" /></td></tr>
</table>
<script language="JavaScript">
function sendtype(show){
	$('forum').style.display = show == 'forum' ? '' : 'none';
}
sendtype('$sysconfig[type]');
</script>
<!--
EOT;
}print <<<EOT
-->
<div class="tac">
	<input type="submit" class="bt bt2" value="提 交" />
</div>
</form>
</div>
<!--
EOT;
}include_once Template('adminbottom');
?>-->

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -