bigger icons

This commit is contained in:
Roland Gruber 2007-12-01 12:34:52 +00:00
parent af8537e5d9
commit 119ad6352a
15 changed files with 18 additions and 18 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 652 B

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 687 B

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 654 B

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -796,8 +796,8 @@ abstract class baseModule {
/** /**
* Returns the path to the module icon. * Returns the path to the module icon.
* The path must be releative to graphics (e.g. key.png). * The path must be releative to graphics (e.g. key.png). You can also set $this->meta['icon'].
* You can also set $this->meta['icon']. * The preferred size is 32x32px.
* *
* @return unknown * @return unknown
*/ */

View File

@ -975,9 +975,9 @@ class accountContainer {
echo "<tr class=\"".$this->type."list\" valign=\"top\"><td style=\"border-bottom: 1px solid;padding:0px;\" colspan=2>"; echo "<tr class=\"".$this->type."list\" valign=\"top\"><td style=\"border-bottom: 1px solid;padding:0px;\" colspan=2>";
// calculate button width // calculate button width
$buttonWidth = round(0.8 * strlen(utf8_decode(_("Main")))); $buttonWidth = round(0.8 * strlen(utf8_decode(_("Main")))) + 2;
for ($b = 1; $b < sizeof($this->order); $b++) { for ($b = 1; $b < sizeof($this->order); $b++) {
$tempWidth = round(0.8 * strlen(utf8_decode($this->module[$this->order[$b]]->get_alias()))); $tempWidth = round(0.8 * strlen(utf8_decode($this->module[$this->order[$b]]->get_alias()))) + 2;
if ($buttonWidth < $tempWidth) $buttonWidth = $tempWidth; if ($buttonWidth < $tempWidth) $buttonWidth = $tempWidth;
} }
$x=0; $x=0;
@ -987,8 +987,8 @@ class accountContainer {
if ($this->order[$this->current_page] == "main") $class = $this->type . "list-edit"; if ($this->order[$this->current_page] == "main") $class = $this->type . "list-edit";
echo "<tr><td width=\"$buttonWidth\" style=\"padding-bottom:0px;padding-right:5px;padding-left:5px;padding-top:10px;\" colspan=2>"; echo "<tr><td width=\"$buttonWidth\" style=\"padding-bottom:0px;padding-right:5px;padding-left:5px;padding-top:10px;\" colspan=2>";
echo "<table width=\"100%\" border=0 style=\"border-collapse: collapse;\">\n"; echo "<table width=\"100%\" border=0 style=\"border-collapse: collapse;\">\n";
echo "<tr class=\"" . $class . "\"><td onclick=\"document.getElementsByName('form_main_main')[0].click();\" align=\"center\" style=\"border: 1px solid;border-bottom: 0px solid;padding:10px;\">\n"; echo "<tr class=\"" . $class . "\"><td onclick=\"document.getElementsByName('form_main_main')[0].click();\" align=\"center\" style=\"border: 1px solid;border-bottom: 0px solid;padding:5px;\">\n";
echo "<input style=\"background: transparent; width:" . $buttonWidth ."em;border:0px solid;\" name=\"form_main_main\" type=\"submit\" value=\""; echo "<input style=\"background: transparent; width:" . $buttonWidth ."em;border:0px solid;height:32px;\" name=\"form_main_main\" type=\"submit\" value=\"";
echo _('Main'); echo _('Main');
echo "\" tabindex=$x"; echo "\" tabindex=$x";
if ($this->subpage == 'finish') echo " disabled"; if ($this->subpage == 'finish') echo " disabled";
@ -1007,14 +1007,14 @@ class accountContainer {
echo "<td width=\"$buttonWidth\" style=\"padding-bottom:0px;padding-right:5px;padding-left:5px;padding-top:10px;\">\n"; echo "<td width=\"$buttonWidth\" style=\"padding-bottom:0px;padding-right:5px;padding-left:5px;padding-top:10px;\">\n";
echo "<table width=\"100%\" style=\"border-collapse: collapse;\">\n"; echo "<table width=\"100%\" style=\"border-collapse: collapse;\">\n";
echo "<tr class=\"" . $class . "\"><td onclick=\"document.getElementsByName('form_main_".$this->order[$i]."')[0].click();\""; echo "<tr class=\"" . $class . "\"><td onclick=\"document.getElementsByName('form_main_".$this->order[$i]."')[0].click();\"";
echo " align=\"center\" style=\"border: 1px solid;border-bottom: 0px solid;padding:10px;\">\n"; echo " align=\"center\" style=\"border: 1px solid;border-bottom: 0px solid;padding:5px;\">\n";
// print normal button // print normal button
$buttonImage = $this->module[$this->order[$i]]->getIcon(); $buttonImage = $this->module[$this->order[$i]]->getIcon();
$buttonImageStyle = ''; $buttonImageStyle = '';
$buttonSpace = ''; $buttonSpace = '';
if ($buttonImage != null) { if ($buttonImage != null) {
$buttonImageStyle = 'background-image: url(../../graphics/' . $buttonImage . ');background-position: 2px center;background-repeat: no-repeat;'; $buttonImageStyle = 'background-image: url(../../graphics/' . $buttonImage . ');background-position: 2px center;background-repeat: no-repeat;height:32px;';
$buttonSpace = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'; $buttonSpace = '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
} }
$buttonStyle = $buttonImageStyle . 'background-color:transparent;width:' . $buttonWidth . 'em;border:0px solid;'; $buttonStyle = $buttonImageStyle . 'background-color:transparent;width:' . $buttonWidth . 'em;border:0px solid;';
echo "<input style=\"" . $buttonStyle . "\" name=\"form_main_".$this->order[$i]."\" type=\"submit\" value=\""; echo "<input style=\"" . $buttonStyle . "\" name=\"form_main_".$this->order[$i]."\" type=\"submit\" value=\"";

View File

@ -42,7 +42,7 @@ class ieee802Device extends baseModule {
function get_metaData() { function get_metaData() {
$return = array(); $return = array();
// icon // icon
$return['icon'] = 'device.png'; $return['icon'] = 'network-wired.png';
// manages host accounts // manages host accounts
$return["account_types"] = array("host"); $return["account_types"] = array("host");
// alias name // alias name

View File

@ -42,7 +42,7 @@ class inetLocalMailRecipient extends baseModule {
function get_metaData() { function get_metaData() {
$return = array(); $return = array();
// icon // icon
$return['icon'] = 'mailAlias.png'; $return['icon'] = 'mailBig.png';
// manages host accounts // manages host accounts
$return["account_types"] = array("user"); $return["account_types"] = array("user");
// alias name // alias name

View File

@ -43,7 +43,7 @@ class ldapPublicKey extends baseModule {
function get_metaData() { function get_metaData() {
$return = array(); $return = array();
// icon // icon
$return['icon'] = 'key.png'; $return['icon'] = 'keyBig.png';
// manages host accounts // manages host accounts
$return["account_types"] = array("user"); $return["account_types"] = array("user");
// alias name // alias name

View File

@ -42,7 +42,7 @@ class nisMailAlias extends baseModule {
function get_metaData() { function get_metaData() {
$return = array(); $return = array();
// icon // icon
$return['icon'] = 'mailAlias.png'; $return['icon'] = 'mailBig.png';
// manages host accounts // manages host accounts
$return["account_types"] = array("mailAlias"); $return["account_types"] = array("mailAlias");
// base module // base module

View File

@ -65,7 +65,7 @@ class quota extends baseModule {
function get_metaData() { function get_metaData() {
$return = array(); $return = array();
// icon // icon
$return['icon'] = 'hard-drive.png'; $return['icon'] = 'hard-driveBig.png';
// manages user and group accounts // manages user and group accounts
$return["account_types"] = array("user", "group"); $return["account_types"] = array("user", "group");
// alias name // alias name

View File

@ -64,7 +64,7 @@ class shadowAccount extends baseModule {
function get_metaData() { function get_metaData() {
$return = array(); $return = array();
// icon // icon
$return['icon'] = 'key.png'; $return['icon'] = 'keyBig.png';
// manages user accounts // manages user accounts
$return["account_types"] = array("user"); $return["account_types"] = array("user");
// alias name // alias name

View File

@ -243,7 +243,7 @@ for ($i = 0; $i < sizeof($modules); $i++) {
$module = new $modules[$i]('none'); $module = new $modules[$i]('none');
$iconImage = $module->getIcon(); $iconImage = $module->getIcon();
if ($iconImage != null) { if ($iconImage != null) {
$icon = '<img src="../../graphics/' . $iconImage . '" alt="' . $iconImage . '"> '; $icon = '<img align="middle" src="../../graphics/' . $iconImage . '" alt="' . $iconImage . '"> ';
} }
echo "<legend>$icon<b>" . getModuleAlias($modules[$i], "none") . "</b></legend>\n"; echo "<legend>$icon<b>" . getModuleAlias($modules[$i], "none") . "</b></legend>\n";
$configTypes = parseHtml($modules[$i], $options[$modules[$i]], $old_options, true, $tabindex, $tabindexLink, 'config'); $configTypes = parseHtml($modules[$i], $options[$modules[$i]], $old_options, true, $tabindex, $tabindexLink, 'config');

View File

@ -187,7 +187,7 @@ function showMainPage($scope) {
$module = new $modules[$m]($scope); $module = new $modules[$m]($scope);
$iconImage = $module->getIcon(); $iconImage = $module->getIcon();
if ($iconImage != null) { if ($iconImage != null) {
$icon = '<img src="../graphics/' . $iconImage . '" alt="' . $iconImage . '"> '; $icon = '<img align="middle" src="../graphics/' . $iconImage . '" alt="' . $iconImage . '"> ';
} }
echo "<fieldset class=\"" . $scope . "edit\">\n<legend>$icon<b>" . getModuleAlias($modules[$m], $scope) . "</b></legend>\n"; echo "<fieldset class=\"" . $scope . "edit\">\n<legend>$icon<b>" . getModuleAlias($modules[$m], $scope) . "</b></legend>\n";
echo "<table width=\"100%\">\n"; echo "<table width=\"100%\">\n";

View File

@ -234,7 +234,7 @@ for ($m = 0; $m < sizeof($modules); $m++) {
$module = new $modules[$m]($type); $module = new $modules[$m]($type);
$iconImage = $module->getIcon(); $iconImage = $module->getIcon();
if ($iconImage != null) { if ($iconImage != null) {
$icon = '<img src="../../graphics/' . $iconImage . '" alt="' . $iconImage . '"> '; $icon = '<img align="middle" src="../../graphics/' . $iconImage . '" alt="' . $iconImage . '"> ';
} }
echo "<legend>$icon<b>" . getModuleAlias($modules[$m], $type) . "</b></legend>\n"; echo "<legend>$icon<b>" . getModuleAlias($modules[$m], $type) . "</b></legend>\n";
$profileTypes = parseHtml($modules[$m], $options[$modules[$m]], $old_options, true, $tabindex, $tabindexLink, $type); $profileTypes = parseHtml($modules[$m], $options[$modules[$m]], $old_options, true, $tabindex, $tabindexLink, $type);