|
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/jaejoong_X/admin/ |
Upload File : |
<?include "$DOCUMENT_ROOT/conf/conf_dir.php";?>
<?
echo "";
if($sessionLevel !=15){
echo "<script>alert('admin page');document.location='/admin/login.php';</script>";
}
?>
<?
$title_text = "2016_birthday_comment";
// =============================================== Query
//$tableName = "notice";
if($key_word) {
if($key == "member_id"){
//$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)."%' ";
}
}else{
}
$order_by = ' ORDER BY no desc';
$QUERY_PAGE = "
SELECT
* ,(select username from user where id = mbruid) as username
FROM
AUCTION_EVENT
WHERE 1=1 $where $order_by $query_limit";
$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>2015 membership week설문조사</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>접수일</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[username]?></td>
<td><?=$row[goods1]?></td>
<td><?=$d_regis?></td>
<td width="500" style="text-align:left;"><p><?=nl2br(stripslashes($row[memo]))?></p></td>
</tr>
<?
$Num--;
}
}
?>
</table>
</td>
</tr>
</table>
</BODY>
</HTML>