function apu_base_class() { global $sess_lang, $lang_str; $this->action = ""; /* set instance id for identification this object when multiple instances is used */ $this->opt['instance_id'] = get_class($this) . apu_base_class::get_Instance(); $this->opt['form_submit'] = array('type' => 'image', 'text' => $lang_str['b_submit'], 'src' => get_path_to_buttons("btn_submit.gif", $sess_lang)); $this->opt['form_cancel'] = array('type' => 'image', 'text' => $lang_str['b_cancel'], 'src' => get_path_to_buttons("btn_cancel.gif", $sess_lang)); }
function apu_base_class(){ global $lang_str; $this->action=""; /* set instance id for identification this object when multiple instances is used */ $this->opt['instance_id']=get_class($this).apu_base_class::get_Instance(); /* form */ $this->opt['smarty_form'] = 'form'; /* name of html form */ $this->opt['form_name'] = 'data_form'; $this->opt['form_submit']=array('type' => 'button', 'text' => $lang_str['b_submit']); $this->opt['form_cancel']=array('type' => 'button', 'text' => $lang_str['b_cancel']); }