<?php (!defined('IN_ADMIN') || !defined('IN_MUDDER')) && exit('Access Denied'); ?>
<div id="body">
<div class="space">
    <div class="subtitle">操作提示</div>
    <table class="maintable" border="0" cellspacing="0" cellpadding="0">
    <tr><td>
        <li>“<span class="font_1">{SITE}</span>”则为显示网站URL（<?=$_config['siteurl']?>）；</li>
        <li>各个模块的网站路径为{模块标识-属性}，标识名可在模块列表中查看到，属性包括：name(名称),url(地址)。填写“<span class="font_1">{shop-name}</span>”则为网站商铺目录“<?=$_modules['shop']['name']?>”，填写“<span class="font_1">{shop-url}</span>”则为网站优惠券目录“<?=$_modules['card']['url']?>”；</li>
        <li><span class="font_1">当页标识</span>作用：利用与每个页面SCRIPTANV（标识当前打开的是那个页面）变量对应起来，便可以达到Tab样式菜单的当前页突出显示。</li>
    </td></tr>
    </table>
</div>
<form method="post" action="admincp.php?action=<?=$action?>&file=<?=$file?>&">
    <div class="space">
        <div class="subtitle">菜单管理</div>
        <table class="maintable" border="0" cellspacing="0" cellpadding="0">
            <tr class="altbg1">
                <td width="50">删?</td>
                <td width="*">排序</td>
                <td width="160">标题&nbsp;[title]</td>
                <td width="160">当页标识&nbsp;[scriptnav]</td>
                <td width="220">网址&nbsp;[url]</td>
                <td width="220">图标&nbsp;[icon]</td>
                <td width="100">组标识&nbsp;[flag]</td>
            </tr>
            <?if($total > 0){?>
            <?while($row=$db->fetch_array($query)) {?>
            <tr>
                <td><input type="checkbox" name="menuids[]" value="<?=$row['menuid']?>" /></td>
                <td><input type="text" name="menulist[<?=$row['menuid']?>][listorder]" class="txtbox5" value="<?=$row['listorder']?>" /></td>
                <td><input type="text" name="menulist[<?=$row['menuid']?>][title]" class="txtbox3" value="<?=$row['title']?>" /></td>
                <td><input type="text" name="menulist[<?=$row['menuid']?>][scriptnav]" class="txtbox3" value="<?=$row['scriptnav']?>" /></td>
                <td><input type="text" name="menulist[<?=$row['menuid']?>][url]" class="txtbox3" value="<?=$row['url']?>" /></td>
                <td><input type="text" name="menulist[<?=$row['menuid']?>][icon]" class="txtbox3" value="<?=$row['icon']?>" /></td>
                <td><?=$row['flag']?></td>
            </tr>
            <?}?>
            <tr class="altbg1">
                <td colspan="7"><input type="button" value="全选" onclick="checkbox_checked('menuids[]');" class="btn2" />&nbsp;<?=$multipage?></td>
            </tr>
            <?} else {?>
                <td colspan="7">暂无信息。</td>
            <?}?>
            <tr class="altbg1">
                <td>增加:</td>
                <td><input type="text" name="newmenu[listorder]" class="txtbox5" /></td>
                <td><input type="text" name="newmenu[title]" class="txtbox3" /></td>
                <td><input type="text" name="newmenu[scriptnav]" class="txtbox3" /></td>
                <td><input type="text" name="newmenu[url]" class="txtbox3" /></td>
                <td><input type="text" name="newmenu[icon]" class="txtbox3" /></td>
                <td>&nbsp;</td>
            </tr>
        </table>
        <center><input type="submit" name="dosubmit" value="提交操作" class="btn" /></center>
    </div>
</form>
</div>