-=[ Mr. Bumblebee ]=-
_Indonesia_

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

<?php

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

	$skins = $skin->skin ( array (
								'frm'			=> 'FORM' ,
								'rep_tr'		=> 'REPEAT TR' ,
								'rep'			=> 'REPEAT' ,
								'rep_/tr'		=> 'REPEAT /TR' ,
								'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_write'] . '</a>' ;
	else
		$total['btn_write'] = '<a href="' . $total['cmnall'] . '&mode=write">' . $button['btn_write'] . '</a>' ;

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

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

	$repeat = '' ;
	$total['pagesize'] = $max_rows * $max_cols ;
	$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 , msg_level , title , name , write_date , read_count , secret_type , real_id , real_no , real_level , prev_image  , comment_count , attachfile_count " , $total ) ;
	$rs = $exe->fetch ( $total['execute'] ) ;
	for ( $row = 0 ; $row < $max_rows ; $row++ )
	{
		if ( empty($rs['numid'])) break ;
		$repeat.= $skins['rep_tr'] ;
		for ( $col = 0 ; $col < $max_cols; $col++ )
		{
			if ( emptY($rs['numid'])) $repeat.= $skins['none'] ;
			else
			{
				if ( $config[$total['code']][4]['record'] == 'on' && $rs['record_type'] == 'Y' )
					$rs['recno'] = $button['btn_notice'] ;
				else
					$rs['recno'] = $total['recno'] ;
				$total['recno']-- ;
				// Á¦¸ñ
				$rs['title'] = str_no_tag($rs['title']) ;
				$cut_title_length = 25 ;

				$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'] ;
				$rs['title'] = str_cut($rs['title'] , $cut_title_length ) ;
				// ÆÄÀÏ
				if ( file_info('files/' . $total['table'] . $info_thumb['directory'] . '/' . $rs['prev_image'] ) !== false )
				{
					$file_s_size = file_s_down ( 'files/' . $total['table'] . $info_thumb['directory'] . '/' . $rs['prev_image'] , $info_thumb['width'] , $info_thumb['height'] ) ;
					$rs['image'] = '<img src="/files/' . $total['table'] . $info_thumb['directory'] . '/' . $rs['prev_image'] . '" width="' . $file_s_size['width'] . '" height="' . $file_s_size['height'] . '">' ;
				}
				else $rs['image'] = '<img src="/img/admin/no_image.gif" width="' . $info_thumb['width'] . '" height="' . $info_thumb['height'] . '">' ;
				// ±Ûº¸±â ±ÇÇÑ Ã¼Å©
				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>' ;
							$rs['image'] = '<a href="' . $total['cmnall'] . '&mode=view&numid=' . $rs['numid'] . '">' . $rs['image'] . '</a>' ;
						}
						else
						{
							$rs['title'] = '<a href="' . $total['cmnall'] . '&mode=pass&next_mode=view&numid=' . $rs['numid'] . '">' . $rs['title'] . '</a>' ;
							$rs['image'] = '<a href="' . $total['cmnall'] . '&mode=pass&next_mode=view&numid=' . $rs['numid'] . '">' . $rs['image'] . '</a>' ;
						}
					}
					else
					{
						$rs['title'] = '<a href="' . $total['cmnall'] . '&mode=view&numid=' . $rs['numid'] . '">' . $rs['title'] . '</a>' ;
						$rs['image'] = '<a href="' . $total['cmnall'] . '&mode=view&numid=' . $rs['numid'] . '">' . $rs['image'] . '</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'] = str_no_tag($rs['name']) ;
				if ( !empty($rs['real_id'])) $rs['name'] = '<a href="' . $total['cmnurl'] . '&mode=' . $total['mode'] . '&ftyp=real_id&fbox=' . $rs['real_id'] . '"><span class="loginname">' . $rs['name'] . '</span></a>' ;
				// »õ±Û
				$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" >' ;

				// ³¯Â¥
				$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'] ) ;
			}
			$rs = $exe->fetch ( $total['execute'] ) ;
		}
		$repeat.= $skins['rep_/tr'] ;
	}

	// ÆäÀÌÁö ³ª´©±â
	$total = $exe->paging( $total['cmnval'] . '&mode=' . $total['mode'] , $total ) ;

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

	$result = str_foreach ( array ( 'repeat' => $repeat ) , 'INFO' , $skins['frm'] ) ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee