<!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=utf-8" />
<meta name="description" content="<?php echo $_G['siteinfo'][Sitedesc];?>" />
<title><?php echo $_G['siteinfo'][SiteName];?>-帮助中心</title>
<link rel="stylesheet" type="text/css" href="<?php echo PUBURL;?>css/help.css" />

<script type="text/javascript">
	var subtype=-1;
	function View(){
		if (subtype==-1)
			document.getElementById("faqNewHot").style.display = "";
		else if (subtype==0)
			document.getElementById("faqList").style.display = "";	
		else if (subtype==1)
			document.getElementById("faqDetail").style.display = "";
		else if (subtype==2)
			document.getElementById("faqResult").style.display = "";
	}
	
	function FirstPage(inputid,formid){
		document.getElementsByName('page')[inputid].value = -10;
		document.getElementById(formid).submit();
	}

	function PrevPage(inputid,formid){
		var p = document.getElementsByName('page')[inputid].value;
		p --;
		document.getElementsByName('page')[inputid].value = p;
		document.getElementById(formid).submit();
	}

	function NextPage(inputid,formid){
		var p = document.getElementsByName('page')[inputid].value;
		p ++;
		document.getElementsByName('page')[inputid].value = p;
		document.getElementById(formid).submit();
	}

	function EndPage(inputid,formid){
		document.getElementsByName('page')[inputid].value = -20;
		document.getElementById(formid).submit();
	}

</script>
</head>
<body>
<div class="heading">
	<div class="logo"><a href="<?php echo SITEURL;?>?mod=help"><img src="<?php echo PUBURL;?>images/helplogo.gif" /></a></div>
		<div class="topLinks"><a href="http://www.tuntron.com/jxt/Beta1/%E6%A9%99%E5%88%9B%E5%AE%B6%E6%A0%A1%E9%80%9Av4.0%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8EBeta1.doc" target="_blank">用户手册</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="http://wpa.qq.com/msgrd?v=3&uin=1121251729&site=qq&menu=yes" target="_blank">意见反馈</a>&nbsp;&nbsp;|&nbsp;&nbsp;<span style="color:#1E5494;">服务热线：<?php echo $_G['siteinfo'][SiteTel];?></span></div>
	</div>
<div class="searchArea">
<form method="post" action="/cgi-bin/help" id="formSearch" >
	<input type="hidden" name="subtype" value="2" />
	<span class="bold">问题搜索</span> 
	<input name="searchkey" id="iptKey" type="text" value=''  style='color:#000' class="textInput"/> 
	<input type="submit" value="搜 索" class="doSearch" onclick="if(document.getElementById('iptKey').value==''){alert('请填写要搜索的关键字');document.getElementById('iptKey').focus();return false;};"/>
</form>	
</div>
<div class="mainContent">
	<div class="catalog">
		<ul>
			
						<li <?php if($catid=='new') { ?>class="active"<?php } ?>><a href="<?php echo SITEURL;?>?mod=help&do=list&catid=new">最新问题</a></li>
						<li <?php if($catid=='hot') { ?>class="active"<?php } ?>><a href="<?php echo SITEURL;?>?mod=help&do=list&catid=hot">热门问题</a></li>
						<li class="spl"></li>
						<?php foreach((array)$help_cat as $key=>$item) {?>
						<li <?php if($catid==$item['catid']) { ?>class="active"<?php } ?>><a href="<?php echo SITEURL;?>?mod=help&do=list&catid=<?php echo $item['catid'];?>"><?php echo $item['name'];?></a></li>
						<?php }?>	
								
		</ul>
	</div>
	<div class="content" style='display:none' id='faqNewHot'>

		<div class="indexCol" >
			<h2>最新问题</h2>
			<ul class="qList">
							 <?php foreach((array)$newhelp as $key=>$item) {?>
							<li>&bull;<a href="<?php echo SITEURL;?>?mod=help&do=content&catid=<?php echo $item['catid'];?>&id=<?php echo $item['id'];?>&authcode=<?php echo $item['idauthcode'];?>">
<?php echo $item['title'];?></a></li>
                 <?php }?>
						</ul>
		</div>
		
		<div class="indexCol">
			<h2>热门问题</h2>
			<ul class="qList">
							 <?php foreach((array)$hothelp as $key=>$item) {?>
							<li>&bull;<a href="<?php echo SITEURL;?>?mod=help&do=content&catid=<?php echo $item['catid'];?>&id=<?php echo $item['id'];?>&authcode=<?php echo $item['idauthcode'];?>">
<?php echo $item['title'];?></a></li>
                 <?php }?>
						</ul>
		</div>
	</div>
	
	<div class="content" style='display:none' id='faqList'>
		<div class="return" style="display:none;">><a href="/cgi-bin/help">首页</a>&#187;</div>
		<h2></h2>
		<ul class="qList">
				</ul>
	</div>
	
	<div class="content" style='display:none' id='faqDetail'>
		<div class="return" style="display:none;"><a href="/cgi-bin/help">首页</a> &#187; <a href="/cgi-bin/help?id="></a></div>
		
		<h2></h2>
		<div class="answer">
				</div>
	</div>
	

	<div class="content" id="faqResult" style="display:none"> 
	<form method="post" action="/cgi-bin/help" id="formResult">
		<input type="hidden" name="subtype" value="2" />
		<input type="hidden" name="searchkey" value=""/>
		<input type="hidden" name="page" value=""/>
		<input type="hidden" name="kenbin" value="" />
			
		<div class="searchNum">
								</div>

		<div id="result" class="result" style="display:none;">
						
				<div style="margin:30px 0 0; text-align:right;">
					第&nbsp;-&nbsp;条&nbsp;&nbsp;共&nbsp;&nbsp;条问题
									</div>
			<div class="operateBarContainer">
			</div>
		</div>
		<script type="text/javaScript">
			if (document.getElementsByName('kenbin')[0].value != 0)
				document.getElementById("result").style.display = "";
		</script>
	</form>
	</div>

</div>

<script type="text/javaScript">View();</script>
</body>
</html>
