BUG 8732 Migrate Logo Setup to ExtJS SOLVED

- Migrate Logo Setup to ExtJS from master branch
- Changing in the selection of image and adjustments in Logo Setup Options, ExtJS migrated from the master branch.
This commit is contained in:
Hector Cortez
2012-03-16 17:18:19 -04:00
parent bbe7b10653
commit d2fea52fe8
5 changed files with 973 additions and 2 deletions

View File

@@ -100,7 +100,6 @@ class Admin extends Controller
* getting email configuration
* @autor Alvaro <alvaro@colosa.com>
*/
public function emails()
{
global $RBAC;
@@ -110,4 +109,38 @@ class Admin extends Controller
//render content
G::RenderPage('publish', 'extJs');
}
/**
* getting default list
* @param string $httpData->PRO_UID (opional)
*/
public function pmLogo($httpData)
{
global $RBAC;
$RBAC->requirePermissions('PM_SETUP_ADVANCE');
G::LoadClass('configuration');
$c = new Configurations();
$configPage = $c->getConfiguration('additionalTablesList', 'pageSize', '', $_SESSION['USER_LOGGED']);
$Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20;
$this->includeExtJS('admin/pmLogo');
$this->setView('admin/pmLogo');
//assigning js variables
$this->setJSVar('FORMATS', $c->getFormats());
$this->setJSVar('CONFIG', $Config);
$this->setJSVar('PRO_UID', isset($_GET['PRO_UID'])? $_GET['PRO_UID'] : false);
if (isset($_SESSION['_cache_pmtables'])) {
unset($_SESSION['_cache_pmtables']);
}
if (isset($_SESSION['ADD_TAB_UID'])) {
unset($_SESSION['ADD_TAB_UID']);
}
//render content
G::RenderPage('publish', 'extJs');
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -27,7 +27,8 @@ global $RBAC;
if ($RBAC->userCanAccess('PM_SETUP') == 1 ) {
//settings options
$G_TMP_MENU->AddIdRawOption('LOGO', 'uplogo', G::LoadTranslation('ID_LOGO'), 'icon-pmlogo.png', '', 'settings');
// $G_TMP_MENU->AddIdRawOption('LOGO', 'uplogo', G::LoadTranslation('ID_LOGO'), 'icon-pmlogo.png', '', 'settings');
$G_TMP_MENU->AddIdRawOption('LOGO', '../admin/pmLogo', G::LoadTranslation('ID_LOGO'), 'icon-pmlogo.png','', 'settings');
$G_TMP_MENU->AddIdRawOption('EMAILS','../admin/emails', G::LoadTranslation('ID_EMAIL'), 'icon-email-settings1.png', '', 'settings');
$G_TMP_MENU->AddIdRawOption('CALENDAR', 'calendarList', G::LoadTranslation('ID_CALENDAR'), 'icon-calendar.png', '', 'settings' );
//if ($RBAC->userCanAccess('PM_SETUP_ADVANCE') == 1)

View File

@@ -0,0 +1,109 @@
<head>
<title>DataView</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body >
<div id="container">
<div id="left"></div>
<div id="right">
<div id="right-top"></div>
<div id="right-bottom"></div>
</div>
<div class="clear"></div>
</div>
</body>
<style type="text/css">
#container {
padding : 10px;
width : 820px;
}
#left {
float : left;
}
#right {
float : right;
}
#right-bottom {
margin-top : 10px;
}
.clear {
clear : both;
}
.details {
padding : 10px;
font-family : "Arial";
font-size : 11px;
}
.details-info {
margin-top : 10px;
}
.details-info span {
display : block;
}
.details-info span a {
color : #0066cc;
}
.details-info span a:hover {
text-decoration : none;
}
*html body {
overflow-x : hidden !important;
}
body {
overflow-x : hidden !important;
background-color : white !important;
}
/**/
#images-view .x-panel-body {
background : white;
font : 11px Arial, Helvetica, sans-serif;
}
#images-view .thumb {
background : #FFFFFF;
padding : 3px;
}
#images-view .thumb img {
height : 50px !important;
width : 255px !important;
}
#images-view .thumb-wrap {
float : left;
display : inline;
margin : 4px;
margin-right : 0;
padding : 5px;
border : 1px solid white;
}
#images-view .thumb-wrap span {
display : block;
overflow : hidden;
text-align : center;
}
#images-view .x-view-over {
border : 1px solid #99bbe8;
opacity : 0.5;
background : #efefef url(/images/ext/row-over.gif) repeat-x left top;
padding : 5px;
}
#images-view .x-view-selected {
border : 1px solid #99bbe8;
background : #eff5fb url(/images/selected.gif) no-repeat right bottom;
opacity : 0.5;
padding : 5px;
}
#images-view .x-view-selected .thumb {
background : transparent;
}
#images-view .loading-indicator {
font-size : 11px;
background-image : url('../../resources/images/default/grid/loading.gif');
background-repeat : no-repeat;
background-position : left;
padding-left : 20px;
margin : 10px;
}
</style>

File diff suppressed because it is too large Load Diff