123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- </div>
- </div>
- </div>
- <script>
- function subscribe(){
- $.post("{url 'utility/subscribe'}", function(){
- setTimeout(subscribe, 5000);
- });
- }
- function sync() {
- $.post("{url 'utility/sync'}", function(){
- setTimeout(sync, 60000);
- });
- }
- $(function(){
- subscribe();
- sync();
- });
-
- {if $_W['uid']}
- function checknotice() {
- $.post("{php echo url('utility/notice')}", {}, function(data){
- var data = $.parseJSON(data);
- $('#notice-container').html(data.notices);
- $('#notice-total').html(data.total);
- if(data.total > 0) {
- $('#notice-total').css('background', '#ff9900');
- } else {
- $('#notice-total').css('background', '');
- }
- setTimeout(checknotice, 60000);
- });
- }
- checknotice();
- {/if}
- {if defined('IN_MODULE')}
- $.getJSON("{url 'utility/checkupgrade/module' array('m' => IN_MODULE)}", function(result) {
- if (result.message.errno == -10) {
- $('body').prepend('<div id="upgrade-tips-module" class="upgrade-tips"><a href="http://wpa.b.qq.com/cgi/wpa.php?ln=1&key=XzkzODAwMzEzOV8xNzEwOTZfNDAwMDgyODUwMl8yXw" target="_blank">' + result.message.message + '</a></div>');
- if ($('#upgrade-tips').size()) {
- $('#upgrade-tips-module').css('top', '25px');
- }
- }
- });
- {/if}
- </script>
-
- {template 'public/footer-base'}
|