PageRenderTime 31ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/reports/ebpls_buslist_mainbusact.php

http://ebpls.googlecode.com/
PHP | 126 lines | 93 code | 24 blank | 9 comment | 1 complexity | bb850c38360d1f30c01716cc23863204 MD5 | raw file
  1. <?php
  2. require_once("lib/ebpls.lib.php");
  3. require_once("lib/ebpls.utils.php");
  4. require_once("ebpls-php-lib/utils/ebpls.search.funcs.php");
  5. //require_once("includes/eBPLS_header.php");
  6. //--- get connection from DB
  7. $dbLink = get_db_connection();
  8. ?>
  9. <?php
  10. echo date("F dS Y h:i:s A");
  11. ?>
  12. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  13. <html>
  14. <head>
  15. <meta http-equiv="Content-Type"
  16. content="text/html; charset=iso-8859-1">
  17. <title>MASTERLIST OF BUSINESS ESTABLISHMENT BY MAIN BUSINESS ACTIVITY</title>
  18. <meta name="Author" content=" Pagoda, Ltd. ">
  19. <link href="includes/eBPLS.css" rel="stylesheet" type="text/css">
  20. <script language="JavaScript" src="includes/eBPLS.js"></script>
  21. </head>
  22. <body>
  23. <?php
  24. $result=mysql_query("select lgumunicipality, lguprovince, lguoffice from ebpls_buss_preference") or die(mysql_error());
  25. $resulta=mysql_fetch_row($result);
  26. ?>
  27. <h4 align="center"> Republic of the Philippines </h4>
  28. <h4 align="center"> <?php echo $resulta[1]; ?> </h4>
  29. <h4 align="center"> <?php echo $resulta[0]; ?> </h4>
  30. <h4 align="center"> <?php echo $resulta[2]; ?> </h4>
  31. <h4 align="center"> MASTERLIST OF BUSINESS ESTABLISHMENT BY MAIN BUSINESS ACTIVITY </h4>
  32. <hr>
  33. <table border="0" cellpadding="1" cellspacing="1" width="1100">
  34. <tbody>
  35. <tr>
  36. <td>
  37. <table border="1" cellpadding="1" cellspacing="1" width="1000">
  38. <tbody>
  39. <tr>
  40. <td align="center" width="100"><b> Permit No. </b></td>
  41. <td align="center" width="100"><b> Name of Owner </b></td>
  42. <td align="center" width="100"><b> Business Name </b></td>
  43. <td align="center" width="100"><b> Type of Ownership </b></td>
  44. <td align="center" width="100"><b> Business Address </b></td>
  45. <td align="center" width="100"><b> Capital Investment </b></td>
  46. <td align="center" width="100"><b> Gross Sales </b></td>
  47. <td align="center" width="100"><b> Amount Paid </b></td>
  48. <td align="center" width="100"><b> O.R. No. </b></td>
  49. <td align="center" width="100"><b> Date of Payment </b></td>
  50. <td align="center" width="100"><b> Remarks </b></td>
  51. </tr>
  52. <?php
  53. // unang gawang tama
  54. $result=mysql_query("select ' ', ' ', business_name, ' ', business_street, '0.00', '0.00', '0.00', ' ', ' ', ' '
  55. from ebpls_business_enterprise") or die(mysql_error());
  56. while ($resulta=mysql_fetch_row($result)){
  57. /* sample/test ko lng
  58. $result=mysql_query("select a.owner_id, a.business_name, a.business_city_code, a.business_type_code,
  59. a.business_street, a.business_capital_investment, a.business_last_yrs_dec_gross_sales, b.fee_amount,
  60. b.input_date from ebpls_business_enterprise a, ebpls_fees_paid b where a.owner_id = b.owner_id and
  61. a.business_create_ts = '2004-12-28'") or die(mysql_error());
  62. while ($resulta=mysql_fetch_row($result)){ */
  63. print "<tr>\n";
  64. foreach ($resulta as $field )
  65. print "<td>&nbsp;$field&nbsp</td>\n";
  66. print "</tr>";
  67. }
  68. ?>
  69. </tr>
  70. </tbody>
  71. </table>
  72. <br>
  73. <br>
  74. <br>
  75. <br>
  76. <?php
  77. $result=mysql_query("select gs_name, gs_pos, gs_office from global_sign where sign_id =1") or die(mysql_error());
  78. $resulta=mysql_fetch_row($result);
  79. ?>
  80. <table style="width: 1000px" border="0" cellpadding="1" cellspacing="1">
  81. <tbody>
  82. <tr>
  83. <td align="left", width="500"><b> Approved By: <br> <br> <br> <br> <br> </b></td>
  84. <td align="left", width="500"><b> Noted By: <br> <br> <br> <br> <br> </b></td>
  85. </tr>
  86. <tr>
  87. <td align="center"><u><b> <?php echo $resulta[0]; ?> </u> </b> </td>
  88. <td align="center"> <u><b> <?php echo $resulta[3]; ?> </u> </b> </td>
  89. </tr>
  90. <tr>
  91. <td align="center"> <?php echo $resulta[2]; ?> <br> <br> <br> <br> <br> <br> <br> <br> </td>
  92. <td align="center"> <?php echo $resulta[7]; ?> <br> <br> <br> <br> <br> <br> <br> <br> </td>
  93. </tr>
  94. <tr>
  95. <td align="left"> Date printed: &nbsp; &nbsp; <?php echo date("F d Y"); ?> </td>
  96. </tbody>
  97. </table>
  98. <?php
  99. require_once("includes/eBPLS_footer.php");
  100. ?>
  101. </body>
  102. </html>