OM-543 BE and FE
remove coment format files add files FE up observations
This commit is contained in:
@@ -2974,5 +2974,19 @@ class Bootstrap
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set Language
|
||||||
|
*/
|
||||||
|
public static function isIE()
|
||||||
|
{
|
||||||
|
$isIE = false;
|
||||||
|
if (isset($_SERVER['HTTP_USER_AGENT'])) {
|
||||||
|
$ua = htmlentities($_SERVER['HTTP_USER_AGENT'], ENT_QUOTES, 'UTF-8');
|
||||||
|
if (preg_match('~MSIE|Internet Explorer~i', $ua) || (strpos($ua, 'Trident/7.0; rv:11.0') !== false)) {
|
||||||
|
$isIE = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $isIE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -179,11 +179,7 @@ if (count($arrayTabItem) > 0) {
|
|||||||
$headPublisher->assign("urlProxy", $urlProxy);
|
$headPublisher->assign("urlProxy", $urlProxy);
|
||||||
$headPublisher->assign('credentials', $clientToken );
|
$headPublisher->assign('credentials', $clientToken );
|
||||||
|
|
||||||
$ieVersion = null;
|
$oHeadPublisher->assign('isIE', Bootstrap::isIE());
|
||||||
if(preg_match("/^.*\(.*MSIE (\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch) || preg_match("/^.*\(.*rv.(\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch)){
|
|
||||||
$ieVersion = intval($arrayMatch[1]);
|
|
||||||
}
|
|
||||||
$oHeadPublisher->assign( 'ieVersion', $ieVersion );
|
|
||||||
|
|
||||||
$headPublisher->addExtJsScript("app/main", true);
|
$headPublisher->addExtJsScript("app/main", true);
|
||||||
$headPublisher->addExtJsScript("cases/casesListConsolidated", false); //Adding a JavaScript file .js
|
$headPublisher->addExtJsScript("cases/casesListConsolidated", false); //Adding a JavaScript file .js
|
||||||
|
|||||||
@@ -223,11 +223,7 @@ $oHeadPublisher->addExtJsScript( 'cases/casesList', false ); //adding a javascri
|
|||||||
$oHeadPublisher->addContent( 'cases/casesListExtJs' ); //adding a html file .html.
|
$oHeadPublisher->addContent( 'cases/casesListExtJs' ); //adding a html file .html.
|
||||||
$oHeadPublisher->assign( 'FORMATS', $c->getFormats() );
|
$oHeadPublisher->assign( 'FORMATS', $c->getFormats() );
|
||||||
$oHeadPublisher->assign('extJsViewState', $oHeadPublisher->getExtJsViewState());
|
$oHeadPublisher->assign('extJsViewState', $oHeadPublisher->getExtJsViewState());
|
||||||
$ieVersion = null;
|
$oHeadPublisher->assign('isIE', Bootstrap::isIE());
|
||||||
if(preg_match("/^.*\(.*MSIE (\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch) || preg_match("/^.*\(.*rv.(\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch)){
|
|
||||||
$ieVersion = intval($arrayMatch[1]);
|
|
||||||
}
|
|
||||||
$oHeadPublisher->assign( 'ieVersion', $ieVersion );
|
|
||||||
G::RenderPage( 'publish', 'extJs' );
|
G::RenderPage( 'publish', 'extJs' );
|
||||||
|
|
||||||
function getUserArray ($action, $userUid)
|
function getUserArray ($action, $userUid)
|
||||||
|
|||||||
@@ -17,11 +17,7 @@ switch ($page) {
|
|||||||
G::LoadClass( 'configuration' );
|
G::LoadClass( 'configuration' );
|
||||||
$c = new Configurations();
|
$c = new Configurations();
|
||||||
$oHeadPublisher->assign( 'FORMATS', $c->getFormats() );
|
$oHeadPublisher->assign( 'FORMATS', $c->getFormats() );
|
||||||
$ieVersion = null;
|
$oHeadPublisher->assign('isIE', Bootstrap::isIE());
|
||||||
if(preg_match("/^.*\(.*MSIE (\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch) || preg_match("/^.*\(.*rv.(\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch)){
|
|
||||||
$ieVersion = intval($arrayMatch[1]);
|
|
||||||
}
|
|
||||||
$oHeadPublisher->assign( 'ieVersion', $ieVersion );
|
|
||||||
break;
|
break;
|
||||||
case "documents":
|
case "documents":
|
||||||
|
|
||||||
|
|||||||
@@ -100,11 +100,7 @@ $oHeadPublisher->addScriptCode( '
|
|||||||
$oHeadPublisher = & headPublisher::getSingleton();
|
$oHeadPublisher = & headPublisher::getSingleton();
|
||||||
$oHeadPublisher->addScriptFile( '/jscore/cases/core/cases_Step.js' );
|
$oHeadPublisher->addScriptFile( '/jscore/cases/core/cases_Step.js' );
|
||||||
|
|
||||||
$ieVersion = '';
|
$Fields['isIE'] = Bootstrap::isIE();
|
||||||
if(preg_match("/^.*\(.*MSIE (\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch) || preg_match("/^.*\(.*rv.(\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch)){
|
|
||||||
$ieVersion = intval($arrayMatch[1]);
|
|
||||||
}
|
|
||||||
$Fields['IE_VERSION'] = $ieVersion;
|
|
||||||
|
|
||||||
$G_PUBLISH = new Publisher();
|
$G_PUBLISH = new Publisher();
|
||||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_CatchSelfService.xml', '', $Fields, 'cases_CatchExecute' );
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'cases/cases_CatchSelfService.xml', '', $Fields, 'cases_CatchExecute' );
|
||||||
|
|||||||
@@ -272,12 +272,9 @@ try {
|
|||||||
$loc = $aNextStep['PAGE'];
|
$loc = $aNextStep['PAGE'];
|
||||||
}
|
}
|
||||||
//Triggers After
|
//Triggers After
|
||||||
$ieVersion = null;
|
$isIE = Bootstrap::isIE();
|
||||||
if(preg_match("/^.*\(.*MSIE (\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch) || preg_match("/^.*\(.*rv.(\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch)){
|
|
||||||
$ieVersion = intval($arrayMatch[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset( $_SESSION['TRIGGER_DEBUG']['ISSET'] ) && $ieVersion != 11) {
|
if (isset( $_SESSION['TRIGGER_DEBUG']['ISSET'] ) && !$isIE) {
|
||||||
if ($_SESSION['TRIGGER_DEBUG']['ISSET'] == 1) {
|
if ($_SESSION['TRIGGER_DEBUG']['ISSET'] == 1) {
|
||||||
$oTemplatePower = new TemplatePower( PATH_TPL . 'cases/cases_Step.html' );
|
$oTemplatePower = new TemplatePower( PATH_TPL . 'cases/cases_Step.html' );
|
||||||
$oTemplatePower->prepare();
|
$oTemplatePower->prepare();
|
||||||
@@ -296,7 +293,7 @@ try {
|
|||||||
|
|
||||||
//close tab only if IE11
|
//close tab only if IE11
|
||||||
|
|
||||||
if($ieVersion == 11 && !isset($_SESSION['__OUTLOOK_CONNECTOR__'])) {
|
if($isIE && !isset($_SESSION['__OUTLOOK_CONNECTOR__'])) {
|
||||||
$script = "<script type='text/javascript'>
|
$script = "<script type='text/javascript'>
|
||||||
try {
|
try {
|
||||||
if(top.opener) {
|
if(top.opener) {
|
||||||
|
|||||||
@@ -210,10 +210,7 @@ if (isset( $_GET['breakpoint'] )) {
|
|||||||
/**
|
/**
|
||||||
* Here we throw the debug view
|
* Here we throw the debug view
|
||||||
*/
|
*/
|
||||||
$ieVersion = null;
|
$isIE = Bootstrap::isIE();
|
||||||
if(preg_match("/^.*\(.*MSIE (\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch) || preg_match("/^.*\(.*rv.(\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch)){
|
|
||||||
$ieVersion = intval($arrayMatch[1]);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($_GET['breakpoint'])) {
|
if (isset($_GET['breakpoint'])) {
|
||||||
|
|
||||||
@@ -1166,7 +1163,7 @@ if (!isset($_SESSION["PM_RUN_OUTSIDE_MAIN_APP"])) {
|
|||||||
|
|
||||||
G::RenderPage( 'publish', 'blank' );
|
G::RenderPage( 'publish', 'blank' );
|
||||||
|
|
||||||
if ($_SESSION['TRIGGER_DEBUG']['ISSET'] && $ieVersion != 11) {
|
if ($_SESSION['TRIGGER_DEBUG']['ISSET'] && !$isIE) {
|
||||||
G::evalJScript( '
|
G::evalJScript( '
|
||||||
if (typeof showdebug != \'undefined\') {
|
if (typeof showdebug != \'undefined\') {
|
||||||
showdebug();
|
showdebug();
|
||||||
|
|||||||
@@ -275,8 +275,8 @@ class SkinEngine
|
|||||||
//Get the IE version
|
//Get the IE version
|
||||||
if(preg_match("/^.*\(.*MSIE (\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch) || preg_match("/^.*\(.*rv.(\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch)){
|
if(preg_match("/^.*\(.*MSIE (\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch) || preg_match("/^.*\(.*rv.(\d+)\..+\).*$/", $_SERVER["HTTP_USER_AGENT"], $arrayMatch)){
|
||||||
$ie = intval($arrayMatch[1]);
|
$ie = intval($arrayMatch[1]);
|
||||||
$ieVersion = $ie;
|
|
||||||
}
|
}
|
||||||
|
$isIE = Bootstrap::isIE();
|
||||||
|
|
||||||
$swTrident = (preg_match("/^.*Trident.*$/", $_SERVER["HTTP_USER_AGENT"]))? 1 : 0; //Trident only in IE8+
|
$swTrident = (preg_match("/^.*Trident.*$/", $_SERVER["HTTP_USER_AGENT"]))? 1 : 0; //Trident only in IE8+
|
||||||
|
|
||||||
@@ -296,7 +296,7 @@ class SkinEngine
|
|||||||
$meta = "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=$ie\" />";
|
$meta = "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=$ie\" />";
|
||||||
|
|
||||||
if (SYS_COLLECTION == 'cases') {
|
if (SYS_COLLECTION == 'cases') {
|
||||||
if($ieVersion == 11) {
|
if($isIE) {
|
||||||
$meta = "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />";
|
$meta = "<meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\" />";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -86,14 +86,6 @@ function openCase(){
|
|||||||
var appUid = rowModel.data.APP_UID;
|
var appUid = rowModel.data.APP_UID;
|
||||||
var delIndex = rowModel.data.DEL_INDEX;
|
var delIndex = rowModel.data.DEL_INDEX;
|
||||||
var caseTitle = (rowModel.data.APP_TITLE) ? rowModel.data.APP_TITLE : rowModel.data.APP_UID;
|
var caseTitle = (rowModel.data.APP_TITLE) ? rowModel.data.APP_TITLE : rowModel.data.APP_UID;
|
||||||
if(ieVersion != 11) {
|
|
||||||
Ext.Msg.show({
|
|
||||||
msg: _('ID_OPEN_CASE') + ' ' + caseTitle,
|
|
||||||
width:300,
|
|
||||||
wait:true,
|
|
||||||
waitConfig: {interval:200}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
params = '';
|
params = '';
|
||||||
switch(action){
|
switch(action){
|
||||||
case 'to_revise':
|
case 'to_revise':
|
||||||
@@ -131,7 +123,7 @@ function openCase(){
|
|||||||
// Nothing to do
|
// Nothing to do
|
||||||
}
|
}
|
||||||
params += '&action=' + action;
|
params += '&action=' + action;
|
||||||
if(ieVersion == 11) {
|
if(isIE) {
|
||||||
if(casesNewTab) {
|
if(casesNewTab) {
|
||||||
casesNewTab.close();
|
casesNewTab.close();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -237,16 +237,6 @@ function openCase(){
|
|||||||
var appUid = rowModel.data.APP_UID;
|
var appUid = rowModel.data.APP_UID;
|
||||||
var delIndex = rowModel.data.DEL_INDEX;
|
var delIndex = rowModel.data.DEL_INDEX;
|
||||||
var caseTitle = (rowModel.data.APP_TITLE) ? rowModel.data.APP_TITLE : rowModel.data.APP_UID;
|
var caseTitle = (rowModel.data.APP_TITLE) ? rowModel.data.APP_TITLE : rowModel.data.APP_UID;
|
||||||
if(ieVersion != 11) {
|
|
||||||
Ext.Msg.show({
|
|
||||||
msg: _("ID_OPEN_CASE") + " " + caseTitle,
|
|
||||||
width:300,
|
|
||||||
wait:true,
|
|
||||||
waitConfig: {
|
|
||||||
interval:200
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
params = '';
|
params = '';
|
||||||
switch(action){
|
switch(action){
|
||||||
case 'consolidated':
|
case 'consolidated':
|
||||||
@@ -258,7 +248,7 @@ function openCase(){
|
|||||||
}
|
}
|
||||||
params += '&action=' + 'todo';
|
params += '&action=' + 'todo';
|
||||||
|
|
||||||
if(ieVersion == 11) {
|
if(isIE) {
|
||||||
if(newCaseNewTab) {
|
if(newCaseNewTab) {
|
||||||
newCaseNewTab.close();
|
newCaseNewTab.close();
|
||||||
}
|
}
|
||||||
@@ -274,7 +264,7 @@ function openCase(){
|
|||||||
}
|
}
|
||||||
|
|
||||||
function jumpToCase(appNumber){
|
function jumpToCase(appNumber){
|
||||||
if(ieVersion != 11) {
|
if(isIE) {
|
||||||
Ext.MessageBox.show({ msg: _('ID_PROCESSING'), wait:true,waitConfig: {interval:200} });
|
Ext.MessageBox.show({ msg: _('ID_PROCESSING'), wait:true,waitConfig: {interval:200} });
|
||||||
}
|
}
|
||||||
Ext.Ajax.request({
|
Ext.Ajax.request({
|
||||||
@@ -286,7 +276,7 @@ function jumpToCase(appNumber){
|
|||||||
params = 'APP_NUMBER=' + appNumber;
|
params = 'APP_NUMBER=' + appNumber;
|
||||||
params += '&action=jump';
|
params += '&action=jump';
|
||||||
requestFile = '../cases/open';
|
requestFile = '../cases/open';
|
||||||
if(ieVersion == 11) {
|
if(isIE) {
|
||||||
if(newCaseNewTab) {
|
if(newCaseNewTab) {
|
||||||
newCaseNewTab.close();
|
newCaseNewTab.close();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -445,14 +445,6 @@ Ext.onReady(function() {
|
|||||||
|
|
||||||
function openCaseA(n){
|
function openCaseA(n){
|
||||||
if (n.attributes.optionType == "startProcess") {
|
if (n.attributes.optionType == "startProcess") {
|
||||||
if(ieVersion != 11) {
|
|
||||||
Ext.Msg.show({
|
|
||||||
title : '',
|
|
||||||
msg : TRANSLATIONS.ID_STARTING_NEW_CASE + '<br><br><b>' + n.attributes.text + '</b>',
|
|
||||||
wait:true,
|
|
||||||
waitConfig: {interval:500}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
Ext.Ajax.request({
|
Ext.Ajax.request({
|
||||||
url : 'casesStartPage_Ajax.php',
|
url : 'casesStartPage_Ajax.php',
|
||||||
params : {
|
params : {
|
||||||
@@ -465,7 +457,7 @@ function openCaseA(n){
|
|||||||
try {
|
try {
|
||||||
var res = Ext.util.JSON.decode(response.responseText);
|
var res = Ext.util.JSON.decode(response.responseText);
|
||||||
if (res.openCase) {
|
if (res.openCase) {
|
||||||
if(ieVersion == 11) {
|
if(isIE) {
|
||||||
if(newCaseNewTab) {
|
if(newCaseNewTab) {
|
||||||
newCaseNewTab.close();
|
newCaseNewTab.close();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
<input type="hidden" name="__DynaformName__" id="__DynaformName__" value="{$form_name}" />
|
<input type="hidden" name="__DynaformName__" id="__DynaformName__" value="{$form_name}" />
|
||||||
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
<table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||||
<tr style="display: none">
|
<tr style="display: none">
|
||||||
<td colspan="2">{$form.IE_VERSION}</td>
|
<td colspan="2">{$form.isIE}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class='FormTitle' colspan="2" align="">{$form.TITLE1}</td>
|
<td class='FormTitle' colspan="2" align="">{$form.TITLE1}</td>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<dynaForm enabletemplate="1" name="cases_Resume" type="xmlform" width="500px" labelWidth="100px">
|
<dynaForm enabletemplate="1" name="cases_Resume" type="xmlform" width="500px" labelWidth="100px">
|
||||||
<IE_VERSION type="hidden" />
|
<isIE type="hidden" />
|
||||||
<TITLE1 type="title">
|
<TITLE1 type="title">
|
||||||
<en><![CDATA[Claim Case]]></en>
|
<en><![CDATA[Claim Case]]></en>
|
||||||
</TITLE1>
|
</TITLE1>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
</BTN_CANCEL>
|
</BTN_CANCEL>
|
||||||
<JS type="javascript"> <![CDATA[
|
<JS type="javascript"> <![CDATA[
|
||||||
var dynaformOnload = function() {
|
var dynaformOnload = function() {
|
||||||
if(getField("IE_VERSION").value == 11) {
|
if(getField("isIE").value == "true") {
|
||||||
getField("BTN_CANCEL").setAttribute("onclick","");
|
getField("BTN_CANCEL").setAttribute("onclick","");
|
||||||
getField("BTN_CANCEL").onclick = function(){;
|
getField("BTN_CANCEL").onclick = function(){;
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user