-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/zbk_20220209_admin/
File Upload :
Current File : /var/www/html/zbk_20220209_admin/save_hp_excel.php

<?php

################################################
// include
################################################

	include $_SERVER['DOCUMENT_ROOT'] . '/inc/config.php' ;
################################################
// °Ë»öÇϱâ
################################################
/*
$search_query = " and (";

if ( is_array($_POST['chkid']))
	{
		$tmp_count=1;
		foreach ( $_POST['chkid'] 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=A02" , ' ¼±ÅõÇÁö ¾Ê¾Ò½À´Ï´Ù. ' ) ;		
		$search_query .= "numid=".$numid;		
	}
$search_query .= " ) ";
*/
################################################

	$temp_writeDate = date("Ymd_His");
	$fileName = "Àüü ȸ¿ø ÇÚµåÆù ¹øÈ£.xls";

	header( "Content-type: application/vnd.ms-excel" );
	header( "Content-Disposition: attachment; filename=$fileName" );
	header( "Content-Description: PHP5 Generated Data" );

	$total = $exe->qry_alllist (	" from tbl_member where 1 " .
								" order by numid desc " , " numid , name, hp  " , $total ) ;
?>
	<table width="50%"  border="0" cellspacing="0" cellpadding="0">
	<tr>
	  <td colspan="2" height="1" ></td>
	  <!-- <td colspan="2" 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>
	</tr>
	<!-- <tr>
	  <td colspan="2" height="1" ></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[addr1]?></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[hp]?></td>
	</tr>
	<!-- <tr>
	  <td colspan="2" height="1" bgcolor="#cccccc"></td>
	</tr> -->
<?
	$count++;
}
?>
                  </table>

Copyright © 2017 || Recoded By Mr.Bumblebee