Show headers

1.10.x
Julio Montoya 11 years ago
parent 7c769e079b
commit aba2fd942d
  1. 2
      main/document/edit_draw.php
  2. 2
      main/document/edit_paint.php
  3. 2
      main/document/exit_pixlr.php
  4. 2
      main/gradebook/gradebook_add_eval.php
  5. 2
      main/gradebook/gradebook_add_link.php
  6. 2
      main/gradebook/gradebook_add_link_select_course.php
  7. 2
      main/gradebook/gradebook_add_result.php
  8. 2
      main/gradebook/gradebook_display_certificate.php
  9. 2
      main/gradebook/gradebook_edit_all.php
  10. 6
      main/gradebook/gradebook_flatview.php
  11. 2
      main/gradebook/index.php
  12. 18
      main/user/class.php

@ -14,7 +14,7 @@ require_once '../inc/global.inc.php';
$_SESSION['whereami'] = 'document/editdraw';
$this_section = SECTION_COURSES;
api_protect_course_script();
api_protect_course_script(true);
api_block_anonymous_users();
$document_data = DocumentManager::get_document_data_by_id($_GET['id'], api_get_course_id(), true);

@ -14,7 +14,7 @@ require_once '../inc/global.inc.php';
$_SESSION['whereami'] = 'document/editpaint';
$this_section = SECTION_COURSES;
api_protect_course_script();
api_protect_course_script(true);
api_block_anonymous_users();
$groupId = api_get_group_id();
$document_data = DocumentManager::get_document_data_by_id(

@ -11,7 +11,7 @@
*/
require_once '../inc/global.inc.php';
api_protect_course_script();
api_protect_course_script(true);
api_block_anonymous_users();
//delete temporal file

@ -8,7 +8,7 @@
require_once '../inc/global.inc.php';
$current_course_tool = TOOL_GRADEBOOK;
api_protect_course_script();
api_protect_course_script(true);
api_block_anonymous_users();
GradebookUtils::block_students();

@ -9,7 +9,7 @@ require_once '../inc/global.inc.php';
require_once '../forum/forumfunction.inc.php';
$current_course_tool = TOOL_GRADEBOOK;
api_protect_course_script();
api_protect_course_script(true);
api_block_anonymous_users();
GradebookUtils::block_students();

@ -9,7 +9,7 @@
require_once '../inc/global.inc.php';
$current_course_tool = TOOL_GRADEBOOK;
api_protect_course_script();
api_protect_course_script(true);
api_block_anonymous_users();
GradebookUtils::block_students();

@ -9,7 +9,7 @@
require_once '../inc/global.inc.php';
$current_course_tool = TOOL_GRADEBOOK;
api_protect_course_script();
api_protect_course_script(true);
api_block_anonymous_users();
GradebookUtils::block_students();

@ -9,7 +9,7 @@ require_once '../inc/global.inc.php';
$current_course_tool = TOOL_GRADEBOOK;
if (!api_is_student_boss()) {
api_protect_course_script();
api_protect_course_script(true);
}
set_time_limit(0);

@ -12,7 +12,7 @@ require_once '../inc/global.inc.php';
$this_section = SECTION_COURSES;
$current_course_tool = TOOL_GRADEBOOK;
api_protect_course_script();
api_protect_course_script(true);
api_block_anonymous_users();
if (!api_is_allowed_to_edit()) {

@ -8,7 +8,7 @@
require_once '../inc/global.inc.php';
$current_course_tool = TOOL_GRADEBOOK;
api_protect_course_script();
api_protect_course_script(true);
api_block_anonymous_users();
$isDrhOfCourse = CourseManager::isUserSubscribedInCourseAsDrh(
@ -199,7 +199,9 @@ if (isset($_GET['print'])) {
exit;
}
if (!empty($_GET['export_report']) && $_GET['export_report'] == 'export_report') {
if (!empty($_GET['export_report']) &&
$_GET['export_report'] == 'export_report'
) {
if (api_is_platform_admin() || api_is_course_admin() || api_is_course_coach() || $isDrhOfCourse) {
$user_id = null;

@ -12,7 +12,7 @@ $_in_course = true;
require_once '../inc/global.inc.php';
$current_course_tool = TOOL_GRADEBOOK;
api_protect_course_script();
api_protect_course_script(true);
$course_code = api_get_course_id();
$stud_id = api_get_user_id();

@ -3,13 +3,11 @@
/**
* @package chamilo.user
*/
/**
* INIT SECTION
*/
require_once '../inc/global.inc.php';
$this_section = SECTION_COURSES;
api_protect_course_script();
api_protect_course_script(true);
if (api_get_setting('allow_user_course_subscription_by_course_admin') == 'false') {
if (!api_is_platform_admin()) {
@ -34,7 +32,7 @@ $usergroup = new UserGroup();
if (api_is_allowed_to_edit()) {
echo '<div class="actions">';
if ($type == 'registered') {
echo '<a href="class.php?'.api_get_cidreq().'&type=not_registered">'.Display::return_icon('add.png', get_lang("AddClassesToACourse"), array(), ICON_SIZE_MEDIUM).'</a>';
echo '<a href="class.php?'.api_get_cidreq().'&type=not_registered">'.Display::return_icon('add.png', get_lang("AddClassesToACourse"), array(), ICON_SIZE_MEDIUM).'</a>';
} else {
echo '<a href="class.php?'.api_get_cidreq().'&type=registered">'.Display::return_icon('empty_evaluation.png', get_lang("Classes"), array(), ICON_SIZE_MEDIUM).'</a>';
}
@ -53,7 +51,7 @@ if (api_is_allowed_to_edit()) {
}
break;
case 'remove_class_from_course':
$id = $_GET['id'];
$id = $_GET['id'];
if (!empty($id)) {
$usergroup->unsubscribe_courses_from_usergroup($id, array(api_get_course_int_id()));
}
@ -70,8 +68,8 @@ $columns = array(get_lang('Name'), get_lang('Users'), get_lang('Actions'));
//Column config
$column_model = array(
array('name'=>'name', 'index'=>'name', 'width'=>'35', 'align'=>'left'),
array('name'=>'users', 'index'=>'users', 'width'=>'15', 'align'=>'left'),
array('name'=>'name', 'index'=>'name', 'width'=>'35', 'align'=>'left'),
array('name'=>'users', 'index'=>'users', 'width'=>'15', 'align'=>'left'),
array('name'=>'actions', 'index'=>'actions', 'width'=>'20', 'align'=>'left','sortable'=>'false'),
);
//Autowidth
@ -83,7 +81,7 @@ $extra_params['height'] = 'auto';
//With this function we can add actions to the jgrid
$action_links = 'function action_formatter (cellvalue, options, rowObject) {
return \''
.' <a href="class.php?action=add_class&id=\'+options.rowId+\'"><img src="../img/icons/22/user_to_class.png" title="'.get_lang('SubscribeUsersToClass').'"></a>'
.' <a href="class.php?action=add_class&id=\'+options.rowId+\'"><img src="../img/icons/22/user_to_class.png" title="'.get_lang('SubscribeUsersToClass').'"></a>'
.' <a onclick="javascript:if(!confirm('."\'".addslashes(api_htmlentities(get_lang("ConfirmYourChoice"),ENT_QUOTES))."\'".')) return false;" href="?action=delete&id=\'+options.rowId+\'"><img title="'.get_lang('Delete').'" src="../img/delete.png"></a>\';
}';
?>
@ -97,4 +95,4 @@ $(function() {
</script>
<?php
$usergroup->display_teacher_view();
Display :: display_footer();
Display :: display_footer();

Loading…
Cancel
Save