<?php /* Smarty version 2.6.6, created on 2006-12-23 17:33:21
         compiled from main.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'default', 'main.html', 77, false),)), $this); ?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<title><?php echo $this->_tpl_vars['Title']; ?>
</title>
<link href="imagefiles/style.css" rel="stylesheet" type="text/css">
<SCRIPT LANGUAGE="JavaScript" src="imagefiles/func.js"></SCRIPT>
</head>
<SCRIPT LANGUAGE="JavaScript">
<!--
	function xmlexport()
	{			
		document.exportform.action='sql_xml.php';
		document.exportform.target='_blank';
		document.exportform.submit();
	}
	function csvexport()
	{			
		document.exportform.action='sql_csv.php';
		document.exportform.target='_blank';
		document.exportform.submit();
	}
	function textexport()
	{			
		document.exportform.action='sql_txt.php';
		document.exportform.target='_blank';
		document.exportform.submit();
	}
	function print_url()
	{	
		var _url = document.location;
		window.open('templates/print/index.php?url='+_url);
	}
//-->
</SCRIPT>
<FORM METHOD=POST ACTION="" name=exportform>
<INPUT TYPE="hidden" name=datas value=<?php echo $this->_tpl_vars['SqlDatas']; ?>
>
<INPUT TYPE="hidden" name=datastitle value=<?php echo $this->_tpl_vars['SqlDatasTitle']; ?>
>
<INPUT TYPE="hidden" name=website VALUE=<?php echo $this->_tpl_vars['website']; ?>
>
<INPUT TYPE="hidden" name=fname VALUE=<?php echo $this->_tpl_vars['fname']; ?>
>
<INPUT TYPE="hidden" name=sql VALUE=<?php echo $this->_tpl_vars['Sql']; ?>
>
<INPUT TYPE="hidden" name=nowview VALUE=<?php echo $this->_tpl_vars['NowView']; ?>
>
<INPUT TYPE="hidden" name=recordnum VALUE=<?php echo $this->_tpl_vars['NowView']; ?>
>
<INPUT TYPE="hidden" name=fieldtype VALUE=<?php echo $this->_tpl_vars['FieldType']; ?>
>
</FORM>
<body topmargin="0">
<center>
  <table width="100%" border="0" cellpadding="0" cellspacing="0" >
    <tr> 
      <td width="1%" height="383">&nbsp; 
      </td>
      <td width="99%" ><table width="99%"  border="0" align="left" cellpadding="0" cellspacing="0">
          <tr> 
            <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
				  <SCRIPT LANGUAGE="JavaScript">
				  <!--
				if(top.location == self.location)
				{
				document.write("<tr>                  <td width=70%><div align=right></div>  <img src=imagefiles/logo.gif width=200 height=60 border=0></td>                  <td width=30% valign=middle>										</td>                </tr>");
				
				}
				
				//-->
			   </SCRIPT>
				<tr class=titlefont_02> 
                  <td width="70%">&nbsp;&nbsp;正在查看 － <?php echo $this->_tpl_vars['NowView']; ?>
 | <?php echo $this->_tpl_vars['QuickLink']; ?>
 
                  </td>
                  <td width="30%" valign="middle">
<div align="right">数据导出:&nbsp;&nbsp;
<A HREF="#" <?php if ($this->_tpl_vars['textexport'] == ""): ?> onclick="window.alert('TXT文件导出未实现')"<?php else: ?> onclick="textexport()" <?php endif; ?> TITLE=TXT文件导出><img src="imagefiles/text.gif" width="16" height="16" align="absmiddle" border=0></A>&nbsp;
<A HREF="#" <?php if ($this->_tpl_vars['xmlexport'] == ""): ?> onclick="window.alert('XML文件导出未实现')"<?php else: ?> onclick="xmlexport()" <?php endif; ?> TITLE=XML文件导出><img src="imagefiles/xxml.gif" width="16" height="16" align="absmiddle" border=0></A>&nbsp;
<A HREF="<?php echo ((is_array($_tmp=@$this->_tpl_vars['csvexport'])) ? $this->_run_mod_handler('default', true, $_tmp, "#") : smarty_modifier_default($_tmp, "#")); ?>
" <?php if ($this->_tpl_vars['cvsexport'] == ""): ?> onclick="window.alert('EXCEL文件导出未实现')"<?php else: ?> onclick="csvexport()"<?php endif; ?>  TITLE=EXCEL文件导出><img src="imagefiles/icon_xls1.gif" width="16" height="16" align="absmiddle" border=0></A>
&nbsp;|&nbsp;<A HREF="#" TITLE=数据打印格式 target=_blank><img src="imagefiles/printer.gif" width="20" height="16" align="absmiddle" border=0 onclick="window.print()"></A>&nbsp;&nbsp;</div></td>
                </tr>
              </table> 
            </td>
          </tr>
          <tr> 
            <td height="586" valign="top" class="cod"> 
              <div class="mainbody"><?php echo $this->_tpl_vars['Main']; ?>
</div></td>
          </tr>
          <tr> 
            <td height="24" class=copyright> 
              <p><?php echo $this->_tpl_vars['CopyRight']; ?>

              </td>
          </tr>
        </table></td>
    </tr>
  </table>

</center>

</body>

</html>

