Misc CSS tweaks, Domain Selector multilinguified.

This commit is contained in:
Nate Jones 2014-02-26 07:23:15 +00:00
parent 114f0f3e56
commit 08bc110afd
2 changed files with 40 additions and 35 deletions

View File

@ -0,0 +1,17 @@
<?php
// Theme
$text['title-domains']['en-us'] = "Domain Selector";
$text['title-domains']['es-cl'] = "Dominios";
$text['title-domains']['pt-pt'] = "Domínios";
$text['title-domains']['fr-fr'] = "Domaines";
$text['button-close']['en-us'] = "Close";
$text['button-close']['es-cl'] = "Cerca";
$text['button-close']['pt-pt'] = "Perto";
$text['button-close']['fr-fr'] = "Proche";
$text['label-search']['en-us'] = "Search...";
$text['label-search']['es-cl'] = "Buscar...";
$text['label-search']['pt-pt'] = "Pesquisa...";
$text['label-search']['fr-fr'] = "Recherche...";
?>

View File

@ -114,7 +114,7 @@ td.list_control_icons {
padding-left: 3px; padding-left: 3px;
width: 50px; width: 50px;
text-align: right; text-align: right;
vertical-align: middle; vertical-align: top;
white-space: nowrap; white-space: nowrap;
} }
@ -127,6 +127,10 @@ img.list_control_icon {
-moz-opacity: 0.9; -moz-opacity: 0.9;
} }
form {
margin: 0px;
}
input.btn, input.button { input.btn, input.button {
font-family: Candara, Calibri, Segoe, "Segoe UI", Optima, Arial, sans-serif; font-family: Candara, Calibri, Segoe, "Segoe UI", Optima, Arial, sans-serif;
padding: 2px 6px 3px 6px; padding: 2px 6px 3px 6px;
@ -156,41 +160,13 @@ input.btn:hover, input.button:hover, img.list_control_icon:hover {
-moz-opacity: 1.0; -moz-opacity: 1.0;
} }
select.txt { input.txt, textarea.txt, select.txt, .formfld {
font-family: arial;
font-size: 12px;
width: 98.75%;
border: solid 1px #CCCCCC;
color: #666666;
background-color: #EFEFEF;
background-repeat:repeat-x;
height: 19px;
}
textarea.txt {
font-family: arial;
font-size: 12px;
width: 98.75%;
border: solid 1px #CCCCCC;
color: #666666;
background-color: #EFEFEF;
background-repeat:repeat-x;
overflow: auto;
padding: 4px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
}
input.txt, .formfld {
font-family: arial; font-family: arial;
font-size: 12px; font-size: 12px;
color: #000; color: #000;
width: 50%; width: 50%;
text-align: left; text-align: left;
padding: 5px 5px; padding: 5px;
border: 1px solid #c0c0c0; border: 1px solid #c0c0c0;
background-color: #fff; background-color: #fff;
-webkit-box-shadow: 0px 0px 3px #cddaf0 inset; -webkit-box-shadow: 0px 0px 3px #cddaf0 inset;
@ -207,6 +183,11 @@ input.txt:focus, .formfld:focus {
box-shadow: 0px 0px 5px #cddaf0; box-shadow: 0px 0px 5px #cddaf0;
} }
select.formfld {
height: 27px;
padding: 4px;
}
input.txt { input.txt {
width: 98.75%; width: 98.75%;
} }
@ -746,14 +727,21 @@ table tr:nth-last-child(-5) td:first-of-type {
//logged in show the domains block //logged in show the domains block
if (strlen($_SESSION["username"]) > 0 && permission_exists("domain_select") && count($_SESSION['domains']) > 1) { if (strlen($_SESSION["username"]) > 0 && permission_exists("domain_select") && count($_SESSION['domains']) > 1) {
//add multi-lingual support
require_once "themes/enhanced/app_languages.php";
foreach($text as $key => $value) {
$text[$key] = $value[$_SESSION['domain']['language']['code']];
}
?> ?>
<div id="domains_container"> <div id="domains_container">
<div id="domains_block"> <div id="domains_block">
<div id="domains_header"> <div id="domains_header">
<input id="domains_hide" type="button" class="btn" style="float: right" value="Close"> <input id="domains_hide" type="button" class="btn" style="float: right" value="<?=$text['button-close']?>">
<b style="color: #000;">Domain Selector</b> <b style="color: #000;"><?=$text['title-domains']?></b>
<br><br> <br><br>
<input type="text" id="domain_filter" style="width: 100%;" value="Search..." onfocus="(this.value == 'Search...') ? this.value = '' : void(0);" onblur="(this.value == '') ? this.value = 'Search...' : void(0);" onkeyup="domain_search(this.value);"> <input type="text" id="domain_filter" style="width: 100%;" value="<?=$text['label-search']?>" onfocus="(this.value == '<?=$text['label-search']?>') ? this.value = '' : void(0);" onblur="(this.value == '') ? this.value = '<?=$text['label-search']?>' : void(0);" onkeyup="domain_search(this.value);">
</div> </div>
<div id="domains_list"> <div id="domains_list">
<? <?
@ -808,7 +796,7 @@ table tr:nth-last-child(-5) td:first-of-type {
} }
?> ?>
</td> </td>
<td width='50%' class='' align='right' valign='middle'> <td width='50%' style='padding-right: 15px;' align='right' valign='middle'>
<?php <?php
//logged in show the domains block //logged in show the domains block
if (strlen($_SESSION["username"]) > 0 && permission_exists("domain_select") && count($_SESSION['domains']) > 1) { if (strlen($_SESSION["username"]) > 0 && permission_exists("domain_select") && count($_SESSION['domains']) > 1) {