本文整理汇总了PHP中display_notice函数的典型用法代码示例。如果您正苦于以下问题:PHP display_notice函数的具体用法?PHP display_notice怎么用?PHP display_notice使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了display_notice函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: set_modul_globals
/**
* Функция формирует глобальный массив $mod с элементами:
* <pre>
* tpl_dir путь к папке с шаблонами модуля
* theme_folder имя папки с файлами дизайна
* config_vars массив с языковыми переменными модуля
* </pre>
* Формирует и передаёт в шаблонизатор:
* <pre>
* $tpl_dir путь к папке с шаблонами модуля
* $mod_dir имя папки с модулями
* $config_vars массив с языковыми переменными модуля
* </pre>
* Регистрирует в шаблонизаторе функцию in_array
*
* @param string $modulepath имя папки модуля
* @param string $lang_section секция языкового файла
*/
function set_modul_globals($modulepath, $lang_section = false)
{
global $mod, $AVE_Template;
$tpl_dir = BASE_DIR . '/modules/' . $modulepath . '/templates/';
$lang_file = BASE_DIR . '/modules/' . $modulepath . '/lang/' . $_SESSION['user_language'] . '.txt';
if (!file_exists($lang_file)) {
$lang_file = BASE_DIR . '/modules/' . $modulepath . '/lang/ru.txt';
}
if (!file_exists($lang_file)) {
display_notice('Ошибка! Отсутствует языковой файл. Пожалуйста, проверьте язык, установленный по умолчанию, в файле ' . ABS_PATH . 'inc/config.php');
exit;
}
if ($lang_section === false) {
$AVE_Template->config_load($lang_file);
} else {
$AVE_Template->config_load($lang_file, $lang_section);
}
$config_vars = $AVE_Template->get_config_vars();
$AVE_Template->assign('tpl_dir', $tpl_dir);
$AVE_Template->assign('mod_dir', BASE_DIR . '/modules');
$AVE_Template->assign('config_vars', $config_vars);
$mod['tpl_dir'] = $tpl_dir;
$mod['theme_folder'] = defined('THEME_FOLDER') ? THEME_FOLDER : DEFAULT_THEME_FOLDER;
$mod['config_vars'] = $config_vars;
$AVE_Template->register_function('in_array', 'in_array');
}
示例2: sess_open
function sess_open($save_path, $session_name)
{
global $sess_dblink;
@(require BASE_DIR . '/inc/db.config.php');
if (!defined('PREFIX')) {
define('PREFIX', $config['dbpref']);
}
if (!($sess_dblink = @mysql_connect($config['dbhost'], $config['dbuser'], $config['dbpass']))) {
display_notice("Error connect MySQL database.");
die;
}
if (!@mysql_select_db($config['dbname'], $sess_dblink)) {
display_notice("Error select MySQL database.");
die;
}
@mysql_query("SET NAMES 'utf-8'", $sess_dblink);
return true;
}
示例3: create_tables
/**
* Creates tables for the module implementing the class.
* If you override this function make sure that your code can handles table creation.
*
*/
function create_tables()
{
global $dictionary;
$key = $this->getObjectName();
if (!array_key_exists($key, $dictionary)) {
$GLOBALS['log']->fatal("create_tables: Metadata for table " . $this->table_name . " does not exist");
display_notice("meta data absent for table " . $this->table_name . " keyed to {$key} ");
} else {
if (!$this->db->tableExists($this->table_name)) {
$this->dbManager->createTable($this);
if ($this->bean_implements('ACL')) {
if (!empty($this->acltype)) {
ACLAction::addActions($this->getACLCategory(), $this->acltype);
} else {
ACLAction::addActions($this->getACLCategory());
}
}
} else {
echo "Table already exists : {$this->table_name}<br>";
}
if ($this->is_AuditEnabled()) {
if (!$this->db->tableExists($this->get_audit_table_name())) {
$this->create_audit_table();
}
}
}
}
示例4: errNoCats_MetaDataTable
function errNoCats_MetaDataTable()
{
return display_notice("There are currently no Meta Data Categories applicable to this user.");
}
示例5: glob
$course_community = $db->GetOne($query);
if ($course_community) {
$syllabi = glob(ENTRADA_ABSOLUTE . "/core/storage/syllabi/" . $course["course_code"] . "-syllabus-" . ($year != 0 ? $year : date("Y", time())) . "*");
if ($syllabi) {
$syllabus_month = 0;
foreach ($syllabi as $syllabus) {
$month = substr($syllabus, strrpos($syllabus, "-") + 1, strlen($syllabus));
$month = substr($month, 0, strrpos($month, ".pdf"));
if ($month > $syllabus_month) {
$syllabus_month = $month;
}
}
}
$file_realpath = ENTRADA_ABSOLUTE . "/core/storage/syllabi/" . $course["course_code"] . "-syllabus-" . ($year != 0 ? $year : date("Y", time())) . "-" . $syllabus_month . ".pdf";
if (file_exists($file_realpath)) {
$syllabi[$course["course_code"]] = array("url" => ENTRADA_URL . "/community" . $course_community . "?id=" . $course["course_id"] . "&method=serve-syllabus&course_code=" . $course["course_code"] . "&month=" . $syllabus_month);
}
}
echo "<li><a href=\"" . ENTRADA_URL . "/courses?id=" . $course["course_id"] . "\">" . html_encode($course["course_code"] . ": " . $course["course_name"]) . "</a>" . (isset($syllabi[$course["course_code"]]) ? " <a href=\"" . $syllabi[$course["course_code"]]["url"] . "\" title=\"Download Syllabus\"><i class=\"icon-file\"></i></a>" : "") . "</li>\n";
}
echo "\t</ul>\n";
echo "</li>\n";
}
}
echo "</ol>\n";
}
if (!$course_flag) {
echo display_notice(array("There are no courses to display."));
}
}
}
示例6: fetch_template
$template_html = fetch_template("global/external");
if ($template_html) {
echo str_replace(array("%DEFAULT_CHARSET%", "%ENTRADA_URL%", "%TITLE%", "%BODY%"), array(DEFAULT_CHARSET, ENTRADA_URL, $TITLE, $BODY), $template_html);
}
exit;
}
}
}
} else {
$TITLE = "Not Authorized";
$BODY = display_notice(array("The file that you are trying to access is only accessible by authorized users."));
$template_html = fetch_template("global/external");
if ($template_html) {
echo str_replace(array("%DEFAULT_CHARSET%", "%ENTRADA_URL%", "%TITLE%", "%BODY%"), array(DEFAULT_CHARSET, ENTRADA_URL, $TITLE, $BODY), $template_html);
}
exit;
}
} else {
$TITLE = "Not Found";
$BODY = display_notice(array("The file you are trying to download does not exist in our system. This file may have been removed by the course director or system administrator or the file identifier may have been mistyped in the URL."));
$template_html = fetch_template("global/external");
if ($template_html) {
echo str_replace(array("%DEFAULT_CHARSET%", "%ENTRADA_URL%", "%TITLE%", "%BODY%"), array(DEFAULT_CHARSET, ENTRADA_URL, $TITLE, $BODY), $template_html);
}
exit;
}
} else {
header("Location: " . ENTRADA_URL);
exit;
}
}
示例7: count
?>
</tbody>
</table>
</form>
<?php
}
}
break;
case 'delete':
default:
echo "<h1>De/Activate or Delete Groups</h1>";
$total_groups = count($GROUP_IDS);
$query = "\tSELECT * FROM `course_groups`\n\t\t\t\t\t\t\t\t\t\tWHERE `cgroup_id` IN (" . implode(", ", $GROUP_IDS) . ")\n\t\t\t\t\t\t\t\t\t\tORDER BY `group_name` ASC";
$results = $db->GetAll($query);
if ($results) {
echo display_notice(array("Please review the following group" . ($total_groups != 1 ? "s" : "") . " to ensure that you wish to activate, deactivate or <strong>permanently delete</strong> " . ($total_groups != 1 ? "them" : "it") . ".<br /><br />Deleting will also remove any group members and this action cannot be undone."));
?>
<form action="<?php
echo ENTRADA_URL;
?>
/admin/courses/groups?section=edit&action=delete&step=2&id=<?php
echo $COURSE_ID;
?>
&gid=<?php
echo $GROUP_ID;
?>
" method="post">
<input type="hidden" name="gid" value="<?php
echo $GROUP_ID;
?>
" />
示例8: display_error
if ($ACTION == "login" && $ERROR) {
echo display_error();
}
/**
* If the user is trying to access a link and is not logged in, display a
* notice to inform the user that they need to log in first.
*/
if ($PROCEED_TO && (stristr($PROCEED_TO, "link-course.php") || stristr($PROCEED_TO, "link-event.php"))) {
echo display_notice("You must log in to access this link; once you have logged in you will be automatically redirected to the requested location.");
}
/**
* If the user is trying to access a file and is not logged in, display a
* notice to inform the user that they need to log in first.
*/
if ($PROCEED_TO && (stristr($PROCEED_TO, "file-course.php") || stristr($PROCEED_TO, "file-event.php"))) {
echo display_notice("You must log in to download the requested file; once you have logged in the download will start automatically.");
}
?>
<div class="row-fluid">
<div class="span6">
<h2><?php
echo APPLICATION_NAME;
?>
Login</h2>
<p>Please enter your <?php
echo APPLICATION_NAME;
?>
username and password to log in.</p>
<form class="form-horizontal login-form" action="<?php
echo ENTRADA_URL;
示例9: getTargetControls
//.........这里部分代码省略.........
<li class="user" id="target_student_<?php
echo $STUDENT_LIST[$student]["proxy_id"];
?>
" style="cursor: move;"><?php
echo $STUDENT_LIST[$student]["fullname"];
?>
<img src="<?php
echo ENTRADA_URL;
?>
/images/action-delete.gif" onclick="removeTarget('student_<?php
echo $STUDENT_LIST[$student]["proxy_id"];
?>
', 'students');" class="list-cancel-image" /></li>
<?php
}
}
}
?>
</ul>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<?php
if ($target_details["target_shortname"] == "peer") {
?>
<tr>
<td colspan="2"> </td>
<td>
<?php
echo display_notice("When creating peer assessments, learners will be able to assess any others within the same cohort, course group, or custom list of students, depending on which evaluation targets you include. <br /><br />Additionally, they will not be able to view results of evaluations done on themselves until they have filled out all of the required evaluations available to them, or the evaluation period ends, whichever comes first.");
?>
</td>
</tr>
<?php
}
break;
case "rotation_core":
$target_data["form_id"] = $form_id;
if (!isset($target_data["associated_rotation_ids"])) {
foreach ($target_data["evaluation_targets"] as $target) {
if ($target["target_type"] == "rotation_id") {
$target_data["associated_rotation_ids"][] = $target["target_value"];
}
}
}
?>
<tr>
<td> </td>
<td style="vertical-align: top"><label for="faculty_name" class="form-nrequired">Evaluation Targets</label></td>
<td>
<table>
<tbody>
<tr>
<td style="vertical-align: top"><input type="radio" name="target_type" id="target_type_rotations" value="rotations" onclick="selectEvaluationTargetOption('rotations')" style="vertical-align: middle" checked="checked" /></td>
<td colspan="2" style="padding-bottom: 15px">
<label for="target_type_rotations" class="radio-group-title">Each Service in the selected Core Rotation</label>
<div class="content-small">This evaluation is intended for all events associated with a custom selection of Core Rotations.</div>
<?php
$ROTATION_LIST = array();
$rotations[0] = array("text" => "All Core Rotations", "value" => "all", "category" => true);
$query = "SELECT * FROM `" . CLERKSHIP_DATABASE . "`.`global_lu_rotations`\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tWHERE `rotation_id` != " . $db->qstr(MAX_ROTATION);
$rotation_results = $db->CacheGetAll(LONG_CACHE_TIMEOUT, $query);
示例10: create_tables
/** create the appropriate database tables for this bean */
function create_tables()
{
global $dictionary;
$key = $this->getObjectName();
if (!array_key_exists($key, $dictionary)) {
$GLOBALS['log']->fatal("create_tables: Metadata for table " . $this->table_name . " does not exist");
display_notice("meta data absent for table " . $this->table_name . " keyed to {$key} ");
} else {
if (!$this->db->tableExists($this->table_name)) {
$this->dbManager->createTable($this);
if ($this->bean_implements('ACL')) {
ACLAction::addActions($this->module_dir);
}
} else {
echo "Table Already Exists : {$this->table_name}<br>";
}
}
}
示例11: coreSiteFetch
//.........这里部分代码省略.........
}
// /вывод документа
//Работа с условиями
/*
$out = preg_replace('/\[tag:if_exp:?(.*)\]/u', '<?php
$my_exp000=true;
$my_exp0001=\'$my_exp000=\'. str_replace(\'#var#\',\'$\',<<<BLOCK
$1;
BLOCK
);
@eval($my_exp0001);
if($my_exp000==true)
{
?>', $out);
$out = str_replace('[tag:if_exp_else]', '<?php }else{ ?>', $out);
$out = str_replace('[tag:/if_exp]', '<?php } ?>', $out);
*/
// Тут мы вводим в хеадер иньекцию скриптов.
if (defined('RUB_ID')) {
$rubheader = $AVE_DB->Query("\n\t\t\t\t\t\t\tSELECT rubric_header_template\n\t\t\t\t\t\t\tFROM " . PREFIX . "_rubrics\n\t\t\t\t\t\t\tWHERE Id = '" . RUB_ID . "'\n\t\t\t\t\t\t\tLIMIT 1\n\t\t\t\t\t\t", CACHE_LIFETIME)->GetCell();
$out = str_replace('[tag:rubheader]', $rubheader . '[tag:rubheader]', $out);
}
$out = preg_replace('/\\[tag:rfld:([a-zA-Z0-9-_]+)]\\[(more|esc|img|[0-9-]+)]/e', "request_get_document_field(\"\$1\", {$id}, \"\$2\")", $out);
// Если в запросе пришел параметр print, т.е. страница для печати, парсим контент, который обрамлен
// тегами только для печати
if (isset($_REQUEST['print']) && $_REQUEST['print'] == 1) {
$out = str_replace(array('[tag:if_print]', '[/tag:if_print]'), '', $out);
$out = preg_replace('/\\[tag:if_notprint\\](.*?)\\[\\/tag:if_notprint\\]/si', '', $out);
} else {
// В противном случае наоборот, парсим только тот контент, который предназначен НЕ для печати
$out = preg_replace('/\\[tag:if_print\\](.*?)\\[\\/tag:if_print\\]/si', '', $out);
$out = str_replace(array('[tag:if_notprint]', '[/tag:if_notprint]'), '', $out);
}
// получаем из шаблона системный тег, определяющий название темы дизайна
$match = '';
preg_match('/\\[tag:theme:(\\w+)]/', $out, $match);
define('THEME_FOLDER', empty($match[1]) ? DEFAULT_THEME_FOLDER : $match[1]);
$out = preg_replace('/\\[tag:theme:(.*?)]/', '', $out);
// парсим теги модулей
$out = $this->coreModuleTagParse($out);
if (isset($_REQUEST['module']) && !(isset($this->install_modules[$_REQUEST['module']]) && '1' == $this->install_modules[$_REQUEST['module']]->ModuleStatus)) {
display_notice($this->_module_error);
}
// парсим теги системных блоков
$out = preg_replace_callback('/\\[tag:sysblock:([0-9-]+)\\]/', 'parse_sysblock', $out);
// парсим теги системы внутренних запросов
$out = preg_replace_callback('/\\[tag:request:(\\d+)\\]/', 'request_parse', $out);
// парсим теги навигации
$out = preg_replace_callback('/\\[tag:navigation:(\\d+):?([0-9,]*)\\]/', 'parse_navigation', $out);
// парсим теги скрытого текста
$out = parse_hide($out);
// парсим остальные теги основного шаблона
$search = array('[tag:mediapath]', '[tag:path]', '[tag:sitename]', '[tag:document]', '[tag:alias]', '[tag:home]', '[tag:robots]', '[tag:canonical]', '[tag:docid]', '[tag:breadcrumb]');
$replace = array(ABS_PATH . 'templates/' . THEME_FOLDER . '/', ABS_PATH, htmlspecialchars(get_settings('site_name'), ENT_QUOTES), get_redirect_link('print'), @$this->curentdoc->document_alias, get_home_link(), isset($this->curentdoc->document_meta_robots) ? $this->curentdoc->document_meta_robots : '', canonical($_SERVER['REQUEST_URI']), isset($this->curentdoc->Id) ? $this->curentdoc->Id : '', get_breadcrumb());
if (defined('MODULE_CONTENT')) {
// парсинг тегов при выводе из модуля
$search[] = '[tag:maincontent]';
$replace[] = MODULE_CONTENT;
$search[] = '[tag:title]';
$replace[] = htmlspecialchars(defined('MODULE_SITE') ? MODULE_SITE : '', ENT_QUOTES);
$search[] = '[tag:description]';
$replace[] = htmlspecialchars(defined('MODULE_DESCRIPTION') ? MODULE_DESCRIPTION : '', ENT_QUOTES);
$search[] = '[tag:keywords]';
$replace[] = htmlspecialchars(defined('MODULE_KEYWORDS') ? MODULE_KEYWORDS : '', ENT_QUOTES);
} else {
$search[] = '[tag:keywords]';
$replace[] = isset($this->curentdoc->document_meta_keywords) ? htmlspecialchars($this->curentdoc->document_meta_keywords, ENT_QUOTES) : '';
$search[] = '[tag:description]';
$replace[] = isset($this->curentdoc->document_meta_description) ? htmlspecialchars($this->curentdoc->document_meta_description, ENT_QUOTES) : '';
$search[] = '[tag:title]';
$replace[] = htmlspecialchars(pretty_chars($this->curentdoc->document_title), ENT_QUOTES);
}
$search[] = '[tag:maincontent]';
$replace[] = '';
$search[] = '[tag:printlink]';
$replace[] = get_print_link();
$search[] = '[tag:version]';
$replace[] = APP_INFO;
$search[] = '[tag:docviews]';
$replace[] = isset($this->curentdoc->document_count_view) ? $this->curentdoc->document_count_view : '';
// парсим тизер документа
$out = preg_replace('/\\[tag:teaser:(\\d+)\\]/e', "showteaser(\$1)", $out);
if (defined('RUB_ID')) {
$out = preg_replace('/\\[tag:docauthoravatar:(\\d+)\\]/e', "getAvatar(" . intval($this->curentdoc->document_author_id) . ",\"\$1\")", $out);
}
if (defined('RUB_ID')) {
$out = preg_replace('/\\[tag:lang:([a-zA-Z0-9-_]+)\\]/', '<?php if($AVE_Core->curentdoc->document_lang=="$1") { ?>', $out);
} else {
$out = preg_replace('/\\[tag:lang:([a-zA-Z0-9-_]+)\\]/', '<?php if($_SESSION["user_language"]=="$1") { ?>', $out);
}
$out = str_replace('[tag:/lang]', '<?php } ?>', $out);
// парсим остальные теги основного шаблона
$out = str_replace($search, $replace, $out);
unset($search, $replace);
// парсим теги для combine.php
$out = preg_replace_callback('/\\[tag:(css|js):([^ :\\/]+):?(\\S+)*\\]/', array($this, '_parse_combine'), $out);
// ЧПУ
$out = rewrite_link($out);
echo $out;
}
示例12: array
$objectives = array();
if ($event["objectives"]) {
foreach ($event["objectives"] as $value) {
$firstpart = substr($value, 0, strlen($value) - 1);
$letter = substr($value, -1);
if (!isset($objectives[$firstpart])) {
$objectives[$firstpart] = $firstpart . $letter;
} else {
$objectives[$firstpart] .= ", " . $letter;
}
}
}
echo "<tr>\n";
echo "\t<td class=\"border-r\"><a href=\"" . ENTRADA_URL . "/events?id=" . $event["event_id"] . "\" target=\"_blank\">" . html_encode($event["event_title"]) . "</a></td>\n";
echo "\t<td class=\"border-r\">" . limit_chars($event["event_description"], 376) . "</td>\n";
echo "\t<td class=\"border-r\">" . $event["event_objectives"] . "</td>\n";
echo "\t<td class=\"border-r\">" . (!empty($event["objectives"]) ? "› " . implode("<br />› ", $objectives) : " ") . "</td>\n";
echo "\t<td class=\"border-r\">" . (!empty($event["presentations"]) ? "› " . implode("<br />› ", $event["presentations"]) : " ") . "</td>\n";
echo "</tr>\n";
}
?>
</tbody>
</table>
<?php
} else {
echo display_notice(array("There are no learning events in this course during the selected duration."));
}
}
}
}
}
示例13: _error
/**
* Метод, предназначенный для обработки ошибок
*
* @param string $type - тип ошибки (при подключении к БД или при выполнении SQL-запроса)
* @param string $query - текст SQL запроса вызвавшего ошибку
* @access private
*/
function _error($type, $query = '')
{
if ($type != 'query') {
display_notice('Error ' . $type . ' MySQL database.');
} else {
$my_error = mysqli_error($this->_handle);
reportLog('SQL ERROR: ' . $my_error . PHP_EOL . "\t\tQUERY: " . stripslashes($query) . PHP_EOL . "\t\t" . $this->get_caller() . PHP_EOL . "\t\tURL: " . HOST . $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'] . PHP_EOL);
// Если в настройках системы установлен параметр на отправку сообщений на e-mail, тогда
if (SEND_SQL_ERROR) {
// Формируем текст сообщения с ошибкой
$mail_body = 'SQL ERROR: ' . $my_error . PHP_EOL . 'TIME: ' . date('d-m-Y, H:i:s') . PHP_EOL . 'URL: ' . HOST . $_SERVER['SCRIPT_NAME'] . '?' . $_SERVER['QUERY_STRING'] . PHP_EOL . $this->get_caller() . PHP_EOL . 'QUERY: ' . stripslashes($query) . PHP_EOL;
// Отправляем сообщение
send_mail(get_settings('mail_from'), $mail_body, 'MySQL Error!', get_settings('mail_from'), get_settings('mail_from_name'), 'text');
}
}
}
示例14: foreach
foreach ($results as $result) {
echo "<tr>\n";
echo "\t<td><input type=\"checkbox\" name=\"admin_proxy_ids[]\" value=\"" . (int) $result["proxy_id"] . "\"" . ($result["proxy_id"] == $ENTRADA_USER->getActiveId() ? " onclick=\"this.checked = false\" disabled=\"disabled\"" : "") . " /></td>\n";
echo "\t<td>" . date(DEFAULT_DATE_FORMAT, $result["member_joined"]) . "</td>\n";
echo "\t<td><a href=\"" . ENTRADA_URL . "/people?profile=" . html_encode($result["username"]) . "\"" . ($result["proxy_id"] == $ENTRADA_USER->getActiveId() ? " style=\"font-weight: bold" : "") . "\">" . html_encode($result["firstname"] . " " . $result["lastname"]) . "</a></td>\n";
echo "\t<td class=\"list-status\"><img src=\"images/" . ($MAILING_LISTS["active"] && $mail_list->users[$result["proxy_id"]]["member_active"] ? "list-status-online.gif\" alt=\"Active\"" : "list-status-offline.gif\" alt=\"Disabled\"") . " /></td>\n";
echo "</tr>\n";
}
?>
</tbody>
</table>
</form>
</div><!--/row-fluid-->
<?php
} else {
echo display_notice(array("Your community has no administrators at this time; the MEdTech Unit has been informed of this error, please try again later."));
application_log("error", "Someone [" . $ENTRADA_USER->getID() . "] accessed the Manage Members page in a community [" . $COMMUNITY_ID . "] with no administrators present.");
}
?>
</div>
<div class="tab-page members">
<h3 class="tab">Add Members</h3>
<h2 style="margin-top: 0px">Add Members</h2>
<form action="<?php
echo ENTRADA_URL . "/" . $MODULE . "?" . replace_query(array("section" => "members", "type" => "add", "step" => 2));
?>
" method="post" class="form-horizontal">
<div class="row-fluid">
<p>If you would like to add users that already exist in the system to this community yourself, you can do so by clicking the checkbox beside their name from the list below.
Once you have reviewed the list at the bottom and are ready, click the <strong>Proceed</strong> button at the bottom to complete the process.</p>
</div>
示例15: foreach
echo "<table width=\"100%\">\n";
echo "\t<thead>\n";
echo "\t\t<tr>\n";
echo "\t\t\t<th width=\"40%\" style=\"text-align:left;\">Assessment Title</th>\n";
echo "\t\t\t<th width=\"20%\" style=\"text-align:left;\">Type</th>\n";
echo "\t\t\t<th width=\"25%\" style=\"text-align:left;\">Characteristic</th>\n";
echo "\t\t\t<th width=\"15%\" style=\"text-align:left;\">Grade Weight</th>\n";
echo "\t\t</tr>\n";
echo "\t</thead>\n";
echo "\t<tbody>\n";
foreach ($course["assessments"] as $assessment) {
echo "\t<tr>\n";
echo "\t\t<td>" . $assessment["name"] . "</td>\n";
echo "\t\t<td>" . $assessment["type"] . "</td>\n";
echo "\t\t<td>" . $assessment["characteristic"] . "</td>\n";
echo "\t\t<td>" . $assessment["grade_weighting"] . "</td>\n";
echo "\t</tr>\n";
}
echo "\t<tbody>\n";
echo "</table>\n";
}
}
break;
default:
continue;
break;
}
}
} else {
echo display_notice(array("Please <a href=\"" . ENTRADA_URL . "/?url=" . rawurlencode($PROCEED_TO) . "\">log into " . APPLICATION_NAME . "</a> to access more content on this page."));
}