(3). 编辑要害词
<?phpdefined(‘IN_ADMIN’) or exit(‘No permission resources.’);
include $this->admin_tpl(‘header’);
?>
<script type=”text/javascript”>
$(function(){
$.formValidator.initConfig({formid:”myform”,autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:’200′,height:’50′}, function(){this.close();$(obj).focus();})}});
})
</script>
<div>
<table cellpadding=”2″ cellspacing=”1″ width=”100%”>
<form action=”?m=admin&c=search_keyword&a=edit&keywordid=<?php echo $keywordid?>” method=”post” name=”myform” id=”myform”>
<tr>
<th width=”25%”><?php echo L(‘search_word_name’);?> :</th>
<td><input type=”text” name=”info[keyword]“ size=”20″ value=”<?php echo $keyword?>”></td>
</tr>
<tr>
<th><?php echo L(‘search_word_pinyin’);?> :</th>
<td><input type=”text” name=”info[pinyin]” value=”<?php echo $pinyin?>” ></td>
</tr>
<tr>
<th><?php echo L(‘search_word_nums’);?> :</th>
<td><input type=”text” name=”info[searchnums]” value=”<?php echo $searchnums?>” ></td>
</tr>
<tr>
<th><?php echo L(‘search_word_some’);?> :</th>
<td><input type=”text” name=”info[data]” value=”<?php echo $data?>”></td>
</tr>
<input type=”submit” name=”dosubmit” id=”dosubmit” value=” <?php echo L(‘submit’)?> “>
</form>
</table>
</div>
</body>
</html>
4.增加导航菜单:
请利用phpmyadmin或其它mysql数据库打点软件执行下面此语句。
1.为要害词表增加一个可自动增加的id,keywordid
alter table v9_search_keyword add keywordid int(16) unsigned NOT NULL auto_increment PRIMARY KEY ;2.以下是插入菜单链接:
INSERT INTO v9_menu VALUES (null, ‘search_keyword’, ’977′, ‘admin’, ‘search_keyword’, ‘init’, ”, ’13′, ’1′);INSERT INTO v9_menu VALUES (null, ‘add_search_keyword’, ’1571′, ‘admin’, ‘search_keyword’, ‘add’, ”, ’0′, ’0′);
INSERT INTO v9_menu VALUES (null, ‘edit_search_keyword’, ’1571′, ‘admin’, ‘search_keyword’, ‘edit’, ”, ’0′, ’0′);
INSERT INTO v9_menu VALUES (null, ‘del_search_keyword’, ’1571′, ‘admin’, ‘search_keyword’, ‘del’, ”, ’0′, ’0′);
通过以上步调,即可完成靠山打点热门打点词。
但此刻尚有一个问题没有办理,