当前位置: 首页>>代码示例>>PHP>>正文


PHP Display::page_header方法代码示例

本文整理汇总了PHP中Display::page_header方法的典型用法代码示例。如果您正苦于以下问题:PHP Display::page_header方法的具体用法?PHP Display::page_header怎么用?PHP Display::page_header使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Display的用法示例。


在下文中一共展示了Display::page_header方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: intval

                $nbr_affected_rows = Database::affected_rows($result);
                Database::query("UPDATE {$tbl_session} SET nbr_users=nbr_users-{$nbr_affected_rows} WHERE id='{$id_session}'");
                $result = Database::query("DELETE FROM {$tbl_session_rel_course_rel_user} WHERE session_id ='{$id_session}' AND user_id=" . intval($_GET['user']));
                $nbr_affected_rows = Database::affected_rows($result);
                Database::query("UPDATE {$tbl_session_rel_course} SET nbr_users=nbr_users-{$nbr_affected_rows} WHERE session_id ='{$id_session}'");
            }
            break;
    }
    Display::display_header($tool_name);
    if (!empty($_GET['warn'])) {
        Display::display_warning_message(urldecode($_GET['warn']));
    }
    if (!empty($message)) {
        echo $message;
    }
    echo Display::page_header(Display::return_icon('session.png', get_lang('Session')) . ' ' . $session['name']);
    echo Display::page_subheader(get_lang('GeneralProperties') . $url);
    ?>
    <!-- General properties -->
    <table class="data_table">
    <tr>
    	<td><?php 
    echo get_lang('GeneralCoach');
    ?>
 :</td>
    	<td><?php 
    echo api_get_person_name($session['firstname'], $session['lastname']) . ' (' . $session['username'] . ')';
    ?>
</td>
    </tr>
    <?php 
开发者ID:secuencia24,项目名称:chamilo-lms,代码行数:31,代码来源:resume_session.php

示例2: api_block_anonymous_users

/* For licensing terms, see /license.txt */
/**
 * Script
 * @package chamilo.gradebook
 */
//$cidReset = true;
require_once '../inc/global.inc.php';
api_block_anonymous_users();
GradebookUtils::block_students();
$interbreadcrumb[] = array('url' => $_SESSION['gradebook_dest'] . '?', 'name' => get_lang('Gradebook'));
$interbreadcrumb[] = array('url' => $_SESSION['gradebook_dest'] . '?selectcat=' . Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('Details'));
$interbreadcrumb[] = array('url' => 'gradebook_showlog_eval.php?visiblelog=' . Security::remove_XSS($_GET['visiblelog']) . '&amp;selectcat=' . Security::remove_XSS($_GET['selectcat']), 'name' => get_lang('GradebookQualifyLog'));
$this_section = SECTION_COURSES;
Display::display_header('');
echo Display::page_header(get_lang('GradebookQualifyLog'));
$t_linkeval_log = Database::get_main_table(TABLE_MAIN_GRADEBOOK_LINKEVAL_LOG);
$t_user = Database::get_main_table(TABLE_MAIN_USER);
$visible_log = Security::remove_XSS($_GET['visiblelog']);
$evaledit = Evaluation::load($visible_log);
$sql = "SELECT le.name,le.description,le.weight,le.visible,le.type,le.created_at,us.username FROM " . $t_linkeval_log . " le INNER JOIN " . $t_user . " us\n      ON le.user_id_log=us.user_id where id_linkeval_log=" . $evaledit[0]->get_id() . " and type='evaluation';";
$result = Database::query($sql);
$list_info = array();
while ($row = Database::fetch_row($result)) {
    $list_info[] = $row;
}
foreach ($list_info as $key => $info_log) {
    $list_info[$key][5] = $info_log[5] ? api_convert_and_format_date($info_log[5]) : 'N/A';
    $list_info[$key][3] = $info_log[3] == 1 ? get_lang('GradebookVisible') : get_lang('GradebookInvisible');
}
$parameters = array('visiblelog' => $visible_log, 'selectcat' => intval($_GET['selectcat']));
开发者ID:KRCM13,项目名称:chamilo-lms,代码行数:30,代码来源:gradebook_showlog_eval.php

示例3: api_protect_course_script

$this_section = SECTION_COURSES;
$current_course_tool = TOOL_COURSE_MAINTENANCE;
api_protect_course_script(true);
$_course = api_get_course_info();
$current_course_code = $_course['official_code'];
$current_course_name = $_course['name'];
if (!api_is_allowed_to_edit()) {
    api_not_allowed(true);
}
$tool_name = get_lang('DelCourse');
if (isset($_GET['delete']) && $_GET['delete'] == 'yes') {
    CourseManager::delete_course($_course['sysCode']);
    $obj_cat = new Category();
    $obj_cat->update_category_delete($_course['sysCode']);
    // DELETE CONFIRMATION MESSAGE
    Session::erase('_cid');
    Session::erase('_real_cid');
    $noPHP_SELF = true;
    $message = '<h2>' . get_lang('Course') . ' : ' . $current_course_name . ' (' . $current_course_code . ') </h2>';
    $message .= get_lang('HasDel');
    $message .= '<br /><br /><a href="../../index.php">' . get_lang('BackHome') . ' ' . api_get_setting('platform.site_name') . '</a>';
} else {
    $message = '<h3>' . get_lang('Course') . ' : ' . $current_course_name . ' (' . $current_course_code . ') </h3>';
    $message .= '<p>' . get_lang('ByDel') . '</p>';
    $message .= '<p><a class="btn btn-primary" href="' . api_get_path(WEB_CODE_PATH) . 'course_info/maintenance.php?' . api_get_cidreq() . '">' . get_lang('No') . '</a>&nbsp;<a class="btn" href="' . api_get_self() . '?delete=yes&' . api_get_cidreq() . '">' . get_lang('Yes') . '</a></p>';
    $interbreadcrumb[] = array('url' => 'maintenance.php', 'name' => get_lang('Maintenance'));
}
Display::display_header($tool_name, 'Settings');
echo Display::page_header($tool_name);
Display::display_warning_message($message, false);
Display::display_footer();
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:31,代码来源:delete_course.php

示例4: get_lang

    }
    $table->set_header(3, get_lang('Email'), true);
    $table->set_header(4, get_lang('Status'), true);
    $table->set_header(5, '', false);
    $table->display();
} else {
    echo get_lang('NoUsersInCourse');
}
$session_list = SessionManager::get_session_by_course($course->code);
$url = api_get_path(WEB_CODE_PATH);
if (!empty($session_list)) {
    foreach ($session_list as &$session) {
        $session[0] = Display::url($session[0], $url . 'admin/resume_session.php?id_session=' . $session['id']);
        unset($session[1]);
    }
    echo Display::page_header(get_lang('Sessions'));
    $table = new SortableTableFromArray($session_list, 0, 20, 'user_table');
    $table->display();
}
/*$group = new UserGroup();
$usegroups = $group->get_usergroup_by_course($course->id);*/
/*@todo This should be dissapear classes are a deprecated feature*/
/*
//Show all classes subscribed in this course

$table_course_class = Database :: get_main_table(TABLE_MAIN_COURSE_CLASS);
$table_class 		= Database :: get_main_table(TABLE_MAIN_CLASS);
$sql = "SELECT * FROM $table_course_class cc, $table_class c WHERE cc.class_id = c.id AND cc.course_code = '".$code."'";
$res = Database::query($sql);
if (Database::num_rows($res) > 0) {
	$data = array ();
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:31,代码来源:course_information.php

示例5: get_lang

    }
}
// Display header
Display::display_header($tool_name);
// actions
if ($userStatus != STUDENT_BOSS) {
    $actionsLeft = Display::url(Display::return_icon('course-add.png', get_lang('AssignCourses'), null, ICON_SIZE_MEDIUM), "dashboard_add_courses_to_user.php?user={$user_id}");
    $actionsLeft .= Display::url(Display::return_icon('session-add.png', get_lang('AssignSessions'), null, ICON_SIZE_MEDIUM), "dashboard_add_sessions_to_user.php?user={$user_id}");
}
$actionsRight = Display::url('<em class="fa fa-search"></em> ' . get_lang('AdvancedSearch'), '#', array('class' => 'btn btn-default advanced_options', 'id' => 'advanced_search'));
$toolbar = Display::toolbarAction('toolbar-dashboard', $content = array(0 => $actionsLeft, 1 => $actionsRight));
echo $toolbar;
echo '<div id="advanced_search_options" style="display:none">';
$searchForm->display();
echo '</div>';
echo Display::page_header(sprintf(get_lang('AssignUsersToX'), api_get_person_name($user_info['firstname'], $user_info['lastname'])), null, $size = 'h3');
$assigned_users_to_hrm = array();
switch ($userStatus) {
    case DRH:
        //no break;
    //no break;
    case PLATFORM_ADMIN:
        $assigned_users_to_hrm = UserManager::get_users_followed_by_drh($user_id);
        break;
    case STUDENT_BOSS:
        $assigned_users_to_hrm = UserManager::getUsersFollowedByStudentBoss($user_id);
        break;
}
$assigned_users_id = array_keys($assigned_users_to_hrm);
$without_assigned_users = '';
if (count($assigned_users_id) > 0) {
开发者ID:omaoibrahim,项目名称:chamilo-lms,代码行数:31,代码来源:dashboard_add_users_to_user.php

示例6: action_formatter

$extra_params['height'] = 'auto';
//With this function we can add actions to the jgrid (edit, delete, etc)
$action_links = 'function action_formatter(cellvalue, options, rowObject) {
         return \'<a href="?action=edit&' . $params . '&id=\'+options.rowId+\'">' . Display::return_icon('edit.png', get_lang('Edit'), '', ICON_SIZE_SMALL) . '</a>' . '&nbsp;<a onclick="javascript:if(!confirm(' . "\\'" . addslashes(get_lang("ConfirmYourChoice")) . "\\'" . ')) return false;"  href="?sec_token=' . $token . '&action=delete&' . $params . '&id=\'+options.rowId+\'">' . Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL) . '</a>' . '\';
 }';
$htmlHeadXtra[] = '
<script>
$(function() {
    // grid definition see the $obj->display() function
    ' . Display::grid_js('extra_field_options', $url, $columns, $column_model, $extra_params, array(), $action_links, true) . '

});
</script>';
// The header.
Display::display_header($tool_name);
echo Display::page_header($extra_field_info['field_display_text']);
$obj = new ExtraFieldOption($extra_field->type);
$obj->field_id = $field_id;
// Action handling: Add
switch ($action) {
    case 'add':
        if (api_get_session_id() != 0 && !api_is_allowed_to_session_edit(false, true)) {
            api_not_allowed();
        }
        $url = api_get_self() . '?action=' . Security::remove_XSS($_GET['action']) . '&' . $params;
        $form = $obj->return_form($url, 'add');
        // The validation or display
        if ($form->validate()) {
            if ($check) {
                $values = $form->exportValues();
                $res = $obj->save_one_item($values);
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:31,代码来源:extra_field_options.php

示例7: show_exercise_result_header

 /**
  * @param array $user_data result of api_get_user_info()
  * @param null $start_date
  * @param null $duration
  * @param string $ip Optional. The user IP
  * @return string
  */
 public function show_exercise_result_header($user_data, $start_date = null, $duration = null, $ip = null)
 {
     $array = array();
     if (!empty($user_data)) {
         $array[] = array('title' => get_lang('Name'), 'content' => $user_data['complete_name']);
         $array[] = array('title' => get_lang('Username'), 'content' => $user_data['username']);
         if (!empty($user_data['official_code'])) {
             $array[] = array('title' => get_lang('OfficialCode'), 'content' => $user_data['official_code']);
         }
     }
     // Description can be very long and is generally meant to explain
     //   rules *before* the exam. Leaving here to make display easier if
     //   necessary
     /*
     if (!empty($this->description)) {
         $array[] = array('title' => get_lang("Description"), 'content' => $this->description);
     }
     */
     if (!empty($start_date)) {
         $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
     }
     if (!empty($duration)) {
         $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
     }
     if (!empty($ip)) {
         $array[] = array('title' => get_lang('IP'), 'content' => $ip);
     }
     $html = '<div class="question-result">';
     $html .= Display::page_header(Display::return_icon('test-quiz.png', get_lang('Result'), null, ICON_SIZE_MEDIUM) . ' ' . $this->exercise . ' : ' . get_lang('Result'));
     $html .= Display::description($array);
     $html .= "</div>";
     return $html;
 }
开发者ID:omaoibrahim,项目名称:chamilo-lms,代码行数:40,代码来源:exercise.class.php

示例8: foreach

    foreach ($group_cats as $index => $category) {
        $categoryId = $category['id'];
        $group_list = GroupManager::get_group_list($categoryId);
        $groupToShow = GroupManager::process_groups($group_list, $categoryId);
        if (empty($groupToShow)) {
            continue;
        }
        $label = Display::label(count($group_list) . ' ' . get_lang('ExistingGroups'), 'info');
        $actions = null;
        if (api_is_allowed_to_edit(false, true) && !empty($categoryId)) {
            $actions .= '<a href="group_category.php?' . api_get_cidreq() . '&id=' . $categoryId . '" title="' . get_lang('Edit') . '">' . Display::return_icon('edit.png', get_lang('EditGroup'), '', ICON_SIZE_SMALL) . '</a>';
            $actions .= Display::url(Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL), 'group.php?' . api_get_cidreq() . '&action=delete_category&id=' . $categoryId, array('onclick' => 'javascript:if(!confirm(' . "'" . addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES)) . "'" . ')) return false;'));
            if ($index != 0) {
                $actions .= ' <a href="group.php?' . api_get_cidreq() . '&action=swap_cat_order&id1=' . $categoryId . '&id2=' . $group_cats[$index - 1]['id'] . '">' . Display::return_icon('up.png', '&nbsp;', '', ICON_SIZE_SMALL) . '</a>';
            }
            if ($index != count($group_cats) - 1) {
                $actions .= ' <a href="group.php?' . api_get_cidreq() . '&action=swap_cat_order&id1=' . $categoryId . '&id2=' . $group_cats[$index + 1]['id'] . '">' . Display::return_icon('down.png', '&nbsp;', '', ICON_SIZE_SMALL) . '</a>';
            }
        }
        echo Display::page_header(Security::remove_XSS($category['title'] . ' ' . $label . ' ') . $actions, null, 'h4', false);
        echo $category['description'];
        echo $groupToShow;
    }
} else {
    $group_list = GroupManager::get_group_list();
    echo GroupManager::process_groups($group_list);
}
if (!isset($_GET['origin']) || $_GET['origin'] != 'learnpath') {
    Display::display_footer();
}
Session::write('_gid', 0);
开发者ID:omaoibrahim,项目名称:chamilo-lms,代码行数:31,代码来源:group.php

示例9: api_get_course_info

                // forcing the escape_string
                $courseInfo = api_get_course_info($courseCode);
                SessionManager::unsubscribe_course_from_session($sessionId, $courseInfo['real_id']);
            }
        }
        if (!empty($_GET['class'])) {
            $result = Database::query("DELETE FROM {$tbl_session_rel_class}\n                             WHERE session_id='{$sessionId}' AND class_id=" . intval($_GET['class']));
            $nbr_affected_rows = Database::affected_rows($result);
            Database::query("UPDATE {$tbl_session} SET nbr_classes=nbr_classes-{$nbr_affected_rows} WHERE id='{$sessionId}'");
        }
        if (!empty($_GET['user'])) {
            SessionManager::unsubscribe_user_from_session($sessionId, $_GET['user']);
        }
        break;
}
$sessionHeader = Display::page_header(Display::return_icon('session.png', get_lang('Session')) . ' ' . $sessionInfo['name'], null, 'h3');
$url = Display::url(Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL), "session_edit.php?page=resume_session.php&id={$sessionId}");
$sessionTitle = Display::page_subheader(get_lang('GeneralProperties') . $url);
$generalCoach = api_get_user_info($sessionInfo['id_coach']);
$sessionField = new ExtraField('session');
$extraFieldData = $sessionField->getDataAndFormattedValues($sessionId);
$multiple_url_is_on = api_get_multiple_access_url();
$urlList = [];
if ($multiple_url_is_on) {
    $urlList = UrlManager::get_access_url_from_session($sessionId);
}
$url = Display::url(Display::return_icon('edit.png', get_lang('Edit'), array(), ICON_SIZE_SMALL), "add_courses_to_session.php?page=resume_session.php&id_session={$sessionId}");
$courseListToShow = Display::page_subheader(get_lang('CourseList') . $url);
$courseListToShow .= '<table id="session-list-course" class="data_table">
<tr>
  <th width="35%">' . get_lang('CourseTitle') . '</th>
开发者ID:jloguercio,项目名称:chamilo-lms,代码行数:31,代码来源:resume_session.php

示例10: array

$htmlHeadXtra[] = '
  <script>
  $(function() {
    $( ".datepicker" ).datepicker();
  });
  </script>

	';
//Changes END
$interbreadcrumb[] = array('url' => '#', 'name' => get_lang('AccessDetails'));
Display::display_header('');
$main_user_info = api_get_user_info($user_id);
$result_to_print = '';
$sql_result = MySpace::get_connections_to_course($user_id, $course_code);
$result_to_print = convert_to_string($sql_result);
echo Display::page_header(get_lang('DetailsStudentInCourse'));
echo Display::page_subheader(get_lang('User') . ': ' . api_get_person_name($main_user_info['firstName'], $main_user_info['lastName']) . ' - ' . get_lang('Course') . ': ' . $course_code);
?>


    <div>
    <table width="300">
    	<FORM name="formulario" action="javascript:path()">
       		<tr height="2%">
                <!-- td height="2%" align = "right"><span class="Filtro">De:</span></td>
            	<td height="2%" align="center"><INPUT hidden TYPE="text" NAME="date1" class = "datepicker" id="fecha_1" /><br /></td -->
            	<td height="2%" align="center"><INPUT hidden TYPE="hidden" NAME="date1" class = "datepicker" id="fecha_1" /><br /></td>
				</tr>
            <tr height="2%">
            	<!-- td height="2%" align = "right"><span class="Filtro">Hasta:</span></td>
            	<td height="2%" align="center"><INPUT hidden TYPE="text" NAME="date2" class = "datepicker" id="fecha_2" /></td -->
开发者ID:axomar,项目名称:ITS,代码行数:31,代码来源:statistics_details.php

示例11: foreach

}
$group_cats = GroupManager::get_categories(api_get_course_id());
echo '</div>';
/*  List all categories */
if (api_get_setting('allow_group_categories') == 'true') {
    foreach ($group_cats as $index => $category) {
        $group_list = GroupManager::get_group_list($category['id']);
        $label = Display::label(count($group_list) . ' ' . get_lang('ExistingGroups'), 'info');
        $actions = null;
        if (api_is_allowed_to_edit(false, true)) {
            $actions .= '<a href="group_category.php?' . api_get_cidreq() . '&id=' . $category['id'] . '" title="' . get_lang('Edit') . '">' . Display::return_icon('edit.png', get_lang('EditGroup'), '', ICON_SIZE_SMALL) . '</a>';
            $actions .= '<a href="group.php?' . api_get_cidreq() . '&action=delete_category&amp;id=' . $category['id'] . '" onclick="javascript:if(!confirm(' . "'" . addslashes(api_htmlentities(get_lang('ConfirmYourChoice'), ENT_QUOTES)) . "'" . ')) return false;" title="' . get_lang('Delete') . '">' . Display::return_icon('delete.png', get_lang('Delete'), '', ICON_SIZE_SMALL) . '</a>';
            if ($index != 0) {
                $actions .= ' <a href="group.php?' . api_get_cidreq() . '&action=swap_cat_order&amp;id1=' . $category['id'] . '&amp;id2=' . $group_cats[$index - 1]['id'] . '">' . Display::return_icon('up.png', '&nbsp;', '', ICON_SIZE_SMALL) . '</a>';
            }
            if ($index != count($group_cats) - 1) {
                $actions .= ' <a href="group.php?' . api_get_cidreq() . '&action=swap_cat_order&amp;id1=' . $category['id'] . '&amp;id2=' . $group_cats[$index + 1]['id'] . '">' . Display::return_icon('down.png', '&nbsp;', '', ICON_SIZE_SMALL) . '</a>';
            }
        }
        echo Display::page_header($category['title'] . ' ' . $label . ' ' . $actions);
        echo '<p style="margin: 0px;margin-left: 50px;">' . $category['description'] . '</p><p/>';
        GroupManager::process_groups($group_list, $category['id']);
    }
} else {
    $group_list = GroupManager::get_group_list();
    GroupManager::process_groups($group_list);
}
if (!isset($_GET['origin']) || $_GET['origin'] != 'learnpath') {
    Display::display_footer();
}
$_SESSION['_gid'] = 0;
开发者ID:ilosada,项目名称:chamilo-lms-icpna,代码行数:31,代码来源:group.php

示例12: function

    $().ready( function() {
        $(".select_all").on("click", function() {
            $("#workflow :checkbox").prop("checked", 1);
            $("#workflow :hidden").prop("value", 1);
            return false;
        });
        $(".unselect_all").on("click", function() {
            $("#workflow :checkbox").prop("checked", 0);
            $("#workflow :hidden").prop("value", 0);
            return false;
        });
    });
</script>';
// The header.
Display::display_header($tool_name);
echo Display::page_header($extraFieldInfo['display_text']);
$obj = new ExtraFieldOption($type);
$columns = array('display_text', 'option_value', 'option_order');
$result = Database::select('*', $obj->table, array('where' => array("field_id = ? " => $field_id), 'order' => "option_order ASC"));
$table = new HTML_Table(array('class' => 'data_table'));
$column = 0;
$row = 0;
$table->setHeaderContents($row, $column, get_lang('CurrentStatus'));
$column++;
foreach ($result as $item) {
    $table->setHeaderContents($row, $column, $item['option_display_text']);
    $column++;
}
$row++;
$form = new FormValidator('workflow', 'post', api_get_self() . '?' . $params);
$options = api_get_user_roles();
开发者ID:jloguercio,项目名称:chamilo-lms,代码行数:31,代码来源:extra_field_workflow.php

示例13: array

        $("#cev_button").hide();
        $("#container-9").tabs({remote: true});
});
</script>';*/
$htmlHeadXtra[] = '
  <script>
  $(function() {
    $( ".datepicker" ).datepicker();
  });
  </script>

	';
//Changes END
$interbreadcrumb[] = array('url' => '#', 'name' => get_lang('AccessDetails'));
Display::display_header('');
echo Display::page_header('Desempeño Curso');
echo Display::page_subheader('Estadisticas generales');
?>
    <div>
    <table width="300">
    	<FORM name="formulario" action="javascript:path()">
       		<tr height="2%">
                <!-- td height="2%" align = "right"><span class="Filtro">De:</span></td>
            	<td height="2%" align="center"><INPUT TYPE="text" NAME="date1" class = "datepicker" id="fecha_1" /><br /></td -->
				<td height="2%" align="center"><INPUT TYPE="hidden" NAME="date1" class = "datepicker" id="fecha_1" /><br /></td>
            </tr>
            <tr height="2%">
            	<!-- td height="2%" align = "right"><span class="Filtro">Hasta:</span></td>
            	<td height="2%" align="center"><INPUT TYPE="text" NAME="date2" class = "datepicker" id="fecha_2" /></td -->
				<td height="2%" align="center"><INPUT TYPE="hidden" NAME="date2" class = "datepicker" id="fecha_2" /></td>
            </tr>
开发者ID:axomar,项目名称:ITS,代码行数:31,代码来源:statistics_details_group.php

示例14: api_not_allowed

if (!api_is_allowed_to_edit()) {
    api_not_allowed(true);
}
// Remove memory and time limits as much as possible as this might be a long process...
if (function_exists('ini_set')) {
    api_set_memory_limit('256M');
    ini_set('max_execution_time', 1800);
    //ini_set('post_max_size', "512M");
}
// Breadcrumbs
$interbreadcrumb[] = array('url' => '../course_info/maintenance.php', 'name' => get_lang('Maintenance'));
// The section (for the tabs)
$this_section = SECTION_COURSES;
// Display the header
Display::display_header(get_lang('CopyCourse'));
echo Display::page_header(get_lang('CopyCourse'));
/*	MAIN CODE */
// If a CourseSelectForm is posted or we should copy all resources, then copy them
if (isset($_POST['action']) && $_POST['action'] == 'course_select_form' || isset($_POST['copy_option']) && $_POST['copy_option'] == 'full_copy') {
    if (isset($_POST['action']) && $_POST['action'] == 'course_select_form') {
        $course = CourseSelectForm::get_posted_course('copy_course');
    } else {
        $cb = new CourseBuilder();
        $course = $cb->build();
    }
    $cr = new CourseRestorer($course);
    $cr->set_file_option($_POST['same_file_name_option']);
    $cr->restore($_POST['destination_course']);
    Display::display_normal_message(get_lang('CopyFinished') . ': <a href="' . api_get_course_url($_POST['destination_course']) . '">' . $_POST['destination_course'] . '</a>', false);
} elseif (isset($_POST['copy_option']) && $_POST['copy_option'] == 'select_items') {
    $cb = new CourseBuilder();
开发者ID:ragebat,项目名称:chamilo-lms,代码行数:31,代码来源:copy_course.php

示例15: array

 * @author Created on 18 October 2006 by Elixir Interactive http://www.elixir-interactive.com
 * @package chamilo.course_info
 */
/**
 * Code
 */
// Language files that need to be included
$language_file = array('admin', 'create_course', 'course_info', 'coursebackup');
require_once '../inc/global.inc.php';
$current_course_tool = TOOL_COURSE_MAINTENANCE;
$this_section = SECTION_COURSES;
$nameTools = get_lang('Maintenance');
api_protect_course_script(true);
api_block_anonymous_users();
Display::display_header($nameTools);
echo Display::page_header($nameTools);
?>

<div class="sectiontitle"><?php 
Display::display_icon('save_import.gif', get_lang('backup'));
?>
&nbsp;&nbsp;<a href="../coursecopy/backup.php?<?php 
echo api_get_cidreq();
?>
"><?php 
echo get_lang('backup');
?>
</a></div>
<div class="sectioncomment">
		<ul>
		    <li><a href="../coursecopy/create_backup.php?<?php 
开发者ID:annickvdp,项目名称:Chamilo1.9.10,代码行数:31,代码来源:maintenance.php


注:本文中的Display::page_header方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。