-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/html/php/board/
File Upload :
Current File : /var/www/html/html/php/board/skn.list.php

<?php

########################################################
// skin file
########################################################

	$skins = $skin->skin ( array (
							'frm'			=> 'FORM' ,
							'rep'			=> 'REPEAT' ,
							'none'			=> 'NONE'
					 	 ) , $skinfile ) ;

########################################################
// button
########################################################

	if ( $config[$total['code']][4]['level'] >= 90 )
		$total['btn_write'] = '' ;
	else if ( $total['loginlevel'] < $config[$total['code']][4]['level'] || $total['loginlevel'] > $config[$total['code']][4]['maxlevel'] )
		$total['btn_write'] = '<a href="javascript:alert(\'·Î±×ÀÎÀÌ ÇÊ¿äÇÕ´Ï´Ù.\');">' . $button['btn_write2'] . '</a>' ;
	else
		$total['btn_write'] = '<a href="' . $total['cmnall'] . '&mode=write">' . $button['btn_write2'] . '</a>' ;

########################################################
// get data
########################################################

	if ( $config[$total['code']][4]['self'] == 'on' ) $search_query['total'] .= " and self_numid = '{$total[loginno]}' " ;
	if ( $config[$total['code']][4]['head'] == 'on' ) {
		$head_numid = str_extract ( explode( ',' , $total['ftyp'] ) , explode ( ',' , $total['fbox'] ) , 'head_contents' , 'string' ) ;
		$info['frm_head'] = "<script> _selectbox ( 'head_contents' , S" . $config[$total['code']][4]['hd_name'] . " , '{$head_numid}' , null , null , null , ' onchange=\" change_search_urlcode ( this , \'f\' , \'$total[cmnall]\') ;\" '); </script>" ;
	}

	$repeat = '' ;

	$total = $exe->qry_list ( " from tbl_{$total[table]} where keycode='{$total[code]}' {$search_query[total]} " .
							  " order by record_type asc , grp_id desc , seq_id asc " ,
							  " numid, record_type , head_contents , msg_level , title , title_color , name , write_date , read_count , secret_type , real_id , real_no , real_level , recom_count , comment_count , attachfile_count " , $total ) ;
	while ( $rs = $exe->fetch ( $total['execute'] ))
	{
		// Á¦¸ñ
		$rs['title'] = str_no_tag($rs['title']) ;
		$cut_title_length = $list_cut_title_length ;

		$rs['padding_left'] = '' ;
		for ( $i = 0 ; $i < $rs['msg_level'] ; $i++) {
			$rs['padding_left'].= '<span style="width:16px;"></span>' ;
			$cut_title_length-=4 ;
		}
		if ( !empty($rs['padding_left'])) $rs['padding_left'].= $button['btn_re'] ;

		if ( !empty($rs['head_contents']) && $config[$total['code']][4]['head'] == 'on' ) $rs['head_contents'] = '[' . $rs['head_contents'] . ']' ;

		$rs['title'] = str_cut($rs['title'] , $cut_title_length ) ;
		// Á¦¸ñ»ö»ó
		$rs['title'] = '<span style="color:' . $rs['title_color'] . '">' . $rs['title'] . '</span>' ;

		if ( $config[$total['code']][4]['record'] == 'on' && $rs['record_type'] == 'Y' ) {
			$rs['recno'] = $button['btn_notice'] ;
			$rs['title'] = "<b>" . $rs['title'] . '</b>' ;
		} else
			$rs['recno'] = $total['recno'] ;
		$total['recno']-- ;

		// ±Ûº¸±â ±ÇÇÑ Ã¼Å©
		if ( $total['loginlevel'] >= $config[$total['code']][4]['viewlevel'] )
		{
			if ( $config[$total['code']][4]['secret'] == 'on' && $rs['secret_type'] == 'Y' )
			{
				if ( !empty($total['loginid']) && !empty($total['loginno']) && $total['loginlevel'] == $rs['real_level'] && $total['loginno'] == $rs['real_no'] && $total['loginid'] == $rs['real_id'] )
					$rs['title'] = '<a href="' . $total['cmnall'] . '&mode=view&numid=' . $rs['numid'] . '">' . $rs['title'] . '</a>' ;
				else
					$rs['title'] = '<a href="' . $total['cmnall'] . '&mode=pass&next_mode=view&numid=' . $rs['numid'] . '">' . $rs['title'] . '</a>' ;
			}
			else
				$rs['title'] = '<a href="' . $total['cmnall'] . '&mode=view&numid=' . $rs['numid'] . '">' . $rs['title'] . '</a>' ;
		}
		// ´ñ±Û
		if ( empty($rs['comment_count'])) $rs['cmt_count'] = '' ;
		else $rs['cmt_count'] = '&nbsp;<span style="font-size:7pt;">[' . number_format($rs['comment_count']) . ']</span>' ;
		// À̸§
		$rs['name'] = html_entity_decode($rs['name']) ;
		if ( !empty($rs['real_id']) && $rs['real_level'] < 90 ) $rs['name'] = '<a href="' . $total['cmnurl'] . '&mode=' . $total['mode'] . '&ftyp=real_id&fbox=' . $rs['real_id'] . '"><span class="loginname">' . $rs['name'] . '</span></a>' ;
		if ( ( $total['code'] == 'B08' || $total['code'] == 'B02' || $total['code'] == 'B09' ) && ( $rs['msg_level'] > 0 && $rs['real_level'] > 90 ) ) $rs['name'] = '<img src="/img/logo_small.jpg"/>' ;
		// »õ±Û
		$rs['new_image'] = date_new ( $rs['write_date'] , 3 , '<img src="/img/board_icon/new.gif" align="absmiddle" >' ) ;
		// ºñ¹Ð±Û
		if ( $rs['secret_type'] == 'Y' ) $rs['secret_image'] = '<img src="/img/board_icon/secret.gif" align="absmiddle" >' ;
		// ÆÄÀÏ
		if ( $rs['attachfile_count'] < 1 ) $rs['file_image'] = '' ;
		else {
			$first_attach_file = $exe->qry_fetch ( " from tbl_{$info_file[table]} where keycode='{$total[code]}' order by write_date desc limit 1 " , " fileno " ) ;
			$rs['file_image'] = '<a href="/inc/file/down.php?num=' . $first_attach_file['fileno'] . '"><img src="/img/board_icon/disket.gif" align="absmiddle" ></a>' ;
		}
		// ³¯Â¥
		$rs['write_date'] = ucf_date_format($rs['write_date'] , 'y.m.d' ) ;
		// Á¶È¸¼ö
		$rs['read_count'] = number_format($rs['read_count']) ;
		// Ãßõ¼ö
		$rs['recom_count'] = number_format($rs['recom_count']) ;
		// ÃÖÁ¾
		$repeat.= str_foreach ( $rs , 'RS' , $skins['rep'] ) ;
	}
	// °Ô½Ã¹°ÀÌ Çϳªµµ ¾øÀ¸¸é
	if ( $total['totalcount'] < 1 ) $repeat = $skins['none'] ;
	// ÆäÀÌÁö ³ª´©±â
	$total = $exe->paging( $total['cmnval'] . '&mode=' . $total['mode'] , $total ) ;

	$info['repeat'] = $repeat ;


########################################################
// end
########################################################

	$result = str_foreach ( $info , 'INFO' , $skins['frm'] ) ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee