Browse Source

my message

MOODLE_20_STABLE
root 12 years ago
parent
commit
c15aabc45d
  1. 9
      showattempts.php
  2. 4
      version.php

9
showattempts.php

@ -154,6 +154,8 @@
function game_showattempts($game){ function game_showattempts($game){
global $CFG, $DB, $OUTPUT; global $CFG, $DB, $OUTPUT;
$allowdelete = optional_param('allowdelete', 0, PARAM_INT);
$userid = optional_param('userid',0,PARAM_INT); $userid = optional_param('userid',0,PARAM_INT);
$limitfrom = optional_param('limitfrom', 0, PARAM_INT); $limitfrom = optional_param('limitfrom', 0, PARAM_INT);
$gamekind = $game->gamekind; $gamekind = $game->gamekind;
@ -203,8 +205,11 @@
foreach( $recs as $rec){ foreach( $recs as $rec){
echo '<tr>'; echo '<tr>';
echo '<td><center>'; echo '<td><center>';
if( $rec->timefinish == 0){ if( ($rec->timefinish == 0) or $allowdelete){
echo "\r\n<a href=\"{$CFG->wwwroot}/mod/game/showattempts.php?attemptid={$rec->id}&amp;q={$game->id}&amp;action=delete\">"; echo "\r\n<a href=\"{$CFG->wwwroot}/mod/game/showattempts.php?attemptid={$rec->id}&amp;q={$game->id}&amp;action=delete";
if( $allowdelete)
echo '&allowdelete=1';
echo '">';
echo '<img src="'.$OUTPUT->pix_url('t/delete').'" alt="'.get_string( 'delete').'" /></a>'; echo '<img src="'.$OUTPUT->pix_url('t/delete').'" alt="'.get_string( 'delete').'" /></a>';
} }
echo '</center></td>'; echo '</center></td>';

4
version.php

@ -11,7 +11,7 @@
defined('MOODLE_INTERNAL') || die(); defined('MOODLE_INTERNAL') || die();
$module->component = 'mod_game'; // Full name of the plugin (used for diagnostics) $module->component = 'mod_game'; // Full name of the plugin (used for diagnostics)
$module->version = 2013072903; // The current module version (Date: YYYYMMDDXX) $module->version = 2013081301; // The current module version (Date: YYYYMMDDXX)
$module->requires = 2010112400; // Requires Moodle 2.0 $module->requires = 2010112400; // Requires Moodle 2.0
$module->cron = 0; // Period for cron to check this module (secs) $module->cron = 0; // Period for cron to check this module (secs)
$module->release = '3.7.29.3'; $module->release = '3.8.13';

Loading…
Cancel
Save