public function __construct() { $this->page_title_new = sprintf(BOX_TEXT_NEW_TITLE, TEXT_BRANCH); $this->tab_list[] = array('file' => 'template_notes', 'tag' => 'notes', 'order' => 40, 'text' => TEXT_NOTES); $this->tab_list[] = array('file' => 'template_b_general', 'tag' => 'general', 'order' => 1, 'text' => TEXT_GENERAL); parent::__construct(); }
public function __construct() { $this->page_title_new = sprintf(BOX_TEXT_NEW_TITLE, TEXT_VENDOR); $this->tab_list[] = array('file' => 'template_addbook', 'tag' => 'addbook', 'order' => 20, 'text' => TEXT_ADDRESS_BOOK); $this->tab_list[] = array('file' => 'template_contacts', 'tag' => 'contacts', 'order' => 5, 'text' => TEXT_CONTACTS); $this->tab_list[] = array('file' => 'template_history', 'tag' => 'history', 'order' => 10, 'text' => TEXT_HISTORY); $this->tab_list[] = array('file' => 'template_notes', 'tag' => 'notes', 'order' => 40, 'text' => TEXT_NOTES); $this->tab_list[] = array('file' => 'template_general', 'tag' => 'general', 'order' => 1, 'text' => TEXT_GENERAL); parent::__construct(); }
public function __construct() { $this->tab_list[] = array('file' => 'template_notes', 'tag' => 'notes', 'order' => 40, 'text' => TEXT_NOTES); $this->tab_list[] = array('file' => 'template_i_general', 'tag' => 'general', 'order' => 1, 'text' => TEXT_GENERAL); parent::__construct(); if (isset($_POST['i_id'])) { if ($_POST['i_id']) { $this->id = db_prepare_input($_POST['i_id']); } else { $this->id = ''; } $this->short_name = db_prepare_input($_POST['i_short_name']); $this->contact_first = db_prepare_input($_POST['i_contact_first']); $this->contact_middle = db_prepare_input($_POST['i_contact_middle']); $this->contact_last = db_prepare_input($_POST['i_contact_last']); $this->gov_id_number = db_prepare_input($_POST['i_gov_id_number']); $this->account_number = db_prepare_input($_POST['i_account_number']); $this->dept_rep_id = db_prepare_input($_POST['id']); // this id is from the parent. } }