BUG-8753 Short Tags are Still Present as of Version 2.0.38 SOLVED

- Short tags are still present in the code in the form of the short print tag: <?=
- Changing of the short tags for deprecated functions and code.
This commit is contained in:
Hector Cortez
2012-07-23 10:33:03 -04:00
parent 2f226e8e47
commit 9bbf93da0c
19 changed files with 69 additions and 69 deletions

View File

@@ -111,8 +111,8 @@
//print date('Y-m-d', $start_date ) . " $dtmin_value $dtmax_value "; //print date('Y-m-d', $start_date ) . " $dtmin_value $dtmax_value ";
?> ?>
<input type='hidden' name='dtmin_value' id='dtmin_value' value='<?= $dtmin_value ?>' > <input type='hidden' name='dtmin_value' id='dtmin_value' value='<?php echo $dtmin_value ?>' >
<input type='hidden' name='dtmax_value' id='dtmax_value' value='<?= $dtmax_value ?>' > <input type='hidden' name='dtmax_value' id='dtmax_value' value='<?php echo $dtmax_value ?>' >
<table style='font-family:Arial;size:8pt;' cellspacing="0" border="0" width="250px"> <table style='font-family:Arial;size:8pt;' cellspacing="0" border="0" width="250px">
<tr><td bgcolor="#4682B4" align='center'> <tr><td bgcolor="#4682B4" align='center'>
<table cellspacing="1" cellpadding="2" border="0" width="100%"> <table cellspacing="1" cellpadding="2" border="0" width="100%">
@@ -120,19 +120,19 @@
<table cellspacing="0" cellpadding="0" border="0" width="100%"> <table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr> <tr>
<td align="right" width='50'> <td align="right" width='50'>
<a href="#" onclick="set_datetime('<?= $dt_prev_year ?>'); return false; "><img src="<?= $prevYear; ?>" width="16" height="16" border="0" alt="previous year"></a> <a href="#" onclick="set_datetime('<?php echo $dt_prev_year ?>'); return false; "><img src="<?php echo $prevYear; ?>" width="16" height="16" border="0" alt="previous year"></a>
<a href="#" onclick="set_datetime('<?= $dt_prev_month ?>'); return false; "><img src="<?= $prevMonth; ?>" width="16" height="16" border="0" alt="previous month"></a> <a href="#" onclick="set_datetime('<?php echo $dt_prev_month ?>'); return false; "><img src="<?php echo $prevMonth; ?>" width="16" height="16" border="0" alt="previous month"></a>
</td> </td>
<td align="center" width="150"> <td align="center" width="150">
<font color="#ffffff"><?= $ARR_MONTHS[ $dt_currentMonth - 1 ] . ' ' . $dt_currentYear ?></font> <font color="#ffffff"><?php echo $ARR_MONTHS[ $dt_currentMonth - 1 ] . ' ' . $dt_currentYear ?></font>
</td> </td>
<td align="left" width='50'> <td align="left" width='50'>
<a href="#" onclick="set_datetime('<?= $dt_next_month ?>'); return false; "> <a href="#" onclick="set_datetime('<?php echo $dt_next_month ?>'); return false; ">
<img src="<?= $nextMonth; ?>" width="16" height="16" border="0" alt="next month"></a> <img src="<?php echo $nextMonth; ?>" width="16" height="16" border="0" alt="next month"></a>
<a href="#" onclick="set_datetime('<?= $dt_next_year ?>'); return false; "> <a href="#" onclick="set_datetime('<?php echo $dt_next_year ?>'); return false; ">
<img src="<?= $nextYear; ?>" width="16" height="16" border="0" alt="next year"></a> <img src="<?php echo $nextYear; ?>" width="16" height="16" border="0" alt="next year"></a>
</td> </td>
</tr> </tr>
</table></td></tr> </table></td></tr>

View File

@@ -12,7 +12,7 @@
<td width="20px" align="center">&nbsp;</td> <td width="20px" align="center">&nbsp;</td>
<td width="100px" align="center" scope="col"><img src="/js/common/core/images/default_logo.gif"></td> <td width="100px" align="center" scope="col"><img src="/js/common/core/images/default_logo.gif"></td>
<td width="45%" scope="col">&nbsp;</td> <td width="45%" scope="col">&nbsp;</td>
<td width="35%" class="mxbOnlineText" scope="col"><?= $ERROR_TEXT ?></td> <td width="35%" class="mxbOnlineText" scope="col"><?php echo $ERROR_TEXT ?></td>
</tr> </tr>
<tr> <tr>
<td height="12" colspan="4" align="center" bgcolor="#336699" scope="col"></td> <td height="12" colspan="4" align="center" bgcolor="#336699" scope="col"></td>
@@ -22,8 +22,8 @@
<br /> <br />
<table width="70%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainCopy"> <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainCopy">
<tr> <tr>
<td width="15%" align="left" scope="col"><span class="mxbOnlineTextBlue"><?= $ERROR_TEXT ?> </span><br /> <td width="15%" align="left" scope="col"><span class="mxbOnlineTextBlue"><?php echo $ERROR_TEXT ?> </span><br />
<?= $ERROR_DESCRIPTION ?> <?php echo $ERROR_DESCRIPTION ?>
</tr> </tr>
</table> </table>
</body> </body>

View File

@@ -916,22 +916,22 @@ class pagedTable
} }
?> ?>
<script language='JavaScript' > <script language='JavaScript' >
var <?=$this->id?><?=($this->name != '' ? '='.$this->name : '')?>=new G_PagedTable(); var <?php echo $this->id?><?php echo ($this->name != '' ? '='.$this->name : '')?>=new G_PagedTable();
<?=$this->id?>.id<?='="'. addslashes($this->id) . '"'?>; <?php echo $this->id?>.id<?php echo '="'. addslashes($this->id) . '"'?>;
<?=$this->id?>.name<?='="'. addslashes($this->name) . '"'?>; <?php echo $this->id?>.name<?php echo '="'. addslashes($this->name) . '"'?>;
<?=$this->id?>.ajaxUri<?='="'. addslashes($this->ajaxServer) . '?ptID='.$this->id.'"'?>; <?php echo $this->id?>.ajaxUri<?php echo '="'. addslashes($this->ajaxServer) . '?ptID='.$this->id.'"'?>;
<?=$this->id?>.currentOrder<?='="'. addslashes($this->orderBy) . '"'?>; <?php echo $this->id?>.currentOrder<?php echo '="'. addslashes($this->orderBy) . '"'?>;
<?=$this->id?>.currentFilter; <?php echo $this->id?>.currentFilter;
<?=$this->id?>.currentPage<?='='. $this->currentPage?>; <?php echo $this->id?>.currentPage<?php echo '='. $this->currentPage?>;
<?=$this->id?>.totalRows<?='='.$this->query->count()?>; <?php echo $this->id?>.totalRows<?php echo '='.$this->query->count()?>;
<?=$this->id?>.rowsPerPage<?='='.$this->rowsPerPage?>; <?php echo $this->id?>.rowsPerPage<?php echo '='.$this->rowsPerPage?>;
<?=$this->id?>.popupPage<?='="'. addslashes($this->popupPage) . '?ptID='.$this->id.'"'?>; <?php echo $this->id?>.popupPage<?php echo '="'. addslashes($this->popupPage) . '?ptID='.$this->id.'"'?>;
<?=$this->id?>.onUpdateField<?='="'. addslashes($this->onUpdateField) . '"'?>; <?php echo $this->id?>.onUpdateField<?php echo '="'. addslashes($this->onUpdateField) . '"'?>;
<?=$this->id?>.shownFields<?='='.$this->shownFields ?>; <?php echo $this->id?>.shownFields<?php echo '='.$this->shownFields ?>;
var panelPopup; var panelPopup;
var popupWidth<?='='.$this->popupWidth?>; var popupWidth<?php echo '='.$this->popupWidth?>;
var popupHeight<?='='.$this->popupHeight?>; var popupHeight<?php echo '='.$this->popupHeight?>;
</script> </script>
<?php <?php
} }

View File

@@ -28,9 +28,9 @@
<h1>demo de buscador</h1> <h1>demo de buscador</h1>
<form method=post action="buscador2.php"> <form method=post action="buscador2.php">
<input type=hidden name=ticket value="<?= $frm['ticket'] ?>" > <input type=hidden name=ticket value="<?php echo $frm['ticket'] ?>" >
<input type=hidden name=tipo value="<?= $frm['tipo'] ?>" > <input type=hidden name=tipo value="<?php echo $frm['tipo'] ?>" >
Buscador tipo : <?= $frm['tipo'] ?><br> Buscador tipo : <?php echo $frm['tipo'] ?><br>
<table><tr><td> <table><tr><td>
curso</td><td> curso</td><td>

View File

@@ -11,7 +11,7 @@
<tr> <tr>
<td width="15%" align="center" scope="col"><img src="library/logo.gif"></td> <td width="15%" align="center" scope="col"><img src="library/logo.gif"></td>
<td width="67%" scope="col">&nbsp;</td> <td width="67%" scope="col">&nbsp;</td>
<td width="18%" class="mxbOnlineText" scope="col"><?= $ERROR_TEXT ?></td> <td width="18%" class="mxbOnlineText" scope="col"><?php echo $ERROR_TEXT ?></td>
</tr> </tr>
<tr> <tr>
<td height="12" colspan="3" align="center" bgcolor="#336699" scope="col"></td> <td height="12" colspan="3" align="center" bgcolor="#336699" scope="col"></td>
@@ -21,8 +21,8 @@
<br /> <br />
<table width="70%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainCopy"> <table width="70%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainCopy">
<tr> <tr>
<td width="15%" align="left" scope="col"><span class="mxbOnlineTextBlue"><?= $ERROR_TEXT ?> </span><br /> <td width="15%" align="left" scope="col"><span class="mxbOnlineTextBlue"><?php echo $ERROR_TEXT ?> </span><br />
<?= $ERROR_DESCRIPTION ?> <?php echo $ERROR_DESCRIPTION ?>
</tr> </tr>
</table> </table>
</body> </body>

View File

@@ -26,7 +26,7 @@
<title>Redirector</title> <title>Redirector</title>
<meta http-equiv="PRAGMA" content="NO-CACHE" /> <meta http-equiv="PRAGMA" content="NO-CACHE" />
<meta http-equiv="CACHE-CONTROL" content="NO-STORE" /> <meta http-equiv="CACHE-CONTROL" content="NO-STORE" />
<meta http-equiv="REFRESH" content="0;URL=<?= $COMPLETE_URI ?>" /> <meta http-equiv="REFRESH" content="0;URL=<?php echo $COMPLETE_URI ?>" />
</head> </head>
<body bgcolor="White"> <body bgcolor="White">
</body> </body>

View File

@@ -58,18 +58,18 @@ function RefreshDependentFields(ObjectName, Fields, InitValue) {
if(FldObj){ if(FldObj){
if(FldObj.type == 'text'){ if(FldObj.type == 'text'){
refillText( Fields[i],'<?=$serverAjax?>', 'function=text&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?=$Dynaform?>'+ '&application=' + '<?=$appid?>'+ '&Dynaform=' + '<?=$Dynaform?>' ); 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'){ if(FldObj.type == 'hidden'){
refillText( Fields[i],'<?=$serverAjax?>', 'function=text&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?=$Dynaform?>'+ '&application=' + '<?=$appid?>'+ '&Dynaform=' + '<?=$Dynaform?>' ); 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') { if(FldObj.type == 'select-one') {
refillDropdown( Fields[i],'<?=$serverAjax?>', 'function=dropdown&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?=$Dynaform?>'+ '&application=' + '<?=$appid?>'+ '&Dynaform=' + '<?=$Dynaform?>'+ '&InitValue=' + InitValue , InitValue); 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{ }else{
if(DivObj) if(DivObj)
refillCaption( Fields[i],'<?=$serverAjax?>', 'function=text&field=' + Fields[i] + '&parent=' + ObjectName + '&value=' + TheObject.value + '<?=$Dynaform?>'+ '&application=' + '<?=$appid?>'+ '&Dynaform=' + '<?=$Dynaform?>' ); 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?>' );
} }
} }
} }
@@ -111,7 +111,7 @@ else
break; break;
} }
?> ?>
myDatePicker.displayDateFormat = '<?=$TheDateFormat?>'; myDatePicker.displayDateFormat = '<?php echo $TheDateFormat?>';
myDatePicker.fieldName = fieldName; myDatePicker.fieldName = fieldName;
myDatePicker.loadSkin('win2k'); myDatePicker.loadSkin('win2k');
myDatePicker.daysNumChars = 2; myDatePicker.daysNumChars = 2;

View File

@@ -153,7 +153,7 @@ if (!isset($_GET['ex'])) {
// DEPRECATED this JS section is marked for removal // DEPRECATED this JS section is marked for removal
function setSelect() function setSelect()
{ {
var ex=<?=$_GET['ex']?>; var ex=<?php echo $_GET['ex']?>;
try { try {
for(i=1; i<50; i++) { for(i=1; i<50; i++) {
if (i == ex) { if (i == ex) {

View File

@@ -161,7 +161,7 @@ G::RenderPage('publish', 'blank');
//Deprecated Section since the interface are now movig to ExtJS //Deprecated Section since the interface are now movig to ExtJS
function setSelect() function setSelect()
{ {
var ex=<?=$_GET['ex']?>; var ex=<?php echo $_GET['ex']?>;
try { try {
for (i=1; i<50; i++) { for (i=1; i<50; i++) {
if (i == ex) { if (i == ex) {

View File

@@ -84,7 +84,7 @@ if (!isset($_GET['ex'])) {
//Deprecated Section since the interface are now movig to ExtJS //Deprecated Section since the interface are now movig to ExtJS
function setSelect() function setSelect()
{ {
var ex=<?=$_GET['ex']?>; var ex=<?php echo $_GET['ex']?>;
try{ try{
for (i=1; i<50; i++) { for (i=1; i<50; i++) {
if (i == ex) { if (i == ex) {

View File

@@ -101,7 +101,7 @@ if(!isset($_GET['ex'])) $_GET['ex']=0;
/*------------------------------ To Revise Routines ---------------------------*/ /*------------------------------ To Revise Routines ---------------------------*/
function setSelect() function setSelect()
{ {
var ex=<?=$_GET['ex']?>; var ex=<?php echo $_GET['ex']?>;
try{ try{
for(i=1; i<50; i++) for(i=1; i<50; i++)
{ {

View File

@@ -28,9 +28,9 @@
<h1>demo de buscador</h1> <h1>demo de buscador</h1>
<form method=post action="buscador2.php"> <form method=post action="buscador2.php">
<input type=hidden name=ticket value="<?= $frm['ticket'] ?>" > <input type=hidden name=ticket value="<?php echo $frm['ticket'] ?>" >
<input type=hidden name=tipo value="<?= $frm['tipo'] ?>" > <input type=hidden name=tipo value="<?php echo $frm['tipo'] ?>" >
Buscador tipo : <?= $frm['tipo'] ?><br> Buscador tipo : <?php echo $frm['tipo'] ?><br>
<table><tr><td> <table><tr><td>
curso</td><td> curso</td><td>

View File

@@ -193,12 +193,12 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_FACTORY"))!=1) return $RBAC_Respons
<script> <script>
var toolbar = document.getElementById('fields_Toolbar') var toolbar = document.getElementById('fields_Toolbar')
var fieldsList = document.getElementById('dynaformEditor[0]') var fieldsList = document.getElementById('dynaformEditor[0]')
var tableHeight=<?= $config['FieldsList']['height'] ?>; var tableHeight=<?php echo $config['FieldsList']['height'] ?>;
var tableWidth=<?= $config['FieldsList']['width'] ?>; var tableWidth=<?php echo $config['FieldsList']['width'] ?>;
var toolbarTop=<?= $config['Toolbar']['top'] ?>; var toolbarTop=<?php echo $config['Toolbar']['top'] ?>;
var toolbarLeft=<?= $config['Toolbar']['left'] ?>; var toolbarLeft=<?php echo $config['Toolbar']['left'] ?>;
var fieldsListTop=<?= $config['FieldsList']['top'] ?>//(toolbarTop+toolbar.clientHeight+44+8 ); var fieldsListTop=<?php echo $config['FieldsList']['top'] ?>//(toolbarTop+toolbar.clientHeight+44+8 );
var fieldsListLeft=<?= $config['FieldsList']['left'] ?>; var fieldsListLeft=<?php echo $config['FieldsList']['left'] ?>;
mainPanel.elements.headerBar.style.backgroundColor='#CBDAEF'; mainPanel.elements.headerBar.style.backgroundColor='#CBDAEF';
mainPanel.elements.headerBar.style.borderBottom='1px solid #808080'; mainPanel.elements.headerBar.style.borderBottom='1px solid #808080';
mainPanel.elements.headerBar.appendChild(toolbar); mainPanel.elements.headerBar.appendChild(toolbar);

View File

@@ -67,7 +67,7 @@ a.krumo-name {
<ul class="krumo-node krumo-first"> <ul class="krumo-node krumo-first">
<div class="krumo-element" > <div class="krumo-element" >
End Point <input type="text" size="80" maxlength="160" name="epr" End Point <input type="text" size="80" maxlength="160" name="epr"
value="<?= $endpoint ?>" > value="<?php echo $endpoint ?>" >
<input type="submit" value="change endpoint" name="action"> <input type="submit" value="change endpoint" name="action">
</div> </div>
</ul> </ul>
@@ -238,17 +238,17 @@ a.krumo-name {
<div class="krumo-element" > <div class="krumo-element" >
status_code status_code
(<em class="krumo-type">Integer</em>) (<em class="krumo-type">Integer</em>)
<strong class="krumo-integer"><?= $result->error->number ?></strong> <strong class="krumo-integer"><?php echo $result->error->number ?></strong>
</div> </div>
<div class="krumo-element" > <div class="krumo-element" >
message message
(<em class="krumo-type">string</em>) (<em class="krumo-type">string</em>)
<strong class="krumo-integer"><?= $result->error->name ?></strong> <strong class="krumo-integer"><?php echo $result->error->name ?></strong>
</div> </div>
<div class="krumo-element" > <div class="krumo-element" >
timestamp timestamp
(<em class="krumo-type">string</em>) (<em class="krumo-type">string</em>)
<strong class="krumo-integer"><?= $result->error->description ?></strong> <strong class="krumo-integer"><?php echo $result->error->description ?></strong>
</div> </div>
</li> </li>
</ul> </ul>

View File

@@ -40,7 +40,7 @@ if (($RBAC_Response=$RBAC->userCanAccess("PM_SETUP"))!=1) return $RBAC_Response;
if((DESCRIPTION.value == "")) if((DESCRIPTION.value == ""))
{ {
alert ("<?= G::LoadTranslation("ID_MSG_ERROR_LANGUAGE_DESCRIPTION")?>"); alert ("<?php echo G::LoadTranslation("ID_MSG_ERROR_LANGUAGE_DESCRIPTION")?>");
DESCRIPTION.focus(); DESCRIPTION.focus();
return; return;
} }

View File

@@ -70,21 +70,21 @@ G::RenderPage( 'publish' );
?> ?>
<script language="javascript"> <script language="javascript">
rowNumber=<?=$r?>; rowNumber=<?php echo $r?>;
attachFunctionEventOnChange(document.getElementById('form[USR_CITY]'),changeRegion); attachFunctionEventOnChange(document.getElementById('form[USR_CITY]'),changeRegion);
attachFunctionEventOnChange(document.getElementById('form[USR_COUNTRY]'),changeRegion); attachFunctionEventOnChange(document.getElementById('form[USR_COUNTRY]'),changeRegion);
function changeCity() function changeCity()
{ {
var country=document.getElementById('form[USR_COUNTRY]'); var country=document.getElementById('form[USR_COUNTRY]');
var city=document.getElementById('form[USR_CITY]'); var city=document.getElementById('form[USR_CITY]');
ajax_function('<?=G::encryptLink('cityAjax.php')?>','changeCity','row='+rowNumber+'&country='+encodeURIComponent(country.value)+'&city='+encodeURIComponent(city.value)); ajax_function('<?php echo G::encryptLink('cityAjax.php')?>','changeCity','row='+rowNumber+'&country='+encodeURIComponent(country.value)+'&city='+encodeURIComponent(city.value));
} }
function addLocation() function addLocation()
{ {
var lr = document.getElementById('lastRow'); var lr = document.getElementById('lastRow');
var city=document.getElementById('form[USR_CITY]'); var city=document.getElementById('form[USR_CITY]');
if (newLocation.value=='') return; if (newLocation.value=='') return;
lr.outerHTML=ajax_function('<?=G::encryptLink('cityAjax.php')?>','newLocation','row='+rowNumber+'&location='+encodeURIComponent(newLocation.value)+'&city='+encodeURIComponent(city.value)); lr.outerHTML=ajax_function('<?php echo G::encryptLink('cityAjax.php')?>','newLocation','row='+rowNumber+'&location='+encodeURIComponent(newLocation.value)+'&city='+encodeURIComponent(city.value));
rowNumber++; rowNumber++;
newLocation.value=''; newLocation.value='';
} }
@@ -92,7 +92,7 @@ function deleteLocation(locat)
{ {
var lr = document.getElementById('DIV_LOCATIONS'); var lr = document.getElementById('DIV_LOCATIONS');
var city=document.getElementById('form[USR_CITY]'); var city=document.getElementById('form[USR_CITY]');
lr.innerHTML=ajax_function('<?=G::encryptLink('cityAjax.php')?>','delLocation','row='+rowNumber+'&uid='+encodeURIComponent(locat)+'&city='+encodeURIComponent(city.value)); lr.innerHTML=ajax_function('<?php echo G::encryptLink('cityAjax.php')?>','delLocation','row='+rowNumber+'&uid='+encodeURIComponent(locat)+'&city='+encodeURIComponent(city.value));
rowNumber--; rowNumber--;
} }
function changeRegion() function changeRegion()
@@ -105,23 +105,23 @@ function changeRegion()
{ {
var city=document.getElementById('form[USR_CITY]'); var city=document.getElementById('form[USR_CITY]');
var lr = document.getElementById('DIV_LOCATIONS'); var lr = document.getElementById('DIV_LOCATIONS');
lr.innerHTML=ajax_function('<?=G::encryptLink('cityAjax.php')?>','changeRegion','city='+encodeURIComponent(city.value)); lr.innerHTML=ajax_function('<?php echo G::encryptLink('cityAjax.php')?>','changeRegion','city='+encodeURIComponent(city.value));
rowNumber=ajax_function('<?=G::encryptLink('cityAjax.php')?>','getRowRegion','city='+encodeURIComponent(city.value)); rowNumber=ajax_function('<?php echo G::encryptLink('cityAjax.php')?>','getRowRegion','city='+encodeURIComponent(city.value));
} }
} }
function changeCities() function changeCities()
{ {
var country=document.getElementById('form[USR_COUNTRY]'); var country=document.getElementById('form[USR_COUNTRY]');
var lr = document.getElementById('DIV_LOCATIONS'); var lr = document.getElementById('DIV_LOCATIONS');
lr.innerHTML=ajax_function('<?=G::encryptLink('cityAjax.php')?>','changecities','country='+encodeURIComponent(country.value)); lr.innerHTML=ajax_function('<?php echo G::encryptLink('cityAjax.php')?>','changecities','country='+encodeURIComponent(country.value));
rowNumber=ajax_function('<?=G::encryptLink('cityAjax.php')?>','getRowCities','country='+encodeURIComponent(country.value)); rowNumber=ajax_function('<?php echo G::encryptLink('cityAjax.php')?>','getRowCities','country='+encodeURIComponent(country.value));
} }
function addCity() function addCity()
{ {
var lr = document.getElementById('lastRow'); var lr = document.getElementById('lastRow');
var country=document.getElementById('form[USR_COUNTRY]'); var country=document.getElementById('form[USR_COUNTRY]');
if (newCity.value=='') return; if (newCity.value=='') return;
lr.outerHTML=ajax_function('<?=G::encryptLink('cityAjax.php')?>','addCity','row='+rowNumber+'&city='+encodeURIComponent(newCity.value)+'&country='+encodeURIComponent(country.value)); lr.outerHTML=ajax_function('<?php echo G::encryptLink('cityAjax.php')?>','addCity','row='+rowNumber+'&city='+encodeURIComponent(newCity.value)+'&country='+encodeURIComponent(country.value));
rowNumber++; rowNumber++;
newCity.value=''; newCity.value='';
//Refresh the city's dropdown //Refresh the city's dropdown
@@ -135,7 +135,7 @@ function deleteCity(locat)
{ {
var lr = document.getElementById('DIV_LOCATIONS'); var lr = document.getElementById('DIV_LOCATIONS');
var country=document.getElementById('form[USR_COUNTRY]'); var country=document.getElementById('form[USR_COUNTRY]');
lr.innerHTML=ajax_function('<?=G::encryptLink('cityAjax.php')?>','delCity','row='+rowNumber+'&uid='+encodeURIComponent(locat)+'&country='+encodeURIComponent(country.value)); lr.innerHTML=ajax_function('<?php echo G::encryptLink('cityAjax.php')?>','delCity','row='+rowNumber+'&uid='+encodeURIComponent(locat)+'&country='+encodeURIComponent(country.value));
rowNumber--; rowNumber--;
//Refresh the city's dropdown //Refresh the city's dropdown
attachFunctionEventOnChange(document.getElementById('form[USR_CITY]'),null); attachFunctionEventOnChange(document.getElementById('form[USR_CITY]'),null);

View File

@@ -72,7 +72,7 @@ function on_submit(myForm)
days+=','+cb.id; days+=','+cb.id;
values+=','+cb.checked; values+=','+cb.checked;
} }
ajax_function('<?=G::encryptLink('weekendAjax.php');?>','setDays','days='+days+'&values='+values); ajax_function('<?php echo G::encryptLink('weekendAjax.php');?>','setDays','days='+days+'&values='+values);
document.location.reload(true); document.location.reload(true);
} }
function ajax_function(ajax_server, funcion, parameters) function ajax_function(ajax_server, funcion, parameters)

View File

@@ -77,7 +77,7 @@
?> ?>
<script> <script>
parent.jsMeta = "<? echo $boot_strap['__ATTRIBUTES__']['meta'] ?>"; parent.jsMeta = "<?php echo $boot_strap['__ATTRIBUTES__']['meta'] ?>";
</script> </script>
<?php <?php
} }

View File

@@ -26,7 +26,7 @@
<title>Redirector</title> <title>Redirector</title>
<meta http-equiv="PRAGMA" content="NO-CACHE" /> <meta http-equiv="PRAGMA" content="NO-CACHE" />
<meta http-equiv="CACHE-CONTROL" content="NO-STORE" /> <meta http-equiv="CACHE-CONTROL" content="NO-STORE" />
<meta http-equiv="REFRESH" content="0;URL=<?= $COMPLETE_URI ?>" /> <meta http-equiv="REFRESH" content="0;URL=<?php echo $COMPLETE_URI ?>" />
</head> </head>
<body bgcolor="White"> <body bgcolor="White">
</body> </body>