|
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/junsu/ |
Upload File : |
<?
include "$DOCUMENT_ROOT/conf/conf_dir.php";
?>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<?
switch($num){
case 1:
$sch_title = "新着順";
$order_by ="order by uid desc";
break;
case 2:
$sch_title = "評価の高い順";
$order_by ="order by vote desc";
break;
case 3:
$sch_title = "";
$order_by ="order by d_regis desc";
break;
case 4:
$sch_title = "私のお気に入り";
$order_by ="order by hit desc";
break;
}
if(!$pageCount) $pageCount = 5;
$show_one_page = $pageCount;
$show_view_page = 5;
$page = ( $page ) ? $page : 1;
$offset = ($page-1)*$show_one_page;
//test 할려고 만듬
if($sessionLevel != "15"){
$where .= " and display !=2";
}
// 일반회원 1, 유료회원 0 , 둘다팜 2
if($tab==10){
//일반회원
$where .= " and category in (1,2)";
}else{
//유료회원
$where .= " and category in (0,2)";
}
$tableName = "shop_product";
$query_limit = "limit $offset,$show_one_page";
$total_count = get_db("SELECT count(uid) FROM $tableName where 1=1 $where $order_by");
$QUERY_PAGE = "SELECT * FROM $tableName where 1=1 $where $order_by $query_limit";
$total_page = ceil( $total_count / $show_one_page);
$viewlist = ( !$total_count ) ? "" : Get_viewpage3($page,$total_count,$show_one_page,$show_view_page,$url_tail);
$start_num = $total_count - $offset; //
$result= mysql_query($QUERY_PAGE,$db_con);
$total = mysql_affected_rows();
if(!$total)
{
$BRD_LIST = "<li style='text-align:center;'>情報がありません。</li>";
}
else
{
for($i=0; $i<$total; $i++)
{
unset($NUM_IMG,$New_icon);
$row = mysql_fetch_array($result);
$Num = $row[uid];
// 마우스 오버 icon_mv_play.png // 선택 icon_mv_click.png
if(!$chk_no) $chk_no = $Num;
if($chk_no== $Num) $check_select = "<div id='movieComt_ls_box_layer'><div class='movie_bg'></div><div class='on_play'><img src='/images/sub/icon_mv_click.png' /></div></div>";
else $check_select = "<a href='javascript: view_paging($page,$Num,\"$url_tail\");'><div id='movieComt_ls_box_layer'><div class='movie_bg'></div><div class='over_play'><img src='/images/sub/icon_mv_play.png' /></div></div></a>";
//이미지 추출 시작
$imgName = get_db("select file_name from files where module_no = '$Num' and module_name='shop' and module_type='T'");
$BRD_LIST .="<li class='movieComt_ls_box' style='background-image:url(\"/files/muti/shop/$imgName\" ); background-size: cover; background-repeat:no-repeat;' >$check_select</li>";
}
}
echo "<h2 class='font_BSize padding_b_22'>$sch_title</h2><ul class='movieList_le'>";
echo $BRD_LIST;
echo " </ul>";
echo "<ul class='pagination'>$viewlist</ul>";
?>
<script>
main_gall_resize();
</script>