00000000 00000018 00000030 00000048 00000060 00000078 00000090 000000A8 000000C0 000000D8 000000F0 00000108 00000120 00000138 00000150 00000168 00000180 00000198 000001B0 000001C8 000001E0 000001F8 00000210 00000228 00000240 00000258 00000270 00000288 000002A0 000002B8 000002D0 000002E8
| 3C 3F 70 68 70 0A 2F 2F 2D 2D 43 6C 61 73 73 20 41 6D 70 68 75 72 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 2D 0A 0A 69 6E 63 6C 75 64 65 5F 6F 6E 63 65 20 22 63 6C 73 62 61 73 65 5F 41 6D 70 68 75 72 4D 49 53 2E 70 68 70 22 3B 0A 0A 63 6C 61 73 73 20 41 6D 70 68 75 72 20 65 78 74 65 6E 64 73 20 62 61 73 65 5F 41 6D 70 68 75 72 7B 0A 0A 66 75 6E 63 74 69 6F 6E 20 52 53 41 6D 70 68 75 72 42 79 50 76 4E 61 6D 65 41 6E 64 41 70 4E 61 6D 65 28 24 70 76 4E 61 6D 65 2C 20 24 61 70 4E 61 6D 65 29 7B 0A 09 24 73 71 6C 20 3D 20 22 73 65 6C 65 63 74 20 2A 20 66 72 6F 6D 20 70 72 6F 76 69 6E 63 65 20 70 2C 20 61 6D 70 68 75 72 20 61 20 0A 09 09 09 77 68 65 72 65 20 70 2E 70 72 6F 76 69 6E 63 65 4E 61 6D 65 20 6C 69 6B 65 20 27 25 24 70 76 4E 61 6D 65 25 27 20 61 6E 64 20 70 2E 70 72 6F 76 69 6E 63 65 49 64 3D 61 2E 70 72 6F 76 69 6E 63 65 49 64 20 0A 09 09 09 61 6E 64 20 61 2E 61 6D 70 68 75 72 4E 61 6D 65 20 6C 69 6B 65 20 27 25 24 61 70 4E 61 6D 65 25 27 20 6F 72 64 65 72 20 62 79 20 70 2E 70 72 6F 76 69 6E 63 65 4E 61 6D 65 2C 20 61 2E 61 6D 70 68 75 72 4E 61 6D 65 22 3B 0A 09 24 74 68 69 73 2D 3E 53 65 74 51 75 65 72 79 28 24 73 71 6C 29 3B 0A 7D 0A 0A 66 75 6E 63 74 69 6F 6E 20 52 53 41 6D 70 68 75 72 42 79 50 76 4E 61 6D 65 41 6E 64 41 70 4E 61 6D 65 4C 69 6D 69 74 28 24 70 76 4E 61 6D 65 2C 20 24 61 70 4E 61 6D 65 2C 20 24 73 74 61 72 74 2C 20 24 70 61 67 65 53 69 7A 65 29 7B 0A 09 24 73 71 6C 20 3D 20 22 73 65 6C 65 63 74 20 2A 20 66 72 6F 6D 20 70 72 6F 76 69 6E 63 65 20 70 2C 20 61 6D 70 68 75 72 20 61 20 0A 09 09 09 77 68 65 72 65 20 70 2E 70 72 6F 76 69 6E 63 65 4E 61 6D 65 20 6C 69 6B 65 20 27 25 24 70 76 4E 61 6D 65 25 27 20 61 6E 64 20 70 2E 70 72 6F 76 69 6E 63 65 49 64 3D 61 2E 70 72 6F 76 69 6E 63 65 49 64 20 0A 09 09 09 61 6E 64 20 61 2E 61 6D 70 68 75 72 4E 61 6D 65 20 6C 69 6B 65 20 27 25 24 61 70 4E 61 6D 65 25 27 20 6F 72 64 65 72 20 62 79 20 70 2E 70 72 6F 76 69 6E 63 65 4E 61 6D 65 2C 20 61 2E 61 6D 70 68 75 72 4E 61 6D 65 20 0A 09 09 09 6C 69 6D 69 74 20 24 73 74 61 72 74 2C 20 24 70 61 67 65 53 69 7A 65 22 3B 0A 09 24 74 68 69 73 2D 3E 53 65 74 51 75 65 72 79 28 24 73 71 6C 29 3B 0A 7D 0A 0A 7D 20 2F 2F 2D 2D 45 6E 64 20 63 6C 61 73 73 20 41 6D 70 68 75 72 2D 2D 0A 3F 3E | <?php //--Class Amphur-- ------------------------ include_once "clsbase_ AmphurMIS.php"; class A mphur extends base_Amphu r{ function RSAmphurByP vNameAndApName($pvName, $apName){ $sql = "selec t * from province p, amp hur a where p.provin ceName like '%$pvName%' and p.provinceId=a.provi nceId and a.amphurNa me like '%$apName%' orde r by p.provinceName, a.a mphurName"; $this->SetQ uery($sql); } function RSAmphurByPvNameAndApNam eLimit($pvName, $apName, $start, $pageSize){ $s ql = "select * from prov ince p, amphur a whe re p.provinceName like ' %$pvName%' and p.provinc eId=a.provinceId and a.amphurName like '%$ap Name%' order by p.provin ceName, a.amphurName limit $start, $pageSize "; $this->SetQuery($sql ); } } //--End class Am phur-- ?> |