var $dec;
//
//
- function simple_crud($name, $fields = null)
+ function __construct($name, $fields = null)
{
$this->name = $name;
$this->pre_handlers = array(
{
global $Ajax;
- $sel_name = $this->name.'_id';
-
// list controls lookup
foreach (array_keys($this->pre_handlers) as $m) {
if (isset($_POST[$this->name.$m])) {
if ($async === 'both') {
$async = 'default'; $cancel = 'cancel';
}
- else if ($async === 'default')
+ elseif ($async === 'default')
$cancel = true;
- else if ($async === 'cancel')
+ elseif ($async === 'cancel')
$async = true;
echo "<center>";