后台新增门店菜单

2016-07-07 15:12 来源:www.chinab4c.com 作者:ecshop专家



小弟在ecshop后台商品菜单下面新增一个门店菜单 mendian.php

在门店列表页面,数据加载成功,但是列名没有显示:
麻烦给位盟友看看代码!!

QQ截图20130514175407.png
我的新建页面 mendian.htm
<!-- $Id: tag_manage.htm 14216 2008-03-10 02:27:21Z testyang $ -->

{if $full_page}
{include file="pageheader.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}

<form method="POST" action="shanghu.php?act=batch_drop" name="listForm">
<!-- start tag list -->
<div class="list-div" id="listDiv">
{/if}
=====
<table cellpadding="3" cellspacing="1">
<tr>
<th>
<input onclick='listTable.selectAll(this, "checkboxes")' type="checkbox">
<a href="javascript:listTable.sort('tag_id'); ">{$lang.record_id}</a>{$sort_tag_id}
</th>
<th><a href="javascript:listTable.sort('sname'); ">{$lang.sname}</a>{$sort_sname}</th>
<th><a href="javascript:listTable.sort('saddress'); ">{$lang.saddress}</a>{$sort_saddress}</th>
<th>{$lang.handler}</th>
</tr>
{foreach from=$tag_list item=tag}
<tr>
<td><span><input name="checkboxes[]" type="checkbox" value="{$tag.tag_id}">{$tag.id}</span></td>
<td class="first-cell"><span>{$tag.sname}</span></td>
<td align="left"><span><a href="../goods.php?id={$tag.goods_id}" target="_blank">{$tag.saddress}</a></span></td>
<td align="center">
<span>
<a href="tag_manage.php?act=edit&id={$tag.tag_id}" title="{$lang.edit}"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>
<a href="javascript:;" title="{$lang.remove}"><img src="images/icon_drop.gif" border="0" height="16" width="16"></a></span>
</td>
</tr>
{foreachelse}
<tr><td class="no-records" colspan="10">{$lang.no_records}</td></tr>
{/foreach}
<tr>
<td colspan="2"><input type="submit" class="button" id="btnSubmit" value="{$lang.drop_tags}" disabled="true" /></td>
<td align="right" nowrap="true" colspan="3">{include file="page.htm"}</td>
</tr>
</table>

{if $full_page}
</div>
<!-- end tag list -->
</form>
========================================================
===门店mendian.php<?php

//防止URL直接访问
define('IN_ECS', true);
//管理中心公用文件
require(dirname(__FILE__) . '/includes/init.php');

/* act鎿嶄綔椤圭殑鍒濆?鍖 */
$_REQUEST['act'] = trim($_REQUEST['act']);//list

if (empty($_REQUEST['act']))
{
$_REQUEST['act'] = 'list';
}

/*------------------------------------------------------ */
//-- 鑾峰彇鏍囩?鏁版嵁鍒楄〃
/*------------------------------------------------------ */
if ($_REQUEST['act'] == 'list')
{
/* 鏉冮檺鍒ゆ柇 */
admin_priv('shanghu');//调用admin_priv函数判断权限

/* 妯℃澘璧嬪

回答:
谢谢楼主,楼主太好人了

需要有languages里面语言包支持