//訊息清單 ;(function getListInfo () { $(function () { $.ajax ({ url: $.sewii.addQueryToUrl ('getListInfo=1'), dataType: 'json', cache: false, success: function (data) { if (data.pagerInfo) { var pagerInfo = $.php.json_decode (data.pagerInfo); $('#pagerByInfo').pagerProject ( pagerInfo.countRows, pagerInfo.rowsPerPage, $.sewii.queryString('pageInfo'), 'pageInfo' ); } if (data.rows) { var tableRows = ''; $.each (data.rows, function (index, row) { tableRows += ''; tableRows += '' + row['info_subject'] + ''; tableRows += '' + row['info_cdate'] + ''; tableRows += ''; tableRows += ''; }); $('#listInfo tbody').html (tableRows); } } }); }); })(); //========================= ;(function getListInfoTop () { $(function () { $.ajax ({ url: $.sewii.addQueryToUrl ('getListInfoTop=1'), dataType: 'json', cache: false, success: function (data) { if (data.pagerInfo) { var pagerInfo = $.php.json_decode (data.pagerInfo); $('#pagerByInfo').pagerProject ( pagerInfo.countRows, pagerInfo.rowsPerPage, $.sewii.queryString('pageInfo'), 'pageInfo' ); } if (data.rows) { var tableRows = ''; $.each (data.rows, function (index, row) { tableRows += ''; tableRows += '' + row['info_subject'] + ''; tableRows += '' + row['info_cdate'] + ''; tableRows += ''; tableRows += ''; }); $('#listInfo tbody').html (tableRows); } } }); }); })(); //========================= //新聞清單 ;(function getListInfo () { $(function () { $.ajax ({ url: $.sewii.addQueryToUrl ('getNewsInfo=1'), dataType: 'json', cache: false, success: function (data) { if (data.pagerInfo) { var pagerInfo = $.php.json_decode (data.pagerInfo); $('#pagerByNews').pagerProject ( pagerInfo.countRows, pagerInfo.rowsPerPage, $.sewii.queryString('pageNews'), 'pageNews' ); } if (data.rows) { var tableRows = ''; $.each (data.rows, function (index, row) { tableRows += ''; tableRows += '' + row['news_subject'] + ''; tableRows += '' + row['news_cdate'] + ''; tableRows += ''; tableRows += ''; }); $('#listNews tbody').html (tableRows); } } }); }); })();