added text colour to customer settings

This commit is contained in:
SJ 2013-08-09 22:11:16 +02:00
parent 6c33eb2645
commit 90a69f9287
14 changed files with 68 additions and 37 deletions

View File

@ -371,7 +371,8 @@ create table if not exists `customer_settings` (
`branding_url` varchar(255) default null,
`branding_logo` varchar(255) default null,
`support_link` varchar(255) default null,
`colour` varchar(255) default null
`background_colour` varchar(255) default null,
`text_colour` varchar(255) default null
) Engine=InnoDB;

View File

@ -33,7 +33,8 @@ create table if not exists `customer_settings` (
`branding_url` varchar(255) default null,
`branding_logo` varchar(255) default null,
`support_link` varchar(255) default null,
`colour` varchar(255) default null
`background_colour` varchar(255) default null,
`text_colour` varchar(255) default null
) Engine=InnoDB;
create table if not exists `online` (

View File

@ -17,7 +17,8 @@ $config['PILERGETD_PASSWORD'] = '';
$config['BRANDING_TEXT'] = '';
$config['BRANDING_URL'] = '';
$config['BRANDING_LOGO'] = '';
$config['BRANDING_COLOUR'] = '';
$config['BRANDING_BACKGROUND_COLOUR'] = '';
$config['BRANDING_TEXT_COLOUR'] = '';
$config['BRANDING_FAVICON'] = '';
$config['SUPPORT_LINK'] = '';

View File

@ -29,6 +29,7 @@ $_['text_attachment_type'] = "Typ Anhang";
$_['text_audit'] = "Revision";
$_['text_back'] = "Zurück";
$_['text_background_colour'] = "Background colour";
$_['text_body'] = "Nachricht";
$_['text_branding_logo'] = "Branding logo";
$_['text_branding_text'] = "Branding text";
@ -325,6 +326,7 @@ $_['text_tagged'] = "Kategorisiert";
$_['text_tags'] = "Kategorie(n)";
$_['text_test_connection'] = "Test connection";
$_['text_text'] = "Text";
$_['text_text_colour'] = "Text colour";
$_['text_text2'] = "Nachricht";
$_['text_theme'] = "Thema";
$_['text_time'] = "Zeit";

View File

@ -29,6 +29,7 @@ $_['text_attachment_type'] = "Attachment type";
$_['text_audit'] = "Audit";
$_['text_back'] = "Back";
$_['text_background_colour'] = "Background colour";
$_['text_body'] = "Body";
$_['text_branding_logo'] = "Branding logo";
$_['text_branding_text'] = "Branding text";
@ -325,6 +326,7 @@ $_['text_tagged'] = "Tagged";
$_['text_tags'] = "Tags";
$_['text_test_connection'] = "Test connection";
$_['text_text'] = "Text";
$_['text_text_colour'] = "Text colour";
$_['text_text2'] = "text";
$_['text_theme'] = "Theme";
$_['text_time'] = "Time";

View File

@ -29,6 +29,7 @@ $_['text_attachment_type'] = "Mell
$_['text_audit'] = "Audit";
$_['text_back'] = "Vissza";
$_['text_background_colour'] = "Háttérszín";
$_['text_branding_logo'] = "Brand logo";
$_['text_branding_text'] = "Brand szöveg";
$_['text_branding_url'] = "Brand URL";
@ -325,6 +326,7 @@ $_['text_tagged'] = "C
$_['text_tags'] = "Címkék";
$_['text_test_connection'] = "Kapcsolat tesztelése";
$_['text_text'] = "Szöveg";
$_['text_text_colour'] = "Szövegszín";
$_['text_text2'] = "szöveg";
$_['text_theme'] = "Stílus";
$_['text_time'] = "Idõpont";

View File

@ -29,6 +29,7 @@ $_['text_attachment_type'] = "Melléklet típus";
$_['text_audit'] = "Audit";
$_['text_back'] = "Vissza";
$_['text_background_colour'] = "Háttérszín";
$_['text_branding_logo'] = "Brand logo";
$_['text_branding_text'] = "Brand szöveg";
$_['text_branding_url'] = "Brand URL";
@ -325,6 +326,7 @@ $_['text_tagged'] = "Címkézve";
$_['text_tags'] = "Címkék";
$_['text_test_connection'] = "Kapcsolat tesztelése";
$_['text_text'] = "Szöveg";
$_['text_text_colour'] = "Szövegszín";
$_['text_text2'] = "szöveg";
$_['text_theme'] = "Stílus";
$_['text_time'] = "Időpont";

View File

@ -28,6 +28,7 @@ $_['text_attachment_type'] = "Tipo de anexo";
$_['text_audit'] = "Auditoria";
$_['text_back'] = "Voltar";
$_['text_background_colour'] = "Background colour";
$_['text_branding_logo'] = "Branding logo";
$_['text_branding_text'] = "Branding text";
$_['text_branding_url'] = "Branding URL";
@ -318,6 +319,7 @@ $_['text_tag_selected_messages'] = "Marcar(Tag) resultados de pesquisa";
$_['text_tagged'] = "Marcados";
$_['text_tags'] = "Tags";
$_['text_text'] = "Texto";
$_['text_text_colour'] = "Text colour";
$_['text_text2'] = "texto";
$_['text_theme'] = "Tema";
$_['text_time'] = "Hora";

View File

@ -41,7 +41,7 @@ class ModelSaasCustomer extends Model
move_uploaded_file($_FILES['branding_logo']['tmp_name'], DIR_BASE . "/images/" . $_FILES['branding_logo']['name']);
}
$query = $this->db->query("INSERT INTO " . TABLE_CUSTOMER_SETTINGS . " (domain, branding_text, branding_url, branding_logo, support_link, colour) VALUES (?,?,?,?,?,?)", array($arr['domain'], $arr['branding_text'], $arr['branding_url'], $branding_logo, $arr['support_link'], $arr['colour']));
$query = $this->db->query("INSERT INTO " . TABLE_CUSTOMER_SETTINGS . " (domain, branding_text, branding_url, branding_logo, support_link, background_colour, text_colour) VALUES (?,?,?,?,?,?,?)", array($arr['domain'], $arr['branding_text'], $arr['branding_url'], $branding_logo, $arr['support_link'], $arr['background_colour'], $arr['text_colour']));
$rc = $this->db->countAffected();
@ -62,10 +62,10 @@ class ModelSaasCustomer extends Model
$branding_logo = $_FILES['branding_logo']['name'];
move_uploaded_file($_FILES['branding_logo']['tmp_name'], DIR_BASE . "/images/" . $_FILES['branding_logo']['name']);
$query = $this->db->query("UPDATE " . TABLE_CUSTOMER_SETTINGS . " SET domain=?, branding_text=?, branding_url=?, branding_logo=?, support_link=?, colour=? WHERE id=?", array($arr['domain'], $arr['branding_text'], $arr['branding_url'], $branding_logo, $arr['support_link'], $arr['colour'], $arr['id']));
$query = $this->db->query("UPDATE " . TABLE_CUSTOMER_SETTINGS . " SET domain=?, branding_text=?, branding_url=?, branding_logo=?, support_link=?, background_colour=?, text_colour=? WHERE id=?", array($arr['domain'], $arr['branding_text'], $arr['branding_url'], $branding_logo, $arr['support_link'], $arr['background_colour'], $arr['text_colour'], $arr['id']));
}
else {
$query = $this->db->query("UPDATE " . TABLE_CUSTOMER_SETTINGS . " SET domain=?, branding_text=?, branding_url=?, support_link=?, colour=? WHERE id=?", array($arr['domain'], $arr['branding_text'], $arr['branding_url'], $arr['support_link'], $arr['colour'], $arr['id']));
$query = $this->db->query("UPDATE " . TABLE_CUSTOMER_SETTINGS . " SET domain=?, branding_text=?, branding_url=?, support_link=?, background_colour=?, text_colour=? WHERE id=?", array($arr['domain'], $arr['branding_text'], $arr['branding_url'], $arr['support_link'], $arr['background_colour'], $arr['text_colour'], $arr['id']));
}
@ -79,7 +79,8 @@ class ModelSaasCustomer extends Model
'branding_url' => BRANDING_URL,
'branding_logo' => BRANDING_LOGO,
'support_link' => SUPPORT_LINK,
'colour' => BRANDING_COLOUR
'background_colour' => BRANDING_BACKGROUND_COLOUR,
'text_colour' => BRANDING_TEXT_COLOUR
);
@ -101,7 +102,8 @@ class ModelSaasCustomer extends Model
if($query->row['branding_url']) { $data['branding_url'] = $query->row['branding_url']; }
if($query->row['branding_logo']) { $data['branding_logo'] = $query->row['branding_logo']; }
if($query->row['support_link']) { $data['support_link'] = $query->row['support_link']; }
if($query->row['colour']) { $data['colour'] = $query->row['colour']; }
if($query->row['background_colour']) { $data['background_colour'] = $query->row['background_colour']; }
if($query->row['text_colour']) { $data['text_colour'] = $query->row['text_colour']; }
}
if(MEMCACHED_ENABLED && $cache_key) {

View File

@ -993,10 +993,10 @@ var Piler =
},
change_box_colour: function()
change_box_colour: function(srcid, dstid)
{
var colour = $('#colour').val();
$('#cp').css('background', colour);
var colour = $('#' + srcid).val();
$('#' + dstid).css('background', colour);
}

View File

@ -2,7 +2,7 @@
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid"<?php if($settings['colour']) { ?> style="background: <?php print $settings['colour']; ?>;"<?php } ?>>
<div class="container-fluid"<?php if($settings['background_colour']) { ?> style="background: <?php print $settings['background_colour']; ?>;"<?php } ?>>
<!-- <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
@ -19,7 +19,7 @@
<?php if($admin_user == 1) { ?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-desktop"></i>&nbsp;<?php print $text_monitor; ?>&nbsp;<b class="caret"></b></a>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-desktop"></i>&nbsp;<?php print $text_monitor; ?>&nbsp;<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="index.php?route=stat/stat&timespan=daily"><i class="icon-bar-chart"></i>&nbsp;Statistics</a></li>
<li><a href="index.php?route=accounting/accounting&view=email"><i class="icon-tasks"></i>&nbsp;Accounting</a></li>
@ -30,7 +30,7 @@
</ul>
</li>
<li class="dropdown"<?php if(strstr($_SERVER['QUERY_STRING'], "domain/") || ($_SERVER['QUERY_STRING'] != "route=user/settings" && strstr($_SERVER['QUERY_STRING'], "user/")) || strstr($_SERVER['QUERY_STRING'], "policy/") || strstr($_SERVER['QUERY_STRING'], "import/")) { ?> id="active"<?php } ?>>
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-cogs"></i>&nbsp;<?php print $text_administration; ?>&nbsp;<b class="caret"></b></a>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-cogs"></i>&nbsp;<?php print $text_administration; ?>&nbsp;<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="index.php?route=user/list"><i class="icon-user"></i>&nbsp;<?php print $text_users; ?></a></li>
<li><a href="index.php?route=group/list"><i class="icon-group"></i>&nbsp;<?php print $text_groups; ?></a></li>
@ -47,18 +47,18 @@
<?php } else { ?>
<li><a href="search.php"><i class="icon-search"></i>&nbsp;<?php print $text_search; ?></a></li>
<li><a href="search.php" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-search"></i>&nbsp;<?php print $text_search; ?></a></li>
<?php if(ENABLE_AUDIT == 1 && $auditor_user == 1) { ?>
<li><a href="index.php?route=audit/audit"><i class="icon-book"></i>&nbsp;<?php print $text_audit; ?></a></li>
<li><a href="index.php?route=audit/audit" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-book"></i>&nbsp;<?php print $text_audit; ?></a></li>
<?php } ?>
<?php if($settings['support_link']) { ?>
<li><a href="<?php print $settings['support_link']; ?>"><?php print $text_contact_support; ?></a></li>
<li><a href="<?php print $settings['support_link']; ?>" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><?php print $text_contact_support; ?></a></li>
<?php } ?>
<?php if(ENABLE_FOLDER_RESTRICTIONS == 1) { ?>
<li><a href="/folders.php"><i class="icon-folder-close"></i>&nbsp;<?php print $text_folders; ?></a></li>
<li><a href="/folders.php" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-folder-close"></i>&nbsp;<?php print $text_folders; ?></a></li>
<?php } ?>
<?php } ?>
@ -67,10 +67,10 @@
</ul>
<ul class="nav pull-right">
<?php if($settings['branding_url']) { ?><li><a href="<?php print $settings['branding_url']; ?>" target="_blank"><i class="icon-phone"></i>&nbsp;<?php print $settings['branding_text']; ?></a></li><?php } ?>
<?php if($settings['branding_url']) { ?><li><a href="<?php print $settings['branding_url']; ?>" target="_blank" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-phone"></i>&nbsp;<?php print $settings['branding_text']; ?></a></li><?php } ?>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-user"></i>&nbsp;<?php if(isset($_SESSION['realname'])) { print $_SESSION['realname']; ?>&nbsp;<?php } ?><b class="caret"></b></a>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-user"></i>&nbsp;<?php if(isset($_SESSION['realname'])) { print $_SESSION['realname']; ?>&nbsp;<?php } ?><b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="settings.php"><i class="icon-cog"></i>&nbsp;Settings</a></li>
<li class="divider"></li>

View File

@ -45,9 +45,15 @@
</div>
</div>
<div class="control-group">
<label class="control-label" for="colour"><?php print $text_colour; ?>:</label>
<label class="control-label" for="colour"><?php print $text_background_colour; ?>:</label>
<div class="controls">
<input type="text" class="text" name="colour" id="colour" placeholder="" value="<?php if(isset($a['colour'])) { print $a['colour']; } ?>" oninput="Piler.change_box_colour();" /> <span id="cp" style="<?php if(isset($a['colour'])) { ?>background: <?php print $a['colour']; ?>;<?php } ?>">&nbsp;&nbsp;&nbsp;</span>
<input type="text" class="text" name="background_colour" id="background_colour" placeholder="" value="<?php if(isset($a['background_colour'])) { print $a['background_colour']; } ?>" oninput="Piler.change_box_colour('background_colour', 'cp');" /> <span id="cp" style="<?php if(isset($a['background_colour'])) { ?>background: <?php print $a['background_colour']; ?>;<?php } ?>">&nbsp;&nbsp;&nbsp;</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="colour"><?php print $text_text_colour; ?>:</label>
<div class="controls">
<input type="text" class="text" name="text_colour" id="text_colour" placeholder="" value="<?php if(isset($a['text_colour'])) { print $a['text_colour']; } ?>" oninput="Piler.change_box_colour('text_colour', 'cp2');" /> <span id="cp2" style="<?php if(isset($a['text_colour'])) { ?>background: <?php print $a['text_colour']; ?>;<?php } ?>">&nbsp;&nbsp;&nbsp;</span>
</div>
</div>
@ -72,7 +78,8 @@
<th class="domaincell"><?php print $text_branding_text; ?></th>
<th class="domaincell"><?php print $text_branding_url; ?></th>
<th class="domaincell"><?php print $text_branding_logo; ?></th>
<th class="domaincell"><?php print $text_colour; ?></th>
<th class="domaincell"><?php print $text_background_colour; ?></th>
<th class="domaincell"><?php print $text_text_colour; ?></th>
<th class="domaincell">&nbsp;</th>
<th class="domaincell">&nbsp;</th>
</tr>
@ -83,7 +90,8 @@
<td class="domaincell"><?php print $e['branding_text']; ?></td>
<td class="domaincell"><?php print $e['branding_url']; ?></td>
<td class="domaincell"><?php if($e['branding_logo']) { ?><img src="/images/<?php print $e['branding_logo']; ?>" /><?php } ?></td>
<td class="domaincell"><?php print $e['colour']; ?></td>
<td class="domaincell"><?php print $e['background_colour']; ?></td>
<td class="domaincell"><?php print $e['text_colour']; ?></td>
<td class="domaincell"><a href="index.php?route=customer/list&amp;id=<?php print $e['id']; ?>"><?php print $text_edit; ?></a></td>
<td class="domaincell"><a href="index.php?route=customer/remove&amp;id=<?php print $e['id']; ?>&amp;domain=<?php print urlencode($e['domain']); ?>&amp;confirmed=1" onclick="if(confirm('<?php print $text_remove; ?>: ' + '\'<?php print $e['domain']; ?>\'')) return true; return false;"><?php print $text_remove; ?></a></td>
</tr>

View File

@ -1,7 +1,7 @@
<?php if(Registry::get('username')) { ?>
<div class="navbar navbar-inverse">
<div class="navbar-inner"<?php if($settings['colour']) { ?> style="background: <?php print $settings['colour']; ?>;"<?php } ?>>
<div class="navbar-inner"<?php if($settings['background_colour']) { ?> style="background: <?php print $settings['background_colour']; ?>;"<?php } ?>>
<a class="brand" target="_blank" href="<?php print $settings['branding_url']; ?>" title="<?php print $settings['branding_text']; ?>"><?php if($settings['branding_logo']) { ?><img src="/images/<?php print $settings['branding_logo']; ?>" alt="<?php print $settings['branding_text']; ?>" /><?php } ?></a>
@ -11,7 +11,7 @@
<?php if($admin_user == 1) { ?>
<li class="dropdown<?php if(strstr($_SERVER['QUERY_STRING'], "stat/") || strstr($_SERVER['QUERY_STRING'], "health/") || strstr($_SERVER['QUERY_STRING'], "audit/") ) { ?> active<?php } ?>">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-eye-open icon-white"></i>&nbsp;<?php print $text_monitor; ?> <b class="caret"></b></a>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-eye-open icon-white"></i>&nbsp;<?php print $text_monitor; ?> <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="index.php?route=stat/stat&timespan=daily"><?php print $text_statistics; ?></a></li>
<li><a href="index.php?route=health/health"><?php print $text_health; ?></a></li>
@ -25,7 +25,7 @@
<li class="divider-vertical"></li>
<li class="dropdown<?php if(strstr($_SERVER['QUERY_STRING'], "domain/") || $_SERVER['QUERY_STRING'] == "route=user/list" || strstr($_SERVER['QUERY_STRING'], "group/") || strstr($_SERVER['QUERY_STRING'], "policy/") ) { ?> active<?php } ?>">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="icon-wrench icon-white"></i>&nbsp;<?php print $text_administration; ?> <b class="caret"></b></a>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-wrench icon-white"></i>&nbsp;<?php print $text_administration; ?> <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="index.php?route=user/list"><?php print $text_users; ?></a></li>
<li><a href="index.php?route=group/list"><?php print $text_groups; ?></a></li>
@ -41,18 +41,18 @@
<?php } else { ?>
<li<?php if($_SERVER['REQUEST_URI'] == '/' || strstr($_SERVER['REQUEST_URI'], "search.php")){ ?> class="active"<?php } ?>><a href="search.php"><i class="icon-search icon-white"></i>&nbsp;<?php print $text_search; ?></a></li>
<li<?php if($_SERVER['REQUEST_URI'] == '/' || strstr($_SERVER['REQUEST_URI'], "search.php")){ ?> class="active"<?php } ?>><a href="search.php" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-search icon-white"></i>&nbsp;<?php print $text_search; ?></a></li>
<?php if(ENABLE_FOLDER_RESTRICTIONS == 1) { ?>
<li<?php if($_SERVER['REQUEST_URI'] == '/' || strstr($_SERVER['REQUEST_URI'], "folders.php")){ ?> class="active"<?php } ?>><a href="folders.php"><?php print $text_folder; ?></a></li>
<li<?php if($_SERVER['REQUEST_URI'] == '/' || strstr($_SERVER['REQUEST_URI'], "folders.php")){ ?> class="active"<?php } ?>><a href="folders.php" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><?php print $text_folder; ?></a></li>
<?php } ?>
<?php if(ENABLE_AUDIT == 1 && $auditor_user == 1) { ?>
<li<?php if(strstr($_SERVER['REQUEST_URI'], "audit/audit")){ ?> class="active"<?php } ?>><a href="index.php?route=audit/audit"><i class="icon-book icon-white"></i>&nbsp;<?php print $text_audit; ?></a></li>
<li<?php if(strstr($_SERVER['REQUEST_URI'], "audit/audit")){ ?> class="active"<?php } ?>><a href="index.php?route=audit/audit" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-book icon-white"></i>&nbsp;<?php print $text_audit; ?></a></li>
<?php } ?>
<?php if($settings['support_link']) { ?>
<li><a href="<?php print $settings['support_link']; ?>"><?php print $text_contact_support; ?></a></li>
<li><a href="<?php print $settings['support_link']; ?>" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><?php print $text_contact_support; ?></a></li>
<?php } ?>
<?php } ?>
@ -61,11 +61,11 @@
<ul class="nav pull-right">
<?php if($settings['branding_url']) { ?><li><a href="<?php print $settings['branding_url']; ?>" target="_blank"><i class="icon-share-alt icon-white"></i> <?php print $settings['branding_text']; ?></a></li><?php } ?>
<?php if($settings['branding_url']) { ?><li><a href="<?php print $settings['branding_url']; ?>" target="_blank" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><i class="icon-share-alt icon-white"></i> <?php print $settings['branding_text']; ?></a></li><?php } ?>
<li class="divider-vertical"></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php print $_SESSION['realname']; ?> <i class="icon-user icon-white"></i> <b class="caret"></b></a>
<a href="#" class="dropdown-toggle" data-toggle="dropdown" <?php if($settings['text_colour']) { ?> style="color: <?php print $settings['text_colour']; ?>;"<?php } ?>><?php print $_SESSION['realname']; ?> <i class="icon-user icon-white"></i> <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="settings.php"><i class="icon-cog"></i>&nbsp;<?php print $text_settings; ?></a></li>
<li class="divider"></li>

View File

@ -45,9 +45,15 @@
</div>
</div>
<div class="control-group">
<label class="control-label" for="colour"><?php print $text_colour; ?>:</label>
<label class="control-label" for="colour"><?php print $text_background_colour; ?>:</label>
<div class="controls">
<input type="text" class="text" name="colour" id="colour" placeholder="" value="<?php if(isset($a['colour'])) { print $a['colour']; } ?>" oninput="Piler.change_box_colour();" /> <span id="cp" style="<?php if(isset($a['colour'])) { ?>background: <?php print $a['colour']; ?>;<?php } ?>">&nbsp;&nbsp;&nbsp;</span>
<input type="text" class="text" name="background_colour" id="background_colour" placeholder="" value="<?php if(isset($a['background_colour'])) { print $a['background_colour']; } ?>" oninput="Piler.change_box_colour('background_colour', 'cp');" /> <span id="cp" style="<?php if(isset($a['background_colour'])) { ?>background: <?php print $a['background_colour']; ?>;<?php } ?>">&nbsp;&nbsp;&nbsp;</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="colour"><?php print $text_text_colour; ?>:</label>
<div class="controls">
<input type="text" class="text" name="text_colour" id="text_colour" placeholder="" value="<?php if(isset($a['text_colour'])) { print $a['text_colour']; } ?>" oninput="Piler.change_box_colour('text_colour', 'cp2');" /> <span id="cp2" style="<?php if(isset($a['text_colour'])) { ?>background: <?php print $a['text_colour']; ?>;<?php } ?>">&nbsp;&nbsp;&nbsp;</span>
</div>
</div>
@ -72,7 +78,8 @@
<div class="domaincell"><?php print $text_branding_text; ?></div>
<div class="domaincell"><?php print $text_branding_url; ?></div>
<div class="domaincell"><?php print $text_branding_logo; ?></div>
<div class="domaincell"><?php print $text_colour; ?></div>
<div class="domaincell"><?php print $text_background_colour; ?></div>
<div class="domaincell"><?php print $text_text_colour; ?></div>
<div class="domaincell">&nbsp;</div>
<div class="domaincell">&nbsp;</div>
</div>
@ -83,7 +90,8 @@
<div class="domaincell"><?php print $e['branding_text']; ?></div>
<div class="domaincell"><?php print $e['branding_url']; ?></div>
<div class="domaincell"><?php if($e['branding_logo']) { ?><img src="/images/<?php print $e['branding_logo']; ?>" /><?php } ?></div>
<div class="domaincell"><?php print $e['colour']; ?></div>
<div class="domaincell"><?php print $e['background_colour']; ?></div>
<div class="domaincell"><?php print $e['text_colour']; ?></div>
<div class="domaincell"><a href="index.php?route=customer/list&amp;id=<?php print $e['id']; ?>"><?php print $text_edit; ?></a></div>
<div class="domaincell"><a href="index.php?route=customer/remove&amp;id=<?php print $e['id']; ?>&amp;domain=<?php print urlencode($e['domain']); ?>&amp;confirmed=1" onclick="if(confirm('<?php print $text_remove; ?>: ' + '\'<?php print $e['domain']; ?>\'')) return true; return false;"><?php print $text_remove; ?></a></div>
</div>