181 lines
8.6 KiB
PHP
181 lines
8.6 KiB
PHP
<?php
|
|
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
|
|
include_once('./_common.php');
|
|
include_once(G5_LIB_PATH.'/latest.lib.php');
|
|
include_once __DIR__ . '/asset_urls.php';
|
|
|
|
// add_stylesheet('css 구문', 출력순서); 숫자가 작을 수록 먼저 출력됨
|
|
add_stylesheet('<link rel="stylesheet" href="'.$member_skin_url.'/style.css">', 0);
|
|
|
|
$session_id = isset($_SESSION['session_id']) ? $_SESSION['session_id'] : '';
|
|
$mb_name = '';
|
|
$mb_hp = '';
|
|
$mb_comp_team = '';
|
|
$mb_comp = '';
|
|
$mb_email = '';
|
|
$result = null;
|
|
|
|
if ($session_id) {
|
|
$sql1 = " select mb_name, mb_hp, mb_comp_team, mb_email, mb_comp from {$g5['member_table']} where mb_id = '{$session_id}' ";
|
|
$row1 = sql_fetch($sql1);
|
|
$mb_name = isset($row1['mb_name']) ? $row1['mb_name'] : '';
|
|
$mb_hp = isset($row1['mb_hp']) ? $row1['mb_hp'] : '';
|
|
$mb_comp_team = isset($row1['mb_comp_team']) ? $row1['mb_comp_team'] : '';
|
|
$mb_comp = isset($row1['mb_comp']) ? $row1['mb_comp'] : '';
|
|
$mb_email = isset($row1['mb_email']) ? $row1['mb_email'] : '';
|
|
$sql2 = " select * from {$g5['qa_content_table']} where mb_id = '{$session_id}' ORDER BY qa_datetime DESC limit 5";
|
|
$result = sql_query($sql2);
|
|
}
|
|
// $qa_category = $row2['qa_category'];
|
|
// $qa_subject = $row2['qa_subject'];
|
|
// $qa_content = $row2['qa_content'];
|
|
// $qa_datetime = $row2['qa_datetime'];
|
|
// $qa_status = $row2['qa_status'];
|
|
|
|
$mylist = array();
|
|
$num = 1;
|
|
// $num = $total_count - ($page - 1) * $page_rows;
|
|
// $subject_len = G5_IS_MOBILE ? $qaconfig['qa_mobile_subject_len'] : $qaconfig['qa_subject_len'];
|
|
for($i=0; $result && $row=sql_fetch_array($result); $i++) {
|
|
$mylist[$i] = $row;
|
|
|
|
$mylist[$i]['category'] = get_text($row['qa_category']);
|
|
$mylist[$i]['subject'] = conv_subject($row['qa_subject'], $subject_len, '…');
|
|
if ($stx) {
|
|
$mylist[$i]['subject'] = search_font($stx, $mylist[$i]['subject']);
|
|
}
|
|
|
|
$mylist[$i]['view_href'] = G5_BBS_URL.'/qaview.php?qa_id='.$row['qa_id'].$qstr;
|
|
|
|
$mylist[$i]['icon_file'] = '';
|
|
if(trim($row['qa_file1']) || trim($row['qa_file2']))
|
|
$mylist[$i]['icon_file'] = '<img src="'.$qa_skin_url.'/img/icon_file.gif">';
|
|
|
|
$mylist[$i]['name'] = get_text($row['qa_name']);
|
|
|
|
$mylist[$i]['date'] = substr($row['qa_datetime'], 2, 8);
|
|
|
|
$mylist[$i]['num'] = $num;
|
|
$num += 1;
|
|
}
|
|
?>
|
|
|
|
<!-- <head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>TOVA Join</title>
|
|
<link rel="stylesheet" href="../css/reset.css" />
|
|
<link rel="stylesheet" href="../css/font.css" />
|
|
<link rel="stylesheet" href="../css/style.css" />
|
|
<script src="../js/jquery-3.6.1.min.js"></script>
|
|
<script src="../js/common.js"></script>
|
|
</head> -->
|
|
|
|
|
|
<!-- <body>
|
|
<div class="wrapper"> -->
|
|
<!-- Header -->
|
|
<!-- <header class="header">
|
|
<h1>
|
|
<img src="../img/logo_w.svg" alt="">
|
|
</h1>
|
|
<div class="menu_wrap">
|
|
<div class="menu_my"><img src="../img/ico_my.svg" alt=""></div>
|
|
<div class="menu_ham"><img src="../img/ico_ham.svg" alt=""></div>
|
|
</div>
|
|
</header> -->
|
|
<!-- //Header -->
|
|
|
|
<!--popup_wrap-->
|
|
<div id="pop_mypage02" class="popup_wrap">
|
|
<!--popup_in-->
|
|
<div class="popup_in">
|
|
<button class="btn_close">
|
|
<div class="close_div"><img src="<?php echo egbim_img_url('ico_close.svg'); ?>" alt="sdi"></div>
|
|
</button>
|
|
<!--popup_content-->
|
|
<div class="popup_container mypage">
|
|
<!--pop_join_left-->
|
|
<div class="popup_tit">
|
|
<h1 class="h_1"> 마이페이지 </h1>
|
|
<h3 class="h_3">
|
|
소중한 <em>내 정보</em>를 <br><em> 최신</em>으로 관리하세요.
|
|
</h3>
|
|
</div>
|
|
<!--//pop_join_right-->
|
|
<div class="popup_contents_wrap">
|
|
<div class="my_info">
|
|
<div class="name">
|
|
<h4><?php echo $mb_name?>님<span>(<?php echo $session_id; ?>)</span></h4>
|
|
<button onclick="javascript:mypage03();">내 정보 수정</button>
|
|
</div>
|
|
<ul class="detail">
|
|
<!-- 라이센스 구매이력 부분 -->
|
|
<li class="license"></li>
|
|
<li>
|
|
<div class=""><i class="phone"></i>휴대전화번호</div>
|
|
<span id="span_hp"><?php echo $mb_hp?></span>
|
|
</li>
|
|
<li>
|
|
<div><i class="email"></i>이메일</div>
|
|
<span id="span_email"><?php echo $mb_email?></span>
|
|
</li>
|
|
<li>
|
|
<div><i class="company"></i>회사정보</div>
|
|
<!-- <span id="span_comp"><?php //echo $mb_comp.'<br>'.$mb_comp_team?></span> -->
|
|
<span id="span_comp"><?php echo $mb_comp?></span><br>
|
|
<span id="span_comp_team"><?php echo $mb_comp_team?></span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="my_qna">
|
|
<h4>내 문의</h4>
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th style="width: 7%;">번호</th>
|
|
<th style="width: 10%;">구분</th>
|
|
<th style="width: max-contents;">제목</th>
|
|
<th style="width: 10%;">등록일</th>
|
|
<th style="width: 13%;">상태</th>
|
|
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<?php
|
|
for ($i=0; $i<count($mylist); $i++) {
|
|
if ($i%2==0) $lt_class = "even";
|
|
else $lt_class = "";
|
|
?>
|
|
<tr class="<?php echo $lt_class ?>">
|
|
<td class="td_num" style="text-align: center;"><?php echo $mylist[$i]['num'];?></td>
|
|
<td class="td_subject" style="text-align: center;">
|
|
<span class="bo_cate_link" style="width:80px;"><?php echo $mylist[$i]['category']; ?></span>
|
|
<!-- <a href="<?php //echo $mylist[$i]['view_href']; ?>" class="bo_tit">
|
|
<?php //echo $mylist[$i]['subject']; ?>
|
|
<?php //if ($mylist[$i]['icon_file']) echo " <i class=\"fa fa-download\" aria-hidden=\"true\"></i>" ; ?>
|
|
</a> -->
|
|
</td>
|
|
<td class="td_name"><?php echo $mylist[$i]['qa_subject']; ?></td>
|
|
<td class="td_date"><?php echo $mylist[$i]['date']; ?></td>
|
|
<td class="td_stat"><span class=" <?php echo ($mylist[$i]['qa_status'] ? 'txt_done' : 'txt_rdy'); ?>"><?php echo ($mylist[$i]['qa_status'] ? '답변완료' : '답변대기'); ?></span></td>
|
|
</tr>
|
|
<?php
|
|
}
|
|
?>
|
|
|
|
<?php if ($i == 0) { echo '<tr><td colspan="5" style="text-align:center;">게시물이 없습니다.</td></tr>'; } ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<!--//pop_join_right-->
|
|
</div>
|
|
<!--//popup_content-->
|
|
</div>
|
|
<!--//popup_in-->
|
|
</div>
|
|
<!--//popup_wrap-->
|
|
<!-- </div>
|
|
</body> -->
|