コード例 #1
0
    echo HTML::rule();
}
while ($problem = $problemQ->fetch()) {
    echo HTML::section(3, _("Order Number"));
    echo HTML::para($problem->getOrderNumber());
    if ($problem->getIdMember()) {
        $staffQ = new Query_Staff();
        if ($staffQ->select($problem->getIdMember())) {
            $staff = $staffQ->fetch();
            if ($staff) {
                echo HTML::section(3, _("Attending Physician"));
                echo HTML::para($staff->getSurname1() . ' ' . $staff->getSurname2() . ', ' . $staff->getFirstName());
            }
            $staffQ->freeResult();
        }
        $staffQ->close();
        unset($staffQ);
        unset($staff);
    }
    echo HTML::section(3, _("Opening Date"));
    echo HTML::para(I18n::localDate($problem->getOpeningDate()));
    echo HTML::section(3, _("Last Update Date"));
    echo HTML::para(I18n::localDate($problem->getLastUpdateDate()));
    if ($problem->getClosingDate() != "" && $problem->getClosingDate() != "0000-00-00") {
        echo HTML::section(3, _("Closing Date"));
        echo HTML::para(I18n::localDate($problem->getClosingDate()));
    }
    if ($problem->getMeetingPlace()) {
        echo HTML::section(3, _("Meeting Place"));
        echo HTML::para($problem->getMeetingPlace());
    }