Feature #2099 - Action bars and icons have been added.

skala
Ivan Tcholakov 15 years ago
parent a701d0993f
commit dcabc17664
  1. 8
      main/admin/course_request_accepted.php
  2. 6
      main/admin/course_request_rejected.php
  3. 6
      main/admin/course_request_review.php
  4. 9
      main/admin/index.php
  5. BIN
      main/img/action_accept.gif
  6. BIN
      main/img/action_reject.gif
  7. BIN
      main/img/course_request_accepted.gif
  8. BIN
      main/img/course_request_pending.png
  9. BIN
      main/img/course_request_rejected.gif
  10. 2
      main/lang/english/admin.inc.php

@ -88,9 +88,15 @@ Display :: display_header($tool_name);
//api_display_tool_title($tool_name);
if (isset ($_GET['delete_course'])) {
CourseManager :: delete_course($_GET['delete_course']);
//CourseManager :: delete_course($_GET['delete_course']);
}
// The action bar.
echo '<div class="actions">';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'admin/course_request_review.php">'.Display::return_icon('course_request_pending.png', get_lang('ReviewCourseRequests')).get_lang('ReviewCourseRequests').'</a>';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'admin/course_request_rejected.php">'.Display::return_icon('course_request_rejected.gif', get_lang('RejectedCourseRequests')).get_lang('RejectedCourseRequests').'</a>';
echo '</div>';
// Create a sortable table with the course data
$table = new SortableTable('courses', 'get_number_of_courses', 'get_course_data', 2);
$table->set_additional_parameters($parameters);

@ -119,6 +119,12 @@ if (isset($_GET['delete_course'])) {
CourseManager :: delete_course($_GET['delete_course']);
}
// The action bar.
echo '<div class="actions">';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'admin/course_request_review.php">'.Display::return_icon('course_request_pending.png', get_lang('ReviewCourseRequests')).get_lang('ReviewCourseRequests').'</a>';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'admin/course_request_accepted.php">'.Display::return_icon('course_request_accepted.gif', get_lang('AcceptedCourseRequests')).get_lang('AcceptedCourseRequests').'</a>';
echo '</div>';
// Create a sortable table with the course data
$table = new SortableTable('courses', 'get_number_of_courses', 'get_course_data', 2);
$table->set_additional_parameters($parameters);

@ -175,6 +175,12 @@ if (isset ($_GET['delete_course'])) {
//CourseManager :: delete_course($_GET['delete_course']);
}
// The action bar.
echo '<div class="actions">';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'admin/course_request_accepted.php">'.Display::return_icon('course_request_accepted.gif', get_lang('AcceptedCourseRequests')).get_lang('AcceptedCourseRequests').'</a>';
echo '<a href="'.api_get_path(WEB_CODE_PATH).'admin/course_request_rejected.php">'.Display::return_icon('course_request_rejected.gif', get_lang('RejectedCourseRequests')).get_lang('RejectedCourseRequests').'</a>';
echo '</div>';
// Create a sortable table with the course data
$table = new SortableTable('courses', 'get_number_of_courses', 'get_course_data', 2);
$table->set_additional_parameters($parameters);

@ -105,6 +105,10 @@ if (api_is_platform_admin()) { ?>
<li><a href="course_list.php"><?php echo get_lang('CourseList'); ?></a></li>
<?php if (api_get_setting('course_validation') != 'true') { ?>
<li><a href="course_add.php"><?php echo get_lang('AddCourse'); ?></a></li>
<?php } else { ?>
<li><a href="course_request_review.php"><?php echo get_lang('ReviewCourseRequests'); ?></a></li>
<li><a href="course_request_accepted.php"><?php echo get_lang('AcceptedCourseRequests'); ?></a></li>
<li><a href="course_request_rejected.php"><?php echo get_lang('RejectedCourseRequests'); ?></a></li>
<?php } ?>
<li><a href="course_export.php"><?php echo get_lang('ExportCourses'); ?></a></li>
<li><a href="course_import.php"><?php echo get_lang('ImportCourses'); ?></a></li>
@ -112,11 +116,6 @@ if (api_is_platform_admin()) { ?>
<li><a href="course_category.php"><?php echo get_lang('AdminCategories'); ?></a></li>
<li><a href="subscribe_user2course.php"><?php echo get_lang('AddUsersToACourse'); ?></a></li>
<li><a href="course_user_import.php"><?php echo get_lang('ImportUsersToACourse'); ?></a></li>
<?php if (api_get_setting('course_validation') == 'true') { ?>
<li><a href="course_request_rejected.php"><?php echo get_lang('RejectedCourseRequests'); ?></a></li>
<li><a href="course_request_accepted.php"><?php echo get_lang('AcceptedCourseRequests'); ?></a></li>
<li><a href="course_request_review.php"><?php echo get_lang('ReviewCourseRequests'); ?></a></li>
<?php } ?>
<?php if (api_get_setting('search_enabled') == 'true') { ?>
<li><a href="specific_fields.php"><?php echo get_lang('SpecificSearchFields'); ?></a></li>
<?php }

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

@ -1271,7 +1271,7 @@ $MyTextHere = "Enter your text here...";
$FieldTypeSocialProfile = "Social network link";
$AllowUsersCopyFilesTitle = "Allow users to copy files from a course in your personal file area";
$AllowUsersCopyFilesComment = "Allows users to copy files from a course in your personal file area, visible through the Social Network or through the HTML editor when they are out of a course";
$ReviewCourseRequests = "Review training requests";
$ReviewCourseRequests = "Review incoming training requests";
$AcceptedCourseRequests = "Accepted training requests";
$RejectedCourseRequests = "Rejected training requests";
?>
Loading…
Cancel
Save