-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
################################################
// include
################################################
include $_SERVER['DOCUMENT_ROOT'] . '/inc/config.php' ;
################################################
// °Ë»öÇϱâ
################################################
$search_query = " and (";
if ( is_array($_POST['chk_numid']))
{
$tmp_count=1;
foreach ( $_POST['chk_numid'] as $val )
{
if ( emptY($val)) continue ;
else if($tmp_count==1) $search_query .= " numid=";
else $search_query .= " or numid=";
$search_query .= $val;
$tmp_count++;
}
}
else
{
if ( empty($numid)) script_re("/admin/?code=ODR" , ' ¼±ÅõÇÁö ¾Ê¾Ò½À´Ï´Ù. ' ) ;
$search_query .= "numid=".$numid;
}
$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 {$search_query}" .
" order by numid desc " , " numid , date_format(write_date,'%Y-%m-%d') as write_date , ordertitle, oname , otel, ohp, rname , rhp, rtel, raddr1 ,rzip, raddr2, result_price " , $total ) ;
?>
<table width="100%" border="1" cellspacing="0" cellpadding="0">
<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>
<td align="center" bgcolor="#E9F5E3" class="style12 pd5">Åùè±Ý¾×</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[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] ?> </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[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[rzip] ?></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> -->
<td align="center" class="pd5 style10">¼±ºÒ / ÂøºÒ</td>
<td align="center" class="pd5 style10"> </td>
</tr>
<?
$count++;
}
?>
</table>
Copyright © 2017 || Recoded By Mr.Bumblebee