www.gusucode.com > Destoon B2B仿淘宝电子商务网站 UTF8 v6.0源码程序 > destoon/admin/template/module_edit.tpl.php
<?php defined('DT_ADMIN') or exit('Access Denied'); include tpl('header'); show_menu($menus); ?> <div class="tt">修改模块</div> <form method="post" action="?" onsubmit="return check();"> <input type="hidden" name="file" value="<?php echo $file;?>"/> <input type="hidden" name="action" value="edit"/> <input type="hidden" name="modid" value="<?php echo $modid;?>"/> <table cellpadding="2" cellspacing="1" class="tb"> <tr> <td class="tl"><span class="f_hid">*</span> 模块类型</td> <td class="f_red"><?php echo $islink ? '外部链接' : '内置模型('.$modulename.$module.')'?></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 模块名称</td> <td><input name="post[name]" type="text" id="name" size="10" value="<?php echo $name;?>"/> <?php echo dstyle('post[style]', $style);?> <span id="dname" class="f_red"></span></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 导航菜单</td> <td><input type="radio" name="post[ismenu]" value="1" <?php if($ismenu) echo 'checked';?>/> 是 <input type="radio" name="post[ismenu]" value="0" <?php if(!$ismenu) echo 'checked';?>/> 否</td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 新窗口打开</td> <td><input type="radio" name="post[isblank]" value="1" <?php if($isblank) echo 'checked';?>/> 是 <input type="radio" name="post[isblank]" value="0" <?php if(!$isblank) echo 'checked';?>/> 否</td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 独立LOGO</td> <td><input type="radio" name="post[logo]" value="1" <?php if($logo) echo 'checked';?>/> 是 <input type="radio" name="post[logo]" value="0" <?php if(!$logo) echo 'checked';?>/> 否 <?php tips('如果选择是,请将LOGO图片命名为logo_'.$modid.'.gif<br/>上传至skin/'.$CFG['skin'].'/image/目录');?></td> </tr> <?php if($islink) { ?> <tr> <td class="tl"><span class="f_hid">*</span> 链接地址</td> <td><input name="post[linkurl]" type="text" id="linkurl" size="40" value="<?php echo $linkurl;?>"/> <span id="dlinkurl" class="f_red"></span></td> </tr> <?php } else { ?> <tr> <td class="tl"><span class="f_hid">*</span> 安装目录</td> <td><input name="post[moduledir]" type="text" id="moduledir" size="30" value="<?php echo $moduledir;?>"/> <input type="button" class="btn" value="目录检测" onclick="ckDir();"><?php tips('限英文、数字、中划线、下划线');?> <span id="dmoduledir" class="f_red"></span> <br/>提示:如果不是十分必要,建议不要频繁更改安装目录 </td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 绑定域名</td> <td><input name="post[domain]" type="text" id="domain" size="30" value="<?php echo $domain;?>"/><?php tips('例如http://sell.destoon.com/,以 / 结尾<br/>如果不绑定请勿填写');?></td> </tr> <?php } ?> </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('moduledir').value == '') { Dalert('请填写安装目录'); Dd('moduledir').focus(); return false; } var url = '?file=module&action=ckdir&moduledir='+Dd('moduledir').value; Diframe(url, 0, 0, 1); } function check() { var l; var f; f = 'name'; l = Dd(f).value; if(l == '') { Dmsg('请填写模块名称', f); return false; } <?php if($islink) { ?> f = 'linkurl'; l = Dd(f).value.length; if(l < 2) { Dmsg('请填写链接地址', f); return false; } <?php } else { ?> f = 'moduledir'; l = Dd(f).value; if(l == '') { Dmsg('请填写安装目录', f); return false; } <?php } ?> return true; } </script> <script type="text/javascript">Menuon(1);</script> <?php include tpl('footer');?>