PageRenderTime 48ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/receiving/receipt_edit.tpl.php

http://tracmor.googlecode.com/
PHP | 190 lines | 160 code | 10 blank | 20 comment | 8 complexity | b60c88c34c2e1ae7e5f8551543ec5cc2 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1
  1. <?php
  2. /*
  3. * Copyright (c) 2009, Tracmor, LLC
  4. *
  5. * This file is part of Tracmor.
  6. *
  7. * Tracmor is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * Tracmor is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with Tracmor; if not, write to the Free Software
  19. * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
  20. */
  21. include('../includes/header.inc.php');
  22. $this->RenderBegin();
  23. // Custom Fields
  24. if ($this->arrCustomFields) {
  25. foreach ($this->arrCustomFields as $field) {
  26. if(!$this->blnEditMode || $field['blnView']){
  27. $arrReceiptFields[] = array('name' => $field['lbl']->Name . ":", 'value' => $field['lbl']->RenderWithError(false) . $field['input']->RenderWithError(false));
  28. }
  29. }
  30. }
  31. ?>
  32. <!-- Begin Header Menu -->
  33. <?php
  34. $this->ctlHeaderMenu->Render();
  35. ?>
  36. <!-- End Header Menu -->
  37. <!-- Begin Shortcut Menu -->
  38. <?php
  39. $this->ctlShortcutMenu->Render();
  40. ?>
  41. <!-- End Shortcut Menu -->
  42. </td>
  43. <td>
  44. <img src="../images/empty.gif" width="10">
  45. </td>
  46. <td width="100%" valign="top">
  47. <div class="title">Receipts: <?php $this->lblHeaderReceipt->Render(); ?></div>
  48. <table class="datagrid" cellpadding="5" cellspacing="0" border="0" >
  49. <tr>
  50. <td class="record_header">
  51. <?php
  52. $this->btnEdit->Render();
  53. $this->btnSave->RenderWithError();
  54. echo('&nbsp;');
  55. $this->atcAttach->RenderWithError();
  56. echo('&nbsp;');
  57. $this->btnDelete->RenderWithError();
  58. $this->btnCancel->RenderWithError();
  59. ?>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td>
  64. <table cellpadding="0" cellspacing="0">
  65. <tr>
  66. <td style="vertical-align:top;">
  67. <table cellpadding="0" cellspacing="0">
  68. <tr>
  69. <td colspan="2" class="record_subheader">Sender Information</td>
  70. </tr>
  71. <tr>
  72. <td class="record_field_name">Company:</td>
  73. <td class="record_field_value"><?php $this->lstFromCompany->RenderWithError();$this->lblFromCompany->Render(); $this->lblNewFromCompany->RenderWithError(); ?></td>
  74. </tr>
  75. <tr>
  76. <td class="record_field_name">Contact:</td>
  77. <td class="record_field_value"><?php $this->lstFromContact->RenderWithError();$this->lblFromContact->Render(); $this->lblNewFromContact->RenderWithError(); ?></td>
  78. </tr>
  79. </table>
  80. <br class="item_divider" />
  81. <table cellpadding="0" cellspacing="0">
  82. <tr>
  83. <td colspan="2" class="record_subheader">Recipient Information</td>
  84. </tr>
  85. <tr>
  86. <td class="record_field_name">Contact:</td>
  87. <td class="record_field_value"><?php $this->lstToContact->RenderWithError();$this->lblToContact->Render(); $this->lblNewToContact->RenderWithError();?></td>
  88. </tr>
  89. <tr>
  90. <td class="record_field_name">Address:</td>
  91. <td class="record_field_value"><?php $this->lstToAddress->RenderWithError();$this->lblToAddress->Render(); $this->lblNewToAddress->RenderWithError();?></td>
  92. </tr>
  93. </table>
  94. </td>
  95. <td style="width:16px">&nbsp;</td>
  96. <td style="vertical-align:top;">
  97. <table cellpadding="0" cellspacing="0">
  98. <tr>
  99. <td colspan="2" class="record_subheader">Receipt Information</td>
  100. </tr>
  101. <?php if (QApplication::$TracmorSettings->CustomReceiptNumbers) { ?>
  102. <tr>
  103. <td class="record_field_name">Receipt Number:</td>
  104. <td class="record_field_value"><?php $this->txtReceiptNumber->RenderWithError();$this->lblReceiptNumber->Render(); ?>&nbsp;</td>
  105. </tr>
  106. <?php
  107. }
  108. ?>
  109. <tr>
  110. <td class="record_field_name">Note:</td>
  111. <td class="record_field_value"><?php $this->txtNote->RenderWithError();$this->pnlNote->Render(); ?></td>
  112. </tr>
  113. <tr>
  114. <td class="record_field_name">Date Due:</td>
  115. <td class="record_field_value"><?php $this->calDueDate->RenderWithError();$this->lblDueDate->Render(); ?></td>
  116. </tr>
  117. <tr style="<?php if (!$this->blnEditMode) { echo('display:none'); } ?>">
  118. <td class="record_field_name">Date Received:</td>
  119. <td class="record_field_value"><?php $this->lblReceiptDate->Render(); ?></td>
  120. </tr>
  121. <?php if (!empty($arrReceiptFields)) {
  122. foreach ($arrReceiptFields as $field) {
  123. ?>
  124. <tr>
  125. <td class="record_field_name"><?php echo $field['name']; ?></td>
  126. <td class="record_field_value"><?php echo $field['value']; ?></td>
  127. </tr>
  128. <?php
  129. }
  130. };
  131. ?>
  132. </table>
  133. </td>
  134. </tr>
  135. </table>
  136. </td>
  137. </tr>
  138. </table>
  139. <?php
  140. $this->pnlAttachments->Render();
  141. ?>
  142. <br class="item_divider" />
  143. <div class="title">Assets to Receive</div>
  144. <table>
  145. <tr>
  146. <td colspan="3"><?php $this->rblAssetType->RenderDesigned('DisplayName=false'); ?></td>
  147. </tr>
  148. <tr>
  149. <td colspan="3"><?php $this->lstAssetModel->RenderDesigned(); ?></td>
  150. </tr>
  151. <tr>
  152. <td valign="top" width="200px"><?php $this->txtNewAssetCode->RenderDesigned(); ?></td>
  153. <td valign="top" width="20px"><?php $this->lblAddAsset->Render(); ?></td>
  154. <td valign="top"><?php $this->btnAddAsset->Render(); ?></td>
  155. </tr>
  156. <tr>
  157. <td colspan="3"><?php $this->chkAutoGenerateAssetCode->RenderDesigned('DisplayName=false'); ?></td>
  158. </tr>
  159. </table>
  160. <?php $this->dtgAssetTransact->RenderWithError(); ?>
  161. <br class="item_divider" />
  162. <?php if ($this->blnShowInventory) {?>
  163. <div class="title">Inventory to Receive</div>
  164. <table>
  165. <tr>
  166. <td valign="top" width="200px"><?php $this->txtNewInventoryModelCode->RenderDesigned(); ?></td>
  167. <td valign="top" width="20px"><?php $this->lblLookup->Render(); ?></td>
  168. </tr>
  169. <tr>
  170. <td><?php $this->txtQuantity->RenderDesigned(); ?></td>
  171. <td><?php $this->btnAddInventory->Render(); ?></td>
  172. </tr>
  173. </table>
  174. <?php } $this->dtgInventoryTransact->RenderWithError(); ?>
  175. <br class="item_divider" />
  176. <?php $this->dlgNew->Render(); ?>
  177. <?php $this->ctlAssetSearchTool->Render(); ?>
  178. <?php if ($this->blnShowInventory) $this->ctlInventorySearchTool->Render(); ?>
  179. <?php $this->RenderEnd() ?>
  180. <?php require_once('../includes/footer.inc.php'); ?>