Advertisement
Guest User

Untitled

a guest
Jan 28th, 2011
650
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.20 KB | None | 0 0
  1. <form method="post" action="/?module=accounts&amp;controller=reports&amp;action=r1" id="save_form" enctype="multipart/form-data">
  2. <table class="formgrid" width="100%">
  3. <tr>
  4. <td colspan="2">&nbsp;</td>
  5. <td class="label" width="100%">End date</td>
  6. <td class="value"><input type="text" class="datepicker" name="date" id="date" value="{$date}"/></td>
  7. </tr>
  8.  
  9. <tr>
  10. <td align="center" colspan="2">&nbsp;</td>
  11. <td class="buttonbar" colspan="2">
  12. <input type="submit" name="search" value="Search"/>
  13. </td>
  14. </tr>
  15.  
  16. </table>
  17. </form>
  18. <div id="tabs">
  19. <ul>
  20. <li><a href="#tabs-ov">Overview</a></li>
  21. <li><a href="#tabs-o">Occupier</a></li>
  22. <li><a href="#tabs-t">Tenant Invoice</a></li>
  23. </ul>
  24. <div id="tabs-ov">
  25. <table class="display" id="ov" style="display:none;">
  26. <thead>
  27. <tr>
  28. <th>Overview</th>
  29. <th>{$quarters.0.period}</th>
  30. <th>{$quarters.1.period}</th>
  31. <th>{$quarters.2.period}</th>
  32. <th>{$quarters.3.period}</th>
  33. <th>{$quarters.4.period}</th>
  34. <th>{$quarters.5.period}</th>
  35. <th>{$quarters.6.period}</th>
  36. <th>{$quarters.7.period}</th>
  37. <th>{$quarters.8.period}</th>
  38. <th>Total</th>
  39. </tr>
  40. </thead>
  41. <tbody>
  42. <tr>
  43. <td>Occupier Billed</td>
  44. <td>{$totals.o.0.billed|pricify}</td>
  45. <td>{$totals.o.1.billed|pricify}</td>
  46. <td>{$totals.o.2.billed|pricify}</td>
  47. <td>{$totals.o.3.billed|pricify}</td>
  48. <td>{$totals.o.4.billed|pricify}</td>
  49. <td>{$totals.o.5.billed|pricify}</td>
  50. <td>{$totals.o.6.billed|pricify}</td>
  51. <td>{$totals.o.7.billed|pricify}</td>
  52. <td>{$totals.o.8.billed|pricify}</td>
  53. <td>{$totals.o.total.billed|pricify}</td>
  54. </tr>
  55. <tr>
  56. <td>Occupier Paid</td>
  57. <td>{$totals.o.0.paid|pricify}</td>
  58. <td>{$totals.o.1.paid|pricify}</td>
  59. <td>{$totals.o.2.paid|pricify}</td>
  60. <td>{$totals.o.3.paid|pricify}</td>
  61. <td>{$totals.o.4.paid|pricify}</td>
  62. <td>{$totals.o.5.paid|pricify}</td>
  63. <td>{$totals.o.6.paid|pricify}</td>
  64. <td>{$totals.o.7.paid|pricify}</td>
  65. <td>{$totals.o.8.paid|pricify}</td>
  66. <td>{$totals.o.total.paid|pricify}</td>
  67. </tr>
  68. <tr class="odd">
  69. <td class="dtblue">Occupier Balance</td>
  70. <td class="dtblue">{$totals.o.0.balance|pricify}</td>
  71. <td class="dtblue">{$totals.o.1.balance|pricify}</td>
  72. <td class="dtblue">{$totals.o.2.balance|pricify}</td>
  73. <td class="dtblue">{$totals.o.3.balance|pricify}</td>
  74. <td class="dtblue">{$totals.o.4.balance|pricify}</td>
  75. <td class="dtblue">{$totals.o.5.balance|pricify}</td>
  76. <td class="dtblue">{$totals.o.6.balance|pricify}</td>
  77. <td class="dtblue">{$totals.o.7.balance|pricify}</td>
  78. <td class="dtblue">{$totals.o.8.balance|pricify}</td>
  79. <td class="dtblue">{$totals.o.total.balance|pricify}</td>
  80. </tr>
  81. <tr>
  82. <td>Tenant Billed</td>
  83. <td>{$totals.t.0.billed|pricify}</td>
  84. <td>{$totals.t.1.billed|pricify}</td>
  85. <td>{$totals.t.2.billed|pricify}</td>
  86. <td>{$totals.t.3.billed|pricify}</td>
  87. <td>{$totals.t.4.billed|pricify}</td>
  88. <td>{$totals.t.5.billed|pricify}</td>
  89. <td>{$totals.t.6.billed|pricify}</td>
  90. <td>{$totals.t.7.billed|pricify}</td>
  91. <td>{$totals.t.8.billed|pricify}</td>
  92. <td>{$totals.t.total.billed|pricify}</td>
  93. </tr>
  94. <tr>
  95. <td>Tenant Paid</td>
  96. <td>{$totals.t.0.paid|pricify}</td>
  97. <td>{$totals.t.1.paid|pricify}</td>
  98. <td>{$totals.t.2.paid|pricify}</td>
  99. <td>{$totals.t.3.paid|pricify}</td>
  100. <td>{$totals.t.4.paid|pricify}</td>
  101. <td>{$totals.t.5.paid|pricify}</td>
  102. <td>{$totals.t.6.paid|pricify}</td>
  103. <td>{$totals.t.7.paid|pricify}</td>
  104. <td>{$totals.t.8.paid|pricify}</td>
  105. <td>{$totals.t.total.paid|pricify}</td>
  106. </tr>
  107. <tr class="odd">
  108. <td class="dtblue">Tenant Balance</td>
  109. <td class="dtblue">{$totals.t.0.balance|pricify}</td>
  110. <td class="dtblue">{$totals.t.1.balance|pricify}</td>
  111. <td class="dtblue">{$totals.t.2.balance|pricify}</td>
  112. <td class="dtblue">{$totals.t.3.balance|pricify}</td>
  113. <td class="dtblue">{$totals.t.4.balance|pricify}</td>
  114. <td class="dtblue">{$totals.t.5.balance|pricify}</td>
  115. <td class="dtblue">{$totals.t.6.balance|pricify}</td>
  116. <td class="dtblue">{$totals.t.7.balance|pricify}</td>
  117. <td class="dtblue">{$totals.t.8.balance|pricify}</td>
  118. <td class="dtblue">{$totals.t.total.balance|pricify}</td>
  119. </tr>
  120. </tbody>
  121. <tfoot>
  122.  
  123. </tfoot>
  124. </table>
  125. &nbsp;
  126. </div>
  127. <div id="tabs-o">
  128. <table class="display" id="otable" style="display:none;">
  129. <thead>
  130. <tr>
  131. <th>ID</th>
  132. <th>Address</th>
  133. <th>Postcode</th>
  134. <th>{$quarters.0.period} Billed</th>
  135. <th>{$quarters.0.period} Paid</th>
  136. <th>{$quarters.1.period} Billed</th>
  137. <th>{$quarters.1.period} Paid</th>
  138. <th>{$quarters.2.period} Billed</th>
  139. <th>{$quarters.2.period} Paid</th>
  140. <th>{$quarters.3.period} Billed</th>
  141. <th>{$quarters.3.period} Paid</th>
  142. <th>{$quarters.4.period} Billed</th>
  143. <th>{$quarters.4.period} Paid</th>
  144. <th>{$quarters.5.period} Billed</th>
  145. <th>{$quarters.5.period} Paid</th>
  146. <th>{$quarters.6.period} Billed</th>
  147. <th>{$quarters.6.period} Paid</th>
  148. <th>{$quarters.7.period} Billed</th>
  149. <th>{$quarters.7.period} Paid</th>
  150. <th>{$quarters.8.period} Billed</th>
  151. <th>{$quarters.8.period} Paid</th>
  152. <th>Total Billed</th>
  153. <th>Total Paid</th>
  154. <th>Balance</th>
  155. </tr>
  156. </thead>
  157. <tbody>
  158. {foreach from=$ohouses key=id item=house}
  159. <tr>
  160. <td><a href="/?module=glide&amp;controller=houses&amp;action=view&amp;id={$id}">{$id}</a></td>
  161. <td><a href="/?module=glide&amp;controller=houses&amp;action=view&amp;id={$id}">{$house.address1}</a></td>
  162. <td>{$house.postcode}</td>
  163. <td>{$house.0.billed|pricify}</td>
  164. <td>{$house.0.paid|pricify}</td>
  165. <td>{$house.1.billed|pricify}</td>
  166. <td>{$house.1.paid|pricify}</td>
  167. <td>{$house.2.billed|pricify}</td>
  168. <td>{$house.2.paid|pricify}</td>
  169. <td>{$house.3.billed|pricify}</td>
  170. <td>{$house.3.paid|pricify}</td>
  171. <td>{$house.4.billed|pricify}</td>
  172. <td>{$house.4.paid|pricify}</td>
  173. <td>{$house.5.billed|pricify}</td>
  174. <td>{$house.5.paid|pricify}</td>
  175. <td>{$house.6.billed|pricify}</td>
  176. <td>{$house.6.paid|pricify}</td>
  177. <td>{$house.7.billed|pricify}</td>
  178. <td>{$house.7.paid|pricify}</td>
  179. <td>{$house.8.billed|pricify}</td>
  180. <td>{$house.8.paid|pricify}</td>
  181. <td>{$house.total.billed|pricify}</td>
  182. <td>{$house.total.paid|pricify}</td>
  183. <td>{$house.total.balance|pricify}</td>
  184. </tr>
  185. {/foreach}
  186. </tbody>
  187. <tfoot>
  188. <tr>
  189. <th>Total</th>
  190. <th></th>
  191. <th></th>
  192. <th>{$totals.o.0.billed|pricify}</th>
  193. <th>{$totals.o.0.paid|pricify}</th>
  194. <th>{$totals.o.1.billed|pricify}</th>
  195. <th>{$totals.o.1.paid|pricify}</th>
  196. <th>{$totals.o.2.billed|pricify}</th>
  197. <th>{$totals.o.2.paid|pricify}</th>
  198. <th>{$totals.o.3.billed|pricify}</th>
  199. <th>{$totals.o.3.paid|pricify}</th>
  200. <th>{$totals.o.4.billed|pricify}</th>
  201. <th>{$totals.o.4.paid|pricify}</th>
  202. <th>{$totals.o.5.billed|pricify}</th>
  203. <th>{$totals.o.5.paid|pricify}</th>
  204. <th>{$totals.o.6.billed|pricify}</th>
  205. <th>{$totals.o.6.paid|pricify}</th>
  206. <th>{$totals.o.7.billed|pricify}</th>
  207. <th>{$totals.o.7.paid|pricify}</th>
  208. <th>{$totals.o.8.billed|pricify}</th>
  209. <th>{$totals.o.8.paid|pricify}</th>
  210. <th>{$totals.o.total.billed|pricify}</th>
  211. <th>{$totals.o.total.paid|pricify}</th>
  212. <th>{$totals.o.total.balance|pricify}</th>
  213. </tr>
  214. </tfoot>
  215. </table>
  216. &nbsp;
  217. </div>
  218. <div id="tabs-t">
  219. <table class="display" id="ttable" style="display:none;">
  220. <thead>
  221. <tr>
  222. <th>ID</th>
  223. <th>Address</th>
  224. <th>Postcode</th>
  225. <th>{$quarters.0.period} Billed</th>
  226. <th>{$quarters.0.period} Paid</th>
  227. <th>{$quarters.1.period} Billed</th>
  228. <th>{$quarters.1.period} Paid</th>
  229. <th>{$quarters.2.period} Billed</th>
  230. <th>{$quarters.2.period} Paid</th>
  231. <th>{$quarters.3.period} Billed</th>
  232. <th>{$quarters.3.period} Paid</th>
  233. <th>{$quarters.4.period} Billed</th>
  234. <th>{$quarters.4.period} Paid</th>
  235. <th>{$quarters.5.period} Billed</th>
  236. <th>{$quarters.5.period} Paid</th>
  237. <th>{$quarters.6.period} Billed</th>
  238. <th>{$quarters.6.period} Paid</th>
  239. <th>{$quarters.7.period} Billed</th>
  240. <th>{$quarters.7.period} Paid</th>
  241. <th>{$quarters.8.period} Billed</th>
  242. <th>{$quarters.8.period} Paid</th>
  243. <th>Total Billed</th>
  244. <th>Total Paid</th>
  245. <th>Balance</th>
  246. </tr>
  247. </thead>
  248. <tbody>
  249. {foreach from=$thouses key=id item=house}
  250. <tr>
  251. <td><a href="/?module=glide&amp;controller=houses&amp;action=view&amp;id={$id}">{$id}</a></td>
  252. <td><a href="/?module=glide&amp;controller=houses&amp;action=view&amp;id={$id}">{$house.address1}</a></td>
  253. <td>{$house.postcode}</td>
  254. <td>{$house.0.billed|pricify}</td>
  255. <td>{$house.0.paid|pricify}</td>
  256. <td>{$house.1.billed|pricify}</td>
  257. <td>{$house.1.paid|pricify}</td>
  258. <td>{$house.2.billed|pricify}</td>
  259. <td>{$house.2.paid|pricify}</td>
  260. <td>{$house.3.billed|pricify}</td>
  261. <td>{$house.3.paid|pricify}</td>
  262. <td>{$house.4.billed|pricify}</td>
  263. <td>{$house.4.paid|pricify}</td>
  264. <td>{$house.5.billed|pricify}</td>
  265. <td>{$house.5.paid|pricify}</td>
  266. <td>{$house.6.billed|pricify}</td>
  267. <td>{$house.6.paid|pricify}</td>
  268. <td>{$house.7.billed|pricify}</td>
  269. <td>{$house.7.paid|pricify}</td>
  270. <td>{$house.8.billed|pricify}</td>
  271. <td>{$house.8.paid|pricify}</td>
  272. <td>{$house.total.billed|pricify}</td>
  273. <td>{$house.total.paid|pricify}</td>
  274. <td>{$house.total.balance|pricify}</td>
  275. </tr>
  276. {/foreach}
  277. </tbody>
  278. <tfoot>
  279. <tr>
  280. <th>Total</th>
  281. <th></th>
  282. <th></th>
  283. <th>{$totals.t.0.billed|pricify}</th>
  284. <th>{$totals.t.0.paid|pricify}</th>
  285. <th>{$totals.t.1.billed|pricify}</th>
  286. <th>{$totals.t.1.paid|pricify}</th>
  287. <th>{$totals.t.2.billed|pricify}</th>
  288. <th>{$totals.t.2.paid|pricify}</th>
  289. <th>{$totals.t.3.billed|pricify}</th>
  290. <th>{$totals.t.3.paid|pricify}</th>
  291. <th>{$totals.t.4.billed|pricify}</th>
  292. <th>{$totals.t.4.paid|pricify}</th>
  293. <th>{$totals.t.5.billed|pricify}</th>
  294. <th>{$totals.t.5.paid|pricify}</th>
  295. <th>{$totals.t.6.billed|pricify}</th>
  296. <th>{$totals.t.6.paid|pricify}</th>
  297. <th>{$totals.t.7.billed|pricify}</th>
  298. <th>{$totals.t.7.paid|pricify}</th>
  299. <th>{$totals.t.8.billed|pricify}</th>
  300. <th>{$totals.t.8.paid|pricify}</th>
  301. <th>{$totals.t.total.billed|pricify}</th>
  302. <th>{$totals.t.total.paid|pricify}</th>
  303. <th>{$totals.o.total.balance|pricify}</th>
  304. </tr>
  305. </tfoot>
  306. </table>
  307. &nbsp;
  308. </div>
  309. </div>
  310. <div style="clear:both;"></div>
  311. {literal}
  312. <script type="text/javascript">
  313.  
  314. ( function($) {
  315.  
  316. $(document).ready(function() {
  317.  
  318. $.rloader([
  319. {type:'js',src:'/app/js/lib/jquery/dataTables-1.7/media/js/jquery.dataTables.min.js'},
  320. {type:'js',src:'/app/js/lib/jquery/dataTables-1.7/media/js/jquery.dataTables.extensions.js'},
  321. {type:'js',src:'/app/js/lib/jquery/dataTables-1.7/media/js/TableTools.min.js'},
  322. {type:'css',src:'/app/js/lib/jquery/dataTables-1.7/media/css/TableTools.css'}
  323. ]);
  324.  
  325. $("#tabs").tabs();
  326.  
  327. // apply DataTables plugin to tables
  328. $('#ov').dataTable({
  329. "bJQueryUI": true,
  330. "bProcessing": false,
  331. "bPaginate": false,
  332. "bFilter": false,
  333. "bSort": false,
  334. "oLanguage": {
  335. "sInfo": "",
  336. "sLengthMenu": ""
  337. },
  338. "aoColumns": [
  339. {"bSortable": false},
  340. {"bSortable": false},
  341. {"bSortable": false},
  342. {"bSortable": false},
  343. {"bSortable": false},
  344. {"bSortable": false},
  345. {"bSortable": false},
  346. {"bSortable": false},
  347. {"bSortable": false},
  348. {"bSortable": false},
  349. {"bSortable": false}
  350. ],
  351. "sDom": 'T<"clear"><"H"lfr>t<"F"ip>',
  352. "oTableTools": {
  353. "sSwfPath": "/app/js/lib/jquery/dataTables-1.7/media/swf/copy_cvs_xls_pdf.swf"
  354. }
  355. });
  356. $('#ov').show();
  357. $('#otable').dataTable({
  358. "bJQueryUI": true,
  359. "sPaginationType": "full_numbers",
  360. "bProcessing": true,
  361. "iDisplayLength": 10,
  362. "oLanguage": {
  363. "sInfo": "Showing _START_ to _END_ of _TOTAL_ houses.",
  364. "sLengthMenu": 'Display <select>{/literal}{$menuoptions.o}{literal}</select> houses'
  365. },
  366. "aoColumns": [
  367. {"bSortable": true},
  368. {"bSortable": true},
  369. {"bSortable": true},
  370. {"bSortable": true, "sType": "uk_date"},
  371. {"bSortable": true, "sType": "currency"},
  372. {"bSortable": true, "sType": "currency"},
  373. {"bSortable": true, "sType": "currency"},
  374. {"bSortable": true, "sType": "currency"},
  375. {"bSortable": true, "sType": "currency"},
  376. {"bSortable": true, "sType": "currency"},
  377. {"bSortable": true, "sType": "currency"},
  378. {"bSortable": true, "sType": "currency"},
  379. {"bSortable": true, "sType": "currency"},
  380. {"bSortable": true, "sType": "currency"},
  381. {"bSortable": true, "sType": "currency"},
  382. {"bSortable": true, "sType": "currency"},
  383. {"bSortable": true, "sType": "currency"},
  384. {"bSortable": true, "sType": "currency"},
  385. {"bSortable": true, "sType": "currency"},
  386. {"bSortable": true, "sType": "currency"},
  387. {"bSortable": true, "sType": "currency"},
  388. {"bSortable": true, "sType": "currency"},
  389. {"bSortable": true, "sType": "currency"},
  390. {"bSortable": true, "sType": "currency"}
  391. ],
  392. "sDom": 'T<"clear"><"H"lfr>t<"F"ip>',
  393. "oTableTools": {
  394. "sSwfPath": "/app/js/lib/jquery/dataTables-1.7/media/swf/copy_cvs_xls_pdf.swf"
  395. }
  396. });
  397. $('#otable').show();
  398. $('#ttable').dataTable({
  399. "bJQueryUI": true,
  400. "sPaginationType": "full_numbers",
  401. "bProcessing": true,
  402. "iDisplayLength": 10,
  403. "oLanguage": {
  404. "sInfo": "Showing _START_ to _END_ of _TOTAL_ houses.",
  405. "sLengthMenu": 'Display <select>{/literal}{$menuoptions.t}{literal}</select> houses'
  406. },
  407. "aoColumns": [
  408. {"bSortable": true},
  409. {"bSortable": true},
  410. {"bSortable": true},
  411. {"bSortable": true, "sType": "uk_date"},
  412. {"bSortable": true, "sType": "currency"},
  413. {"bSortable": true, "sType": "currency"},
  414. {"bSortable": true, "sType": "currency"},
  415. {"bSortable": true, "sType": "currency"},
  416. {"bSortable": true, "sType": "currency"},
  417. {"bSortable": true, "sType": "currency"},
  418. {"bSortable": true, "sType": "currency"},
  419. {"bSortable": true, "sType": "currency"},
  420. {"bSortable": true, "sType": "currency"},
  421. {"bSortable": true, "sType": "currency"},
  422. {"bSortable": true, "sType": "currency"},
  423. {"bSortable": true, "sType": "currency"},
  424. {"bSortable": true, "sType": "currency"},
  425. {"bSortable": true, "sType": "currency"},
  426. {"bSortable": true, "sType": "currency"},
  427. {"bSortable": true, "sType": "currency"},
  428. {"bSortable": true, "sType": "currency"},
  429. {"bSortable": true, "sType": "currency"},
  430. {"bSortable": true, "sType": "currency"},
  431. {"bSortable": true, "sType": "currency"}
  432. ],
  433. "sDom": 'T<"clear"><"H"lfr>t<"F"ip>',
  434. "oTableTools": {
  435. "sSwfPath": "/app/js/lib/jquery/dataTables-1.7/media/swf/copy_cvs_xls_pdf.swf"
  436. }
  437. });
  438. $('#ttable').show();
  439.  
  440. });
  441.  
  442. } ) ( jQuery );
  443.  
  444. </script>
  445. {/literal}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement