echo '<option value=' . $val . ' selected>' . $name . '</option>'; } else { echo '<option value=' . $val . '>' . $name . '</option>'; } } } ?> </select> </td> </tr> <tr> <th><label for="status">Status:</label></th> <td> <select id="status" name="status"> <?php foreach (DocStatus::getAllTypes() as $val => $status) { if ($val != 0) { if ($document->getStatus()->getStatus() == $val) { echo '<option value=' . $val . ' selected>' . $status . '</option>'; } else { echo '<option value=' . $val . '>' . $status . '</option>'; } } } ?> </select> </td> </tr> <tr> <th><label for="prefix">Prefix:</label></th> <td>
/** * Set this to retrieve data with a specific DocStatus. * * @param string $value */ public function setDocStatus($value) { DocStatus::Validate($value); $this->DocStatus = $value; return $this; }