Added unlock link and greyed out customer if deactivated
This commit is contained in:
@@ -104,13 +104,11 @@ if($page == 'customers'
|
|||||||
$traffic_doublepercent = 0;
|
$traffic_doublepercent = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
$column_style = '';
|
$islocked = 0;
|
||||||
$unlock_link = '';
|
|
||||||
if($row['loginfail_count'] >= $settings['login']['maxloginattempts']
|
if($row['loginfail_count'] >= $settings['login']['maxloginattempts']
|
||||||
&& $row['lastlogin_fail'] > (time() - $settings['login']['deactivatetime'])
|
&& $row['lastlogin_fail'] > (time() - $settings['login']['deactivatetime'])
|
||||||
) {
|
) {
|
||||||
$column_style = ' style="background-color: #f99122;"';
|
$islocked = 1;
|
||||||
$unlock_link = '<a href="'.$filename.'?s='.$s.'&page='.$page.'&action=unlock&id='.$row['customerid'].'">'.$lng['panel']['unlock'].'</a><br />';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$row = str_replace_array('-1', 'UL', $row, 'diskspace traffic mysqls emails email_accounts email_forwarders ftps tickets subdomains email_autoresponder');
|
$row = str_replace_array('-1', 'UL', $row, 'diskspace traffic mysqls emails email_accounts email_forwarders ftps tickets subdomains email_autoresponder');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<tr>
|
<tr <if $row['deactivated'] == 1>class="disabled"</if>>
|
||||||
<td>
|
<td>
|
||||||
<strong>
|
<strong>
|
||||||
<if $row['name'] != '' && $row['firstname'] != ''>
|
<if $row['name'] != '' && $row['firstname'] != ''>
|
||||||
@@ -55,6 +55,11 @@
|
|||||||
</a>
|
</a>
|
||||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'delete', 'id' => $row['customerid']))}" style="text-decoration:none;">
|
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'delete', 'id' => $row['customerid']))}" style="text-decoration:none;">
|
||||||
<img src="templates/{$theme}/assets/img/icons/delete.png" alt="{$lng['panel']['delete']}" />
|
<img src="templates/{$theme}/assets/img/icons/delete.png" alt="{$lng['panel']['delete']}" />
|
||||||
|
</a>
|
||||||
|
<if $islocked == 1>
|
||||||
|
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'unlock', 'id' => $row['customerid']))}">
|
||||||
|
<img src="templates/{$theme}/assets/img/icons/unlock.png" alt="{$lng['panel']['unlock']}" />
|
||||||
</a>
|
</a>
|
||||||
|
</if>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -483,6 +483,10 @@ table tbody td {
|
|||||||
border-right: 1px solid #666;
|
border-right: 1px solid #666;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.disabled td, .disabled td a {
|
||||||
|
color: #cfcfcf;
|
||||||
|
}
|
||||||
|
|
||||||
.formtable {
|
.formtable {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
border-spacing: 0;
|
border-spacing: 0;
|
||||||
@@ -751,3 +755,25 @@ caption {
|
|||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
margin-bottom: 0.2em;
|
margin-bottom: 0.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* 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;
|
||||||
|
}
|
||||||
BIN
templates/Froxlor/assets/img/icons/unlock.png
Normal file
BIN
templates/Froxlor/assets/img/icons/unlock.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
@@ -1,4 +1,4 @@
|
|||||||
<tr>
|
<tr <if $row['deactivated'] == 1>class="disabled"</if>>
|
||||||
<td>
|
<td>
|
||||||
<if $row['company'] != ''>
|
<if $row['company'] != ''>
|
||||||
{$row['company']}<br />
|
{$row['company']}<br />
|
||||||
@@ -56,13 +56,18 @@
|
|||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td style="white-space: nowrap;>
|
||||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'edit', 'id' => $row['customerid']))}" style="text-decoration:none;">
|
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'edit', 'id' => $row['customerid']))}" style="text-decoration:none;">
|
||||||
<img src="templates/{$theme}/assets/img/icons/edit.png" alt="{$lng['panel']['edit']}" />
|
<img src="templates/{$theme}/assets/img/icons/edit.png" alt="{$lng['panel']['edit']}" />
|
||||||
</a>
|
</a>
|
||||||
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'delete', 'id' => $row['customerid']))}" style="text-decoration:none;">
|
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'delete', 'id' => $row['customerid']))}" style="text-decoration:none;">
|
||||||
<img src="templates/{$theme}/assets/img/icons/delete.png" alt="{$lng['panel']['delete']}" />
|
<img src="templates/{$theme}/assets/img/icons/delete.png" alt="{$lng['panel']['delete']}" />
|
||||||
|
</a>
|
||||||
|
<if $islocked == 1>
|
||||||
|
<a href="{$linker->getLink(array('section' => 'customers', 'page' => $page, 'action' => 'unlock', 'id' => $row['customerid']))}">
|
||||||
|
<img src="templates/{$theme}/assets/img/icons/unlock.png" alt="{$lng['panel']['unlock']}" />
|
||||||
</a>
|
</a>
|
||||||
|
</if>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
4
templates/Sparkle/assets/css/main.css
vendored
4
templates/Sparkle/assets/css/main.css
vendored
@@ -522,6 +522,10 @@ table thead:first-child th {
|
|||||||
border-top: 0;
|
border-top: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.disabled td, .disabled td a {
|
||||||
|
color: #cfcfcf;
|
||||||
|
}
|
||||||
|
|
||||||
/* dataTables */
|
/* dataTables */
|
||||||
table thead th.sorting_asc {
|
table thead th.sorting_asc {
|
||||||
background-image: url('../img/icons/sort_down.png');
|
background-image: url('../img/icons/sort_down.png');
|
||||||
|
|||||||
BIN
templates/Sparkle/assets/img/icons/unlock.png
vendored
Normal file
BIN
templates/Sparkle/assets/img/icons/unlock.png
vendored
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 3.4 KiB |
Reference in New Issue
Block a user