<?
	include("connect.php");
	include_once("admin.config.inc.php");
	include("security.php");
	include("config_setting.php");

	$query = "select * from faq  where id=1 ";

	$result=mysql_query($query) or die (mysql_error());
	$totalrows=mysql_num_rows($result);
	if($totalrows==0){
	   $query ="insert into faq (id) values(1)";	
	   $result=mysql_query($query) or die (mysql_error());
	}
	$query = "select * from faq  where id=1 ";
	$result =mysql_query($query);
	$objfaq = mysql_fetch_object($result);
		
?>
<!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=<?=$lng_characset;?>" />
<title></title>
<link rel="stylesheet" href="main.css" type="text/css">
</head>

<body bgcolor="#ffffff" style="padding-left:10px">
<table width="100%" cellPadding="0" cellSpacing="10">
  <TR> 
    <TD class="H1">管理帮助</TD>
  </TR>
  <TR>
    <TD background="images/vdots.gif"><IMG height=1 src="images/spacer.gif" width=1 ></TD>  </TR>
  <TR>
    <TD><!--content-->
	    <TABLE cellSpacing="2" cellPadding="2" width="100%" >
    	 <TBODY>
          <!-- <TR>
             <TD colspan="2"> 
           
             <IMG height=11 src="images/001.gif" width=8 ><A class=la href="addfaq.php"> 添加一个新的条目. </A> 
         
        	 </TD>
          </TR>!-->
	    </TBODY>
	   </TABLE>
	 </TD>
  </TR>
<Tr>
<td>


	<table cellpadding="0" cellspacing="0" width="100%" border="0">
	  <tr>
		<td>
		<form id="form2" name="form2" action="" method="post">  
          <table width="100%"  cellSpacing="0" class="t-a" border="1">
           <tbody>
		    <TR class="th-a"> 
			  <td width="6%">No</td>
			  
			  <td width="50%">内容</td>
			  <td width="14%">操作</td>
			</TR>
			 
		  	<tr>
			  <td align="center">
				1</td>	
			  <td><?=substr(stripslashes($objfaq->que_content),0,200)."...";?></td>
			  <td align="center">
			<input class="bttn-s" onClick="window.location.href='addfaq.php?faq_edit=1'" type="button" value="编辑">
			</td>
			</tr>
				
		  </tbody>
		  </table>
		</form>
	</td>
	</tr>
</table>

</table>
</body>
</html>
