This patch helped some. At least the second and third occurence of PHP code in the template is being converted from the normal php tags to the [startphp] and [endphp] tags. But it still is getting tripped up on some of the other "greater than" characters in between.
This code is in the record template for the front end.
<?php
echo "<table><tr valign=top><td colspan=3><select name="Room">";
foreach($locations as $location){
echo "<option value=".$location->room.">".$location->room."</option>";
}
echo "</select></td></tr></table>";
?>
<table>
<tr><td colspan="3"><br></td></tr>
<tr valign="top" bgcolor="#FFFFBF"><td colspan=3><b>Description</b></td></tr>
<?php echo "<tr><td colspan=3>";
echo $editor->display( 'Description', '' , '100%', '200', '75', '20', false ) ;
echo "</td></tr>";
?>
According to the Autogenerated tab, this is converted to this code:
>[startphp] echo "
<TABLE>
<TBODY>
<TR vAlign=top>
<TD colSpan=3><SELECT ccnamex='"Room"'>"; foreach($locations as $location){ echo "<OPTION value="" selected ccvaluex=".$location->room." ccphpx="[startphp] if("{"Room"}" == ".$location->room.")echo "selected='selected'";[endphp]ccphpx">".$location->room."</OPTION>"; } echo "</SELECT></TD></TR></TBODY></TABLE>"; [endphp]
<TABLE>
<TBODY>
<TR>
<TD colSpan=3><BR></TD></TR>
<TR vAlign=top bgColor=#ffffbf>
<TD colSpan=3><B>Description</B></TD></TR>[startphp] echo "
<TR>
<TD colSpan=3>"; echo $editor->display( 'Description', '' , '100%', '200', '75', '20', false ) ; echo "</TD></TR>"; [endphp]
The parsing seems to get confused some by the other greater than signs in the select control. Part of the problem appears to be the insertion of the test for the selected value. This results in the following error message when trying to edit a record in the table.
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/ctbc/public_html/components/com_chronoconnectivity/chronoconnectivity.html.php(283) : eval()'d code on line
The autogenerated code for the third segment of PHP code looks OK, but the displayed page shows the editor with no text content from the database.
George