Cosmetics on menus, details and the top bar...

SVN:trunk[3757]
This commit is contained in:
Denis Flaven
2015-09-12 18:46:39 +00:00
parent 7f64982fc0
commit 02aa8339f8
11 changed files with 95 additions and 55 deletions

View File

@@ -548,7 +548,7 @@ class RuntimeDashboard extends Dashboard
{ {
$oPage->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.iframe-transport.js'); $oPage->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.iframe-transport.js');
$oPage->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.fileupload.js'); $oPage->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.fileupload.js');
$sEditMenu = "<td><span id=\"DashboardMenu\"><ul><li><img src=\"../images/edit.png\"><ul>"; $sEditMenu = "<td><span id=\"DashboardMenu\"><ul><li><img src=\"../images/pencil-menu.png\"><ul>";
$aActions = array(); $aActions = array();
$oEdit = new JSPopupMenuItem('UI:Dashboard:Edit', Dict::S('UI:Dashboard:Edit'), "return EditDashboard('{$this->sId}')"); $oEdit = new JSPopupMenuItem('UI:Dashboard:Edit', Dict::S('UI:Dashboard:Edit'), "return EditDashboard('{$this->sId}')");

View File

@@ -1402,13 +1402,16 @@ class MenuBlock extends DisplayBlock
else else
{ {
$id = $oObj->GetKey(); $id = $oObj->GetKey();
if ($_SERVER['REQUEST_METHOD'] == 'GET') if (utils::ReadParam('operation') == 'details')
{ {
$sRefreshAction = "window.location.reload();"; if ($_SERVER['REQUEST_METHOD'] == 'GET')
} {
else $sRefreshAction = "window.location.reload();";
{ }
$sRefreshAction = "window.location.href='".ApplicationContext::MakeObjectUrl(get_class($oObj), $id)."';"; else
{
$sRefreshAction = "window.location.href='".ApplicationContext::MakeObjectUrl(get_class($oObj), $id)."';";
}
} }
$bLocked = false; $bLocked = false;

View File

@@ -798,14 +798,10 @@ EOF
// Render the text of the global search form // Render the text of the global search form
$sText = htmlentities(utils::ReadParam('text', '', false, 'raw_data'), ENT_QUOTES, 'UTF-8'); $sText = htmlentities(utils::ReadParam('text', '', false, 'raw_data'), ENT_QUOTES, 'UTF-8');
$sOnClick = ""; $sOnClick = " onclick=\"if ($('#global-search-input').val() != '') { $('#global-search form').submit(); } \"";
if (empty($sText)) if (empty($sText))
{ {
// if no search text is supplied then
// 1) the search text is filled with "your search"
// 2) clicking on it will erase it
$sText = Dict::S("UI:YourSearch"); $sText = Dict::S("UI:YourSearch");
$sOnClick = " onclick=\"this.value='';this.onclick=null;\"";
} }
if ($this->IsPrintableVersion()) if ($this->IsPrintableVersion())
@@ -828,7 +824,7 @@ EOF
{ {
$sLogonMessage = Dict::Format('UI:LoggedAsMessage', $sUserName); $sLogonMessage = Dict::Format('UI:LoggedAsMessage', $sUserName);
} }
$sLogOffMenu = "<span id=\"logOffBtn\"><ul><li><img src=\"../images/onOffBtn.png\"><ul>"; $sLogOffMenu = "<span id=\"logOffBtn\"><ul><li><img src=\"../images/on-off-menu.png\"><ul>";
$sLogOffMenu .= "<li><span>$sLogonMessage</span></li>\n"; $sLogOffMenu .= "<li><span>$sLogonMessage</span></li>\n";
$aActions = array(); $aActions = array();
@@ -938,10 +934,10 @@ EOF
$sHtml .= '<div class="ui-layout-center">'; $sHtml .= '<div class="ui-layout-center">';
$sHtml .= ' <div id="top-bar" style="width:100%">'; $sHtml .= ' <div id="top-bar" style="width:100%">';
$sHtml .= self::FilterXSS($sApplicationBanner); $sHtml .= self::FilterXSS($sApplicationBanner);
$sHtml .= ' <div id="global-search"><form action="'.utils::GetAbsoluteUrlAppRoot().'pages/UI.php"><table><tr><td></td><td id="g-search-input"><input type="text" name="text" value="'.$sText.'"'.$sOnClick.'/></td>'; $sHtml .= ' <div id="global-search"><form action="'.utils::GetAbsoluteUrlAppRoot().'pages/UI.php"><table><tr><td></td><td><div id="global-search-area"><input id="global-search-input" type="text" name="text" placeholder="'.$sText.'"></input><div '.$sOnClick.' id="global-search-image"></div></div></td>';
$sHtml .= '<td><input type="image" src="../images/searchBtn.png"/></a></td>'; //$sHtml .= '<td><input type="image" src="../images/searchBtn.png"/></a></td>';
$sHtml .= '<td><a style="background:transparent;" href="'.$sOnlineHelpUrl.'" target="_blank"><img style="border:0;padding-left:20px;padding-right:10px;" title="'.Dict::S('UI:Help').'" src="../images/help.png"/></td>'; $sHtml .= '<td><a id="help-link" href="'.$sOnlineHelpUrl.'" target="_blank"><img title="'.Dict::S('UI:Help').'" src="../images/help.png"/></td>';
$sHtml .= '<td style="padding-right:20px;padding-left:10px;">'.self::FilterXSS($sLogOffMenu).'</td><td><input type="hidden" name="operation" value="full_text"/></td></tr></table></form></div>'; $sHtml .= '<td>'.self::FilterXSS($sLogOffMenu).'</td><td><input type="hidden" name="operation" value="full_text"/></td></tr></table></form></div>';
//echo '<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="hidden" name="operation" value="full_text"/></td></tr></table></form></div>'; //echo '<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="hidden" name="operation" value="full_text"/></td></tr></table></form></div>';
$sHtml .= ' </div>'; $sHtml .= ' </div>';
$sHtml .= ' <div class="ui-layout-content" style="overflow:auto;">'; $sHtml .= ' <div class="ui-layout-content" style="overflow:auto;">';

View File

@@ -619,7 +619,8 @@ div.actions_menu > ul > li {
list-style: none; list-style: none;
vertical-align: middle; vertical-align: middle;
margin: 0; margin: 0;
padding: 0; padding-left: 10px;
padding-right: 10px;
cursor: pointer; cursor: pointer;
} }
@@ -630,7 +631,6 @@ div.actions_menu > ul > li {
margin: 0; margin: 0;
padding: 0; padding: 0;
height: 25px; height: 25px;
noline-height: 25px;
} }
@@ -844,6 +844,7 @@ input.dp-applied {
.SearchDrawer label { .SearchDrawer label {
background: #d6e8ef; background: #d6e8ef;
color: black; color: black;
text-align: right;
} }
@@ -1147,18 +1148,11 @@ div#logo div {
#global-search { #global-search {
height: 55px; height: 55px;
float: right; float: right;
background: url(../images/banner-search.png) no-repeat;
nopadding-top: 15px;
text-align: right; text-align: right;
overflow-y: hidden; overflow-y: hidden;
} }
#global-search > form div {
padding-left: 4px;
}
#global-search table, #global-search tr, #global-search tr td { #global-search table, #global-search tr, #global-search tr td {
padding: 0; padding: 0;
border: 0; border: 0;
@@ -1170,19 +1164,48 @@ div#logo div {
} }
#global-search > form input[type="text"] { #global-search-area {
border: 0; line-height: 55px;
height: 18px;
width: 180px;
padding-top: 4;
background: transparent;
} }
#global-search > form tr td#g-search-input { #global-search-input {
padding-top: 3px; vertical-align: middle;
padding-left: 3px; -moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
border: 1px #cccccc solid;
height: 18px;
width: 180px;
padding: 3px;
background: white;
display: inline-block;
}
#global-search-image {
vertical-align: middle;
background: url(../images/search.png) center center no-repeat;
display: inline-block;
width: 28px;
height: 30px;
margin-left: -8px;
cursor: pointer;
}
#help-link img {
padding: 0;
border: 0;
}
#help-link {
padding: 0;
border: 0;
background: transparent; background: transparent;
margin-left: 15px;
margin-right: 10px;
} }
@@ -1414,7 +1437,7 @@ span.form_validation {
table.details { table.details {
border-collapse: collapse; border-collapse: collapse;
noborder-bottom: 2px white solid; noborder-bottom: 2px white solid;
width: 100%; nowidth: 100%;
} }
@@ -1762,7 +1785,7 @@ a.summary, a.summary:hover {
#DashboardMenu li ul li a:hover { #DashboardMenu li ul li a:hover {
background: #d81515; background: #e87c1e;
color: white; color: white;
font-weight: bold; font-weight: bold;
list-style: none; list-style: none;

View File

@@ -472,7 +472,8 @@ div.actions_menu > ul > li {
list-style: none; list-style: none;
vertical-align: middle; vertical-align: middle;
margin: 0; margin: 0;
padding: 0; padding-left: 10px;
padding-right: 10px;
cursor: pointer; cursor: pointer;
} }
#logOffBtn > ul { #logOffBtn > ul {
@@ -481,7 +482,6 @@ div.actions_menu > ul > li {
margin: 0; margin: 0;
padding: 0; padding: 0;
height: 25px; height: 25px;
noline-height: 25px;
} }
.itop_popup li a, #logOffBtn li a { .itop_popup li a, #logOffBtn li a {
@@ -653,6 +653,7 @@ input.dp-applied {
.SearchDrawer label { .SearchDrawer label {
background: $complement-light; background: $complement-light;
color: #000; color: #000;
text-align: right;
} }
.SearchDrawer h1 { .SearchDrawer h1 {
color: #000; color: #000;
@@ -868,14 +869,9 @@ div#logo div {
#global-search { #global-search {
height: 55px; height: 55px;
float: right; float: right;
background: url(../images/banner-search.png) no-repeat;
nopadding-top: 15px;
text-align: right; text-align: right;
overflow-y: hidden; overflow-y: hidden;
} }
#global-search > form div {
padding-left: 4px;
}
#global-search table, #global-search tr td, #global-search tr { #global-search table, #global-search tr td, #global-search tr {
padding: 0; padding: 0;
border: 0; border: 0;
@@ -885,17 +881,40 @@ div#logo div {
overflow-y: hidden; overflow-y: hidden;
vertical-align: middle; vertical-align: middle;
} }
#global-search > form input[type="text"] { #global-search-area {
border: 0; line-height: 55px;
}
#global-search-input {
vertical-align: middle;
-moz-border-radius: 6px;
-webkit-border-radius: 6px;
border-radius: 6px;
border: 1px #CCC solid;
height: 18px; height: 18px;
width: 180px; width: 180px;
padding-top: 4; padding: 3px;
background: transparent; background: #fff;
display: inline-block;
} }
#global-search > form tr td#g-search-input { #global-search-image {
padding-top: 3px; vertical-align: middle;
padding-left: 3px; background: url(../images/search.png) center center no-repeat;
display:inline-block;
width: 28px;
height: 30px;
margin-left: -8px;
cursor: pointer;
}
#help-link img {
padding: 0;
border: 0;
}
#help-link {
padding: 0;
border: 0;
background: transparent; background: transparent;
margin-left: 15px;
margin-right: 10px;
} }
div.icon { div.icon {
width: 20px; width: 20px;
@@ -1055,7 +1074,7 @@ span.form_validation {
table.details { table.details {
border-collapse: collapse; border-collapse: collapse;
noborder-bottom: 2px #fff solid; noborder-bottom: 2px #fff solid;
width:100%; nowidth:100%;
} }
table.details>tbody>tr>td { table.details>tbody>tr>td {
border-bottom: 2px #ddd solid; border-bottom: 2px #ddd solid;
@@ -1308,8 +1327,8 @@ a.summary, a.summary:hover {
z-index: 999; z-index: 999;
} }
#DashboardMenu li ul li a:hover{ #DashboardMenu li ul li a:hover{
background: #D81515; background: $popup-menu-highlight-color;
color: #fff; color: $popup-menu-text-higlight-color;
font-weight: bold; font-weight: bold;
list-style: none; list-style: none;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

After

Width:  |  Height:  |  Size: 433 B

BIN
images/on-off-menu.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 468 B

BIN
images/pencil-menu.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 350 B

BIN
images/search.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 527 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 430 B

After

Width:  |  Height:  |  Size: 498 B

View File

@@ -511,7 +511,6 @@ try
if ($iErrors == 0) if ($iErrors == 0)
{ {
$oP->set_title(Dict::S('UI:SearchResultsPageTitle')); $oP->set_title(Dict::S('UI:SearchResultsPageTitle'));
$oP->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/xlsx-export.js');
$oP->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/tabularfieldsselector.js'); $oP->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/tabularfieldsselector.js');
$oP->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.dragtable.js'); $oP->add_linked_script(utils::GetAbsoluteUrlAppRoot().'js/jquery.dragtable.js');
$oP->add_linked_stylesheet(utils::GetAbsoluteUrlAppRoot().'css/dragtable.css'); $oP->add_linked_stylesheet(utils::GetAbsoluteUrlAppRoot().'css/dragtable.css');