[svn r18051] logic changes-allow to use links Breadcrumb correctly in session - (see FS#3551)

skala
Isaac Flores 16 years ago
parent d480b20603
commit c845b1249e
  1. 2
      main/gradebook/lib/be/category.class.php
  2. 2
      main/gradebook/lib/fe/displaygradebook.php
  3. 2
      main/gradebook/lib/gradebook_functions.inc.php

@ -250,7 +250,7 @@ class Category implements GradebookItem
* Insert this category into the database
*/
public function add() {
if ( isset($this->name) && -1===$this->name) {
if ( isset($this->name) && '-1'==$this->name) {
return false;
}
if (isset($this->name) && isset($this->user_id) && isset($this->weight) && isset($this->visible)) {

@ -310,7 +310,7 @@ class DisplayGradebook
}
if ($message_resource===false ) {
$myname=$catobj->shows_all_information_an_category($catobj->get_id());
$header .= '<td><a href="gradebook_edit_all.php?'.$my_api_cidreq.'&selectcat=' . $catobj->get_id() . '">'.Display::return_icon('quiz.gif', get_lang('EditAllWeights')).' ' . get_lang('EditAllWeights') . '</a>';
$header .= '<td><a href="gradebook_edit_all.php?id_session='.$_SESSION['id_session'].'&amp;'.$my_api_cidreq.'&selectcat=' . $catobj->get_id() . '">'.Display::return_icon('quiz.gif', get_lang('EditAllWeights')).' ' . get_lang('EditAllWeights') . '</a>';
$my_course_id=api_get_course_id();
$my_file= substr($_SESSION['gradebook_dest'],0,5);
if ($my_file!='index') {

@ -216,7 +216,7 @@ function build_edit_icons_eval($eval, $selectcat) {
$modify_icons .= '&nbsp;<a href="' . api_get_self() . '?deleteeval=' . $eval->get_id() . '&selectcat=' . $selectcat . '" onclick="return confirmation();"><img src="../img/delete.gif" border="0" title="' . get_lang('Delete') . '" alt="" /></a>';
//$modify_icons .= '&nbsp;<a href="' . api_get_self() . '?moveeval=' . $eval->get_id() . '&selectcat=' . $selectcat . '"><img src="../img/deplacer_fichier.gif" border="0" title="' . get_lang('Move') . '" alt="" /></a>';
$modify_icons .= '&nbsp;<a href="' . api_get_self() . '?visibleeval=' . $eval->get_id() . '&amp;' . $visibility_command . '=&amp;selectcat=' . $selectcat . '"><img src="../img/' . $visibility_icon . '.gif" border="0" title="' . get_lang('Visible') . '" alt="" /></a>';
if (api_is_course_admin() == true){
if (api_is_course_tutor()){
$modify_icons .= '&nbsp;<a href="gradebook_showlog_eval.php?visiblelog=' . $eval->get_id() . '&amp;selectcat=' . $selectcat . '"><img src="../img/file_txt_small.gif" border="0" title="' . get_lang('GradebookQualifyLog') . '" alt="" /></a>';
}
return $modify_icons;

Loading…
Cancel
Save