protected function action_choose() { $others = explode(",", $_POST['others']); $chosen_name = $this->GetNameByID($_POST['pk']); $f = new Form(); $f->start($_POST); $f->hidden('pk', $_POST['pk']); echo <<<EOT <p>Do you want this person: <p style='margin-left:20px;'>{$chosen_name} <p>to replace these checked persons? EOT; foreach ($others as $p) { $f->checkbox("replace[{$p}]", $this->GetNameByID($p)); } echo <<<EOT <p>The replaced persons will not be deleted, so you can copy<br>any required data into the person that replaces them. EOT; $f->button('action_replace', 'Replace'); echo "<button class=button type=button\n onclick='window.close();'>Cancel</button>"; $f->end(); }
protected function show_form($row) { $f = new Form(); $f->start($row); $f->hidden('member_id', $row['member_id']); $f->text('last', 'Last Name:', 30, 'Last Name'); $f->text('first', 'First:', 20, 'First Name', false); $f->text('street', 'Street:', 50, 'Street'); $f->text('city', 'City:', 20, 'City'); $f->text('state', 'State:', 10, 'State', false); $f->foreign_key('specialty_id', 'name', 'Specialty'); $f->radio('billing', 'Monthly', 'month'); $f->hspace(2); $f->radio('billing', 'Yearly', 'year', false); $f->hspace(2); $f->radio('billing', 'Recurring', 'recurring', false); $f->menu('contact', 'Contact:', array('phone', 'email', 'mail', 'none'), true, 'email'); $f->checkbox('premium', 'Premium:', false); $f->date('since', 'Member Since:', false); if ($this->ac->has_permission('member-edit')) { $f->button('action_save', 'Save'); } $f->end(); }