BUG 0000 improving the documents option (add, delete folders and docuemnts)

improving Code add, remove folder and documents
This commit is contained in:
Carlos Pacha
2011-11-14 19:01:53 -04:00
parent 8ec28d5f71
commit 5b2efe5ea5
4 changed files with 232 additions and 92 deletions

View File

@@ -9,7 +9,7 @@ if(isset($_GET['action'])){
}
$oHeadPublisher =& headPublisher::getSingleton();
global $RBAC;
switch($page){
case "startCase":
@@ -30,7 +30,10 @@ switch($page){
$Config['pageSize'] = isset($configPage['pageSize']) ? $configPage['pageSize'] : 20;
$oHeadPublisher->assign('CONFIG', $Config);
$oHeadPublisher->assign('FORMATS',$c->getFormats());
$oHeadPublisher->assign('permitodelete' ,$RBAC->userCanAccess('PM_FOLDERS_DELETE') );
$oHeadPublisher->assign('permitoaddfile' ,$RBAC->userCanAccess('PM_FOLDERS_ADD_FILE') );
$oHeadPublisher->assign('permitoaddfolder',$RBAC->userCanAccess('PM_FOLDERS_ADD_FOLDER'));
$oHeadPublisher->usingExtJs('ux.locationbar/Ext.ux.LocationBar');
$oHeadPublisher->usingExtJs('ux.statusbar/ext-statusbar');
@@ -46,4 +49,4 @@ switch($page){
}
G::RenderPage('publish', 'extJs');
G::RenderPage('publish', 'extJs');