-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/z_admin.bk.230509/php/torder/
File Upload :
Current File : /var/www/html/z_admin.bk.230509/php/torder/act.update.php

<?

	if ( empty($numid)) script_re($total['cmnall'] , ' Á¢±ÙÇÒ ¼ö ¾ø½À´Ï´Ù. ' ) ;

	$info = $exe->qry_fetch ( " from tbl_{$total[table]} where numid='{$numid}' " , " numid , userpass , file1 , file2 " ) ;
	if ( empty($info['numid'])) script_re( $total['cmnall'] , ' »èÁ¦µÇ¾ú°Å³ª ¾ø´Â µ¥ÀÌÅÍÀÔ´Ï´Ù. ' ) ;

	if ( empty($_POST['username']))
		script_bk ( ' Çʼö»çÇ×À» ÀÔ·ÂÇØÁÖ¼¼¿ä ' ) ;

	$action = array (
		'item1_no'			=> $_POST['item1_no'] ,
		'item1_color'		=> $_POST['item1_color'] ,
		'item1_print'		=> ($_POST['item1_print']=='Y')?'Y':'N' ,
		'item1_m'			=> $_POST['item1_m'] ,
		'item1_l'			=> $_POST['item1_l'] ,
		'item1_xl'			=> $_POST['item1_xl'] ,
		'item1_2xl'			=> $_POST['item1_2xl'] ,
		'item1_3xl'			=> $_POST['item1_3xl'] ,
		'item2_no'			=> $_POST['item2_no'] ,
		'item2_color'		=> $_POST['item2_color'] ,
		'item2_print'		=> ($_POST['item2_print']=='Y')?'Y':'N' ,
		'item2_m'			=> $_POST['item2_m'] ,
		'item2_l'			=> $_POST['item2_l'] ,
		'item2_xl'			=> $_POST['item2_xl'] ,
		'item2_2xl'			=> $_POST['item2_2xl'] ,
		'item2_3xl'			=> $_POST['item2_3xl'] ,
		'item3_no'			=> $_POST['item3_no'] ,
		'item3_color'		=> $_POST['item3_color'] ,
		'item3_print'		=> ($_POST['item3_print']=='Y')?'Y':'N' ,
		'item3_m'			=> $_POST['item3_m'] ,
		'item3_l'			=> $_POST['item3_l'] ,
		'item3_xl'			=> $_POST['item3_xl'] ,
		'item3_2xl'			=> $_POST['item3_2xl'] ,
		'item3_3xl'			=> $_POST['item3_3xl'] ,
		'item4_no'			=> $_POST['item4_no'] ,
		'item4_color'		=> $_POST['item4_color'] ,
		'item4_print'		=> ($_POST['item4_print']=='Y')?'Y':'N' ,
		'item4_m'			=> $_POST['item4_m'] ,
		'item4_l'			=> $_POST['item4_l'] ,
		'item4_xl'			=> $_POST['item4_xl'] ,
		'item4_2xl'			=> $_POST['item4_2xl'] ,
		'item4_3xl'			=> $_POST['item4_3xl'] ,
		'sum_total'			=> $_POST['sum_total'] ,
		'username'			=> $_POST['username'] ,
		'userpass'			=> ( empty($_POST['userpass']))?$info['userpass']:$_POST['userpass'] ,
		'zipcode'			=> $_POST['zipcode1'] . '-' . $_POST['zipcode2'] ,
		'address'			=> $_POST['address'] ,
		'tel'				=> $_POST['tel1'] . '-' . $_POST['tel2'] . '-' . $_POST['tel3'] ,
		'fax'				=> $_POST['fax1'] . '-' . $_POST['fax2'] . '-' . $_POST['fax3'] ,
		'hp'				=> $_POST['hp1'] . '-' . $_POST['hp2'] . '-' . $_POST['hp3'] ,
		'email'				=> $_POST['email'] ,
		'send_type'			=> $_POST['send_type'] ,
		'print_type'		=> implode( ',' , $_POST['print_type']) ,
		'print_point'		=> implode( ',' , $_POST['print_point']) ,
		'print_color'		=> $_POST['print_color'] ,
		'contents'			=> str_convert($_POST['contents']) ,
		'apply_chk'			=> ($_POST['apply_chk']=='Y')?'Y':'N' ,
		'company_no'		=> str_convert($_POST['company_no']) ,
		'company_name'		=> str_convert($_POST['company_name']) ,
		'company_owner'		=> str_convert($_POST['company_owner']) ,
		'company_address'	=> str_convert($_POST['company_address']) ,
		'company_type1'		=> str_convert($_POST['company_type1']) ,
		'company_type2'		=> str_convert($_POST['company_type2']) ,
		'is_reply'			=> ($_POST['is_reply']=='Y')?'Y':'N' ,
		'reply_contents'	=> str_convert($_POST['reply_contents'])
	) ;

	if ( !empty($_FILES['file1']['name'])) {
		file_delete( 'files/' . $total['table'] . '/' . $info['file1'] ) ;
		$action['file1'] = file_upload( $_FILES['file1']['tmp_name'] , $_FILES['file1']['name'] , 'files/' . $total['table'] ) ;
	} elseif ( $_POST['del_file1'] == 'Y' ) {
		file_delete( 'files/' . $total['table'] . '/' . $info['file1'] ) ;
		$action['file1'] = '' ;
	}

	if ( !empty($_FILES['file2']['name'])) {
		file_delete( 'files/' . $total['table'] . '/' . $info['file2'] ) ;
		$action['file2'] = file_upload( $_FILES['file2']['tmp_name'] , $_FILES['file2']['name'] , 'files/' . $total['table'] ) ;
	} elseif ( $_POST['del_file2'] == 'Y' ) {
		file_delete( 'files/' . $total['table'] . '/' . $info['file2'] ) ;
		$action['file2'] = '' ;
	}

	$exe->qry_update( $action , 'tbl_' . $total['table'] , " numid={$total[numid]} ");

	script_re ( $total['cmnnb'] . '&mode=view') ;
?>

Copyright © 2017 || Recoded By Mr.Bumblebee