CODE STYLE Formating
Change format files
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
<?php
|
||||
require_once 'classes/model/Application.php';
|
||||
G::LoadClass( 'case' );
|
||||
|
||||
class adhocUserProxy extends HttpProxyController
|
||||
{
|
||||
//list of users into adhoc option
|
||||
function adhocAssignUsersk($params){
|
||||
function adhocAssignUsersk ($params)
|
||||
{
|
||||
|
||||
G::LoadClass( 'groups' );
|
||||
G::LoadClass( 'tasks' );
|
||||
@@ -43,15 +45,15 @@ class adhocUserProxy extends HttpProxyController
|
||||
|
||||
}
|
||||
//assign user adhoc
|
||||
function reassignCase($params){
|
||||
|
||||
function reassignCase ($params)
|
||||
{
|
||||
$cases = new Cases();
|
||||
$cases->reassignCase( $_SESSION['APPLICATION'], $_SESSION['INDEX'], $_SESSION['USER_LOGGED'], $_POST['USR_UID'], $_POST['THETYPE'] );
|
||||
$this->success = true;
|
||||
|
||||
}
|
||||
//delete case adhoc
|
||||
function deleteCase($params){
|
||||
function deleteCase ($params)
|
||||
{
|
||||
$ainfoCase = array ();
|
||||
try {
|
||||
$applicationUID = (isset( $_POST['APP_UID'] )) ? $_POST['APP_UID'] : $_SESSION['APPLICATION'];
|
||||
@@ -70,4 +72,6 @@ class adhocUserProxy extends HttpProxyController
|
||||
}
|
||||
}
|
||||
|
||||
} //End adhocUserProxy
|
||||
}
|
||||
//End adhocUserProxy
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Admin controller
|
||||
*
|
||||
* @access public
|
||||
*/
|
||||
class Admin extends Controller
|
||||
@@ -31,8 +33,6 @@ class Admin extends Controller
|
||||
$timeZones[] = array ($tz,$tz);
|
||||
}
|
||||
|
||||
|
||||
|
||||
$this->includeExtJS( 'admin/system' );
|
||||
//G::LoadClass('configuration');
|
||||
|
||||
@@ -65,10 +65,10 @@ class Admin extends Controller
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* CALENDAR
|
||||
* getting default list
|
||||
*
|
||||
* @param string $httpData->PRO_UID (opional)
|
||||
*/
|
||||
public function calendarEdit ($httpData)
|
||||
@@ -97,7 +97,7 @@ class Admin extends Controller
|
||||
if ((isset( $_GET['cp'] )) && ($_GET['cp'] == 1)) { // Copy Calendar
|
||||
$fields['CALENDAR_UID'] = G::GenerateUniqueID();
|
||||
$fields['CALENDAR_NAME'] = G::LoadTranslation( "ID_COPY_OF" ) . " " . $fields['CALENDAR_NAME'];
|
||||
$fields ['OLD_NAME'] = $fields['CALENDAR_NAME'];;
|
||||
$fields['OLD_NAME'] = $fields['CALENDAR_NAME'];
|
||||
}
|
||||
|
||||
$c = new Configurations();
|
||||
@@ -150,6 +150,7 @@ class Admin extends Controller
|
||||
|
||||
/**
|
||||
* getting default list
|
||||
*
|
||||
* @param string $httpData->PRO_UID (opional)
|
||||
*/
|
||||
public function pmLogo ($httpData)
|
||||
@@ -180,5 +181,5 @@ class Admin extends Controller
|
||||
//render content
|
||||
G::RenderPage( 'publish', 'extJs' );
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* App controller
|
||||
*
|
||||
* @author Erik Amaru Ortiz <erik@colosa.com, aortiz.erik@gmail.com>
|
||||
* @herits Controller
|
||||
* @access public
|
||||
@@ -8,8 +10,10 @@
|
||||
|
||||
class AppProxy extends HttpProxyController
|
||||
{
|
||||
|
||||
/**
|
||||
* Get Notes List
|
||||
*
|
||||
* @param int $httpData->start
|
||||
* @param int $httpData->limit
|
||||
* @param string $httpData->appUid (optionalif it is not passed try use $_SESSION['APPLICATION'])
|
||||
@@ -21,8 +25,7 @@ class AppProxy extends HttpProxyController
|
||||
|
||||
if (isset( $httpData->appUid ) && trim( $httpData->appUid ) != "") {
|
||||
$appUid = $httpData->appUid;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
if (isset( $_SESSION['APPLICATION'] )) {
|
||||
$appUid = $_SESSION['APPLICATION'];
|
||||
}
|
||||
@@ -39,7 +42,8 @@ class AppProxy extends HttpProxyController
|
||||
$respBlock = $case->getAllObjectsFrom( $proUid, $appUid, $tasUid, $usrUid, 'BLOCK' );
|
||||
|
||||
if ($respView['CASES_NOTES'] == 0 && $respBlock['CASES_NOTES'] == 0) {
|
||||
return array('totalCount' => 0, 'notes' => array(), 'noPerms' => 1);
|
||||
return array ('totalCount' => 0,'notes' => array (),'noPerms' => 1
|
||||
);
|
||||
}
|
||||
|
||||
require_once ("classes/model/AppNotes.php");
|
||||
@@ -57,6 +61,7 @@ class AppProxy extends HttpProxyController
|
||||
|
||||
/**
|
||||
* post Note Action
|
||||
*
|
||||
* @param string $httpData->appUid (optional, if it is not passed try use $_SESSION['APPLICATION'])
|
||||
* @return array containg the case notes
|
||||
*/
|
||||
@@ -65,8 +70,7 @@ class AppProxy extends HttpProxyController
|
||||
//extract(getExtJSParams());
|
||||
if (isset( $httpData->appUid ) && trim( $httpData->appUid ) != "") {
|
||||
$appUid = $httpData->appUid;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$appUid = $_SESSION['APPLICATION'];
|
||||
}
|
||||
|
||||
@@ -116,6 +120,7 @@ class AppProxy extends HttpProxyController
|
||||
|
||||
/**
|
||||
* request to open the case summary
|
||||
*
|
||||
* @param string $httpData->appUid
|
||||
* @param string $httpData->delIndex
|
||||
* @return object bool $result->succes, string $result->message(is an exception was thrown), string $result->dynUid
|
||||
@@ -161,6 +166,7 @@ class AppProxy extends HttpProxyController
|
||||
|
||||
/**
|
||||
* get the case summary data
|
||||
*
|
||||
* @param string $httpData->appUid
|
||||
* @param string $httpData->delIndex
|
||||
* @return array containg the case summary data
|
||||
@@ -181,8 +187,7 @@ class AppProxy extends HttpProxyController
|
||||
unset( $_SESSION['_applicationFields'] );
|
||||
$processData = $_SESSION['_processData'];
|
||||
unset( $_SESSION['_processData'] );
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$applicationFields = $case->loadCase( $httpData->appUid, $httpData->delIndex );
|
||||
$process = new Process();
|
||||
$processData = $process->load( $applicationFields['PRO_UID'] );
|
||||
@@ -193,30 +198,43 @@ 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;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,19 +1,14 @@
|
||||
<?php
|
||||
|
||||
class authSourceProxy extends HttpProxyController
|
||||
{
|
||||
|
||||
|
||||
|
||||
|
||||
class authSourceProxy extends HttpProxyController {
|
||||
|
||||
function testingOption($params){
|
||||
function testingOption ($params)
|
||||
{
|
||||
/*global $RBAC;
|
||||
|
||||
$fields = array('AUTH_SOURCE_PROVIDER' => $params->optionAuthS);
|
||||
|
||||
$G_PUBLISH = new Publisher();
|
||||
$data=array();
|
||||
|
||||
$aCommonFields = array('AUTH_SOURCE_UID',
|
||||
'AUTH_SOURCE_NAME',
|
||||
'AUTH_SOURCE_PROVIDER',
|
||||
@@ -27,7 +22,6 @@ class authSourceProxy extends HttpProxyController {
|
||||
'AUTH_SOURCE_BASE_DN',
|
||||
'AUTH_SOURCE_OBJECT_CLASSES',
|
||||
'AUTH_SOURCE_ATTRIBUTES');
|
||||
|
||||
$aFields = $aData = array();
|
||||
|
||||
unset($params->PHPSESSID);
|
||||
@@ -53,27 +47,15 @@ class authSourceProxy extends HttpProxyController {
|
||||
return $data;
|
||||
}
|
||||
|
||||
function saveAuthSources($params){
|
||||
|
||||
function saveAuthSources ($params)
|
||||
{
|
||||
global $RBAC;
|
||||
if ($RBAC->userCanAccess( 'PM_SETUP_ADVANCE' ) != 1) {
|
||||
G::SendTemporalMessage( 'ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels' );
|
||||
G::header( 'location: ../login/login' );
|
||||
die;
|
||||
die();
|
||||
}
|
||||
$aCommonFields = array('AUTH_SOURCE_UID',
|
||||
'AUTH_SOURCE_NAME',
|
||||
'AUTH_SOURCE_PROVIDER',
|
||||
'AUTH_SOURCE_SERVER_NAME',
|
||||
'AUTH_SOURCE_PORT',
|
||||
'AUTH_SOURCE_ENABLED_TLS',
|
||||
'AUTH_ANONYMOUS',
|
||||
'AUTH_SOURCE_SEARCH_USER',
|
||||
'AUTH_SOURCE_PASSWORD',
|
||||
'AUTH_SOURCE_VERSION',
|
||||
'AUTH_SOURCE_BASE_DN',
|
||||
'AUTH_SOURCE_OBJECT_CLASSES',
|
||||
'AUTH_SOURCE_ATTRIBUTES');
|
||||
$aCommonFields = array ('AUTH_SOURCE_UID','AUTH_SOURCE_NAME','AUTH_SOURCE_PROVIDER','AUTH_SOURCE_SERVER_NAME','AUTH_SOURCE_PORT','AUTH_SOURCE_ENABLED_TLS','AUTH_ANONYMOUS','AUTH_SOURCE_SEARCH_USER','AUTH_SOURCE_PASSWORD','AUTH_SOURCE_VERSION','AUTH_SOURCE_BASE_DN','AUTH_SOURCE_OBJECT_CLASSES','AUTH_SOURCE_ATTRIBUTES');
|
||||
|
||||
$aFields = $aData = array ();
|
||||
|
||||
@@ -81,22 +63,19 @@ class authSourceProxy extends HttpProxyController {
|
||||
foreach ($params as $sField => $sValue) {
|
||||
if (in_array( $sField, $aCommonFields )) {
|
||||
$aFields[$sField] = (($sField == 'AUTH_SOURCE_ENABLED_TLS' || $sField == 'AUTH_ANONYMOUS')) ? ($sValue == 'yes') ? 1 : 0 : $sValue;
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$aData[$sField] = $sValue;
|
||||
}
|
||||
}
|
||||
$aFields['AUTH_SOURCE_DATA'] = $aData;
|
||||
if ($aFields['AUTH_SOURCE_UID'] == '') {
|
||||
$RBAC->createAuthSource( $aFields );
|
||||
}
|
||||
else {
|
||||
} else {
|
||||
$RBAC->updateAuthSource( $aFields );
|
||||
}
|
||||
$data = array ();
|
||||
$data['success'] = true;
|
||||
return $data;
|
||||
} //end saveAuthSoruces function
|
||||
|
||||
|
||||
} //end authSourceProxy class
|
||||
|
||||
|
||||
@@ -24,15 +24,12 @@ function getLoadTreeMenuData ()
|
||||
$oMenu->load( 'cases' );
|
||||
|
||||
$oCases = new Cases();
|
||||
$aTypes = Array ('to_do','draft','cancelled','sent','paused','completed','selfservice'
|
||||
$aTypes = Array ('to_do','draft','cancelled','sent','paused','completed','selfservice');
|
||||
//'to_revise',
|
||||
//'to_reassign'
|
||||
;
|
||||
$aTypesID = Array ('CASES_INBOX' => 'to_do','CASES_DRAFT' => 'draft','CASES_CANCELLED' => 'cancelled','CASES_SENT' => 'sent','CASES_PAUSED' => 'paused','CASES_COMPLETED' => 'completed','CASES_SELFSERVICE' => 'selfservice'
|
||||
$aTypesID = Array ('CASES_INBOX' => 'to_do','CASES_DRAFT' => 'draft','CASES_CANCELLED' => 'cancelled','CASES_SENT' => 'sent','CASES_PAUSED' => 'paused','CASES_COMPLETED' => 'completed','CASES_SELFSERVICE' => 'selfservice');
|
||||
//'CASES_TO_REVISE'=>'to_revise',
|
||||
//'CASES_TO_REASSIGN'=>'to_reassign'
|
||||
;
|
||||
|
||||
$list = array ();
|
||||
$list['count'] = ' ';
|
||||
|
||||
@@ -64,8 +61,7 @@ function getLoadTreeMenuData ()
|
||||
$menuCases[$CurrentBlockID]['blockType'] = $oMenu->Types[$i];
|
||||
$menuCases[$CurrentBlockID]['link'] = $oMenu->Options[$i];
|
||||
} else {
|
||||
$menuCases[$CurrentBlockID]['blockItems'][$oMenu->Id[$i]] = Array ('label' => $oMenu->Labels[$i],'link' => $oMenu->Options[$i],'icon' => (isset( $oMenu->Icons[$i] ) && $oMenu->Icons[$i] != '') ? $oMenu->Icons[$i] : 'kcmdf.png'
|
||||
);
|
||||
$menuCases[$CurrentBlockID]['blockItems'][$oMenu->Id[$i]] = Array ('label' => $oMenu->Labels[$i],'link' => $oMenu->Options[$i],'icon' => (isset( $oMenu->Icons[$i] ) && $oMenu->Icons[$i] != '') ? $oMenu->Icons[$i] : 'kcmdf.png');
|
||||
|
||||
if (isset( $aTypesID[$oMenu->Id[$i]] )) {
|
||||
$menuCases[$CurrentBlockID]['blockItems'][$oMenu->Id[$i]]['cases_count'] = $aCount[$aTypesID[$oMenu->Id[$i]]]['count'];
|
||||
@@ -131,8 +127,7 @@ function getProcess ()
|
||||
$aTypesID['CASES_SELFSERVICE'] = 'selfservice';
|
||||
//$aTypesID['CASES_TO_REVISE'] = 'to_revise';
|
||||
//$aTypesID['CASES_TO_REASSIGN'] = 'to_reassign';
|
||||
$aTypesID = Array ('CASES_INBOX' => 'to_do','CASES_DRAFT' => 'draft','CASES_CANCELLED' => 'cancelled','CASES_SENT' => 'sent','CASES_PAUSED' => 'paused','CASES_COMPLETED' => 'completed','CASES_SELFSERVICE' => 'selfservice','CASES_TO_REVISE' => 'to_revise','CASES_TO_REASSIGN' => 'to_reassign'
|
||||
);
|
||||
$aTypesID = Array ('CASES_INBOX' => 'to_do','CASES_DRAFT' => 'draft','CASES_CANCELLED' => 'cancelled','CASES_SENT' => 'sent','CASES_PAUSED' => 'paused','CASES_COMPLETED' => 'completed','CASES_SELFSERVICE' => 'selfservice','CASES_TO_REVISE' => 'to_revise','CASES_TO_REASSIGN' => 'to_reassign');
|
||||
|
||||
$aCount = $oCases->getAllCounters( Array ($aTypesID[$type]
|
||||
), $userId, true );
|
||||
@@ -188,8 +183,7 @@ function getAllCounters ()
|
||||
$aCount = $ApplicationSolrIndex->getCasesCount( $userUid );
|
||||
|
||||
//get paused count
|
||||
$aCountMissing = $oAppCache->getAllCounters( array ('paused','completed','cancelled'
|
||||
), $userUid );
|
||||
$aCountMissing = $oAppCache->getAllCounters( array ('paused','completed','cancelled'), $userUid );
|
||||
|
||||
$aCount = array_merge( $aCount, $aCountMissing );
|
||||
} else {
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
$frm = $HTTP_GET_VARS;
|
||||
|
||||
@@ -28,21 +27,24 @@
|
||||
|
||||
<h1>demo de buscador</h1>
|
||||
<form method=post action="buscador2.php">
|
||||
<input type=hidden name=ticket value="<?php echo $frm['ticket'] ?>" >
|
||||
<input type=hidden name=tipo value="<?php echo $frm['tipo'] ?>" >
|
||||
<input type=hidden name=ticket value="<?php echo $frm['ticket'] ?>"> <input
|
||||
type=hidden name=tipo value="<?php echo $frm['tipo'] ?>">
|
||||
Buscador tipo : <?php echo $frm['tipo'] ?><br>
|
||||
|
||||
<table><tr><td>
|
||||
curso</td><td>
|
||||
<select name=curso>
|
||||
<table>
|
||||
<tr>
|
||||
<td>curso</td>
|
||||
<td><select name=curso>
|
||||
<option value="curso1">Curso 1</option>
|
||||
<option value="curso2">Curso 2</option>
|
||||
<option value="curso3">Curso 3</option>
|
||||
<option value="curso4">Curso 4</4option>
|
||||
<option value="curso5">Curso 5</option>
|
||||
</td></tr>
|
||||
<tr><td colspan=2>
|
||||
<input type=submit ></td></tr>
|
||||
|
||||
<option value="curso5">Curso 5</option></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan=2><input type=submit></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
|
||||
@@ -1,22 +1,18 @@
|
||||
demo de buscador<br>
|
||||
/**
|
||||
* buscador2.php
|
||||
*
|
||||
* ProcessMaker Open Source Edition
|
||||
* Copyright (C) 2004 - 2008 Colosa Inc.23
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU Affero General Public License as
|
||||
* published by the Free Software Foundation, either version 3 of the
|
||||
* License, or (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU Affero General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
demo de buscador
|
||||
<br>
|
||||
/** * buscador2.php * * ProcessMaker Open Source Edition * Copyright (C)
|
||||
2004 - 2008 Colosa Inc.23 * * This program is free software: you can
|
||||
redistribute it and/or modify * it under the terms of the GNU Affero
|
||||
General Public License as * published by the Free Software Foundation,
|
||||
either version 3 of the * License, or (at your option) any later
|
||||
version. * * This program is distributed in the hope that it will be
|
||||
useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU
|
||||
Affero General Public License for more details. * * You should have
|
||||
received a copy of the GNU Affero General Public License * along with
|
||||
this program. If not, see
|
||||
<http: //www.gnu.org/licenses />
|
||||
.
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
@@ -32,7 +28,5 @@ demo de buscador<br>
|
||||
?>
|
||||
<script language="JavaScript">
|
||||
window.close();
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@@ -57,9 +57,6 @@ function cal_popup1 (str_datetime) {
|
||||
);
|
||||
obj_calwindow.opener = window;
|
||||
obj_calwindow.focus();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// timestamp generating function
|
||||
@@ -160,3 +157,4 @@ function cal_error (str_message) {
|
||||
alert (str_message);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -22,7 +22,10 @@
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
td {font-family: Tahoma, Verdana, sans-serif; font-size: 12px;}
|
||||
td {
|
||||
font-family: Tahoma, Verdana, sans-serif;
|
||||
font-size: 12px;
|
||||
}
|
||||
</style>
|
||||
<script language="JavaScript">
|
||||
|
||||
@@ -101,37 +104,48 @@ function set_datetime(n_datetime, b_close) {
|
||||
|
||||
</script>
|
||||
|
||||
<php
|
||||
$ARR_MONTHS = array ( "January", "February", "March", "April", "May", "June",
|
||||
<php $ARR_MONTHS=array
|
||||
( "January", "February", "March", "April", "May", "June",
|
||||
"July", "August", "September", "October", "November", "December");
|
||||
$ARR_WEEKDAYS = array ( "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" );
|
||||
$NUM_WEEKSTART = 1; //day week starts from (normally 0-Su or 1-Mo)
|
||||
$ARR_WEEKDAYS=array
|
||||
( "Su", "Mo", "Tu", "We", "Th", "Fr", "Sa" );
|
||||
$NUM_WEEKSTART=1; //day
|
||||
week starts from (normally 0-Suor 1-Mo)
|
||||
|
||||
?>
|
||||
<table class="clsOTable" cellspacing="0" border="0" width="100%">
|
||||
<tr><td bgcolor="#4682B4">
|
||||
<table cellspacing="1" cellpadding="3" border="0" width="100%">
|
||||
<tr><td colspan="7"><table cellspacing="0" cellpadding="0" border="0" width="100%">
|
||||
<tr>
|
||||
<td> +(obj_caller&&obj_caller.year_scroll?'<a href="javascript:set_datetime('+dt_prev_year.valueOf()+')">
|
||||
<img src="'+STR_ICONPATH+'prev_year.gif" width="16" height="16" border="0" alt="previous year"></a> ':'')+'
|
||||
<a href="javascript:set_datetime('+dt_prev_month.valueOf()+')">
|
||||
<img src="'+STR_ICONPATH+'prev.gif" width="16" height="16" border="0" alt="previous month"></a>
|
||||
<td bgcolor="#4682B4">
|
||||
<table cellspacing="1" cellpadding="3" border="0" width="100%">
|
||||
<tr>
|
||||
<td colspan="7"><table cellspacing="0" cellpadding="0" border="0"
|
||||
width="100%">
|
||||
<tr>
|
||||
<td>+(obj_caller&&obj_caller.year_scroll?'<a
|
||||
href="javascript:set_datetime('+dt_prev_year.valueOf()+')"> <img
|
||||
src="'+STR_ICONPATH+'prev_year.gif" width="16" height="16"
|
||||
border="0" alt="previous year"></a> ':'')+' <a
|
||||
href="javascript:set_datetime('+dt_prev_month.valueOf()+')"> <img
|
||||
src="'+STR_ICONPATH+'prev.gif" width="16" height="16"
|
||||
border="0" alt="previous month"></a>
|
||||
</td>
|
||||
|
||||
<td align="center" width="100%">
|
||||
<font color="#ffffff"> +ARR_MONTHS[dt_current.getMonth()]+' '+dt_current.getFullYear() </font></td>
|
||||
<td><a href="javascript:set_datetime('+dt_next_month.valueOf()+')">
|
||||
<img src="'+STR_ICONPATH+'next.gif" width="16" height="16" border="0" alt="next month"></a>
|
||||
'+(obj_caller && obj_caller.year_scroll?'
|
||||
<a href="javascript:set_datetime('+dt_next_year.valueOf()+')">
|
||||
<img src="'+STR_ICONPATH+'next_year.gif" width="16" height="16" border="0" alt="next year">
|
||||
</a>':'')+'
|
||||
</td>'
|
||||
);
|
||||
<td align="center" width="100%"><font color="#ffffff">
|
||||
+ARR_MONTHS[dt_current.getMonth()]+'
|
||||
'+dt_current.getFullYear() </font></td>
|
||||
<td><a
|
||||
href="javascript:set_datetime('+dt_next_month.valueOf()+')"> <img
|
||||
src="'+STR_ICONPATH+'next.gif" width="16" height="16"
|
||||
border="0" alt="next month"></a> '+(obj_caller &&
|
||||
obj_caller.year_scroll?' <a
|
||||
href="javascript:set_datetime('+dt_next_year.valueOf()+')"> <img
|
||||
src="'+STR_ICONPATH+'next_year.gif" width="16" height="16"
|
||||
border="0" alt="next year">
|
||||
</a>':'')+'</td>' );
|
||||
|
||||
</tr>
|
||||
</table></td></tr>
|
||||
</table></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<script language="JavaScript">
|
||||
<?php
|
||||
@@ -175,11 +189,15 @@ while (dt_current_day.getMonth() == dt_current.getMonth() ||
|
||||
// print row footer
|
||||
document.write('</tr>');
|
||||
}
|
||||
if (obj_caller && obj_caller.time_comp)
|
||||
if (obj_caller && obj_caller.time_comp) {
|
||||
document.write('<form onsubmit="javascript:set_datetime('+dt_current.valueOf()+', true)" name="cal"><tr><td colspan="7" bgcolor="#87CEFA"><font color="White" face="tahoma, verdana" size="2">Time: <input type="text" name="time" value="'+obj_caller.gen_time(this.dt_current)+'" size="8" maxlength="8"></font></td></tr></form>');
|
||||
}
|
||||
</script>
|
||||
</table></tr></td>
|
||||
|
||||
</table>
|
||||
|
||||
</tr>
|
||||
</td>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
G::LoadClass( 'xmlfield_InputPM' );
|
||||
$aFields = getDynaformsVars( $_POST['sProcess'], true, isset( $_POST['bIncMulSelFields'] ) ? $_POST['bIncMulSelFields'] : 0 );
|
||||
@@ -30,19 +29,10 @@ foreach ( $aFields as $aField ) {
|
||||
$sHTML .= '<option value="' . $_POST['sSymbol'] . $aField['sName'] . '">' . $_POST['sSymbol'] . $aField['sName'] . ' (' . $aField['sType'] . ')</option>';
|
||||
}
|
||||
|
||||
$aRows[0] = Array (
|
||||
'fieldname' => 'char',
|
||||
'variable' => 'char',
|
||||
'type' => 'type',
|
||||
'label' => 'char'
|
||||
$aRows[0] = Array ('fieldname' => 'char','variable' => 'char','type' => 'type','label' => 'char'
|
||||
);
|
||||
foreach ($aFields as $aField) {
|
||||
$aRows[] = Array (
|
||||
'fieldname' => $_POST['sFieldName'],
|
||||
'variable' => $_POST['sSymbol'] . $aField['sName'],
|
||||
'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\''.$_POST['sFieldName'].'\',\''.$_POST['sSymbol'] . $aField['sName'].'\');">'.$_POST['sSymbol'] . $aField['sName'].'</a></div>',
|
||||
'type' => $aField['sType'],
|
||||
'label' => $aField['sLabel']
|
||||
$aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\'' . $_POST['sFieldName'] . '\',\'' . $_POST['sSymbol'] . $aField['sName'] . '\');">' . $_POST['sSymbol'] . $aField['sName'] . '</a></div>','type' => $aField['sType'],'label' => $aField['sLabel']
|
||||
);
|
||||
}
|
||||
|
||||
@@ -135,9 +125,9 @@ $cssTabs = "<div id=\"all\">
|
||||
echo $sHTML;
|
||||
echo $sStyle;
|
||||
|
||||
|
||||
////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
echo "<div id=\"processVariablesContent\">";
|
||||
echo $cssTabs;
|
||||
G::LoadClass( 'ArrayPeer' );
|
||||
@@ -159,4 +149,4 @@ $G_PUBLISH->AddContent('propeltable', 'paged-table', 'triggers/dynavars', $oCrit
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
|
||||
echo "</div>";
|
||||
?>
|
||||
|
||||
|
||||
@@ -20,64 +20,42 @@
|
||||
*
|
||||
* For more information, contact Colosa Inc, 2566 Le Jeune Rd.,
|
||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
* @author Gustavo Cruz gustavo-at-colosa.com
|
||||
* @param $_POST variables
|
||||
* @desc the varAjaxByType file as the varAjax.php handle the render of the diferent
|
||||
* the varAjaxByType file as the varAjax.php handle the render of the diferent
|
||||
* types of dynaform variables there are 3 of them system, process, and the default
|
||||
* that show both system and process variables.
|
||||
* uses almost the same variables passed to varsAjax, plus $_POST['type'] that is the
|
||||
* type of the variables. Then it render a propel table with all the variables
|
||||
* loaded for that type.
|
||||
*
|
||||
* @author Gustavo Cruz gustavo-at-colosa.com
|
||||
* @param $_POST variables
|
||||
*/
|
||||
|
||||
G::LoadClass( 'xmlfield_InputPM' );
|
||||
$aFields = getDynaformsVars( $_POST['sProcess'], true, isset( $_POST['bIncMulSelFields'] ) ? $_POST['bIncMulSelFields'] : 0 );
|
||||
$aType = $_POST['type'];
|
||||
|
||||
$aRows[0] = Array (
|
||||
'fieldname' => 'char',
|
||||
'variable' => 'char',
|
||||
'type' => 'type',
|
||||
'label' => 'char'
|
||||
$aRows[0] = Array ('fieldname' => 'char','variable' => 'char','type' => 'type','label' => 'char'
|
||||
);
|
||||
foreach ($aFields as $aField) {
|
||||
switch ($aType) {
|
||||
case "system":
|
||||
if ($aField['sType'] == "system") {
|
||||
$aRows[] = Array (
|
||||
'fieldname' => $_POST['sFieldName'],
|
||||
'variable' => $_POST['sSymbol'] . $aField['sName'],
|
||||
'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\''.
|
||||
$_POST['sFieldName'].'\',\''.$_POST['sSymbol'] . $aField['sName'].'\');">'.$_POST['sSymbol'] . $aField['sName'].'</a></div>',
|
||||
'type' => $aField['sType'],
|
||||
'label' => $aField['sLabel']
|
||||
$aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\'' . $_POST['sFieldName'] . '\',\'' . $_POST['sSymbol'] . $aField['sName'] . '\');">' . $_POST['sSymbol'] . $aField['sName'] . '</a></div>','type' => $aField['sType'],'label' => $aField['sLabel']
|
||||
);
|
||||
}
|
||||
break;
|
||||
case "process":
|
||||
if ($aField['sType'] != "system") {
|
||||
$aRows[] = Array (
|
||||
'fieldname' => $_POST['sFieldName'],
|
||||
'variable' => $_POST['sSymbol'] . $aField['sName'],
|
||||
'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\''.
|
||||
$_POST['sFieldName'].'\',\''.$_POST['sSymbol'] . $aField['sName'].'\');">'.$_POST['sSymbol'] . $aField['sName'].'</a></div>',
|
||||
'type' => $aField['sType'],
|
||||
'label' => $aField['sLabel']
|
||||
$aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\'' . $_POST['sFieldName'] . '\',\'' . $_POST['sSymbol'] . $aField['sName'] . '\');">' . $_POST['sSymbol'] . $aField['sName'] . '</a></div>','type' => $aField['sType'],'label' => $aField['sLabel']
|
||||
);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
$aRows[] = Array (
|
||||
'fieldname' => $_POST['sFieldName'],
|
||||
'variable' => $_POST['sSymbol'] . $aField['sName'],
|
||||
'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\''.$_POST['sFieldName'].'\',\''
|
||||
.$_POST['sSymbol'] . $aField['sName'].'\');">'.$_POST['sSymbol'] . $aField['sName'].'</a></div>',
|
||||
'type' => $aField['sType'],
|
||||
'label' => $aField['sLabel']
|
||||
$aRows[] = Array ('fieldname' => $_POST['sFieldName'],'variable' => $_POST['sSymbol'] . $aField['sName'],'variable_label' => '<div class="pm__dynavars"> <a id="dynalink" href=# onclick="insertFormVar(\'' . $_POST['sFieldName'] . '\',\'' . $_POST['sSymbol'] . $aField['sName'] . '\');">' . $_POST['sSymbol'] . $aField['sName'] . '</a></div>','type' => $aField['sType'],'label' => $aField['sLabel']
|
||||
);
|
||||
break;
|
||||
}
|
||||
@@ -86,12 +64,9 @@ foreach ( $aFields as $aField ) {
|
||||
// Use and make a load translation variable call to the titles of the tabs
|
||||
$cssTabs = "<div id=\"" . strtolower( $_POST['type'] ) . "\">
|
||||
<ul id=\"tabnav\">
|
||||
<li class=\"all\"><a href=\"#\" onclick=\"changeVariables('all','".$_POST['sProcess']."','"
|
||||
.$_POST['sFieldName']."','".$_POST['sSymbol']."','processVariablesContent');\">All variables</a></li>
|
||||
<li class=\"system\"><a href=\"#\" onclick=\"changeVariables('system','".$_POST['sProcess']."','"
|
||||
.$_POST['sFieldName']."','".$_POST['sSymbol']."','processVariablesContent');\">System</a></li>
|
||||
<li class=\"process\"><a href=\"#\" onclick=\"changeVariables('process','".$_POST['sProcess']."','"
|
||||
.$_POST['sFieldName']."','".$_POST['sSymbol']."','processVariablesContent');\">Process</a></li>
|
||||
<li class=\"all\"><a href=\"#\" onclick=\"changeVariables('all','" . $_POST['sProcess'] . "','" . $_POST['sFieldName'] . "','" . $_POST['sSymbol'] . "','processVariablesContent');\">All variables</a></li>
|
||||
<li class=\"system\"><a href=\"#\" onclick=\"changeVariables('system','" . $_POST['sProcess'] . "','" . $_POST['sFieldName'] . "','" . $_POST['sSymbol'] . "','processVariablesContent');\">System</a></li>
|
||||
<li class=\"process\"><a href=\"#\" onclick=\"changeVariables('process','" . $_POST['sProcess'] . "','" . $_POST['sFieldName'] . "','" . $_POST['sSymbol'] . "','processVariablesContent');\">Process</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
";
|
||||
@@ -112,4 +87,3 @@ $G_PUBLISH = new Publisher();
|
||||
$G_PUBLISH->AddContent( 'propeltable', 'paged-table', 'triggers/dynavars', $oCriteria );
|
||||
G::RenderPage( 'publish', 'raw' );
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user