function get_links() { $this->Paging["count"] = FooterLink::get(NULL, true); $footer_links = FooterLink::get(NULL, false, $this->Paging['page'], $this->Paging['show']); return $footer_links; }
$footer_link->extra = $form_data['extra'] = serialize($extra_footer_data); $footer_link->is_active = ACTIVE; if (!$error) { try { $footer_link->save(); $form_data = array(); header("location: manage_footer_links.php?msg_id={$msg_id}"); exit; } catch (PAException $e) { $msg[] = $e->message; } } } else { if (!empty($_GET['do']) && $_GET['do'] == 'edit' && !empty($_GET['id'])) { $edit = TRUE; $res = FooterLink::get(array('id' => (int) $_GET['id'])); if (!empty($res)) { $form_data['id'] = $res[0]->id; $form_data['caption'] = $res[0]->caption; $form_data['url'] = $res[0]->url; $form_data['extra'] = $res[0]->extra; } } else { if (!empty($_GET['action']) && $_GET['action'] == 'delete' && !empty($_GET['id'])) { if (!empty($_GET['id'])) { try { FooterLink::delete((int) $_GET['id']); header("location: manage_footer_links.php?msg_id=11013"); exit; } catch (PAException $e) { $msg[] = $e->message;