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
| 3C 3F 70 68 70 0A 2F 2F 2D 2D 43 6C 61 73 73 20 41 64 76 69 73 65 4E 65 77 73 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 64 76 69 73 65 4E 65 77 73 2E 70 68 70 22 3B 0A 0A 63 6C 61 73 73 20 41 64 76 69 73 65 4E 65 77 73 20 65 78 74 65 6E 64 73 20 62 61 73 65 5F 41 64 76 69 73 65 4E 65 77 73 7B 0A 0A 2F 2F 2D 2D 20 55 73 65 20 6F 6E 20 70 61 67 65 20 73 68 6F 77 41 64 76 69 73 65 4E 65 77 73 2E 70 68 70 20 61 6E 64 20 65 64 69 74 41 64 76 69 73 65 4E 65 77 73 2E 70 68 70 20 2D 2D 0A 66 75 6E 63 74 69 6F 6E 20 52 53 41 64 76 69 73 65 4E 65 77 73 4C 69 6D 69 74 28 24 64 64 2C 20 24 73 74 61 72 74 2C 20 24 70 61 67 65 53 69 7A 65 29 7B 0A 09 24 74 68 69 73 2D 3E 53 65 74 51 75 65 72 79 28 22 73 65 6C 65 63 74 20 2A 20 66 72 6F 6D 20 41 64 76 69 73 65 4E 65 77 73 20 77 68 65 72 65 20 73 74 61 72 74 44 61 74 65 3C 3D 27 24 64 64 27 20 61 6E 64 20 65 6E 64 44 61 74 65 3E 3D 27 24 64 64 27 20 6F 72 64 65 72 20 62 79 20 73 74 61 72 74 44 61 74 65 20 44 45 53 43 20 6C 69 6D 69 74 20 24 73 74 61 72 74 2C 20 24 70 61 67 65 53 69 7A 65 22 29 3B 0A 7D 0A 0A 66 75 6E 63 74 69 6F 6E 20 52 53 41 64 76 69 73 65 4E 65 77 73 42 79 43 6F 75 6E 74 44 61 74 65 28 24 64 64 29 7B 0A 09 24 74 68 69 73 2D 3E 53 65 74 51 75 65 72 79 28 22 73 65 6C 65 63 74 20 63 6F 75 6E 74 28 61 64 76 69 73 65 4E 65 77 73 49 64 29 20 61 73 20 6E 75 6D 20 66 72 6F 6D 20 41 64 76 69 73 65 4E 65 77 73 20 77 68 65 72 65 20 73 74 61 72 74 44 61 74 65 3C 3D 27 24 64 64 27 20 61 6E 64 20 65 6E 64 44 61 74 65 3E 3D 27 24 64 64 27 20 6F 72 64 65 72 20 62 79 20 61 64 76 69 73 65 4E 65 77 73 49 64 22 29 3B 0A 09 24 72 65 73 75 6C 74 3D 24 74 68 69 73 2D 3E 47 65 74 52 65 73 75 6C 74 28 29 3B 0A 09 72 65 74 75 72 6E 20 24 72 65 73 75 6C 74 5B 27 6E 75 6D 27 5D 3B 0A 7D 0A 2F 2F 2D 2D 20 54 68 65 20 65 6E 64 20 2D 2D 0A 0A 7D 20 2F 2F 2D 2D 45 6E 64 20 63 6C 61 73 73 20 41 64 76 69 73 65 4E 65 77 73 2D 2D 0A 3F 3E 0A | <?php //--Class AdviseNe ws---------------------- ---- include_once "clsb ase_AdviseNews.php"; cl ass AdviseNews extends b ase_AdviseNews{ //-- Us e on page showAdviseNews .php and editAdviseNews. php -- function RSAdvise NewsLimit($dd, $start, $ pageSize){ $this->SetQu ery("select * from Advis eNews where startDate<=' $dd' and endDate>='$dd' order by startDate DESC limit $start, $pageSize" ); } function RSAdviseN ewsByCountDate($dd){ $t his->SetQuery("select co unt(adviseNewsId) as num from AdviseNews where s tartDate<='$dd' and endD ate>='$dd' order by advi seNewsId"); $result=$th is->GetResult(); return $result['num']; } //-- The end -- } //--End cl ass AdviseNews-- ?> |