/admin/print/inform_bm_admin.php

https://github.com/fadlisaad/E-Latihan-Admin · PHP · 190 lines · 178 code · 10 blank · 2 comment · 22 complexity · 8efbbaacf9896338a2cfe323b1b9c57f MD5 · raw file

  1. <?php require_once('../Connections/ebantahan.php'); ?>
  2. <?php
  3. if (!function_exists("GetSQLValueString")) {
  4. function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  5. {
  6. $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  7. $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  8. switch ($theType) {
  9. case "text":
  10. $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
  11. break;
  12. case "long":
  13. case "int":
  14. $theValue = ($theValue != "") ? intval($theValue) : "NULL";
  15. break;
  16. case "double":
  17. $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
  18. break;
  19. case "date":
  20. $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
  21. break;
  22. case "defined":
  23. $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
  24. break;
  25. }
  26. return $theValue;
  27. }
  28. }
  29. if (!function_exists("GetSQLValueString")) {
  30. function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  31. {
  32. $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  33. $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  34. switch ($theType) {
  35. case "text":
  36. $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
  37. break;
  38. case "long":
  39. case "int":
  40. $theValue = ($theValue != "") ? intval($theValue) : "NULL";
  41. break;
  42. case "double":
  43. $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
  44. break;
  45. case "date":
  46. $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
  47. break;
  48. case "defined":
  49. $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
  50. break;
  51. }
  52. return $theValue;
  53. }
  54. }
  55. $First_Name = $_POST['First_Name2'];
  56. $agency = $_POST['agency2'];
  57. $type = $_POST['type2'];
  58. $Address = $_POST['Address2'];
  59. $address2 = $_POST['address'];
  60. $city = $_POST['city2'];
  61. $state = $_POST['state2'];
  62. $postal_code = $_POST['postal_code2'];
  63. $country = $_POST['country2'];
  64. $ic = $_POST['ic2'];
  65. $Phone_No = $_POST['Phone_No2'];
  66. $fax = $_POST['fax2'];
  67. $email = $_POST['email2'];
  68. $propose_object = $_POST['propose_object2'];
  69. $cp_page = $_POST['cp_page2'];
  70. $cp_paragraph = $_POST['cp_paragraph2'];
  71. $cp_table = $_POST['cp_table2'];
  72. $cp_figure = $_POST['cp_figure2'];
  73. //$cp_plan = $_POST['cp_plan'];
  74. $propose_object_desc = $_POST['propose_object_desc2'];
  75. $suggestion_desc = $_POST['suggestion_desc2'];
  76. //$upload = $_POST['upload'];
  77. $hearing_session = $_POST['hearing_session2'];
  78. $form_type = $_POST['form_type2'];
  79. $date = $_POST['date2'];
  80. $time = $_POST['time2'];
  81. $add_form = $_POST['add_form2'];
  82. ?>
  83. <?php
  84. if (!function_exists("GetSQLValueString")) {
  85. function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
  86. {
  87. $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
  88. $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
  89. switch ($theType) {
  90. case "text":
  91. $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
  92. break;
  93. case "long":
  94. case "int":
  95. $theValue = ($theValue != "") ? intval($theValue) : "NULL";
  96. break;
  97. case "double":
  98. $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
  99. break;
  100. case "date":
  101. $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
  102. break;
  103. case "defined":
  104. $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
  105. break;
  106. }
  107. return $theValue;
  108. }
  109. }
  110. $colname_public_form = "-1";
  111. if (isset($_GET['id'])) {
  112. $colname_public_form = $_GET['id'];
  113. }
  114. mysql_select_db($database_ebantahan, $ebantahan);
  115. $query_public_form = sprintf("SELECT * FROM public_form WHERE id = %s", GetSQLValueString($colname_public_form, "int"));
  116. $public_form = mysql_query($query_public_form, $ebantahan) or die(mysql_error());
  117. $row_public_form = mysql_fetch_assoc($public_form);
  118. $totalRows_public_form = mysql_num_rows($public_form);
  119. ?>
  120. <img src="top_bm.jpg" width="93" height="65">
  121. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  122. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  123. No Pandangan: PTKL2020/DRAFT/<?php echo $row_public_form['id']; ?><br />
  124. <br /><br /><br />
  125. Kepada:
  126. <br /><br /><br />
  127. <table width="90%" border="0">
  128. <tr>
  129. <td>&nbsp;</td>
  130. <td><?php echo $row_public_form['first_name']; ?> <?php echo $row_public_form['last_name']; ?></td>
  131. </tr>
  132. <tr>
  133. <td>&nbsp;</td>
  134. <td>&nbsp;<?php echo $row_public_form['address1']; ?> <?php echo $row_public_form['address2']; ?></td>
  135. </tr>
  136. <tr>
  137. <td>&nbsp;</td>
  138. <td>&nbsp;<?php echo $row_public_form['postal_code']; ?> <?php echo $row_public_form['city']; ?></td>
  139. </tr>
  140. <tr>
  141. <td>&nbsp;</td>
  142. <td>&nbsp;<?php echo $row_public_form['state']; ?></td>
  143. </tr>
  144. <tr>
  145. <td>&nbsp;</td>
  146. <td>&nbsp;<?php echo $row_public_form['country']; ?></td>
  147. </tr>
  148. </table>
  149. <br />
  150. <br />
  151. <br />
  152. <br />
  153. <br />
  154. <br />
  155. <br />
  156. <br />
  157. <br />
  158. <br />
  159. <br />
  160. <br />
  161. <br />
  162. <br />
  163. <br />
  164. <!-- new page -->
  165. <br /><br /><br /><br /><br /><br /><br /><br />
  166. <img src="top_bm.jpg" width="93" height="65">
  167. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  168. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  169. No Pandangan: PTKL2020/DRAFT/<?php echo $row_public_form['id']; ?>
  170. <br />Tarikh diterima: <?php echo $row_public_form['date']; ?><br /><br />
  171. Dimaklumkan bahawa Jabatan ini telah menerima Borang Pandangan Awam anda mengenai Draf Pelan Bandar Raya Kuala Lumpur 2020 dan sedang mengambil tindakan. Jabatan ini mengucapkan ribuan terima kasih di atas pandangan yang telah dikemukakan.
  172. <br /><br />Sekiranya anda memilih untuk hadir bagi menjelaskan pandangan di sesi pendengaran, anda akan dimaklumkan kemudian mengenai tarikh, masa dan tempat sesi pendengaran. Anda juga boleh menyemaknya di laman web <b>klcityplan2020.dbkl.gov.my/eopinion</b> dengan menggunakan nombor pandangan di atas sebagai rujukan.
  173. <br /><br />Sekian
  174. <br /><br />Pengarah
  175. <br />Jabatan Pelan Induk
  176. <br />Dewan Bandaraya Kuala Lumpur
  177. <br />b.p. Datuk Bandar Kuala Lumpur
  178. <?php
  179. mysql_free_result($public_form);
  180. ?>