---------管理数据表,管理字段 ,特殊字段区域
修改为:
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#DBEAF5">
<tr>
<td height="25" bgcolor="#FFFFFF">信息属性:
<input name="checked" type="checkbox" value="1"<?=$r[checked]?' checked':''?>>
审核 推荐
<select name="isgood" id="isgood">
<option value="0">不推荐</option>
<?=$ftnr['igname']?>
</select>
头条
<select name="firsttitle" id="firsttitle">
<option value="0">非头条</option>
<?=$ftnr['ftname']?>
</select></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">关键字 :
<script type="text/javascript">
function sx(who){
var rntArray=[],temp,hasValue;
var array=who.split(",");
for(var i in array){
temp=array[i];
hasValue=false;
for(var j in rntArray){
if(temp==rntArray[j]){
hasValue=true;
break;
}
}
if(hasValue==false){
rntArray.push(temp);
}
}
return rntArray.join(",");
}
</script><input name="keyboard" type="text" size="52" value="<?=stripSlashes($r[keyboard])?>"onblur="this.value=this.value.replace(/\s/g,',');this.value=sx(this.value);this.value=this.value.replace(/,,/g,',');
this.value=this.value.replace(/^,|,$/g,'');">
<font color="#666666">(多个请用","隔开)</font></td>
</tr>
<tr>
<td height="25" bgcolor="#FFFFFF">外部链接:
<input name="titleurl" type="text" value="<?=stripSlashes($r[titleurl])?>" size="52">
<font color="#666666">(填写后信息连接地址将为此链接)</font></td>
</tr>
</table>
===================
这样就可以用空格了,方便关键词切分。重复的关键词会去掉。