Show index.php syntax highlighted
<?php // $Id: index.php 480 2006-10-10 08:42:12Z evie_em $
/*
==============================================================================
Dokeos - elearning and course management software
Copyright (c) 2004 Dokeos S.A.
Copyright (c) 2003 University of Ghent (UGent)
Copyright (c) 2001 Universite catholique de Louvain (UCL)
Copyright (c) Olivier Brouckaert
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: Dokeos, 181 rue Royale, B-1000 Brussels, Belgium, info@dokeos.com
==============================================================================
*/
/**
==============================================================================
* Index of the admin tools
*
* @package dokeos.admin
==============================================================================
*/
$langFile='admin';
$cidReset=true;
include('../inc/claro_init_global.inc.php');
api_protect_admin_script();
$tool_name=get_lang("AdministrationTools");
Display::display_header($tool_name);
api_display_tool_title($tool_name);
/*
==============================================================================
FUNCTIONS
==============================================================================
*/
function display_official_curriculum_section()
{
?>
<div class="admin_section">
<h4>
<img src="../img/dokeos.gif" border="0" align="absmiddle" alt="" />
<?php echo get_lang("PointcarreCurriculumAdministration"); ?>
</h4>
<ul>
<li><a href="manage_official_teachers.php"><?php echo get_lang('ManageTeachersOfficialCurriculum'); ?></a></li>
<li><a href="manage_special_options.php"><?php echo get_lang('ManageSpecialCasesOfficialCurriculum'); ?></a></li>
<li><a href="official_update_titles_teachers.php"><?php echo get_lang('UpdateCourseTitlesAndTeachers'); ?></a></li>
<li><a href="veco_manage_official_data.php"><?php echo get_lang('ManageVesaliusData'); ?></a></li>
<li><a href="manage_official_students.php"><?php echo get_lang('ManageStudentsOfficialCurriculum'); ?></a></li>
<li><a href="manage_official_personnel.php"><?php echo get_lang('ManageOfficialPersonnel'); ?></a></li>
<li><a href="manage_official_classes.php"><?php echo get_lang('ManageOfficialClasses'); ?></a></li>
<li><a href="manage_course_tools.php"><?php echo get_lang('ManageCourseTools'); ?></a></li>
<li><a href="manage_official_communities.php"><?php echo get_lang('ManageOfficialCommunities'); ?></a></li>
</ul>
</div>
<?php
}
function display_reservation_section()
{
?>
<div class="admin_section">
<h4><img src="../img/settings.gif" border="0" style="vertical-align: middle;" alt="" /> <?php echo ucfirst(get_lang('langAdminReservation')); ?></h4>
<ul>
<li><a href="../reservation/m_category.php"><?php echo get_lang('langAdminRcategories'); ?></a></li>
</ul>
</div>
<?php
}
/*
==============================================================================
MAIN SECTION
==============================================================================
*/
?>
<div class="admin_section">
<h4><img src="../img/membres.gif" border="0" align="absmiddle" alt="" /> <?php echo ucfirst(get_lang('Users')); ?></h4>
<ul><li><form method="get" action="user_list.php">
<input type="text" name="keyword" value="<?php echo $_GET['keyword']; ?>"/>
<input type="submit" value="<?php echo get_lang('Search'); ?>"/>
<a href="user_list.php?search=advanced"><?php echo get_lang('AdvancedSearch'); ?></a>
</form>
</li>
<li><a href="user_list.php"><?php echo get_lang('UserList') ?></a></li>
<li><a href="user_add.php"><?php echo get_lang('AddUsers') ?></a></li>
<li><a href="user_export.php"><?php echo get_lang('ExportUserListXMLCSV') ?></a></li>
<li><a href="user_import.php"><?php echo get_lang('ImportUserListXMLCSV') ?></a></li>
</ul>
</div>
<div class="admin_section">
<h4><img src="../img/course.gif" border="0" align="absmiddle" alt="" /> <?php echo ucfirst(get_lang('Courses')); ?></h4>
<ul><li><form method="get" action="course_list.php">
<input type="text" name="keyword" value="<?php echo $_GET['keyword']; ?>"/>
<input type="submit" value="<?php echo get_lang('Search'); ?>"/>
<a href="course_list.php?search=advanced"><?php echo get_lang('AdvancedSearch'); ?></a>
</form>
</li>
<li><a href="course_list.php"><?php echo get_lang('CourseList') ?></a></li>
<li><a href="course_add.php"><?php echo get_lang('AddCourse') ?></a></li>
<li><a href="course_virtual.php"><?php echo get_lang('AdminManageVirtualCourses') ?></a></li>
<li><a href="course_category.php"><?php echo get_lang("AdminCategories"); ?></a></li>
<li><a href="subscribe_class2course.php"><?php echo get_lang('AddClassesToACourse'); ?></a></li>
<li><a href="subscribe_user2course.php"><?php echo get_lang('AddUsersToACourse'); ?></a></li>
</ul>
</div>
<div class="admin_section">
<h4><img src="../img/group.gif" border="0" align="absmiddle" alt="" /> <?php echo ucfirst(get_lang('AdminClasses')); ?></h4>
<ul>
<li><form method="get" action="class_list.php">
<input type="text" name="keyword" value="<?php echo $_GET['keyword']; ?>"/>
<input type="submit" value="<?php echo get_lang('Search'); ?>"/>
</form>
</li>
<li><a href="class_list.php"><?php echo get_lang('ClassList') ?></a></li>
<li><a href="class_add.php"><?php echo get_lang('AddClasses') ?></a></li>
</ul>
</div>
<div class="admin_section">
<h4>
<img src="../img/settings.gif" border="0" align="absmiddle" alt="" />
<?php echo ucfirst(get_lang('Platform')); ?>
</h4>
<ul>
<li><a href="settings.php"><?php echo get_lang('DokeosConfigSettings') ?></a></li>
<li><a href="system_announcements.php"><?php echo get_lang('SystemAnnouncements') ?></a></li>
<li><a href="languages.php"><?php echo get_lang('Languages'); ?></a></li>
<li><a href="configure_homepage.php"><?php echo get_lang('ConfigureHomePage'); ?></a></li>
<?php if(!empty($phpMyAdminPath)): ?>
<li><a href="<?php echo $phpMyAdminPath; ?>" target="_blank"><?php echo get_lang("AdminDatabases"); ?></a> <font color="gray"><br>(<?php echo get_lang("DBManagementOnlyForServerAdmin"); ?>)</font></li>
<?php endif; ?>
</ul>
</div>
<div style="clear:both"></div>
<div class="admin_section">
<h4>
<img src="../img/dokeos.gif" border="0" align="absmiddle" alt="" />
<?php echo "dokeos.com"; ?>
</h4>
<ul>
<li><a href="http://www.dokeos.com/"><?php echo get_lang('DokeosHomepage'); ?></a></li>
<li><a href="http://www.dokeos.com/forum/"><?php echo get_lang('DokeosForum'); ?></a></li>
<li><a href="http://www.dokeos.com/community_add_portal.php?url=<?php echo $rootWeb; ?>&name=<?php echo get_setting('siteName');?>&organisation=<?php echo get_setting('InstitutionUrl');?>&manager=<?php echo get_setting('administratorSurname')." ".get_setting('administratorName');?>&manageremail=<?php echo get_setting('emailAdministrator');?>"><?php echo get_lang('RegisterYourPortal'); ?></a></li>
<li><a href="http://www.dokeos.com/extensions/"><?php echo get_lang('DokeosExtensions'); ?></a></li>
</ul>
</div>
<?php
if (api_get_setting("officialcurriculum") == "true")
{
display_official_curriculum_section();
}
display_reservation_section();
/*
==============================================================================
FOOTER
==============================================================================
*/
Display::display_footer();
?>
See more files for this project here