{include file="pageheader.htm"}
<div class="BodyRight">
	<div class="RightDetill">
		<ul>
			<li class="Green"><a href="http://www.nitc.cc/About-nitc/488.html#_Toc239504371" target="_blank">查看演示文件</a></li>
			<li class="SkyBlue"><a href="help_document.php?action=download">下载演示文档</a></li>
			<li class="Black">操作帮助请详见演示文件!</li>
			<li class="DetillRigh" style="padding-right:5px;">
			<form name="searchForm" method="get" action="inquiry.php" onsubmit="return searchSubmit()">
			<input type="text" name="searchText" id="searchText" onFocus="javascript:clearSearchText('searchText');" value="查找咨询信息..." />	
			<input name="action" value="list" type="hidden" />
			<input type="submit" value="" class="bt_go" />
			</form>
			</li>
		</ul>
	</div>
	
	<div class="PageContent">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		  <tr>
			<td class="LineRightBlue1">
				<table width="95%" border="0" cellpadding="0" cellspacing="0" style="margin-left:20px;">
			  <tr>
				<td width="88%" height="24">咨询管理 > 查看咨询信息</td>
				<td width="12%" align="right" class="bt_list"><a href="inquiry.php?action=list" class="button_margin">列表</a></td>
			  </tr>
			</table>
			</td>
		  </tr>
		</table>
	
	<form action="#" method="post" name="theForm" target="_self">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="ListCategory" style="margin-top:10px;">
		<tr><td style="border:none;">
		{if $product}
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="Font" style="margin-bottom:10px;">
			<tr>
				<th width="50%" height="25"><span style="padding-left:10px;">产品名</span></th>
				<th width="25%" align="center">型号</th>
				<th width="25%" align="center">数量</th>
			</tr>
			{section name=loop loop=$product}
			<tr>
			<td align="left" style="padding-top:3px;padding-bottom:3px;"><a href="{$product[loop].product_url}" target="_blank">{$product[loop].name}&nbsp;</a></td>
			<td align="center" style="padding-top:3px;padding-bottom:3px;">{$product[loop].model}&nbsp;</td>
			<td align="center" style="padding-top:3px;padding-bottom:3px;">{$product[loop].quantity}&nbsp;</td>
			</tr>
			{/section}	
		</table>
		{/if}
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="Font">
		<tr class="firstalt">
			<td width="20%" height="25"><span style="padding-left:10px;">主题</span></td>
			<td>
				{$subject}
			</td>
		</tr>
		<tr class="secondalt">
			<td height="25"><span style="padding-left:10px;">内容</span></td>
			<td>
 				{$content}
			</td>
		</tr>							
	
		<tr class="firstalt">
			<td width="20%" height="25"><span style="padding-left:10px;">日期</span></td>
			<td>
				{$date}
			</td>
		</tr>
		
		<tr class="secondalt">
			<td width="20%" height="25"><span style="padding-left:10px;">公司名</span></td>
			<td>
				{$company_name}&nbsp;
			</td>
		</tr>
		<tr class="firstalt">
			<td height="25"><span style="padding-left:10px;">联系人</span></td>
			<td>
 				{$name}&nbsp;
			</td>
		</tr>		
		<tr class="secondalt">
			<td height="25" width="20%"><span style="padding-left:10px;">Email</span></td>
			<td>
				<a href="mailto:{$email}">{$email}</a>&nbsp;
			</td>
		</tr>
		<tr class="firstalt">
			<td height="25"><span style="padding-left:10px;">电话</span></td>
			<td>
 				{$tel}&nbsp;
			</td>
		</tr>		
	
		<tr class="secondalt">
			<td height="25" width="20%"><span style="padding-left:10px;">传真</span></td>
			<td>
				{$fax}&nbsp;
			</td>
		</tr>
		<tr class="firstalt">
			<td height="25"><span style="padding-left:10px;">地址</span></td>
			<td>
 				{$address}&nbsp;
			</td>
		</tr>	
	
		<tr class="secondalt">
			<td width="20%" height="25"><span style="padding-left:10px;">网址</span></td>
			<td>
				{$website}&nbsp;
			</td>
		</tr>
		<tr class="firstalt">
			<td height="25"><span style="padding-left:10px;">国家</span></td>
			<td>
 				{$country}&nbsp;
			</td>
		</tr>	
	
		<tr class="secondalt">
			<td width="20%" height="25"><span style="padding-left:10px;">IP地址</span></td>
			<td>
				{$ip}&nbsp;
			</td>
		</tr>								
	</table>
	</td></tr>
	</table>
	
	
	<table width="100%" height="25" border="0" cellspacing="0" cellpadding="0" style="margin-top:10px;">
		<tr>
			<td align="center">
			<input type="hidden" value="{$inquiry_id}" name="inquiry_id" />
			<input class="bginput" OnClick="javascript:dodel();" type="button" name="delbutton" value=" 删除 " /> 
			<input class="bginput" OnClick="javascript:doforward();" type="button" name="forwardbutton" value=" 转发 " /> 
			<input class="bginput" OnClick="javascript:history.go(-1);" type="button" name="delbutton" value=" 返回 " />			
			</td>
		</tr>
		</table>
	</form>
	</div>

</div>
<script type="text/javascript">
{literal}
function dodel(){
	if(confirm("确定删除该咨询信息?")==true){
		document.theForm.action="inquiry.php?action=del{/literal}{$strpass}{literal}";
		document.theForm.submit();
	}
}
function doforward(){
	document.theForm.action="inquiry.php?action=forward{/literal}{$strpass}{literal}";
	document.theForm.submit();
}
{/literal}
</script>
{include file="pagefooter.htm"}