|
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/yuchun_before_X/pages/ |
Upload File : |
<?php
if(!$tab) $tab="1";
require "inc_top.php";
//include $_SERVER['DOCUMENT_ROOT']."/conf/conf_i.php";
if($sessionIDX){
$mIdx = $sessionIDX;
$EN_NMAE = $_SESSION[S_NAME];
//입금확인중 유무체크
$chkgiganNum = Get_db("select flag from user_cash where user_id = '$mIdx' order by id desc");
$qry = Get_dbres("select auth_code,m_enddate from user where id = '$mIdx'");
$row = mysql_fetch_array($qry);
if($row[auth_code] == 10){
$class_name = "正会員";
$end_arr = explode("-",$row[m_enddate]);
$end_time = mktime(0,0,0,$end_arr[1], $end_arr[2], $end_arr[0]);
$now_time = mktime(0,0,0,date("m"), date("d"), date("Y"));
$giganCount = ($end_time - $now_time)/86400;
$gigan_tr="
<tr>
<td class='tl'>残りの期間</td>
<td class='tc dateCell2'><font color=red>$giganCount</font>日</td>
</tr>
";
}else{
$class_name = "一般会員";
$gigan_tr="";
}
if(!$pageCount) $pageCount = 10;
$show_one_page = $pageCount;
$show_view_page = 10;
$page = ( $page ) ? $page : 1;
$offset = ($page-1)*$show_one_page;
$order_by = ' ORDER BY id desc';
$url_tail = "&tab=$tab&tabs=$tabs&key=$key&order_by=$order_by";
$query_limit = "limit $offset,$show_one_page";
$QUERY_TOTAL = "SELECT count(*) FROM user_cash where user_id='$mIdx' $order_by";
$QUERY_PAGE = "SELECT * FROM user_cash where user_id='$mIdx' $order_by $query_limit";
//echo $QUERY_PAGE;
$chkflag = Get_db("SELECT flag from user_cash where user_id = '$mIdx' and flag='D'");
if($chkflag == D){
$changeMoney ="5,400";
}else{
$changeMoney ="5,400";
}
$total_count = get_db($QUERY_TOTAL);
$total_page = ceil( $total_count / $show_one_page);
$start_num = $total_count - $offset; //
$viewlist = ( !$total_count ) ? "" : Get_viewpage($page,$total_count,$show_one_page,$show_view_page,$url_tail);
$result= mysql_query($QUERY_PAGE,$db_con);
$total = mysql_affected_rows();
$btnChkb = "";
for($i=0; $i<$total; $i++) {
$Num = $start_num - $i;
$rows = mysql_fetch_array($result);
$regdate = substr($rows[reg_date],0,10);
if($rows[flag]=='A'){
$CASH_LS = "
<tr>
<td class='tc'>入金確認中</td>
<td class='tl'>入金待機状態です。<br>
・銀行名 : 株式会社三菱UFJ銀行<br>
・支店名 : 世田谷支店(店番:130)<br>
・口座番号 : (普通) 0053199 <br>
・預金者名 : (株)ルック・コリア・ジャパン<br>
・入金額 : <span><font color=red><B>$changeMoney</B></font> 円</span><br><br>
ご入金番号 :<font color=blue><b>$rows[cash_no]</b></font><br><br>
ご入金の際は、ご依頼人の欄に必ず上記のご入金番号をお名前の前にご記載ください。<br>
別途ご入金案内・入金確認完了メールは送信しておりません。<br>
必ずこちらのマイページにて、ご入金先、ご入金番号をご確認ください。</td>
</tr>
";
}else{
$CASH_LS = "
<tr>
<td class='tc'>$rows[startdate] ~ $rows[enddate]</td>
<td class='tc'><img src='/images/member/btn_comp.gif' /></td>
</tr>
";
}
}
}else{
LoginCheck();
}
?>
<SCRIPT>
function chkInsert(status) {
var choose = confirm("正会員登録を申し込みますか?");
if(choose){
document.form.idx.value = status;
document.form.action = "./mypage_proc.php";
document.form.submit();
}
}
function chkNo() {
alert("既に申し込まれております。");
}
</script>
<div class="visual-area lg">
<div class="visual-area-in">
<h2>MYPAGE</h2>
</div>
</div>
<!-- S container -->
<section>
<article>
<div id="container">
<div class="content">
<?=$MYPAGE_MENU?>
<!-- mypage -->
<div id="mypageArea" class="section">
<div class="tbl type2">
<table>
<colgroup>
<col>
<col class="dateCell2">
</colgroup>
<tbody>
<tr>
<td class="tl">名前(カタカナ)</td>
<td class="tc dateCell2"><?=$EN_NMAE?></td>
</tr>
<tr>
<td class="tl">会員ステータス</td>
<td class="tc dateCell2"><?=$class_name?></td>
</tr>
<?=$gigan_tr?>
</tbody>
</table>
</div>
</div>
<div id="mypageArea" class="section">
<div class="tbl type3">
<table>
<colgroup>
<col style="width:35%"/>
<col>
</colgroup>
<tbody>
<tr>
<th scope="col">利用期間</td>
<th scope="col">内容</td>
</tr>
<?=$CASH_LS?>
</tbody>
</table>
</div>
</div>
<form id="form" name="form" enctype="multipart/form-data">
<input type=hidden name="idx">
<?
if(!($chkgiganNum=="A"|| $giganCount >=31)){
?>
<div class="btn-area"><a href="javascript:<?if($chkgiganNum=="A" || $giganCount >=31){echo"chkNo();";}else{echo"chkInsert('$mIdx');";}?>" class="btn more">正会員延長</a><br><br>
※正会員延長は正会員満了日の30日前より可能でございます。
</div>
<?
}
?>
</form>
<!-- //mypage -->
</div>
</div>
</div>
</article>
</section>
<!--E : container -->
<!-- footer -->
<?PHP
include"inc_bottom.php";
?>
<!-- //footer -->
</div> <!--.wapper-->
</body>
</html>