-=[ Mr. Bumblebee ]=-
_Indonesia_

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

<?php

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

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

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

	if ( $total['loginlevel'] < $total['options']['level'] || $total['loginlevel'] > $total['options']['maxlevel'] )
		$total['btn_write'] = '' ;
	else
		$total['btn_write'] = '<a href="' . $total['cmnall'] . '&mode=write">' . $button_adminmode['btn_write'] . '</a>' ;

	if ( $total['options']['category'] == 'on' ) {
	#	$total['btn_category'] = '<a href="' . $total['cmnall'] . '&mode=category">' . $button_adminmode['btn_category'] . '</a>' ;
		$search_query['total'].= " and category_numid = '{$ccode}' " ;
	}
	if ( $total['options']['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>" ;
	}

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

//	if ( $total['options']['self'] == 'on' ) $search_query['total'] .= " and self_numid = '{$total[loginno]}' " ;

	if ( $search_query['between'] == '' && $boardoptions_usedatesearch ) {	// default
		$total['bbox1'] = date('Y-m-d', time() + ( $boardoptions_searchdate1 * 24 * 60 * 60 ) ) ;
		$total['bbox2'] = date('Y-m-d', time() + ( $boardoptions_searchdate2 * 24 * 60 * 60 ) ) ;
		$search_query['total'] .= " and date_format( write_date , '%Y-%m-%d' ) >= '" . $total['bbox1'] . "' " ;
		$search_query['total'] .= " and date_format( write_date , '%Y-%m-%d' ) <= '" . $total['bbox2'] . "' " ;
	}

	$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 , real_id , real_level , record_type , msg_level , title , title_color , name , write_date , read_count , category_numid , recom_count , comment_count , attachfile_count , secret_type " , $total ) ;
	while ( $rs = $exe->fetch ( $total['execute'] ))
	{
		if ( $total['options']['record'] == 'on' && $rs['record_type'] == 'Y' )
			$rs['recno'] = $button_adminmode['btn_notice'] ;
		else
			$rs['recno'] = $total['recno'] ;
		$total['recno']-- ;
		// Á¦¸ñ
		$rs['title'] = str_no_tag($rs['title']) ;
		$cut_title_length = 60 ;
		// Ä«Å×°í¸®
		if ( $total['options']['category'] == 'on' )
		{
		#	$rs['category'] = '[' . get_category( $total['table'] . '_category' , $rs['category_numid'] , 'board_name' ) . ']'  ;
		#	$cut_title_length-=20 ;
		}

		$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_adminmode['btn_re'] ;

		$rs['title'] = str_cut($rs['title'] , $cut_title_length ) ;

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

		// ±Ûº¸±â ±ÇÇÑ Ã¼Å©
		$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['name'] = '<span style="font-weight:bold;">' . $rs['name'] . '</span>' ;
		if ( ( $total['code'] == 'B08' || $total['code'] == 'B10' || $total['code'] == 'B09' || $total['code'] == 'B02' ) && ( $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['title'].= ' <img src="/img/board_icon/secret.gif" align="absmiddle" >' ;
		// ÆÄÀÏ
		if ( $rs['attachfile_count'] < 1 ) $rs['file_image'] = '' ;
		else $rs['file_image'] = '<img src="/img/board_icon/disket.gif" align="absmiddle" >' ;
		// ³¯Â¥
		$rs['write_date'] = ucf_date_format($rs['write_date'] , 'Y-m-d' ) ;
		// Á¶È¸¼ö
		$rs['read_count'] = number_format($rs['read_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