[svn r9951] coding standards

* replace <?= with <?php echo
* replace $phpself with $_SERVER['PHP_SELF']
* language variables
possibly incomplete
skala
Patrick Cool 19 years ago
parent 2cac1c2624
commit 2a96c6bb8a
  1. 4
      main/exercice/admin.php
  2. 6
      main/exercice/exercise_show.php

@ -1,4 +1,4 @@
<?php // $Id: admin.php 9665 2006-10-24 10:43:48Z elixir_inter $
<?php // $Id: admin.php 9951 2006-11-13 10:54:30Z pcool $
/*
==============================================================================
Dokeos - elearning and course management software
@ -444,7 +444,7 @@ if($newQuestion || $modifyQuestion)
{
// statement management
$type = $_REQUEST['answerType'];
?><input type="hidden" name="Type" value=" <?= $type; ?>" />
?><input type="hidden" name="Type" value=" <?php echo $type; ?>" />
<?php
include("statement_admin.inc.php");
}

@ -610,7 +610,7 @@ $result =api_sql_query($query, __FILE__, __LINE__);
$name = "fckdiv".$questionId;
$marksname = "marksName".$questionId;
?>
<a href="#" onclick="showfck('<?=$name?>','<?=$marksname?>');"><?php if ($answerType == FREE_ANSWER) echo "&nbsp;".get_lang('EditCommentsAndMarks'); else echo "&nbsp;".get_lang('AddComments');?></a>
<a href="#" onclick="showfck('<?php echo $name; ?>','<?php echo $marksname; ?>');"><?php if ($answerType == FREE_ANSWER) echo "&nbsp;".get_lang('EditCommentsAndMarks'); else echo "&nbsp;".get_lang('AddComments');?></a>
<?php
$comnt = get_comments($id,$questionId);
echo "<br> <br>".$comnt;
@ -663,7 +663,7 @@ $result =api_sql_query($query, __FILE__, __LINE__);
$marksname = "marksName".$questionId;
?>
<div id="<?php echo $marksname; ?>" style="visibility:hidden">
<form name="marksform_<?=$questionId?>" method="post" action="">
<form name="marksform_<?php echo $questionId; ?>" method="post" action="">
<?php
@ -712,7 +712,7 @@ $totalWeighting+=$questionWeighting;
?>
<form name="myform" id="myform" action="exercice.php?show=result&comments=update&exeid=<?php echo $id; ?>&test=<?php echo $test; ?>&emailid=<?php echo $emailId;?>" method="post">
<input type="submit" value="<?php echo get_lang('Ok'); ?>" onclick="getFCK('<?=$strids?>','<?=$marksid?>');"/>
<input type="submit" value="<?php echo get_lang('Ok'); ?>" onclick="getFCK('<?php echo $strids; ?>','<?php echo $marksid; ?>');"/>
</form>
<?php } ?>
</td>

Loading…
Cancel
Save