Merge pull request #122 from BNoiZe/master

Removed dataTables
This commit is contained in:
Michael Kaufmann 2013-10-11 09:27:09 -07:00
commit 0b0126ed68
22 changed files with 74 additions and 24368 deletions

View File

@ -22,18 +22,18 @@ $header
</div>
</if>
<table class="bradius" id="sortable" sort-column="1">
<table class="bradius">
<thead>
<tr>
<th>
{$lng['customer']['name']}
{$lng['customer']['name']}&nbsp;{$arrowcode['name']}
</th>
<th>
{$lng['login']['username']}
{$lng['login']['username']}&nbsp;{$arrowcode['loginname']}
</th>
<th>{$lng['admin']['customers']}</th>
<th class="nosort">&nbsp;</th>
<th class="nosort">{$lng['panel']['options']}</th>
<th>&nbsp;</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>

View File

@ -22,22 +22,22 @@ $header
{$searchcode}
</div>
<table class="bradius" id="sortable" sort-column="1">
<table class="bradius">
<thead>
<tr>
<th>
{$lng['customer']['name']},
{$lng['customer']['firstname']}
{$lng['customer']['firstname']}&nbsp;{$arrowcode['c.name']}
</th>
<th>
{$lng['login']['username']}
{$lng['login']['username']}&nbsp;{$arrowcode['c.loginname']}
</th>
<th>
{$lng['admin']['admin']}
{$lng['admin']['admin']}&nbsp;{$arrowcode['a.loginname']}
</th>
<th>{$lng['admin']['lastlogin_succ']}</th>
<th class="nosort"></th>
<th class="nosort">{$lng['panel']['options']}</th>
<th></th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>

View File

@ -22,13 +22,13 @@
</div>
</if>
<table class="bradius" id="sortable">
<table class="bradius">
<thead>
<tr>
<th>{$lng['domains']['domainname']}</th>
<th>{$lng['domains']['domainname']}&nbsp;{$arrowcode['d.domain']}</th>
<th>{$lng['admin']['ipsandports']['ip']}</th>
<th>{$lng['admin']['customer']}</th>
<th class="nosort">{$lng['panel']['options']}</th>
<th>{$lng['admin']['customer']}&nbsp;{$arrowcode['c.loginname']}</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>

View File

@ -22,18 +22,18 @@ $header
</div>
</if>
<table class="bradius" id="sortable">
<table class="bradius">
<thead>
<tr>
<th>{$lng['admin']['ipsandports']['ip']}</th>
<th>{$lng['admin']['ipsandports']['port']}</th>
<th>{$lng['admin']['ipsandports']['ip']}&nbsp;{$arrowcode['ip']}</th>
<th>{$lng['admin']['ipsandports']['port']}&nbsp;{$arrowcode['port']}</th>
<th>Listen</th>
<th>NameVirtualHost</th>
<th>vHost-Container</th>
<th>Specialsettings</th>
<th>ServerName</th>
<th>SSL</th>
<th class="nosort">{$lng['panel']['options']}</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>

View File

@ -22,12 +22,12 @@ $header
</div>
</if>
<table class="bradius" id="sortable" sort-direction="desc">
<table class="bradius">
<thead>
<tr>
<th>{$lng['logger']['date']}</th>
<th>{$lng['logger']['type']}</th>
<th>{$lng['logger']['user']}</th>
<th>{$lng['logger']['date']}&nbsp;{$arrowcode['date']}</th>
<th>{$lng['logger']['type']}&nbsp;{$arrowcode['type']}</th>
<th>{$lng['logger']['user']}&nbsp;{$arrowcode['user']}</th>
<th style="width: 60%;">{$lng['logger']['action']}</th>
</tr>
</thead>

View File

@ -1,3 +1,3 @@
<!--<tr>
<tr>
<td colspan="4"><strong>{$row['action']}</strong></td>
</tr>-->
</tr>

View File

@ -8,12 +8,12 @@ $header
</header>
<section>
<table class="bradius" id="sortable">
<table class="bradius">
<thead>
<tr>
<th>{$lng['login']['language']}</th>
<th>{$lng['admin']['templates']['action']}</th>
<th class="nosort">{$lng['panel']['options']}</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>
<tbody>

View File

@ -22,13 +22,13 @@ $header
</div>
</if>
<table class="bradius" <if 0 < $categories_count>id="sortable"</if>>
<table class="bradius">
<thead>
<tr>
<th>{$lng['ticket']['category']}</th>
<th>{$lng['ticket']['logicalorder']}</th>
<th>{$lng['ticket']['ticketcount']}</if></th>
<th class="nosort">{$lng['panel']['options']}</th>
<th>{$lng['ticket']['category']}&nbsp;{$arrowcode['name']}</th>
<th>{$lng['ticket']['logicalorder']}&nbsp;{$arrowcode['logicalorder']}</th>
<th>{$lng['ticket']['ticketcount']}&nbsp;<if $categories_count < 0 >{$arrowcode['ticketcount']}</if></th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>

View File

@ -22,16 +22,16 @@ $header
</div>
</if>
<table class="bradius" <if 0 < $tickets_count>id="sortable"</if>>
<table class="bradius">
<thead>
<tr>
<th>{$lng['ticket']['lastchange']}</th>
<th>{$lng['ticket']['ticket_answers']}</th>
<th>{$lng['ticket']['subject']}</th>
<th>{$lng['ticket']['status']}</th>
<th>{$lng['ticket']['lastreplier']}</th>
<th>{$lng['ticket']['priority']}</th>
<th class="nosort">{$lng['panel']['options']}</th>
<th>{$lng['ticket']['lastchange']}&nbsp;{$arrowcode['lastchange']}</th>
<th>{$lng['ticket']['ticket_answers']}&nbsp;{$arrowcode['ticket_answers']}</th>
<th>{$lng['ticket']['subject']}&nbsp;{$arrowcode['subject']}</th>
<th>{$lng['ticket']['status']}&nbsp;{$arrowcode['status']}</th>
<th>{$lng['ticket']['lastreplier']}&nbsp;{$arrowcode['lastreplier']}</th>
<th>{$lng['ticket']['priority']}&nbsp;{$arrowcode['priority']}</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>

View File

@ -526,39 +526,6 @@ table thead:first-child th {
color: #cfcfcf;
}
/* dataTables */
table thead th.sorting_asc {
background-image: url('../img/icons/sort_down.png');
background-repeat: no-repeat;
background-position: 10px center;
padding-left: 25px;
}
table thead th.sorting_desc {
background-image: url('../img/icons/sort_up.png');
background-repeat: no-repeat;
background-position: 10px center;
padding-left: 25px;
}
table thead th.sorting {
background-image: url('../img/icons/sort_both.png');
background-repeat: no-repeat;
background-position: 10px center;
padding-left: 25px;
}
table thead th.nosort {
background-image: none;
padding-left: 8px;
}
.dataTables_length {
float: left;
}
.dataTables_filter {
float: right;
}
table tbody td {
border-bottom:1px dotted #ccc;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -19,20 +19,6 @@ $(document).ready(function() {
$("html, body").animate({ scrollTop: 0 }, 600);
return false;
});
// Enable datatable
var sortColumn = $('#sortable').attr('sort-column');
if (sortColumn == null) { sortColumn = "0"; }
var sortDirection = $('#sortable').attr('sort-direction');
if (sortDirection == null) { sortDirection = "asc"; }
var sortTable = $('#sortable').dataTable({
"bFilter": false,
"bInfo": false,
"bPaginate": false,
"aaSorting": [[sortColumn, sortDirection]]
});
$('.nosort').unbind('click');
// this is necessary for the special setting feature (ref #1010)
$.getQueryVariable = function(key) {

View File

@ -16,13 +16,13 @@
</div>
</if>
<table class="bradius" <if 0 < $count>id="sortable"</if>>
<table class="bradius">
<thead>
<tr>
<th>{$lng['emails']['emailaddress']}</th>
<th>{$lng['autoresponder']['active']}</th>
<th>{$lng['autoresponder']['startenddate']}</th>
<th class="nosort">{$lng['panel']['options']}</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>

View File

@ -25,8 +25,8 @@
<table class="bradius">
<thead>
<tr>
<th>{$arrowcode['d.domain']}{$lng['domains']['domainname']}</th>
<th>{$arrowcode['d.documentroot']}{$lng['panel']['path']}</th>
<th>{$lng['domains']['domainname']}&nbsp;{$arrowcode['d.domain']}</th>
<th>{$lng['panel']['path']}&nbsp;{$arrowcode['d.documentroot']}</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>

View File

@ -25,8 +25,8 @@
<table class="bradius">
<thead>
<tr>
<th>{$arrowcode['m.email_full']}{$lng['emails']['emailaddress']}</th>
<th>{$arrowcode['m.destination']}{$lng['emails']['forwarders']}</th>
<th>{$lng['emails']['emailaddress']}&nbsp;{$arrowcode['m.email_full']}</th>
<th>{$lng['emails']['forwarders']}&nbsp;{$arrowcode['m.destination']}</th>
<th>{$lng['emails']['account']}</th>
<if $settings['catchall']['catchall_enabled'] == '1'><th>{$lng['emails']['catchall']}</th></if>
<if $settings['system']['mail_quota_enabled'] == '1'>

View File

@ -22,18 +22,18 @@
</div>
</if>
<table class="bradius" <if 0 < $count>id="sortable"</if>>
<table class="bradius">
<thead>
<tr>
<th>{$lng['panel']['path']}</th>
<th>{$lng['extras']['view_directory']}</th>
<th>{$lng['extras']['error404path']}</th>
<th>{$lng['extras']['error403path']}</th>
<th>{$lng['extras']['error500path']}</th>
<th>{$lng['panel']['path']}&nbsp;{$arrowcode['path']}</th>
<th>{$lng['extras']['view_directory']}&nbsp;{$arrowcode['options_indexes']}</th>
<th>{$lng['extras']['error404path']}&nbsp;{$arrowcode['error404path']}</th>
<th>{$lng['extras']['error403path']}&nbsp;{$arrowcode['error403path']}</th>
<th>{$lng['extras']['error500path']}&nbsp;{$arrowcode['error500path']}</th>
<if $cperlenabled == 1 >
<th>{$lng['extras']['execute_perl']}</th>
<th>{$lng['extras']['execute_perl']}&nbsp;{$arrowcode['options_cgi']}</th>
</if>
<th class="nosort">{$lng['panel']['options']}</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>

View File

@ -22,12 +22,12 @@
</div>
</if>
<table class="bradius" id="sortable">
<table class="bradius">
<thead>
<tr>
<th>{$lng['login']['username']}</th>
<th>{$lng['panel']['path']}</th>
<th class="nosort">{$lng['panel']['options']}</th>
<th>{$lng['login']['username']}&nbsp;{$arrowcode['username']}</th>
<th>{$lng['panel']['path']}&nbsp;{$arrowcode['path']}</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>

View File

@ -22,12 +22,12 @@
</div>
</if>
<table class="bradius" <if 0 < $ftps_count>id="sortable"</if>>
<table class="bradius">
<thead>
<tr>
<th>{$lng['login']['username']}</th>
<th>{$lng['panel']['path']}</th>
<th class="nosort">{$lng['panel']['options']}</th>
<th>{$lng['login']['username']}&nbsp;{$arrowcode['username']}</th>
<th>{$lng['panel']['path']}&nbsp;{$arrowcode['homedir']}</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>

View File

@ -22,14 +22,14 @@
</div>
</if>
<table class="bradius" <if 0 < $mysqls_count>id="sortable"</if>>
<table class="bradius">
<thead>
<tr>
<th>{$lng['mysql']['databasename']}</th>
<th>{$lng['mysql']['databasedescription']}</th>
<th>{$lng['mysql']['databasename']}&nbsp;{$arrowcode['databasename']}</th>
<th>{$lng['mysql']['databasedescription']}&nbsp;{$arrowcode['description']}</th>
<th>{$lng['mysql']['size']}</th>
<if 1 < count($sql_root)><th>{$lng['mysql']['mysql_server']}</th></if>
<th class="nosort">{$lng['panel']['options']}</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>

View File

@ -35,16 +35,16 @@ $header
</div>
</if>
<table class="bradius" <if 0 < $tickets_count>id="sortable"</if>>
<table class="bradius">
<thead>
<tr>
<th>{$lng['ticket']['lastchange']}</th>
<th>{$lng['ticket']['ticket_answers']}</th>
<th>{$lng['ticket']['subject']}</th>
<th>{$lng['ticket']['status']}</th>
<th>{$lng['ticket']['lastreplier']}</th>
<th>{$lng['ticket']['priority']}</th>
<th class="nosort">{$lng['panel']['options']}</th>
<th>{$lng['ticket']['lastchange']}&nbsp;{$arrowcode['lastchange']}</th>
<th>{$lng['ticket']['ticket_answers']}&nbsp;{$arrowcode['ticket_answers']}</th>
<th>{$lng['ticket']['subject']}&nbsp;{$arrowcode['subject']}</th>
<th>{$lng['ticket']['status']}&nbsp;{$arrowcode['status']}</th>
<th>{$lng['ticket']['lastreplier']}&nbsp;{$arrowcode['lastreplier']}</th>
<th>{$lng['ticket']['priority']}&nbsp;{$arrowcode['priority']}</th>
<th>{$lng['panel']['options']}</th>
</tr>
</thead>
<if $pagingcode != ''>

View File

@ -26,12 +26,6 @@
<!--[if IE]><link rel="stylesheet" href="templates/{$theme}/css/main_ie.css" type="text/css" /><![endif]-->
<link href="css/jquery-ui.min.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="templates/{$theme}/assets/js/main.js"></script>
<if $settings['panel']['natsorting'] == '0'>
<script type="text/javascript" src="templates/{$theme}/assets/js/jquery.dataTables.js"></script>
</if>
<if $settings['panel']['natsorting'] == '1'>
<script type="text/javascript" src="templates/{$theme}/assets/js/jquery.dataTables.naturalSorting.js"></script>
</if>
<link href="templates/{$theme}/assets/img/favicon.ico" rel="icon" type="image/x-icon" />
<title><if isset($userinfo['loginname']) && $userinfo['loginname'] != ''>{$userinfo['loginname']} - </if>Froxlor Server Management Panel</title>
<style type="text/css">