-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
########################################################
// skin file
########################################################
$skins = $skin->skin ( array (
'frm' => 'FORM' ,
'tr' => 'TR' ,
'td' => 'TD' ,
'n_td' => 'N TD' ,
'/tr' => '/TR'
) , $skinfile ) ;
$info = array(
'l_image' => ''
) ;
$max_row = 2 ;
$max_col = 5 ;
$total['pagesize'] = $max_row * $max_col ;
########################################################
// get data
########################################################
$query = " from tbl_{$total[table]} where keycode='{$total[code]}' " . $search_query['total'] . " order by numid desc " ;
$repeat = '' ;
$total = $exe->qry_list ( $query , " numid , title , imagefile1 " , $total ) ;
$rs = $exe->fetch($total['execute']) ;
for ( $i = 0 ; $i < $max_row ; $i++ ) {
$repeat.= $skins['tr'] ;
for ( $j = 0 ; $j < $max_col ; $j++ ) {
if ( !empty($rs['numid'])) {
if ( empty($info['l_image'])) {
if ( !empty($rs['imagefile1']))
$info['l_image'] = create_image( 'files/' . $total['table'] . '/L/' . $rs['imagefile1'] , $total['options']['lw'] , $total['options']['lh'] , ' id="l_emblem_image" ' ) ;
else
$info['l_image'] = create_image( 'img/0000.gif' , $total['options']['sw'] , $total['options']['sh'] , ' id="l_emblem_image" ' ) ;
}
if ( !empty($rs['imagefile1'])) $rs['imagefile1'] = create_image( 'files/' . $total['table'] . '/S/' . $rs['imagefile1'] , $total['options']['sw'] , $total['options']['sh'] , ' style="cursor:hand" onclick="ChangeEmblemImage(this);" ' ) ;
$rs['title'] = str_cut($rs['title'],20,' ');
$repeat.= str_foreach ( $rs , 'RS' , $skins['td'] ) ;
$rs = $exe->fetch($total['execute']) ;
} else $repeat.= $skins['n_td'] ;
}
$repeat.= $skins['/tr'] ;
if ( empty($rs['numid'])) break ;
}
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