?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv=Content-Type content="text/html; charset=utf-8"> <meta http-equiv=Content-Language content=zh-CN> <title>迅傲信息</title> <?php include "../../frame.php"; ?> </head> <body> <?php $image = new table_images_class(); if ($_POST['id'] != '') { $image->find($_POST['id']); } else { $image->created_at = date("Y-m-d H:i:s"); } $image->publisher = $_SESSION['admin_user_id']; $image->update_file_attributes('image'); if ($_POST['image']["priority"] == null) { $image->update_attribute("priority", "100"); } $image->update_attributes($_POST['image']); if ($image->category_id != '') { redirect('image_list.php?category=' . $image->category_id); } else { redirect('image_list.php'); } ?>