[svn r11057] update tables classes (to integrate news CSS)

skala
Julian Prud'homme 19 years ago
parent 351f0ab74d
commit 0aa62de449
  1. 53
      main/exercice/exercice.php
  2. 12
      main/exercice/question_list_admin.inc.php
  3. 12
      main/exercice/question_pool.php

@ -24,7 +24,7 @@
* @author Olivier Brouckaert, original author
* @author Denes Nagy, HotPotatoes integration
* @author Wolfgang Schneider, code/html cleanup
* @version $Id: exercice.php 11005 2007-01-30 10:24:08Z elixir_julian $
* @version $Id: exercice.php 11057 2007-02-05 08:56:17Z elixir_julian $
*/
@ -379,15 +379,15 @@ if($show == 'test'){
"</table>";
?>
<table border="0" align="center" cellpadding="2" cellspacing="2" width="100%">
<table class="data_table">
<?php
if (($is_allowedToEdit) and ($origin != 'learnpath'))
{
?>
<tr bgcolor="#e6e6e6">
<td align="center" colspan="2"><?php echo get_lang("ExerciseName");?></td>
<td align="center"><?php echo get_lang("Description");?></td>
<td align="center"><?php echo get_lang("Modify");?></td>
<tr class="row_odd">
<th colspan="2"><?php echo get_lang("ExerciseName");?></th>
<th><?php echo get_lang("Description");?></th>
<th><?php echo get_lang("Modify");?></th>
</tr>
<?php
@ -395,9 +395,9 @@ if($show == 'test'){
else
{
?> <tr bgcolor="#e6e6e6">
<td align="center"><?php echo get_lang("ExerciseName");?></td>
<td align="center"><?php echo get_lang("Description");?></td>
<td align="center"><?php echo get_lang("State");?></td>
<th><?php echo get_lang("ExerciseName");?></th>
<th><?php echo get_lang("Description");?></th>
<th><?php echo get_lang("State");?></th>
</tr>
<?php }
@ -422,7 +422,8 @@ if($show == 'test'){
{
//error_log($row[0],0);
echo "<tr>\n";
if($i%2==0) $s_class="row_odd"; else $s_class="row_even";
echo "<tr class='$s_class'>\n";
// prof only
if($is_allowedToEdit)
@ -505,9 +506,7 @@ if($show == 'test'){
}
?></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<?php
}
@ -518,7 +517,7 @@ if($show == 'test'){
}
$i++;
echo "<tr><td colspan = '5'><hr></td></tr>";
} // end while()
$ind = $i;
@ -806,14 +805,14 @@ $message = "<p>You attempt for the test #test# has been viewed/commented/correct
}
?>
<table cellpadding="2" cellspacing="2" border="0" width="100%">
<tr bgcolor="#E6E6E6" align="center">
<table class="data_table">
<tr class="row_odd">
<?php if($is_allowedToEdit): ?>
<td width="20%"><?php echo get_lang("User"); ?></td><?php endif; ?>
<td width="<?php if($is_allowedToEdit) echo '35'; else echo '55'; ?>%"><?php echo get_lang("Exercice"); ?></td>
<td width="30%"><?php echo get_lang("Date"); ?></td>
<td width="15%"><?php echo get_lang("Result"); ?></td>
<td width="15%"><?php echo $is_allowedToEdit?get_lang("CorrectTest"):get_lang("ViewTest"); ?></td>
<th><?php echo get_lang("User"); ?></th><?php endif; ?>
<th><?php echo get_lang("Exercice"); ?></th>
<th><?php echo get_lang("Date"); ?></th>
<th><?php echo get_lang("Result"); ?></th>
<th><?php echo $is_allowedToEdit?get_lang("CorrectTest"):get_lang("ViewTest"); ?></th>
</tr>
@ -863,13 +862,13 @@ $message = "<p>You attempt for the test #test# has been viewed/commented/correct
$id = $results[$i][5];
$mailid = $results[$i][6];
?>
<tr>
<tr <?php if($i%2==0) echo 'class="row_odd"'; else echo 'class="row_even"'; ?>>
<?php if($is_allowedToEdit): ?>
<td class="content"><?php $user = $results[$i][0]; echo $results[$i][0]; ?></td><?php endif; ?>
<td class="content"><?php $test = $results[$i][1]; echo $results[$i][1]; ?></td>
<td class="content" align="center"><?php $dt = strftime($dateTimeFormatLong,$results[$i][4]); echo strftime($dateTimeFormatLong,$results[$i][4]); ?></td>
<td class="content" align="center"><?php $res = $results[$i][2]; echo $results[$i][2]; ?> / <?php echo $results[$i][3]; ?></td>
<td class="content" align="center"><?php echo $is_allowedToEdit?"<a href='exercise_show.php?user=$user&test=$test&dt=$dt&res=$res&id=$id&email=$mailid'>Edit</a>":"<a href='exercise_show.php?test=$test&dt=$dt&res=$res&id=$id'>".get_lang('Show')."</a>"?></td>
<td><?php $user = $results[$i][0]; echo $results[$i][0]; ?></td><?php endif; ?>
<td><?php $test = $results[$i][1]; echo $results[$i][1]; ?></td>
<td><?php $dt = strftime($dateTimeFormatLong,$results[$i][4]); echo strftime($dateTimeFormatLong,$results[$i][4]); ?></td>
<td><?php $res = $results[$i][2]; echo $results[$i][2]; ?> / <?php echo $results[$i][3]; ?></td>
<td><?php echo $is_allowedToEdit?"<a href='exercise_show.php?user=$user&test=$test&dt=$dt&res=$res&id=$id&email=$mailid'>Edit</a>":"<a href='exercise_show.php?test=$test&dt=$dt&res=$res&id=$id'>".get_lang('Show')."</a>"?></td>
</tr>

@ -22,7 +22,7 @@
* Code library for HotPotatoes integration.
* @package dokeos.exercise
* @author
* @version $Id: question_list_admin.inc.php 10897 2007-01-25 12:45:10Z elixir_inter $
* @version $Id: question_list_admin.inc.php 11057 2007-02-05 08:56:17Z elixir_julian $
*/
@ -83,10 +83,10 @@ Question :: display_type_menu ();
?>
<table border="0" align="center" cellpadding="2" cellspacing="2" width="100%">
<tr bgcolor='#e6e6e6'><td width="65%" align="center"><b><?php echo get_lang('Question'); ?></b></td>
<td width="20%" align="center"><b><?php echo get_lang('Type');?></b></td>
<td width="15%" align="center"><b><?php echo get_lang('Modify'); ?></b></td>
<table class="data_table">
<tr class="row_odd" bgcolor='#e6e6e6'><th><b><?php echo get_lang('Question'); ?></b></th>
<th><b><?php echo get_lang('Type');?></b></th>
<th ><b><?php echo get_lang('Modify'); ?></b></th>
</tr>
<?php
@ -103,7 +103,7 @@ if($nbrQuestions)
?>
<tr>
<tr <?php if($i%2==0) echo 'class="row_odd"'; else echo 'class="row_even"'; ?>>
<td><?php echo "$i. ".$objQuestionTmp->selectTitle(); ?></td> <td><?php eval('echo get_lang('.get_class($objQuestionTmp).'::$explanationLangVar);'); ?></td>
<td> <a href="<?php echo $_SERVER['PHP_SELF']; ?>?myid=1&editQuestion=<?php echo $id; ?>"><img src="../img/edit.gif" border="0" align="absmiddle" alt="<?php echo get_lang('Modify'); ?>" /></a> <a href="<?php echo $_SERVER['PHP_SELF']; ?>?deleteQuestion=<?php echo $id; ?>" onclick="javascript:if(!confirm('<?php echo addslashes(htmlentities(get_lang('ConfirmYourChoice'))); ?>')) return false;"><img src="../img/delete.gif" border="0" align="absmiddle" alt="<?php echo get_lang('Delete'); ?>" /></a>

@ -24,7 +24,7 @@
* One question can be in several exercises
* @package dokeos.exercise
* @author Olivier Brouckaert
* @version $Id: question_pool.php 10897 2007-01-25 12:45:10Z elixir_inter $
* @version $Id: question_pool.php 11057 2007-02-05 08:56:17Z elixir_julian $
*/
// name of the language file that needs to be included
@ -121,7 +121,7 @@ if($is_allowedToEdit)
<form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="hidden" name="fromExercise" value="<?php echo $fromExercise; ?>">
<table border="0" align="center" cellpadding="2" cellspacing="2" width="100%">
<table class="data_table">
<tr>
<td colspan="<?php echo $fromExercise?2:3; ?>" align="right">
<?php echo get_lang('Filter'); ?> : <select name="exerciseId">
@ -251,8 +251,8 @@ if($is_allowedToEdit)
{
?>
<td width="80%" align="center"><?php echo get_lang('Question'); ?></td>
<td width="20%" align="center"><?php echo get_lang('Reuse'); ?></td>
<th><?php echo get_lang('Question'); ?></th>
<th><?php echo get_lang('Reuse'); ?></th>
<?php
}
@ -280,9 +280,9 @@ if($is_allowedToEdit)
{
?>
<tr>
<tr <?php if($i%2==0) echo 'class="row_odd"'; else echo 'class="row_even"'; ?>>
<td><a href="admin.php?editQuestion=<?php echo $row[id]; ?>&fromExercise=<?php echo $fromExercise; ?>"><?php echo $row[question]; ?></a></td>
<td align="center">
<td>
<?php
if(!$fromExercise)

Loading…
Cancel
Save