www.gusucode.com > Destoon B2B仿淘宝电子商务网站 UTF8 v6.0源码程序 > destoon/admin/template/category_edit.tpl.php
<?php defined('DT_ADMIN') or exit('Access Denied'); include tpl('header'); show_menu($menus); ?> <form method="post" action="?" onsubmit="return check();"> <input type="hidden" name="file" value="<?php echo $file;?>"/> <input type="hidden" name="action" value="<?php echo $action;?>"/> <input type="hidden" name="mid" value="<?php echo $mid;?>"/> <input type="hidden" name="catid" value="<?php echo $catid;?>"/> <div class="tt">分类修改</div> <table cellpadding="2" cellspacing="1" class="tb"> <tr> <td class="tl"><span class="f_hid">*</span> 上级分类</td> <td><?php echo category_select('category[parentid]', '请选择', $parentid, $mid);?><?php tips('如果不选择,则为顶级分类');?></td> </tr> <tr> <td class="tl"><span class="f_red">*</span> 分类名称</td> <td><input name="category[catname]" type="text" id="catname" size="20" value="<?php echo $catname;?>"/> <?php echo dstyle('category[style]', $style);?> <span id="dcatname" class="f_red"></span></td> </tr> <tr> <td class="tl"><span class="f_red">*</span> 分类目录</td> <td><input name="category[catdir]" type="text" id="catdir" size="20" value="<?php echo $catdir;?>"/><?php tips('限英文、数字、中划线、下划线、斜线,该分类相关的html文件将保存在此目录');?> <span id="dcatdir" class="f_red"></span></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 字母索引</td> <td><input name="category[letter]" type="text" id="letter" size="2" value="<?php echo $letter;?>"/></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 级别</td> <td><input name="category[level]" type="text" size="2" value="<?php echo $level;?>"/><?php tips('0 - 不在首页显示 1 - 正常显示 2 - 首页和上级分类并列显示');?></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 分类模板</td> <td><?php echo tpl_select('list', $MODULE[$mid]['module'], 'category[template]', '默认模板', $template);?></td> </tr> <tr style="display:<?php echo $mid == 18 ? 'none' : '';?>;"> <td class="tl"><span class="f_hid">*</span> 内容模板</td> <td><?php echo tpl_select('show', $MODULE[$mid]['module'], 'category[show_template]', '默认模板', $show_template);?></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> Title(SEO标题)</td> <td><input name="category[seo_title]" type="text" id="seo_title" value="<?php echo $seo_title;?>" size="61"></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> Meta Keywords<br/> (网页关键词)</td> <td><textarea name="category[seo_keywords]" cols="60" rows="3" id="seo_keywords"><?php echo $seo_keywords;?></textarea></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> Meta Description<br/> (网页描述)</td> <td><textarea name="category[seo_description]" cols="60" rows="3" id="seo_description"><?php echo $seo_description;?></textarea></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 权限设置</td> <td class="f_blue">如果没有特殊需要,以下选项不需要设置,全选或全不选均代表拥有对应权限</td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 允许浏览分类</td> <td><?php echo group_checkbox('category[group_list][]', $group_list);?></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 允许浏览分类信息内容</td> <td><?php echo group_checkbox('category[group_show][]', $group_show);?></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 允许发布信息</td> <td><?php echo group_checkbox('category[group_add][]', $group_add);?></td> </tr> </table> <div class="sbt"><input type="submit" name="submit" value="确 定" class="btn"/> <input type="reset" name="reset" value="重 置" class="btn"/></div> </form> <script type="text/javascript"> function ckDir() { if(Dd('catdir').value == '') { Dtip('请填写分类目录'); Dd('catdir').focus(); return false; } var url = '?file=category&action=ckdir&mid=<?php echo $mid;?>&catdir='+Dd('catdir').value; Diframe(url, 0, 0, 1); } function check() { if(Dd('catname').value == '') { Dmsg('请填写分类名称', 'catname'); return false; } if(Dd('catdir').value == '') { Dmsg('请填写分类目录', 'catdir'); return false; } return true; } </script> <script type="text/javascript">Menuon(1);</script> <?php include tpl('footer');?>