-=[ Mr. Bumblebee ]=-
_Indonesia_
<?
if ( empty($numid)) script_re( $total['cmnall'] , 'À߸øµÈ Á¢±ÙÀÔ´Ï´Ù.') ;
$info = $exe->qry_fetch(" from tbl_{$total[table]} where numid = '{$numid}' " , " * , date_format(paydate,'%Y³â %m¿ù %dÀÏ %H½Ã %iºÐ') as paydate_new , date_format(write_date,'%Y³â %m¿ù %dÀÏ %H½Ã %iºÐ') as write_date_new " ) ;
if ( empty($info['numid'])) script_re ( $total['cmnall'] , ' ÁÖ¹®Á¤º¸¸¦ Àоî¿À´Âµ¥ ½ÇÆÐÇÏ¿´½À´Ï´Ù. ') ;
if ( $info['n_state'] == 'ÁÖ¹®ÀÓ½Ã' ) script_re ( $total['cmnall'] , ' ÁÖ¹®Á¤º¸¸¦ Àоî¿À´Âµ¥ ½ÇÆÐÇÏ¿´½À´Ï´Ù. ') ;
$binfo = $info ;
$pos_left_info_w = array( 0 , 41 , 41 , 41 , 92 , 90 , 90 , 43 , 43 , 90 , 92 , 90 , 90 , 74 , 74 ) ;
$pos_left_info_h = array( 0 , 33 , 33 , 33 , 62 , 35 , 35 , 35 , 35 , 35 , 77 , 35 , 35 , 63 , 63 ) ;
function gSize__printform2017($arr, $gubun , $goods_sizes = '' ) {
global $skins , $dinfo , $options_sizename ;
if ( count($arr) < 1 ) return '' ;
$gubuns = array( 'L' => array( '±äÆÈ »óÀÇ' , '±äÆÈ' , 'µî¹øÈ£' ) , 'S' => array( '¹ÝÆÈ »óÀÇ' , '¹ÝÆÈ' , 'µî¹øÈ£' ) , 'B' => array( 'ÇÏÀÇ' , 'ÇÏÀÇ' , 'ÇÏÀǹøÈ£' ) ) ;
$repeat = '' ;
$repeat2 = '' ;
$lastsize = false ;
$sum = array() ;
$sumcount = 0 ;
foreach( $arr as $k => $v ) {
if ( $lastsize === false ) $lastsize = $v['size'] ;
$repeat .= '<tr>
<td class="c ' . $v['serviceclass'] . '" style="text-align:center; ' . ( $lastsize != $v['size'] ? 'border-top:2px solid #000; ' : '' ) . '">' . ($k+1) . '</td>
<td class="c ' . $v['serviceclass'] . '" style="text-align:center; ' . ( $lastsize != $v['size'] ? 'border-top:2px solid #000; ' : '' ) . '">' . $options_sizename[$v['size']] . '</td>
' . ( $gubun == 'B' ? '' : '
<td class="c ' . $v['serviceclass'] . '" style="text-align:center; ' . ( $lastsize != $v['size'] ? 'border-top:2px solid #000; ' : '' ) . '">' . $v[ 'numb1' ] . '</td>
' ) . '
<td class="c ' . $v['serviceclass'] . '" style="text-align:center; ' . ( $lastsize != $v['size'] ? 'border-top:2px solid #000; ' : '' ) . '">' . $v[ $gubun =='B' ? 'numb3' : 'numb2' ] . '</td>
<td class="c ' . $v['serviceclass'] . '" style="text-align:center; ' . ( $lastsize != $v['size'] ? 'border-top:2px solid #000; ' : '' ) . '">' . ( $gubun =='B' ? '' : $v['initial'] ) . '</td>
</tr>' ;
$sum[$v['size']] = intval($sum[$v['size']]) + 1 ;
$sumcount++ ;
$lastsize = $v['size'] ;
}
# ÇÏÀÇ ºó »çÀÌÁî Ãâ·Â
if ( $goods_sizes != '' ) {
$goodsget_selectsizes = explode( ',' , $goods_sizes );
foreach( $goodsget_selectsizes as $k => $v ) if ( array_key_exists( $v , $sum ) === false ) $sum[$v] = 0 ;
ksort($sum);
}
foreach( $sum as $k => $v ) {
$repeat2 .= '<tr>
<td class="c ' . $v['serviceclass'] . '" style="text-align:center;">' . $options_sizename[$k] . '</td>
<td class="c ' . $v['serviceclass'] . '" style="text-align:center;">' . $v . '</td>
</tr>' ;
}
return str_foreach( array(
'title' => $gubuns[$gubun][0] ,
'title2' => $gubuns[$gubun][1] ,
'posname' => $gubuns[$gubun][2] ,
'posname_top_front' => $gubun == 'B' ? '' : '<th class="t" width="20%">¾Õ¹øÈ£</th>' ,
'rep' => $repeat ,
'img' => $dinfo['printform2_goodsimg'] ,
'rep2' => $repeat2 ,
'sum' => $sumcount
) , 'RS' , $skins['printform2'] ) ;
}
function gSize__qryContents2015($s_size,$ftype='M') {
global $top_armtype_tit ; // ¼Ò¸Å¸í
global $options_sizename , $options_sizename_atype ; // »çÀÌÁî¸í
$return = array( 'L' => '' , 'S' => '' , 'B' => '' ) ; // °á°ú
$top_armtype_tit['B'] = '¹ÙÁö' ;
$i = 0 ;
$r = 0 ;
krsort($s_size); // ¹ÝÆÈ ¿ì¼±
foreach ( $s_size as $tmpArmtype => $tmpSizes ) {
//if ( $tmpArmtype == 'B' ) continue ;
$i = 0 ;
$r = count($tmpSizes) ;
foreach ( $tmpSizes as $tmpSizename => $tmpQry ) {
$i++ ;
$return[$tmpArmtype] .= '<div style="float:left;width:80px;margin-top:5px;">' . ( $ftype == 'M' ? $options_sizename_atype[$tmpSizename] : $options_sizename[$tmpSizename] ) . '=' . $tmpQry . ' ' . ( $i < $r ? ',' : '' ) . '</div>' ;
}
$return[$tmpArmtype] = $return[$tmpArmtype] != '' ? '<div style="float:left;width:50px;margin-top:5px;">' . $top_armtype_tit[$tmpArmtype] . ' : </div>' . $return[$tmpArmtype] : '' ;
}
return '<div>' . implode( '<div style="clear:both;"></div>' , $return ) . '</div>' ;
}
function numbSplit2( $gubun, $numb , $numblen , $s_numb ) {
if ( $numblen > 0 ) {
for ( $ni = 0 ; $ni < $numblen ; $ni++) {
$tnb = substr( $numb , $ni , 1 ) ;
if ( is_numeric($tnb)) $s_numb[$gubun]['t' . $tnb] = intval($s_numb[$gubun]['t' . $tnb]) + 1 ;
$s_numb[$gubun]['sum'] = intval($s_numb[$gubun]['sum']) + 1 ;
}
}
return $s_numb ;
}
function numbSplit( $numb , $numblen , $s_numb ) {
if ( $numblen > 0 ) {
$tnb = '' ;
for ( $ni = 0 ; $ni < $numblen ; $ni++) {
$tnb = substr( $numb , $ni , 1 ) ;
if ( is_numeric($tnb))
$s_numb['t' . $tnb] = intval($s_numb['t' . $tnb]) + 1 ;
else {
switch ( $tnb ) {
case '.' :
$tnb = 'A' ;
$s_numb['t' . $tnb] = intval($s_numb['t' . $tnb]) + 1 ;
break ;
case '<' :
$tnb = 'B' ;
$s_numb['t' . $tnb] = intval($s_numb['t' . $tnb]) + 1 ;
break ;
case '>' :
$tnb = 'C' ;
$s_numb['t' . $tnb] = intval($s_numb['t' . $tnb]) + 1 ;
break ;
case ';' :
$tnb = 'D' ;
$s_numb['t' . $tnb] = intval($s_numb['t' . $tnb]) + 1 ;
break ;
case "'" :
$tnb = 'E' ;
$s_numb['t' . $tnb] = intval($s_numb['t' . $tnb]) + 1 ;
break ;
case '[' :
$tnb = 'F' ;
$s_numb['t' . $tnb] = intval($s_numb['t' . $tnb]) + 1 ;
break ;
case ']' :
$tnb = 'G' ;
$s_numb['t' . $tnb] = intval($s_numb['t' . $tnb]) + 1 ;
break ;
}
}
}
}
return $s_numb ;
}
# skin file
$skins = $skin->skin ( array ( 'frm' => 'FORM' ,
'mfrm' => 'M FORM' ,
'mpos' => 'M POS',
'mstk' => 'M STOCKING' ,
'moptrep' => 'M OPTION REP' ,
'mszr' => 'M SIZE REP' ,
'mszi' => 'M SIZE INFO' ,
'mnb' => 'M NUMBERS' ,
// common
'tfrm' => 'T FORM' ,
'trep' => 'T REPEAT' ,
// A type
'afrm' => 'A FORM' ,
'arep' => 'A REPEAT' ,
'aszr' => 'A SIZE REP' ,
'printform2' => 'A PRINTFORM2'
) , $skinfile ) ;
$gsexe = $exe->qry_one(" from tbl_{$total[table]}_gs as tbl01 where orderScode = '{$info[orderScode]}' order by seq asc " , " * , ( select imglist from tbl_{$config[SHP][1]}_item where numid = tbl01.goods_no ) as goodsget_imagename, ( select selectsizes from tbl_{$config[SHP][1]}_item where numid = tbl01.goods_no ) as goodsget_selectsizes " ) ;
$repeat = '' ;
$order_seq = 0 ;
while ( $gsrs = $exe->fetch($gsexe)) {
unset($dinfo) ;
unset($useInitial) ;
$rep_orderoption = '' ;
$frm_orderinfo = '' ;
$useInitial = array() ;
$order_seq++ ;
$gs_contents = '' ;
for ( $i = 1 ; $i <= 4 ; $i++ ) {
$gs_contents .= ( !empty($gsrs['file' . $i]) ? '<p><img src="/img/board_icon/disket.gif" align="absmiddle"> <a href="' . $total['cmnnb'] . '&mode=down&gs_no=' . $gsrs['numid'] . '&seq=' . $i . '">´Ù¿î·Îµå : ' . $gsrs['file' . $i] . '</a></p>' : '' ) ;
}
$gs_contents .= str_mode($gsrs['contents'],'HTML') ;
$gs_seq = $info['order_qry'] > 0 ? ' - ' . str_pad( $order_seq , strlen($info['order_qry']) , '0' , STR_PAD_LEFT ) : '' ;
$admin_mState_memo = ( empty($gsrs['last_mDate']) ? '' : '<p>ÃÖÁ¾ ¼öÁ¤ÀÏ : ' . $gsrs['last_mDate'] . '</p>' ) . str_mode($gsrs['admin_mState_memo'] , 'TEXT') ;
if ( $gsrs['formtype'] == 'M' ) {
// option info
$trep_orderoption = '' ;
$trep_ordercount = 0 ;
$topprice = 0 ;
$botprice = 0 ;
$sum_orderoption = 0 ;
if ( $gsrs['g_price'] > 0 ) {
$trep_ordercount ++ ;
$trep_orderoption.= '<th class="t" colspan="2">񃧯</th>' .
str_foreach( array(
'qry' => $gsrs['totalqry'] ,
'price' => number_format( $gsrs['g_price']) ,
'sum' => number_format( $gsrs['g_price'] * $gsrs['totalqry'])
) , 'MOPTREP' , $skins['moptrep']);
$sum_orderoption += $gsrs['g_price'] * $gsrs['totalqry'] ;
}
if ( $gsrs['top_qry'] > 0 || $gsrs['topprice'] > 0 ) {
$trep_ordercount ++ ;
$trep_orderoption.= '<th class="t" colspan="2">»óÀÇ</th>' .
str_foreach( array(
'qry' => $gsrs['top_qry'] ,
'price' => number_format( $gsrs['topprice']) ,
'sum' => number_format( $gsrs['topprice'] * $gsrs['top_qry'])
) , 'MOPTREP' , $skins['moptrep']) ;
$topprice += $gsrs['topprice'] ;
$sum_orderoption += $gsrs['topprice'] * $gsrs['top_qry'] ;
}
if ( $gsrs['bot_qry'] > 0 || $gsrs['botprice'] > 0 ) {
$trep_ordercount ++ ;
$trep_orderoption.= '<th class="t" colspan="2">ÇÏÀÇ</th>' .
str_foreach( array(
'qry' => $gsrs['bot_qry'] ,
'price' => number_format( $gsrs['botprice']) ,
'sum' => number_format( $gsrs['botprice'] * $gsrs['bot_qry'])
) , 'MOPTREP' , $skins['moptrep']) ;
$botprice += $gsrs['botprice'] ;
$sum_orderoption += $gsrs['botprice'] * $gsrs['bot_qry'] ;
}
$rep_orderoption.= '<th class="t" rowspan="' . $trep_ordercount . '">Ã౸º¹</th>' . $trep_orderoption ;
// pos
$posexe = $exe->qry_one(" from tbl_{$total[table]}_pos as opos left outer join tbl_{$config[OT1][1]} as optinfo on opos.p_idx = optinfo.numid where opos.gs_no = '{$gsrs[numid]}' order by opos.pos asc " , " opos.* , optinfo.keycode , optinfo.img1 , optinfo.title " ) ; // ¼±Åà ¿É¼Ç
while ( $posrs = $exe->fetch($posexe) ) {
$pos = $posrs['pos'] ;
$i = intval($pos) ;
if ( $posrs['p_code'] == 'e' || $posrs['p_code'] == 's' || $posrs['p_code'] == 'p' )
{
$dinfo['posimg' . $pos] = !empty($posrs['img1']) ? '<img src="/files/' . $config[$posrs['keycode']][1] . '/' . $config[$posrs['keycode']][4]['dir'] . '/' . $posrs['img1'] . '" width="' . $pos_left_info_w[$i] . '" height="' . $pos_left_info_h[$i] . '"/>' : '' ;
$dinfo['frm_pos' . $pos] = str_foreach ( array(
'postitle' => $position_seq_title[$pos] ,
'img' => ( !empty($posrs['img1']) ? create_image ('files/' . $config[$posrs['keycode']][1] . '/' . $config[$posrs['keycode']][4]['dir'] . '/' . $posrs['img1'] , 100 , 25 ) : '' ) ,
'title' => $posrs['p_title'] ,
'price' => ($posrs['p_price1'] > 0 ? number_format($posrs['p_price1']) . '¿ø' : '' ) ,
'codetitle' => $options_code_title[$posrs['p_code']]
) , 'MPOS' , $skins['mpos'] ) ;
$dinfo['frm_opt' . $pos] = '<th class="t">' . $position_seq_title[$pos] . '</th>' . str_foreach( array(
'code' => $options_code_title[$posrs['p_code']] ,
'title' => ( !empty($posrs['img1']) ? create_image ('files/' . $config[$posrs['keycode']][1] . '/' . $config[$posrs['keycode']][4]['dir'] . '/' . $posrs['img1'] , 100 , 25 ) : '' ) . $posrs['p_title'] ,
'qry' => ( $i < 13 ? $gsrs['top_qry'] : $gsrs['bot_qry'] ) ,
'price' => number_format($posrs['p_price1']) ,
'sum' => number_format($posrs['p_price1']*( $i < 13 ? $gsrs['top_qry'] : $gsrs['bot_qry'] )) ,
) , 'MOPTREP' , $skins['moptrep']) ;
if ( $i < 13 ) $topprice += $posrs['p_price1'] ;
else $botprice += $posrs['p_price1'] ;
$sum_orderoption += $posrs['p_price1']*( $i < 13 ? $gsrs['top_qry'] : $gsrs['bot_qry'] ) ;
}
elseif ( $posrs['o_code'] == 'e' || $posrs['o_code'] == 's' || $posrs['o_code'] == 'p')
{
$dinfo['posimg' . $pos] = !empty($posrs['img1']) ? '<img src="/files/' . $config[$posrs['keycode']][1] . '/' . $config[$posrs['keycode']][4]['dir'] . '/' . $posrs['img1'] . '" width="' . $pos_left_info_w[$i] . '" height="' . $pos_left_info_h[$i] . '"/>' : '' ;
$dinfo['frm_pos' . $pos] = str_foreach ( array(
'postitle' => $position_seq_title[$pos] ,
'img' => ( !empty($posrs['img1']) ? create_image ('files/' . $config[$posrs['keycode']][1] . '/' . $config[$posrs['keycode']][4]['dir'] . '/' . $posrs['img1'] , 100 , 25 ) : '' ) ,
'title' => $posrs['title'] ,
'codetitle' => $options_code_title[$posrs['o_code']]
) , 'MPOS' , $skins['mpos'] ) ;
$dinfo['frm_opt' . $pos] = '<th class="t">' . $position_seq_title[$pos] . '</th>' . str_foreach( array(
'code' => $options_code_title[$posrs['o_code']] ,
'title' => ( !empty($posrs['img1']) ? create_image ('files/' . $config[$posrs['keycode']][1] . '/' . $config[$posrs['keycode']][4]['dir'] . '/' . $posrs['img1'] , 100 , 25 ) : '' ) . $posrs['title'] ,
'qry' => ( $i < 13 ? $gsrs['top_qry'] : $gsrs['bot_qry'] ) ,
'price' => 0 ,
'sum' => 0
) , 'MOPTREP' , $skins['moptrep']) ;
}
elseif ( $posrs['p_code'] == 'n' || $posrs['o_code'] == 'n')
{
$dinfo['posimg' . $pos] = !empty($posrs['img1']) ? '<img src="/files/' . $config[$posrs['keycode']][1] . '/' . $config[$posrs['keycode']][4]['dir'] . '/' . $posrs['img1'] . '" width="' . $pos_left_info_w[$i] . '" height="' . $pos_left_info_h[$i] . '"/>' : '' ;
$dinfo['frm_pos' . $pos] = str_foreach ( array(
'postitle' => $position_seq_title[$pos] ,
'img' => ( !empty($posrs['img1']) ? create_image ('files/' . $config[$posrs['keycode']][1] . '/' . $config[$posrs['keycode']][4]['dir'] . '/' . $posrs['img1'] , 100 , 25 ) : '' ) ,
'title' => $posrs['p_title'] ,
'codetitle' => $options_code_title['n']
) , 'MPOS' , $skins['mpos'] ) ;
$dinfo['frm_opt' . $pos] = '<th class="t">' . $position_seq_title[$pos] . '</th>' . str_foreach( array(
'code' => $options_code_title['n'] ,
'title' => ( !empty($posrs['img1']) ? create_image ('files/' . $config[$posrs['keycode']][1] . '/' . $config[$posrs['keycode']][4]['dir'] . '/' . $posrs['img1'] , 100 , 25 ) : '' ) . $posrs['p_title']
) , 'MOPTREP' , $skins['moptrep']) ;
}
elseif ( $posrs['p_code'] == 'i' || $posrs['o_code'] == 'i')
{
$dinfo['frm_pos' . $pos] = str_foreach ( array(
'postitle' => $position_seq_title[$pos] ,
'arch' => ( $posrs['p_arch'] == 'Y' ? '¾ÆÄ¡Çü' : '' ) ,
'codetitle' => $options_code_title['i']
) , 'MPOS' , $skins['mpos'] ) ;
$dinfo['frm_opt' . $pos] = '<th class="t">' . $position_seq_title[$pos] . '</th>' . str_foreach( array(
'code' => $options_code_title['i'] ,
'arch' => ( $posrs['p_arch'] == 'Y' ? number_format($gsrs['initial_arch']) : '' )
) , 'MOPTREP' , $skins['moptrep']) ;
$useInitial[$pos][0] = 'Y' ;
$useInitial[$pos][1] = $posrs['p_arch'] ;
$useInitial[$pos][2] = $posrs['o_code'] ;
}
elseif ( $posrs['p_code'] == 't' || $posrs['o_code'] == 't')
{
$price = 0 ;
if ( !empty($posrs['p_tn'])) {
$tnlen = mb_strlen(str_replace( ' ' , '' , $posrs['p_tn'] ) , 'EUC_KR' );
if ( $posrs['o_code'] == 't' ) $price = 0 ;
else $price = $gsrs['teamtype'] == 'O' ? $tnlen * $gsrs['team_o_price'] : $gsrs['team_f_price'] ;
$price += $posrs['p_arch'] == 'Y' ? $gsrs['team_arch'] : 0 ; // arch
}
$dinfo['frm_pos' . $pos] = str_foreach ( array(
'postitle' => $position_seq_title[$pos] ,
'title' => $posrs['p_tn'] ,
'price' => ( $price > 0 ? number_format($price) . '¿ø' : '' ) ,
'arch' => ( $posrs['p_arch'] == 'Y' ? '¾ÆÄ¡Çü' : '' ) ,
'codetitle' => $options_code_title['t']
) , 'MPOS' , $skins['mpos'] ) ;
$dinfo['frm_opt' . $pos] = '<th class="t">' . $position_seq_title[$pos] . '</th>' . str_foreach( array(
'code' => $options_code_title['t'] ,
'title' => $posrs['p_tn'] ,
'qry' => ( $i < 13 ? $gsrs['top_qry'] : $gsrs['bot_qry'] ) ,
'price' => ( $price > 0 ? number_format($price) . '' : '' ) ,
'arch' => ( $posrs['p_arch'] == 'Y' ? number_format($gsrs['team_arch']) : '' ) ,
'sum' => ( $price > 0 ? number_format($price*( $i < 13 ? $gsrs['top_qry'] : $gsrs['bot_qry'] )) : '' ) ,
) , 'MOPTREP' , $skins['moptrep']) ;
if ( $i < 13 ) $topprice += $price;
else $botprice += $price;
$sum_orderoption += $price*( $i < 13 ? $gsrs['top_qry'] : $gsrs['bot_qry'] ) ;
}
else
{ // ¼±ÅþøÀ½ ȤÀº ¼±ÅúҰ¡
$dinfo['frm_pos' . $pos] = str_foreach ( array(
'postitle' => $position_seq_title[$pos]
) , 'MPOS' , $skins['mpos'] ) ;
$dinfo['frm_opt' . $pos] = '<th class="t">' . $position_seq_title[$pos] . '</th>' . str_foreach( array(
) , 'MOPTREP' , $skins['moptrep']) ;
}
}
// stockings
$stkexe = $exe->qry_one(" from tbl_{$total[table]}_stk where gs_no = '{$gsrs[numid]}' order by numid " , " * " ) ;
$dinfo['frm_optstocking'] = '' ;
$s_rowcount = 0 ;
while ( $stkrs = $exe->fetch($stkexe)) {
$price = $stkrs['qry'] * $gsrs['stocking_price'] ;
$sum_orderoption += $price ;
$price = $price > 0 ? number_format($price) : '' ;
$dinfo['frm_stocking'] .= str_foreach ( array(
'nm' => $stkrs['nm'] ,
'qry' => $stkrs['qry'] . ' ÄÓ·¹' ,
'price' => $price
) , 'MSTK' , $skins['mstk'] ) ;
$dinfo['frm_optstocking'] .= str_foreach( array(
'code' => $stkrs['nm'] ,
'qry' => $stkrs['qry'] ,
'price' => number_format($gsrs['stocking_price']) ,
'sum' => $price
) , 'MOPTREP' , $skins['moptrep']) ;
$s_rowcount++ ;
}
$dinfo['frm_optstocking'] = empty($dinfo['frm_optstocking']) ? str_foreach( array() , 'MOPTREP' , $skins['moptrep']) : $dinfo['frm_optstocking'] ;
$dinfo['frm_optstocking'] = '<th class="t" colspan="3" rowspan="' . ( $s_rowcount < 1 ? 1 : $s_rowcount ) . '">½ºÅ¸Å·</th>' . $dinfo['frm_optstocking'] ;
// size
$frm_ordersizes = '' ;
//$szexe = $exe->qry_one(" from tbl_{$total[table]}_size where gs_no = '{$gsrs[numid]}' order by seq asc " , " * " ) ;
$szexe = $exe->qry_one(" from tbl_{$total[table]}_size where gs_no = '{$gsrs[numid]}' order by armtype desc , tsize , seq asc " , " * " ) ;
$szseq = 1 ;
$allsum = 0 ;
$s_size = array( 'L' => array() , 'S' => array() , 'B' => array() ) ;
$s_numb = array( '1' => array() , '2' => array() , '3' => array() ) ;
while ( $szrs = $exe->fetch($szexe)) {
$szrs['psum'] = 0 ;
if ( $szrs['tsize'] > 0 ) {
$szrs['arm' . $szrs['armtype']] = $options_sizename_atype[$szrs['tsize']] ;
$szrs['topprice'] = number_format($gsrs['topprice'] + $gsrs['arm_' . strtolower($szrs['armtype']) . '_price']);
$szrs['psum'] += $topprice + $gsrs['arm_' . strtolower($szrs['armtype']) . '_price'] ;
$s_size[$szrs['armtype']][$szrs['tsize']] = intval($s_size[$szrs['armtype']][$szrs['tsize']]) + 1 ;
}
if ( $szrs['bsize'] > 0 ) {
$szrs['bot'] = $options_sizename_atype[$szrs['bsize']] ;
$szrs['botprice'] = number_format($gsrs['botprice']);
$szrs['psum'] += $botprice ;
$s_size['B'][$szrs['bsize']] = intval($s_size['B'][$szrs['bsize']]) + 1 ;
}
if ( $szrs['initialnm'] != '' ) {
$initial_p = 0 ;
$initial = str_replace( ' ' , '' , $szrs['initialnm'] ) ;
$chkAllKr = input_initial_price($initial) ;
$szrs['initial'] = $szrs['initialnm'] ;
if ( $chkAllKr ) $initialp = $gsrs['nfont_gubun'] == 'B' ? $gsrs['initial_kr_s'] : $gsrs['initial_kr_c'] ;
else $initialp = $gsrs['nfont_gubun'] == 'B' ? $gsrs['initial_en_s'] : $gsrs['initial_en_c'] ;
$initial_p += $useInitial['09'][0] == 'Y' && $useInitial['09'][2] != 'i' ? $initialp : 0 ;
$initial_p += $useInitial['09'][0] == 'Y' && $useInitial['09'][1] == 'Y' ? $gsrs['initial_arch'] : 0 ;
$initial_p += $useInitial['11'][0] == 'Y' && $useInitial['11'][2] != 'i' ? $initialp : 0 ;
$initial_p += $useInitial['11'][0] == 'Y' && $useInitial['11'][1] == 'Y' ? $gsrs['initial_arch'] : 0 ;
//$initial_p += $useInitial['09'][0] == 'Y' ? $initialp + ( $useInitial['09'][1] == 'Y' ? $gsrs['initial_arch'] : 0 ) : 0 ;
//$initial_p += $useInitial['11'][0] == 'Y' ? $initialp + ( $useInitial['11'][1] == 'Y' ? $gsrs['initial_arch'] : 0 ) : 0 ;
$szrs['psum'] += $initial_p ;
}
$numb = str_replace( ' ' , '' , $szrs['numb'] ) ;
$numblen = $numb != '' ? strlen($numb) : 0 ;
$numbp = 0 ;
if ( $szrs['npos1'] == 'Y' ) {
$szrs['numb1'] = $szrs['numb'] ;
$numbp += $numblen * $gsrs['nfont_p1'] ;
$s_numb['1'] = numbSplit($numb, $numblen,$s_numb['1']) ;
}
if ( $szrs['npos2'] == 'Y' ) {
$szrs['numb2'] = $szrs['numb'] ;
$numbp += $numblen * $gsrs['nfont_p2'] ;
$s_numb['2'] = numbSplit($numb, $numblen,$s_numb['2']) ;
}
if ( $szrs['npos3'] == 'Y' ) {
$szrs['numb3'] = $szrs['numb'] ;
$numbp += $numblen * $gsrs['nfont_p3'] ;
$s_numb['3'] = numbSplit($numb, $numblen,$s_numb['3']) ;
}
$szrs['numbp'] = $numbp > 0 ? number_format($numbp) : '' ;
$szrs['psum'] += $numbp ;
$szrs['psum'] += $gsrs['g_price'] ; // ±âº»°¡
$allsum += $szrs['psum'] ;
$szrs['psum'] = number_format($szrs['psum']) ;
$szrs['asum'] = number_format($allsum) ;
$szrs['seq'] = $szseq ;
$szseq++ ;
$frm_ordersizes.= str_foreach ( $szrs , 'SZ' , $skins['mszr']) ;
}
// ¼Ò¸Å > »çÀÌÁ ¼ö·® 2015-07 (1/2)
$dinfo['frm_ordersizeqry'] = gSize__qryContents2015($s_size) ;
// ¼Ò¸Å > »çÀÌÁ ¼ö·® 2015-07 (1/2) ³¡
$frm_sizeinfo = '' ;
foreach ( $s_size as $k => $v ) {
$sm = 0 ;
foreach ( $v as $k2 => $v2 ) { $sm += $v2 ; }
$v['total'] = $sm > 0 ? $sm : '' ;
$v['title'] = '' ;
if ( $k == 'L' ) $v['title'] = '»óÀÇ ±äÆÈ' ;
elseif ( $k == 'S' ) $v['title'] = '»óÀÇ ¹ÝÆÈ' ;
else $v['title'] = 'ÇÏÀÇ' ;
$frm_sizeinfo.= str_foreach ( $v , 'SI' , $skins['mszi']) ;
}
$frm_numbers = '' ;
foreach ( $s_numb as $k => $v ) {
$v['title'] = '' ;
if ( $k == '1' ) $v['title'] = '¾Õ ¹øÈ£' ;
elseif ( $k == '2' ) $v['title'] = 'µî ¹øÈ£' ;
else $v['title'] = 'ÇÏÀÇ(ÁÂ)' ;
$frm_numbers.= str_foreach ( $v , 'NB' , $skins['mnb']) ;
}
// goods end
$goods_imgrs = $exe->qry_fetch(" from tbl_{$config[SHP][1]}_item where numid = '{$gsrs[goods_no]}' " , " numid , imglist " ) ;
$goods_img = empty($goods_imgrs['numid']) || empty($goods_imgrs['imglist']) ? '' : create_image( 'files/' . $config['SHP'][4]['list_dir'] . '/' . $goods_imgrs['imglist'] , 50 , 50 , " align='absmiddle' ") ;
$dinfo = array_merge( $dinfo , array(
'repeat' => $rep_orderoption ,
'sum' => number_format($sum_orderoption),
'frm_ordersizes' => $frm_ordersizes ,
'frm_sizeinfo' => $frm_sizeinfo ,
'frm_numbers' => $frm_numbers ,
'numid' => $gsrs['numid'] ,
'ordertitle' => $gsrs['title'] ,
'goods_img' => $goods_img ,
'contents' => $gs_contents ,
'seq' => $gs_seq ,
'admin_mState_memo' => $admin_mState_memo ,
'MAtype_hopedate' => $gsrs['MAtype_hopedate'] ,
'MAtype_eventdate' => $gsrs['MAtype_eventdate'] ,
'MAtype_payintype' => ( $gsrs['MAtype_payintype'] == 'A' ? '¼±ºÒ' : ( $gsrs['MAtype_payintype'] == 'B' ? 'ÈÄºÒ <div style="margin-top:5px;">
<table class="tskin06">
<tr>
<th class="t">ÀԱݿ¹Á¤ÀÏ</th><td class="c">' . $gsrs['MAtype_payindate'] . '</td>
<th class="t">ÁÖ¹®ÀÚ ¿¬¶ôó</th><td class="c">' . $gsrs['hoooption_hp'] . '</td>
<th class="t">Çгâ/¹Ý</th><td class="c">' . $gsrs['hoooption_schooly'] . 'Çгâ ' . $gsrs['hoooption_classname'] . '¹Ý</td>
</tr>
<tr>
<th class="t">Çб³¸í</th><td class="c">' . $gsrs['hoooption_schoolname'] . '</td>
<th class="t">´ãÀÓ¼±»ý´Ô ¼ºÇÔ</th><td class="c">' . $gsrs['hoooption_teachername'] . '</td>
<th class="t">´ãÀÓ¼±»ý´Ô ¿¬¶ôó</th><td class="c">' . $gsrs['hoooption_teacherhp'] . '</td>
</tr>
</table>
</div>' : '' )) ,
'MAtype_gifttext' => ( !empty($gsrs['MAtype_giftno']) ? '<tr><th class="t" colspan="3">»çÀºÇ°</th><td class="c pd8" colspan="6" align="left">' . nl2br($gsrs['MAtype_gifttext']) . '</td></tr>' : '' )
) ) ;
$frm_orderinfo.= str_foreach ( $dinfo , 'DINFO' , $skins['mfrm']) ;
}
elseif ( $gsrs['formtype'] == 'T' )
{
$dinfo = array(
'numid' => $gsrs['numid'] ,
'ordertitle' => $gsrs['title'] ,
'contents' => $gs_contents ,
'seq' => $gs_seq ,
'repeat' => '' ,
'sum' => 0 ,
'admin_mState_memo' => $admin_mState_memo
) ;
if ( $gsrs['tn_use'] == 'Y' ) {
$tnlen = mb_strlen(str_replace( ' ' , '' , $gsrs['tn_text'] ) , 'EUC_KR' );
$opt_price = $gsrs['teamtype'] == 'O' ? $tnlen * $gsrs['team_o_price'] : $gsrs['team_f_price'] ;
$dinfo['repeat'] .= str_foreach( array(
'title' => 'ÆÀ¸í' ,
'qry' => $gsrs['totalqry'] ,
'price' => number_format($opt_price) ,
'sum_price' => number_format($gsrs['totalqry'] * $opt_price) ,
'etcmemo' => $gsrs['tn_text']
) , 'RP' , $skins['trep'] ) ;
$dinfo['sum'] += $gsrs['totalqry'] * $opt_price ;
if ( $gsrs['tn_arch'] == 'Y' ) {
$dinfo['repeat'] .= str_foreach( array(
'title' => '¾ÆÄ¡Çü' ,
'qry' => $gsrs['totalqry'] ,
'price' => number_format($gsrs['team_arch']) ,
'sum_price' => number_format($gsrs['totalqry'] * $gsrs['team_arch']) ,
'etcmemo' => ''
) , 'RP' , $skins['trep'] ) ;
$dinfo['sum'] += $gsrs['totalqry'] * $gsrs['team_arch'] ;
}
}
$szexe = $exe->qry_one( " from tbl_{$total[table]}_stk as ctsk where gs_no = '{$gsrs[numid]}' order by numid asc " ,
" nm , qry " ) ;
while ( $szrs = $exe->fetch($szexe)) {
$dinfo['repeat'] .= str_foreach( array(
'title' => $szrs['nm'] ,
'qry' => $szrs['qry'] ,
'price' => number_format($gsrs['g_price']) ,
'sum_price' => number_format($szrs['qry'] * $gsrs['g_price']) ,
'etcmemo' => ''
) , 'RP' , $skins['trep'] ) ;
$dinfo['sum'] += $szrs['qry'] * $gsrs['g_price'];
}
$dinfo['sum'] = number_format($dinfo['sum']) ;
$frm_orderinfo.= str_foreach ( $dinfo , 'DINFO' , $skins['tfrm']) ;
}
elseif ( $gsrs['formtype'] == 'S' )
{
$dinfo = array(
'numid' => $gsrs['numid'] ,
'ordertitle' => $gsrs['title'] ,
'contents' => $gs_contents ,
'seq' => $gs_seq ,
'repeat' => '' ,
'admin_mState_memo' => $admin_mState_memo
) ;
$szexe = $exe->qry_one( " from tbl_{$total[table]}_stk as ctsk where gs_no = '{$gsrs[numid]}' order by numid asc " ,
" nm , qry " ) ;
while ( $szrs = $exe->fetch($szexe)) {
$dinfo['repeat'] .= str_foreach( array(
'title' => '»óǰ' ,
'code' => $szrs['nm'] ,
'qry' => $szrs['qry'] ,
'price' => number_format($gsrs['g_price']) ,
'sum_price' => number_format($szrs['qry'] * $gsrs['g_price']) ,
'etcmemo' => $gsrs['cr_opt']
) , 'RP' , $skins['trep'] ) ;
$dinfo['sum'] += $szrs['qry'] * $gsrs['g_price'] ;
}
$dinfo['sum'] = number_format($dinfo['sum']) ;
$frm_orderinfo.= str_foreach ( $dinfo , 'DINFO' , $skins['tfrm']) ;
}
elseif ( $gsrs['formtype'] == 'Q' )
{
$dinfo = array(
'numid' => $gsrs['numid'] ,
'ordertitle' => $gsrs['title'] ,
'contents' => $gs_contents ,
'seq' => $gs_seq ,
'repeat' => '' ,
'admin_mState_memo' => $admin_mState_memo
) ;
$dinfo['repeat'] .= str_foreach( array(
'title' => '»óǰ' ,
'code' => $gsrs['cr_opt'] ,
'qry' => $gsrs['totalqry'] ,
'price' => number_format($gsrs['g_price']) ,
'sum_price' => number_format($gsrs['totalqry'] * $gsrs['g_price']) ,
'etcmemo' => ''
) , 'RP' , $skins['trep'] ) ;
$dinfo['sum'] += $gsrs['totalqry'] * $gsrs['g_price'] ;
$dinfo['sum'] = number_format($dinfo['sum']) ;
$frm_orderinfo.= str_foreach ( $dinfo , 'DINFO' , $skins['tfrm']) ;
}
elseif ( $gsrs['formtype'] == 'A' )
{
$dinfo = array(
'numid' => $gsrs['numid'] ,
'ordertitle' => $gsrs['title'] ,
'contents' => $gs_contents ,
'seq' => $gs_seq ,
'repeat' => '' ,
'frm_sizeinfo' => '' ,
'Atype_memo' => $gsrs['Atype_memo'] ,
'admin_mState_memo' => $admin_mState_memo ,
'MAtype_hopedate' => $gsrs['MAtype_hopedate'] ,
'MAtype_eventdate' => $gsrs['MAtype_eventdate'] ,
'MAtype_payintype' => ( $gsrs['MAtype_payintype'] == 'A' ? '¼±ºÒ' : ( $gsrs['MAtype_payintype'] == 'B' ? 'ÈÄºÒ <div style="margin-top:5px;">
<table class="tskin06">
<tr>
<th class="t">ÀԱݿ¹Á¤ÀÏ</th><td class="c">' . $gsrs['MAtype_payindate'] . '</td>
<th class="t">ÁÖ¹®ÀÚ ¿¬¶ôó</th><td class="c">' . $gsrs['hoooption_hp'] . '</td>
<th class="t">Çгâ/¹Ý</th><td class="c">' . $gsrs['hoooption_schooly'] . 'Çгâ ' . $gsrs['hoooption_classname'] . '¹Ý</td>
</tr>
<tr>
<th class="t">Çб³¸í</th><td class="c">' . $gsrs['hoooption_schoolname'] . '</td>
<th class="t">´ãÀÓ¼±»ý´Ô ¼ºÇÔ</th><td class="c">' . $gsrs['hoooption_teachername'] . '</td>
<th class="t">´ãÀÓ¼±»ý´Ô ¿¬¶ôó</th><td class="c">' . $gsrs['hoooption_teacherhp'] . '</td>
</tr>
</table>
</div>' : '' )) ,
'MAtype_gifttext' => ( !empty($gsrs['MAtype_giftno']) ? '<tr><th class="t">»çÀºÇ°</th><td class="c" colspan="5" align="left">' . nl2br($gsrs['MAtype_gifttext']) . '</td></tr>' : '' ) ,
# printform(2)
'printform2_oname' => $info['oname'] ,
'printform2_sendaddress' => '(¿ìÆí¹øÈ£ ' . $info['rzip'] . ') ' . $info['raddr1'] . ' ' . $info['raddr2'] ,
'printform2_ohp' => $info['ohp'] ,
'printform2_memo' => $gs_contents ,
'printform2_eventdate' => substr($gsrs['MAtype_eventdate'],0,4) . '³â ' . substr($gsrs['MAtype_eventdate'],5,2) . '¿ù ' . substr($gsrs['MAtype_eventdate'],8,2) . 'ÀÏ' ,
'printform2_hopedate' => substr($gsrs['MAtype_hopedate'],0,4) . '³â ' . substr($gsrs['MAtype_hopedate'],5,2) . '¿ù ' . substr($gsrs['MAtype_hopedate'],8,2) . 'ÀÏ' ,
'printform2_printway' => '' ,
'printform2_numberfont' => '' ,
'printform2_arch' => '' ,
'printform2_armpatch' => '¼±ÅþøÀ½' ,
'printform2_frontnumber' => false ,
'printform2_teamname' => '' ,
'printform2_teamposition' => '' ,
'printform2_service' => !empty($gsrs['MAtype_giftno']) ? nl2br($gsrs['MAtype_gifttext']) : '' ,
'printform2_goods' => '' ,
'printform2_payway' => ( $info['pay_type'] == 'B' ? ( $gsrs['MAtype_payintype'] == 'A' ? '¼±ºÒ' : ( $gsrs['MAtype_payintype'] == 'B' ?'ÈĺÒ' : '¹«ÅëÀåÀÔ±Ý' ) ) : ( $info['pay_type'] == 'C' ? '½Å¿ëÄ«µå' : ( $info['pay_type'] == 'E' ? '¿¡½ºÅ©·Î' : '(¾Ë¼ö¾øÀ½)' ) ) ) ,
'printform2_goodstitle' => $gsrs['title'] ,
'printform2_sizedetail' => '' ,
'printform2_goodsimg' => $gsrs['goodsget_imagename'] != '' ? '<img src="/files/' . $config['SHP'][4]['list_dir'] . '/' . $gsrs['goodsget_imagename'] . '" style="width:200px;"/>' : ''
) ;
$dinfo['repeat'] .= str_foreach( array(
'title' => '»óǰ' ,
'code' => '±âº»ÆÇ¸Å°¡' ,
'qry' => $gsrs['totalqry'] ,
'price' => number_format($gsrs['g_price']) ,
'sum_price' => number_format($gsrs['totalqry'] * $gsrs['g_price']) ,
'etcmemo' => $gsrs['total_service_qry'] > 0 ? ' + »çÀºÇ° ' . $gsrs['total_service_qry'] . '¹ú' : ''
) , 'RP' , $skins['arep'] ) ;
//$dinfo['sum'] += $gsrs['totalqry'] * $gsrs['g_price'] ;
if ( $gsrs['armL'] > 0 ) {
$dinfo['repeat'] .= str_foreach( array(
'title' => '¼Ò¸Å' ,
'code' => '±äÆÈ' ,
'qry' => $gsrs['armL'] ,
'price' => number_format($gsrs['arm_l_price']) ,
'sum_price' => number_format($gsrs['armL'] * $gsrs['arm_l_price']) ,
'etcmemo' => ''
) , 'RP' , $skins['arep'] ) ;
//$dinfo['sum'] += $gsrs['armL'] * $gsrs['arm_l_price'] ;
}
if ( $gsrs['armS'] > 0 ) {
$dinfo['repeat'] .= str_foreach( array(
'title' => '¼Ò¸Å' ,
'code' => '¹ÝÆÈ' ,
'qry' => $gsrs['armS'] ,
'price' => number_format($gsrs['arm_s_price']) ,
'sum_price' => number_format($gsrs['armS'] * $gsrs['arm_s_price']) ,
'etcmemo' => ''
) , 'RP' , $skins['arep'] ) ;
//$dinfo['sum'] += $gsrs['armS'] * $gsrs['arm_s_price'] ;
}
$teamname = str_replace( ' ' , '' , $gsrs['Atype_tnm'] ) ;
$team_price = 0 ;
if ( !empty($teamname)) {
$dinfo['printform2_teamname'] = $teamname ;
for ( $i = 1 ; $i <= 5 ; $i++ ) {
if ( substr( $gsrs['Atype_tpos'] , ($i-1) , 1 ) == 'Y' ) {
$dinfo['repeat'] .= str_foreach( array(
'title' => 'ÆÀ¸í' ,
'code' => $gsrs['Atype_tnm'] ,
'qry' => $gsrs['totalqry'],
'price' => number_format($gsrs['Atype_tpp' . $i]) ,
'sum_price' => number_format($gsrs['Atype_tpp' . $i]*$gsrs['totalqry']) ,
'etcmemo' => $shop_Atype_tposn[$i]
) , 'RP' , $skins['arep'] ) ;
//$dinfo['sum'] += $gsrs['totalqry'] * $gsrs['Atype_tpp' . $i] ;
$team_price += $gsrs['Atype_tpp' . $i] ;
$dinfo['printform2_teamposition'] .= ( $dinfo['printform2_teamposition'] == '' ? '' : ' , ' ) . $shop_Atype_tposn[$i] ;
}
}
}
// stocking
$skrs = $exe->qry_fetch(" from tbl_{$total[table]}_stk where gs_no = '{$gsrs[numid]}' order by numid " , " nm , qry " ) ;
$stocking_price = 0 ;
if ( !empty($skrs['nm'])) {
$stocking_price = $rs['stocking_price'] ;
$dinfo['repeat'].= str_foreach ( array(
'title' => '½ºÅ¸Å·' ,
'code' => $skrs['nm'],
'qry' => intval($gsrs['totalqry']) ,
'price' => number_format($gsrs['stocking_price']) ,
'sum_price' => number_format($gsrs['stocking_price']*intval($gsrs['totalqry'])) ,
'etcmemo' => ''
) , 'RP' , $skins['arep']) ;
//$dinfo['sum'] += $gsrs['totalqry'] * $gsrs['stocking_price'] ;
$stocking_price = $gsrs['stocking_price'] ;
$dinfo['printform2_goods'] = $skrs['nm'] ;
}
if ( $gsrs['Atype_nfonttype'] == 'C' || $gsrs['Atype_nfonttype'] == 'S' ) {
$s_nf_pos1 = $gsrs['Atype_nfonttype'] == 'C' ?$gsrs['Atype_nfont1_c'] : $gsrs['Atype_nfont1_s'] ;
$s_nf_pos2 = $gsrs['Atype_nfonttype'] == 'C' ?$gsrs['Atype_nfont2_c'] : $gsrs['Atype_nfont2_s'] ;
$s_nf_pos3 = $gsrs['Atype_nfonttype'] == 'C' ?$gsrs['Atype_nfont3_c'] : $gsrs['Atype_nfont3_s'] ;
$s_nf_initial = $gsrs['Atype_nfonttype'] == 'C' ?$gsrs['Atype_initial_c'] : $gsrs['Atype_initial_s'] ;
$s_nf_arch = $gsrs['Atype_nfonttype'] == 'C' ?$gsrs['Atype_arch_c'] : $gsrs['Atype_arch_s'] ;
$s_nf_arch = $gsrs['Atype_archtype'] == 'Y' ? $s_nf_arch : false ; // ¼±ÅþÈÇßÀ¸¸é falt , ¾Æ´Ï¸é ±Ý¾×(0¿øµµ Æ÷ÇÔ)
// ¹øÈ£, À̴ϼÈÀÌ ¸ðµÎ INPUT ŸÀÔÀ϶§
// ¹øÈ£, ÀÌ´Ï¼È Áß 1°³ ÀÌ»ó ÀԷ½à ¹øÈ£,ÀÌ´Ï¼È ±Ý¾×Àº ¹«½Ã. ¾Æ·¡ ±Ý¾× Ãß°¡.
$s_nf_initial = $gsrs['Atype_chartype2'] == 'A' ? $gsrs['Atype_charsprintprice_' . strtolower($gsrs['Atype_nfonttype'])] : $s_nf_initial ;
$dinfo['printform2_printway'] = $gsrs['Atype_nfonttype'] == 'C' ? 'ÀϹÝ' : 'Ư¼ö' ;
$dinfo['printform2_numberfont'] = $gsrs['Atype_nfonttype'] == 'C' ? 'ÀϹݼü' : 'Ư¼ö¼Ã¼' ;
$dinfo['printform2_arch'] = $gsrs['Atype_archtype'] == 'Y' ? '¼±ÅÃ' : '¼±ÅþøÀ½' ;
} else {
$s_nf_pos1 = 0 ;
$s_nf_pos2 = 0 ;
$s_nf_pos3 = 0 ;
$s_nf_initial = 0 ;
$s_nf_arch = false ;
}
// size
$sexe = $exe->qry_one(" from tbl_{$total[table]}_size where gs_no = '{$gsrs[numid]}' order by armtype desc , tsize , bsize , seq asc " ,
" seq, tsize, bsize, armtype, initialnm, numb , npos1 , npos2 , npos3 , servicetype " ) ;
$allsum = 0 ;
$cnt = 0 ;
$s_size = array( 'L' => array() , 'S' => array() , 'B' => array() ) ;
$printform2_sizedetail_L = array() ;
$printform2_sizedetail_S = array() ;
$printform2_sizedetail_B = array() ;
$printform2_sizedetail_nos = array( 'top1' => array( 'sum' => 0 ) , 'top2' => array( 'sum' => 0 ) , 'bot' => array( 'sum' => 0 ) ) ;
$frm_sizeinfo_minSum = array() ;
$numberinput_count = array( 0 , 0 , 0 ) ; // ±ÛÀÚ ¼ö
$initialinput_count = 0 ; // ÀÔ·Â À¯/¹«
$numberinitialinput_count = 0 ;
$botcount = 0 ;
while ( $srs = $exe->fetch($sexe)) {
if ( $srs['tsize'] > 0 ) $s_size[$srs['armtype']][$srs['tsize']] = intval($s_size[$srs['armtype']][$srs['tsize']]) + 1 ;
if ( $srs['bsize'] > 0 ) $s_size['B'][$srs['bsize']] = intval($s_size['B'][$srs['bsize']]) + 1 ;
$psum = $gsrs['g_price']+$stocking_price+$team_price+$gsrs['arm_' . strtolower($srs['armtype']) . '_price'] ;
$psum += $srs['bsize'] > 0 ? $gsrs['Atype_orderbotprice'] : 0 ;
$botcount += $srs['bsize'] > 0 && $srs['servicetype'] == 'N' ? 1 : 0 ;
$initial = str_replace( ' ' , '' , $srs['initialnm'] ) ;
if ( $initial != '') {
$psum += ( $s_nf_initial * ( $gsrs['Atype_inchartype'] == 'INPUT' ? 1 : mb_strlen($initial , 'EUC-KR') ) ) + $s_nf_arch ;
$initialinput_count += $srs['servicetype'] == 'Y' ? 0 : ( $gsrs['Atype_inchartype'] == 'INPUT' ? 1 : mb_strlen($initial , 'EUC-KR'));
$numberinitialinput_count += $srs['servicetype'] == 'Y' ? 0 : ( $gsrs['Atype_chartype2'] == 'A' ? 1 : 0 );
}
$numb = str_replace( ' ' , '' , $srs['numb'] ) ;
if ( $numb != '' ) {
$nblen = mb_strlen($numb , 'EUC-KR') ;
if ( $srs['npos1'] != 'Y' && $srs['npos1'] != 'N' ) {
$srs['npos1'] = substr($gsrs['Atype_np'],0,1) == 'Y' ? 'Y' : 'N' ;
$srs['npos2'] = substr($gsrs['Atype_np'],1,1) == 'Y' ? 'Y' : 'N' ;
$srs['npos3'] = substr($gsrs['Atype_np'],2,1) == 'Y' ? 'Y' : 'N' ;
}
if ( $gsrs['Atype_chartype2'] == 'A' ) {
if ( $initial == '' ) {
$numberinitialinput_count += $srs['servicetype'] == 'Y' ? 0 : ( $gsrs['Atype_chartype2'] == 'A' ? 1 : 0 );
$psum += $s_nf_initial ;
} // À̴ϼÈÀÌ ÀÖÀ» ¶§´Â ÀÌ´Ï¼È ¶§ ±Ý¾× ¹× ¼ö·® üũ.
} else {
$psum += $srs['npos1'] == 'Y' ? $s_nf_pos1 * ( $gsrs['Atype_nochartype'] == 'INPUT' ? 1 : $nblen ) : 0 ;
$psum += $srs['npos2'] == 'Y' ? $s_nf_pos2 * ( $gsrs['Atype_nochartype'] == 'INPUT' ? 1 : $nblen ) : 0 ;
$psum += $srs['npos3'] == 'Y' ? $s_nf_pos3 * ( $gsrs['Atype_nochartype'] == 'INPUT' ? 1 : $nblen ) : 0 ;
}
$numberinput_count[0] += $srs['servicetype'] == 'Y' ? 0 : ( $srs['npos1'] == 'Y' ? ( $gsrs['Atype_nochartype'] == 'INPUT' ? 1 : $nblen ) : 0 ) ;
$numberinput_count[1] += $srs['servicetype'] == 'Y' ? 0 : ( $srs['npos2'] == 'Y' ? ( $gsrs['Atype_nochartype'] == 'INPUT' ? 1 : $nblen ) : 0 ) ;
$numberinput_count[2] += $srs['servicetype'] == 'Y' ? 0 : ( $srs['npos3'] == 'Y' ? ( $gsrs['Atype_nochartype'] == 'INPUT' ? 1 : $nblen ) : 0 ) ;
//
$dinfo['printform2_frontnumber'] = $srs['npos1'] == 'Y' ? true : $dinfo['printform2_frontnumber'] ;
}
$psum = $srs['servicetype'] == 'Y' ? 0 : $psum ;
$allsum += $psum ;
$dinfo['frm_sizeinfo'] .= str_foreach( array(
'tsize' => $options_sizename[$srs['tsize']] ,
'bsize' => $options_sizename[$srs['bsize']] ,
'armtype' => $top_armtype_tit[$srs['armtype']] ,
'initial' => $srs['initialnm'] ,
'numb1' => ($srs['npos1'] == 'Y' ? $srs['numb'] : '' ),
'numb2' => ($srs['npos2'] == 'Y' ? $srs['numb'] : '' ),
'numb3' => ($srs['npos3'] == 'Y' ? $srs['numb'] : '' ),
'sum1' => $srs['servicetype'] == 'Y' ? ( $psum < 1 ? '(»çÀºÇ°)' : number_Format($psum) . ' (»çÀºÇ°)' ) : number_format($psum) ,
'sum2' => number_format( $allsum ) ,
'serviceclass' => $srs['servicetype'] == 'Y' ? 'schedule_sunday' : ''
) , 'RS' , $skins['aszr']) ;
// Àμ⠽ÃÀÛ
if ( $srs['armtype'] == 'L' ) {
$printform2_sizedetail_L[] = array(
'seq' => $cnt ,
'seq_n' => ( $srs['npos1'] == 'Y' || $srs['npos2'] == 'Y' ) && $srs['numb'] != '' ? 1 : 0 , // ºó°ªÀÌ ¸ÕÀú º¸À̵µ·Ï
'seq_i' => $srs['initialnm'] == '' ? 0 : 1 ,
'size' => $srs['tsize'] ,
'initial' => $srs['initialnm'] ,
'numb1' => $srs['npos1'] == 'Y' ? $srs['numb'] : '',
'numb2' => $srs['npos2'] == 'Y' ? $srs['numb'] : '' ,
'numb' => ( $srs['npos1'] == 'Y' || $srs['npos2'] == 'Y' ) && $srs['numb'] != '' ? $srs['numb'] : '' ,
'serviceclass' => $srs['servicetype'] == 'Y' ? 'schedule_sunday' : ''
) ;
$printform2_sizedetail_nos = $srs['npos1'] == 'Y' ? numbSplit2( 'top1' , $srs['numb'] , $nblen , $printform2_sizedetail_nos ) : $printform2_sizedetail_nos ;
$printform2_sizedetail_nos = $srs['npos2'] == 'Y' ? numbSplit2( 'top2' , $srs['numb'] , $nblen , $printform2_sizedetail_nos ) : $printform2_sizedetail_nos ;
}
if ( $srs['armtype'] == 'S' ) {
$printform2_sizedetail_S[] = array(
'seq' => $cnt ,
'seq_n' => ( $srs['npos1'] == 'Y' || $srs['npos2'] == 'Y' ) && $srs['numb'] != '' ? 1 : 0 , // ºó°ªÀÌ ¸ÕÀú º¸À̵µ·Ï
'seq_i' => $srs['initialnm'] == '' ? 0 : 1 ,
'size' => $srs['tsize'] ,
'initial' => $srs['initialnm'] ,
'numb1' => ($srs['npos1'] == 'Y' ? $srs['numb'] : '' ),
'numb2' => ($srs['npos2'] == 'Y' ? $srs['numb'] : '' ),
'numb' => ( $srs['npos1'] == 'Y' || $srs['npos2'] == 'Y' ) && $srs['numb'] != '' ? $srs['numb'] : '' ,
'serviceclass' => $srs['servicetype'] == 'Y' ? 'schedule_sunday' : ''
) ;
$printform2_sizedetail_nos = $srs['npos1'] == 'Y' ? numbSplit2( 'top1' , $srs['numb'] , $nblen , $printform2_sizedetail_nos ) : $printform2_sizedetail_nos ;
$printform2_sizedetail_nos = $srs['npos2'] == 'Y' ? numbSplit2( 'top2' , $srs['numb'] , $nblen , $printform2_sizedetail_nos ) : $printform2_sizedetail_nos ;
}
if ( $srs['bsize'] > 0 ) {
$printform2_sizedetail_B[] = array(
'seq' => $cnt ,
'seq_n' => $srs['npos3'] == 'Y' && $srs['numb'] != '' ? 1 : 0 , // ºó°ªÀÌ ¸ÕÀú º¸À̵µ·Ï
'seq_i' => $srs['initialnm'] == '' ? 0 : 1 ,
'size' => $srs['bsize'] ,
'initial' => $srs['initialnm'] ,
'numb3' => ($srs['npos3'] == 'Y' ? $srs['numb'] : '' ) ,
'serviceclass' => $srs['servicetype'] == 'Y' ? 'schedule_sunday' : ''
) ;
$printform2_sizedetail_nos = $srs['npos3'] == 'Y' ? numbSplit2( 'bot' , $srs['numb'] , $nblen , $printform2_sizedetail_nos ) : $printform2_sizedetail_nos ;
}
// Àμ⠳¡
$cnt++ ;
$frm_sizeinfo_minSum[] = array( 'sum1' => $psum ) ;
}
$dinfo['printform2_frontnumber'] = $dinfo['printform2_frontnumber'] ? '¾Õ¹øÈ£' : '¾ÈÇÔ' ;
// ¼Ò¸Å > »çÀÌÁ ¼ö·® 2015-07 (2/2)
$dinfo['frm_ordersizeqry'] = gSize__qryContents2015($s_size,$gsrs['formtype']) ;
// ¼Ò¸Å > »çÀÌÁ ¼ö·® 2015-07 (2/2) ³¡
// Àμâ¾ç½Ä > Ãâ·Â 2017-06
$printform2_sizedetail_L = array_msort($printform2_sizedetail_L, array('size'=>SORT_ASC , 'seq_n' => SORT_ASC , 'numb' => SORT_ASC , 'seq_i' => SORT_ASC , 'initial' => SORT_ASC , 'seq' => SORT_ASC ));
$printform2_sizedetail_S = array_msort($printform2_sizedetail_S, array('size'=>SORT_ASC , 'seq_n' => SORT_ASC , 'numb' => SORT_ASC , 'seq_i' => SORT_ASC , 'initial' => SORT_ASC , 'seq' => SORT_ASC ));
$dinfo['printform2_sizedetail'] .= gSize__printform2017( $printform2_sizedetail_L , 'L' , $gsrs['goodsget_selectsizes'] ) ;
$dinfo['printform2_sizedetail'] .= gSize__printform2017( $printform2_sizedetail_S , 'S' , $gsrs['goodsget_selectsizes'] ) ;
//$printform2_sizedetail_B = array_msort($printform2_sizedetail_B, array('size'=>SORT_ASC , 'seq' => SORT_ASC ));
$printform2_sizedetail_B = array_msort($printform2_sizedetail_B, array('size'=>SORT_ASC , 'seq_n' => SORT_ASC , 'numb3' => SORT_ASC , 'seq' => SORT_ASC));
$dinfo['printform2_sizedetail'] .= gSize__printform2017( $printform2_sizedetail_B , 'B' , $gsrs['goodsget_selectsizes'] ) ;
$dinfo['printform2_numbersumtitle'] = '' ;
$dinfo['printform2_numbersum_top1'] = '' ;
$dinfo['printform2_numbersum_top2'] = '' ;
for ( $pf2no = 1 ; $pf2no <= 10 ; $pf2no++ ) {
$dinfo['printform2_numbersumtitle'] .= '<th class="t_order2" width="9%">' . ( $pf2no < 10 ? $pf2no : '0' ) . '</th>' ;
$dinfo['printform2_numbersum_top1'] .= '<td class="c" style="text-align:center;">' . $printform2_sizedetail_nos['top1']['t' . ( $pf2no < 10 ? $pf2no : '0' )] . '</td>' ;
$dinfo['printform2_numbersum_top2'] .= '<td class="c" style="text-align:center;">' . $printform2_sizedetail_nos['top2']['t' . ( $pf2no < 10 ? $pf2no : '0' )] . '</td>' ;
$dinfo['printform2_numbersum_bot'] .= '<td class="c" style="text-align:center;">' . $printform2_sizedetail_nos['bot']['t' . ( $pf2no < 10 ? $pf2no : '0' )] . '</td>' ;
}
$dinfo['printform2_numbersum_top1'] = $printform2_sizedetail_nos['top1']['sum'] > 0 || true ? '<tr><td class="c" style="text-align:center;">¾Õ¹øÈ£</td>' . $dinfo['printform2_numbersum_top1'] . '</tr>' : '' ;
$dinfo['printform2_numbersum_top2'] = $printform2_sizedetail_nos['top2']['sum'] > 0 || true ? '<tr><td class="c" style="text-align:center;">µî¹øÈ£</td>' . $dinfo['printform2_numbersum_top2'] . '</tr>' : '' ;
$dinfo['printform2_numbersum_bot'] = $printform2_sizedetail_nos['bot']['sum'] > 0 || true ? '<tr><td class="c" style="text-align:center;">ÇÏÀÇ</td>' . $dinfo['printform2_numbersum_bot'] . '</tr>' : '' ;
// Àμâ¾ç½Ä > Ãâ·Â 2017-06 ³¡
if ( $botcount > 0 )
$dinfo['repeat'] .= str_foreach( array(
'title' => 'ÇÏÀǿɼÇ' ,
'code' => ( $gsrs['Atype_orderbottype'] == 'Y' ? '±¸¸Å' : ( $gsrs['Atype_orderbottype'] == 'N' ? 'ºñ±¸¸Å' : '¼±ÅþøÀ½' )) ,
'qry' => $botcount ,
'price' => number_format($gsrs['Atype_orderbotprice']) ,
'sum_price' => number_format($gsrs['Atype_orderbotprice']*$botcount) ,
'etcmemo' =>$gsrs['Atype_orderbotoption']
) , 'RP' , $skins['arep'] ) ;
if ( $numberinput_count[0] > 0 )
$dinfo['repeat'] .= str_foreach( array(
'title' => '¹øÈ£À§Ä¡' ,
'code' => '¾Õ¹øÈ£' ,
'qry' => $numberinput_count[0] ,
'price' => $gsrs['Atype_chartype2'] == 'A' ? '-' : number_format($s_nf_pos1) ,
'sum_price' => $gsrs['Atype_chartype2'] == 'A' ? '-' : number_format($s_nf_pos1*$numberinput_count[0]) ,
'etcmemo' => ( $gsrs['Atype_nfonttype'] == 'C' ? 'ÀϹݼü' : 'Ư¼ö¼Ã¼' )
) , 'RP' , $skins['arep'] ) ;
if ( $numberinput_count[1] > 0 )
$dinfo['repeat'] .= str_foreach( array(
'title' => '¹øÈ£À§Ä¡' ,
'code' => 'µî¹øÈ£' ,
'qry' => $numberinput_count[1] ,
'price' => $gsrs['Atype_chartype2'] == 'A' ? '-' : number_format($s_nf_pos2) ,
'sum_price' => $gsrs['Atype_chartype2'] == 'A' ? '-' : number_format($s_nf_pos2*$numberinput_count[1]) ,
'etcmemo' => ( $gsrs['Atype_nfonttype'] == 'C' ? 'ÀϹݼü' : 'Ư¼ö¼Ã¼' )
) , 'RP' , $skins['arep'] ) ;
if ( $numberinput_count[2] > 0 )
$dinfo['repeat'] .= str_foreach( array(
'title' => '¹øÈ£À§Ä¡' ,
'code' => '¹ÙÁö¹øÈ£' ,
'qry' => $numberinput_count[2] ,
'price' => $gsrs['Atype_chartype2'] == 'A' ? '-' : number_format($s_nf_pos3) ,
'sum_price' => $gsrs['Atype_chartype2'] == 'A' ? '-' : number_format($s_nf_pos3*$numberinput_count[2]) ,
'etcmemo' => ( $gsrs['Atype_nfonttype'] == 'C' ? 'ÀϹݼü' : 'Ư¼ö¼Ã¼' )
) , 'RP' , $skins['arep'] ) ;
if ( $initialinput_count > 0 )
$dinfo['repeat'] .= str_foreach( array(
'title' => '¿É¼Ç' ,
'code' => 'À̴ϼÈ' ,
'qry' => $initialinput_count ,
'price' => $gsrs['Atype_chartype2'] == 'A' ? '-' : number_format($s_nf_initial+$s_nf_arch) ,
'sum_price' => $gsrs['Atype_chartype2'] == 'A' ? '-' : number_format(($s_nf_initial+$s_nf_arch)*$initialinput_count) ,
'etcmemo' => ( $gsrs['Atype_nfonttype'] == 'C' ? 'ÀϹݼü' : 'Ư¼ö¼Ã¼' ) . ( $s_nf_arch !== false ? '¾ÆÄ¡Çü (' . number_format($s_nf_arch) . '¿ø)' : '' )
) , 'RP' , $skins['arep'] ) ;
if ( $gsrs['Atype_chartype2'] == 'A' && $numberinitialinput_count > 0 ) {
$dinfo['repeat'] .= str_foreach( array(
'title' => '¿É¼ÇÇÕ°è' ,
'code' => '¹øÈ£, À̴ϼÈ' ,
'qry' => $numberinitialinput_count ,
'price' => number_format($s_nf_initial) ,
'sum_price' => number_format(($s_nf_initial*$numberinitialinput_count)+($s_nf_arch*$initialinput_count)) ,
'etcmemo' => ( $gsrs['Atype_nfonttype'] == 'C' ? 'ÀϹݼü' : 'Ư¼ö¼Ã¼' ) . ( $s_nf_arch !== false ? '¾ÆÄ¡Çü (' . number_format($s_nf_arch) . '¿ø)' : '' )
) , 'RP' , $skins['arep'] ) ;
}
$free_count = intval($cnt/1000) ;
if ( $free_count > 0 ) {
$frm_sizeinfo_minSum = array_msort($frm_sizeinfo_minSum, array('sum1'=>SORT_ASC));
$free_price = 0 ;
$fi = 0 ;
foreach ( $frm_sizeinfo_minSum as $k=>$v) {
$fi++ ;
if ( $fi > $free_count ) break ;
$free_price += $v['sum1'] ;
}
$allsum -= $free_price ;
$dinfo['repeat'].= str_foreach ( array(
'title' => '¼ºñ½º' ,
'code' => '¹«·áÀ̺¥Æ®',
'qry' => intval($free_count) ,
'price' => '' ,
'sum_price' => number_format($free_price) ,
'etcmemo' => ''
) , 'RP' , $skins['arep']) ;
}
$dinfo['sum'] = number_format($allsum) ;
$frm_orderinfo.= str_foreach ( $dinfo , 'DINFO' , $skins['afrm']) ;
}
// goods result
$repeat.= $frm_orderinfo ;
}
$info['repeat'] = $repeat ;
$info['sum_price'] = number_format($info['sum_price']) ;
$info['send_price'] = number_format($info['send_price']) ;
$info['point_price'] = number_format($info['point_price']) ;
$info['result_price'] = number_format($info['result_price']) ;
$info['pay_price'] = number_format($info['pay_price']) ;
$info['order_point'] = number_format($info['order_point']) ;
$info['in_point'] = $info['in_point'] == 'Y' ? '(Áö±Þ¿Ï·á)' : '' ;
if ( in_array( $info['pay_type'] , array( 'C' , 'E' )) !== false || empty($info['apply_cashrp'])) {
$info['pay_assignname'] = '½ÂÀιøÈ£' ;
$info['pay_assigncode'] = !empty($info['res_cd']) ? $info['app_no'] : $info['cardauthcode'] ;
} else if ( $info['apply_cashrp'] == 'N' ) {
$info['pay_assignname'] = '¿µ¼öÁõ/°è»ê¼' ;
$info['pay_assigncode'] = '½Åû¾ÈÇÔ' ;
} else if ( $info['apply_cashrp'] == 'Y' ) {
$info['pay_assignname'] = '<span style="color:red">Çö±Ý¿µ¼öÁõ</span>' ;
$info['pay_assigncode'] = '<div style="margin-bottom:5px;">(ÇÚµåÆù¹øÈ£) ' . $info['apply_cashhp'] . '</div><div>(À̸§) ' . $info['apply_cashname'] . '</div>' ;
} else if ( $info['apply_cashrp'] == 'A' ) {
$info['pay_assignname'] = '<span style="color:red">¼¼±Ý°è»ê¼</span>' ;
$info['pay_assigncode'] = '<div style="margin-bottom:5px;">(»ç¾÷ÀÚµî·ÏÁõ) ' . ( $info['apply_cashfile_r'] == '' ? '÷ºÎ¾øÀ½' : '<a href="javascript:;" onclick=" lyimage_open(); ">º¸±â</a>' ) . '</div><div>(À̸ÞÀÏ) ' . $info['apply_cashemail'] . '</div>' ;
}
$info['state_comment'] = '' ;
switch ( $info['n_state']) {
#case 'ÀԱݴë±â' :
# $info['state_comment'] = '
# ¹«ÅëÀåÀÔ±ÝÀ» È®ÀÎÇÏ¼Ì´Ù¸é ¾Æ·¡ÀÇ [ÀÔ±ÝÈ®ÀÎ] À» Ŭ¸¯ÇØÁÖ¼¼¿ä<br>
# <input type="radio" name="mode" value="s1mconfirm" checked > ÀÔ±ÝÈ®ÀÎ
# <p align="center"><a href="javascript: c_state();"><img src="/img/admin/bt/bt_confirm.gif"></a></p>
# ' ;
# break ;
case 'Ãë¼Ò' :
case '¹Ýǰ' :
$info['state_comment'] = 'Ãë¼Ò/¹ÝǰÀÏ : ' . $info['cancel_date'] ;
break ;
case '°áÁ¦½ÇÆÐ' :
$info['state_comment'] = '
<p>°áÁ¦ÀÏ : ' . $info['paydate'] . '</p>
<p style="border-top:1px solid #ccc;"><b>°áÁ¦¿À·ù</b><br>ÀÀ´äÄÚµå : ' . $info['res_cd'] . '<br>ÀÀ´ä¸Þ¼¼Áö : ' . $info['res_msg'] . '</p>
' . ( $info['is_error'] == 'Y' ? '<p style="border-top:1px solid #ccc;"><b>µ¥ÀÌÅÍ ¿À·ù</b><br>' . $info['error_message'] . '</p>' : '' ) . '
' ;
break ;
default :
$info['state_comment'] = '
<div>ÁÖ¹® ÁøÇà »óŸ¦ ¼±ÅÃÇØÁÖ¼¼¿ä</div>
' . ( $info['n_state'] == 'ÀԱݿϷá' || $info['pay_price'] == $info['result_price'] ? '' : '
<div style="margin-top:5px;border-top:1px solid #ccc; padding-top:5px;">
ÀԱݿϷá´Â ¹«ÅëÀåÀÔ±Ý, ºÐÇÒ°áÁ¦ÀÏ ¶§¸¸ 1ȸ Àû¿ë °¡´ÉÇÕ´Ï´Ù.<br />
<input type="radio" name="mode" value="s1mconfirm"> ÀԱݿϷá ( ' . $info['result_price'] . '¿ø ) <br />
<input type="radio" name="n_changestate" value="Y" checked style="margin-left:30px;" /> ÁøÇà»óŸ¦ <b>ÀԱݿϷá·Î º¯°æ</b>ÇÕ´Ï´Ù.<br />
<input type="radio" name="n_changestate" value="N" style="margin-left:30px;" ' . ( $info['n_state'] == 'ÀԱݴë±â' ? 'disabled' : '' ) . '/> ÁøÇà»óŸ¦ <b>ÇöÀç»óÅ·ΠÀ¯Áö</b>ÇÕ´Ï´Ù.
</div>
' ) . '
<div style="margin-top:5px;border-top:1px solid #ccc; padding-top:5px;">
ȸ¿øÀÇ °æ¿ì ¹è¼Û¿Ï·á½Ã Àû¸³±ÝÀÌ Áö±ÞµË´Ï´Ù.<br>
<div>
<input type="radio" name="mode" value="s2gswait" ' . ( $info['n_state'] == '»óǰÁغñÁß' ? 'checked' : '' ) . ' dreq emsg=" º¯°æÇÒ »óŸ¦ ¼±ÅÃÇØÁÖ¼¼¿ä. "> »óǰÁغñÁß
<input type="radio" name="mode" value="s3sendwait" ' . ( $info['n_state'] == '¹è¼Û´ë±â' ? 'checked' : '' ) . '> ¹è¼Û´ë±â
<input type="radio" name="mode" value="s4sending" ' . ( $info['n_state'] == '¹è¼ÛÁß' ? 'checked' : '' ) . '> ¹è¼ÛÁß
<input type="radio" name="mode" value="s5sendend" ' . ( $info['n_state'] == '¹è¼Û¿Ï·á' ? 'checked' : '' ) . '> ¹è¼Û¿Ï·á
<input type="radio" name="mode" value="s6cancel" > Ãë¼Ò
<input type="radio" name="mode" value="s7return" > ¹Ýǰ
</div>
</div>
<div style="margin-top:5px;">
Åùè»ç <input type="text" name="sendcmp" value="$INFO[sendcmp]" size="20">
¼ÛÀå¹øÈ£ <input type="text" name="sendnumber" value="$INFO[sendnumber]" size="20">
</div>
<div style="margin-top:5px;border-top:1px solid #ccc; padding-top:5px;text-align:center;">
<a href="javascript: c_state();"><img src="/img/admin/bt/bt_confirm.gif"></a>
</div>
' ;
break ;
}
//
if ( $info['pay_type'] == 'D' ) {
$info['pay_type'] = '
<form name="payDform" method="post" action="' . $total['cmnnb'] . '&mode=pay_d" onsubmit="return false;">
<div>' . $define_shop['°áÁ¦¹æ¹ý'][$info['pay_type']] . ' <select name="payd_type" class="form" onchange="payd_type_change(this);">
<option value="1" ' . ( $info['pay_d_type'] == '1' ? 'selected' : '' ) . '>Ä«µå+Ä«µå</option>
<option value="2" ' . ( $info['pay_d_type'] == '2' ? 'selected' : '' ) . '>Ä«µå+Çö±Ý</option>
<option value="3" ' . ( $info['pay_d_type'] == '3' ? 'selected' : '' ) . '>Çö±Ý+Çö±Ý</option>
</select></div>
<div style="margin-top:5px; margin-left:30px;"><span id="payDtitle1">' . ( $info['pay_d_type'] == '1' || $info['pay_d_type'] == '2' ? 'Ä«µå' : 'Çö±Ý' ) . '</span> <input type="text" name="pay_d_p1" value="' . $info['pay_d_p1'] . '" class="form" size="10" onblur="payd_price_change(this);"/>¿ø</div>
<div style="margin-top:5px; margin-left:30px;"><span id="payDtitle2">' . ( $info['pay_d_type'] == '1' ? 'Ä«µå' : 'Çö±Ý' ) . '</span> <input type="text" name="pay_d_p2" value="' . $info['pay_d_p2'] . '" class="form" size="10" readonly/>¿ø <button type="button" class="ssize blue" onclick="payd_state();"><span>Àû¿ë</span></button></div>
</form>' ;
if ( $info['pay_d_item1'] > 0 || $info['pay_d_item2'] > 0 ) {
$info['pay_type'] .= '<div style="margin-top:15px;border-top:1px solid #CCC;padding-top:5px; ;">' .
'<div style="float:left;">' . $info['pay_d_itemtitle'] . '</div>' .
( $info['pay_d_item2'] > 0 ? '<div style="float:right;margin-left:5px;"><button type="button" class="ssize green" onclick=" window.open(\'?code=SHP&mode=modify&numid=' . $info['pay_d_item2'] . '\');"><span>°³ÀΰáÁ¦»óǰ(2) À̵¿</span></button></div>' : '' ) .
( $info['pay_d_item1'] > 0 ? '<div style="float:right;"><button type="button" class="ssize green" onclick=" window.open(\'?code=SHP&mode=modify&numid=' . $info['pay_d_item1'] . '\');"><span>°³ÀΰáÁ¦»óǰ(1) À̵¿</span></button></div>' : '' ) . '' .
'</div>' ;
}
} else $info['pay_type'] = $define_shop['°áÁ¦¹æ¹ý'][$info['pay_type']] . ' ' . ( $info['pay_type'] == 'B' ? '[' . $info['bank_info'] . ']' : '' ) ;
//
$info['link-estimate-1'] = mk_estimate_viewlink( 1 ,'order' , $info['orderScode'] ,$numid ) ;
$info['link-estimate-2'] = mk_estimate_viewlink( 2 ,'order' , $info['orderScode'] ,$numid ) ;
$info['link-estimate-3'] = mk_estimate_viewlink( 3 ,'admin' , $info['orderScode'] ,$numid ) ;
$result .= str_foreach( $info , 'INFO' , $skins['frm']) ;
?>
Copyright © 2017 || Recoded By Mr.Bumblebee