-=[ Mr. Bumblebee ]=-
_Indonesia_

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

<?

$numids = array() ;
foreach ( $_POST['n_numid'] as $key=>$val ) {
	if ( !empty($val)) {
		$numids[] = $val ;
		$exe->qry_update ( " title = '" . str_convert($_POST['n_title'][$key]) . "' , sequence = " . ($key+1) , " tbl_{$total[table]}_category " , " c1_no = '" . $_POST['c1_no'] . "' and c2_no = '" . $_POST['c2_no'] . "' and numid='{$val}' " ) ;
	} else {
		$numids[] = $exe->qry_insert ( array (
							'keycode'		=> $total['code'] ,
							'write_date'	=> $total['now'] ,
							'ip'					=> $total['ip'] ,
							'sequence'		=> $key + 1 ,
							'c1_no'			=> $_POST['c1_no'] ,
							'c2_no'			=> $_POST['c2_no'] ,
							'title'				=> str_convert($_POST['n_title'][$key]) ) , "tbl_{$total[table]}_category " ) ;
	}
}

if ( count($numids) > 0 )
	$exe->qry_delete ( " tbl_{$total[table]}_category " , " c1_no = '" . $_POST['c1_no'] . "' and c2_no = '" . $_POST['c2_no'] . "' and numid not in ( " . implode( ',' , $numids ) . " ) " ) ;
else
	$exe->qry_delete ( " tbl_{$total[table]}_category " , " c1_no = '" . $_POST['c1_no'] . "' and c2_no = '" . $_POST['c2_no'] . "'  " ) ;

script_re ( $total['cmnall'] . '&mode=2depth&c1=' . $_POST['c1_no'] . '&c2=' . $_POST['c2_no'] ) ;

?>

Copyright © 2017 || Recoded By Mr.Bumblebee