Commit 304d82cf authored by Jean-Paul Saman's avatar Jean-Paul Saman

configure.php: fix display of values

The construct <?= does not work in all PHP version, so replace this
by a more generic version <?php e
parent 0516ed35
...@@ -151,17 +151,17 @@ foreach ($config_options as $key=>$value){ ...@@ -151,17 +151,17 @@ foreach ($config_options as $key=>$value){
<?php <?php
// the key starts with hr, then just display the value // the key starts with hr, then just display the value
if(substr($key,0,7)=='heading'){ ?> if(substr($key,0,7)=='heading'){ ?>
<th align="center" colspan="2"><?=$value?></th> <th align="center" colspan="2"><?php echo $value?></th>
<?php } else { ?> <?php } else { ?>
<td align="right"><?=$value['description']?></td> <td align="right"><?php echo $value['description']?></td>
<td><?php <td><?php
switch($value['type']){ switch($value['type']){
case 'checkbox': ?> case 'checkbox': ?>
<input type="checkbox" name="<?=$key?>" <?=$value['value']?"checked=\"checked\"":""?>> <input type="checkbox" name="<?php echo $key?>" <?php echo $value['value']?"checked=\"checked\"":""?>>
<?php <?php
break; break;
case 'text': ?> case 'text': ?>
<input type="text" name="<?=$key?>" value="<?=$value['value']?>"> <input type="text" name="<?php echo $key?>" value="<?php echo $value['value']?>">
<?php <?php
break; break;
case 'select': case 'select':
...@@ -185,8 +185,8 @@ foreach ($config_options as $key=>$value){ ...@@ -185,8 +185,8 @@ foreach ($config_options as $key=>$value){
?> ?>
<tr> <tr>
<td colspan="2" align="right"> <td colspan="2" align="right">
<input type="Submit" name="Cancel" value="<?=$AppUI->_('cancel')?>"> <input type="Submit" name="Cancel" value="<?php echo $AppUI->_('cancel')?>">
<input type="Submit" name="Save" value="<?=$AppUI->_('save')?>"> <input type="Submit" name="Save" value="<?php echo $AppUI->_('save')?>">
</td> </td>
</tr> </tr>
</table> </table>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment