list_category.tpl

来自「渣渣网络商店系统[ZZShop] V1.0」· TPL 代码 · 共 34 行

TPL
34
字号
<script language='javascript'>
<!--
	function editType(id)
	{
		window.location = '{CurrentURL}&code=modify&TypeID=' + id;
	}
	
	function deleteType(id, TypeName)
	{
		if(confirm('即将删除 [' + TypeName + '] 信息, 是否继续 ? \n\n 删除信息将导致所有属于该分类其子分类及所有属于它们的商品不能正常访问'))
		{
			window.location = '{CurrentURL}&code=delete&TypeID=' + id;
		}
	}
	
	function addType(ParentID)
	{
			if(ParentID) window.location = '{CurrentURL}&code=add&ParentID=' + ParentID;
			else window.location = '{CurrentURL}&code=add';
	}
//-->
</script>
<table width="100%"  border="0" cellspacing=0 cellpadding=5 class=adminform>
  <tr class='info_title'>
    <td><strong>商品分类列表</strong></td>
  </tr>
  <tr class='info_content'>
    <td>{CategoryList}</td>
  </tr>
  <tr class='info_bottom'>
    <td align="right" bgcolor="#EEEEEE"><a href='#' onClick="addType();">添加分类</a></td>
  </tr>
</table> 

⌨️ 快捷键说明

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