Changeset 1092 for trunk/admin/picture_modify.php
- Timestamp:
- Mar 22, 2006, 2:01:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/picture_modify.php
r1085 r1092 128 128 { 129 129 $datas = array(); 130 130 131 131 foreach ($_POST['cat_dissociated'] as $category_id) 132 132 { … … 139 139 ); 140 140 } 141 141 142 142 mass_inserts( 143 143 IMAGE_CATEGORY_TABLE, … … 167 167 ); 168 168 } 169 169 170 170 $query = ' 171 171 DELETE FROM '.IMAGE_CATEGORY_TABLE.' … … 214 214 215 215 $storage_category_id = $row['category_id']; 216 $image_file = $row['file']; 216 217 217 218 // Navigation path … … 237 238 (isset($_GET['cat_id']) ? '&cat_id='.$_GET['cat_id'] : ''). 238 239 '&sync_metadata=1', 239 240 240 241 'PATH'=>$row['path'], 241 242 242 243 'TN_SRC' => get_thumbnail_src($row['path'], @$row['tn_ext']), 243 244 244 245 'NAME' => 245 246 isset($_POST['name']) ? 246 247 stripslashes($_POST['name']) : @$row['name'], 247 248 248 249 'DIMENSIONS' => @$row['width'].' * '.@$row['height'], 249 250 250 251 'FILESIZE' => @$row['filesize'].' KB', 251 252 252 253 'REGISTRATION_DATE' => 253 254 format_date($row['date_available'], 'mysql_datetime', false), 254 255 255 256 'AUTHOR' => isset($_POST['author']) ? $_POST['author'] : @$row['author'], 256 257 257 258 'CREATION_DATE' => $date, 258 259 259 260 'KEYWORDS' => 260 261 isset($_POST['keywords']) ? 261 262 stripslashes($_POST['keywords']) : @$row['keywords'], 262 263 263 264 'DESCRIPTION' => 264 265 isset($_POST['description']) ? 265 266 stripslashes($_POST['description']) : @$row['comment'], 266 267 267 268 'F_ACTION' => 268 269 PHPWG_ROOT_PATH.'admin.php' … … 293 294 get_month_list('date_creation_month', $month); 294 295 $template->assign_vars(array('DATE_CREATION_YEAR_VALUE' => $year)); 295 296 296 297 $query = ' 297 298 SELECT category_id, uppercats … … 316 317 false 317 318 ); 318 319 319 320 if ($row['category_id'] == $storage_category_id) 320 321 { … … 355 356 array( 356 357 'image_id' => $_GET['image_id'], 358 'image_file' => $image_file, 357 359 'category' => $_GET['cat_id'], 358 360 ) … … 366 368 array( 367 369 'image_id' => $_GET['image_id'], 370 'image_file' => $image_file, 368 371 'category' => $category, 369 372 ) … … 382 385 ); 383 386 } 384 387 385 388 // associate to another category ? 386 389 $query = '
Note: See TracChangeset
for help on using the changeset viewer.