www.gusucode.com > Destoon B2B仿淘宝电子商务网站 UTF8 v6.0源码程序 > destoon/module/quote/admin/template/product_edit.tpl.php
<?php defined('DT_ADMIN') or exit('Access Denied'); include tpl('header'); show_menu($menus); ?> <form method="post" action="?" id="dform" onsubmit="return check();"> <input type="hidden" name="moduleid" value="<?php echo $moduleid;?>"/> <input type="hidden" name="file" value="<?php echo $file;?>"/> <input type="hidden" name="action" value="<?php echo $action;?>"/> <input type="hidden" name="itemid" value="<?php echo $itemid;?>"/> <input type="hidden" name="forward" value="<?php echo $forward;?>"/> <div class="tt"><?php echo $action == 'add' ? '添加' : '修改';?>产品</div> <table cellpadding="2" cellspacing="1" class="tb"> <tr> <td class="tl"><span class="f_red">*</span> 所属分类</td> <td><?php echo $_admin == 1 ? category_select('post[catid]', '选择分类', $catid, $moduleid) : ajax_category_select('post[catid]', '选择分类', $catid, $moduleid);?> <span id="dcatid" class="f_red"></span></td> </tr> <tr> <td class="tl"><span class="f_red">*</span> 产品名称</td> <td><input name="post[title]" type="text" id="title" size="40" value="<?php echo $title;?>"/> <?php echo level_select('post[level]', '级别', $level);?> <?php echo dstyle('post[style]', $style);?> <span id="dtitle" class="f_red"></span></td> </tr> <tr> <td class="tl"><span class="f_red">*</span> 计量单位</td> <td><input name="post[unit]" id="unit" type="text" size="5" value="<?php echo $unit;?>"/> <span id="dunit" class="f_red"></span></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 参考价格</td> <td><input name="post[minprice]" type="text" size="10" value="<?php echo $minprice;?>"/> ~ <input name="post[maxprice]" type="text" size="10" value="<?php echo $maxprice;?>"/> <span class="f_gray">建议设置,以便规范用户的报价</span></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 产品简介</td> <td><textarea name="post[content]" id="content" class="dsn"><?php echo $content;?></textarea> <?php echo deditor($moduleid, 'content', 'Destoon', '100%', 350);?><br/><span id="dcontent" class="f_red"></span> </td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 主要参数</td> <td class="nv"> <table cellspacing="1"> <tr> <th>参数名称</th> <th>参数值</th> </tr> <tr> <td><input name="post[n1]" type="text" size="10" value="<?php echo $n1;?>" id="n1"/></td> <td><input name="post[v1]" type="text" size="20" value="<?php echo $v1;?>" id="v1"/></td> </tr> <tr> <td><input name="post[n2]" type="text" size="10" value="<?php echo $n2;?>" id="n2"/></td> <td><input name="post[v2]" type="text" size="20" value="<?php echo $v2;?>" id="v2"/></td> </tr> <tr> <td><input name="post[n3]" type="text" size="10" value="<?php echo $n3;?>" id="n3"/></td> <td><input name="post[v3]" type="text" size="20" value="<?php echo $v3;?>" id="v3"/></td> </tr> <tr> <td class="f_gray">例如:规格</td> <td class="f_gray">例如:10cm*20cm</td> </tr> </table> </td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 主要市场</td> <td><input name="post[market]" type="text" size="60" value="<?php echo $market;?>"/><?php tips('多个市场请用|分隔,用户可以在报价时选择市场,并按市场对比价格');?></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> SEO标题</td> <td><input name="post[seo_title]" type="text" size="60" value="<?php echo $seo_title;?>"/></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> SEO关键词</td> <td><input name="post[seo_keywords]" type="text" size="60" value="<?php echo $seo_keywords;?>"/></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> SEO描述</td> <td><input name="post[seo_description]" type="text" size="60" value="<?php echo $seo_description;?>"/></td> </tr> <tr> <td class="tl"><span class="f_hid">*</span> 添加时间</td> <td><input type="text" size="22" name="post[addtime]" value="<?php echo $addtime;?>"/></td> </tr> </table> <div class="sbt"><input type="submit" name="submit" value=" 确 定 " class="btn"/> <input type="reset" name="reset" value=" 重 置 " class="btn"/></div> </form> <?php load('clear.js'); ?> <script type="text/javascript"> function check() { var l; var f; f = 'catid_1'; if(Dd(f).value == 0) { Dmsg('请选择所属分类', 'catid', 1); return false; } f = 'title'; l = Dd(f).value.length; if(l < 2) { Dmsg('标题最少2字,当前已输入'+l+'字', f); return false; } f = 'unit'; l = Dd(f).value.length; if(l < 1) { Dmsg('请填写计量单位', f); return false; } return true; } </script> <script type="text/javascript">Menuon(<?php echo $menuid;?>);</script> <?php include tpl('footer');?>