Changeset 3654 for branches/2.2/mobile/inc
- Timestamp:
- 01/04/11 16:24:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/inc/class.ui_mobilecc.inc.php
r3650 r3654 232 232 function delete_contacts($params) { 233 233 $this->bo->set_catalog($params['catalog']); 234 $status = $this->bo->remove_multiple_entries($params['contacts']); 235 236 $type = $this->page_info['actual_catalog']!=='bo_group_manager'?"contacts":"groups"; 237 238 if($status['success']) 239 header("Location: index.php?menuaction=mobile.ui_mobilecc.index&success_message=".lang("selected $type were removed successfully")); 240 else 241 header("Location: index.php?menuaction=mobile.ui_mobilecc.index&error_message=".lang("one or more $type couldnt be removed")); 234 235 if (!is_array($params['contacts']) ){ 236 header("Location: index.php?menuaction=mobile.ui_mobilecc.index&success_message=".lang("please select one contact")); 237 }else{ 238 239 $status = $this->bo->remove_multiple_entries($params['contacts']); 240 241 $type = $this->page_info['actual_catalog']!=='bo_group_manager'?"contacts":"groups"; 242 243 if($status['success']) 244 header("Location: index.php?menuaction=mobile.ui_mobilecc.index&success_message=".lang("selected $type were removed successfully")); 245 else 246 header("Location: index.php?menuaction=mobile.ui_mobilecc.index&error_message=".lang("one or more $type couldnt be removed")); 247 } 242 248 } 243 249
Note: See TracChangeset
for help on using the changeset viewer.