-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
################################################
// include
################################################
include $_SERVER['DOCUMENT_ROOT'] . '/inc/config.php' ;
########################################################
// approve
########################################################
$search_query = " and (";
if ( is_array($_POST['chk_numid']))
{
foreach ( $_POST['chk_numid'] as $val )
{
if ( emptY($val)) continue ;
else $search_query .= " or ";
$search_query .= " numid=".$val;
//$return = excel_board ( $val ) ;
}
$search_query .=") ";
}
else
{
if ( empty($numid)) script_re($total['cmnall'] , ' Á¢±ÙÇÒ ¼ö ¾ø½À´Ï´Ù. ' ) ;
$search_query = "and numid=".$numid." " ;
}
excel_board ($search_query);
########################################################
function excel_board ($search_query)
{
$temp_writeDate = date("Ymd_His");
$fileName = "ÁÖ¹®°ü¸®_" . $temp_writeDate . ".xls";
header( "Content-type: application/vnd.ms-excel" );
header( "Content-Disposition: attachment; filename=$fileName" );
header( "Content-Description: PHP4 Generated Data" );
$total = $exe->qry_alllist (" from tbl_order where 1 " .
" order by numid desc " , " numid , date_format(write_date,'%Y-%m-%d') as write_date , ordertitle, oname , otel, ohp, rname , rhp, rtel, raddr1 , raddr2, result_price " , $total ) ;
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="9" height="1" bgcolor="#92BE7C"></td>
</tr>
<tr>
<td align="center" bgcolor="#E9F5E3" class="style12 pd5">¹øÈ£</td>
<td align="center" bgcolor="#E9F5E3" class="style12 pd5">ÁÖ¹®ÀÏÀÚ</td>
<td align="center" bgcolor="#E9F5E3" class="style12 pd5">ÁÖ¹®¸í</td>
<td align="center" bgcolor="#E9F5E3" class="style12 pd5">ÁÖ¹®ÇÑ ºÐ</td>
<td align="center" bgcolor="#E9F5E3" class="style12 pd5">ÁÖ¹®ÇÑ ºÐ ¿¬¶ôó</td>
<td align="center" bgcolor="#E9F5E3" class="style12 pd5">¹Þ´Â ºÐ</td>
<td align="center" bgcolor="#E9F5E3" class="style12 pd5">¹Þ´Â ºÐ ¿¬¶ôó</td>
<td align="center" bgcolor="#E9F5E3" class="style12 pd5">¹Þ´Â ºÐ ÁÖ¼Ò</td>
<td align="center" bgcolor="#E9F5E3" class="style12 pd5">ÁÖ¹®Ãѱݾ×</td>
</tr>
<tr>
<td colspan="9" height="1" bgcolor="#92BE7C"></td>
</tr>
<?
$count=1;
while ( $rs = $exe->fetch ( $total['execute'] )){
?>
<tr >
<td align="center" class="pd5" height="30"><?=$count?></td>
<td align="center" class="pd5" style=cursor:hand; onClick="location.href='$page_info[link]'" onMouseOver="this.style.backgroundColor='#FBF9DB'" onMouseOut="this.style.backgroundColor=''"><?=$rs[write_date]?></td>
<td align="center" class="pd5" style=cursor:hand; onClick="location.href='$page_info[link]'" onMouseOver="this.style.backgroundColor='#FBF9DB'" onMouseOut="this.style.backgroundColor=''"><?=$rs[ordertitle]?></td>
<td align="center" class="pd5 b" style=cursor:hand; onClick="location.href='$page_info[link]'" onMouseOver="this.style.backgroundColor='#FBF9DB'" onMouseOut="this.style.backgroundColor=''"><font color='blue'><?=$rs[oname] ?></font></td>
<td align="center" class="pd5 b" style=cursor:hand; onClick="location.href='$page_info[link]'" onMouseOver="this.style.backgroundColor='#FBF9DB'" onMouseOut="this.style.backgroundColor=''"><font color='blue'><?=$rs[otel] ?> / <?=$rs[ohp] ?></font></td>
<td align="center" class="pd5 b" style=cursor:hand; onClick="location.href='$page_info[link]'" onMouseOver="this.style.backgroundColor='#FBF9DB'" onMouseOut="this.style.backgroundColor=''"><font color='blue'><?=$rs[rname] ?></font></td>
<td align="center" class="pd5 b" style=cursor:hand; onClick="location.href='$page_info[link]'" onMouseOver="this.style.backgroundColor='#FBF9DB'" onMouseOut="this.style.backgroundColor=''"><font color='blue'><?=$rs[rtel] ?> / <?=$rs[rhp] ?></font></td>
<td align="center" class="pd5 b" style=cursor:hand; onClick="location.href='$page_info[link]'" onMouseOver="this.style.backgroundColor='#FBF9DB'" onMouseOut="this.style.backgroundColor=''"><font color='blue'><?=$rs[raddr1] ?> <?=$rs[raddr2] ?></font></td>
<td align="center" class="pd5 style10"><?=$rs[result_price]?> ¿ø</td>
</tr>
<tr>
<td colspan="9" height="1" bgcolor="#cccccc"></td>
</tr>
<?
$count++;
}
?>
</table>
<? return true; }?>
Copyright © 2017 || Recoded By Mr.Bumblebee