Ejemplo n.º 1
0
 public function __construct($table, $fields, $values, $condition, $instance)
 {
     global $dt_strings, $button_strings;
     parent::__construct($table, $fields, $values, 'dt_edit', $instance);
     $this->condition = $condition;
     $this->job = 'edit';
     $this->headline = 'WHERE ' . htmlentities($condition);
     $this->buttons = array(array('type' => 'submit', 'name' => 'save', 'value' => $button_strings['Save']), array('type' => 'reset', 'name' => 'reset', 'value' => $button_strings['Reset']), array('type' => 'submit', 'name' => 'cancel', 'value' => $button_strings['Cancel']));
     $this->checkboxes = array(array('name' => 'as_new', 'checked' => $GLOBALS['s_cust']['enter']['as_new'], 'label' => $dt_strings['INRow']), array('name' => 'fk_lookup', 'checked' => $GLOBALS['s_cust']['enter']['fk_lookup'], 'label' => $dt_strings['FKLookup']));
 }