本文整理汇总了PHP中HtmlPage::addHtml方法的典型用法代码示例。如果您正苦于以下问题:PHP HtmlPage::addHtml方法的具体用法?PHP HtmlPage::addHtml怎么用?PHP HtmlPage::addHtml使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HtmlPage
的用法示例。
在下文中一共展示了HtmlPage::addHtml方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: db_error
/** Display the error code and error message to the user if a database error occurred.
* The error must be read by the child method. This method will call a backtrace so
* you see the script and specific line in which the error occurred.
* @param $code The database error code that will be displayed.
* @param $message The database error message that will be displayed.
* @return Will exit the script and returns a html output with the error informations.
*/
public function db_error($code = 0, $message = '')
{
global $g_root_path, $gMessage, $gPreferences, $gCurrentOrganization, $gDebug, $gL10n;
$htmlOutput = '';
$backtrace = $this->getBacktrace();
// Rollback on open transaction
if ($this->transactions > 0) {
$this->rollback();
}
if (!headers_sent() && isset($gPreferences) && defined('THEME_SERVER_PATH')) {
// create html page object
$page = new HtmlPage($gL10n->get('SYS_DATABASE_ERROR'));
}
// transform the database error to html
$error_string = '<div style="font-family: monospace;">
<p><b>S Q L - E R R O R</b></p>
<p><b>CODE:</b> ' . $code . '</p>
' . $message . '<br /><br />
<b>B A C K T R A C E</b><br />
' . $backtrace . '
</div>';
$htmlOutput = $error_string;
// in debug mode show error in log file
if ($gDebug === 1) {
error_log($code . ': ' . $message);
}
// display database error to user
if (!headers_sent() && isset($gPreferences) && defined('THEME_SERVER_PATH')) {
$page->addHtml($htmlOutput);
$page->show();
} else {
echo $htmlOutput;
}
exit;
}
示例2: unset
$form_values = $_SESSION['import_csv_request'];
unset($_SESSION['import_csv_request']);
if (!isset($form['first_row'])) {
$form_values['first_row'] = 0;
}
} else {
$form_values['first_row'] = 1;
$form_values['import_coding'] = 'iso-8859-1';
$form_values['import_role_id'] = 0;
}
// create html page object
$page = new HtmlPage($headline);
// add back link to module menu
$importCsvConfigMenu = $page->getMenu();
$importCsvConfigMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png');
$page->addHtml('<p class="lead">' . $gL10n->get('MEM_ASSIGN_FIELDS_DESC') . '</p>');
// show form
$form = new HtmlForm('import_assign_fields_form', $g_root_path . '/adm_program/modules/members/import_csv.php', $page, array('type' => 'vertical'));
$form->addCheckbox('first_row', $gL10n->get('MEM_FIRST_LINE_COLUMN_NAME'), $form_values['first_row']);
$htmlFieldTable = '
<table class="table table-condensed">
<thead>
<tr>
<th>' . $gL10n->get('MEM_PROFILE_FIELD') . '</th>
<th>' . $gL10n->get('MEM_FILE_COLUMN') . '</th>
</tr>
</thead>';
$line = reset($_SESSION['file_lines']);
$arrayCsvColumns = explode($_SESSION['value_separator'], $line);
$category = '';
// jedes Benutzerfeld aus der Datenbank auflisten
示例3: HtmlPage
}
// Html-Kopf ausgeben
if ($getLinkId > 0) {
$headline = $gL10n->get('SYS_EDIT_VAR', $getHeadline);
} else {
$headline = $gL10n->get('SYS_CREATE_VAR', $getHeadline);
}
// add current url to navigation stack
$gNavigation->addUrl(CURRENT_URL, $headline);
// create html page object
$page = new HtmlPage($headline);
// add back link to module menu
$linksCreateMenu = $page->getMenu();
$linksCreateMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png');
// Html des Modules ausgeben
if ($getLinkId > 0) {
$modeEditOrCreate = '3';
} else {
$modeEditOrCreate = '1';
}
// show form
$form = new HtmlForm('weblinks_edit_form', $g_root_path . '/adm_program/modules/links/links_function.php?lnk_id=' . $getLinkId . '&headline=' . $getHeadline . '&mode=' . $modeEditOrCreate, $page);
$form->addInput('lnk_name', $gL10n->get('LNK_LINK_NAME'), $link->getValue('lnk_name'), array('maxLength' => 250, 'property' => FIELD_REQUIRED));
$form->addInput('lnk_url', $gL10n->get('LNK_LINK_ADDRESS'), $link->getValue('lnk_url'), array('maxLength' => 2000, 'property' => FIELD_REQUIRED));
$form->addSelectBoxForCategories('lnk_cat_id', $gL10n->get('SYS_CATEGORY'), $gDb, 'LNK', 'EDIT_CATEGORIES', array('property' => FIELD_REQUIRED, 'defaultValue' => $link->getValue('lnk_cat_id')));
$form->addEditor('lnk_description', $gL10n->get('SYS_DESCRIPTION'), $link->getValue('lnk_description'), array('height' => '150px'));
$form->addSubmitButton('btn_save', $gL10n->get('SYS_SAVE'), array('icon' => THEME_PATH . '/icons/disk.png'));
$form->addHtml(admFuncShowCreateChangeInfoById($link->getValue('lnk_usr_id_create'), $link->getValue('lnk_timestamp_create'), $link->getValue('lnk_usr_id_change'), $link->getValue('lnk_timestamp_change')));
// add form to html page and show page
$page->addHtml($form->show(false));
$page->show();
示例4: HtmlNavbar
}
$page->setTitle($title);
$page->setHeadline($headline);
// Only for active members of a role
if ($getShowMembers === 0) {
// create filter menu with elements for start-/enddate
$filterNavbar = new HtmlNavbar('menu_list_filter', null, null, 'filter');
$form = new HtmlForm('navbar_filter_form', $g_root_path . '/adm_program/modules/lists/lists_show.php', $page, array('type' => 'navbar', 'setFocus' => false));
$form->addInput('date_from', $gL10n->get('LST_ROLE_MEMBERSHIP_IN_PERIOD'), $dateFrom, array('type' => 'date', 'maxLength' => 10));
$form->addInput('date_to', $gL10n->get('LST_ROLE_MEMBERSHIP_TO'), $dateTo, array('type' => 'date', 'maxLength' => 10));
$form->addInput('lst_id', '', $getListId, array('property' => FIELD_HIDDEN));
$form->addInput('rol_ids', '', $getRoleIds, array('property' => FIELD_HIDDEN));
$form->addInput('show_members', '', $getShowMembers, array('property' => FIELD_HIDDEN));
$form->addSubmitButton('btn_send', $gL10n->get('SYS_OK'));
$filterNavbar->addForm($form->show(false));
$page->addHtml($filterNavbar->show(false));
}
$page->addHtml('<h5>' . $htmlSubHeadline . '</h5>');
$page->addJavascript('
$("#export_list_to").change(function () {
if($(this).val().length > 1) {
var result = $(this).val();
$(this).prop("selectedIndex",0);
self.location.href = "' . $g_root_path . '/adm_program/modules/lists/lists_show.php?" +
"lst_id=' . $getListId . '&rol_ids=' . $getRoleIds . '&mode=" + result + "&show_members=' . $getShowMembers . '&date_from=' . $getDateFrom . '&date_to=' . $getDateTo . '";
}
});
$("#menu_item_print_view").click(function () {
window.open("' . $g_root_path . '/adm_program/modules/lists/lists_show.php?lst_id=' . $getListId . '&rol_ids=' . $getRoleIds . '&mode=print&show_members=' . $getShowMembers . '&date_from=' . $getDateFrom . '&date_to=' . $getDateTo . '", "_blank");
});', true);
示例5: DateTimeExtended
$iconText = $gL10n->get('SYS_NOT_MEMBER_OF_ORGANIZATION', $gCurrentOrganization->getValue('org_longname'));
}
// Haekchen setzen ob jemand Mitglied ist oder nicht
if ($user['member_this_role']) {
$htmlMemberStatus = '<input type="checkbox" id="member_' . $user['usr_id'] . '" name="member_' . $user['usr_id'] . '" checked="checked" class="memlist_checkbox memlist_member" /><b id="loadindicator_member_' . $user['usr_id'] . '"></b>';
} else {
$htmlMemberStatus = '<input type="checkbox" id="member_' . $user['usr_id'] . '" name="member_' . $user['usr_id'] . '" class="memlist_checkbox memlist_member" /><b id="loadindicator_member_' . $user['usr_id'] . '"></b>';
}
if (strlen($addressText) > 1) {
$htmlAddress = '<img class="admidio-icon-info" src="' . THEME_PATH . '/icons/map.png" alt="' . $addressText . '" title="' . $addressText . '" />';
}
// Haekchen setzen ob jemand Leiter ist oder nicht
if ($user['leader_this_role']) {
$htmlRoleLeader = '<input type="checkbox" id="leader_' . $user['usr_id'] . '" name="leader_' . $user['usr_id'] . '" checked="checked" class="memlist_checkbox memlist_leader" />';
} else {
$htmlRoleLeader = '<input type="checkbox" id="leader_' . $user['usr_id'] . '" name="leader_' . $user['usr_id'] . '" class="memlist_checkbox memlist_leader" />';
}
// Geburtstag nur ausgeben wenn bekannt
if (strlen($user['birthday']) > 0) {
$birthdayDate = new DateTimeExtended($user['birthday'], 'Y-m-d');
$htmlBirthday = $birthdayDate->format($gPreferences['system_date']);
}
// create array with all column values
$columnValues = array(array('value' => '<img class="admidio-icon-info" src="' . THEME_PATH . '/icons/' . $icon . '" alt="' . $iconText . '" title="' . $iconText . '" />', 'order' => $memberOfThisOrganization), $htmlMemberStatus, '<a href="' . $g_root_path . '/adm_program/modules/profile/profile.php?user_id=' . $user['usr_id'] . '">' . $user['last_name'] . '</a>', '<a href="' . $g_root_path . '/adm_program/modules/profile/profile.php?user_id=' . $user['usr_id'] . '">' . $user['first_name'] . '</a>', array('value' => $htmlAddress, 'order' => $addressText), $htmlBirthday, $htmlRoleLeader . '<b id="loadindicator_leader_' . $user['usr_id'] . '"></b>');
$table->addRowByArray($columnValues, 'userid_' . $user['usr_id']);
}
//End While
$page->addHtml($table->show(false));
$page->addHtml('<p>' . $gL10n->get('SYS_CHECKBOX_AUTOSAVE') . '</p>');
$page->show();
}
示例6: HtmlForm
}
// show link to edit profile
$profileMenu->addItem('menu_item_new_entry', $g_root_path . '/adm_program/modules/inventory/item_new.php?item_id=' . $inventory->getValue('inv_id'), $gL10n->get('MEM_EDIT_USER'), 'edit.png');
$profileMenu->addItem('menu_item_extras', null, $gL10n->get('SYS_MORE_FEATURES'), null, 'right');
if ($gCurrentUser->isWebmaster()) {
// show link to maintain profile fields
$profileMenu->addItem('menu_item_maintain_profile_fields', $g_root_path . '/adm_program/modules/preferences/fields.php', $gL10n->get('PRO_MAINTAIN_PROFILE_FIELDS'), 'application_form_edit.png', 'right', 'menu_item_extras');
// show link to system preferences of weblinks
$profileMenu->addItem('menu_item_preferences_links', $g_root_path . '/adm_program/modules/preferences/preferences.php?show_option=profile', $gL10n->get('SYS_MODULE_PREFERENCES'), 'options.png', 'right', 'menu_item_extras');
}
// *******************************************************************************
// User data block
// *******************************************************************************
$page->addHtml('
<div class="panel panel-default" id="user_data_panel">
<div class="panel-heading">' . $gL10n->get('SYS_MASTER_DATA') . '</div>
<div class="panel-body row">
<div class="col-sm-8">');
// create a static form
$form = new HtmlForm('profile_user_data_form', null);
$bAddressOutput = false;
// Merker, ob die Adresse schon angezeigt wurde
// Schleife ueber alle Felder der Stammdaten
foreach ($gInventoryFields->mInventoryFields as $field) {
// nur Felder der Stammdaten anzeigen
if ($field->getValue('cat_name_intern') === 'MASTER_DATA' && $field->getValue('inv_hidden') == 0) {
switch ($field->getValue('inf_name_intern')) {
case 'ROOM_ID':
$field = getFieldCode($field->getValue('inf_name_intern'), $getItemId);
if ($gDbType === 'mysql') {
$sql = 'SELECT CONCAT(room_name, \' (\', room_capacity, \'+\', IFNULL(room_overhang, \'0\'), \')\') as name
示例7: elseif
else {
$("<p/>").html("<div class=\\"alert alert-danger\\"><span class=\\"glyphicon glyphicon-exclamation-sign\\"></span>' . $gL10n->get('PHO_PHOTO_UPLOAD_NOT_SUCCESSFUL') . '</div>").appendTo("#files");
}
}
}).prop("disabled", !$.support.fileInput)
.parent().addClass($.support.fileInput ? undefined : "disabled");
});', true);
$page->addHtml('
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">' . $headline . '</h4>
</div>
<div class="modal-body">
<p class="lead">' . $gL10n->get('PHO_PHOTO_UPLOAD_DESC', $photoAlbum->getValue('pho_name')) . '</p>
<span class="btn btn-primary fileinput-button"><img
src="' . THEME_PATH . '/icons/photo_upload.png" alt="' . $gL10n->get('PHO_UPLOAD_PHOTOS') . '" />' . $gL10n->get('PHO_SELECT_FOTOS') . '
<input id="fileupload" type="file" name="files[]" multiple>
</span>
<br>
<br>
<div id="progress" class="progress">
<div class="progress-bar progress-bar-success"></div>
</div>
<div id="files" class="files"></div>
</div>');
$page->show();
} elseif ($getMode == 'upload_files') {
// upload files to temp upload folder
$uploadHandler = new UploadHandlerPhoto(array('upload_dir' => SERVER_PATH . '/adm_my_files/photos/upload/', 'upload_url' => $g_root_path . '/adm_my_files/photos/upload/', 'image_versions' => array(), 'accept_file_types' => '/\\.(jpe?g|png)$/i'), true, array('accept_file_types' => $gL10n->get('PHO_PHOTO_FORMAT_INVALID')));
}
示例8: TableMessage
$receiverName = $user->getValue('FIRST_NAME') . ' ' . $user->getValue('LAST_NAME');
$message = new TableMessage($gDb, $row['msg_id']);
++$key;
$messageAdministration = $part1 . $key . '&name=' . urlencode($message->getValue('msg_subject')) . '&database_id=' . $message->getValue('msg_id') . $part2;
$table->addRowByArray(array('<a class="admidio-icon-link" ' . $href . $message->getValue('msg_id') . '">
<img class="admidio-icon-info" src="' . THEME_PATH . '/icons/pm.png" alt="' . $gL10n->get('PMS_MESSAGE') . '" title="' . $gL10n->get('PMS_MESSAGE') . '" />', '<a ' . $href . $message->getValue('msg_id') . '">' . $message->getValue('msg_subject') . '</a>', $receiverName, $message->getValue('msg_timestamp'), $messageAdministration), 'row_message_' . $key, array('style' => 'font-weight: bold'));
}
}
// find all read or own PM messages
$statement = $modulemessages->msgGetUser($gCurrentUser->getValue('usr_id'));
if (isset($statement)) {
while ($row = $statement->fetch()) {
if ($row['msg_usr_id_sender'] == $gCurrentUser->getValue('usr_id')) {
$user = new User($gDb, $gProfileFields, $row['msg_usr_id_receiver']);
} else {
$user = new User($gDb, $gProfileFields, $row['msg_usr_id_sender']);
}
$receiverName = $user->getValue('FIRST_NAME') . ' ' . $user->getValue('LAST_NAME');
$message = new TableMessage($gDb, $row['msg_id']);
++$key;
$messageAdministration = $part1 . $key . '&name=' . urlencode($message->getValue('msg_subject')) . '&database_id=' . $message->getValue('msg_id') . $part2;
$table->addRowByArray(array('<a class="admidio-icon-link" ' . $href . $message->getValue('msg_id') . '">
<img class="admidio-icon-info" src="' . THEME_PATH . '/icons/pm.png" alt="' . $gL10n->get('PMS_MESSAGE') . '" title="' . $gL10n->get('PMS_MESSAGE') . '" />', '<a ' . $href . $message->getValue('msg_id') . '">' . $message->getValue('msg_subject') . '</a>', $receiverName, $message->getValue('msg_timestamp'), $messageAdministration), 'row_message_' . $key);
}
}
// special settings for the table
$table->setDatatablesOrderColumns(array(array(4, 'desc')));
// add table to the form
$page->addHtml($table->show(false));
// add form to html page and show page
$page->show();
示例9: HtmlPage
$gMessage->show($gL10n->get('MEM_NO_CHANGES'));
}
}
// create html page object
$page = new HtmlPage($headline);
// add back link to module menu
$profileFieldHistoryMenu = $page->getMenu();
$profileFieldHistoryMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png');
// create filter menu with input elements for Startdate and Enddate
$FilterNavbar = new HtmlNavbar('menu_profile_field_history_filter', null, null, 'filter');
$form = new HtmlForm('navbar_filter_form', $g_root_path . '/adm_program/modules/members/profile_field_history.php?usr_id=' . $getUserId, $page, array('type' => 'navbar', 'setFocus' => false));
$form->addInput('filter_date_from', $gL10n->get('SYS_START'), $dateFromHtml, array('type' => 'date', 'maxLength' => 10));
$form->addInput('filter_date_to', $gL10n->get('SYS_END'), $dateToHtml, array('type' => 'date', 'maxLength' => 10));
$form->addSubmitButton('btn_send', $gL10n->get('SYS_OK'));
$FilterNavbar->addForm($form->show(false));
$page->addHtml($FilterNavbar->show(false));
$table = new HtmlTable('profile_field_history_table', $page, true, true);
$columnHeading = array();
if ($getUserId === 0) {
$table->setDatatablesOrderColumns(array(array(6, 'desc')));
$columnHeading[] = $gL10n->get('SYS_NAME');
} else {
$table->setDatatablesOrderColumns(array(array(5, 'desc')));
}
$columnHeading[] = $gL10n->get('SYS_FIELD');
$columnHeading[] = $gL10n->get('SYS_NEW_VALUE');
$columnHeading[] = $gL10n->get('SYS_PREVIOUS_VALUE');
$columnHeading[] = $gL10n->get('SYS_EDITED_BY');
$columnHeading[] = $gL10n->get('SYS_CHANGED_AT');
$table->addRowHeadingByArray($columnHeading);
while ($row = $fieldHistoryStatement->fetch()) {
示例10: TableWeblink
$weblink = new TableWeblink($gDb, $getLinkId);
// Wenn kein Link gefunden wurde Fehler ausgeben
if (strlen($weblink->getValue('lnk_url')) === 0 || !$gValidLogin && $weblink->getValue('cat_hidden') == 1) {
$gMessage->show($gL10n->get('SYS_INVALID_PAGE_VIEW'));
}
// Wenn Link gültig ist, Counter um eine Position erhöhen
$weblink->setValue('lnk_counter', $weblink->getValue('lnk_counter') + 1);
$weblink->save();
// MR: Neue Prüfung für direkte Weiterleitung oder mit Anzeige
if ($gPreferences['weblinks_redirect_seconds'] > 0) {
// create html page object
$page = new HtmlPage($gL10n->get('LNK_REDIRECT'));
// add special header for automatic redirection after x seconds
$page->addHeader('<meta http-equiv="refresh" content="' . $gPreferences['weblinks_redirect_seconds'] . '; url=' . $weblink->getValue('lnk_url') . '">');
// Counter zählt die sekunden bis zur Weiterleitung runter
$page->addJavascript('
function countDown(init) {
if (init || --document.getElementById("counter").firstChild.nodeValue > 0 ) {
window.setTimeout( "countDown()" , 1000 );
}
};
countDown(true);');
// Html des Modules ausgeben
$page->addHtml('
<p class="lead">' . $gL10n->get('LNK_REDIRECT_DESC', $gCurrentOrganization->getValue('org_longname'), '<span id="counter">' . $gPreferences['weblinks_redirect_seconds'] . '</span>', '<strong>' . $weblink->getValue('lnk_name') . '</strong> (' . $weblink->getValue('lnk_url') . ')', '<a href="' . $weblink->getValue('lnk_url') . '" target="_self">hier</a>') . '
</p>');
// show html of complete page
$page->show();
} else {
header('Location:' . $weblink->getValue('lnk_url'));
}
示例11: addColumn
$("#btn_show_list").click(function() {send("show");});
for(var counter = 0; counter < ' . $default_column_rows . '; counter++) {
addColumn();
}
});', true);
// if mylist was not called directly then show link to navigate to previous page
if ($gNavigation->count() > 1) {
// add back link to module menu
$myListMenu = $page->getMenu();
$myListMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png');
}
$page->addHtml('
<form id="form_mylist" class="form-horizontal" action="' . $g_root_path . '/adm_program/modules/lists/mylist_prepare.php" method="post">
<p><b>1.</b> ' . $gL10n->get('LST_CHANGE_LIST') . '</p>
<div class="form-group">
<label class="col-sm-3 control-label" for="lists_config">' . $gL10n->get('LST_CONFIGURATION_LIST') . '</label>
<div class="col-sm-9">
<select class="form-control" size="1" id="lists_config" name="lists_config" onchange="loadList()">
<option ');
if ($getListId == 0) {
$selected = ' selected="selected" ';
} else {
$selected = '';
}
$page->addHtml($selected . ' value="0">' . $gL10n->get('LST_CREATE_NEW_CONFIGURATION') . '</option>');
// alle relevanten Konfigurationen fuer den User suchen
$sql = 'SELECT * FROM ' . TBL_LISTS . '
WHERE lst_org_id = ' . $gCurrentOrganization->getValue('org_id') . '
AND ( lst_usr_id = ' . $gCurrentUser->getValue('usr_id') . '
OR lst_global = 1)
ORDER BY lst_global ASC, lst_name ASC, lst_timestamp DESC ';
示例12: elseif
$photoPresenterMenu = $page->getMenu();
// if you have no popup or colorbox then show a button back to the album
if ($gPreferences['photo_show_mode'] == 2) {
$photoPresenterMenu->addItem('menu_item_back_to_album', $g_root_path . '/adm_program/modules/photos/photos.php?pho_id=' . $getPhotoId, $gL10n->get('PHO_BACK_TO_ALBUM'), 'application_view_tile.png');
}
// show link to navigate to next and previous photos
if ($previousImage > 0) {
$photoPresenterMenu->addItem('menu_item_previous_photo', $urlPreviousImage, $gL10n->get('PHO_PREVIOUS_PHOTO'), 'back.png');
}
if ($nextImage <= $photoAlbum->getValue('pho_quantity')) {
$photoPresenterMenu->addItem('menu_item_next_photo', $urlNextImage, $gL10n->get('PHO_NEXT_PHOTO'), 'forward.png');
}
}
// Show photo with link to next photo
if ($nextImage <= $photoAlbum->getValue('pho_quantity')) {
$page->addHtml('<div class="admidio-img-presenter"><a href="' . $urlNextImage . '"><img src="' . $urlCurrentImage . '" alt="Foto"></a></div>');
} else {
$page->addHtml('<div class="admidio-img-presenter"><img src="' . $urlCurrentImage . '" alt="' . $gL10n->get('SYS_PHOTO') . '" /></div>');
}
if ($gPreferences['photo_show_mode'] == 0) {
// in popup mode show buttons for prev, next and close
$page->addHtml('
<div class="btn-group">
<button class="btn btn-default" onclick="window.location.href=\'' . $urlPreviousImage . '\'"><img
src="' . THEME_PATH . '/icons/back.png" alt="' . $gL10n->get('PHO_PREVIOUS_PHOTO') . '" />' . $gL10n->get('PHO_PREVIOUS_PHOTO') . '</button>
<button class="btn btn-default" onclick="parent.window.close()"><img
src="' . THEME_PATH . '/icons/door_in.png" alt="' . $gL10n->get('SYS_CLOSE_WINDOW') . '" />' . $gL10n->get('SYS_CLOSE_WINDOW') . '</button>
<button class="btn btn-default" onclick="window.location.href=\'' . $urlNextImage . '\'"><img
src="' . THEME_PATH . '/icons/forward.png" alt="' . $gL10n->get('PHO_NEXT_PHOTO') . '" />' . $gL10n->get('PHO_NEXT_PHOTO') . '</button>
</div>');
} elseif ($gPreferences['photo_show_mode'] == 2) {
示例13: urlencode
}
$htmlMoveRow = ' ';
if ($category->getValue('cat_system') == 0 || $getType !== 'USF') {
$htmlMoveRow = '<a class="admidio-icon-link" href="javascript:moveCategory(\'up\', ' . $category->getValue('cat_id') . ')"><img
src="' . THEME_PATH . '/icons/arrow_up.png" alt="' . $gL10n->get('CAT_MOVE_UP', $getTitle) . '" title="' . $gL10n->get('CAT_MOVE_UP', $getTitle) . '" /></a>
<a class="admidio-icon-link" href="javascript:moveCategory(\'down\', ' . $category->getValue('cat_id') . ')"><img
src="' . THEME_PATH . '/icons/arrow_down.png" alt="' . $gL10n->get('CAT_MOVE_DOWN', $getTitle) . '" title="' . $gL10n->get('CAT_MOVE_DOWN', $getTitle) . '" /></a>';
}
$htmlHideCategory = ' ';
if ($category->getValue('cat_hidden') == 1) {
$htmlHideCategory = '<img class="admidio-icon-info" src="' . THEME_PATH . '/icons/user_key.png" alt="' . $gL10n->get('SYS_VISIBLE_TO_USERS', $getTitle) . '" title="' . $gL10n->get('SYS_VISIBLE_TO_USERS', $getTitle) . '" />';
}
$htmlDefaultCategory = ' ';
if ($category->getValue('cat_default') == 1) {
$htmlDefaultCategory = '<img class="admidio-icon-info" src="' . THEME_PATH . '/icons/star.png" alt="' . $gL10n->get('CAT_DEFAULT_VAR', $getTitle) . '" title="' . $gL10n->get('CAT_DEFAULT_VAR', $getTitle) . '" />';
}
$categoryAdministration = '<a class="admidio-icon-link" href="' . $g_root_path . '/adm_program/modules/categories/categories_new.php?cat_id=' . $category->getValue('cat_id') . '&type=' . $getType . '&title=' . $getTitle . '"><img
src="' . THEME_PATH . '/icons/edit.png" alt="' . $gL10n->get('SYS_EDIT') . '" title="' . $gL10n->get('SYS_EDIT') . '" /></a>';
if ($category->getValue('cat_system') == 1) {
$categoryAdministration .= '<img class="admidio-icon-link" src="' . THEME_PATH . '/icons/dummy.png" alt="dummy" />';
} else {
$categoryAdministration .= '<a class="admidio-icon-link" data-toggle="modal" data-target="#admidio_modal"
href="' . $g_root_path . '/adm_program/system/popup_message.php?type=cat&element_id=row_' . $category->getValue('cat_id') . '&name=' . urlencode($category->getValue('cat_name')) . '&database_id=' . $category->getValue('cat_id') . '&database_id_2=' . $getType . '"><img
src="' . THEME_PATH . '/icons/delete.png" alt="' . $gL10n->get('SYS_DELETE') . '" title="' . $gL10n->get('SYS_DELETE') . '" /></a>';
}
// create array with all column values
$columnValues = array('<a href="' . $g_root_path . '/adm_program/modules/categories/categories_new.php?cat_id=' . $category->getValue('cat_id') . '&type=' . $getType . '&title=' . $getTitle . '">' . $category->getValue('cat_name') . '</a>', $htmlMoveRow, $htmlHideCategory, $htmlDefaultCategory, $categoryAdministration);
$categoriesOverview->addRowByArray($columnValues, 'row_' . $category->getValue('cat_id'));
}
$page->addHtml($categoriesOverview->show(false));
$page->show();
示例14: elseif
// show link to system preferences of weblinks
$DatesMenu->addItem('admMenuItemPreferencesLinks', $g_root_path . '/adm_program/modules/preferences/preferences.php?show_option=events', $gL10n->get('SYS_MODULE_PREFERENCES'), 'options.png', 'right');
} elseif ($gCurrentUser->editDates()) {
// if no calendar selectbox is shown, then show link to edit calendars
$DatesMenu->addItem('admMenuItemCategories', '/adm_program/modules/categories/categories.php?type=DAT&title=' . $gL10n->get('DAT_CALENDAR'), $gL10n->get('DAT_MANAGE_CALENDARS'), 'application_view_tile.png');
}
}
// create filter menu with elements for calendar and start-/enddate
$FilterNavbar = new HtmlNavbar('menu_dates_filter', null, null, 'filter');
$form = new HtmlForm('navbar_filter_form', $g_root_path . '/adm_program/modules/dates/dates.php?headline=' . $getHeadline, $page, array('type' => 'navbar', 'setFocus' => false));
$form->addSelectBoxForCategories('cat_id', $gL10n->get('DAT_CALENDAR'), $gDb, 'DAT', 'FILTER_CATEGORIES', array('defaultValue' => $dates->getParameter('cat_id')));
$form->addInput('date_from', $gL10n->get('SYS_START'), $dates->getParameter('dateStartFormatAdmidio'), array('type' => 'date', 'maxLength' => 10));
$form->addInput('date_to', $gL10n->get('SYS_END'), $dates->getParameter('dateEndFormatAdmidio'), array('type' => 'date', 'maxLength' => 10));
$form->addSubmitButton('btn_send', $gL10n->get('SYS_OK'));
$FilterNavbar->addForm($form->show(false));
$page->addHtml($FilterNavbar->show(false));
}
if ($datesTotalCount == 0) {
// No events found
if ($getId > 0) {
$page->addHtml('<p>' . $gL10n->get('SYS_NO_ENTRY') . '</p>');
} else {
$page->addHtml('<p>' . $gL10n->get('SYS_NO_ENTRIES') . '</p>');
}
} else {
// Output table header for compact view
if ($getViewMode === 'compact') {
$compactTable = new HtmlTable('events_compact_table', $page, true, true);
$columnHeading = array(' ', $gL10n->get('SYS_START'), $gL10n->get('DAT_DATE'), $gL10n->get('SYS_PARTICIPANTS'), $gL10n->get('DAT_LOCATION'));
$compactTable->addRowHeadingByArray($columnHeading);
}
示例15: HtmlPage
}
if ($getMode === 1) {
// create html page object
$page = new HtmlPage($gL10n->get('MEM_REMOVE_USER'));
// add back link to module menu
$messageMenu = $page->getMenu();
$messageMenu->addItem('menu_item_back', $gNavigation->getPreviousUrl(), $gL10n->get('SYS_BACK'), 'back.png');
$page->addHtml('
<div class="message">
<p class="lead">
<img src="' . THEME_PATH . '/icons/profile.png" alt="' . $gL10n->get('SYS_FORMER') . '" />
' . $gL10n->get('MEM_MAKE_FORMER') . '<br /><br />
<img src="' . THEME_PATH . '/icons/delete.png" alt="' . $gL10n->get('MEM_REMOVE_USER') . '" />
' . $gL10n->get('MEM_REMOVE_USER_DESC', $gL10n->get('SYS_DELETE')) . '
</p>
<button id="btnFormer" type="button" class="btn btn-primary"
onclick="self.location.href=\'' . $g_root_path . '/adm_program/modules/members/members_function.php?usr_id=' . $getUserId . '&mode=2\'"><img
src="' . THEME_PATH . '/icons/profile.png" alt="' . $gL10n->get('SYS_FORMER') . '" /> ' . $gL10n->get('SYS_FORMER') . '</button>
<button id="btnDelete" type="button" class="btn btn-primary"
onclick="self.location.href=\'' . $g_root_path . '/adm_program/modules/members/members_function.php?usr_id=' . $getUserId . '&mode=3\'"><img
src="' . THEME_PATH . '/icons/delete.png" alt="' . $gL10n->get('SYS_DELETE') . '" /> ' . $gL10n->get('SYS_DELETE') . '</button>
</div>');
$page->show();
exit;
} elseif ($getMode === 2) {
// User NUR aus der aktuellen Organisation entfernen
// Es duerfen keine Webmaster entfernt werden
if (!$gCurrentUser->isWebmaster() && $user->isWebmaster()) {
$gMessage->show($gL10n->get('SYS_NO_RIGHTS'));