KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/queenjbs/yuchun_before_X/pages/profile.html
<?
include "inc_top.php";
if(!$act) $act=1;
${CHK_.$act} = "class='on'";

if(!$pageCount) $pageCount = 6;

$show_one_page      = $pageCount;
$show_view_page     = 10;
$page     = ( $page ) ? $page : 1;
$offset   = ($page-1)*$show_one_page;
$order_by ="order by sortNum,no desc,reg_date desc";

  //총 회원;
  if($sessionLevel !=15){ //관리자 일떄 다 보이기.
    $where .= " and is_secret='N' ";
  }

  if($act) $where .="AND division='$act'";



  $tableName = "board_profile";
  $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 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();' class='btn' id='$more_next_page' data-total='$total_page'>More</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 = "<article class='post' style='text-align:center;'>情報がありません。</article>";
  }
  else
  {
    for($i=0; $i<$total; $i++)
    {
		unset($New_icon,$img_file);
		$Num = ($total_count-$offset) - $i;
		$row = mysql_fetch_array($result);
		$regdate = substr($row[reg_date],0,10);

		if($row[is_notice] =='Y'){$New_icon="<strong class='iconew'>NEW</strong>";}

		if($row[is_secret] =='Y') $is_secret_chk="<font color=red>[관리자만 보임]</font>";
		else $is_secret_chk="";

		if($row[img_file1]) $img_file = "<img src='/files/muti/profile/$row[img_file1]' class='listImg'>";



    $BRD_LIST .="
	<li>$img_file
	<ul>
	<p class='tit'>$row[subject] $is_secret_chk</p>
	<p class='data'>$row[subtitle]</p>
	$New_icon</a>
	</ul>
	</li>
    ";

  }
}


?>
<style>
.post img {max-width:100%;}
</style>
<script>
	function chklist(val){
		//alert(val);
		$('#summary_'+val).hide();
		$('#original_'+val).show();
	}


	function fnMore(){
		var moreSel =$('.btn');
		var ID = moreSel.attr("id");

		$.ajax({
			type: "POST",
			url: "profile_ajax.php",
			data: "page="+ ID+"&act=<?=$act?>" ,
			cache: false,
			success: function(html){
				//alert(ID+" "+moreSel.attr("data-total"));
					$(".portfolioList").append(html);
					$(moreSel).attr("id",eval(ID)+1);
				if(ID == moreSel.attr("data-total")){
					$(moreSel).hide();
				}
			}
		});

    return false;
    }
</script>
<div class="visual-area pr">
		<div class="visual-area-in">
			<h2>PROFILE</h2>
   </div>
 </div>


 <!-- S container -->
  <section>
   <article>

	<div id="container">
  	<div class="content">
    <div class="pro_txt_area">
      <div class="pro_tit">About Yuchun</div>
      <div class="pro_txt">
 パク・ユチョンは持って生まれた感性、か弱い目、相手俳優との幻想的なケミストリーを発揮し、ブラウン管とスクリーンの両方を捕らえた。ドラマデビュー作「トキメキ☆成均館スキャンダル」をはじめ、「ミス・リプリー」、「屋根部屋のプリンス」、「会いたい」、「スリーデイズ」で多様なキャラクターを自分だけのものとして演じ切り、2014年の映画「海霧」を通して観客と評論家達から認められた俳優に生まれ変わった。
      </div>
    </div>
    	<div class="tab">
				<ul>
					<li <?=$CHK_1?>><a href="./profile.html?act=1">放送</a></li>
					<li <?=$CHK_2?>><a href="./profile.html?act=2">映画</a></li>
					<li <?=$CHK_3?>><a href="./profile.html?act=3">アルバム</a></li>
					<li <?=$CHK_4?>><a href="./profile.html?act=4">その他</a></li>
				</ul>
			</div>

       <ul class="portfolioList" id="dataUl">
          <?=$BRD_LIST?>
      </ul>


   </div>
   <div class='btn-area' id='btnMore' style='display: block;'>
	  <?=$viewMore?>
	  </div>
  </div>

   </article>
 	</section>
	<!--E : container -->

<?
include "inc_bottom.php";
?>

Anon7 - 2021