article_keywords_main_c495ea365158bbe6d11ef860.inc
5.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array();
$fields = array();
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>关键字管理</title>
<link href="css/base.css" rel="stylesheet" type="text/css">
<link href="div.css" rel="stylesheet" type="text/css">
<style>
.nnpp{
border-bottom:1px solid #666666;
border-top:1px solid #FFFFFF;
border-left:1px solid #FFFFFF;
border-right:1px solid #FFFFFF;
filter:alpha(opacity=50);
}
</style>
<script language='javascript'>
function selAll()
{
var celements = document.getElementsByName('aids[]');
for(i=0;i<celements.length;i++)
{
if(!celements[i].checked) celements[i].checked = true;
else celements[i].checked = false;
}
}
</script>
</head>
<body background='images/allbg.gif' leftmargin='8' topmargin='8'>
<div class="main">
<table width="98%" border="0" cellpadding="1" align='center' cellspacing="1" bgcolor="#D6D6D6">
<tr>
<td height="26" colspan="6" background="images/tbg.gif"><table width="96%" border="0">
<tr>
<td width="25%" style="padding-left:10px;"><strong>关键词维护</strong></td>
<form name='form1' action="article_keywords_main.php">
<td width="75%" align="right">
搜索:<input type='text' name='keyword' size='20' />
<input type='submit' name='sb' value='确定' class="coolbg np" />
<input class="coolbg np" name="n1" type="button" id="n1" value="分析系统内的关键字" onClick="location='article_keywords_make.php';" style="width:130px" />
<input class="coolbg np" name="n11" type="button" id="n11" value="管理搜索的关键字" onClick="location='search_keywords_main.php';" style="width:125px" />
</td></form>
</tr>
</table></td>
</tr>
<form name='form2' action="article_keywords_main.php">
<input type='hidden' name='dopost' value='add' />
<tr align="center" bgcolor="#ffffff">
<td width="100%" height="30" colspan="6">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100" align="center">新增关键字:</td>
<td width="140"><input name="keyword" type="text" id="keyword" style="width:130px" /></td>
<td width="60">链接网址:</td>
<td width="140"><input name="rpurl" type="text" id="rpurl" style="width:130px" /></td>
<td width="40">频率:</td>
<td width="50"><input name="rank" type="text" id="rank" style="width:30px" value="30" /></td>
<td width="80"><input type="submit" name="Submit" value="保存" class="coolbg np" /></td>
</tr>
</table>
</td>
</tr>
</form>
<tr align="center" bgcolor="#FBFCE2" height="26">
<td width="8%">选择</td>
<td width="25%">关键字</td>
<td width="35%">链接网址</td>
<td width="10%">频率</td>
<td width="22%">管理</td>
</tr>
<form name='form3' action="article_keywords_main.php" method="post">
<input type='hidden' name='dopost' value='saveall' />
<?php
$atts = array();
$atts['tagname'] = 'datalist';
$blockValue = $this->refObj->GetArcList($atts,$this->refObj,$fields);
if(is_array($blockValue)){
foreach( $blockValue as $key=>$fields )
{
?>
<tr align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';">
<td height="24">
<input name="aids[]" type="checkbox" value="<?php echo $fields['aid']; ?>" class="np" checked='1' />
</td>
<td>
<input type='hidden' value='<?php echo $fields['keyword']; ?>' name='keyword_<?php echo $fields['aid']; ?>' />
<?php echo $fields['keyword']; ?>
</td>
<td style="padding:5px 0;">
<input type='hidden' value='<?php echo $fields['rpurl']; ?>' name='rpurlold_<?php echo $fields['aid']; ?>' />
<input type='text' style='width:90%' class='nnpp' value='<?php echo $fields['rpurl']; ?>' name='rpurl_<?php echo $fields['aid']; ?>' />
</td>
<td>
<input type='text' size='5' class='nnpp' value='<?php echo $fields['rank']; ?>' name='rank_<?php echo $fields['aid']; ?>' />
</td>
<td>
<input type='hidden' name='staold_<?php echo $fields['aid']; ?>' value='<?php echo $fields['sta']; ?>' />
<input type='checkbox' name='isnouse_<?php echo $fields['aid']; ?>' class='np' value='1'<?php echo GetSta($fields['sta']); ?> />
禁用
<input type='checkbox' name='isdel_<?php echo $fields['aid']; ?>' class='np' value='1' />
删除
</td>
</tr>
<?php
}
}?>
<tr bgcolor="#ffffff">
<td height="28" colspan="6">
<input type="button" name="dl1" class="coolbg np" value="反选" onClick="selAll()" />
<input type="button" name="dl2" class="coolbg np" value="保存更改" onClick="this.form.submit();" />
</td>
</tr>
</form>
<tr align="center" bgcolor="#F9FCEF">
<td height="28" colspan="6">
<?php
$atts = array();
$atts['tagname'] = 'pagelist';
$atts['listsize'] = '3';
echo $this->refObj->GetPageList($atts,$this->refObj,$fields);
?>
</td>
</tr>
</table>
</div>
</body>
</html>