- add a few images to beautify multiserver-client overview
This commit is contained in:
@@ -43,7 +43,6 @@ if((int)$settings['multiserver']['enabled'] == 1)
|
|||||||
$log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_clients");
|
$log->logAction(ADM_ACTION, LOG_NOTICE, "viewed admin_clients");
|
||||||
|
|
||||||
$fields = array(
|
$fields = array(
|
||||||
'id' => 'ID#',
|
|
||||||
'name' => $lng['admin']['froxlorclients']['name'],
|
'name' => $lng['admin']['froxlorclients']['name'],
|
||||||
'enabled' => $lng['admin']['froxlorclients']['enabled']
|
'enabled' => $lng['admin']['froxlorclients']['enabled']
|
||||||
);
|
);
|
||||||
@@ -63,11 +62,6 @@ if((int)$settings['multiserver']['enabled'] == 1)
|
|||||||
if($paging->checkDisplay($i))
|
if($paging->checkDisplay($i))
|
||||||
{
|
{
|
||||||
$row = htmlentities_array($row);
|
$row = htmlentities_array($row);
|
||||||
if((int)$row['enabled'] == 1) {
|
|
||||||
$row['enabled'] = $lng['panel']['yes'];
|
|
||||||
} else {
|
|
||||||
$row['enabled'] = $lng['panel']['no'];
|
|
||||||
}
|
|
||||||
eval("\$froxlorclients.=\"" . getTemplate("froxlorclients/froxlorclients_client") . "\";");
|
eval("\$froxlorclients.=\"" . getTemplate("froxlorclients/froxlorclients_client") . "\";");
|
||||||
$count++;
|
$count++;
|
||||||
}
|
}
|
||||||
@@ -179,6 +173,19 @@ if((int)$settings['multiserver']['enabled'] == 1)
|
|||||||
eval("echo \"" . getTemplate("froxlorclients/froxlorclients_edit") . "\";");
|
eval("echo \"" . getTemplate("froxlorclients/froxlorclients_edit") . "\";");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* view client details
|
||||||
|
*/
|
||||||
|
elseif($action == 'view'
|
||||||
|
&& $id != 0
|
||||||
|
) {
|
||||||
|
$client = froxlorclient::getInstance($userinfo, $db, $id);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* for now, we'll only show a few links
|
||||||
|
*/
|
||||||
|
eval("echo \"" . getTemplate("froxlorclients/froxlorclients_view") . "\";");
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* edit client settings
|
* edit client settings
|
||||||
*/
|
*/
|
||||||
|
|||||||
BIN
images/multiserver/no.png
Normal file
BIN
images/multiserver/no.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.4 KiB |
BIN
images/multiserver/server.png
Normal file
BIN
images/multiserver/server.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.1 KiB |
BIN
images/multiserver/tick.png
Normal file
BIN
images/multiserver/tick.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
BIN
images/multiserver/view.png
Normal file
BIN
images/multiserver/view.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.5 KiB |
@@ -5,23 +5,22 @@ $header
|
|||||||
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="maintitle_search_left" colspan="3"><b><img src="images/title.gif" alt="" /> {$lng['menue']['multiserver']['clients']}</b></td>
|
<td class="maintitle_search_left" colspan="3"><b><img src="images/title.gif" alt="" /> {$lng['menue']['multiserver']['clients']}</b></td>
|
||||||
<td class="maintitle_search_right" colspan="2">{$searchcode}</td>
|
<td class="maintitle_search_right" colspan="1">{$searchcode}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="field_display_border_left">ID# {$arrowcode['id']}</td>
|
<td class="field_display_border_left" style="width:70px;">#</td>
|
||||||
<td class="field_display">{$lng['admin']['froxlorclients']['name']} {$arrowcode['name']}</td>
|
<td class="field_display">{$lng['admin']['froxlorclients']['name']} {$arrowcode['name']}<br />{$lng['admin']['froxlorclients']['desc']}</td>
|
||||||
<td class="field_display">{$lng['admin']['froxlorclients']['desc']}</td>
|
<td class="field_display" style="width:35px;">{$lng['admin']['froxlorclients']['enabled']} {$arrowcode['enabled']}</td>
|
||||||
<td class="field_display">{$lng['admin']['froxlorclients']['enabled']} {$arrowcode['enabled']}</td>
|
<td class="field_display_search" style="width:250px;">{$sortcode}</td>
|
||||||
<td class="field_display_search">{$sortcode}</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
$froxlorclients
|
$froxlorclients
|
||||||
<if $pagingcode != ''>
|
<if $pagingcode != ''>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="field_display_border_left" colspan="5" style=" text-align: center; ">{$pagingcode}</td>
|
<td class="field_display_border_left" colspan="4" style=" text-align: center; ">{$pagingcode}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</if>
|
</if>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="field_display_border_left" colspan="5"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['froxlorclients']['add']}</a></td>
|
<td class="field_display_border_left" colspan="4"><a href="$filename?page=$page&action=add&s=$s">{$lng['admin']['froxlorclients']['add']}</a></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</form>
|
</form>
|
||||||
|
|||||||
@@ -1,12 +1,17 @@
|
|||||||
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
<tr class="" onmouseover="this.className='RowOverSelected';" onmouseout="this.className='';">
|
||||||
<td class="field_name_border_left"><font size="-1">{$row['id']}</font></td>
|
<td class="field_name_border_left">
|
||||||
<td class="field_name">{$row['name']}</td>
|
<img src="./images/multiserver/server.png" alt="Client #{$row['id']}" /></td>
|
||||||
<td class="field_name">{$row['desc']}</td>
|
<td class="field_name">{$row['name']}<br /><span style="font-size:80%">{$row['desc']}</span></td>
|
||||||
<td class="field_name">{$row['enabled']}</td>
|
|
||||||
<td class="field_name">
|
<td class="field_name">
|
||||||
<a href="$filename?s=$s&page=$page&action=settings&id={$row['id']}">{$lng['admin']['froxlorclients']['settings']}</a>
|
<if $row['enabled'] == 1 >
|
||||||
<a href="$filename?s=$s&page=$page&action=deploy&id={$row['id']}">{$lng['admin']['froxlorclients']['deploy']}</a>
|
<img src="./images/multiserver/tick.png" alt="{$lng['panel']['yes']}" />
|
||||||
<a href="$filename?s=$s&page=$page&action=edit&id={$row['id']}">{$lng['panel']['edit']}</a>
|
<else>
|
||||||
<a href="$filename?s=$s&page=$page&action=delete&id={$row['id']}">{$lng['panel']['delete']}</a>
|
<img src="./images/multiserver/no.png" alt="{$lng['panel']['no']}" />
|
||||||
|
</if>
|
||||||
|
</td>
|
||||||
|
<td class="field_name">
|
||||||
|
<a href="$filename?s=$s&page=$page&action=view&id={$row['id']}">
|
||||||
|
<img src="./images/multiserver/view.png" alt="{$lng['admin']['froxlorclients']['view']}" style="border:0;" />
|
||||||
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
23
templates/admin/froxlorclients/froxlorclients_view.tpl
Normal file
23
templates/admin/froxlorclients/froxlorclients_view.tpl
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
$header
|
||||||
|
<form action="$filename" method="post">
|
||||||
|
<input type="hidden" name="s" value="$s"/>
|
||||||
|
<input type="hidden" name="page" value="$page"/>
|
||||||
|
<table cellpadding="5" cellspacing="0" border="0" align="center" class="maintable">
|
||||||
|
<tr>
|
||||||
|
<td class="maintitle_search_left" colspan="4"><b><img src="images/title.gif" alt="" /> {$lng['menue']['multiserver']['clients']} "{$client->Get('name')}"</b></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4">@TODO infos about client "{$client->Get('name')}"</td>
|
||||||
|
<tr>
|
||||||
|
<td colspan="4">
|
||||||
|
<a href="$filename?s=$s&page=$page&action=settings&id={$id}">{$lng['admin']['froxlorclients']['settings']}</a>
|
||||||
|
<a href="$filename?s=$s&page=$page&action=deploy&id={$id}">{$lng['admin']['froxlorclients']['deploy']}</a>
|
||||||
|
<a href="$filename?s=$s&page=$page&action=edit&id={$id}">{$lng['panel']['edit']}</a>
|
||||||
|
<a href="$filename?s=$s&page=$page&action=delete&id={$id}">{$lng['panel']['delete']}</a>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
<br />
|
||||||
|
<br />
|
||||||
|
$footer
|
||||||
Reference in New Issue
Block a user