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


PHP HtmlPage::hideThemeHtml方法代码示例

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


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

示例1: HtmlTable

     // headline for PDF
     $pdf->SetHeaderData('', '', $headline, '');
     // set font
     $pdf->SetFont('times', '', 10);
     // add a page
     $pdf->AddPage();
     // Create table object for display
     $table = new HtmlTable('adm_lists_table', $pdf, $hoverRows, $datatable, $classTable);
     $table->addAttribute('border', '1');
 } elseif ($getMode === 'html') {
     $datatable = true;
     $hoverRows = true;
     // create html page object
     $page = new HtmlPage();
     if ($getFullScreen) {
         $page->hideThemeHtml();
     }
     $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));
开发者ID:martinbrylski,项目名称:admidio,代码行数:31,代码来源:lists_show.php

示例2: show

 /**
  * Create a html page if necessary and show the message with the configured buttons.
  * @param string $content  The message text that should be shown. The content could have html.
  * @param string $headline Optional a headline for the message. Default will be SYS_NOTE.
  */
 public function show($content, $headline = '')
 {
     // noetig, da dies bei den includes benoetigt wird
     global $gDb, $gL10n, $page;
     $html = '';
     // first perform a rollback in database if there is an open transaction
     $gDb->rollback();
     // Ueberschrift setzen, falls diese vorher nicht explizit gesetzt wurde
     if ($headline === '') {
         $headline = $gL10n->get('SYS_NOTE');
     }
     // Variablen angeben
     if (!$this->inline) {
         // nur pruefen, wenn vorher nicht schon auf true gesetzt wurde
         $this->inline = headers_sent();
     }
     if (!$this->inline) {
         // create html page object
         $page = new HtmlPage($headline);
         $page->hideMenu();
         if (!$this->includeThemeBody) {
             // don't show custom html of the current theme
             $page->hideThemeHtml();
         }
         // forward to next page after x seconds
         if ($this->timer > 0) {
             $page->addJavascript('window.setTimeout("window.location.href=\'' . $this->forwardUrl . '\'", ' . $this->timer . ');');
         }
     } elseif (!$this->modalWindowMode) {
         header('Content-type: text/html; charset=utf-8');
         $html .= '<h1>' . $headline . '</h1>';
     }
     // create html for buttons
     $htmlButtons = '';
     if ($this->showButtons) {
         if ($this->forwardUrl !== '') {
             if ($this->showYesNoButtons) {
                 $htmlButtons .= '
                     <button id="admButtonYes" class="btn" type="button" onclick="self.location.href=\'' . $this->forwardUrl . '\'">
                         <img src="' . THEME_PATH . '/icons/ok.png" alt="' . $gL10n->get('SYS_YES') . '" />
                         &nbsp;&nbsp;' . $gL10n->get('SYS_YES') . '&nbsp;&nbsp;&nbsp;
                     </button>
                     <button id="admButtonNo" class="btn" type="button" onclick="history.back()">
                         <img src="' . THEME_PATH . '/icons/error.png" alt="' . $gL10n->get('SYS_NO') . '" />
                         &nbsp;' . $gL10n->get('SYS_NO') . '
                     </button>';
             } else {
                 // Wenn weitergeleitet wird, dann auch immer einen Weiter-Button anzeigen
                 $htmlButtons .= '
                     <a class="btn" href="' . $this->forwardUrl . '">' . $gL10n->get('SYS_NEXT') . '
                         <img src="' . THEME_PATH . '/icons/forward.png" alt="' . $gL10n->get('SYS_NEXT') . '"
                             title="' . $gL10n->get('SYS_NEXT') . '" />
                     </a>';
             }
         } else {
             // Wenn nicht weitergeleitet wird, dann immer einen Zurueck-Button anzeigen
             // bzw. ggf. einen Fenster-Schließen-Button
             if (!$this->modalWindowMode) {
                 $htmlButtons .= '
                     <a class="btn" href="javascript:history.back()">
                         <img src="' . THEME_PATH . '/icons/back.png" alt="' . $gL10n->get('SYS_BACK') . '"
                             title="' . $gL10n->get('SYS_BACK') . '" />' . $gL10n->get('SYS_BACK') . '</a>';
             }
         }
     }
     if ($this->modalWindowMode) {
         $html .= '
             <div class="modal-header">
                 <button type="button" class="close" data-dismiss="modal" aria-label="Close">
                     <span aria-hidden="true">&times;</span>
                 </button>
                 <h4 class="modal-title">' . $headline . '</h4>
             </div>
             <div class="modal-body">' . $content . '</div>
             <div class="modal-footer">' . $htmlButtons . '</div>';
     } else {
         $html .= '
             <div class="message">
                 <p class="lead">' . $content . '</p>
                 ' . $htmlButtons . '
             </div>';
     }
     if ($this->showTextOnly) {
         // show the pure message text without any html
         echo strip_tags($content);
     } elseif ($this->showHtmlTextOnly) {
         // show the pure message text with their html
         echo $content;
     } elseif ($this->inline) {
         // show the message in html but without the theme specific header and body
         echo $html;
     } else {
         // show a Admidio html page with complete theme header and body
         $page->addHtml($html);
         $page->show();
//.........这里部分代码省略.........
开发者ID:sistlind,项目名称:admidio,代码行数:101,代码来源:message.php


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