コード例 #1
0
include "seudot_top_menu.html";
$display = new display();
$statistics = new statistics();
$condition = $statistics->f_get_condition(7);
$query_string = $condition;
$uploader = new file_uploader();
$if_tbl_exists = $uploader->if_tbl_exists('seudot_stat', $query_string);
$stat_query = 'select * from seudot_stat';
?>

<form name="xls" action="../e2xls.php" method="post">
<input type="hidden" name="xls_query" value="<?php 
echo preg_replace('/LIMIT (.*)/', '', $stat_query);
?>
" />
<input type="hidden" name="filename" value="stat" /> 
<input type="submit" value="Excel" class="button_excel"/>
</form> 
<TABLE><TR><TD>
<?php 
//In this example the table name to be displayed is  static, but it could be taken from a form
$table = "seudot_uploads";
$display_db_table = $display->display_db_table($table, $global_dbh, TRUE, "border='2'", $query_string);
?>
</TD></TR></TABLE>

</body>
</html>