Adding a message when sending an email (Exercise tool)

skala
Julio Montoya 15 years ago
parent 63c2ef65b1
commit 7e36e4db3b
  1. 2
      main/exercice/exercise_result.php
  2. 2
      main/exercice/exercise_show.php
  3. 31
      main/exercice/question_admin.inc.php

@ -1196,6 +1196,8 @@ if (api_get_course_setting('email_alert_manager_on_new_quiz') == 1 ) {
$result = api_mail_html('', $to, $subject, $mail_content, $sender_name, $email_admin, array('charset'=>$mycharset));
} else {
$msg .= '<body>
<p>'.get_lang('ExerciseAttempted').' <br />
</p>
<table width="730" height="136" border="0" cellpadding="3" cellspacing="3">
<tr>
<td width="229" valign="top"><h2>&nbsp;&nbsp;'.get_lang('CourseName').'</h2></td>

@ -1351,6 +1351,8 @@ function send_notification($arrques, $arrans, $to) {
} else {
$msg .= '<body>
<p>'.get_lang('ExerciseAttempted').' <br />
</p>
<table width="730" height="136" border="0" cellpadding="3" cellspacing="3">
<tr>
<td width="229" valign="top"><h2>&nbsp;&nbsp;'.get_lang('CourseName').'</h2></td>

@ -1,25 +1,5 @@
<?php
/*
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004-2009 Dokeos SPRL
For a full list of contributors, see "credits.txt".
The full license can be read in "license.txt".
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.
See the GNU General Public License for more details.
Contact address: Dokeos, rue du Corbeau, 108, B-1030 Brussels, Belgium
Mail: info@dokeos.com
==============================================================================
*/
/* For licensing terms, see /chamilo_license.txt */
/**
* Statement (?) administration
@ -40,8 +20,7 @@ include_once(api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php')
include_once(api_get_path(LIBRARY_PATH).'image.lib.php');
// ALLOWED_TO_INCLUDE is defined in admin.php
if(!defined('ALLOWED_TO_INCLUDE'))
{
if(!defined('ALLOWED_TO_INCLUDE')) {
exit();
}
@ -49,8 +28,7 @@ if(!defined('ALLOWED_TO_INCLUDE'))
/*********************
* INIT QUESTION
*********************/
if(isset($_GET['editQuestion']))
{
if(isset($_GET['editQuestion'])) {
$objQuestion = Question::read ($_GET['editQuestion']);
$action = api_get_self()."?modifyQuestion=".$modifyQuestion."&editQuestion=".$objQuestion->id;
@ -70,8 +48,7 @@ if(isset($_GET['editQuestion']))
$action = api_get_self()."?modifyQuestion=".$modifyQuestion."&newQuestion=".$newQuestion;
}
if(is_object($objQuestion))
{
if(is_object($objQuestion)) {
/*********************
* FORM STYLES

Loading…
Cancel
Save