- add a few images to beautify multiserver-client overview

This commit is contained in:
Michael Kaufmann (d00p)
2010-10-20 13:00:30 +00:00
parent aa5e574d5d
commit db2cca8e86
8 changed files with 56 additions and 22 deletions

View File

@@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

View File

@@ -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="" />&nbsp;{$lng['menue']['multiserver']['clients']}</b></td> <td class="maintitle_search_left" colspan="3"><b><img src="images/title.gif" alt="" />&nbsp;{$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#&nbsp;{$arrowcode['id']}</td> <td class="field_display_border_left" style="width:70px;">#</td>
<td class="field_display">{$lng['admin']['froxlorclients']['name']}&nbsp;{$arrowcode['name']}</td> <td class="field_display">{$lng['admin']['froxlorclients']['name']}&nbsp;{$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']}&nbsp;{$arrowcode['enabled']}</td>
<td class="field_display">{$lng['admin']['froxlorclients']['enabled']}&nbsp;{$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&amp;action=add&amp;s=$s">{$lng['admin']['froxlorclients']['add']}</a></td> <td class="field_display_border_left" colspan="4"><a href="$filename?page=$page&amp;action=add&amp;s=$s">{$lng['admin']['froxlorclients']['add']}</a></td>
</tr> </tr>
</table> </table>
</form> </form>

View File

@@ -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&amp;page=$page&amp;action=settings&amp;id={$row['id']}">{$lng['admin']['froxlorclients']['settings']}</a>&nbsp; <if $row['enabled'] == 1 >
<a href="$filename?s=$s&amp;page=$page&amp;action=deploy&amp;id={$row['id']}">{$lng['admin']['froxlorclients']['deploy']}</a>&nbsp; <img src="./images/multiserver/tick.png" alt="{$lng['panel']['yes']}" />
<a href="$filename?s=$s&amp;page=$page&amp;action=edit&amp;id={$row['id']}">{$lng['panel']['edit']}</a>&nbsp; <else>
<a href="$filename?s=$s&amp;page=$page&amp;action=delete&amp;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&amp;page=$page&amp;action=view&amp;id={$row['id']}">
<img src="./images/multiserver/view.png" alt="{$lng['admin']['froxlorclients']['view']}" style="border:0;" />
</a>
</td> </td>
</tr> </tr>

View 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="" />&nbsp;{$lng['menue']['multiserver']['clients']}&nbsp;"{$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&amp;page=$page&amp;action=settings&amp;id={$id}">{$lng['admin']['froxlorclients']['settings']}</a>&nbsp;
<a href="$filename?s=$s&amp;page=$page&amp;action=deploy&amp;id={$id}">{$lng['admin']['froxlorclients']['deploy']}</a>&nbsp;
<a href="$filename?s=$s&amp;page=$page&amp;action=edit&amp;id={$id}">{$lng['panel']['edit']}</a>&nbsp;
<a href="$filename?s=$s&amp;page=$page&amp;action=delete&amp;id={$id}">{$lng['panel']['delete']}</a>
</td>
</tr>
</table>
</form>
<br />
<br />
$footer