📄 info_view.tpl
字号:
<script language='javascript'>
<!--
function checkValue()
{
var Obj = document.frmInfo;
for(var i = 0; i < Obj.LeftLayout.options.length; i++)
{
Obj.LeftLayout.options[i].selected = true;
}
for(var i = 0; i < Obj.MiddleLayout.options.length; i++)
{
Obj.MiddleLayout.options[i].selected = true;
}
for(var i = 0; i < Obj.RightLayout.options.length; i++)
{
Obj.RightLayout.options[i].selected = true;
}
return true;
}
function add(ADestObj, ASourceObj)
{
eval("var destObj = document.frmInfo." + ADestObj);
eval("var sourceObj = document.frmInfo." + ASourceObj);
var element = document.createElement('OPTION');
element.text = sourceObj.options[sourceObj.selectedIndex].text;
element.value = sourceObj.options[sourceObj.selectedIndex].value;
sourceObj.options.remove(sourceObj.selectedIndex);
destObj.options[destObj.options.length] = element;
}
function removeItem(ASourceObj)
{
eval("var sourceObj = document.frmInfo." + ASourceObj);
if(sourceObj.selectedIndex == -1) alert('请先选择要删除的模组');
else
{
for(i = sourceObj.options.length - 1; i >= 0; i--)
{
if(sourceObj.options[i].selected) sourceObj.options.remove(i);
}
}
}
function upItem(ASourceObj)
{
eval("var sourceObj = document.frmInfo." + ASourceObj);
if(sourceObj.selectedIndex <= 0) return false;
else
{
var tmp = document.createElement('OPTION');
tmp.text = sourceObj.options[sourceObj.selectedIndex].text;
tmp.value = sourceObj.options[sourceObj.selectedIndex].value;
sourceObj.options[sourceObj.selectedIndex].text = sourceObj.options[sourceObj.selectedIndex - 1].text;
sourceObj.options[sourceObj.selectedIndex].value= sourceObj.options[sourceObj.selectedIndex - 1].value;
sourceObj.options[sourceObj.selectedIndex - 1].text = tmp.text;
sourceObj.options[sourceObj.selectedIndex - 1].value= tmp.value;
sourceObj.selectedIndex--;
}
}
function downItem(ASourceObj)
{
eval("var sourceObj = document.frmInfo." + ASourceObj);
if(sourceObj.selectedIndex == -1 || sourceObj.selectedIndex >= sourceObj.options.length - 1) return false;
else
{
var tmp = document.createElement('OPTION');
tmp.text = sourceObj.options[sourceObj.selectedIndex].text;
tmp.value = sourceObj.options[sourceObj.selectedIndex].value;
sourceObj.options[sourceObj.selectedIndex].text = sourceObj.options[sourceObj.selectedIndex + 1].text;
sourceObj.options[sourceObj.selectedIndex].value= sourceObj.options[sourceObj.selectedIndex + 1].value;
sourceObj.options[sourceObj.selectedIndex + 1].text = tmp.text;
sourceObj.options[sourceObj.selectedIndex + 1].value= tmp.value;
sourceObj.selectedIndex++;
}
}
function moveItem(ASourceObj, ADestObj)
{
eval("var sourceObj = document.frmInfo." + ASourceObj);
eval("var destObj = document.frmInfo." + ADestObj);
if(sourceObj.selectedIndex == -1) return false;
var tmp = document.createElement('OPTION');
tmp.value = sourceObj.options[sourceObj.selectedIndex].value;
tmp.text = sourceObj.options[sourceObj.selectedIndex].text;
destObj.options[destObj.length] = tmp;
sourceObj.options.remove(sourceObj.selectedIndex);
destObj.selectedIndex = destObj.options.length - 1;
}
//-->
</script>
<form action="{ACTION}" method='POST' name='frmInfo' onSubmit='return checkValue();' enctype='multipart/form-data'>
<table width="100%" border="0" cellspacing=0 cellpadding=5 class=adminform>
<tr class='info_title'>
<td colspan="8"><strong>更改显示样式</strong></td>
</tr>
<tr class='info_content'>
<td colspan=3>
选择要设定的页面:
<select name='Page' onChange='if(this.options[this.selectedIndex].value) location="{CurrentURL}&code=view_order&Page=" + this.options[this.selectedIndex].value;'>
<optgroup label='系统预置页面'></optgruop>
<option value='index'>商店主页</option>
<option value='product'>默认商品列表页</option>
<option value='detail'>默认商品详细页</option>
<optgroup label='区块列表模板'></optgruop>
<!-- beginRow ListAreaTplList -->
<option value='list_area_tpl_{ListAreaTplList.ID}'>{ListAreaTplList.Title}</option>
<!-- endRow ListAreaTplList -->
<optgroup label='区块详细模板'></optgruop>
<!-- beginRow ViewAreaTplList -->
<option value='view_area_tpl_{ViewAreaTplList.ID}'>{ViewAreaTplList.Title}</option>
<!-- endRow ViewAreaTplList -->
<optgroup label='分类商品列表模板'></optgruop>
{CategoryList1}
<optgroup label='分类商品详细模板'></optgruop>
{CategoryList2}
</select>
</td>
</tr>
<!-- beginRow DesignBlock -->
<tr class='info_title'>
<td colspan="8"><strong>更改显示样式</strong></td>
</tr>
<tr class='info_content' align=center>
<td>左边, 宽度: <input type=text value='{LeftWidth}' name=LeftWidth size=6></td>
<td>中间, 宽度: <input type=text value='{MiddleWidth}' name=MiddleWidth size=6></td>
<td>右边, 宽度: <input type=text value='{RightWidth}' name=RightWidth size=6></td>
</tr>
<tr class='info_content'>
<td align=center>
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr>
<td align=right>
<select name='LeftLayout[]' id='LeftLayout' size=7 multiple>
{LeftLayoutList}
</select>
</td>
<td align=left width=35% valign=top>
<img style='cursor:hand' src='images/m_up.gif' title=Up onClick='upItem("LeftLayout");'><br>
<img style='cursor:hand' src='images/m_dn.gif' title=Down onClick='downItem("LeftLayout");'><br>
<br>
<img style='cursor:hand' src='images/m_ltr.gif' title=Left onClick='moveItem("LeftLayout", "RightLayout");'><br>
<img style='cursor:hand' src='images/m_rtl.gif' title=Right onClick='moveItem("LeftLayout", "MiddleLayout");'><br><br>
<img style='cursor:hand' src='images/m_del.gif' title=Remove onClick='removeItem("LeftLayout");'><br>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<br>
加入下列模组:
<select name='LeftLayoutList'>
{LayoutList}
<option value='{MODULE_TYPE_SEARCH}'>商品搜索模组</option>
<option value='{MODULE_TYPE_LOGIN}'>会员登录模组</option>
<option value='{MODULE_TYPE_CART}'>购物车模组</option>
<option value='{MODULE_TYPE_CATEGORY}'>商品分类模组</option>
</select>
<input type=button value='添加' onClick='add("LeftLayout", "LeftLayoutList");'>
</td>
</tr>
</table>
</td>
<td align=center>
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr>
<td align=right>
<select name='MiddleLayout[]' id='MiddleLayout' size=7 multiple>
{MiddleLayoutList}
</select>
</td>
<td align=left width=35%>
<img style='cursor:hand' src='images/m_up.gif' title=Up onClick='upItem("MiddleLayout");'><br>
<img style='cursor:hand' src='images/m_dn.gif' title=Down onClick='downItem("MiddleLayout");'><br><br>
<img style='cursor:hand' src='images/m_ltr.gif' title=Left onClick='moveItem("MiddleLayout", "LeftLayout");'><br>
<img style='cursor:hand' src='images/m_rtl.gif' title=Right onClick='moveItem("MiddleLayout", "RightLayout");'><br><br>
<img style='cursor:hand' src='images/m_del.gif' title=Remove onClick='removeItem("MiddleLayout");'><br>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<br>
加入下列模组:
<select name='MiddleLayoutList'>
{LayoutList}
<option value='{MODULE_TYPE_SEARCH}'>商品搜索模组</option>
<option value='{MODULE_TYPE_LOGIN}'>会员登录模组</option>
<option value='{MODULE_TYPE_CART}'>购物车模组</option>
<option value='{MODULE_TYPE_CATEGORY}'>商品分类模组</option>
</select>
<input type=button value='添加' onClick='add("MiddleLayout", "MiddleLayoutList");'>
</td>
</tr>
</table>
</td>
<td align=center>
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr>
<td align=right>
<select name='RightLayout[]' id='RightLayout' size=7 multiple>
{RightLayoutList}
</select>
</td>
<td align=left width=35%>
<img style='cursor:hand' src='images/m_up.gif' title=Up onClick='upItem("RightLayout");'><br>
<img style='cursor:hand' src='images/m_dn.gif' title=Down onClick='downItem("RightLayout");'><br><br>
<img style='cursor:hand' src='images/m_ltr.gif' title=Left onClick='moveItem("RightLayout", "MiddleLayout");'><br>
<img style='cursor:hand' src='images/m_rtl.gif' title=Right onClick='moveItem("RightLayout", "LeftLayout");'><br><br>
<img style='cursor:hand' src='images/m_del.gif' title=Remove onClick='removeItem("RightLayout");'><br>
</td>
</tr>
<tr>
<td colspan=2 align=center>
<br>
加入下列模组:
<select name='RightLayoutList'>
{LayoutList}
<option value='{MODULE_TYPE_SEARCH}'>商品搜索模组</option>
<option value='{MODULE_TYPE_LOGIN}'>会员登录模组</option>
<option value='{MODULE_TYPE_CART}'>购物车模组</option>
<option value='{MODULE_TYPE_CATEGORY}'>商品分类模组</option>
</select>
<input type=button value='添加' onClick='add("RightLayout", "RightLayoutList");'>
</td>
</tr>
</table>
</td>
</tr>
<!-- endRow DesignBlock -->
<tr>
<td colspan=3 class=info_content>
<b>注意:</b><br>
如果对应的模板文件中不存在相应标记,则此设置将忽略.<br>
<br>
{left} ==> 左边内容<br>
{middle} ==> 中间内容<br>
{right} ==> 右边内容<br>
{leftWidth} ==> 左边宽度<br>
{middleWidth} ==> 中间宽度<br>
{rightWidth} ==> 右边宽度<br>
</td>
</tr>
<tr align="center" class='info_bottom'>
<td colspan="4">
<input type="submit" value="设置">
<input name="btnSubmit" type="hidden" id="btnSubmit" value="1">
</td>
</tr>
</table>
</form>
<script language='javascript'>
<!--
var DefaultPage = '{Page}';
var Obj = document.all.Page;
for(var i = 0; i < Obj.length; i++)
{
if(Obj.options[i].value == DefaultPage)
{
Obj.options[i].selected = true;
break;
}
}
//-->
</script>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -