<label for="doc_num">Document Number </label> <?php echo $mattrans->prepareDocNumber(); ?> <input id="doc_num" type="hidden" value="<?php echo $mattrans->getDocNumber(); ?> "></input><br /> <label for="doc_date">Document Date </label> <?php echo $mattrans->prepareDocDate("j F Y"); ?> <br /> <label for="doc_type">Document Type </label> <?php echo $mattrans->prepareDocType(); ?> <br /> <label for="branch_id">From Branch </label> <?php $fromBranch = new Branch($mattrans->getBranchFrom()); echo $fromBranch->prepareName(); ?> <label for="branch_id"> To Branch </label> <?php $toBranch = new Branch($mattrans->getBranchTo()); echo $toBranch->prepareName(); ?> <br /> <table id="formContent"> <thead>