www.gusucode.com > Destoon B2B仿淘宝电子商务网站 UTF8 v6.0源码程序 > destoon/admin/template/keylink.tpl.php
<?php defined('DT_ADMIN') or exit('Access Denied'); include tpl('header'); //show_menu($menus); ?> <script type="text/javascript"> var _del = 0; </script> <form action="?"> <div class="tt">链接搜索</div> <input type="hidden" name="file" value="<?php echo $file;?>"/> <input type="hidden" name="item" value="<?php echo $item;?>"/> <table cellpadding="2" cellspacing="1" class="tb"> <tr> <td> <input type="text" size="50" name="kw" value="<?php echo $kw;?>" title="关键词或链接地址"/> <input type="text" name="psize" value="<?php echo $pagesize;?>" size="2" class="t_c" title="条/页"/> <input type="submit" value="搜 索" class="btn"/> <input type="button" value="重 置" class="btn" onclick="Go('?file=<?php echo $file;?>&item=<?php echo $item;?>');"/> </td> </tr> </table> </form> <form method="post" action="?"> <input type="hidden" name="file" value="<?php echo $file;?>"/> <input type="hidden" name="item" value="<?php echo $item;?>"/> <div class="tt">关联链接</div> <table cellpadding="2" cellspacing="1" class="tb"> <tr> <th width="60">删除</th> <th>关键词</th> <th>链接</th> </tr> <?php foreach($lists as $k=>$v) { ?> <tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center"> <td><input name="post[<?php echo $v['itemid'];?>][delete]" type="checkbox" value="1" onclick="if(this.checked){_del++;}else{_del--;}"/></td> <td><input name="post[<?php echo $v['itemid'];?>][title]" type="text" size="30" value="<?php echo $v['title'];?>"/></td> <td><input name="post[<?php echo $v['itemid'];?>][url]" type="text" size="50" value="<?php echo $v['url'];?>"/></td> </tr> <?php } ?> <tr onmouseover="this.className='on';" onmouseout="this.className='';" align="center"> <td class="f_red">新增</td> <td><input name="post[0][title]" type="text" size="30" value=""/></td> <td><input name="post[0][url]" type="text" size="50" value="http://"/></td> </tr> <tr> <td> </td> <td height="30" colspan="2"> <input type="submit" name="submit" value="更 新" onclick="if(_del && !confirm('提示:您选择删除'+_del+'个关联链接?确定要删除吗?')) return false;" class="btn"/> <input type="button" value="导 出" class="btn" onclick="Go('?file=<?php echo $file;?>&item=<?php echo $item;?>&action=export');"/> 提示:过多的关联链接会影响页面打开或生成速度</td> </tr> </table> </form> <div class="pages"><?php echo $pages;?></div> <form method="post" action="?"> <input type="hidden" name="file" value="<?php echo $file;?>"/> <input type="hidden" name="item" value="<?php echo $item;?>"/> <input type="hidden" name="action" value="add"/> <div class="tt">批量添加</div> <table cellpadding="2" cellspacing="1" class="tb"> <tr> <td width="60" align="center"><span class="f_red">*</span> 内容</td> <td> <textarea name="content" style="width:500px;height:100px;"><?php echo $content;?></textarea><br/> 一行一个,关键词和链接用|分隔,例如:Destoon B2B|http://www.destoon.com </td> </tr> <tr> <td></td> <td> <input type="submit" name="submit" value=" 确 定 " class="btn"/></td> </tr> </table> </form> <form action="?"> <input type="hidden" name="file" value="<?php echo $file;?>"/> <input type="hidden" name="item" value="<?php echo $item;?>"/> <div class="tt">链接导入</div> <table cellpadding="2" cellspacing="1" class="tb"> <tr> <td width="60" align="center"><span class="f_red">*</span> 模块</td> <td> <select name="fid" id="fid"> <option value="">请选择</option> <?php foreach($MODULE as $v) { if($v['moduleid'] > 4 && $v['moduleid'] != $item && !$v['islink']) echo '<option value="'.$v['moduleid'].'"'.($fid == $v['moduleid'] ? ' selected' : '').'>'.$v['name'].'</option>'; } ?> </select> <input type="button" value="查 看" class="btn" onclick="if(Dd('fid').value){window.open('?file=<?php echo $file;?>&item='+Dd('fid').value);}else{alert('请选择模块');}"/> <input type="submit" value="导 入" class="btn"/> </td> </tr> </table> </form> <br/> <?php include tpl('footer');?>