本文整理汇总了PHP中get_icon_url函数的典型用法代码示例。如果您正苦于以下问题:PHP get_icon_url函数的具体用法?PHP get_icon_url怎么用?PHP get_icon_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了get_icon_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
/**
* Render content
*/
public function render()
{
CssLoader::getInstance()->load('profile', 'all');
load_kernel_config('user_profile');
$userData = user_get_properties($this->userId);
$pictureUrl = '';
if (get_conf('allow_profile_picture')) {
$picturePath = user_get_picture_path($userData);
if ($picturePath && file_exists($picturePath)) {
$pictureUrl = user_get_picture_url($userData);
} else {
$pictureUrl = get_icon_url('nopicture');
}
}
$userFullName = claro_htmlspecialchars(get_lang('%firstName %lastName', array('%firstName' => $userData['firstname'], '%lastName' => $userData['lastname'])));
$dock = new ClaroDock('userProfileBox');
$template = new CoreTemplate('user_profilebox.tpl.php');
$template->assign('userId', $this->userId);
$template->assign('pictureUrl', $pictureUrl);
$template->assign('userFullName', $userFullName);
$template->assign('dock', $dock);
$template->assign('condensedMode', $this->condensedMode);
$template->assign('userData', $userData);
return $template->render();
}
示例2: renderContent
public function renderContent()
{
$personnalCourseList = get_user_course_list(claro_get_current_user_id());
$announcementEventList = announcement_get_items_portlet($personnalCourseList);
$output = '';
if ($announcementEventList) {
$output .= '<dl id="portletMyAnnouncements">';
foreach ($announcementEventList as $announcementItem) {
// Hide hidden and expired elements
$isVisible = (bool) ($announcementItem['visibility'] == 'SHOW') ? 1 : 0;
$isOffDeadline = (bool) (isset($announcementItem['visibleFrom']) && strtotime($announcementItem['visibleFrom']) > time() || isset($announcementItem['visibleUntil']) && time() >= strtotime($announcementItem['visibleUntil'])) ? 1 : 0;
if ($isVisible && !$isOffDeadline) {
$output .= '<dt>' . "\n" . '<img class="iconDefinitionList" src="' . get_icon_url('announcement', 'CLANN') . '" alt="" />' . ' <a href="' . $announcementItem['url'] . '">' . $announcementItem['title'] . '</a>' . "\n" . '</dt>' . "\n";
foreach ($announcementItem['eventList'] as $announcementEvent) {
// Prepare the render
$displayChar = 250;
if (strlen($announcementEvent['content']) > $displayChar) {
$content = substr($announcementEvent['content'], 0, $displayChar) . '... <a href="' . claro_htmlspecialchars(Url::Contextualize($announcementEvent['url'])) . '">' . '<b>' . get_lang('Read more »') . '</b></a>';
} else {
$content = $announcementEvent['content'];
}
$output .= '<dd>' . '<a href="' . $announcementEvent['url'] . '">' . $announcementItem['courseOfficialCode'] . '</a> : ' . "\n" . (!empty($announcementEvent['title']) ? $announcementEvent['title'] : get_lang('No title')) . "\n" . ' - ' . $content . "\n" . '</dd>' . "\n";
}
}
}
$output .= '</dl>';
} else {
$output .= "\n" . '<dl>' . "\n" . '<dt>' . "\n" . '<img class="iconDefinitionList" src="' . get_icon_url('announcement', 'CLANN') . '" alt="" />' . ' ' . get_lang('No announcement to display') . "\n" . '</dt>' . "\n" . '</dl>' . "\n";
}
return $output;
}
示例3: renderContent
public function renderContent()
{
global $platformLanguage;
$out = '';
// Last user action
$lastUserAction = isset($_SESSION['last_action']) && $_SESSION['last_action'] != '1970-01-01 00:00:00' ? $_SESSION['last_action'] : date('Y-m-d H:i:s');
$userCommands = array();
// User commands
// 'Create Course Site' command. Only available for teacher.
if (claro_is_allowed_to_create_course()) {
$userCommands[] = '<a href="' . claro_htmlspecialchars(Url::Contextualize(get_path('clarolineRepositoryWeb') . 'course/create.php')) . '" class="userCommandsItem">' . '<img src="' . get_icon_url('courseadd') . '" alt="" /> ' . get_lang('Create a course site') . '</a>' . "\n";
} elseif ($GLOBALS['currentUser']->isCourseCreator) {
$userCommands[] = '<span class="userCommandsItemDisabled">' . '<img src="' . get_icon_url('courseadd') . '" alt="" /> ' . get_lang('Create a course site') . '</span>' . "\n";
}
if (get_conf('allowToSelfEnroll', true)) {
$userCommands[] = '<a href="' . claro_htmlspecialchars(Url::Contextualize(get_path('clarolineRepositoryWeb') . 'auth/courses.php?cmd=rqReg&categoryId=0')) . '" class="userCommandsItem">' . '<img src="' . get_icon_url('enroll') . '" alt="" /> ' . get_lang('Enrol on a new course') . '</a>' . "\n";
$userCommands[] = '<a href="' . claro_htmlspecialchars(Url::Contextualize(get_path('clarolineRepositoryWeb') . 'auth/courses.php?cmd=rqUnreg')) . '" class="userCommandsItem">' . '<img src="' . get_icon_url('unenroll') . '" alt="" /> ' . get_lang('Remove course enrolment') . '</a>' . "\n";
}
$userCommands[] = '<a href="' . claro_htmlspecialchars(Url::Contextualize(get_path('clarolineRepositoryWeb') . 'course/platform_courses.php')) . '" class="userCommandsItem">' . '<img src="' . get_icon_url('course') . '" alt="" /> ' . get_lang('All platform courses') . '</a>' . "\n";
$userCommands[] = '<a href="' . claro_htmlspecialchars(Url::Contextualize(get_path('clarolineRepositoryWeb') . 'notification_date.php')) . '" class="userCommandsItem">' . '<img class="iconDefinitionList" src="' . get_icon_url('hot') . '" alt="' . get_lang('New items') . '" />' . ' ' . get_lang('New items') . ' ' . get_lang('to another date') . (substr($lastUserAction, strlen($lastUserAction) - 8) == '00:00:00' ? ' [' . claro_html_localised_date(get_locale('dateFormatNumeric'), strtotime($lastUserAction)) . ']' : '') . '</a>' . "\n";
$userCourseList = render_user_course_list();
$userCourseListDesactivated = render_user_course_list_desactivated();
$out .= '<div class="userCommands">' . '<h2>' . get_lang('Manage my courses') . '</h2>' . claro_html_list($userCommands) . '</div>' . '<div class="userCourseList">' . '<h2>' . get_lang('My course list') . '</h2>' . $userCourseList;
if (!empty($userCourseListDesactivated)) {
$out .= '<h4>' . get_lang('Deactivated course list') . '</h4>' . $userCourseListDesactivated;
}
$out .= '</div>';
/*'</td>'
. '</tr>'
. '</tbody>'
. '</table>'*/
$this->content = $out;
return $this->content;
}
示例4: renderTitle
public function renderTitle()
{
$output = '<img ' . 'src="' . get_icon_url('announcement', 'CLANN') . '" ' . 'alt="Announcement icon" /> ' . get_lang('Latest announcements');
if (claro_is_allowed_to_edit()) {
$output .= ' <span class="separator">|</span> <a href="' . claro_htmlspecialchars(Url::Contextualize(get_module_url('CLANN') . '/announcements.php')) . '">' . '<img src="' . get_icon_url('settings') . '" alt="' . get_lang('Settings') . '" /> ' . get_lang('Manage') . '</a>';
}
return $output;
}
示例5: renderTitle
public function renderTitle()
{
$output = '<img ' . 'src="' . get_icon_url('headline', 'CLTI') . '"' . 'alt="' . get_lang('Headline') . '" /> ' . get_lang('Headlines');
if (claro_is_allowed_to_edit()) {
$output .= ' <span class="separator">|</span> <a href="' . claro_htmlspecialchars(Url::Contextualize(get_module_url('CLTI') . '/index.php')) . '">' . '<img src="' . get_icon_url('settings') . '" alt="' . get_lang('Settings') . '" /> ' . get_lang('Manage') . '</a>';
}
return $output;
}
示例6: get_block
/**
* return the content
*
* @param coursecode $key
* @param array $context
* @return string : html content
*/
public static function get_block($key, $isadmin, $context = null, $right = null)
{
$out = self::get_content($key, $context, $right);
if ($isadmin) {
$out .= '<p>' . "\n" . '<a href="' . get_path('rootAdminWeb') . 'managing/editFile.php?cmd=rqEdit&file=textzone_messaging_top.inc.html">' . "\n" . '<img src="' . get_icon_url('edit') . '" alt="" />' . get_lang('Edit text zone') . "\n" . '</a>' . "\n" . '</p>';
}
return $out;
}
示例7: render
public function render()
{
$out = '';
if (!claro_is_user_authenticated()) {
if (get_conf('claro_displayLocalAuthForm', true) == true) {
$out .= $this->renderLoginLink();
}
} elseif (!claro_is_platform_admin() && (claro_is_in_a_course() && !claro_is_course_member()) && claro_get_current_course_data('registrationAllowed')) {
if (claro_is_current_user_enrolment_pending()) {
$out .= '<img src="' . get_icon_url('warning') . '" alt="off" /> ' . '<b>' . get_lang('Enrolment pending') . '</b>';
} else {
$out .= $this->renderRegistrationLink();
}
} elseif (claro_is_display_mode_available()) {
$out .= $this->renderViewModeSwitch();
}
return $out;
}
示例8: renderContent
public function renderContent()
{
$output = '';
$output .= '<table class="claroTable emphaseLine" width="99%" border="0" cellspacing="2">' . "\n" . '<thead>' . "\n" . '<tr align="center" valign="top">' . "\n" . '<th> </th>' . "\n" . '<th>' . get_lang('Subject') . '</th>' . "\n" . '<th>' . get_lang('Sender') . '</th>' . "\n" . '<th>' . get_lang('Date') . '</th>' . "\n" . '</tr>' . "\n" . '</thead>' . "\n" . '<tbody>' . "\n";
if ($this->inbox->getNumberOfMessage() > 0) {
foreach ($this->inbox as $message) {
if ($message->isPlatformMessage()) {
$classMessage = 'class="platformMessage"';
$iconMessage = '<img src="' . get_icon_url('important') . '" alt="' . get_lang('Important') . '" />';
} else {
$classMessage = $message->isRead() ? 'class="readMessage"' : 'class="unreadMessage"';
$iconMessage = $message->isRead() ? '<img src="' . get_icon_url('mail_open') . '" alt="" />' : '<img src="' . get_icon_url('mail_close') . '" alt="" />';
}
$output .= "\n" . '<tr ' . $classMessage . '>' . "\n" . '<td>' . $iconMessage . '</td>' . "\n" . '<td>' . '<a href="' . get_path('clarolineRepositoryWeb') . 'messaging/readmessage.php?messageId=' . $message->getId() . '&type=received">' . claro_htmlspecialchars($message->getSubject()) . '</a>' . "\n" . '</td>' . "\n" . '<td>' . claro_htmlspecialchars($message->getSenderLastName()) . ' ' . claro_htmlspecialchars($message->getSenderFirstName()) . '</td>' . "\n" . '<td align="center">' . claro_html_localised_date(get_locale('dateFormatLong'), strtotime($message->getSendTime())) . '</td>' . "\n" . '</tr>' . "\n";
}
} else {
$output .= "\n" . '<tr>' . "\n" . '<td colspan="4" align="center">' . get_lang('Empty') . '</td>' . "\n" . '</tr>' . "\n";
}
$output .= "\n" . '</tbody>' . "\n" . '</table>' . "\n" . '<a href="' . get_path('clarolineRepositoryWeb') . 'messaging/index.php' . '">' . get_lang('View all my messages') . '</a>';
return $output;
}
示例9: lp_display_exercise
/**
* CLAROLINE
*
* @version $Revision: 14314 $
* @copyright (c) 2001-2011, Universite catholique de Louvain (UCL)
* @license http://www.gnu.org/copyleft/gpl.html (GPL) GENERAL PUBLIC LICENSE
* @author Piraux Sebastien <pir@cerdecam.be>
* @author Lederer Guillaume <led@cerdecam.be>
* @package CLLNP
* @since 1.8
*/
function lp_display_exercise($cmd, $TABLELEARNPATHMODULE, $TABLEMODULE, $TABLEASSET, $tbl_quiz_exercise)
{
$out = '';
if (isset($cmd) && ($cmd = "raw")) {
// change raw if value is a number between 0 and 100
if (isset($_POST['newRaw']) && is_num($_POST['newRaw']) && $_POST['newRaw'] <= 100 && $_POST['newRaw'] >= 0) {
$sql = "UPDATE `" . $TABLELEARNPATHMODULE . "`\n SET `raw_to_pass` = " . (int) $_POST['newRaw'] . "\n WHERE `module_id` = " . (int) $_SESSION['module_id'] . "\n AND `learnPath_id` = " . (int) $_SESSION['path_id'];
claro_sql_query($sql);
$dialogBoxContent = get_lang('Minimum raw to pass has been changed');
}
}
$out .= '<hr noshade="noshade" size="1" />';
//####################################################################################\\
//############################### DIALOG BOX SECTION #################################\\
//####################################################################################\\
if (!empty($dialogBoxContent)) {
$dialogBox = new DialogBox();
$dialogBox->success($dialogBoxContent);
$out .= $dialogBox->render();
}
// form to change raw needed to pass the exercise
$sql = "SELECT `lock`, `raw_to_pass`\n FROM `" . $TABLELEARNPATHMODULE . "` AS LPM\n WHERE LPM.`module_id` = " . (int) $_SESSION['module_id'] . "\n AND LPM.`learnPath_id` = " . (int) $_SESSION['path_id'];
$learningPath_module = claro_sql_query_get_single_row($sql);
// if this module blocks the user if he doesn't complete
if (isset($learningPath_module['lock']) && $learningPath_module['lock'] == 'CLOSE' && isset($learningPath_module['raw_to_pass'])) {
$out .= '<form method="post" action="' . $_SERVER['PHP_SELF'] . '">' . "\n" . claro_form_relay_context() . '<label for="newRaw">' . get_lang('Change minimum raw mark to pass this module (percentage) :') . ' </label>' . "\n" . '<input type="text" value="' . claro_htmlspecialchars($learningPath_module['raw_to_pass']) . '" name="newRaw" id="newRaw" size="3" maxlength="3" /> % ' . "\n" . '<input type="hidden" name="cmd" value="raw" />' . "\n" . '<input type="submit" value="' . get_lang('Ok') . '" />' . "\n" . '</form>' . "\n\n";
}
// display current exercise info and change comment link
$sql = "SELECT `E`.`id` AS `exerciseId`, `M`.`name`\n FROM `" . $TABLEMODULE . "` AS `M`,\n `" . $TABLEASSET . "` AS `A`,\n `" . $tbl_quiz_exercise . "` AS `E`\n WHERE `A`.`module_id` = M.`module_id`\n AND `M`.`module_id` = " . (int) $_SESSION['module_id'] . "\n AND `E`.`id` = `A`.`path`";
$module = claro_sql_query_get_single_row($sql);
if ($module) {
$out .= "\n\n" . '<h4>' . get_lang('Exercise in module') . ' :</h4>' . "\n" . '<p>' . "\n" . claro_htmlspecialchars($module['name']) . '<a href="../exercise/admin/edit_exercise.php?exId=' . $module['exerciseId'] . '">' . '<img src="' . get_icon_url('edit') . '" alt="' . get_lang('Modify') . '" />' . '</a>' . "\n" . '</p>' . "\n";
}
// else sql error, do nothing except in debug mode, where claro_sql_query_fetch_all will show the error
return $out;
}
示例10: array
$cmdList[] = array('name' => get_lang('Full review'), 'url' => claro_htmlspecialchars(Url::Contextualize($viewallUrl)));
}
}
}
$out .= $postLister->disp_pager_tool_bar($pagerUrl);
try {
$display = new ModuleTemplate('CLFRM', 'forum_viewtopic.tpl.php');
$display->assign('forum_id', $forumId);
$display->assign('topic_id', $topicId);
$display->assign('topic_subject', $topicSettingList['topic_title']);
$display->assign('postList', $postList);
$display->assign('is_allowedToEdit', $is_allowedToEdit);
$display->assign('anonymity', $anonymityStatus);
$display->assign('claro_notifier', $claro_notifier);
$display->assign('is_post_allowed', $is_postAllowed);
$out .= $display->render();
} catch (Exception $ex) {
$dialogBox->error($ex);
}
if ($is_postAllowed) {
$replyUrl = Url::Contextualize($_SERVER['PHP_SELF'] . '?topic=' . $topicId . '&cmd=rqPost' . '&mode=reply');
$toolBar[] = claro_html_cmd_link(claro_htmlspecialchars($replyUrl), '<img src="' . get_icon_url('reply') . '" alt="" />' . ' ' . get_lang('Reply'));
$out .= '<p>' . claro_html_menu_horizontal($toolBar) . '</p>';
}
$out .= $postLister->disp_pager_tool_bar($pagerUrl);
}
// Page title
$out = claro_html_tool_title($nameTools, $is_allowedToEdit ? get_help_page_url('blockForumsHelp', 'CLFRM') : false, $cmdList) . $out;
ClaroBreadCrumbs::getInstance()->setCurrent(get_lang('Forums'), 'index.php');
$claroline->display->body->appendContent($out);
echo $claroline->display->render();
示例11: foreach
$addToURL = '&order_crit=' . $_REQUEST['order_crit'];
}
if (isset($_REQUEST['offset'])) {
$addToURL = '&offset=' . $_REQUEST['offset'];
}
foreach ($userList as $user) {
if (isset($_REQUEST['search']) && $_REQUEST['search'] != '') {
$user['nom'] = preg_replace("/^(" . $_REQUEST['search'] . ")/i", '<b>\\1</b>', $user['nom']);
$user['prenom'] = preg_replace("/^(" . $_REQUEST['search'] . ")/i", "<b>\\1</b>", $user['prenom']);
}
$out .= '<tr>' . "\n" . '<td align="center">' . $user['ID'] . '</td>' . "\n" . '<td align="left">' . $user['nom'] . '</td>' . '<td align="left">' . $user['prenom'] . '</td>';
if (!is_null($user['isCourseManager']) && $user['isCourseManager'] == 0) {
// already enrolled as student
$out .= '<td align="center" >' . "\n" . '<small>' . get_lang('Already enroled') . '</small>' . '</td>' . "\n";
} else {
// Register as user
$out .= '<td align="center">' . "\n" . '<a href="' . $_SERVER['PHP_SELF'] . '?cidToEdit=' . $cidToEdit . '&cmd=sub&search=' . $search . '&user_id=' . $user['ID'] . '&isCourseManager=0' . $addToURL . '">' . '<img src="' . get_icon_url('enroll') . '" alt="' . get_lang('Register user') . '" />' . "\n" . '</a>' . '</td>' . "\n";
}
if (!is_null($user['isCourseManager']) && $user['isCourseManager'] == 1) {
// already enrolled as teacher
$out .= '<td align="center" >' . "\n" . '<small>' . get_lang('Already enroled') . '</small>' . '</td>' . "\n";
} else {
//register as teacher
$out .= '<td align="center">' . "\n" . '<a href="' . $_SERVER['PHP_SELF'] . '?cidToEdit=' . $cidToEdit . '&cmd=sub&search=' . $search . '&user_id=' . $user['ID'] . '&isCourseManager=1' . $addToURL . '">' . '<img src="' . get_icon_url('enroll') . '" alt="' . get_lang('Register user') . '" />' . '</a>' . "\n" . '</td>' . "\n";
}
$out .= '</tr>';
}
// end display users table
$out .= '</tbody></table>' . $myPager->disp_pager_tool_bar($_SERVER['PHP_SELF'] . '?cidToEdit=' . $cidToEdit . $addToURL);
$claroline->display->body->appendContent($out);
echo $claroline->display->render();
示例12: array
$template->assign('templateMyCourses', $courseTreeView);
// User commands
$userCommands = array();
$userCommands[] = '<a href="' . $_SERVER['PHP_SELF'] . '" class="userCommandsItem">' . '<img src="' . get_icon_url('mycourses') . '" alt="" /> ' . get_lang('My course list') . '</a>' . "\n";
// 'Create Course Site' command. Only available for teacher.
if (claro_is_allowed_to_create_course()) {
$userCommands[] = '<a href="claroline/course/create.php" class="userCommandsItem">' . '<img src="' . get_icon_url('courseadd') . '" alt="" /> ' . get_lang('Create a course site') . '</a>' . "\n";
} elseif ($GLOBALS['currentUser']->isCourseCreator) {
$userCommands[] = '<span class="userCommandsItemDisabled">' . '<img src="' . get_icon_url('courseadd') . '" alt="" /> ' . get_lang('Create a course site') . '</span>' . "\n";
}
if (get_conf('allowToSelfEnroll', true)) {
$userCommands[] = '<a href="claroline/auth/courses.php?cmd=rqReg&categoryId=0" class="userCommandsItem">' . '<img src="' . get_icon_url('enroll') . '" alt="" /> ' . get_lang('Enrol on a new course') . '</a>' . "\n";
$userCommands[] = '<a href="claroline/auth/courses.php?cmd=rqUnreg" class="userCommandsItem">' . '<img src="' . get_icon_url('unenroll') . '" alt="" /> ' . get_lang('Remove course enrolment') . '</a>' . "\n";
}
$userCommands[] = '<a href="claroline/course/platform_courses.php" class="userCommandsItem">' . '<img src="' . get_icon_url('course') . '" alt="" /> ' . get_lang('All platform courses') . '</a>' . "\n";
$userCommands[] = '<img class="iconDefinitionList" src="' . get_icon_url('hot') . '" alt="' . get_lang('New items') . '" />' . ' ' . get_lang('New items') . ' ' . '(<a href="' . claro_htmlspecialchars(Url::Contextualize(get_path('clarolineRepositoryWeb') . 'notification_date.php')) . '" class="userCommandsItem">' . get_lang('to another date') . '</a>)' . (substr($lastUserAction, strlen($lastUserAction) - 8) == '00:00:00' ? ' <br />[' . claro_html_localised_date(get_locale('dateFormatNumeric'), strtotime($lastUserAction)) . ']' : '') . "\n";
$template->assign('userCommands', $userCommands);
// User profilebox
FromKernel::uses('display/userprofilebox.lib');
$userProfileBox = new UserProfileBox(false);
$template->assign('userProfileBox', $userProfileBox);
} else {
// Category browser
$categoryId = !empty($_REQUEST['categoryId']) ? (int) $_REQUEST['categoryId'] : 0;
$categoryBrowser = new CategoryBrowser($categoryId);
$templateCategoryBrowser = $categoryBrowser->getTemplate();
$template->assign('templateCategoryBrowser', $templateCategoryBrowser);
}
// Render
$claroline->display->body->setContent($template->render());
if (!(isset($_REQUEST['logout']) && isset($_SESSION['isVirtualUser']))) {
示例13: get_icon_url
print $target == "_self" ? ' selected="selected"' : "";
?>
>_self</option>
<option value="_top"<?php
print $target == "_top" ? ' selected="selected"' : "";
?>
>_top</option>
</select>
</div>
<div class="form-item file-upload form-menuitemicon">
<div class="image-preview">
<?php
if (isset($parameters["a_icon"])) {
?>
<img src="<?php
print get_icon_url($parameters["a_icon"]);
?>
" />
<?php
}
?>
</div>
<a href="#" class="choose-image-link">Choose icon image</a>
<input type="hidden" name="a_icon" class="form-text" value="<?php
print isset($parameters["a_icon"]) ? $parameters["a_icon"] : '';
?>
" />
</div>
<div class="form-item form-cssclasses">
<label for="img_class">CSS Classes</label>
<input type="text" name="class" id="img_class" class="form-text" value="<?php
示例14: get_lang
$output .= '<table class="claroTable emphaseLine" ' . 'width="100%" border="0" cellspacing="2">' . "\n" . '<thead>' . "\n" . '<tr align="center" valign="top">' . "\n" . '<th>' . get_lang('Title') . '</th>' . "\n" . '<th>' . get_lang('Visibility') . '</th>' . "\n" . '<th colspan="2">' . get_lang('Order') . '</th>' . "\n" . '</tr>' . "\n" . '</thead>' . "\n" . '<tbody>' . "\n";
if (is_array($portletList) && !empty($portletList)) {
// only used to hide first up and last down commands
$portletListSize = count($portletList);
$i = 0;
foreach ($portletList as $portlet) {
$i++;
$output .= "\n" . '<tr>' . "\n" . '<td>' . claro_htmlspecialchars(get_lang($portlet['name'])) . '</td>' . "\n";
if ($portlet['visibility'] == 'visible') {
$output .= "\n" . '<td align="center">' . "\n" . '<a href="' . claro_htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?cmd=exInvisible&label=' . claro_htmlspecialchars($portlet['label']))) . '">' . claro_html_icon('visible') . '</a>' . "\n" . '</td>' . "\n";
} else {
$output .= "\n" . '<td align="center">' . "\n" . '<a href="' . claro_htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?cmd=exVisible&label=' . claro_htmlspecialchars($portlet['label']))) . '">' . claro_html_icon('invisible') . '</a>' . "\n" . '</td>' . "\n";
}
if ($i > 1) {
$output .= '<td align="center">' . '<a href="' . claro_htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?label=' . claro_htmlspecialchars($portlet['label']) . '&cmd=exUp')) . '">' . '<img src="' . get_icon_url('move_up') . '" alt="' . get_lang('Move up') . '" />' . '</a>' . '</td>' . "\n";
} else {
$output .= '<td> </td>' . "\n";
}
if ($i < $portletListSize) {
$output .= '<td align="center">' . '<a href="' . claro_htmlspecialchars(Url::Contextualize($_SERVER['PHP_SELF'] . '?label=' . claro_htmlspecialchars($portlet['label']) . '&cmd=exDown')) . '">' . '<img src="' . get_icon_url('move_down') . '" alt="' . get_lang('Move down') . '" />' . '</a>' . '</td>' . "\n";
} else {
$output .= '<td> </td>' . "\n";
}
$output .= '</tr>' . "\n";
}
} else {
$output .= '<tr><td colspan="4">' . get_lang('Empty') . '</tr></td>' . "\n";
}
$output .= "\n" . '</tbody>' . "\n" . '</table>' . "\n";
$claroline->display->body->appendContent($output);
echo $claroline->display->render();
示例15: urlencode
} else {
$out .= '<td align="left" class="' . $class_css . '" >' . $module['name'] . '</td>' . "\n";
}
//reorder column
//up
$out .= '<td align="center">' . "\n";
if (!($iteration == 1)) {
$out .= '<a href="module_dock.php?cmd=up&module_id=' . $module['id'] . '&dock=' . urlencode($dock) . '">' . '<img src="' . get_icon_url('move_up') . '" alt="' . get_lang('Move up') . '" />' . '</a>' . "\n";
} else {
$out .= ' ';
}
$out .= '</td>' . "\n";
//down
$out .= '<td align="center">' . "\n";
if ($iteration != $enditeration) {
$out .= '<a href="module_dock.php?cmd=down&module_id=' . $module['id'] . '&dock=' . urlencode($dock) . '">' . '<img src="' . get_icon_url('move_down') . '" alt="' . get_lang('Move down') . '" />' . '</a>';
} else {
$out .= ' ';
}
$out .= '</td>' . "\n";
//remove links
$out .= '<td align="center">' . "\n" . '<a href="module_dock.php?cmd=remove&module_id=' . $module['id'] . '&dock=' . urlencode($dock) . '">' . '<img src="' . get_icon_url('delete') . '" alt="' . get_lang('Delete') . '" />' . '</a>' . '</td>' . "\n";
$iteration++;
}
//end table...
$out .= '</tbody>' . '</table>';
//Display BOTTOM Pager list
$out .= $myPager->disp_pager_tool_bar('module_dock.php?dock=' . $dock);
}
$claroline->display->body->appendContent($out);
echo $claroline->display->render();