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 ";
?>
<input type='hidden' name='dtmin_value' id='dtmin_value' value='<?= $dtmin_value ?>' >
<input type='hidden' name='dtmax_value' id='dtmax_value' value='<?= $dtmax_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='<?php echo $dtmax_value ?>' >
<table style='font-family:Arial;size:8pt;' cellspacing="0" border="0" width="250px">
<tr><td bgcolor="#4682B4" align='center'>
<table cellspacing="1" cellpadding="2" border="0" width="100%">
@@ -120,19 +120,19 @@
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<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('<?= $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_year ?>'); return false; "><img src="<?php echo $prevYear; ?>" width="16" height="16" border="0" alt="previous year"></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 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 align="left" width='50'>
<a href="#" onclick="set_datetime('<?= $dt_next_month ?>'); return false; ">
<img src="<?= $nextMonth; ?>" width="16" height="16" border="0" alt="next month"></a>
<a href="#" onclick="set_datetime('<?= $dt_next_year ?>'); return false; ">
<img src="<?= $nextYear; ?>" width="16" height="16" border="0" alt="next year"></a>
<a href="#" onclick="set_datetime('<?php echo $dt_next_month ?>'); return false; ">
<img src="<?php echo $nextMonth; ?>" width="16" height="16" border="0" alt="next month"></a>
<a href="#" onclick="set_datetime('<?php echo $dt_next_year ?>'); return false; ">
<img src="<?php echo $nextYear; ?>" width="16" height="16" border="0" alt="next year"></a>
</td>
</tr>
</table></td></tr>

View File

@@ -12,7 +12,7 @@
<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="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>
<td height="12" colspan="4" align="center" bgcolor="#336699" scope="col"></td>
@@ -22,8 +22,8 @@
<br />
<table width="70%" border="0" align="center" cellpadding="0" cellspacing="0" class="mainCopy">
<tr>
<td width="15%" align="left" scope="col"><span class="mxbOnlineTextBlue"><?= $ERROR_TEXT ?> </span><br />
<?= $ERROR_DESCRIPTION ?>
<td width="15%" align="left" scope="col"><span class="mxbOnlineTextBlue"><?php echo $ERROR_TEXT ?> </span><br />
<?php echo $ERROR_DESCRIPTION ?>
</tr>
</table>
</body>

View File

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

View File

@@ -28,9 +28,9 @@
<h1>demo de buscador</h1>
<form method=post action="buscador2.php">
<input type=hidden name=ticket value="<?= $frm['ticket'] ?>" >
<input type=hidden name=tipo value="<?= $frm['tipo'] ?>" >
Buscador tipo : <?= $frm['tipo'] ?><br>
<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>

View File

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

View File

@@ -26,7 +26,7 @@
<title>Redirector</title>
<meta http-equiv="PRAGMA" content="NO-CACHE" />
<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>
<body bgcolor="White">
</body>

View File

@@ -58,18 +58,18 @@ function RefreshDependentFields(ObjectName, Fields, InitValue) {
if(FldObj){
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'){
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') {
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{
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;
}
?>
myDatePicker.displayDateFormat = '<?=$TheDateFormat?>';
myDatePicker.displayDateFormat = '<?php echo $TheDateFormat?>';
myDatePicker.fieldName = fieldName;
myDatePicker.loadSkin('win2k');
myDatePicker.daysNumChars = 2;

View File

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

View File

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

View File

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

View File

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

View File

@@ -28,9 +28,9 @@
<h1>demo de buscador</h1>
<form method=post action="buscador2.php">
<input type=hidden name=ticket value="<?= $frm['ticket'] ?>" >
<input type=hidden name=tipo value="<?= $frm['tipo'] ?>" >
Buscador tipo : <?= $frm['tipo'] ?><br>
<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>

View File

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

View File

@@ -67,7 +67,7 @@ a.krumo-name {
<ul class="krumo-node krumo-first">
<div class="krumo-element" >
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">
</div>
</ul>
@@ -238,17 +238,17 @@ a.krumo-name {
<div class="krumo-element" >
status_code
(<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 class="krumo-element" >
message
(<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 class="krumo-element" >
timestamp
(<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>
</li>
</ul>

View File

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

View File

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

View File

@@ -72,7 +72,7 @@ function on_submit(myForm)
days+=','+cb.id;
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);
}
function ajax_function(ajax_server, funcion, parameters)

View File

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

View File

@@ -26,7 +26,7 @@
<title>Redirector</title>
<meta http-equiv="PRAGMA" content="NO-CACHE" />
<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>
<body bgcolor="White">
</body>