/reports/ebpls_buslist_mainbusact.php
PHP | 126 lines | 93 code | 24 blank | 9 comment | 1 complexity | bb850c38360d1f30c01716cc23863204 MD5 | raw file
- <?php
- require_once("lib/ebpls.lib.php");
- require_once("lib/ebpls.utils.php");
- require_once("ebpls-php-lib/utils/ebpls.search.funcs.php");
- //require_once("includes/eBPLS_header.php");
-
- //--- get connection from DB
- $dbLink = get_db_connection();
- ?>
-
- <?php
- echo date("F dS Y h:i:s A");
- ?>
-
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <meta http-equiv="Content-Type"
- content="text/html; charset=iso-8859-1">
- <title>MASTERLIST OF BUSINESS ESTABLISHMENT BY MAIN BUSINESS ACTIVITY</title>
- <meta name="Author" content=" Pagoda, Ltd. ">
- <link href="includes/eBPLS.css" rel="stylesheet" type="text/css">
- <script language="JavaScript" src="includes/eBPLS.js"></script>
- </head>
- <body>
-
- <?php
-
- $result=mysql_query("select lgumunicipality, lguprovince, lguoffice from ebpls_buss_preference") or die(mysql_error());
- $resulta=mysql_fetch_row($result);
-
- ?>
-
- <h4 align="center"> Republic of the Philippines </h4>
- <h4 align="center"> <?php echo $resulta[1]; ?> </h4>
- <h4 align="center"> <?php echo $resulta[0]; ?> </h4>
- <h4 align="center"> <?php echo $resulta[2]; ?> </h4>
- <h4 align="center"> MASTERLIST OF BUSINESS ESTABLISHMENT BY MAIN BUSINESS ACTIVITY </h4>
-
- <hr>
-
- <table border="0" cellpadding="1" cellspacing="1" width="1100">
- <tbody>
- <tr>
- <td>
- <table border="1" cellpadding="1" cellspacing="1" width="1000">
- <tbody>
- <tr>
- <td align="center" width="100"><b> Permit No. </b></td>
- <td align="center" width="100"><b> Name of Owner </b></td>
- <td align="center" width="100"><b> Business Name </b></td>
- <td align="center" width="100"><b> Type of Ownership </b></td>
- <td align="center" width="100"><b> Business Address </b></td>
- <td align="center" width="100"><b> Capital Investment </b></td>
- <td align="center" width="100"><b> Gross Sales </b></td>
- <td align="center" width="100"><b> Amount Paid </b></td>
- <td align="center" width="100"><b> O.R. No. </b></td>
- <td align="center" width="100"><b> Date of Payment </b></td>
- <td align="center" width="100"><b> Remarks </b></td>
- </tr>
-
- <?php
-
- // unang gawang tama
- $result=mysql_query("select ' ', ' ', business_name, ' ', business_street, '0.00', '0.00', '0.00', ' ', ' ', ' '
- from ebpls_business_enterprise") or die(mysql_error());
- while ($resulta=mysql_fetch_row($result)){
-
- /* sample/test ko lng
- $result=mysql_query("select a.owner_id, a.business_name, a.business_city_code, a.business_type_code,
- a.business_street, a.business_capital_investment, a.business_last_yrs_dec_gross_sales, b.fee_amount,
- b.input_date from ebpls_business_enterprise a, ebpls_fees_paid b where a.owner_id = b.owner_id and
- a.business_create_ts = '2004-12-28'") or die(mysql_error());
- while ($resulta=mysql_fetch_row($result)){ */
-
- print "<tr>\n";
- foreach ($resulta as $field )
- print "<td> $field </td>\n";
- print "</tr>";
- }
- ?>
-
- </tr>
- </tbody>
- </table>
-
- <br>
- <br>
- <br>
- <br>
-
- <?php
-
- $result=mysql_query("select gs_name, gs_pos, gs_office from global_sign where sign_id =1") or die(mysql_error());
- $resulta=mysql_fetch_row($result);
-
- ?>
-
- <table style="width: 1000px" border="0" cellpadding="1" cellspacing="1">
- <tbody>
- <tr>
- <td align="left", width="500"><b> Approved By: <br> <br> <br> <br> <br> </b></td>
- <td align="left", width="500"><b> Noted By: <br> <br> <br> <br> <br> </b></td>
- </tr>
- <tr>
- <td align="center"><u><b> <?php echo $resulta[0]; ?> </u> </b> </td>
- <td align="center"> <u><b> <?php echo $resulta[3]; ?> </u> </b> </td>
- </tr>
- <tr>
- <td align="center"> <?php echo $resulta[2]; ?> <br> <br> <br> <br> <br> <br> <br> <br> </td>
- <td align="center"> <?php echo $resulta[7]; ?> <br> <br> <br> <br> <br> <br> <br> <br> </td>
- </tr>
- <tr>
- <td align="left"> Date printed: <?php echo date("F d Y"); ?> </td>
- </tbody>
- </table>
-
- <?php
-
- require_once("includes/eBPLS_footer.php");
-
- ?>
-
- </body>
- </html>
-