Doc System, change hardcoded labels
This commit is contained in:
@@ -38,15 +38,15 @@ class AppProxy extends HttpProxyController
|
||||
if (!isset($_SESSION['PROCESS']) && !isset($httpData->pro)) {
|
||||
$caseLoad = $case->loadCase($appUid);
|
||||
$httpData->pro = $caseLoad['PRO_UID'];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if(!isset($httpData->pro) || empty($httpData->pro) )
|
||||
{
|
||||
$proUid = $_SESSION['PROCESS'];
|
||||
} else {
|
||||
$proUid = $httpData->pro;
|
||||
}
|
||||
|
||||
|
||||
if(!isset($httpData->tas) || empty($httpData->tas))
|
||||
{
|
||||
$tasUid = $_SESSION['TASK'];
|
||||
@@ -56,7 +56,7 @@ class AppProxy extends HttpProxyController
|
||||
//$proUid = (!isset($httpData->pro)) ? $_SESSION['PROCESS'] : $httpData->pro;
|
||||
//$tasUid = (!isset($httpData->tas)) ? ((isset($_SESSION['TASK'])) ? $_SESSION['TASK'] : '') : $httpData->tas;
|
||||
$usrUid = $_SESSION['USER_LOGGED'];
|
||||
|
||||
|
||||
$respView = $case->getAllObjectsFrom( $proUid, $appUid, $tasUid, $usrUid, 'VIEW' );
|
||||
$respBlock = $case->getAllObjectsFrom( $proUid, $appUid, $tasUid, $usrUid, 'BLOCK' );
|
||||
|
||||
@@ -68,7 +68,7 @@ class AppProxy extends HttpProxyController
|
||||
//require_once ("classes/model/AppNotes.php");
|
||||
|
||||
if (! isset( $appUid )) {
|
||||
throw new Exception( 'Can\'t resolve the Apllication ID for this request.' );
|
||||
throw new Exception( G::LoadTranslation('ID_RESOLVE_APPLICATION_ID' ) );
|
||||
}
|
||||
|
||||
$usrUid = isset( $_SESSION['USER_LOGGED'] ) ? $_SESSION['USER_LOGGED'] : "";
|
||||
@@ -108,7 +108,7 @@ class AppProxy extends HttpProxyController
|
||||
|
||||
//Disabling the controller response because we handle a special behavior
|
||||
$this->setSendResponse(false);
|
||||
|
||||
|
||||
//Add note case
|
||||
$appNote = new AppNotes();
|
||||
$response = $appNote->addCaseNote($appUid, $usrUid, $noteContent, intval($httpData->swSendMail));
|
||||
@@ -193,7 +193,7 @@ class AppProxy extends HttpProxyController
|
||||
function getSummary ($httpData)
|
||||
{
|
||||
$labels = array ();
|
||||
$form = new Form( 'cases/cases_Resume', PATH_XMLFORM, SYS_LANG );
|
||||
$form = new Form( 'cases/cases_Resume', PATH_XMLFORM, SYS_LANG ); //este es el problema!!!!!
|
||||
G::LoadClass( 'case' );
|
||||
$case = new Cases();
|
||||
|
||||
@@ -231,41 +231,26 @@ class AppProxy extends HttpProxyController
|
||||
$taskData = $task->load( $applicationFields['TAS_UID'] );
|
||||
$currentUser = $applicationFields['CURRENT_USER'] != '' ? $applicationFields['CURRENT_USER'] : '[' . G::LoadTranslation( 'ID_UNASSIGNED' ) . ']';
|
||||
|
||||
$data[] = array ('label' => $labels['PRO_TITLE'],'value' => $processData['PRO_TITLE'],'section' => $labels['TITLE1']
|
||||
);
|
||||
$data[] = array ('label' => $labels['TITLE'],'value' => $applicationFields['TITLE'],'section' => $labels['TITLE1']
|
||||
);
|
||||
$data[] = array ('label' => $labels['APP_NUMBER'],'value' => $applicationFields['APP_NUMBER'],'section' => $labels['TITLE1']
|
||||
);
|
||||
$data[] = array ('label' => $labels['STATUS'],'value' => $applicationFields['STATUS'],'section' => $labels['TITLE1']
|
||||
);
|
||||
$data[] = array ('label' => $labels['APP_UID'],'value' => $applicationFields['APP_UID'],'section' => $labels['TITLE1']
|
||||
);
|
||||
$data[] = array ('label' => $labels['CREATOR'],'value' => $applicationFields['CREATOR'],'section' => $labels['TITLE1']
|
||||
);
|
||||
$data[] = array ('label' => $labels['CREATE_DATE'],'value' => $applicationFields['CREATE_DATE'],'section' => $labels['TITLE1']
|
||||
);
|
||||
$data[] = array ('label' => $labels['UPDATE_DATE'],'value' => $applicationFields['UPDATE_DATE'],'section' => $labels['TITLE1']
|
||||
);
|
||||
$data[] = array ('label' => $labels['DESCRIPTION'],'value' => $applicationFields['DESCRIPTION'],'section' => $labels['TITLE1']
|
||||
);
|
||||
$data[] = array ('label' => $labels['PRO_TITLE'],'value' => $processData['PRO_TITLE'],'section' => $labels['TITLE1']);
|
||||
$data[] = array ('label' => $labels['TITLE'],'value' => $applicationFields['TITLE'],'section' => $labels['TITLE1']);
|
||||
$data[] = array ('label' => $labels['APP_NUMBER'],'value' => $applicationFields['APP_NUMBER'],'section' => $labels['TITLE1']);
|
||||
$data[] = array ('label' => $labels['STATUS'],'value' => $applicationFields['STATUS'],'section' => $labels['TITLE1']);
|
||||
$data[] = array ('label' => $labels['APP_UID'],'value' => $applicationFields['APP_UID'],'section' => $labels['TITLE1']);
|
||||
$data[] = array ('label' => $labels['CREATOR'],'value' => $applicationFields['CREATOR'],'section' => $labels['TITLE1']);
|
||||
$data[] = array ('label' => $labels['CREATE_DATE'],'value' => $applicationFields['CREATE_DATE'],'section' => $labels['TITLE1']);
|
||||
$data[] = array ('label' => $labels['UPDATE_DATE'],'value' => $applicationFields['UPDATE_DATE'],'section' => $labels['TITLE1']);
|
||||
$data[] = array ('label' => $labels['DESCRIPTION'],'value' => $applicationFields['DESCRIPTION'],'section' => $labels['TITLE1']);
|
||||
|
||||
// note added by krlos pacha carlos[at]colosa[dot]com
|
||||
//getting this field if it doesn't exist. Related 7994 bug
|
||||
$taskData['TAS_TITLE'] = (array_key_exists( 'TAS_TITLE', $taskData )) ? $taskData['TAS_TITLE'] : Content::Load( "TAS_TITLE", "", $applicationFields['TAS_UID'], SYS_LANG );
|
||||
|
||||
$data[] = array ('label' => $labels['TAS_TITLE'],'value' => $taskData['TAS_TITLE'],'section' => $labels['TITLE2']
|
||||
);
|
||||
$data[] = array ('label' => $labels['CURRENT_USER'],'value' => $currentUser,'section' => $labels['TITLE2']
|
||||
);
|
||||
$data[] = array ('label' => $labels['DEL_DELEGATE_DATE'],'value' => $applicationFields['DEL_DELEGATE_DATE'],'section' => $labels['TITLE2']
|
||||
);
|
||||
$data[] = array ('label' => $labels['DEL_INIT_DATE'],'value' => $applicationFields['DEL_INIT_DATE'],'section' => $labels['TITLE2']
|
||||
);
|
||||
$data[] = array ('label' => $labels['DEL_TASK_DUE_DATE'],'value' => $applicationFields['DEL_TASK_DUE_DATE'],'section' => $labels['TITLE2']
|
||||
);
|
||||
$data[] = array ('label' => $labels['DEL_FINISH_DATE'],'value' => $applicationFields['DEL_FINISH_DATE'],'section' => $labels['TITLE2']
|
||||
);
|
||||
$data[] = array ('label' => $labels['TAS_TITLE'],'value' => $taskData['TAS_TITLE'],'section' => $labels['TITLE2']);
|
||||
$data[] = array ('label' => $labels['CURRENT_USER'],'value' => $currentUser,'section' => $labels['TITLE2']);
|
||||
$data[] = array ('label' => $labels['DEL_DELEGATE_DATE'],'value' => $applicationFields['DEL_DELEGATE_DATE'],'section' => $labels['TITLE2']);
|
||||
$data[] = array ('label' => $labels['DEL_INIT_DATE'],'value' => $applicationFields['DEL_INIT_DATE'],'section' => $labels['TITLE2']);
|
||||
$data[] = array ('label' => $labels['DEL_TASK_DUE_DATE'],'value' => $applicationFields['DEL_TASK_DUE_DATE'],'section' => $labels['TITLE2']);
|
||||
$data[] = array ('label' => $labels['DEL_FINISH_DATE'],'value' => $applicationFields['DEL_FINISH_DATE'],'section' => $labels['TITLE2']);
|
||||
//$data[] = array('label'=>$labels['DYN_UID'] , 'value' => $processData['PRO_DYNAFORMS']['PROCESS'];, 'section'=>$labels['DYN_UID']);
|
||||
return $data;
|
||||
}
|
||||
|
||||
@@ -173,7 +173,7 @@ class Dashboard extends Controller
|
||||
{
|
||||
try {
|
||||
if (! isset( $_SESSION['USER_LOGGED'] )) {
|
||||
throw new Exception( 'The session has expired.' );
|
||||
throw new Exception( G::LoadTranslation('ID_SESSION_EXPIRED') );
|
||||
}
|
||||
return $this->pmDashlet->getDashletsInstancesForUser( $_SESSION['USER_LOGGED'] );
|
||||
} catch (Exception $error) {
|
||||
|
||||
@@ -323,9 +323,8 @@ class Main extends Controller
|
||||
$this->setVar( 'logo_company', $this->getCompanyLogo() );
|
||||
$this->setVar( 'pmos_version', System::getVersion() );
|
||||
|
||||
$footerText = 'Copyright © 2003-' . date( 'Y' ) . ' Colosa, Inc. All rights reserved.';
|
||||
$adviseText = 'Supplied free of charge with no support, certification, warranty,
|
||||
maintenance nor indemnity by Colosa and its Certified Partners. ';
|
||||
$footerText = G::LoadTranslation('ID_COPYRIGHT_FROM') . date( 'Y' ) . G::LoadTranslation('ID_COPYRIGHT_COL');
|
||||
$adviseText = G::LoadTranslation('ID_COLOSA_AND_CERTIFIED_PARTNERS');
|
||||
$this->setVar( 'footer_text', $footerText );
|
||||
$this->setVar( 'advise_text', $adviseText );
|
||||
|
||||
|
||||
@@ -366,7 +366,7 @@ class pmTablesProxy extends HttpProxyController
|
||||
$rtOld = new ReportTable();
|
||||
$existReportTableOld = $rtOld->load( $row->id );
|
||||
if (count($existReportTableOld) == 0) {
|
||||
throw new Exception( "Table does not exist... skipped!\n" );
|
||||
throw new Exception( G::LoadTranslation('ID_TABLE_NOT_EXIST_SKIPPED') );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -388,10 +388,10 @@ class pmTablesProxy extends HttpProxyController
|
||||
|
||||
if ($errors == '') {
|
||||
$result->success = true;
|
||||
$result->message = "$count tables removed Successfully.";
|
||||
$result->message = $count.G::LoadTranslation( 'ID_TABLES_REMOVED_SUCCESSFULLY' );
|
||||
} else {
|
||||
$result->success = false;
|
||||
$result->message = "$count tables removed but with errors.\n$errors";
|
||||
$result->message = $count. G::LoadTranslation( 'ID_TABLES_REMOVED_WITH_ERRORS' ) .$errors;
|
||||
}
|
||||
|
||||
$result->errors = $errors;
|
||||
@@ -486,7 +486,7 @@ class pmTablesProxy extends HttpProxyController
|
||||
foreach ($obj->getValidationFailures() as $objValidationFailure) {
|
||||
$msg .= $objValidationFailure->getMessage() . "\n";
|
||||
}
|
||||
throw new Exception( 'Error trying insert into "' . $table['ADD_TAB_NAME'] . "\"\n" . $msg );
|
||||
throw new Exception( G::LoadTranslation('ID_ERROR_TRYING_INSERT'). '"' . $table['ADD_TAB_NAME'] . "\"\n" . $msg );
|
||||
}
|
||||
|
||||
$index = G::encrypt( implode( ',', $primaryKeysValues ), 'pmtable' );
|
||||
@@ -496,7 +496,7 @@ class pmTablesProxy extends HttpProxyController
|
||||
|
||||
if ($toSave) {
|
||||
$result->success = true;
|
||||
$result->message = 'Record saved successfully';
|
||||
$result->message = G::LoadTranslation('ID_RECORD_SAVED_SUCCESFULLY');
|
||||
$result->rows = $obj->toArray( BasePeer::TYPE_FIELDNAME );
|
||||
$result->rows['__index__'] = $index;
|
||||
} else {
|
||||
@@ -1374,8 +1374,7 @@ class pmTablesProxy extends HttpProxyController
|
||||
$excludeFieldsList = array ('title','subtitle','link','file','button','reset','submit','listbox','checkgroup','grid','javascript', ''
|
||||
);
|
||||
|
||||
$labelFieldsTypeList = array ('dropdown','radiogroup'
|
||||
);
|
||||
$labelFieldsTypeList = array ('dropdown','radiogroup');
|
||||
G::loadSystem( 'dynaformhandler' );
|
||||
$index = 0;
|
||||
|
||||
|
||||
@@ -944,8 +944,8 @@ function copyMoveAction($type)
|
||||
$itemField["displayField"] = "FOLDER_NAME";
|
||||
$itemField["selectOnFocus"] = true;
|
||||
$itemField["tpl"] = '<tpl for="."><div ext:qtip="{field2}" class="x-combo-list-item">{field2}</div></tpl>';
|
||||
$itemField["fieldLabel"] = "Destination";
|
||||
$itemField["emptyText"] = "Select a directory...";
|
||||
$itemField["fieldLabel"] = G::LoadTranslation('ID_DESTINATION');
|
||||
$itemField["emptyText"] = G::LoadTranslation('ID_SELECT_DIRECTORY');
|
||||
$itemField["width"] = 390;
|
||||
$itemField["allowBlank"]=false;
|
||||
$copyDialog["items"][]=$itemField;
|
||||
@@ -1359,11 +1359,11 @@ function uploadExternalDocument()
|
||||
$response['message']=$err_msg;
|
||||
$response['success']=false;
|
||||
} elseif ($emptyInstances==$uploadedInstances) {
|
||||
$response['error']="You may upload at least one file";
|
||||
$response['message']="You may upload at least one file";
|
||||
$response['error']= G::LoadTranslation('ID_UPLOAD_LEAST_FILE');
|
||||
$response['message']= G::LoadTranslation('ID_UPLOAD_LEAST_FILE');
|
||||
$response['success']=false;
|
||||
} else {
|
||||
$response['error']="Upload complete";
|
||||
$response['error']= G::LoadTranslation('ID_UPLOAD_COMPLETE');
|
||||
$response['message']="Upload complete";
|
||||
$response['success']=true;
|
||||
}
|
||||
@@ -1409,7 +1409,7 @@ function newFolder()
|
||||
$formNewFolder["id"]= "simpleform";
|
||||
$formNewFolder["labelWidth"]=125;
|
||||
$formNewFolder["url"]="../appFolder/appFolderAjax.php";
|
||||
$formNewFolder["dialogtitle"]= "Create New Folder";
|
||||
$formNewFolder["dialogtitle"]= G::LoadTranslation('ID_CREATE_FOLDER');
|
||||
$formNewFolder["frame"]= true;
|
||||
$formNewFolder["items"]= array();
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ try {
|
||||
$dataset->next();
|
||||
}
|
||||
|
||||
$aFields = $RBAC->getAuthSource( $_POST['sUID'] );
|
||||
$aFields = $RBAC->getAuthSource( $_POST['sUID'] );
|
||||
//G::LoadThirdParty( 'pear/json', 'class.json' );
|
||||
//$oJSON = new Services_JSON();
|
||||
$i = 0;
|
||||
|
||||
@@ -96,7 +96,7 @@ try {
|
||||
$oUser->load( $val['USR_UID'] );
|
||||
$delegations[$key]['USR_NAME'] = $oUser->getUsrFirstname() . ' ' . $oUser->getUsrLastname();
|
||||
} else {
|
||||
$delegations[$key]['USR_NAME'] = 'Unknow user (Sub-Process User)';
|
||||
$delegations[$key]['USR_NAME'] = G::LoadTranslation('ID_UNKNOW_USER') . G::LoadTranslation('ID_SUBPROCESS_USER');
|
||||
}
|
||||
}
|
||||
$Fields['CANT_DELEGATIONS'] = count( $delegations );
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
<?php
|
||||
if (! isset( $_REQUEST['action'] )) {
|
||||
$res['success'] = 'failure';
|
||||
$res['message'] = 'You may request an action';
|
||||
$res['message'] = G::LoadTranslation( 'ID_REQUEST_ACTION' );
|
||||
print G::json_encode( $res );
|
||||
die();
|
||||
}
|
||||
if (! function_exists( $_REQUEST['action'] )) {
|
||||
$res['success'] = 'failure';
|
||||
$res['message'] = 'The requested action does not exist';
|
||||
$res['message'] = G::LoadTranslation( 'ID_REQUEST_ACTION_NOT_EXIST' );
|
||||
print G::json_encode( $res );
|
||||
die();
|
||||
}
|
||||
@@ -127,7 +127,7 @@ function getProcessList ()
|
||||
$processList = $processListTree;
|
||||
} else {
|
||||
$processList['success'] = 'failure';
|
||||
$processList['message'] = 'User can\'t start process';
|
||||
$processList['message'] = G::LoadTranslation('ID_USER_PROCESS_NOT_START');
|
||||
}
|
||||
print G::json_encode( $processList );
|
||||
die();
|
||||
|
||||
@@ -24,7 +24,7 @@ try {
|
||||
//getting the ProUid from the file recently downloaded
|
||||
$oData = $oProcess->getProcessData( $localPath . $newfilename );
|
||||
if (is_null( $oData )) {
|
||||
throw new Exception( 'Error' );
|
||||
throw new Exception( G::LoadTranslation( 'ID_ERROR' ) );
|
||||
}
|
||||
$Fields['IMPORT_OPTION'] = 2;
|
||||
$Fields['PRO_FILENAME'] = $newfilename;
|
||||
|
||||
@@ -54,7 +54,7 @@ try {
|
||||
if (isset( $stdObj->pro_uid ))
|
||||
$sProUid = $stdObj->pro_uid;
|
||||
else
|
||||
throw (new Exception( 'the process uid is not defined!.' ));
|
||||
throw (new Exception( G::LoadTranslation('ID_PROCESS_UID_NOT_DEFINED') ));
|
||||
|
||||
/* Includes */
|
||||
G::LoadClass( 'processes' );
|
||||
|
||||
@@ -275,7 +275,7 @@ if ($action == "uploadFileNewProcessExist") {
|
||||
//krumo ($oData); die;
|
||||
$sNewProUid = $oProcess->getUnusedProcessGUID();
|
||||
$oProcess->setProcessGuid( $oData, $sNewProUid );
|
||||
$oData->process['PRO_TITLE'] = "Copy of - " . $oData->process['PRO_TITLE'] . ' - ' . date( 'M d, H:i' );
|
||||
$oData->process['PRO_TITLE'] = G::LoadTranslation('ID_COPY_OF'). ' - ' . $oData->process['PRO_TITLE'] . ' - ' . date( 'M d, H:i' );
|
||||
$oProcess->renewAll( $oData );
|
||||
|
||||
if ($processFileType == "pm") {
|
||||
|
||||
@@ -29,7 +29,7 @@ try {
|
||||
$user = $oTask->assignUsertoTask( $sTASKS );
|
||||
|
||||
if ($user == 0) {
|
||||
throw (new Exception( "The task '" . $TaskFields['TAS_TITLE'] . "' doesn't have users." ));
|
||||
throw (new Exception( G::LoadTranslation('ID_TASK') . "'" . $TaskFields['TAS_TITLE'] . "'" . G::LoadTranslation('ID_NOT_HAVE_USERS')));
|
||||
}
|
||||
|
||||
if (G::is_https())
|
||||
|
||||
@@ -201,7 +201,7 @@ switch ($action) {
|
||||
}
|
||||
|
||||
if (in_array( strtoupper( $data['REP_TAB_NAME'] ), $aReservedWords )) {
|
||||
throw new Exception( 'Could not create the table with the name "' . $data['REP_TAB_NAME'] . '" because it is a reserved word.' );
|
||||
throw new Exception( G::LoadTranslation('ID_NOT_CREATE_TABLE') . '"' . $data['REP_TAB_NAME'] . '"' . G::LoadTranslation('ID_RESERVED_WORD') );
|
||||
}
|
||||
//create record
|
||||
$addTabUid = $oAdditionalTables->create( $repTabData );
|
||||
|
||||
@@ -60,8 +60,7 @@ function RoleList ($params)
|
||||
{
|
||||
$x = ifPermission( $params->sessionId, 'PM_USERS' );
|
||||
if ($x == 0) {
|
||||
$result[] = array ('guid' => 24,'name' => 'You do not have privileges'
|
||||
);
|
||||
$result[] = array ('guid' => 24,'name' => G::LoadTranslation('ID_NOT_PRIVILEGES'));
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -76,8 +75,7 @@ function GroupList ($params)
|
||||
{
|
||||
$x = ifPermission( $params->sessionId, 'PM_USERS' );
|
||||
if ($x == 0) {
|
||||
$result[] = array ('guid' => 24,'name' => 'You do not have privileges'
|
||||
);
|
||||
$result[] = array ('guid' => 24,'name' => G::LoadTranslation('ID_NOT_PRIVILEGES'));
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -94,7 +92,7 @@ function CaseList ($params)
|
||||
$x = ifPermission( $params->sessionId, 'PM_CASES' );
|
||||
if ($x == 0) {
|
||||
G::LoadClass( 'wsResponse' );
|
||||
return new wsResponse( 9, 'Session expired' );
|
||||
return new wsResponse( 9, G::LoadTranslation('ID_SESSION_EXPIRED') );
|
||||
}
|
||||
|
||||
G::LoadClass( 'sessions' );
|
||||
@@ -113,8 +111,7 @@ function UserList ($params)
|
||||
{
|
||||
$x = ifPermission( $params->sessionId, 'PM_USERS' );
|
||||
if ($x == 0) {
|
||||
$result[] = array ('guid' => 24,'name' => 'You do not have privileges'
|
||||
);
|
||||
$result[] = array ('guid' => 24,'name' => G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -131,7 +128,7 @@ function SendMessage ($params)
|
||||
$x = ifPermission( $params->sessionId, 'PM_CASES' );
|
||||
if ($x == 0) {
|
||||
G::LoadClass( 'wsResponse' );
|
||||
$result = new wsResponse( 24, "You do not have privileges" );
|
||||
$result = new wsResponse( 24, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
return $result;
|
||||
}
|
||||
G::LoadClass( 'wsBase' );
|
||||
@@ -161,7 +158,7 @@ function SendVariables ($params)
|
||||
$x = ifPermission( $params->sessionId, 'PM_CASES' );
|
||||
if ($x == 0) {
|
||||
G::LoadClass( 'wsResponse' );
|
||||
$result = new wsResponse( 24, "You do not have privileges" );
|
||||
$result = new wsResponse( 24, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
return $result;
|
||||
}
|
||||
G::LoadClass( 'wsBase' );
|
||||
@@ -189,7 +186,7 @@ function GetVariables ($params)
|
||||
$x = ifPermission( $params->sessionId, 'PM_CASES' );
|
||||
if ($x == 0) {
|
||||
G::LoadClass( 'wsResponse' );
|
||||
$result = new wsResponse( 24, "You do not have privileges" );
|
||||
$result = new wsResponse( 24, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -207,7 +204,7 @@ function DerivateCase ($params)
|
||||
$x = ifPermission( $params->sessionId, 'PM_CASES' );
|
||||
if ($x == 0) {
|
||||
G::LoadClass( 'wsResponse' );
|
||||
$result = new wsResponse( 24, "You do not have privileges" );
|
||||
$result = new wsResponse( 24, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -228,7 +225,7 @@ function executeTrigger ($params)
|
||||
$x = ifPermission( $params->sessionId, 'PM_CASES' );
|
||||
if ($x == 0) {
|
||||
G::LoadClass( 'wsResponse' );
|
||||
$result = new wsResponse( 24, "You do not have privileges" );
|
||||
$result = new wsResponse( 24, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -248,7 +245,7 @@ function NewCaseImpersonate ($params)
|
||||
$x = ifPermission( $params->sessionId, 'PM_CASES' );
|
||||
if ($x == 0) {
|
||||
G::LoadClass( 'wsResponse' );
|
||||
$result = new wsResponse( 24, "You do not have privileges" );
|
||||
$result = new wsResponse( 24, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
return $result;
|
||||
}
|
||||
G::LoadClass( 'wsBase' );
|
||||
@@ -272,7 +269,7 @@ function NewCase ($params)
|
||||
$x = ifPermission( $params->sessionId, 'PM_CASES' );
|
||||
if ($x == 0) {
|
||||
G::LoadClass( 'wsResponse' );
|
||||
$result = new wsResponse( 24, "You do not have privileges" );
|
||||
$result = new wsResponse( 24, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -333,7 +330,7 @@ function AssignUserToGroup ($params)
|
||||
$x = ifPermission( $params->sessionId, 'PM_USERS' );
|
||||
if ($x == 0) {
|
||||
G::LoadClass( 'wsResponse' );
|
||||
$result = new wsResponse( 24, "You do not have privileges" );
|
||||
$result = new wsResponse( 24, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
return $result;
|
||||
}
|
||||
G::LoadClass( 'sessions' );
|
||||
@@ -341,7 +338,7 @@ function AssignUserToGroup ($params)
|
||||
$user = $sessions->getSessionUser( $params->sessionId );
|
||||
if (! is_array( $user )) {
|
||||
G::LoadClass( 'wsResponse' );
|
||||
return new wsResponse( 3, 'User not registered in the system' );
|
||||
return new wsResponse( 3, G::LoadTranslation('ID_USER_NOT_REGISTERED_SYSTEM') );
|
||||
}
|
||||
|
||||
G::LoadClass( 'wsBase' );
|
||||
@@ -356,7 +353,7 @@ function CreateUser ($params)
|
||||
$x = ifPermission( $params->sessionId, 'PM_USERS' );
|
||||
if ($x == 0) {
|
||||
G::LoadClass( 'wsResponse' );
|
||||
$result = new wsResponse( 24, "You do not have privileges" );
|
||||
$result = new wsResponse( 24, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
return $result;
|
||||
}
|
||||
G::LoadClass( 'wsBase' );
|
||||
@@ -369,8 +366,7 @@ function TaskList ($params)
|
||||
{
|
||||
$x = ifPermission( $params->sessionId, 'PM_CASES' );
|
||||
if ($x == 0) {
|
||||
$result[] = array ('guid' => 24,'name' => 'You do not have privileges'
|
||||
);
|
||||
$result[] = array ('guid' => 24,'name' => G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
return $result;
|
||||
}
|
||||
G::LoadClass( 'wsBase' );
|
||||
@@ -389,8 +385,7 @@ function TaskCase ($params)
|
||||
ifSessionExpiredBreakThis( $params->sessionId );
|
||||
$x = ifPermission( $params->sessionId, 'PM_CASES' );
|
||||
if ($x == 0) {
|
||||
$result[] = array ('guid' => 24,'name' => 'You do not have privileges'
|
||||
);
|
||||
$result[] = array ('guid' => 24,'name' => G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
return $result;
|
||||
}
|
||||
G::LoadClass( 'wsBase' );
|
||||
@@ -418,7 +413,7 @@ function ifSessionExpiredBreakThis ($sessionId)
|
||||
$session = $oSessions->verifySession( $sessionId );
|
||||
if ($session == '') {
|
||||
G::LoadClass( 'wsResponse' );
|
||||
return new wsResponse( 9, 'Session expired' );
|
||||
return new wsResponse( 9, G::LoadTranslation('ID_SESSION_EXPIRED') );
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ function ProcessList ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_FACTORY' ) == 0) {
|
||||
$o->guid = "2 Insufficient privileges to execute this function";
|
||||
$o->guid = "2" . G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION');
|
||||
$o->name = '';
|
||||
|
||||
return array ("processes" => $o
|
||||
@@ -105,7 +105,7 @@ function RoleList ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_USERS' ) == 0) {
|
||||
$o->guid = "2 Insufficient privileges to execute this function";
|
||||
$o->guid = "2".G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION');
|
||||
$o->name = '';
|
||||
|
||||
return array ("roles" => $o
|
||||
@@ -132,7 +132,7 @@ function GroupList ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_USERS' ) == 0) {
|
||||
$o->guid = "2 Insufficient privileges to execute this function";
|
||||
$o->guid = "2".G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION');
|
||||
$o->name = '';
|
||||
|
||||
return array ("groups" => $o
|
||||
@@ -159,7 +159,7 @@ function DepartmentList ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_USERS' ) == 0) {
|
||||
$o->guid = "2 Insufficient privileges to execute this function";
|
||||
$o->guid = "2".G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION');
|
||||
$o->name = '';
|
||||
|
||||
return array ("departments" => $o
|
||||
@@ -189,7 +189,7 @@ function CaseList ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$o->guid = "2 Insufficient privileges to execute this function";
|
||||
$o->guid = "2".G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION');
|
||||
$o->name = '';
|
||||
$o->status = '';
|
||||
$o->delIndex = '';
|
||||
@@ -259,7 +259,7 @@ function UserList ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_USERS' ) == 0) {
|
||||
$o->guid = "2 Insufficient privileges to execute this function";
|
||||
$o->guid = "2".G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION');
|
||||
$o->name = '';
|
||||
|
||||
return array ("users" => $o
|
||||
@@ -287,7 +287,7 @@ function triggerList ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$o->guid = "2 Insufficient privileges to execute this function";
|
||||
$o->guid = "2".G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION');
|
||||
$o->name = '';
|
||||
$o->processId = '';
|
||||
|
||||
@@ -322,7 +322,7 @@ function outputDocumentList ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$o->guid = "2 Insufficient privileges to execute this function";
|
||||
$o->guid = "2".G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION');
|
||||
$o->filename = '';
|
||||
$o->docId = '';
|
||||
$o->version = '';
|
||||
@@ -369,7 +369,7 @@ function inputDocumentList ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$o->guid = "2 Insufficient privileges to execute this function";
|
||||
$o->guid = "2".G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION');
|
||||
$o->filename = '';
|
||||
$o->docId = '';
|
||||
$o->version = '';
|
||||
@@ -410,7 +410,7 @@ function inputDocumentProcessList ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$o->guid = "2 Insufficient privileges to execute this function";
|
||||
$o->guid = "2".G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION');
|
||||
$o->name = '';
|
||||
$o->description = '';
|
||||
|
||||
@@ -434,7 +434,7 @@ function removeDocument ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$result = new wsResponse( 2, "Insufficient privileges to execute this function" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -454,7 +454,7 @@ function SendMessage ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result->getPayloadArray();
|
||||
}
|
||||
@@ -474,7 +474,7 @@ function getCaseInfo ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -494,7 +494,7 @@ function SendVariables ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -533,7 +533,7 @@ function GetVariables ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$result = new wsGetVariableResponse( 2, "You do not have privileges", null );
|
||||
$result = new wsGetVariableResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES'), null );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -555,7 +555,7 @@ function GetVariablesNames ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$result = new wsGetVariableResponse( 2, "You do not have privileges", null );
|
||||
$result = new wsGetVariableResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES'), null );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -578,7 +578,7 @@ function DerivateCase ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -605,7 +605,7 @@ function RouteCase ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -631,7 +631,7 @@ function executeTrigger ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -655,7 +655,7 @@ function NewCaseImpersonate ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, "PM_CASES" ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -697,7 +697,7 @@ function NewCase ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, "PM_CASES" ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -782,7 +782,7 @@ function AssignUserToGroup ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_USERS' ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result->getPayloadArray();
|
||||
}
|
||||
@@ -811,7 +811,7 @@ function AssignUserToDepartment ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_USERS' ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result->getPayloadArray();
|
||||
}
|
||||
@@ -822,7 +822,7 @@ function AssignUserToDepartment ($params)
|
||||
$user = $sessions->getSessionUser( $params->sessionId );
|
||||
|
||||
if (! is_array( $user )) {
|
||||
return new wsResponse( 3, 'User not registered in the system' );
|
||||
return new wsResponse( 3, G::LoadTranslation('ID_USER_NOT_REGISTERED_SYSTEM') );
|
||||
}
|
||||
|
||||
$ws = new wsBase();
|
||||
@@ -840,7 +840,7 @@ function CreateUser ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_USERS' ) == 0) {
|
||||
$result = new wsCreateUserResponse( 2, "You do not have privileges" );
|
||||
$result = new wsCreateUserResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -861,7 +861,7 @@ function updateUser ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, "PM_USERS" ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -882,7 +882,7 @@ function informationUser($params)
|
||||
}
|
||||
|
||||
if (ifPermission($params->sessionId, "PM_USERS") == 0) {
|
||||
$result = new wsResponse(2, "You do not have privileges");
|
||||
$result = new wsResponse(2, G::LoadTranslation('ID_NOT_PRIVILEGES'));
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -904,7 +904,7 @@ function CreateGroup ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_USERS' ) == 0) {
|
||||
$result = new wsCreateGroupResponse( 2, "You do not have privileges", '' );
|
||||
$result = new wsCreateGroupResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES'), '' );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -924,7 +924,7 @@ function CreateDepartment ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_USERS' ) == 0) {
|
||||
$result = new wsCreateUserResponse( 2, "You do not have privileges" );
|
||||
$result = new wsCreateUserResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -948,7 +948,7 @@ function TaskList ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$o->guid = "2 Insufficient privileges to execute this function";
|
||||
$o->guid = "2" . G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION');
|
||||
$o->name = '';
|
||||
|
||||
return array ("tasks" => $o
|
||||
@@ -980,7 +980,7 @@ function TaskCase ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, 'PM_CASES' ) == 0) {
|
||||
$o->guid = "2 Insufficient privileges to execute this function";
|
||||
$o->guid = "2".G::LoadTranslation('ID_INSUFFICIENT_PRIVILEGES_FUNCTION');
|
||||
$o->name = '';
|
||||
|
||||
return array ("taskCases" => $o
|
||||
@@ -1062,9 +1062,9 @@ function isValidSession ($sessionId)
|
||||
$session = $oSessions->verifySession( $sessionId );
|
||||
|
||||
if (is_array( $session )) {
|
||||
return new wsResponse( 0, 'Session active' );
|
||||
return new wsResponse( 0, G::LoadTranslation('ID_SESSION_ACTIVE') );
|
||||
} else {
|
||||
return new wsResponse( 9, 'Session expired' );
|
||||
return new wsResponse( 9, G::LoadTranslation('ID_SESSION_EXPIRED') );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1118,7 +1118,7 @@ function deleteCase ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, "PM_CASES" ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -1138,7 +1138,7 @@ function cancelCase ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, "PM_CASES" ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -1158,7 +1158,7 @@ function pauseCase ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, "PM_CASES" ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -1179,7 +1179,7 @@ function unpauseCase ($params)
|
||||
}
|
||||
|
||||
if (ifPermission( $params->sessionId, "PM_CASES" ) == 0) {
|
||||
$result = new wsResponse( 2, "You do not have privileges" );
|
||||
$result = new wsResponse( 2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
@@ -1199,7 +1199,7 @@ function addCaseNote($params)
|
||||
}
|
||||
|
||||
if (ifPermission($params->sessionId, "PM_CASES") == 0) {
|
||||
$result = new wsResponse(2, "You do not have privileges");
|
||||
$result = new wsResponse(2, G::LoadTranslation('ID_NOT_PRIVILEGES') );
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
@@ -36,6 +36,7 @@ switch ($request) {
|
||||
$appCache->setPathToAppCacheFiles( PATH_METHODS . 'setup' . PATH_SEP . 'setupSchemas' . PATH_SEP );
|
||||
|
||||
$res = $appCache->getMySQLVersion();
|
||||
//load translations G::LoadTranslation
|
||||
$result->info[] = array ('name' => G::LoadTranslation ( 'ID_CACHE_BUILDER_MYSQL_VERSION' ) ,'value' => $res
|
||||
);
|
||||
|
||||
|
||||
@@ -2,14 +2,14 @@
|
||||
|
||||
if (! isset( $_REQUEST['action'] )) {
|
||||
$res['success'] = false;
|
||||
$res['error'] = $res['message'] = 'You may request an action';
|
||||
$res['error'] = $res['message'] = G::LoadTranslation('ID_REQUEST_ACTION');
|
||||
|
||||
print G::json_encode( $res );
|
||||
die();
|
||||
}
|
||||
if (! function_exists( $_REQUEST['action'] )) {
|
||||
$res['success'] = false;
|
||||
$res['error'] = $res['message'] = 'The requested action does not exist';
|
||||
$res['error'] = $res['message'] = G::LoadTranslation('ID_REQUEST_ACTION_NOT_EXIST');
|
||||
|
||||
print G::json_encode( $res );
|
||||
die();
|
||||
@@ -18,7 +18,7 @@ $restrictedFunctions = array ('copy_skin_folder','addTarFolder'
|
||||
);
|
||||
if (in_array( $_REQUEST['action'], $restrictedFunctions )) {
|
||||
$res['success'] = false;
|
||||
$res['error'] = $res['message'] = 'The requested action does not exist *';
|
||||
$res['error'] = $res['message'] = G::LoadTranslation('ID_REQUEST_ACTION_NOT_EXIST');
|
||||
print G::json_encode( $res );
|
||||
die();
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ $oSystem = new System();
|
||||
|
||||
try {
|
||||
if (! $oSystem->verifyFileForUpgrade()) {
|
||||
throw (new Exception( "There was an error uploading the file, probably the file size if greater than upload_max_filesize parameter in php.ini, please check this parameter and try again." ));
|
||||
throw (new Exception( G::LoadTranslation( 'ID_ERROR_UPLOADING_FILENAME')) );
|
||||
}
|
||||
$oSystem->cleanupUpgradeDirectory();
|
||||
$oSystem->getUpgradedFilesList();
|
||||
|
||||
@@ -171,7 +171,7 @@ function processSchemaFile ()
|
||||
$oDataBase = new database( $DB_ADAPTER, $DB_HOST, $DB_USER, $DB_PASS, $DB_NAME );
|
||||
|
||||
if (! $oDataBase->isConnected()) {
|
||||
$oDataBase->logQuery( 'Does not exist an available connection!' );
|
||||
$oDataBase->logQuery( G::LoadTranslation('ID_DOES_NOT_EXIST_AVAILABLE_CONNECTION') );
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ class Services_Rest_Application
|
||||
$criteria->addSelectColumn(ApplicationPeer::APP_UPDATE_DATE);
|
||||
$criteria->addSelectColumn(ApplicationPeer::APP_DATA);
|
||||
$criteria->addSelectColumn(ApplicationPeer::APP_PIN);
|
||||
|
||||
|
||||
$dataset = AppEventPeer::doSelectRS($criteria);
|
||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
|
||||
@@ -104,7 +104,7 @@ class Services_Rest_Application
|
||||
$obj->setAppUpdateDate($appUpdateDate);
|
||||
$obj->setAppData($appData);
|
||||
$obj->setAppPin($appPin);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -139,7 +139,7 @@ class Services_Rest_Application
|
||||
$obj->setAppUpdateDate($appUpdateDate);
|
||||
$obj->setAppData($appData);
|
||||
$obj->setAppPin($appPin);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -157,16 +157,16 @@ class Services_Rest_Application
|
||||
protected function delete($appUid)
|
||||
{
|
||||
$conn = Propel::getConnection(ApplicationPeer::DATABASE_NAME);
|
||||
|
||||
|
||||
try {
|
||||
$conn->begin();
|
||||
|
||||
|
||||
$obj = ApplicationPeer::retrieveByPK($appUid);
|
||||
if (! is_object($obj)) {
|
||||
throw new RestException(412, 'Record does not exist.');
|
||||
throw new RestException(412, G::LoadTranslation('ID_RECORD_DOES_NOT_EXIST'));
|
||||
}
|
||||
$obj->delete();
|
||||
|
||||
|
||||
$conn->commit();
|
||||
} catch (Exception $e) {
|
||||
$conn->rollback();
|
||||
|
||||
@@ -30,7 +30,7 @@ class Services_Rest_Content
|
||||
$criteria->addSelectColumn(ContentPeer::CON_ID);
|
||||
$criteria->addSelectColumn(ContentPeer::CON_LANG);
|
||||
$criteria->addSelectColumn(ContentPeer::CON_VALUE);
|
||||
|
||||
|
||||
$dataset = AppEventPeer::doSelectRS($criteria);
|
||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
|
||||
@@ -82,7 +82,7 @@ class Services_Rest_Content
|
||||
$obj->setConId($conId);
|
||||
$obj->setConLang($conLang);
|
||||
$obj->setConValue($conValue);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -103,7 +103,7 @@ class Services_Rest_Content
|
||||
$obj = ContentPeer::retrieveByPK($conCategory, $conParent, $conId, $conLang);
|
||||
|
||||
$obj->setConValue($conValue);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -121,16 +121,16 @@ class Services_Rest_Content
|
||||
protected function delete($conCategory, $conParent, $conId, $conLang)
|
||||
{
|
||||
$conn = Propel::getConnection(ContentPeer::DATABASE_NAME);
|
||||
|
||||
|
||||
try {
|
||||
$conn->begin();
|
||||
|
||||
|
||||
$obj = ContentPeer::retrieveByPK($conCategory, $conParent, $conId, $conLang);
|
||||
if (! is_object($obj)) {
|
||||
throw new RestException(412, 'Record does not exist.');
|
||||
throw new RestException(412, G::LoadTranslation('ID_RECORD_DOES_NOT_EXIST') ) ;
|
||||
}
|
||||
$obj->delete();
|
||||
|
||||
|
||||
$conn->commit();
|
||||
} catch (Exception $e) {
|
||||
$conn->rollback();
|
||||
|
||||
@@ -28,7 +28,7 @@ class Services_Rest_Holiday
|
||||
$criteria->addSelectColumn(HolidayPeer::HLD_UID);
|
||||
$criteria->addSelectColumn(HolidayPeer::HLD_DATE);
|
||||
$criteria->addSelectColumn(HolidayPeer::HLD_DESCRIPTION);
|
||||
|
||||
|
||||
$dataset = AppEventPeer::doSelectRS($criteria);
|
||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
|
||||
@@ -78,7 +78,7 @@ class Services_Rest_Holiday
|
||||
$obj->setHldUid($hldUid);
|
||||
$obj->setHldDate($hldDate);
|
||||
$obj->setHldDescription($hldDescription);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -100,7 +100,7 @@ class Services_Rest_Holiday
|
||||
|
||||
$obj->setHldDate($hldDate);
|
||||
$obj->setHldDescription($hldDescription);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -118,16 +118,16 @@ class Services_Rest_Holiday
|
||||
protected function delete($hldUid)
|
||||
{
|
||||
$conn = Propel::getConnection(HolidayPeer::DATABASE_NAME);
|
||||
|
||||
|
||||
try {
|
||||
$conn->begin();
|
||||
|
||||
|
||||
$obj = HolidayPeer::retrieveByPK($hldUid);
|
||||
if (! is_object($obj)) {
|
||||
throw new RestException(412, 'Record does not exist.');
|
||||
throw new RestException(412, G::LoadTranslation('ID_RECORD_DOES_NOT_EXIST'));
|
||||
}
|
||||
$obj->delete();
|
||||
|
||||
|
||||
$conn->commit();
|
||||
} catch (Exception $e) {
|
||||
$conn->rollback();
|
||||
|
||||
@@ -32,7 +32,7 @@ class Services_Rest_Session
|
||||
$criteria->addSelectColumn(SessionPeer::SES_INIT_DATE);
|
||||
$criteria->addSelectColumn(SessionPeer::SES_DUE_DATE);
|
||||
$criteria->addSelectColumn(SessionPeer::SES_END_DATE);
|
||||
|
||||
|
||||
$dataset = AppEventPeer::doSelectRS($criteria);
|
||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
|
||||
@@ -86,7 +86,7 @@ class Services_Rest_Session
|
||||
$obj->setSesInitDate($sesInitDate);
|
||||
$obj->setSesDueDate($sesDueDate);
|
||||
$obj->setSesEndDate($sesEndDate);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -112,7 +112,7 @@ class Services_Rest_Session
|
||||
$obj->setSesInitDate($sesInitDate);
|
||||
$obj->setSesDueDate($sesDueDate);
|
||||
$obj->setSesEndDate($sesEndDate);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -130,16 +130,16 @@ class Services_Rest_Session
|
||||
protected function delete($sesUid)
|
||||
{
|
||||
$conn = Propel::getConnection(SessionPeer::DATABASE_NAME);
|
||||
|
||||
|
||||
try {
|
||||
$conn->begin();
|
||||
|
||||
|
||||
$obj = SessionPeer::retrieveByPK($sesUid);
|
||||
if (! is_object($obj)) {
|
||||
throw new RestException(412, 'Record does not exist.');
|
||||
throw new RestException(412, G::LoadTranslation('ID_RECORD_DOES_NOT_EXIST'));
|
||||
}
|
||||
$obj->delete();
|
||||
|
||||
|
||||
$conn->commit();
|
||||
} catch (Exception $e) {
|
||||
$conn->rollback();
|
||||
|
||||
@@ -33,7 +33,7 @@ class Services_Rest_Step
|
||||
$criteria->addSelectColumn(StepPeer::STEP_CONDITION);
|
||||
$criteria->addSelectColumn(StepPeer::STEP_POSITION);
|
||||
$criteria->addSelectColumn(StepPeer::STEP_MODE);
|
||||
|
||||
|
||||
$dataset = AppEventPeer::doSelectRS($criteria);
|
||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
|
||||
@@ -88,7 +88,7 @@ class Services_Rest_Step
|
||||
$obj->setStepCondition($stepCondition);
|
||||
$obj->setStepPosition($stepPosition);
|
||||
$obj->setStepMode($stepMode);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -115,7 +115,7 @@ class Services_Rest_Step
|
||||
$obj->setStepCondition($stepCondition);
|
||||
$obj->setStepPosition($stepPosition);
|
||||
$obj->setStepMode($stepMode);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -133,16 +133,16 @@ class Services_Rest_Step
|
||||
protected function delete($stepUid)
|
||||
{
|
||||
$conn = Propel::getConnection(StepPeer::DATABASE_NAME);
|
||||
|
||||
|
||||
try {
|
||||
$conn->begin();
|
||||
|
||||
|
||||
$obj = StepPeer::retrieveByPK($stepUid);
|
||||
if (! is_object($obj)) {
|
||||
throw new RestException(412, 'Record does not exist.');
|
||||
throw new RestException(412, G::LoadTranslation('ID_RECORD_DOES_NOT_EXIST'));
|
||||
}
|
||||
$obj->delete();
|
||||
|
||||
|
||||
$conn->commit();
|
||||
} catch (Exception $e) {
|
||||
$conn->rollback();
|
||||
|
||||
@@ -37,7 +37,7 @@ class Services_Rest_SubProcess
|
||||
$criteria->addSelectColumn(SubProcessPeer::SP_VARIABLES_OUT);
|
||||
$criteria->addSelectColumn(SubProcessPeer::SP_VARIABLES_IN);
|
||||
$criteria->addSelectColumn(SubProcessPeer::SP_GRID_IN);
|
||||
|
||||
|
||||
$dataset = AppEventPeer::doSelectRS($criteria);
|
||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
|
||||
@@ -96,7 +96,7 @@ class Services_Rest_SubProcess
|
||||
$obj->setSpVariablesOut($spVariablesOut);
|
||||
$obj->setSpVariablesIn($spVariablesIn);
|
||||
$obj->setSpGridIn($spGridIn);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -127,7 +127,7 @@ class Services_Rest_SubProcess
|
||||
$obj->setSpVariablesOut($spVariablesOut);
|
||||
$obj->setSpVariablesIn($spVariablesIn);
|
||||
$obj->setSpGridIn($spGridIn);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -145,16 +145,16 @@ class Services_Rest_SubProcess
|
||||
protected function delete($spUid)
|
||||
{
|
||||
$conn = Propel::getConnection(SubProcessPeer::DATABASE_NAME);
|
||||
|
||||
|
||||
try {
|
||||
$conn->begin();
|
||||
|
||||
|
||||
$obj = SubProcessPeer::retrieveByPK($spUid);
|
||||
if (! is_object($obj)) {
|
||||
throw new RestException(412, 'Record does not exist.');
|
||||
throw new RestException(412, G::LoadTranslation('ID_RECORD_DOES_NOT_EXIST'));
|
||||
}
|
||||
$obj->delete();
|
||||
|
||||
|
||||
$conn->commit();
|
||||
} catch (Exception $e) {
|
||||
$conn->rollback();
|
||||
|
||||
@@ -30,7 +30,7 @@ class Services_Rest_Translation
|
||||
$criteria->addSelectColumn(TranslationPeer::TRN_LANG);
|
||||
$criteria->addSelectColumn(TranslationPeer::TRN_VALUE);
|
||||
$criteria->addSelectColumn(TranslationPeer::TRN_UPDATE_DATE);
|
||||
|
||||
|
||||
$dataset = AppEventPeer::doSelectRS($criteria);
|
||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
|
||||
@@ -82,7 +82,7 @@ class Services_Rest_Translation
|
||||
$obj->setTrnLang($trnLang);
|
||||
$obj->setTrnValue($trnValue);
|
||||
$obj->setTrnUpdateDate($trnUpdateDate);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -104,7 +104,7 @@ class Services_Rest_Translation
|
||||
|
||||
$obj->setTrnValue($trnValue);
|
||||
$obj->setTrnUpdateDate($trnUpdateDate);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -122,16 +122,16 @@ class Services_Rest_Translation
|
||||
protected function delete($trnCategory, $trnId, $trnLang)
|
||||
{
|
||||
$conn = Propel::getConnection(TranslationPeer::DATABASE_NAME);
|
||||
|
||||
|
||||
try {
|
||||
$conn->begin();
|
||||
|
||||
|
||||
$obj = TranslationPeer::retrieveByPK($trnCategory, $trnId, $trnLang);
|
||||
if (! is_object($obj)) {
|
||||
throw new RestException(412, 'Record does not exist.');
|
||||
throw new RestException(412, G::LoadTranslation('ID_RECORD_DOES_NOT_EXIST'));
|
||||
}
|
||||
$obj->delete();
|
||||
|
||||
|
||||
$conn->commit();
|
||||
} catch (Exception $e) {
|
||||
$conn->rollback();
|
||||
|
||||
@@ -51,7 +51,7 @@ class Services_Rest_Users
|
||||
$criteria->addSelectColumn(UsersPeer::USR_REPORTS_TO);
|
||||
$criteria->addSelectColumn(UsersPeer::USR_REPLACED_BY);
|
||||
$criteria->addSelectColumn(UsersPeer::USR_UX);
|
||||
|
||||
|
||||
$dataset = AppEventPeer::doSelectRS($criteria);
|
||||
$dataset->setFetchmode(ResultSet::FETCHMODE_ASSOC);
|
||||
|
||||
@@ -124,7 +124,7 @@ class Services_Rest_Users
|
||||
$obj->setUsrReportsTo($usrReportsTo);
|
||||
$obj->setUsrReplacedBy($usrReplacedBy);
|
||||
$obj->setUsrUx($usrUx);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -169,7 +169,7 @@ class Services_Rest_Users
|
||||
$obj->setUsrReportsTo($usrReportsTo);
|
||||
$obj->setUsrReplacedBy($usrReplacedBy);
|
||||
$obj->setUsrUx($usrUx);
|
||||
|
||||
|
||||
$obj->save();
|
||||
} catch (Exception $e) {
|
||||
throw new RestException(412, $e->getMessage());
|
||||
@@ -187,16 +187,16 @@ class Services_Rest_Users
|
||||
protected function delete($usrUid)
|
||||
{
|
||||
$conn = Propel::getConnection(UsersPeer::DATABASE_NAME);
|
||||
|
||||
|
||||
try {
|
||||
$conn->begin();
|
||||
|
||||
|
||||
$obj = UsersPeer::retrieveByPK($usrUid);
|
||||
if (! is_object($obj)) {
|
||||
throw new RestException(412, 'Record does not exist.');
|
||||
throw new RestException(412, G::LoadTranslation('ID_RECORD_DOES_NOT_EXIST'));
|
||||
}
|
||||
$obj->delete();
|
||||
|
||||
|
||||
$conn->commit();
|
||||
} catch (Exception $e) {
|
||||
$conn->rollback();
|
||||
|
||||
@@ -80,7 +80,7 @@
|
||||
{
|
||||
xtype: 'textfield',
|
||||
width: 70,
|
||||
fieldLabel: 'Name',
|
||||
fieldLabel: _('ID_NAME'),
|
||||
name : 'td1',
|
||||
allowBlank: true
|
||||
},
|
||||
@@ -92,7 +92,7 @@
|
||||
{
|
||||
xtype: 'textfield',
|
||||
width: 70,
|
||||
fieldLabel: 'Name',
|
||||
fieldLabel: _('ID_NAME'),
|
||||
name : 'td2',
|
||||
allowBlank: true
|
||||
},
|
||||
@@ -103,7 +103,7 @@
|
||||
},
|
||||
{
|
||||
xtype: 'box',
|
||||
fieldLabel: 'Filename',
|
||||
fieldLabel: _('ID_FILENAME'),
|
||||
name: 'filename',
|
||||
autoEl: {
|
||||
style: 'margin-top:5px',
|
||||
@@ -909,7 +909,7 @@ Ext.onReady( function() {
|
||||
items : [
|
||||
{
|
||||
xtype : 'compositefield',
|
||||
hideLabel : true,
|
||||
hideLabel : true,
|
||||
layout : 'fit',
|
||||
labelWidth : 100,
|
||||
items : [
|
||||
|
||||
@@ -264,7 +264,7 @@ Ext.onReady(function(){
|
||||
boxLabel: _('REQUIRE_AUTHENTICATION'),//'Require authentication',
|
||||
id:'RequireAuthentication',
|
||||
name:'RequireAuthentication',
|
||||
validateMessage: 'You really should do it.',
|
||||
validateMessage: _('ID_REALLY_SHOULD'),
|
||||
validateField: true,
|
||||
disabled : true,
|
||||
handler: function() {
|
||||
@@ -756,8 +756,8 @@ var testMethod = function()
|
||||
( Ext.getCmp('eMailto').getValue() == '' ||
|
||||
/^[0-9a-z_\-\.]+@[0-9a-z\-\.]+\.[a-z]{2,4}$/i.test(Ext.getCmp('eMailto').getValue()) != true ) ) {
|
||||
Ext.MessageBox.show({
|
||||
title: 'Error',
|
||||
msg: '"Mail to" does not contain a valid email address format.',
|
||||
title: _('ID_ERROS'),
|
||||
msg: _('ID_MAIL_TO_NOT_VALID_ADDRESS'),
|
||||
buttons: Ext.MessageBox.OK,
|
||||
animEl: 'mb9',
|
||||
icon: Ext.MessageBox.ERROR
|
||||
|
||||
@@ -66,11 +66,11 @@ Ext.onReady(function() {
|
||||
});
|
||||
}
|
||||
else {
|
||||
PMExt.notify('Notice', _('ID_YOU_ARE_NOT_CAN_SELECT_PHOTO'));
|
||||
PMExt.notify( _('ID_NOTICE'), _('ID_YOU_ARE_NOT_CAN_SELECT_PHOTO'));
|
||||
}
|
||||
}
|
||||
else {
|
||||
PMExt.notify('Notice', _('ID_SELECT_AN_IMAGE'));
|
||||
PMExt.notify( _('ID_NOTICE'), _('ID_SELECT_AN_IMAGE'));
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -117,10 +117,10 @@ Ext.onReady(function() {
|
||||
store.load();
|
||||
oResponse = Ext.decode( response.responseText );
|
||||
if (oResponse.success == true) {
|
||||
PMExt.notify('Notice', _('ID_SELECTED_IMAGE_DELETED'));
|
||||
PMExt.notify( _('ID_NOTICE'), _('ID_SELECTED_IMAGE_DELETED'));
|
||||
}
|
||||
else {
|
||||
PMExt.notify('Notice', _('ID_SELECTED_IMAGE_IS_LOGO'));
|
||||
PMExt.notify( _('ID_NOTICE'), _('ID_SELECTED_IMAGE_IS_LOGO'));
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -133,11 +133,11 @@ Ext.onReady(function() {
|
||||
}
|
||||
}
|
||||
else {
|
||||
PMExt.notify('Notice', _('ID_YOU_ARE_NOT_CAN_SELECT_PHOTO'));
|
||||
PMExt.notify( _('ID_NOTICE'), _('ID_YOU_ARE_NOT_CAN_SELECT_PHOTO'));
|
||||
}
|
||||
}
|
||||
else {
|
||||
PMExt.notify('Notice', _('ID_SELECT_AN_IMAGE'));
|
||||
PMExt.notify( _('ID_NOTICE'), _('ID_SELECT_AN_IMAGE'));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -156,7 +156,7 @@ Ext.onReady(function(){
|
||||
{header: _('ID_ROLE'), dataIndex: 'USR_ROLE', width: 50, hidden:false, align:'left'},
|
||||
{header: _('ID_STATUS'), dataIndex: 'USR_STATUS', width: 50, hidden: true, align: 'center', renderer: render_status},
|
||||
{
|
||||
header: 'User experience',
|
||||
header: _('ID_USER_EXPERIENCE'),
|
||||
dataIndex: 'USR_UX',
|
||||
width: 50,
|
||||
editor: new Ext.form.ComboBox({
|
||||
@@ -188,7 +188,7 @@ Ext.onReady(function(){
|
||||
});
|
||||
|
||||
usersGrid = new Ext.grid.EditorGridPanel({
|
||||
title: 'Users',
|
||||
title: _('ID_USERS'),
|
||||
//region: 'center',
|
||||
layout: 'fit',
|
||||
id: 'usersGrid',
|
||||
@@ -264,8 +264,7 @@ Ext.onReady(function(){
|
||||
{id:'GRP_UID', dataIndex: 'USR_UID', hidden:true, hideable:false},
|
||||
{header: _('ID_GROUP_NAME'), dataIndex: 'CON_VALUE', width: 100, align:'left'},
|
||||
{header: _('ID_STATUS'), dataIndex: 'GRP_STATUS', width: 100, align:'center', renderer: render_status},
|
||||
{
|
||||
header: 'User experience',
|
||||
{header: _('ID_USER_EXPERIENCE'),
|
||||
dataIndex: 'GRP_UX',
|
||||
width: 50,
|
||||
editor: new Ext.form.ComboBox({
|
||||
|
||||
@@ -17,7 +17,7 @@ function openCaseNotesWindow(appUid1, modalSw, appTitle, proUid, taskUid)
|
||||
{
|
||||
Ext.MessageBox.show({
|
||||
msg: _('ID_CASE_NOTES_LOADING'),
|
||||
progressText: 'Saving...',
|
||||
progressText: _('ID_SAVING'),
|
||||
width:300,
|
||||
wait:true,
|
||||
waitConfig: {interval:200},
|
||||
@@ -385,7 +385,7 @@ function statusBarMessage( msg, isLoading, success ) {
|
||||
});
|
||||
} else {
|
||||
statusBar.setStatus({
|
||||
text: 'Error: ' + msg,
|
||||
text: _('ID_ERROR') + ': ' + msg,
|
||||
iconCls: 'x-status-error',
|
||||
clear: true
|
||||
});
|
||||
|
||||
@@ -15,7 +15,7 @@ new Ext.KeyMap(document, [
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -30,7 +30,7 @@ var cboxAuthSourse = new Ext.form.ComboBox({
|
||||
store: storeAuthSources,
|
||||
valueField: 'sType',
|
||||
displayField: 'sLabel',
|
||||
emptyText: 'Choose an option...',
|
||||
emptyText: _('ID_CHOOSE_OPTION') + '...',
|
||||
width: 160,
|
||||
editable: false,
|
||||
//value: _('ID_ALL'),
|
||||
@@ -100,7 +100,7 @@ var cboxAuthSourse = new Ext.form.ComboBox({
|
||||
optionAuthS: formAuthSourceOptoins.getForm().findField('AUTH_SOURCE_PROVIDER').getValue()
|
||||
},
|
||||
method: 'POST',
|
||||
waitMsg : 'loading...',
|
||||
waitMsg : _('ID_LOADING_GRID'),
|
||||
timeout : 500,
|
||||
success: function(f,a){
|
||||
resp = Ext.util.JSON.decode(a.response.responseText);
|
||||
@@ -117,10 +117,10 @@ var cboxAuthSourse = new Ext.form.ComboBox({
|
||||
},
|
||||
failure: function(f,a){
|
||||
if (a.failureType === Ext.form.Action.CONNECT_FAILURE){
|
||||
Ext.Msg.alert('Failure', 'Server reported:'+a.response.status+' '+a.response.statusText);
|
||||
Ext.Msg.alert( _('ID_FAILURE'), _('ID_SERVER_REPORTED')+':'+a.response.status+' '+a.response.statusText);
|
||||
}
|
||||
if (a.failureType === Ext.form.Action.SERVER_INVALID){
|
||||
Ext.Msg.alert('Warning', 'you have an error');
|
||||
Ext.Msg.alert( _('ID_WARNING'), _('ID_YOU_HAVE_ERROR'));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -53,7 +53,7 @@ Ext.onReady(function(){
|
||||
typeAhead: true,
|
||||
mode: 'local',
|
||||
triggerAction: 'all',
|
||||
emptyText:'Choose an option...',
|
||||
emptyText: _('ID_CHOOSE_OPTION') + '...',
|
||||
editable: false,
|
||||
selectOnFocus:true,
|
||||
listeners:{
|
||||
@@ -111,7 +111,7 @@ Ext.onReady(function(){
|
||||
typeAhead: true,
|
||||
mode: 'local',
|
||||
triggerAction: 'all',
|
||||
emptyText:'Choose an option...',
|
||||
emptyText: _('ID_CHOOSE_OPTION') + '...',
|
||||
editable: false,
|
||||
selectOnFocus:true
|
||||
});
|
||||
@@ -130,7 +130,7 @@ Ext.onReady(function(){
|
||||
typeAhead: true,
|
||||
mode: 'local',
|
||||
triggerAction: 'all',
|
||||
emptyText:'Choose an option...',
|
||||
emptyText: _('ID_CHOOSE_OPTION') + '...',
|
||||
editable: false,
|
||||
selectOnFocus:true
|
||||
});
|
||||
@@ -165,7 +165,7 @@ Ext.onReady(function(){
|
||||
mode: 'local',
|
||||
allowBlank: false,
|
||||
triggerAction: 'all',
|
||||
emptyText:'Choose an option...',
|
||||
emptyText: _('ID_CHOOSE_OPTION') + '...',
|
||||
editable: false,
|
||||
selectOnFocus:true,
|
||||
// width: 110,
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
}
|
||||
}
|
||||
if (!http_request){
|
||||
alert('This browser is not supported.');
|
||||
alert( _('ID_BROWSER_NOT_SUPPORTED') );
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -81,7 +81,7 @@
|
||||
document.location = document.location;
|
||||
}
|
||||
else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -334,7 +334,7 @@
|
||||
listeners: {
|
||||
rowdblclick: emptyReturn,
|
||||
render: function(){
|
||||
this.loadMask = new Ext.LoadMask(this.body, {msg:'Loading...'});
|
||||
this.loadMask = new Ext.LoadMask(this.body, {msg: _('ID_LOADING_GRID') });
|
||||
processesGrid.getSelectionModel().on('rowselect', function(){
|
||||
var rowSelected = processesGrid.getSelectionModel().getSelected();
|
||||
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
}
|
||||
}
|
||||
if (!http_request){
|
||||
alert('This browser is not supported.');
|
||||
alert( _('ID_BROWSER_NOT_SUPPORTED') );
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -215,7 +215,7 @@
|
||||
document.location = document.location;
|
||||
}
|
||||
else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE') );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -503,7 +503,7 @@
|
||||
listeners: {
|
||||
rowdblclick: emptyReturn,
|
||||
render: function(){
|
||||
this.loadMask = new Ext.LoadMask(this.body, {msg:'Loading...'});
|
||||
this.loadMask = new Ext.LoadMask(this.body, {msg: _('ID_LOADING_GRID') });
|
||||
processesGrid.getSelectionModel().on('rowselect', function(){
|
||||
var rowSelected = processesGrid.getSelectionModel().getSelected();
|
||||
|
||||
|
||||
@@ -136,7 +136,7 @@
|
||||
}
|
||||
}
|
||||
if (!http_request){
|
||||
alert('This browser is not supported.');
|
||||
alert(_('ID_BROWSER_NOT_SUPPORTED'));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ var ActionTabFrameGlobal = '';
|
||||
document.location = document.location;
|
||||
}
|
||||
else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -326,7 +326,7 @@ var ActionTabFrameGlobal = '';
|
||||
{name : 'APP_MSG_FROM'},
|
||||
{name : 'APP_MSG_TO'},
|
||||
{name : 'APP_MSG_STATUS'},
|
||||
{name : 'APP_MSG_BODY'}
|
||||
{name : 'APP_MSG_BODY'}
|
||||
|
||||
]
|
||||
}
|
||||
|
||||
@@ -60,13 +60,13 @@ streamFilefromPM=function(fileStream) {
|
||||
});
|
||||
}else{
|
||||
|
||||
msgbox = Ext.Msg.alert('Error', results.message);
|
||||
msgbox = Ext.Msg.alert( _('ID_ERROR'), results.message);
|
||||
msgbox.setIcon( Ext.MessageBox.ERROR );
|
||||
}
|
||||
},
|
||||
failure: function() {
|
||||
if (results.message) {
|
||||
Ext.Msg.alert('Infomation',results.message);
|
||||
Ext.Msg.alert( _('ID_INFORMATION'),results.message);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -350,16 +350,16 @@ function openActionDialog(caller, action, dataAux)
|
||||
|
||||
if( json.error && typeof json.error != 'xml' ) {
|
||||
if (typeof(json.login) != 'undefined') {
|
||||
msgbox = Ext.Msg.alert( "error", json.error, function(){try{parent.parent.window.location = '../login/login';} catch(e){}} );
|
||||
msgbox = Ext.Msg.alert( _('ID_ERROR') , json.error, function(){try{parent.parent.window.location = '../login/login';} catch(e){}} );
|
||||
} else {
|
||||
msgbox = Ext.Msg.alert( "error", json.error );
|
||||
msgbox = Ext.Msg.alert( _('ID_ERROR') , json.error );
|
||||
}
|
||||
msgbox.setIcon( Ext.MessageBox.ERROR );
|
||||
dialog.destroy();
|
||||
return false;
|
||||
}
|
||||
} catch(e) {
|
||||
msgbox = Ext.Msg.alert( "error", "JSON Decode Error: " + e.message );
|
||||
msgbox = Ext.Msg.alert( _('ID_ERROR') , "JSON Decode Error: " + e.message );
|
||||
msgbox.setIcon( Ext.MessageBox.ERROR );
|
||||
return false;
|
||||
}
|
||||
@@ -436,7 +436,7 @@ function openActionDialog(caller, action, dataAux)
|
||||
dialog.center();
|
||||
}
|
||||
} else if( !response || !oResponse.responseText) {
|
||||
msgbox = Ext.Msg.alert( "error", "Received an empty response");
|
||||
msgbox = Ext.Msg.alert( _('ID_ERROR') , _('ID_RECEIVED_EMPTY_RESPONSE') );
|
||||
msgbox.setIcon( Ext.MessageBox.ERROR );
|
||||
|
||||
}
|
||||
@@ -554,7 +554,7 @@ function handleCallback(requestParams, node) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
Ext.Msg.alert( 'Error', 'Failed to connect to the server.');
|
||||
Ext.Msg.alert( _('ID_ERROR'), _('ID_SERVER_COMMUNICATION_ERROR'));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -714,11 +714,11 @@ function statusBarMessage( msg, isLoading, success ) {
|
||||
Ext.msgBoxSlider.msg('', msg );
|
||||
} else {
|
||||
statusBar.setStatus({
|
||||
text: 'Error: ' + msg,
|
||||
text: _('ID_ERROR') +': ' + msg,
|
||||
iconCls: 'error',
|
||||
clear: true
|
||||
});
|
||||
Ext.msgBoxSlider.msg('Error', msg );
|
||||
Ext.msgBoxSlider.msg(_('ID_ERROR'), msg );
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
}
|
||||
}
|
||||
if (!http_request){
|
||||
alert('This browser is not supported.');
|
||||
alert( _('ID_BROWSER_NOT_SUPPORTED') );
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
}
|
||||
}
|
||||
if (!http_request){
|
||||
alert('This browser is not supported.');
|
||||
alert( _('ID_BROWSER_NOT_SUPPORTED') );
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -146,7 +146,7 @@
|
||||
document.location = document.location;
|
||||
}
|
||||
else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE') );
|
||||
}
|
||||
|
||||
}
|
||||
@@ -505,7 +505,7 @@
|
||||
generateDocumentGridDownload();
|
||||
},
|
||||
render: function(){
|
||||
this.loadMask = new Ext.LoadMask(this.body, {msg:'Loading...'});
|
||||
this.loadMask = new Ext.LoadMask(this.body, {msg: _('ID_LOADING_GRID') });
|
||||
|
||||
processesGrid.getSelectionModel().on('rowselect', function(){
|
||||
var rowSelected = processesGrid.getSelectionModel().getSelected();
|
||||
|
||||
@@ -1013,7 +1013,7 @@ Ext.onReady ( function() {
|
||||
text: _('ID_SUBMIT'),
|
||||
handler:function(){
|
||||
Ext.Msg.alert('OK','save ?');
|
||||
Ext.Msg.prompt('Name','please enter your name: ',function(btn,text){
|
||||
Ext.Msg.prompt(_('ID_NAME'),'please enter your name: ',function(btn,text){
|
||||
if(btn=='ok') {
|
||||
alert('ok');
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ new Ext.KeyMap(document, {
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert(_('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -144,7 +144,7 @@ Ext.extend(
|
||||
},
|
||||
failure : function() {
|
||||
dashboardTabPanels.activateDefaultTab();
|
||||
Ext.Msg.alert('Status', 'Unable to get Dashboards');
|
||||
Ext.Msg.alert( _('ID_STATUS'), _('ID_UNABLE_GET_DASHBOARDS'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ var tree = new Ext.tree.TreePanel({
|
||||
dataUrl: casesPanelUrl,
|
||||
root: {
|
||||
nodeType : 'async',
|
||||
text : 'To Revise',
|
||||
text : _('ID_TO_REVISE'),
|
||||
id : 'node-root'
|
||||
},
|
||||
listeners: {
|
||||
|
||||
@@ -168,7 +168,7 @@
|
||||
}
|
||||
}
|
||||
if (!http_request){
|
||||
alert('This browser is not supported.');
|
||||
alert( _('ID_BROWSER_NOT_SUPPORTED') );
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -215,7 +215,7 @@
|
||||
}
|
||||
}
|
||||
if (!http_request){
|
||||
alert('This browser is not supported.');
|
||||
alert( _('ID_BROWSER_NOT_SUPPORTED') );
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -253,7 +253,7 @@
|
||||
document.location = document.location;
|
||||
}
|
||||
else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert(_('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -474,7 +474,7 @@
|
||||
uploadDocumentGridDownload();
|
||||
},
|
||||
render: function(){
|
||||
this.loadMask = new Ext.LoadMask(this.body, {msg:'Loading...'});
|
||||
this.loadMask = new Ext.LoadMask(this.body, {msg:_('ID_LOADING')});
|
||||
processesGrid.getSelectionModel().on('rowselect', function() {
|
||||
var rowSelected = processesGrid.getSelectionModel().getSelected();
|
||||
});
|
||||
|
||||
@@ -33,7 +33,8 @@ Ext.onReady(function(){
|
||||
updateCasesTree();
|
||||
}
|
||||
else
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
//Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert(_('ID_REFRESH_LABEL'),_('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
});
|
||||
|
||||
@@ -131,7 +132,7 @@ Ext.onReady(function(){
|
||||
|
||||
},
|
||||
render: function(){
|
||||
this.loadMask = new Ext.LoadMask(this.body, { msg:'Loading...' });
|
||||
this.loadMask = new Ext.LoadMask(this.body, { msg:_('ID_LOADING_GRID') });
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -398,7 +399,7 @@ Ext.onReady(function(){
|
||||
items: [],
|
||||
listeners:{
|
||||
show:function() {
|
||||
this.loadMask = new Ext.LoadMask(this.body, { msg:'Loading. Please wait...' });
|
||||
this.loadMask = new Ext.LoadMask(this.body, { msg:_('ID_LOADING') });
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -251,7 +251,7 @@ Ext.onReady(function(){
|
||||
title: _('ID_CASE') +' ' + _APP_NUM,
|
||||
frameConfig:{name:'openCaseFrame', id:'openCaseFrame'},
|
||||
defaultSrc : uri,
|
||||
loadMask:{msg:_('ID_LOADING_GRID')+'...'},
|
||||
loadMask:{msg: _('ID_LOADING_GRID') },
|
||||
bodyStyle:{height: (PMExt.getBrowser().screen.height-60) + 'px', overflow:'auto'},
|
||||
width:screenWidth
|
||||
|
||||
@@ -390,7 +390,7 @@ Ext.onReady(function(){
|
||||
win.show();
|
||||
},
|
||||
failure: function ( result, request) {
|
||||
Ext.MessageBox.alert('Failed', result.responseText);
|
||||
Ext.MessageBox.alert( _('ID_FAILED') , result.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -449,7 +449,7 @@ Ext.onReady(function(){
|
||||
win.show();
|
||||
},
|
||||
failure: function ( result, request) {
|
||||
Ext.MessageBox.alert('Failed', result.responseText);
|
||||
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -538,12 +538,12 @@ Ext.onReady(function(){
|
||||
location.href = 'casesListExtJs';
|
||||
},
|
||||
failure: function ( result, request) {
|
||||
Ext.MessageBox.alert('Failed', result.responseText);
|
||||
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
},{
|
||||
text: 'Cancel',
|
||||
text: _('ID_CANCEL'),
|
||||
handler: function(){
|
||||
msgCancel.close();
|
||||
}
|
||||
@@ -655,7 +655,7 @@ Ext.onReady(function(){
|
||||
}
|
||||
},
|
||||
failure: function ( result, request) {
|
||||
Ext.MessageBox.alert('Failed', result.responseText);
|
||||
Ext.MessageBox.alert( _('ID_FAILED') , result.responseText);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -686,7 +686,7 @@ Ext.onReady(function(){
|
||||
new Ext.form.DateField({
|
||||
id: 'unpauseDate',
|
||||
format: 'Y-m-d',
|
||||
fieldLabel: 'Unpause Date',
|
||||
fieldLabel: _('ID_UNPAUSE_DATE'),
|
||||
name: 'unpauseDate',
|
||||
allowBlank: false,
|
||||
value: filterDate,
|
||||
@@ -714,7 +714,7 @@ Ext.onReady(function(){
|
||||
handler : Actions.pauseCase,
|
||||
disabled:false
|
||||
},{
|
||||
text : 'Cancel',
|
||||
text : _('ID_CANCEL'),
|
||||
handler : function() {
|
||||
win.close();
|
||||
}
|
||||
@@ -732,7 +732,7 @@ Ext.onReady(function(){
|
||||
|
||||
|
||||
var win = new Ext.Window({
|
||||
title: 'Pause Case',
|
||||
title: _('ID_PAUSE_CASE'),
|
||||
width: 370,
|
||||
height: 230,
|
||||
layout:'fit',
|
||||
@@ -772,18 +772,18 @@ Ext.onReady(function(){
|
||||
NOTE_REASON: noteReasonTxt,
|
||||
NOTIFY_PAUSE: notifyReasonVal
|
||||
},
|
||||
waitMsg:'Pausing Case '+parent._CASE_TITLE+'...',
|
||||
waitMsg: _('ID_PAUSING_CASE')+parent._CASE_TITLE+'...',
|
||||
timeout : 36000,
|
||||
success : function(res, req) {
|
||||
if(req.result.success) {
|
||||
try {
|
||||
parent.notify('PAUSE CASE', req.result.msg);
|
||||
parent.notify( _('ID_PAUSE_CASE') , req.result.msg);
|
||||
}
|
||||
catch (e) {
|
||||
}
|
||||
location.href = 'casesListExtJs';
|
||||
} else {
|
||||
PMExt.error(_('ID_ERROR'), req.result.msg);
|
||||
PMExt.error( _('ID_ERROR'), req.result.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -792,7 +792,7 @@ Ext.onReady(function(){
|
||||
Actions.unpauseCase = function()
|
||||
{
|
||||
PMExt.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_UNPAUSE_CASE'), function(){
|
||||
var loadMask = new Ext.LoadMask(document.body, {msg:'Unpausing case...'});
|
||||
var loadMask = new Ext.LoadMask(document.body, {msg: _('ID_UNPAUSING_CASE') });
|
||||
loadMask.show();
|
||||
|
||||
Ext.Ajax.request({
|
||||
@@ -813,7 +813,7 @@ Ext.onReady(function(){
|
||||
}
|
||||
},
|
||||
failure: function ( result, request) {
|
||||
Ext.MessageBox.alert('Failed', result.responseText);
|
||||
Ext.MessageBox.alert( _('ID_FAILED') , result.responseText);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -822,7 +822,7 @@ Ext.onReady(function(){
|
||||
Actions.deleteCase = function()
|
||||
{
|
||||
PMExt.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_DELETE_CASE'), function(){
|
||||
var loadMask = new Ext.LoadMask(document.body, {msg:'Deleting case...'});
|
||||
var loadMask = new Ext.LoadMask(document.body, {msg: _('ID_DELETING_CASE') });
|
||||
loadMask.show();
|
||||
Ext.Ajax.request({
|
||||
url : '../adhocUserProxy/deleteCase',
|
||||
@@ -841,7 +841,7 @@ Ext.onReady(function(){
|
||||
}
|
||||
},
|
||||
failure: function ( result, request) {
|
||||
Ext.MessageBox.alert('Failed', result.responseText);
|
||||
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -850,7 +850,7 @@ Ext.onReady(function(){
|
||||
Actions.reactivateCase = function()
|
||||
{
|
||||
PMExt.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_REACTIVATE_CASE'), function(){
|
||||
var loadMask = new Ext.LoadMask(document.body, {msg:'Reactivating case...'});
|
||||
var loadMask = new Ext.LoadMask(document.body, {msg: _('ID_REACTIVATING_CASE') });
|
||||
loadMask.show();
|
||||
Ext.Ajax.request({
|
||||
url : 'ajaxListener' ,
|
||||
@@ -870,7 +870,7 @@ Ext.onReady(function(){
|
||||
}
|
||||
},
|
||||
failure: function ( result, request) {
|
||||
Ext.MessageBox.alert('Failed', result.responseText);
|
||||
Ext.MessageBox.alert( _('ID_FAILED'), result.responseText);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -1007,7 +1007,7 @@ Ext.onReady(function(){
|
||||
title: menuSelectedTitle[name],
|
||||
frameConfig:{name: name + 'Frame', id: name + 'Frame'},
|
||||
defaultSrc : uri,
|
||||
loadMask:{msg:_('ID_LOADING_GRID')+'...'},
|
||||
loadMask:{msg:_('ID_LOADING_GRID')},
|
||||
autoWidth: true,
|
||||
closable:true,
|
||||
autoScroll: true,
|
||||
@@ -1054,7 +1054,7 @@ Ext.onReady(function(){
|
||||
pageSize: 8,
|
||||
store: store,
|
||||
displayInfo: true,
|
||||
displayMsg: 'Displaying Users {0} - {1} of {2}',
|
||||
displayMsg: _('ID_GRID_PAGE_DISPLAYING_USERS_MESSAGE'),
|
||||
emptyMsg: "",
|
||||
items:[]
|
||||
});
|
||||
@@ -1107,7 +1107,7 @@ Ext.onReady(function(){
|
||||
{
|
||||
rowSelected = adHocUserGrid.getSelectionModel().getSelected();
|
||||
PMExt.confirm(_('ID_CONFIRM'), _('ID_CONFIRM_ADHOCUSER_CASE'), function(){
|
||||
var loadMask = new Ext.LoadMask(document.body, {msg:'Assignment case...'});
|
||||
var loadMask = new Ext.LoadMask(document.body, {msg:_('ID_ASSIGNMENT_CASE')});
|
||||
loadMask.show();
|
||||
Ext.Ajax.request({
|
||||
url : '../adhocUserProxy/reassignCase' ,
|
||||
@@ -1125,7 +1125,7 @@ Ext.onReady(function(){
|
||||
}
|
||||
},
|
||||
failure: function ( result, request) {
|
||||
Ext.MessageBox.alert('Failed', result.responseText);
|
||||
Ext.MessageBox.alert(_('ID_FAILED'), result.responseText);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@@ -123,7 +123,7 @@ Ext.onReady(function() {
|
||||
},
|
||||
failure: function (result, request) {
|
||||
myMask.hide();
|
||||
Ext.MessageBox.alert('Alert', 'Ajax communication failed');
|
||||
Ext.MessageBox.alert(_('ID_ALERT'), _('ID_AJAX_COMMUNICATION_FAILED'));
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -208,7 +208,7 @@ Ext.onReady(function() {
|
||||
text: _('ID_SAVE'),
|
||||
handler: function () {
|
||||
if (dashletInstanceFrm.getForm().isValid()) {
|
||||
var myMask = new Ext.LoadMask(Ext.getBody(), {msg: 'Saving. Please wait...'});
|
||||
var myMask = new Ext.LoadMask(Ext.getBody(), {msg: _('ID_SAVING_LABEL') + '.' + _('ID_PLEASE_WAIT') });
|
||||
myMask.show();
|
||||
Ext.Ajax.request({
|
||||
url: 'saveDashletInstance',
|
||||
|
||||
@@ -9,7 +9,7 @@ new Ext.KeyMap(document, [{
|
||||
document.location = document.location;
|
||||
}
|
||||
else {
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert(_('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -50,7 +50,7 @@ Ext.onReady(function(){
|
||||
var tools = [{
|
||||
id:'gear',
|
||||
handler: function(){
|
||||
Ext.Msg.alert('Message', 'The Settings tool was clicked.');
|
||||
Ext.Msg.alert(_('ID_MESSAGE'), _('ID_SETTING_MESSAGE'));
|
||||
}
|
||||
},{
|
||||
id:'close',
|
||||
|
||||
@@ -37,7 +37,7 @@ new Ext.KeyMap(document,
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert(_('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -182,8 +182,8 @@ Ext.onReady(function() {
|
||||
,
|
||||
{
|
||||
xtype: 'combo',
|
||||
fieldLabel: 'Manager',
|
||||
hiddenName: 'manager',
|
||||
fieldLabel: _('ID_MANAGER'),
|
||||
hiddenName: _('ID_MANAGER'),
|
||||
typeAhead: true,
|
||||
mode: 'local',
|
||||
store: comboDepManager,
|
||||
@@ -203,7 +203,7 @@ Ext.onReady(function() {
|
||||
});
|
||||
|
||||
rootNode = new Ext.tree.AsyncTreeNode({
|
||||
text:'Departments'
|
||||
text: _('ID_DEPARTMENTS')
|
||||
});
|
||||
|
||||
treePanel = new Ext.ux.tree.TreeGrid({
|
||||
|
||||
@@ -15,7 +15,7 @@ new Ext.KeyMap(document, {
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert(_('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -200,12 +200,12 @@ Ext.onReady(function(){
|
||||
});
|
||||
|
||||
availableGrid = new Ext.grid.GridPanel({
|
||||
layout : 'fit',
|
||||
layout : 'fit',
|
||||
title : _('ID_AVAILABLE_USERS'),
|
||||
region : 'center',
|
||||
ddGroup : 'assignedGridDDGroup',
|
||||
store : storeA,
|
||||
cm : cmodelP,
|
||||
region : 'center',
|
||||
ddGroup : 'assignedGridDDGroup',
|
||||
store : storeA,
|
||||
cm : cmodelP,
|
||||
sm : smodelA,
|
||||
enableDragDrop : true,
|
||||
stripeRows : true,
|
||||
@@ -305,8 +305,6 @@ Ext.onReady(function(){
|
||||
tbar: ['<b>'+_('ID_DEPARTMENT') + ' : ' + DEPARTMENT.DEP_TITLE + '</b>',{xtype: 'tbfill'},backButton]
|
||||
});
|
||||
|
||||
|
||||
|
||||
//LOAD ALL PANELS
|
||||
viewport = new Ext.Viewport({
|
||||
layout: 'border',
|
||||
@@ -534,7 +532,7 @@ UpdateSupervisor = function(){
|
||||
render_status = function(v){
|
||||
switch(v){
|
||||
case 'ACTIVE': return '<font color="green">' + _('ID_ACTIVE') + '</font>'; break;
|
||||
case 'INACTIVE': return '<font color="red">' + _('ID_INACTIVE') + '</font>';; break;
|
||||
case 'VACATION': return '<font color="blue">' + _('ID_VACATION') + '</font>';; break;
|
||||
case 'INACTIVE': return '<font color="red">' + _('ID_INACTIVE') + '</font>'; break;
|
||||
case 'VACATION': return '<font color="blue">' + _('ID_VACATION') + '</font>'; break;
|
||||
}
|
||||
};
|
||||
@@ -14,7 +14,7 @@ new Ext.KeyMap(document, [{
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
} else {
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert(_('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -64,10 +64,10 @@ Ext.onReady(function(){
|
||||
boxMaxWidth : 90,
|
||||
editable : false,
|
||||
mode : 'local',
|
||||
emptyText: _('ID_SELECT_STATUS'),
|
||||
emptyText : _('ID_SELECT_STATUS'),
|
||||
store : new Ext.data.ArrayStore({
|
||||
fields: ['id', 'value'],
|
||||
data : statusValues
|
||||
fields : ['id', 'value'],
|
||||
data : statusValues
|
||||
}),
|
||||
valueField : 'id',
|
||||
displayField : 'value',
|
||||
@@ -91,7 +91,7 @@ Ext.onReady(function(){
|
||||
boxMaxWidth : 150,
|
||||
editable : false,
|
||||
mode : 'local',
|
||||
emptyText: _('ID_EMPTY_TYPE'),
|
||||
emptyText : _('ID_EMPTY_TYPE'),
|
||||
store : new Ext.data.ArrayStore({
|
||||
fields: ['id', 'value'],
|
||||
data : typeValues
|
||||
|
||||
@@ -18,7 +18,7 @@ new Ext.KeyMap(document,
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert(_('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ new Ext.KeyMap(document, {
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert(_('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -209,7 +209,7 @@ Ext.onReady(function(){
|
||||
store : storeA,
|
||||
displayInfo : true,
|
||||
displayMsg : '{0} - {1} of {2}',
|
||||
emptyMsg : 'No records',
|
||||
emptyMsg : _('ID_NO_RECORDS_FOUND') ,
|
||||
items: ['-', _('ID_PAGE_SIZE')+':', comboPageSizeAvailable ]
|
||||
});
|
||||
|
||||
@@ -270,7 +270,7 @@ Ext.onReady(function(){
|
||||
store : storeP,
|
||||
displayInfo : true,
|
||||
displayMsg : '{0} - {1} of {2}',
|
||||
emptyMsg : 'No records',
|
||||
emptyMsg : _('ID_NO_RECORDS_FOUND'),
|
||||
items: ['-', _('ID_PAGE_SIZE')+':', comboPageSizeAssigned ]
|
||||
});
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ Ext.onReady(function(){
|
||||
url: 'newSite',
|
||||
success: function(response){
|
||||
var existMsg = '<span style="color: red;">(Exists)</span>';
|
||||
var noExistsMsg = '<span style="color: green;">(No exists)</span>';
|
||||
var noExistsMsg = '<span style="color: green;">(Not Exist)</span>';
|
||||
var response = Ext.util.JSON.decode(response.responseText);
|
||||
Ext.get('wfDatabaseSpan').dom.innerHTML = (response.wfDatabaseExists ? existMsg : noExistsMsg);
|
||||
Ext.get('rbDatabaseSpan').dom.innerHTML = (response.rbDatabaseExists ? existMsg : noExistsMsg);
|
||||
@@ -139,12 +139,12 @@ Ext.onReady(function(){
|
||||
});
|
||||
|
||||
steps[setIndex++] = new Ext.ux.Wiz.Card({
|
||||
title: 'Database Configuration',
|
||||
title: 'Database Configuration' ,
|
||||
monitorValid: false,
|
||||
items: [
|
||||
{
|
||||
border: false,
|
||||
html: 'Database Configuration',
|
||||
html: 'Database Configuration' ,
|
||||
bodyStyle: 'background:none;padding-top:0px;padding-bottom:5px;font-weight:bold;font-size:1.3em;'
|
||||
},
|
||||
{
|
||||
@@ -255,7 +255,7 @@ Ext.onReady(function(){
|
||||
id: 'db_message'
|
||||
},
|
||||
new Ext.Button({
|
||||
text: ' Test Connection',
|
||||
text: 'Test Connection',
|
||||
handler: testConnection,
|
||||
scope: this
|
||||
})
|
||||
@@ -392,7 +392,7 @@ Ext.onReady(function(){
|
||||
}),
|
||||
{
|
||||
xtype: 'textfield',
|
||||
fieldLabel: 'Workflow Database Name <span id="wfDatabaseSpan"></span>',
|
||||
fieldLabel: 'Workflow Database Name' + '<span id="wfDatabaseSpan"></span>',
|
||||
id: 'wfDatabase',
|
||||
value:'wf_workflow',
|
||||
allowBlank: false,
|
||||
@@ -442,7 +442,7 @@ Ext.onReady(function(){
|
||||
}}
|
||||
},
|
||||
new Ext.form.Checkbox({
|
||||
boxLabel: "Delete Databases if exists",
|
||||
boxLabel: 'Delete Databases if exists',
|
||||
id: 'deleteDB',
|
||||
handler: function() {
|
||||
wizard.onClientValidation(2, false);
|
||||
@@ -454,7 +454,7 @@ Ext.onReady(function(){
|
||||
},
|
||||
new Ext.Button({
|
||||
id: 'checkWSConfiguration',
|
||||
text: ' Check Workspace Configuration',
|
||||
text: 'Check Workspace Configuration',
|
||||
handler: checkWorkspaceConfiguration,
|
||||
scope: this
|
||||
})
|
||||
@@ -509,7 +509,7 @@ Ext.onReady(function(){
|
||||
'action': 'createWorkspace',
|
||||
'db_engine': Ext.getCmp('db_engine').getValue(),
|
||||
'db_hostname': Ext.getCmp('db_hostname').getValue(),
|
||||
'db_username': Ext.getCmp('db_username').getValue(),
|
||||
'db_username': Ext.getCmp('db_username').getValue(),
|
||||
'db_password': Ext.getCmp('db_password').getValue(),
|
||||
'db_port': Ext.getCmp('db_port').getValue(),
|
||||
'pathConfig': pathConfig,
|
||||
|
||||
@@ -14,7 +14,7 @@ new Ext.KeyMap(document, [{
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
} else {
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert(_('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ var Login = function() {
|
||||
Ext.getCmp('userTxt').focus(true, 1000);
|
||||
|
||||
if (typeof errMsg != 'undefined') {
|
||||
Ext.msgBoxSlider.msgTopCenter('alert', 'ERROR', errMsg, 10);
|
||||
Ext.msgBoxSlider.msgTopCenter('alert', _('ID_ERROR') , errMsg, 10);
|
||||
}
|
||||
|
||||
if (typeof flyNotify != 'undefined') {
|
||||
@@ -369,7 +369,7 @@ Login.initComponents = function()
|
||||
{
|
||||
xtype: 'iframepanel',
|
||||
defaultSrc : '../services/login_getStarted.php',
|
||||
loadMask:{msg:_('ID_LOADING')+'...'},
|
||||
loadMask:{msg:_('ID_LOADING')},
|
||||
bodyStyle:{height: (PMExt.getBrowser().screen.height-60) + 'px', overflow:'auto'},
|
||||
width:588
|
||||
}
|
||||
@@ -419,7 +419,7 @@ Login.sendFpRequest = function()
|
||||
Login.forgotPasswordForm.getForm().submit({
|
||||
method: 'POST',
|
||||
waitTitle: '',
|
||||
waitMsg: 'Sending Request...',
|
||||
waitMsg: _('ID_SENDING_REQUEST'),
|
||||
success: function(form, action)
|
||||
{
|
||||
serverResponse = Ext.util.JSON.decode(action.response.responseText);
|
||||
|
||||
@@ -325,7 +325,7 @@ Login.submit = function()
|
||||
//Ext.msgBoxSlider.msgTopCenter('alert', 'LOGIN ERROR', serverResponse.message, 10);
|
||||
}
|
||||
else {
|
||||
Ext.Msg.alert('ERROR', _('ID_SERVER_PROBLEM') + ' ' + action.response.responseText);
|
||||
Ext.Msg.alert( _('ID_ERROR'), _('ID_SERVER_PROBLEM') + ' ' + action.response.responseText);
|
||||
}
|
||||
//Login.form.getForm().reset();
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ Ext.onReady(function(){
|
||||
});
|
||||
|
||||
genDataReportButton = new Ext.Action({
|
||||
text: 'Regenerate Data Report',
|
||||
text: _('ID_REGENERATE_DATA_REPORT'),
|
||||
iconCls: 'silk-add',
|
||||
icon: '/images/database-tool.png',
|
||||
handler: genDataReport,
|
||||
@@ -464,8 +464,8 @@ ImportPMTableCSV = function(){
|
||||
items : [{
|
||||
xtype : 'fileuploadfield',
|
||||
id : 'csv-file',
|
||||
emptyText : 'Select a file',
|
||||
fieldLabel : 'CSV File',
|
||||
emptyText : _('ID_SELECT_FILE'),
|
||||
fieldLabel : _('ID_CSV_FILE'),
|
||||
name : 'form[CSV_FILE]',
|
||||
buttonText : '',
|
||||
buttonCfg : {
|
||||
@@ -474,7 +474,7 @@ ImportPMTableCSV = function(){
|
||||
}, {
|
||||
xtype : 'combo',
|
||||
id : 'csv-delimiter',
|
||||
fieldLabel : 'Delimited by',
|
||||
fieldLabel : _('ID_DELIMITED_BY'),
|
||||
hiddenName : 'form[CSV_DELIMITER]',
|
||||
mode : 'local',
|
||||
store : comboDelimiter,
|
||||
@@ -501,7 +501,7 @@ ImportPMTableCSV = function(){
|
||||
if(uploader.getForm().isValid()){
|
||||
uploader.getForm().submit({
|
||||
url : '../pmTablesProxy/importCSV',
|
||||
waitMsg : 'Uploading file...',
|
||||
waitMsg : _('ID_UPLOADING_FILE'),
|
||||
success : function(o, resp){
|
||||
w.close();
|
||||
infoGrid.store.reload();
|
||||
@@ -576,7 +576,7 @@ ExportPMTableCSV = function(){
|
||||
items : [{
|
||||
xtype : 'combo',
|
||||
id : 'csv_delimiter',
|
||||
fieldLabel : 'Delimited by',
|
||||
fieldLabel : _('ID_DELIMITED_BY'),
|
||||
hiddenName : 'form[CSV_DELIMITER]',
|
||||
mode : 'local',
|
||||
store : comboDelimiter,
|
||||
|
||||
@@ -212,8 +212,8 @@ Ext.onReady(function(){
|
||||
dataIndex: 'field_null',
|
||||
align: 'center',
|
||||
width: 50,
|
||||
trueText: 'Yes',
|
||||
falseText: 'No',
|
||||
trueText: _('ID_YES'),
|
||||
falseText: _('ID_NO'),
|
||||
editor: {
|
||||
xtype: 'checkbox'
|
||||
}
|
||||
@@ -223,8 +223,8 @@ Ext.onReady(function(){
|
||||
dataIndex: 'field_key',
|
||||
align: 'center',
|
||||
width: 80,
|
||||
trueText: 'Yes',
|
||||
falseText: 'No',
|
||||
trueText: _('ID_YES'),
|
||||
falseText: _('ID_NO'),
|
||||
editor: {
|
||||
xtype: 'checkbox'
|
||||
}
|
||||
@@ -234,8 +234,8 @@ Ext.onReady(function(){
|
||||
dataIndex: 'field_autoincrement',
|
||||
align: 'center',
|
||||
width: 80,
|
||||
trueText: 'Yes',
|
||||
falseText: 'No',
|
||||
trueText: _('ID_YES'),
|
||||
falseText: _('ID_NO'),
|
||||
editor: {
|
||||
xtype: 'checkbox'
|
||||
}
|
||||
@@ -250,8 +250,8 @@ Ext.onReady(function(){
|
||||
dataIndex: 'field_filter',
|
||||
align: 'center',
|
||||
width: 50,
|
||||
trueText: 'Yes',
|
||||
falseText: 'No',
|
||||
trueText: _('ID_YES'),
|
||||
falseText: _('ID_NO'),
|
||||
editor: {
|
||||
xtype: 'checkbox'
|
||||
}
|
||||
@@ -786,7 +786,7 @@ function createReportTable()
|
||||
if (dbg) {
|
||||
_showDebugWin(resp.responseText);
|
||||
} else {
|
||||
PMExt.error('ERROR', 'Something was wrong.');
|
||||
PMExt.error( _('ID_ERROR'), _('ID_SOMETHING_WRONG'));
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -1003,8 +1003,8 @@ var DDLoadFields = function(){
|
||||
var meta = mapPMFieldType(records[i].data['FIELD_UID']);
|
||||
var row = new PMRow({
|
||||
uid : '',
|
||||
field_uid : records[i].data['FIELD_UID'],
|
||||
field_dyn : records[i].data['FIELD_NAME'],
|
||||
field_uid : records[i].data['FIELD_UID'],
|
||||
field_dyn : records[i].data['FIELD_NAME'],
|
||||
field_name : records[i].data['FIELD_NAME'].toUpperCase(),
|
||||
field_label : records[i].data['FIELD_NAME'].toUpperCase(),
|
||||
field_type : meta.type,
|
||||
|
||||
@@ -17,11 +17,11 @@ var removeButton;
|
||||
var removeAllButton;
|
||||
var tmp1 = new Array();
|
||||
var pageSize = 50;
|
||||
var mainMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});
|
||||
var mainMask = new Ext.LoadMask(Ext.getBody(), {msg: _('ID_PLEASE_WAIT') });
|
||||
var bbarpaging;
|
||||
//main
|
||||
Ext.onReady(function(){
|
||||
mainMask = new Ext.LoadMask(Ext.getBody(), {msg:"Please wait..."});
|
||||
mainMask = new Ext.LoadMask(Ext.getBody(), {msg: _('ID_PLEASE_WAIT') });
|
||||
var fm = Ext.form;
|
||||
var fieldsCount = 0;
|
||||
|
||||
@@ -135,7 +135,7 @@ Ext.onReady(function(){
|
||||
store: storeA,
|
||||
displayInfo: true,
|
||||
displayMsg: '{0} - {1} of {2}',
|
||||
emptyMsg: 'No records'/*,
|
||||
emptyMsg: _('ID_NO_RECORDS')/*,
|
||||
items: ['-',_('ID_PAGE_SIZE')+':',comboPageSize]*/
|
||||
});
|
||||
|
||||
@@ -339,8 +339,8 @@ Ext.onReady(function(){
|
||||
dataIndex: 'field_autoincrement',
|
||||
align: 'center',
|
||||
width: 100,
|
||||
trueText: 'Yes',
|
||||
falseText: 'No',
|
||||
trueText: _('ID_YES'),
|
||||
falseText: _('ID_NO'),
|
||||
editor: {
|
||||
xtype: 'checkbox'
|
||||
}
|
||||
@@ -355,8 +355,8 @@ Ext.onReady(function(){
|
||||
dataIndex: 'field_filter',
|
||||
align: 'center',
|
||||
width: 50,
|
||||
trueText: 'Yes',
|
||||
falseText: 'No',
|
||||
trueText: _('ID_YES'),
|
||||
falseText: _('ID_NO'),
|
||||
editor: {
|
||||
xtype: 'checkbox'
|
||||
}
|
||||
@@ -424,7 +424,7 @@ Ext.onReady(function(){
|
||||
sm : sm,
|
||||
store : store,
|
||||
plugins : [editor, checkColumn],
|
||||
loadMask: {message:'Loading...'},
|
||||
loadMask: {message: _('ID_LOADING_GRID')},
|
||||
tbar : [
|
||||
{
|
||||
icon: '/images/add-row-after.png',
|
||||
@@ -893,7 +893,6 @@ Ext.onReady(function(){
|
||||
if(TABLE.ADD_TAB_TYPE != 'GRID')
|
||||
loadFieldNormal();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DDLoadFields();
|
||||
|
||||
@@ -166,7 +166,7 @@ Export.submit = function()
|
||||
if (result.success) {
|
||||
location.href = result.link;
|
||||
} else {
|
||||
PMExt.error(_('ID_ERROR', result.message));
|
||||
PMExt.error(_('ID_ERROR'), result.message));
|
||||
}
|
||||
},
|
||||
failure: function(obj, resp){
|
||||
|
||||
@@ -31,7 +31,7 @@ Ext.onReady(function(){
|
||||
document.location = document.location;
|
||||
}
|
||||
else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL') , _('ID_REFRESH_MESSAGE') );
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -262,7 +262,7 @@ Ext.onReady(function(){
|
||||
cmodelColumns.push({id:'ADD_TAB_UID', dataIndex: 'ADD_TAB_UID', hidden:true, hideable:false});
|
||||
cmodelColumns.push({dataIndex: 'ADD_TAB_TAG', hidden:true, hideable:false});
|
||||
cmodelColumns.push({header: _('ID_NAME'), dataIndex: 'ADD_TAB_NAME', width: 300, align:'left', renderer: function(v,p,r){
|
||||
return r.get('TYPE') == 'CLASSIC'? v + ' <span style="font-size:9px; color:green">(old version)</font>' : v;
|
||||
return r.get('TYPE') == 'CLASSIC'? v + ' <span style="font-size:9px; color:green">('+ _('ID_OLD_VERSION') +')</font>' : v;
|
||||
}});
|
||||
cmodelColumns.push({header: _('ID_DESCRIPTION'), dataIndex: 'ADD_TAB_DESCRIPTION', width: 400, hidden:false, align:'left', renderer: function(v,p,r){
|
||||
if (r.get('ADD_TAB_TAG')) {
|
||||
@@ -285,7 +285,7 @@ Ext.onReady(function(){
|
||||
|
||||
cmodelColumns.push({dataIndex: "DBS_UID", hidden: true, hideable: false});
|
||||
|
||||
cmodelColumns.push({header: 'Records', dataIndex: 'NUM_ROWS', width: 90, align:'left'});
|
||||
cmodelColumns.push({header: _('ID_RECORDS'), dataIndex: 'NUM_ROWS', width: 90, align:'left'});
|
||||
|
||||
if (PRO_UID === false) {
|
||||
cmodelColumns.push({header: _('ID_PROCESS'), dataIndex: 'PRO_TITLE', width: 180, align:'left'});
|
||||
@@ -345,7 +345,7 @@ Ext.onReady(function(){
|
||||
listeners: {
|
||||
rowdblclick: EditPMTable,
|
||||
render: function(){
|
||||
this.loadMask = new Ext.LoadMask(this.body, {msg:'loading'});
|
||||
this.loadMask = new Ext.LoadMask(this.body, {msg: _('ID_LOADING_GRID')});
|
||||
}
|
||||
},
|
||||
view: new Ext.grid.GroupingView({
|
||||
|
||||
@@ -17,7 +17,7 @@ new Ext.KeyMap(document, [
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL') , _('ID_REFRESH_MESSAGE') );
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -26,7 +26,7 @@ new Ext.KeyMap(document, {
|
||||
document.location = document.location;
|
||||
}
|
||||
else
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL') , _('ID_REFRESH_MESSAGE') );
|
||||
}
|
||||
});
|
||||
|
||||
@@ -627,7 +627,7 @@ deleteProcess = function(){
|
||||
errMsg += e + '<br/>';
|
||||
}
|
||||
Ext.MessageBox.show({
|
||||
title: 'Error',
|
||||
title: _('ID_ERROR'),
|
||||
msg: errMsg,
|
||||
buttons: Ext.MessageBox.OK,
|
||||
icon: Ext.MessageBox.ERROR
|
||||
|
||||
@@ -221,12 +221,12 @@ Ext.onReady(function(){
|
||||
if (TABLE !== false && TABLE.ADD_TAB_TAG == 'plugin@simplereport') {
|
||||
cmColumns.push({
|
||||
xtype: 'booleancolumn',
|
||||
header: 'Filter',
|
||||
header: _('ID_FILTER'),
|
||||
dataIndex: 'field_filter',
|
||||
align: 'center',
|
||||
width: 50,
|
||||
trueText: 'Yes',
|
||||
falseText: 'No',
|
||||
trueText: _('ID_YES'),
|
||||
falseText: _('ID_NO'),
|
||||
editor: {
|
||||
xtype: 'checkbox'
|
||||
}
|
||||
@@ -739,9 +739,6 @@ Ext.onReady(function(){
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
function createReportTable()
|
||||
@@ -769,12 +766,12 @@ function createReportTable()
|
||||
//row.data['FIELD_FILTER'] = typeof(row.data['FIELD_FILTER']) != 'undefined' && row.data['FIELD_FILTER'] ? true : false;
|
||||
|
||||
if(row.data['field_name'].trim() == '') {
|
||||
PMExt.error(_('ID_ERROR'), 'Field Name for "'+row.data['field_dyn']+'" is required.');
|
||||
PMExt.error(_('ID_ERROR'), _('ID_FIELD_NAME_FOR')+'"'+row.data['field_dyn']+'"'+ _('ID_IS_REQUIRED'));
|
||||
return false;
|
||||
}
|
||||
|
||||
if((row.data['field_type'] == 'VARCHAR' || row.data['field_type'] == 'INT') && row.data['field_name'] == '') {
|
||||
PMExt.error(_('ID_ERROR'), 'Field size for "'+row.data['field_type']+'": '+row.data['field_name']+'" please.');
|
||||
PMExt.error(_('ID_ERROR'), _('ID_FIELD_SIZE_FOR')+'"'+row.data['field_type']+'": '+row.data['field_name']+'"'+ _('ID_PLEASE'));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -928,12 +925,12 @@ saveReportTables = function(){
|
||||
row.data['FIELD_FILTER'] = typeof(row.data['FIELD_FILTER']) != 'undefined' && row.data['FIELD_FILTER'] ? true : false;
|
||||
|
||||
if(row.data['FIELD_NAME'].trim() == '') {
|
||||
PMExt.error(_('ID_ERROR'), 'Set a Phisical Field Name for "'+row.data['FIELD_DYNAFORM']+'" dynaform field please.');
|
||||
PMExt.error(_('ID_ERROR'), _('ID_PMTABLES_ALERT8') + '"'+row.data['FIELD_DYNAFORM']+'"'+_('ID_DYNAFORM_FIELD')+' '+ _('ID_PLEASE'));
|
||||
return false;
|
||||
}
|
||||
|
||||
if((row.data['FIELD_TYPE'] == 'VARCHAR' || row.data['FIELD_TYPE'] == 'INT') && row.data['FIELD_SIZE'] == '') {
|
||||
PMExt.error(_('ID_ERROR'), 'Set a field size for "'+row.data['FIELD_TYPE']+'": '+row.data['FIELD_NAME']+'" please.');
|
||||
PMExt.error(_('ID_ERROR'), _('ID_PMTABLES_ALERT5') + '"'+row.data['FIELD_TYPE']+'": '+row.data['FIELD_NAME'] + '"' + _('ID_PLEASE'));
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -955,7 +952,7 @@ saveReportTables = function(){
|
||||
data: Ext.util.JSON.encode(data)
|
||||
},
|
||||
success: function(obj, resp){
|
||||
PMExt.notify('DONE', 'Report table saved Successfully');
|
||||
PMExt.notify( _('ID_DONE') , _('ID_REPORT_SAVE') );
|
||||
Ext.getCmp('reportTableGrid').getStore().reload();
|
||||
Ext.getCmp('newRepTab').close();
|
||||
Ext.getCmp('winEditFields').close();
|
||||
@@ -1046,7 +1043,7 @@ FailureFields = function(){
|
||||
SaveFieldsReportTable = function(arr_avail, function_success, function_failure){
|
||||
var sw_response;
|
||||
//Ext.MessageBox.show({ msg: 'Match Fields', wait:true,waitConfig: {interval:200} });
|
||||
lmask = new Ext.LoadMask(Ext.getBody(),{msg:'Processing...'});
|
||||
lmask = new Ext.LoadMask(Ext.getBody(),{msg:_('ID_PROCESSING')});
|
||||
lmask.show();
|
||||
|
||||
Ext.Ajax.request({
|
||||
|
||||
@@ -16,7 +16,7 @@ new Ext.KeyMap(document, {
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL') , _('ID_REFRESH_MESSAGE') );
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -27,6 +27,7 @@ var editButton;
|
||||
var deleteButton;
|
||||
var importButton;
|
||||
var exportButton;
|
||||
|
||||
var dataButton;
|
||||
|
||||
var store;
|
||||
|
||||
@@ -18,7 +18,7 @@ new Ext.KeyMap(document,
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL') , _('ID_REFRESH_MESSAGE') );
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -16,7 +16,7 @@ new Ext.KeyMap(document, {
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -411,9 +411,9 @@ Ext.onReady(function(){
|
||||
});
|
||||
|
||||
availableUGrid = new Ext.grid.GridPanel({
|
||||
layout : 'fit',
|
||||
title: _('ID_AVAILABLE_USERS'),
|
||||
region : 'center',
|
||||
layout : 'fit',
|
||||
title : _('ID_AVAILABLE_USERS'),
|
||||
region : 'center',
|
||||
ddGroup : 'assignedUGridDDGroup',
|
||||
store : storeX,
|
||||
cm : cmodelU,
|
||||
@@ -439,9 +439,9 @@ Ext.onReady(function(){
|
||||
});
|
||||
|
||||
assignedUGrid = new Ext.grid.GridPanel({
|
||||
layout : 'fit',
|
||||
title: _('ID_ASSIGNED_USERS'),
|
||||
ddGroup : 'availableUGridDDGroup',
|
||||
layout : 'fit',
|
||||
title : _('ID_ASSIGNED_USERS'),
|
||||
ddGroup : 'availableUGridDDGroup',
|
||||
store : storeU,
|
||||
cm : cmodelU,
|
||||
sm : smodelU,
|
||||
|
||||
@@ -17,7 +17,7 @@ new Ext.KeyMap(document, [
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -6,7 +6,7 @@ Ext.onReady(function() {
|
||||
{
|
||||
xtype : 'checkbox',
|
||||
name : 'javascriptCache',
|
||||
fieldLabel : 'Terms of Use',
|
||||
fieldLabel : _('ID_TERMS_USE'),
|
||||
hideLabel : true,
|
||||
id : 'javascriptCache',
|
||||
boxLabel : _('ID_JAVASCRIPT_CACHE'),
|
||||
@@ -17,7 +17,7 @@ Ext.onReady(function() {
|
||||
{
|
||||
xtype : 'checkbox',
|
||||
name : 'metadataCache',
|
||||
fieldLabel : 'Terms of Use',
|
||||
fieldLabel : _('ID_TERMS_USE'),
|
||||
hideLabel : true,
|
||||
id : 'metadataCache',
|
||||
boxLabel : _('ID_FORMS_METADATA_CACHE'),
|
||||
@@ -28,7 +28,7 @@ Ext.onReady(function() {
|
||||
{
|
||||
xtype : 'checkbox',
|
||||
name : 'htmlCache',
|
||||
fieldLabel : 'Terms of Use',
|
||||
fieldLabel : _('ID_TERMS_USE'),
|
||||
hideLabel : true,
|
||||
id : 'htmlCache',
|
||||
boxLabel : _('ID_FORMS_HTML_CACHE'),
|
||||
|
||||
@@ -16,7 +16,7 @@ Ext.onReady(function(){
|
||||
}),
|
||||
valueField : 'LAN_ID',
|
||||
displayField : 'LAN_NAME',
|
||||
emptyText : 'Select',
|
||||
emptyText : _('ID_SELECT'),
|
||||
selectOnFocus : true,
|
||||
editable : false,
|
||||
allowBlank : false,
|
||||
|
||||
@@ -160,7 +160,7 @@ new Ext.KeyMap(document, {
|
||||
document.getElementById('setup-frame').src = document.getElementById('setup-frame').src;
|
||||
}
|
||||
else
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@ new Ext.KeyMap(document, {
|
||||
document.location = document.location;
|
||||
}
|
||||
else
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE') );
|
||||
}
|
||||
});
|
||||
|
||||
@@ -140,7 +140,7 @@ Ext.onReady(function(){
|
||||
],
|
||||
listeners: {
|
||||
render: function(){
|
||||
this.loadMask = new Ext.LoadMask(this.body, {msg:'Loading...'});
|
||||
this.loadMask = new Ext.LoadMask(this.body, {msg: _('ID_LOADING_GRID')});
|
||||
//this.ownerCt.doLayout();
|
||||
Grid.getSelectionModel().on('rowselect', function(){
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ Ext.onReady(function() {
|
||||
xtype : 'checkbox',
|
||||
checked : heartBeatChecked,
|
||||
name : 'acceptHB',
|
||||
fieldLabel : 'Terms of Use',
|
||||
fieldLabel : _('ID_TERMS_USE'),
|
||||
hideLabel : true,
|
||||
id : 'ch_ii',
|
||||
style : 'margin-top:15px',
|
||||
|
||||
@@ -180,9 +180,9 @@ Ext.onReady(function(){
|
||||
name : 'SKIN_NAME'
|
||||
},
|
||||
|
||||
{
|
||||
name : 'SKIN_WORKSPACE'
|
||||
},
|
||||
{
|
||||
name : 'SKIN_WORKSPACE'
|
||||
},
|
||||
|
||||
{
|
||||
name : 'SKIN_DESCRIPTION'
|
||||
@@ -531,10 +531,10 @@ newSkin = function(){
|
||||
} else {
|
||||
Ext.getCmp("newDialog").destroy();
|
||||
if( !action.result ) {
|
||||
Ext.MessageBox.alert("error", action.response.responseText);
|
||||
Ext.MessageBox.alert( _('ID_ERROR') , action.response.responseText);
|
||||
return;
|
||||
}
|
||||
Ext.MessageBox.alert("error", action.result.error);
|
||||
Ext.MessageBox.alert( _('ID_ERROR') , action.result.error);
|
||||
}
|
||||
},
|
||||
scope: Ext.getCmp("newform"),
|
||||
@@ -651,10 +651,10 @@ importSkin = function(){
|
||||
Ext.getCmp("importDialog").destroy();
|
||||
|
||||
if( !action.result ) {
|
||||
Ext.MessageBox.alert("error", _('ID_ERROR'));
|
||||
return;
|
||||
Ext.MessageBox.alert( _('ID_ERROR') , _('ID_ERROR'));
|
||||
return;
|
||||
}
|
||||
Ext.MessageBox.alert("error", action.result.error);
|
||||
Ext.MessageBox.alert( _('ID_ERROR') , action.result.error);
|
||||
|
||||
},
|
||||
scope: Ext.getCmp("uploadform"),
|
||||
@@ -721,7 +721,7 @@ exportSkin = function(){
|
||||
viewport.getEl().unmask();
|
||||
}else{
|
||||
viewport.getEl().unmask();
|
||||
Ext.Msg.alert('Alert', resp.message);
|
||||
Ext.Msg.alert( _('ID_ALERT') , resp.message);
|
||||
//PMExt.error(_('ID_SKINS'),_('ID_MSG_CANNOT_EXPORT_SKIN'));
|
||||
}
|
||||
},
|
||||
|
||||
@@ -143,7 +143,7 @@ Ext.onReady(function(){
|
||||
pageSize: 15,
|
||||
store: store,
|
||||
displayInfo: true,
|
||||
displayMsg: 'Displaying items {0} - {1} of {2}',
|
||||
displayMsg: _('ID_GRID_PAGE_DISPLAYING_ITEMS'),
|
||||
emptyMsg: "",
|
||||
items:[
|
||||
]
|
||||
@@ -206,7 +206,7 @@ Ext.onReady(function(){
|
||||
readOnly: true
|
||||
})],
|
||||
bbar: [{
|
||||
text: 'Save',
|
||||
text: _('ID_SAVE'),
|
||||
iconCls: 'ss_sprite ss_disk',
|
||||
handler: saveEdit
|
||||
}]
|
||||
@@ -233,7 +233,7 @@ var edit = function(){
|
||||
activator.setIcon('');
|
||||
},
|
||||
failure: function ( result, request) {
|
||||
Ext.MessageBox.alert('Failed', result.responseText);
|
||||
Ext.MessageBox.alert( _('ID_FAILED') , result.responseText);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -265,7 +265,7 @@ var frm = new Ext.FormPanel( {
|
||||
width: 350
|
||||
}, {
|
||||
id: 'label',
|
||||
fieldLabel: 'Label',
|
||||
fieldLabel: _('ID_LABEL'),
|
||||
xtype:'textarea',
|
||||
width: 350,
|
||||
height: 50
|
||||
@@ -283,7 +283,7 @@ var frm = new Ext.FormPanel( {
|
||||
});
|
||||
|
||||
newLabelWin = new Ext.Window({
|
||||
title: 'New Translation',
|
||||
title: _('ID_NEW_TRANSLATION'),
|
||||
layout:'fit',
|
||||
title: _('ID_NEW'),
|
||||
width: 490,
|
||||
@@ -308,7 +308,7 @@ function saveNew()
|
||||
|
||||
Ext.getCmp('formNew').getForm().submit( {
|
||||
url : 'ajaxListener?action=save&id'+id+'&label='+label,
|
||||
waitMsg : 'Saving...',
|
||||
waitMsg : _('ID_SAVING'),
|
||||
timeout : 36000,
|
||||
success : function(obj, resp) {
|
||||
Ext.getCmp('grid').store.reload();
|
||||
@@ -339,12 +339,12 @@ function saveEdit()
|
||||
grid.store.reload();
|
||||
setTimeout('selectRow()', 1100);
|
||||
} else
|
||||
PMExt.error('Error', result.msg);
|
||||
PMExt.error( _('ID_ERROR'), result.msg);
|
||||
},
|
||||
params: {action:'save', id: rows[0].get('TRN_ID'), label: Ext.getCmp('editValue').getValue()}
|
||||
});
|
||||
|
||||
} else PMExt.error('ERROR', 'Just select one item from the list to edit!');
|
||||
} else PMExt.error( _('ID_ERROR'), _('ID_SELECT_ONE_ITEM_FROM_LIST'));
|
||||
}
|
||||
|
||||
function removeLabel()
|
||||
@@ -357,12 +357,10 @@ function removeLabel()
|
||||
|
||||
IDS = ids.join(',');
|
||||
|
||||
Ext.Msg.confirm(
|
||||
'Delete',
|
||||
'Delete the selected translations?',
|
||||
Ext.Msg.confirm( _('ID_DELETE'), _('ID_DELETE_TRANSLATIONS'),
|
||||
function(btn, text){
|
||||
if ( btn == 'yes' ){
|
||||
Ext.MessageBox.show({ msg:'Deleting elements...', wait:true,waitConfig: {interval:200} });
|
||||
Ext.MessageBox.show({ msg: _('ID_DELETING_ELEMENTS') , wait:true,waitConfig: {interval:200} });
|
||||
Ext.Ajax.request({
|
||||
url: 'ajaxListener',
|
||||
success: function(response) {
|
||||
@@ -372,7 +370,7 @@ function removeLabel()
|
||||
PMExt.notify('REMOVE', result.msg);
|
||||
Ext.getCmp('grid').store.reload();
|
||||
} else
|
||||
PMExt.error('Error', result.msg);
|
||||
PMExt.error( _('ID_ERROR'), result.msg);
|
||||
},
|
||||
params: {action:'delete', IDS: IDS}
|
||||
});
|
||||
@@ -380,14 +378,14 @@ function removeLabel()
|
||||
}
|
||||
);
|
||||
} else {
|
||||
PMExt.error('ERROR', 'Select a item from list please');
|
||||
PMExt.error( _('ID_ERROR'), _('ID_NO_SELECTION_WARNING'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function rebuild()
|
||||
{
|
||||
Ext.MessageBox.show({ msg: 'Rebuilding translations..', wait:true,waitConfig: {interval:200} });
|
||||
Ext.MessageBox.show({ msg: _('ID_REBUILDING_TRANSLATIONS') + '...' , wait:true,waitConfig: {interval:200} });
|
||||
Ext.Ajax.request({
|
||||
url: 'ajaxListener',
|
||||
params: {action:'rebuild'},
|
||||
@@ -396,15 +394,15 @@ function rebuild()
|
||||
result = Ext.util.JSON.decode(response.responseText);
|
||||
if(result.success){
|
||||
|
||||
var text = 'Cache file: ' + result.cacheFile + '<br/>';
|
||||
var text = _('ID_CACHE_FILE') + result.cacheFile + '<br/>';
|
||||
//text += 'JS Cache file: ' + result.cacheFileJS + '<br/>';
|
||||
text += 'Rows: ' + result.rows + '<br/>';
|
||||
text += _('ID_ROWS')+': ' + result.rows + '<br/>';
|
||||
//text += 'JS ROws: ' + result.rowsJS + '<br/>';
|
||||
|
||||
//PMExt.info('Result', text);
|
||||
PMExt.notify('REBUILD SUCCESS', text);
|
||||
} else
|
||||
PMExt.error('Error', result.msg);
|
||||
PMExt.error( _('ID_ERROR'), result.msg);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -544,8 +544,8 @@ Ext.onReady(function () {
|
||||
},
|
||||
failure: function () {
|
||||
Ext.MessageBox.show({
|
||||
title: 'Error',
|
||||
msg: 'Failed to store data',
|
||||
title: _('ID_ERROR'),
|
||||
msg: _('ID_FAILED_STORE_DATA'),
|
||||
buttons: Ext.MessageBox.OK,
|
||||
animEl: 'mb9',
|
||||
icon: Ext.MessageBox.ERROR
|
||||
@@ -1015,8 +1015,8 @@ function validateUserName() {
|
||||
},
|
||||
failure: function () {
|
||||
Ext.MessageBox.show({
|
||||
title: 'Error',
|
||||
msg: 'Failed to store data',
|
||||
title: _('ID_ERROR'),
|
||||
msg: _('ID_FAILED_STORE_DATA'),
|
||||
buttons: Ext.MessageBox.OK,
|
||||
animEl: 'mb9',
|
||||
icon: Ext.MessageBox.ERROR
|
||||
|
||||
@@ -16,7 +16,7 @@ new Ext.KeyMap(document, {
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE'));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -17,7 +17,7 @@ new Ext.KeyMap(document, [
|
||||
e.stopEvent();
|
||||
document.location = document.location;
|
||||
}else{
|
||||
Ext.Msg.alert('Refresh', 'You clicked: CTRL-F5');
|
||||
Ext.Msg.alert( _('ID_REFRESH_LABEL'), _('ID_REFRESH_MESSAGE') );
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user