From 0830a5734b9a9b057e624c66a58574101d0965e1 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Tue, 11 May 2010 11:48:00 +0000 Subject: [PATCH] Cleanup. --- includes/ui/simple_crud_class.inc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/includes/ui/simple_crud_class.inc b/includes/ui/simple_crud_class.inc index 1720516b..ef19ca83 100644 --- a/includes/ui/simple_crud_class.inc +++ b/includes/ui/simple_crud_class.inc @@ -49,26 +49,20 @@ class simple_crud { unset($_POST['_focus']); // focus on first form entry $this->selected_id = quoted_printable_decode(substr($p, strlen($this->name.$m))); $Ajax->activate($this->name.'_div'); -// $Ajax->activate('_page_body'); $this->Mode = $m; return; } } } - $default = ''; //$numeric_id ? -1 : ''; + $default = ''; $this->selected_id = get_post($sel_name, $default); if ($this->selected_id === $default) { -// $this->selected_id = @$_POST[$sel_name]; -// if (!isset($this->selected_id)) { $this->Mode = ''; return; } foreach (array('ADD', 'UPDATE', 'RESET', 'CLONE') as $m) { if (isset($_POST[$this->name.$m])) { $Ajax->activate($this->name.'_div'); -// $Ajax->activate('_page_body'); -// if ($m == 'RESET' || $m == 'CLONE') -// $this->selected_id = $default; unset($_POST['_focus']); $this->Mode = $m; return; @@ -194,7 +188,7 @@ class simple_crud { } //=========================================================================== - // child class provided sql functions + // Database functions placeholders // // Read record from db for edition -- 2.30.2