-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
# skin file
$skins = $skin->skin ( array (
'frm' => 'FORM' ,
'rep' => 'REPEAT' ,
'none' => 'NONE'
) , $skinfile ) ;
$searchQuery = array();
//$searchQuery[] = " if( t1.buyr_name is null , 1 , if( t1.buyr_name = 'test' , 0 , 1 )) " ;
if ( $total['styp'] == 'search' ) {
$total['sbox'] = trim($total['sbox']);
$searchQuery[] = " if(t1.now_state = '½Åû¿Ï·á' , t2.oname , t1.buyr_name ) like '%{$total[sbox]}%' " ;
$searchQuery[] = " if(t1.now_state = '½Åû¿Ï·á' , t2.oemail , t1.buyr_mail ) like '%{$total[sbox]}%' " ;
$searchQuery[] = " if(t1.now_state = '½Åû¿Ï·á' , t2.ohp , t1.buyr_tel1 ) like '%{$total[sbox]}%' " ;
$searchQuery[] = " t1.cash_no like '%{$total[sbox]}%' " ;
$searchQuery[] = " t1.receipt_no like '%{$total[sbox]}%' " ;
}
# get data
$repeat = '' ;
$total = $exe->qry_list ( " from tbl_{$total[table]} as t1
left outer join tbl_{$config[ODR][1]} as t2 on t1.ordr_no = t2.numid " .
( count($searchQuery) > 0 ? " where " . implode( " or " , $searchQuery ) : '' ) .
" order by t1.numid desc " , " t1.* , t2.oname , t2.ordertitle , t2.ohp , t2.result_price , t2.apply_cashhp , t2.apply_cashname , t2.pay_type , t2.pay_d_type , t2.pay_d_p1 , t2.pay_d_p2 " , $total ) ;
while ( $rs = $exe->fetch ( $total['execute'] ))
{
$o_rs = $rs ;
$rs['recno'] = $total['recno'] ;
$total['recno']-- ;
$rs['res_cd'] = $o_rs['res_cd'] != '0000' ? '½ÇÆÐ' : 'Á¤»ó' ;
if ( $rs['now_state'] == '½Åû¿Ï·á' ) {
if ( $o_rs['pay_type'] == 'D' && $o_rs['pay_d_type'] == '1' ) $o_rs['amt_tot'] = '¹ß±ÞºÒ°¡' ;
else if ( $o_rs['pay_type'] == 'D' && $o_rs['pay_d_type'] == '2' ) $o_rs['amt_tot'] = intval($o_rs['pay_d_p2']) ;
else if ( $o_rs['pay_type'] == 'D' && $o_rs['pay_d_type'] == '3' ) $o_rs['amt_tot'] = intval($o_rs['pay_d_p1']) + intval($o_rs['pay_d_p2']) ;
else $o_rs['amt_tot'] = intval($o_rs['result_price']) ;
$rs['buyr_name'] = $o_rs['oname'] ;
$rs['good_name'] = str_replace( array( ',' , '&' , ';' , "\\" , '|' , '\'' , '"' , '<' ) , '' , $o_rs['ordertitle'] ) ;
$rs['buyr_tel1'] = $o_rs['ohp'] ;
$rs['cash_no'] = '<div style="color:red">ÁÖ¹®½Ã Çö±Ý¿µ¼öÁõ ¹ß±Þ ½Åû <br />( H.P : ' . $o_rs['apply_cashhp'] . ' , À̸§ : ' . $o_rs['apply_cashname'] . ' )</div>' ;
$rs['res_cd'] = '¹Ì¹ß±Þ' ;
}
$rs['amt_tot'] = number_format($o_rs['amt_tot']);
$rs['w_link'] = $total['cmnall'] . ( $o_rs['now_state'] == '½Åû¿Ï·á' ? '&mode=write&ono=' . $o_rs['ordr_no'] : '&mode=modify&numid=' . $o_rs['numid'] ) ;
$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