|
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/ |
Upload File : |
<?
include"inc_top.php";
/***MYPAGE 중간메뉴 , 왼쪽 시작***/
$MENU_CLASS1 = "li_first";
$MENU_CLASS2 = "li_second";
$MENU_CLASS3 = "li_second";
$MENU_CLASS4 = "li_second";
$MENU_CLASS5 = "li_second_on";
$MENU_CLASS6 = "li_second";
$SUB_CLASS1 = "li_first_on";
$SUB_CLASS2 = "li_second";
$SUB_CLASS3 = "li_second";
require"inc_mypage_menu.php"; //마이페이지 LEFT , 메뉴
/***MYPAGE 중간메뉴 , 왼쪽 끝***/
/***BOARD query ***/
$tableName = "board_free";
$order_by ="order by no desc,reg_date desc";
$where = " and user_no='$sessionIDX'";
if(!$pageCount) $pageCount = 5;
$show_one_page = $pageCount;
$page = ( $page ) ? $page : 1;
$offset = ($page-1)*$show_one_page;
//$order_by ="order by sortNum,no desc,reg_date desc";
$total_count = get_db("SELECT count(*) FROM $tableName where is_delete = 'N' $where");
$query_limit = "limit $offset,$show_one_page";
$QUERY_PAGE = "SELECT * FROM $tableName as a where is_delete = 'N' $where $order_by $query_limit";
$total_page = ceil( $total_count / $show_one_page);
$more_next_page = $page+1;
$viewMore = ($pageCount >=$total_count) ? "" : "<a href='javascript:fnMore(\"$tableName\");' class='btn_cla' id='$more_next_page' data-total='$total_page'><div class='btn_myp_ls'><img src='../images/sub/sub_pagbar_more_02.png'></div></div></a>";
$start_num = $total_count - $offset; //
$result= mysql_query($QUERY_PAGE,$db_con);
if(!$result) {
error("DB_ERROR");
exit;
}
$total = mysql_affected_rows();
if(!$total)
{
$BRD_LIST = "<div class='post_board' style='text-align:center;'>情報がありません。</div>";
}
else
{
for($i=0; $i<$total; $i++)
{
unset($New_icon);
//$list_number = ($total_count-$offset) - $i;
$row = mysql_fetch_array($result);
$Num = $row[no];
$regdate = substr($row[reg_date],0,10);
$regdateArr = explode("-",$regdate);
if($regdate == $today){$New_icon="<font color=orange><b>NEW</b></font>";}
$BRD_LIST .="
<!-- LS1 -->
<div class='post_board'>
<div class='mv_date_tit'>
<div class='mvdate_tit_le nobody01' style='background-color:".$_SESSION[S_COLOR].";overflow: hidden; position: relative; '>$_SESSION[S_IMG]</div>
<div class='mvdate_tit_ri '>
$row[user_name]<span class='mvis_date'>$regdateArr[0].$regdateArr[1].$regdateArr[2]</span>
<p class='font_bold'>$row[subject]</p>
<p class='margin_t10'>
<a href='./board_ls.php?tmp_no=$Num'><img src='../images/sub/btn_link.jpg'/></a>
<a href='#'><img src='../images/sub/btn_del.jpg' /></a>
</p>
</div>
</div>
</div>
<!-- LS1 -->
";
}
}
?>
<link rel="stylesheet" type="text/css" href="../sys_css_js/css_mypage.css"/>
<script type="text/javascript" >
function fnMore(tableName){
var moreSel =$('.btn_cla');
var ID = moreSel.attr("id");
$.ajax({
type: "POST",
url: "mypage_bookmark_ls_ajax.php",
data: "&tableName="+tableName +"&page="+ ID ,
cache: false,
success: function(html){
$("#moreList").append(html);
moreSel.attr("id",eval(ID)+1);
if(ID == moreSel.attr("data-total")){
moreSel.hide();
}
}
});
}
</script>
<SECTION>
<ARTICLE>
<div class="article_news_area">
<!-- LEFT -->
<?=$MYPAGE_LEFT ?>
<!-- RIGHT -->
<div class="myp_right">
<h2>マイページ</h2>
<div class="myp_right_menu_area">
<div class="myp_right_menu">
<?=$MYPAGE_MENU ?>
</div>
</div>
<div class="myp_right_submenu_area">
<div class="myp_right_submenu">
<?=$MYP_SUBMENU ?>
</div>
</div>
<h2 class="font_blue">BOARD 掲示板</h2>
<p class="txt"><span class="font_bold">‘<?=$sessionNickname?>’</span>様はBoardに合計<span class="font_red font_bold"><?=$total_count?>個</span>の書き込みを作成しました。</p>
<div class="myp_right_content_area2">
<?=$BRD_LIST?>
<div id='moreList'></div>
<!-- BTN -->
<?=$viewMore?>
<!-- BTN -->
</div>
<!-- mypage -->
</div><!--div class="myp_right"-->
<!-- RIGHT -->
</ARTICLE>
</SECTION>
<?
include"inc_bottom.php";
?>
<!-- MOUSE ACTION -->
</body>
</html>