$upload = new upload('use_avatar', $bg_filepath, $bg_extension, $limit_size); $filename = $upload->file_name; if ($filename) { $myform->add('use_avatar', 'filename', 0, 1, ''); foreach ($arr_resize as $type => $arr) { resize_image($bg_filepath, $filename, $arr["width"], $arr["height"], $arr["quality"], $type); } } $bg_errorMsg .= $upload->show_warning_error(); if ($bg_errorMsg == '') { $db_insert = new db_execute($myform->generate_insert_SQL()); redirect('listing.html'); } } $myform->addFormname("add_new"); $myform->evaluate(); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="vi" lang="vi" xmlns:og="http://ogp.me/ns#" xmlns:fb="https://www.facebook.com/2008/fbml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <?php echo $load_header; ?> </head> <body> <div class="module_header bold fix"><?php echo $module_name; ?> </div> <div id="wrapper">