public function edit() { global $LANG; $show = openForm(iSELF . '?object=domain&action=edit2'); $show .= beginTable("{$LANG['Details']} {$LANG['Domain']}: {$this->id} , {$this->name}"); $show .= HiddenField('DomainID', $this->id); $show .= TextField($LANG['Title'], 'name', $this->name); $show .= ArrayDropBox($lClient_type, 'Owner', $acct_row['Owner'], array('person', 'person', 'company', 'company', 'businessman', 'businessman')); $show .= LargeTextField($LANG['Content'], 'content', $this->content); $show .= Submitter('edit_domain', $LANG['Edit']); $show .= endTable(); return $show; }
public function add() { global $LANG; $show = openForm(iSELF); $show .= HiddenField('object', 'note'); $show .= HiddenField('action', 'add2'); $show .= HiddenField('opentime', ''); $show .= beginTable("{$LANG['Add']} {$LANG['Note']}"); $show .= TextField($LANG['Title'], 'title', ''); $show .= TextField('Автор', 'autor', ''); $show .= ArrayDropBox('Категория', 'category', 'admin', array('user', 'для пользователей', 'reseller', 'для диллеров', 'admin', 'для персонала')); $show .= LargeTextField($LANG['Content'], 'content', ''); $show .= Submitter("add_note", $LANG['Add']); $show .= endTable(); return $show; }