Пример #1
0
        if (!$patients) {
            echo "<p class='notice'>There are no patients with billing accounts.</p>";
        }
        $form = array('form_action' => 'receivePayment', 'submit_text' => 'Update Bill', '_dropdown1' => array('label' => 'Patient', 'name' => 'pid', $patients), 'amnt' => array('label' => 'Amount $', 'value' => 0));
        buildForm($form);
        ?>
		
		<a name='getBill'></a>
		<h2><?php 
        echo $items['getBill'];
        ?>
</h2>
		<p>View the current bill for the patient.</p>
		<?php 
        $b = new Billing();
        $patients = $b->getPatients(true);
        if (!$patients) {
            echo "<p class='notice'>There are no patients with billing accounts.</p>";
        }
        $form = array('form_action' => 'getBill', 'submit_text' => 'Get Bill', '_dropdown1' => array('label' => 'Patient', 'name' => 'pid', $patients));
        buildForm($form);
        ?>
		
		
	
		<?php 
        break;
        // Default index page
    // Default index page
    default:
        $items = array('readme' => "Read Me", 'tests' => "Run Tests");