VERACODE: I deleted two files
This commit is contained in:
@@ -1,50 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* buscador.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.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
$frm = $HTTP_GET_VARS;
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<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'] ?>" >
|
|
||||||
Buscador tipo : <?php echo $frm['tipo'] ?><br>
|
|
||||||
|
|
||||||
<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>
|
|
||||||
</table>
|
|
||||||
</form>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* inc.JSForms.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.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
G::LoadSystem('inputfilter');
|
|
||||||
$filter = new InputFilter();
|
|
||||||
global $HTTP_SESSION_VARS;
|
|
||||||
global $G_FORM;
|
|
||||||
$HTTP_SESSION_VARS = $filter->xssFilterHard($HTTP_SESSION_VARS);
|
|
||||||
$HTTP_GET_VARS = $filter->xssFilterHard($HTTP_GET_VARS);
|
|
||||||
$_GET = $filter->xssFilterHard($_GET);
|
|
||||||
|
|
||||||
$path = '';
|
|
||||||
$showFieldAjax = 'showFieldAjax.php';
|
|
||||||
|
|
||||||
$serverAjax = G::encryptLink($path.$showFieldAjax);
|
|
||||||
$serverAjax = $filter->xssFilterHard($serverAjax);
|
|
||||||
|
|
||||||
?>
|
|
||||||
<script language="JavaScript">
|
|
||||||
function RefreshDependentFields(ObjectName, Fields, InitValue) {
|
|
||||||
|
|
||||||
<?php
|
|
||||||
//global $G_FORM;
|
|
||||||
$HTTP_SESSION_VARS['INIT_VALUES'] = $G_FORM->Values;
|
|
||||||
global $HTTP_GET_VARS;
|
|
||||||
if ($HTTP_SESSION_VARS['CURRENT_APPLICATION'] == '') $HTTP_SESSION_VARS['CURRENT_APPLICATION'] = '0';
|
|
||||||
$appid = $HTTP_SESSION_VARS['CURRENT_APPLICATION'];
|
|
||||||
$appid = $filter->xssFilterHard($appid);
|
|
||||||
if ($HTTP_GET_VARS['dynaform'] != ''){
|
|
||||||
$Dynaform = '&__dynaform__=' . $HTTP_GET_VARS['dynaform'];
|
|
||||||
$Dynaform = $filter->xssFilterHard($Dynaform);
|
|
||||||
}
|
|
||||||
if ($HTTP_GET_VARS['filename'] != ''){
|
|
||||||
$Dynaform = '&__filename__=' . $HTTP_GET_VARS['filename'];
|
|
||||||
$Dynaform = $filter->xssFilterHard($Dynaform);
|
|
||||||
}
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
if (getField)
|
|
||||||
TheObject = getField(ObjectName);
|
|
||||||
|
|
||||||
if (TheObject) {
|
|
||||||
Fields = Fields.split(',');
|
|
||||||
for (i=0; i<Fields.length; i++) {
|
|
||||||
DivObj = document.getElementById('FLD_' + Fields[i]);
|
|
||||||
FldObj = document.getElementById('form[' + Fields[i] + ']');
|
|
||||||
|
|
||||||
if(FldObj){
|
|
||||||
if(FldObj.type == 'text'){
|
|
||||||
refillText( Fields[i],'<?php echo $serverAjax?>', 'function=text&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?php echo $Dynaform?>'+ '&application=' + '<?php echo $appid?>'+ '&Dynaform=' + '<?php echo $Dynaform?>' );
|
|
||||||
}
|
|
||||||
if(FldObj.type == 'hidden'){
|
|
||||||
refillText( Fields[i],'<?php echo $serverAjax?>', 'function=text&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?php echo $Dynaform?>'+ '&application=' + '<?php echo $appid?>'+ '&Dynaform=' + '<?php echo $Dynaform?>' );
|
|
||||||
}
|
|
||||||
|
|
||||||
if(FldObj.type == 'select-one') {
|
|
||||||
refillDropdown( Fields[i],'<?php echo $serverAjax?>', 'function=dropdown&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?php echo $Dynaform?>'+ '&application=' + '<?php echo $appid?>'+ '&Dynaform=' + '<?php echo $Dynaform?>'+ '&InitValue=' + InitValue , InitValue);
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
if(DivObj)
|
|
||||||
refillCaption( Fields[i],'<?php echo $serverAjax?>', 'function=text&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?php echo $Dynaform?>'+ '&application=' + '<?php echo $appid?>'+ '&Dynaform=' + '<?php echo $Dynaform?>' );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
<?php
|
|
||||||
// }
|
|
||||||
?>
|
|
||||||
}
|
|
||||||
|
|
||||||
function registerDate ( field, options ) {
|
|
||||||
var opts = options.split(',');
|
|
||||||
var fieldName = 'form['+field+']';
|
|
||||||
var divName = 'DIV['+field+']';
|
|
||||||
Obj = getField( divName);
|
|
||||||
value = Obj.value;
|
|
||||||
myDatePicker = new Bs_DatePicker();
|
|
||||||
<?php
|
|
||||||
global $G_DATE_FORMAT;
|
|
||||||
global $HTTP_SESSION_VARS;
|
|
||||||
|
|
||||||
$classfile = PATH_CORE . 'classes/class.user.php';
|
|
||||||
if(file_exists($classfile))
|
|
||||||
{
|
|
||||||
G::LoadClass('user');
|
|
||||||
$DateFormat = User::Get_User_Date_Format($HTTP_SESSION_VARS['USER_LOGGED']);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($DateFormat == '')
|
|
||||||
if (defined('DATE_FORMAT'))
|
|
||||||
$TheDateFormat = DATE_FORMAT;
|
|
||||||
else
|
|
||||||
$TheDateFormat = $G_DATE_FORMAT;
|
|
||||||
else
|
|
||||||
switch ($DateFormat) {
|
|
||||||
case 'en':
|
|
||||||
$TheDateFormat = 'us';
|
|
||||||
break;
|
|
||||||
case 'es':
|
|
||||||
$TheDateFormat = 'es';
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
myDatePicker.displayDateFormat = '<?php echo $TheDateFormat?>';
|
|
||||||
myDatePicker.fieldName = fieldName;
|
|
||||||
myDatePicker.loadSkin('win2k');
|
|
||||||
myDatePicker.daysNumChars = 2;
|
|
||||||
myDatePicker.setDateByIso( value);
|
|
||||||
myDatePicker.drawInto(divName);
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
<script language="JavaScript" src="/skins/JSForms.js"></script>
|
|
||||||
Reference in New Issue
Block a user