<?php 
	session_start(); 
	require_once('inc/conn.php');
	require_once('inc/constant.php');
	require_once('inc/ls_syscode.php');
	require_once('inc/check.php');
	$opendb=new mydb();
	require_once('inc/char_set.php');

 
  
  
	
	$banword=$_POST['banword'];
	$banword=str_replace ("，",",",$banword);
	$banword=str_replace ("、",",",$banword);
	$banword=str_replace ("  ,",",",$banword);
	$banword=str_replace (",  ",",",$banword);
	$banword=str_replace (" ,",",",$banword);
	$banword=str_replace (", ",",",$banword);

	$ls=$_POST['ls'];
	switch($ls)
	{
		case "insert":
			$update_sql=sprintf("update ls_banword set banword=%s",
						GetSQLValueString($banword, "text")
													);
			$update_query=$opendb->query($update_sql);
			$ls_msg="修改操作成功！";
			break;
	}
	
	$select_sql="select * from ls_banword  ";
	$select_query=$opendb->query($select_sql);
	$select_rows=mysql_fetch_assoc($select_query);
	//class="lsconeditorsfield"class="lsconeditorarea"width="100%"
?>

<fieldset  class="infofield">
  <legend>反馈表禁用词管理</legend>
  <!--<div >-->
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td  colspan="3" align="left">
        <textarea name="banword" class="ifinfoinputlong" cols="86" rows="3"><?=$select_rows['banword']?></textarea>
        </td>
      </tr>
      <tr>
        <td  height="32" align="left">禁用词之间请用逗号分开，不用换行 </td>
      </tr>
    </table>
 <!-- </div>-->
</fieldset>
