KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17
System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64
User : nobody ( 99)
PHP Version : 5.2.17
Disable Function : NONE
Directory :  /home/queenjbs/www/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/queenjbs/www/admin/gangnam_excel.html
<?include "$DOCUMENT_ROOT/conf/conf_dir.php";?>
<?
echo "";
if($sessionLevel !=15){
	echo "<script>alert('admin page');document.location='/admin/login.php';</script>";
}
?>
<?
$title_text = "2014JYJ_Gangnam_Festival";
					
// =============================================== Query
//$tableName = "notice";

if($key_word) {
		if($key == "username" || $key == "jname" || $key == "jname2" || $key == "nickname"){
			//$key_word = str_replace(" ","",$key_word);
			$where = "AND $key like '%".$key_word."%' ";
		}else{
			$key_word = str_replace(" ","",$key_word);
			$where = "AND UPPER(".$key.") like '%".strtoupper($key_word)."%' ";
		}
	}
	
$order_by = ' ORDER BY orderstep asc,d_regis desc';
$QUERY_PAGE  = "
SELECT * 
FROM 
AUCTION_EVENT3 
where orderstep=2 $where $CoWhere $order_by";
					
$result= mysql_query($QUERY_PAGE,$db_con);
if(!$result) {
	error("DB_ERROR");
	exit;
}
				$total = mysql_affected_rows();

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

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

  <TITLE>2014JYJ_Gangnam_Festival</TITLE>
</HEAD>
 <BODY>
					<table width="100%" cellspacing="0" cellpadding="0" border=0>
					<tr>
						<td>
							
							<table width="100%" cellspacing="0" cellpadding="0" border=1  align='center' class="table_ro">
								<tr>
									<th>No</th>
									<th>ID</th>
									<th>주문자</th>
									<th>인원</th>
									<th>email</th>
									<th>전화</th>
									<th>동행자</th>
									<th>접수일</th>
									<th>상태</th>
								</tr>
								<?
									if(!$total){
										echo "<tr><td colspan='9' align=center  height='50px'>登録された情報がございません</td></tr>";
									}else{
										for($i=0; $i<$total; $i++) {
										$Num = $i+1;
										$row = mysql_fetch_array($result);
										$d_regis = substr($row[d_regis],0,10);

										if($row[auth_code] == '10'){
											$stateColor ="#FF0099";
										}else{
											$stateColor ="#ffffff";
										}
								?>
								<tr>
									<td><?=$Num?></td>
									<td><?=$row[member_id]?></td>
									<td><?=$row[o_name]?></td>
									<td><?=$row[buynum]?></td>
									<td><?=$row[o_email]?></td>
									<td><?=$row[o_tel]?></td>
									<td><?=$row[o_memo]?></td>
									<td><?=$d_regis?></td>
									<td>
										 <? if($row[orderstep] == '2') echo "예약";?>
										 <? if($row[orderstep] == '6') echo "예약취소";?>	
									</td>
								</tr>
								<?
									$Num--;
									}
								}
								?>
								
							</table>
							
						</td>
					</tr>
				</table>
 </BODY>
</HTML>


Anon7 - 2021