diff --git a/web/templates/default/site.html b/web/templates/default/site.html index 29e0628c9..031932057 100755 --- a/web/templates/default/site.html +++ b/web/templates/default/site.html @@ -33,15 +33,15 @@
| - | 域名 | +域名 | 网站状态 | 备份 | 网站目录 | - 到期日期 + 到期日期 | 备注 | 操作 | @@ -75,5 +75,34 @@ setTimeout(function(){ getWeb(1); },500); + + +function initPage(){ + var order = getCookie('order'); + if (order != ''){ + var sort = order.split(' '); + if (sort[0] == 'name'){ + if (sort[1] == 'desc'){ + $($('#webBodyHeader .glyphicon-stop')[0]).removeClass('glyphicon-stop').addClass('glyphicon-triangle-top'); + } else if (sort[1] == 'asc'){ + $($('#webBodyHeader .glyphicon-stop')[0]).removeClass('glyphicon-stop').addClass('glyphicon-triangle-bottom'); + } + } + + if (sort[0] == 'edate'){ + if (sort[1] == 'desc'){ + $($('#webBodyHeader .glyphicon-stop')[1]).removeClass('glyphicon-stop').addClass('glyphicon-triangle-top'); + } else if (sort[1] == 'asc'){ + $($('#webBodyHeader .glyphicon-stop')[1]).removeClass('glyphicon-stop').addClass('glyphicon-triangle-bottom'); + } + } + } + +} + +initPage(); + + + {% endblock %} \ No newline at end of file
|---|