-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /var/www/html/zbk_20220209_admin/php/emblem/
File Upload :
Current File : /var/www/html/zbk_20220209_admin/php/emblem/act.update.php

<?
if ( empty($numid)) script_re ( $total['cmnall'] , ' À߸øµÈ Á¢±ÙÀÔ´Ï´Ù. ' ) ;
if ( empty($_POST['title']))	script_re ( $total['cmnall'] , ' ÇʼöÇ׸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä ' ) ;
if ( empty($_POST['price1']))	script_re ( $total['cmnall'] , ' ÇʼöÇ׸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä ' ) ;

$info = $exe->qry_fetch(" from tbl_{$total[table]} where keycode='{$total[code]}' and numid = '{$total[numid]}' " , " numid , img1 " ) ;
if ( empty($info['numid'])) script_re ( $total['cmnall'] , ' ¾ø´Â °Ô½Ã¹°ÀÔ´Ï´Ù. ' ) ;

$gubun = $_POST['gubun'] ;
if ( !empty($gubun)) {
	$gubun = ( $gubun == 'B' ) ? 'B' : 'A'  ;
}
$action = array(
	'title'				=> str_convert($_POST['title']) ,
	'price1'			=> ( is_numeric($_POST['price1']) ? $_POST['price1'] : 0 ) ,
	'price2'			=> ( is_numeric($_POST['price2']) ? $_POST['price2'] : 0 ) ,
	'price3'			=> ( is_numeric($_POST['price3']) ? $_POST['price3'] : 0 ) ,
	'gubun'			=> $gubun ,
	'seq'				=> ( is_numeric($_POST['seq']) ? $_POST['seq'] : 1 ) ,
) ;
if ( $_POST['del_img1'] == 'Y' || !empty($_FILES['img1']['name'])) {
	$upimg = $info['img1'] ;
	file_delete('files/' . $total['table'] . '/' . $total['options']['dir'] . '/' . $upimg) ;
	$action['img1'] = '' ;
	if ( !empty($_FILES['img1']['name'])) {
		/*
		$simg = new resizeimageV2 ;
		$simg->option_fixed = 'N' ;
		$simg->width = $total['options']['w'] ;
		$simg->height = $total['options']['h'] ;
		$simg->upload_dir = 'files/' . $total['table'] . '/' . $total['options']['dir'] ;
		$simg->resize( $_FILES['img1'] ) ;
		$action['img1'] = $simg->result_file_name ;
		*/
		$action['img1'] = file_upload( $_FILES['img1']['tmp_name'] , $_FILES['img1']['name'] , 'files/' . $total['table'] . '/' . $total['options']['dir'] ) ;
	}
}

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

script_re ( $total['cmnall'] . '&numid=' . $total['numid'] , '¼öÁ¤µÇ¾ú½À´Ï´Ù.' ) ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee