Exemple #1
0
     }
     $AdType->Delete();
     break;
 case 'savecat':
     // Insert or update a category record from form vars
     USES_classifieds_class_category();
     $cat_id = (int) CLASSIFIEDS_getParam('cat_id');
     $C = new adCategory($cat_id);
     $C->Save($_POST);
     $view = 'admin';
     $actionval = 'cat';
     break;
 case 'delcat':
     // Insert or update a category record from form vars
     USES_classifieds_class_category();
     adCategory::DeleteMulti($_POST['c']);
     $view = 'admin';
     $actionval = 'cat';
     break;
 case 'delcatimg':
     // Delete a category image
     $cat_id = CLASSIFIEDS_getParam('cat_id');
     if ($cat_id > 0) {
         USES_classifieds_class_category();
         adCategory::DelImage($cat_id);
     }
     $view = 'editcat';
     break;
 case 'save':
     if ($type == 'submission') {
         // new submission