Example #1
0
         } else {
             if ($ads->Add($info)) {
                 errorinfo('添加成功', '');
             } else {
                 errorinfo('添加失败', '');
             }
         }
     } else {
         $info = array();
         $time = time();
         if (isset($id)) {
             $id = intval($id);
             if ($id <= 0) {
                 errorinfo('变量错误', '');
             }
             $info = $ads->GetInfo('', ' id = ' . $id);
             if (empty($info)) {
                 errorinfo('变量错误', '');
             }
         }
         $classList = $ads_class->GetList();
         $templatefile = 'ads_edit.tpl.php';
     }
     break;
 case 'search':
     //
     break;
 case 'show':
     //
     break;
 case 'del':