-=[ Mr. Bumblebee ]=-
_Indonesia_
<?php
# approve
if ( empty($numid)) script_re($total['cmnall'] , ' Á¢±ÙÇÒ ¼ö ¾ø½À´Ï´Ù. ' ) ;
$info = $exe->qry_fetch ( " from tbl_{$total[table]}_item where numid='{$numid}' " , " * " ) ;
if ( empty($info['numid'])) script_re( $total['cmnall'] , ' »èÁ¦µÇ¾ú°Å³ª ¾ø´Â µ¥ÀÌÅÍÀÔ´Ï´Ù. ' ) ;
# skin file
$skins = $skin->skin ( array (
'frm' => 'FORM' ,
'file' => 'FILE' ,
'cate' => 'CATEGORY LIST' ,
'mp' => 'M P SKIN'
) , $skinfile ) ;
# set modify data
$minfo = array(
'mode' => 'update' ,
//'orderypes' => '<script language="javascript"> _write(ORDER_TYPES,\'' . $info['formtype'] . '\'); </script>' ,
'selecticons_list' => script_array( $define_shop_icons ) ,
'mainview_list' => script_array( $define_shop['¸ÞÀÎ'] , 1 ) ,
'salestate_list' => script_array( $define_shop['»óÅÂ'] , 1 ) ,
'openstate_list' => script_array( $define_shop['°ø°³'] , 1 ) ,
'del_file1' => ( empty($info['imglist']) ? '' : '<input type="checkbox" name="del_file1" value="Y" /> ÆÄÀÏ»èÁ¦' ) ,
'del_file2' => ( empty($info['imgdetail']) ? '' : '<input type="checkbox" name="del_file2" value="Y" /> ÆÄÀÏ»èÁ¦' ) ,
'set_option_listW' => $total['options']['list_w'] ,
'set_option_listH' => $total['options']['list_h'] ,
'g_pointY' => ( $info['g_point'] == 'Y' ? 'checked' : '' ) ,
'g_pointN' => ( $info['g_point'] == 'N' ? 'checked' : '' ) ,
'setpoint' => ($define_shop_point_p*100) . '%' ,
// type option
'v__options_M' => 'display:' . ( $info['formtype'] == 'M' ? '' : 'none' ) . ';' ,
'v__options_S' => 'display:' . ( $info['formtype'] == 'S' ? '' : 'none' ) . ';' ,
'v__options_T' => 'display:' . ( $info['formtype'] == 'T' ? '' : 'none' ) . ';' ,
'v__options_Q' => 'display:' . ( $info['formtype'] == 'Q' ? '' : 'none' ) . ';' ,
'v__options_A' => 'display:' . ( $info['formtype'] == 'A' ? '' : 'none' ) . ';' ,
'formtype_m' => ( $info['formtype'] == 'M' ? 'checked' : 'disabled') ,
'formtype_t' => ( $info['formtype'] == 'T' ? 'checked' : 'disabled') ,
'formtype_s' => ( $info['formtype'] == 'S' ? 'checked' : 'disabled') ,
'formtype_q' => ( $info['formtype'] == 'Q' ? 'checked' : 'disabled') ,
'formtype_a' => ( $info['formtype'] == 'A' ? 'checked' : 'disabled') ,
'g_price_readonly' => ( $info['formtype'] == 'M' ? 'readonly' : '')
) ;
// type A
if ( $info['formtype'] == 'A' ) {
$tinfo = array(
'A_armL' => ( $info['arm_l_check'] == 'Y' ? 'checked' : '' ) ,
'A_armLp' => $info['arm_l_price'] ,
'A_armS' => ( $info['arm_s_check'] == 'Y' ? 'checked' : '' ) ,
'A_armSp' => $info['arm_s_price'] ,
'A_stocking_sale' => $info['stocking_sale'] ,
'A_stocking_price'=> $info['stocking_price'] ,
'A_stocking_options'=> $info['stocking_options'] ,
'A_attachnfont' => ( !empty($info['attach_nfontfile']) ? '<input type="checkbox" name="del_A_attachnfont" value="Y"> ÆÄÀÏ»èÁ¦' : '' ) ,
'A_printposset1' => ( $info['printposset1'] == 'Y' ? 'checked' : '' ) ,
'A_printposset2' => ( $info['printposset2'] == 'Y' ? 'checked' : '' ) ,
'A_printposset3' => ( $info['printposset3'] == 'Y' ? 'checked' : '' ) ,
//
'A_numberfontprice1_c' => $info['nfont1_c'] ,
'A_numberfontprice2_c' => $info['nfont2_c'] ,
'A_numberfontprice3_c' => $info['nfont3_c'] ,
'A_initialprice_c' => $info['initial_c'] ,
'A_archprice_c' => $info['arch_c'] ,
'A_attachnfont2' => ( !empty($info['attach_nfont2file']) ? '<input type="checkbox" name="del_A_attachnfont2" value="Y"> ÆÄÀÏ»èÁ¦' : '' ) ,
'A_numberfontprice1_s' => $info['nfont1_s'] ,
'A_numberfontprice2_s' => $info['nfont2_s'] ,
'A_numberfontprice3_s' => $info['nfont3_s'] ,
'A_initialprice_s' => $info['initial_s'] ,
'A_archprice_s' => $info['arch_s'] ,
'A_charptype_CHAR' => ( $info['Atype_charptype'] == 'CHAR' ? 'checked' : '' ) ,
'A_charptype_INPUT' => ( $info['Atype_charptype'] == 'INPUT' ? 'checked' : '' ) ,
'A_charitype_CHAR' => ( $info['Atype_charitype'] == 'CHAR' ? 'checked' : '' ) ,
'A_charitype_INPUT' => ( $info['Atype_charitype'] == 'INPUT' ? 'checked' : '' ) ,
'A_botorderset' => $info['Atype_botorderset'] == 'Y' ? 'checked' : '' ,
'A_botsetoptions' => $info['Atype_botsetoptions'] ,
'A_useservicetype' => $info['useservicetype'] == 'Y' ? 'checked' : '' ,
'A_charsprintprice_c' => $info['charsprintprice_c'] ,
'A_charsprintprice_s' => $info['charsprintprice_s'] ,
'A_charsprintptype_c' => $info['charsprintptype_c'] == 'Y' ? 'checked' : '' ,
'A_charsprintptype_s' => $info['charsprintptype_s'] == 'Y' ? 'checked' : '' ,
) ;
$selectsizes = explode( ',' , $info['selectsizes']) ;
foreach ( $selectsizes as $v ) {
$tinfo['a_size' . $v] = 'checked' ;
}
$minfo = array_merge($minfo,$tinfo);
} else if ( $info['formtype'] == 'M' ) {
$tinfo = array(
'M_topstate' => ( $info['topstate'] == 'Y' ? 'checked' : '' ) ,
'M_topprice' => $info['topprice'] ,
'M_botstate' => ( $info['botstate'] == 'Y' ? 'checked' : '' ) ,
'M_botprice' => $info['botprice'] ,
'M_armL' => ( $info['arm_l_check'] == 'Y' ? 'checked' : '' ) ,
'M_armLp' => $info['arm_l_price'] ,
'M_armS' => ( $info['arm_s_check'] == 'Y' ? 'checked' : '' ) ,
'M_armSp' => $info['arm_s_price'] ,
'M_tntypeO' => ( $info['teamtype'] == 'O' ? 'checked' : '' ) ,
'M_tntypeOprice' => $info['team_o_price'] ,
'M_tntypeF' => ( $info['teamtype'] == 'F' ? 'checked' : '' ) ,
'M_tntypeFprice' => $info['team_f_price'] ,
'M_teamarch' => $info['team_arch'] ,
'M_initial_kr_c' => $info['initial_kr_c'] ,
'M_initial_kr_s' => $info['initial_kr_s'] ,
'M_initial_en_c' => $info['initial_en_c'] ,
'M_initial_en_s' => $info['initial_en_s'] ,
'M_initial_arch' => $info['initial_arch'] ,
'M_stocking_sale' => $info['stocking_sale'] ,
'M_stocking_price'=> $info['stocking_price'] ,
'M_stocking_options'=> $info['stocking_options'] ,
'M_printposset1' => ($info['printposset1'] == 'Y' ? 'checked' : '' ) ,
'M_printposset2' => ($info['printposset2'] == 'Y' ? 'checked' : '' ) ,
'M_printposset3' => ($info['printposset3'] == 'Y' ? 'checked' : '' ) ,
'M_printpos1no' => ($info['printpos1no'] == 'Y' ? 'checked' : '' ) ,
'M_printpos1text' => $info['printpos1text'] ,
'M_useservicetype' => $info['useservicetype'] == 'Y' ? 'checked' : ''
) ;
$selectsizes = explode( ',' , $info['selectsizes']) ;
foreach ( $selectsizes as $v ) {
$tinfo['m_size' . $v] = 'checked' ;
}
for ( $i = 1 ; $i <= 14 ; $i++ ) {
$pos = str_pad( $i , 2 , '0' , STR_PAD_LEFT ) ;
$postitle = '' ;
$posimg = '' ;
if ( !empty($info['p' . $pos . '_no' ])) {
$opt_rs = $exe->qry_fetch(" from tbl_{$config[OT1][1]} where numid = '" . $info['p' . $pos . '_no' ] . "' " , ' numid , title , img1 , keycode , gubun ') ;
$postitle = $opt_rs['title'] ;
$posimg = !empty($opt_rs['img1']) ? '<img src="/files/' . $config[$opt_rs['keycode']][1] . '/' . $config[$opt_rs['keycode']][4]['dir'] . '/' . $opt_rs['img1'] . '" width="50" height="50"/>' : '' ;
if ( $info['p' . $pos] == 'e' || $info['p' . $pos] == 'n' || $info['p' . $pos] == 'p' )
$postitle.= ' (' . $config[$opt_rs['keycode']][4]['gubun'][$opt_rs['gubun']] . ')' ;
}
$tinfo['M_p' . $pos] = str_foreach( array(
'pos' => $pos , // À§Ä¡°ª
'posname' => $position_seq_title[$pos] ,
'state' => ( $info['p' . $pos] != 'd' ? 'checked' : '' ) , // ±¸¸Å°¡´É(ºñ¼±Åýà ±¸¸ÅºÒ°¡)
'type' => $options_code_title[$info['p' . $pos]] , // ¼±Åúзù¸í(¿¥ºí·½ µî)
'img' => $posimg , // ¿É¼ÇÀ̹ÌÁö(¼±ÅÃµÈ ¿¥ºí·½)
'title' => $postitle , // ¿É¼Ç¸í
'sale_FR' => ( $info['p' . $pos] == 'f' ? 'checked' : '' ), // ¼±ÅÃÆÇ¸Å
'sale_FX' => ( $info['p' . $pos] != 'f' && $info['p' . $pos] != 'd' ? 'checked' : '' ) , // °íÁ¤
'code' => $info['p' . $pos] , // ¼±ÅÃÇÑ ºÐ·ùÄÚµå
'num' => $info['p' . $pos . '_no' ] // ¼±ÅÃÇÑ ¿É¼Ç °íÀ¯¹øÈ£
) , 'RS' , $skins['mp'] ) ;
}
$minfo = array_merge($minfo,$tinfo);
}
else if ( $info['formtype'] == 'T' ) {
$tinfo = array(
'T_size' => $info['selectsizes'] ,
'T_tnposition01' => ( $info['team_ustate'] == 'Y' ? 'checked' : '' ) ,
'T_tnposition02' => ( $info['team_ustate'] == 'N' ? 'checked' : '' ) ,
'T_tntypeO' => ( $info['teamtype'] == 'O' ? 'checked' : '' ),
'T_tntypeF' => ( $info['teamtype'] == 'F' ? 'checked' : '' ),
'T_tntypeOprice' => $info['team_o_price'] ,
'T_tntypeFprice' => $info['team_f_price'] ,
'T_teamarch' => $info['team_arch']
) ;
$minfo = array_merge($minfo,$tinfo);
}
else if ( $info['formtype'] == 'Q' ) {
$tinfo = array(
'opt_select' => $info['color_options']
) ;
$minfo = array_merge($minfo,$tinfo);
}
else if ( $info['formtype'] == 'S' ) {
$tinfo = array(
'S_size' => $info['selectsizes'] ,
'S_option' => $info['color_options']
) ;
$minfo = array_merge($minfo,$tinfo);
}
// in category list
$minfo['multiple_categories'] = '' ;
$cexe = $exe->qry_one(" from tbl_{$total[table]}_itemc as ic where goods_no = '{$total[numid]}' order by seq asc " , " numid , seq , c1_no , c2_no , ( select title from tbl_{$total[table]}_category where ic.c3_no = numid ) as c3_title , c3_no " ) ;
while ( $rs = $exe->fetch($cexe)) {
$cpath = '' ;
$cidx = '' ;
if ( !empty($rs['c1_no'])) {
$cpath.= $define_shop['ºÐ·ù'][$rs['c1_no']][0] ;
$cidx.= $rs['c1_no'] ;
if ( !empty($rs['c2_no'])) {
$cpath.= ' > ' . $define_shop['ºÐ·ù'][$rs['c1_no']][1][$rs['c2_no']][0] ;
$cidx.= ',' . $rs['c2_no'] ;
if ( !empty($rs['c3_no'])) {
$cpath.= ' > ' . $rs['c3_title'] ;
$cidx.= ',' . $rs['c3_no'] ;
}
}
}
$minfo['multiple_categories'].= str_foreach( array(
'i' => ($rs['seq'] < 1 ? 'D' : $rs['seq']+1 ) ,
'path' => $cpath ,
'idx' => $cidx
) , 'RS' , $skins['cate']) ;
}
$info = array_merge($info,$minfo) ;
# set default data
// category
foreach( $define_shop['ºÐ·ù'] as $key=>$val ) {
$info['d1_category'] .= '<option value="' . $key . '">' . $val[0] . '</option>' ;
}
// brand
$brand = $exe->qry_one(" from tbl_{$total[table]}_brand order by sequence asc " , " numid , title " ) ;
$info['brand_list'] = '' ;
while ( $rs = $exe->fetch($brand)) {
$info['brand_list'] .= '<option value="' . $rs['numid'] . '" ' . ( $info['g_brand'] == $rs['numid'] ? 'selected' : '' ) . '>' . $rs['title'] . '</option>' ;
}
$info['sendinfo'] = $info['sendinfo'] == 'Y' ? 'checked' : '' ;
$info['sizeinfo'] = $info['sizeinfo'] == 'Y' ? 'checked' : '' ;
$EDITOR = createTextEditor();
$EDITOR->Value = str_mode( $info['contents'] , 'HTML') ;
$info['contents'] = $EDITOR->Create();
// attach files
$file_list = '' ;
$nowsize = 0 ;
$execute = $exe->qry_one( " from tbl_{$info_file[table]} where keycode='{$total[code]}' and parent_numid = '{$numid}' order by write_date asc " , " fileno , file_size, orig_file_name " ) ;
while ( $rs = $exe->fetch ( $execute))
{
$nowsize+= $rs['file_size'] ;
$file_list.= '<option value="' . $rs['fileno'] . '">' . $rs['orig_file_name'] . '</option>' ;
}
$info['frm_file'] = str_foreach ( array ( 'nowsize' => $nowsize , 'temp_code' => time() . str_rand(10) , 'filelist' => $file_list ) , 'INFO' , $skins['file'] ) ;
# result
$result = str_foreach ( $info , 'INFO' , $skins['frm'] ) ;
# hint
foreach ( $act_hint as $k=>$v) { $hint[$k] = $v ; }
?>
Copyright © 2017 || Recoded By Mr.Bumblebee