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


PHP opentab函数代码示例

本文整理汇总了PHP中opentab函数的典型用法代码示例。如果您正苦于以下问题:PHP opentab函数的具体用法?PHP opentab怎么用?PHP opentab使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


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

示例1: display_forum_postform

 function display_forum_postform($info)
 {
     $locale = fusion_get_locale();
     add_to_head("<link rel='stylesheet' type='text/css' href='" . INFUSIONS . "forum/templates/css/forum.css'>");
     echo render_breadcrumbs();
     opentable($info['title']);
     // New template
     echo "<!--pre_form-->\n";
     echo "<h4 class='m-b-20'>" . $info['description'] . "</h4>\n";
     echo $info['openform'];
     echo $info['forum_field'];
     echo $info['subject_field'];
     echo $info['tags_field'];
     echo $info['message_field'];
     echo $info['edit_reason_field'];
     echo $info['forum_id_field'];
     echo $info['thread_id_field'];
     echo $info['poll_form'];
     $tab_title['title'][0] = $locale['forum_0602'];
     $tab_title['id'][0] = 'postopts';
     $tab_title['icon'][0] = '';
     $tab_active = tab_active($tab_title, 0);
     $tab_content = opentabbody($tab_title['title'][0], 'postopts', $tab_active);
     // first one is guaranteed to be available
     $tab_content .= "<div class='well m-t-20'>\n";
     $tab_content .= $info['delete_field'];
     $tab_content .= $info['sticky_field'];
     $tab_content .= $info['notify_field'];
     $tab_content .= $info['lock_field'];
     $tab_content .= $info['hide_edit_field'];
     $tab_content .= $info['smileys_field'];
     $tab_content .= $info['signature_field'];
     $tab_content .= "</div>\n";
     $tab_content .= closetabbody();
     if (!empty($info['attachment_field'])) {
         $tab_title['title'][1] = $locale['forum_0557'];
         $tab_title['id'][1] = 'attach_tab';
         $tab_title['icon'][1] = '';
         $tab_content .= opentabbody($tab_title['title'][1], 'attach_tab', $tab_active);
         $tab_content .= "<div class='well m-t-20'>\n" . $info['attachment_field'] . "</div>\n";
         $tab_content .= closetabbody();
     }
     echo opentab($tab_title, $tab_active, 'newthreadopts');
     echo $tab_content;
     echo closetab();
     echo $info['post_buttons'];
     echo $info['closeform'];
     echo "<!--end_form-->\n";
     closetable();
     if (!empty($info['last_posts_reply'])) {
         echo "<div class='well m-t-20'>\n";
         echo $info['last_posts_reply'];
         echo "</div>\n";
     }
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:55,代码来源:forum_input.php

示例2: viewTagsAdmin

 /**
  * Admin interface
  */
 public function viewTagsAdmin()
 {
     global $aidlink;
     pageAccess('F');
     add_breadcrumb(array('link' => INFUSIONS . 'forum/admin/forums.php' . $aidlink . '&section=ft', 'title' => self::$locale['forum_tag_0100']));
     echo "<div class='well'>" . self::$locale['forum_tag_0101'] . "</div>\n";
     $tab['title'][] = self::$locale['forum_tag_0102'];
     $tab['id'][] = "tag_list";
     $tab['icon'][] = "";
     $tab['title'][] = isset($_GET['tag_id']) && isnum($_GET['tag_id']) ? self::$locale['forum_tag_0104'] : self::$locale['forum_tag_0103'];
     $tab['id'][] = "tag_form";
     $tab['icon'][] = "";
     $_GET['ref'] = isset($_GET['ref']) && in_array($_GET['ref'], $tab['id']) ? $_GET['ref'] : "tag_list";
     echo opentab($tab, $_GET['ref'], "rank_admin", TRUE, "m-t-10", "ref");
     switch ($_GET['ref']) {
         case "tag_form":
             echo $this->displayTagForm();
             break;
         case "tag_list":
             echo $this->displayTagList();
     }
     echo closetab();
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:26,代码来源:tags.php

示例3: viewRanksAdmin

 public function viewRanksAdmin()
 {
     global $aidlink;
     pageAccess('FR');
     add_breadcrumb(array('link' => INFUSIONS . 'forum/admin/forums.php' . $aidlink . '&section=fr', 'title' => self::$locale['404']));
     $forum_settings = $this->get_forum_settings();
     echo "<div class='well'>" . self::$locale['forum_rank_0100'] . "</div>\n";
     if ($forum_settings['forum_ranks']) {
         $tab['title'][] = self::$locale['402'];
         $tab['id'][] = "rank_list";
         $tab['icon'][] = "";
         $tab['title'][] = isset($_GET['rank_id']) && isnum($_GET['rank_id']) ? self::$locale['401'] : self::$locale['400'];
         $tab['id'][] = "rank_form";
         $tab['icon'][] = "";
         $_GET['ref'] = isset($_GET['ref']) && in_array($_GET['ref'], $tab['id']) ? $_GET['ref'] : "rank_list";
         echo opentab($tab, $_GET['ref'], "rank_admin", TRUE, "m-t-10", "ref");
         switch ($_GET['ref']) {
             case "rank_form":
                 // @todo: improvise rank from ui
                 echo $this->displayRanksForm();
                 break;
             case "rank_list":
                 echo $this->displayRankList();
         }
         echo closetab();
     } else {
         opentable(self::$locale['403']);
         ?>
         <div class="well text-center">
             <?php 
         echo sprintf(self::$locale['450'], "<a href='" . FUSION_SELF . $aidlink . "&section=fs'>" . self::$locale['451'] . "</a>");
         ?>
         </div>
         <?php 
         closetable();
     }
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:37,代码来源:ranks.php

示例4: viewMoodAdmin

 public function viewMoodAdmin()
 {
     global $aidlink;
     pageAccess('FR');
     add_breadcrumb(array('link' => INFUSIONS . 'forum/admin/forums.php' . $aidlink . '&section=fmd', 'title' => self::$locale['forum_admin_004']));
     echo "<div class='well'>" . self::$locale['forum_090'] . "</div>\n";
     $tab['title'][] = self::$locale['forum_093'];
     $tab['id'][] = "mood_list";
     $tab['icon'][] = "";
     $tab['title'][] = isset($_GET['mood_id']) && isnum($_GET['mood_id']) ? self::$locale['forum_092'] : self::$locale['forum_091'];
     $tab['id'][] = "mood_form";
     $tab['icon'][] = "";
     $_GET['ref'] = isset($_GET['ref']) && in_array($_GET['ref'], $tab['id']) ? $_GET['ref'] : "mood_list";
     echo opentab($tab, $_GET['ref'], "mood_admin", TRUE, "m-t-10", "ref");
     switch ($_GET['ref']) {
         case "mood_form":
             $this->displayMoodForm();
             break;
         case "mood_list":
             $this->displayMoodList();
             break;
     }
     echo closetab();
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:24,代码来源:mood.php

示例5: dbquery_insert

                 dbquery_insert(DB_ARTICLE_CATS, $inputArray, "save");
                 addNotice("success", $locale['articles_0150']);
                 redirect(clean_request("cat_view=1", array("section", "aid"), true));
             } else {
                 addNotice("danger", $locale['articles_0352']);
             }
         }
     }
 }
 // UI dual tab
 $articleCatTab['title'][] = $locale['articles_0020'];
 $articleCatTab['id'][] = "b";
 $articleCatTab['title'][] = $locale['articles_0027'];
 $articleCatTab['id'][] = "a";
 $tab_active = tab_active($articleCatTab, isset($_GET['action']) or !defender::safe() ? 1 : 0);
 echo opentab($articleCatTab, $tab_active, "artCTab", FALSE, "m-t-20");
 echo opentabbody($articleCatTab['title'][0], $articleCatTab['id'][0], $tab_active);
 echo "<table class='table table-responsive table-hover table-striped'>\n";
 if (dbcount("(article_cat_id)", DB_ARTICLE_CATS, multilang_table("AR") ? "article_cat_language='" . LANGUAGE . "'" : "")) {
     showcatlist();
 } else {
     echo "<tr><td align='center' class='tbl1' colspan='2'>" . $locale['articles_0342'] . "</td></tr>\n";
 }
 echo "</table>\n";
 echo closetabbody();
 echo opentabbody($articleCatTab['title'][1], $articleCatTab['id'][1], $tab_active);
 echo openform('addcat', 'post', FUSION_REQUEST, array('class' => "m-t-20"));
 echo form_hidden("cat_id", "", $cat_id);
 echo form_text('cat_name', $locale['articles_0300'], $cat_name, array("inline" => true, "required" => true, 'error_text' => $locale['articles_0351']));
 $textArea_opts = array("required" => TRUE, "type" => fusion_get_settings("tinymce_enabled") ? "tinymce" : "html", "tinymce" => fusion_get_settings("tinymce_enabled") && iADMIN ? "advanced" : "", "autosize" => TRUE, "inline" => TRUE, "preview" => TRUE, "form_name" => "addcat");
 echo form_textarea('cat_description', $locale['articles_0301'], $cat_description, $textArea_opts);
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:31,代码来源:article_cat.php

示例6: opentable

$master_title['icon'] = '';
$master_title['title'][] = $edit ? $locale['blog_0402'] : $locale['blog_0401'];
$master_title['id'][] = 'blog_form';
$master_title['icon'] = '';
$master_title['title'][] = $locale['blog_0502'];
$master_title['id'][] = 'blog_category';
$master_title['icon'] = '';
$master_title['title'][] = $locale['blog_0406'];
$master_title['id'][] = 'settings';
$master_title['icon'] = '';
$master_title['title'][] = $locale['blog_0600'];
$master_title['id'][] = 'submissions';
$master_title['icon'] = '';
$tab_active = $_GET['section'];
opentable($locale['blog_0405']);
echo opentab($master_title, $tab_active, 'blog', 1);
switch ($_GET['section']) {
    case "blog_category":
        include "admin/blog_cat.php";
        break;
    case "settings":
        add_breadcrumb(array('link' => "", 'title' => $locale['blog_settings']));
        include "admin/blog_settings.php";
        break;
    case "blog_form":
        add_breadcrumb(array('link' => '', 'title' => $edit ? $locale['blog_0402'] : $locale['blog_0401']));
        include "admin/blog.php";
        break;
    case "submissions":
        include "admin/blog_submissions.php";
        break;
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:blog_admin.php

示例7: opentable

}
opentable($locale['theme_1000']);
switch ($_GET['action']) {
    case "manage":
        if (isset($_GET['theme'])) {
            echo "<div class='m-t-20'>\n";
            $theme_admin::display_theme_editor($_GET['theme']);
            echo "</div>\n";
        }
        break;
    default:
        $tab_title['title'] = array($locale['theme_1010'], $locale['theme_1011']);
        $tab_title['id'] = array("list", "upload");
        $active_set = isset($_POST['upload']) ? 1 : 0;
        $active_tab = tab_active($tab_title, $active_set);
        echo opentab($tab_title, $active_tab, 'theme_tab');
        echo opentabbody($tab_title['title'][0], $tab_title['id'][0], $active_tab);
        echo "<div class='m-t-20'>\n";
        $theme_admin::display_theme_list();
        echo "</div>\n";
        echo closetabbody();
        echo opentabbody($tab_title['title'][1], $tab_title['id'][1], $active_tab);
        echo "<div class='m-t-20'>\n";
        $theme_admin::theme_uploader();
        echo "</div>\n";
        echo closetabbody();
        echo closetab();
        break;
}
closetable();
require_once THEMES . "templates/footer.php";
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:theme.php

示例8: author

| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../maincore.php";
pageAccess("CP");
require_once THEMES . "templates/admin_header.php";
include LOCALE . LOCALESET . "admin/sitelinks.php";
$locale = fusion_get_locale("", LOCALE . LOCALESET . "admin/custom_pages.php");
$customPage = new PHPFusion\CustomPage();
add_breadcrumb(array('link' => ADMIN . 'custom_pages.php' . $aidlink, 'title' => $locale['403']));
$customPage->display_custom_page_admin();
$edit = isset($_GET['action']) && $_GET['action'] == 'edit' ? 1 : 0;
$allowed_pages = array('cp1', 'cp2');
$_GET['section'] = isset($_GET['section']) && in_array($_GET['section'], $allowed_pages) ? $_GET['section'] : 'cp1';
$tab_title['title'][] = $locale['402'];
$tab_title['id'][] = 'cp1';
$tab_title['icon'][] = '';
$tab_title['title'][] = $edit ? $locale['401'] : $locale['400'];
$tab_title['id'][] = 'cp2';
$tab_title['icon'][] = $edit ? "fa fa-pencil m-r-10" : 'fa fa-plus-square m-r-10';
$tab_active = tab_active($tab_title, $_GET['section'], TRUE);
echo opentab($tab_title, $tab_active, 'cpa', TRUE);
if (isset($_GET['section']) && $_GET['section'] == "cp2") {
    add_breadcrumb(array('link' => ADMIN . 'custom_pages.php' . $aidlink, 'title' => $edit ? $locale['401'] : $locale['400']));
    $data = $customPage->getData();
    $customPage::customPage_form($data);
} else {
    $customPage::listPage();
}
echo closetab();
require_once THEMES . "templates/footer.php";
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:31,代码来源:custom_pages.php

示例9: closedir

        closedir($temp);
        if ($panel_id != NULL) {
            return $panel_list[$panel_id];
        }
        sort($panel_list);
        return $panel_list;
    }
}
// do the table
opentable($locale['600']);
$fusion_panel = new fusion_panels();
$edit = isset($_GET['action']) && $_GET['action'] == 'edit' ? $fusion_panel->verify_panel($_GET['panel_id']) : 0;
// build a new interface
$tab_title['title'][] = $locale['407'];
$tab_title['id'][] = 'listpanel';
$tab_title['icon'][] = '';
$tab_title['title'][] = $edit ? $locale['409'] : $locale['408'];
$tab_title['id'][] = 'panelform';
$tab_title['icon'][] = $edit ? "fa fa-pencil m-r-10" : 'fa fa-plus-square m-r-10';
$tab_active = tab_active($tab_title, $edit ? 1 : 0, TRUE, 1);
echo opentab($tab_title, $tab_active, 'id', FUSION_SELF . $aidlink);
echo opentabbody($tab_title['title'][0], 'listpanel', $tab_active, 1);
$fusion_panel->panel_listing();
echo closetabbody();
if (isset($_GET['section']) && $_GET['section'] == 'panelform') {
    echo opentabbody($tab_title['title'][1], 'panelform', $tab_active, 1);
    $fusion_panel->add_panel_form();
    echo closetabbody();
}
closetable();
require_once THEMES . "templates/footer.php";
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:panels.php

示例10: theme_editor

 /**
  * Theme Styler Page
  * Edit done, save done. Now load.
  */
 public function theme_editor()
 {
     global $aidlink, $locale;
     if (isset($_GET['e_action']) && $_GET['e_action'] == "edit" && isset($_GET['preset']) && isnum($_GET['preset'])) {
         $result = dbquery("SELECT * FROM " . DB_THEME . " WHERE theme_name='" . $this->theme_name . "' AND theme_id='" . intval($_GET['preset']) . "'");
         if (dbrows($result) > 0) {
             $this->data = dbarray($result);
             if ($this->data['theme_config']) {
                 $this->data += unserialize(stripslashes($this->data['theme_config']));
             }
         }
     }
     self::save_theme();
     $this->font_decoration_options = array($locale['theme_5000'], $locale['theme_5001'], $locale['theme_5002'], $locale['theme_5003'], $locale['theme_5004'], $locale['theme_5005'], $locale['theme_5006'], $locale['theme_5007']);
     $this->fills = array($locale['theme_5008'], $locale['theme_5009'], $locale['theme_5010'], $locale['theme_5011'], $locale['theme_5012']);
     $tab_title['title'][] = $locale['theme_2001'];
     $tab_title['id'][] = 'font';
     $tab_title['icon'][] = 'fa fa-text-width m-r-10';
     $tab_title['title'][] = $locale['theme_2002'];
     $tab_title['id'][] = 'grid';
     $tab_title['icon'][] = 'fa fa-magic m-r-10';
     $tab_title['title'][] = $locale['theme_2003'];
     $tab_title['id'][] = 'nav';
     $tab_title['icon'][] = 'fa fa-navicon m-r-10';
     $tab_active = tab_active($tab_title, 0);
     if ($this->debug) {
         print_p($_POST);
     }
     // Use a modal to block user to avoid double clicking the save button.
     echo openmodal('dbi', sprintf($locale['theme_2005'], ucwords($this->theme_name)), array('class' => 'zindex-boost modal-center', 'button_id' => 'save_theme', 'static' => 1));
     echo "<div class='pull-left m-r-20'><i class='icon_notify n-magic'></i></div>\n";
     echo "<div class='overflow-hide text-smaller'>" . $locale['theme_2006'] . "</div>\n";
     echo closemodal();
     // how come my multiple preset missing now?
     echo openform('theme_edit', 'post', FUSION_REQUEST, array("class" => "m-t-20"));
     echo "<div class='list-group-item m-b-20 clearfix'>\n";
     echo "<div class='pull-right m-l-10'>\n";
     echo form_button('save_theme', $locale['theme_5013'], 'save_theme', array('class' => 'btn-primary m-r-10'));
     echo form_button('close_theme', $locale['close'], 'close_theme', array('class' => 'btn-default'));
     echo "</div>\n";
     echo "<div class='overflow-hide'>\n";
     echo form_hidden('theme_id', '', $this->data['theme_id']);
     echo form_hidden("theme_datestamp", '', time());
     echo form_text('theme_title', $locale['theme_2007'], $this->data['theme_title'], array('inline' => 1, 'required' => TRUE));
     echo form_hidden('theme_name', $locale['theme_2008'], $this->theme_name, array('inline' => 1, 'deactivate' => 1));
     echo "</div>\n";
     echo "</div>\n";
     echo opentab($tab_title, $tab_active, 'atom');
     echo opentabbody($tab_title['title'][0], $tab_title['id'][0], $tab_active);
     echo "<div class='m-t-20'>\n";
     $this->font_admin();
     echo "</div>\n";
     echo closetabbody();
     echo opentabbody($tab_title['title'][1], $tab_title['id'][1], $tab_active);
     echo "<div class='m-t-20'>\n";
     $this->layout_admin();
     echo "</div>\n";
     echo closetabbody();
     echo opentabbody($tab_title['title'][2], $tab_title['id'][2], $tab_active);
     echo "<div class='m-t-20'>\n";
     $this->nav_admin();
     echo "</div>\n";
     echo closetabbody();
     echo closetab();
     echo closeform();
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:70,代码来源:Atom.php

示例11: author

| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
require_once "../maincore.php";
pageAccess("SL");
require_once THEMES . "templates/admin_header.php";
include LOCALE . LOCALESET . "admin/sitelinks.php";
$site_links = new \PHPFusion\SiteLinks();
$edit = isset($_GET['link_id']) ? $site_links->verify_edit($_GET['link_id']) : 0;
$master_title['title'][] = $locale['SL_0001'];
$master_title['id'][] = "links";
$master_title['icon'][] = '';
$master_title['title'][] = $edit ? $locale['SL_0011'] : $locale['SL_0010'];
$master_title['id'][] = "nform";
$master_title['icon'][] = $edit ? "fa fa-pencil m-r-10" : "fa fa-plus-square m-r-10";
$section = "links";
$allowed_section = array("links", "nform");
if (isset($_GET['section']) && in_array($_GET['section'], $allowed_section)) {
    $section = $_GET['section'];
}
opentable($locale['SL_0012']);
echo opentab($master_title, $section, 'link', TRUE);
if (isset($_GET['section']) && $_GET['section'] == "nform") {
    $site_links->menu_form();
} else {
    $site_links->menu_listing();
}
echo closetab();
closetable();
require_once THEMES . "templates/footer.php";
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:site_links.php

示例12: display_administration_form

 public function display_administration_form()
 {
     global $aidlink;
     pageAccess("SL");
     $locale = fusion_get_locale("", LOCALE . LOCALESET . "admin/sitelinks.php");
     if (isset($_POST['cancel'])) {
         redirect(FUSION_SELF . $aidlink);
     }
     $title = $locale['SL_0001'];
     if (isset($_GET['ref']) && $_GET['ref'] == "link_form") {
         $title = isset($_GET['link_id']) && $this->verify_sitelinks($_GET['link_id']) ? $locale['SL_0011'] : $locale['SL_0010'];
     }
     $master_title['title'][] = $title;
     $master_title['id'][] = "links";
     $master_title['icon'][] = '';
     $master_title['title'][] = $locale['SL_0041'];
     $master_title['id'][] = "settings";
     $master_title['icon'][] = '';
     $link_index = dbquery_tree(DB_SITE_LINKS, "link_id", "link_cat");
     $link_data = dbquery_tree_full(DB_SITE_LINKS, "link_id", "link_cat");
     make_page_breadcrumbs($link_index, $link_data, "link_id", "link_name", "link_cat");
     opentable($locale['SL_0012']);
     echo opentab($master_title, isset($_GET['section']) ? $_GET['section'] : "links", 'link', TRUE);
     if (isset($_GET['section']) && $_GET['section'] == "settings") {
         $this->display_sitelinks_settings();
     } else {
         if (isset($_GET['ref'])) {
             switch ($_GET['ref']) {
                 case "link_form":
                     $this->display_sitelinks_form();
                     break;
                 default:
                     $this->display_sitelinks_list();
             }
         } else {
             $this->display_sitelinks_list();
         }
     }
     echo closetab();
     closetable();
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:41,代码来源:site_links.php

示例13: render_main_news


//.........这里部分代码省略.........
                    }
                    $carousel_item .= "<div class='item " . $carousel_active . "'>\n";
                    $carousel_item .= "<div class='col-xs-12 col-sm-6 item-lg' style='height: " . $carousel_height . "px; background-image: url({$big_item_image}); background-size: cover;'>";
                    $carousel_item .= "<div class='item-inner'>\n";
                    $carousel_item .= $big_item;
                    $carousel_item .= "</div>";
                    $carousel_item .= "</div>";
                    $carousel_item .= "<div class='col-xs-6 col-sm-6 p-0'>\n";
                    if (!empty($small_items)) {
                        $i_count = 1;
                        foreach ($small_items as $iCount => $small_item_info) {
                            $carousel_item .= "<div class='col-xs-6 col-sm-6 p-0'>";
                            $carousel_item .= "<div class='item-sm' style='" . ($i_count > 2 ? "margin-left: 5px; margin-top:5px; height: " . ($carousel_height / 2 - 5) . "px;" : "margin-left: 5px; height: " . $carousel_height / 2 . "px;") . " background-image: url({$small_items_image[$iCount]}); background-size: cover;'>\n";
                            $carousel_item .= "<div class='item-inner'>\n";
                            $carousel_item .= $small_item_info;
                            $carousel_item .= "</div>\n";
                            $carousel_item .= "</div>\n";
                            $carousel_item .= "</div>";
                            $i_count++;
                        }
                    }
                    $carousel_item .= "</div>\n";
                    $carousel_item .= "</div>\n";
                }
            }
        }
        if ($carousel_count) {
            $carousel_html = "<div id='news-carousel' class='carousel slide m-b-20'  data-interval='20000' data-ride='carousel'>\n";
            if ($carousel_count > 1 && !empty($carousel_indicators)) {
                $carousel_html .= "<ol class='carousel-indicators'>\n";
                $carousel_html .= $carousel_indicators;
                $carousel_html .= "</ol>";
            }
            $carousel_html .= "<div class='carousel-inner' style='height:" . $carousel_height . "px' role='listbox'>\n";
            $carousel_html .= $carousel_item;
            $carousel_html .= "</div>\n";
            if ($carousel_count > 1) {
                $carousel_html .= "\n\t\t\t\t<a class='left carousel-control' href='#news-carousel' role='button' data-slide='prev'>\n\t\t\t\t\t<span class='fa fa-chevron-left' aria-hidden='true'></span>\n\t\t\t\t\t<span class='sr-only'>" . $locale['previous'] . "</span>\n\t\t\t  \t</a>\n\t\t\t  \t<a class='right carousel-control' href='#news-carousel' role='button' data-slide='next'>\n\t\t\t\t\t<span class='fa fa-chevron-right' aria-hidden='true'></span>\n\t\t\t\t\t<span class='sr-only'>" . $locale['next'] . "</span>\n\t\t\t  \t</a>\n\n\t\t\t\t";
            }
            $carousel_html .= "</div>\n";
            // Inject into header of Septenary
            \PHPFusion\SeptenaryTheme::Factory()->set_header_html($carousel_html);
        }
        // Process and inject all news categories to Left Panel
        ob_start();
        openside($locale['news_0009']);
        ?>
        <ul>
            <?php 
        if (!empty($info['news_categories'])) {
            foreach ($info['news_categories'] as $cat_id => $cat_data) {
                echo isset($_GET['cat_id']) && $_GET['cat_id'] == $cat_id ? '' : "<li>\n<a href='" . INFUSIONS . "news/news.php?cat_id=" . $cat_id . "'>" . $cat_data['name'] . "</a>\n</li>\n";
            }
            echo "<li>\n<a href='" . INFUSIONS . "news/news.php?cat_id=0'>" . $locale['news_0006'] . "</a>\n</li>\n";
        } else {
            echo "<li>\n<a href='" . INFUSIONS . "news/news.php?cat_id=0'>" . $locale['news_0006'] . "</a>\n</li>\n";
        }
        ?>
        </ul>
        <?php 
        closeside();
        $left_html = ob_get_contents();
        ob_end_clean();
        \PHPFusion\SeptenaryTheme::Factory()->set_left_html($left_html);
        echo render_breadcrumbs();
        // Build filters
        $i = 0;
        foreach ($info['news_filter'] as $link => $title) {
            $tab_title['title'][] = $title;
            $tab_title['id'][] = $i;
            $i++;
        }
        $active_tab = tab_active($tab_title, 0, 'type');
        ?>
        <div id="news_filter_tab">
            <?php 
        echo opentab($tab_title, $active_tab, 'filters', TRUE, '', 'type');
        if (!empty($info['news_items'])) {
            echo "<div class='row'>\n";
            foreach ($info['news_items'] as $i => $news_info) {
                echo "<div class='" . \PHPFusion\SeptenaryComponents::col_span(4, 6, 6) . "'>\n";
                echo isset($_GET['cat_id']) ? "<!--pre_news_cat_idx-->\n" : "<!--news_prepost_" . $i . "-->\n";
                render_news($news_info['news_subject'], $news_info['news_news'], $news_info, FALSE);
                echo isset($_GET['cat_id']) ? "<!--sub_news_cat_idx-->" : "<!--sub_news_idx-->\n";
                echo "</div>\n";
            }
            echo "</div>\n";
            if ($info['news_total_rows'] > $news_settings['news_pagination']) {
                $type_start = isset($_GET['type']) ? "type=" . $_GET['type'] . "&amp;" : '';
                $cat_start = isset($_GET['cat_id']) ? "cat_id=" . $_GET['cat_id'] . "&amp;" : '';
                echo "<div class='text-center m-t-10 m-b-10'>" . makepagenav($_GET['rowstart'], $news_settings['news_pagination'], $info['news_total_rows'], 3, INFUSIONS . "news/news.php?" . $cat_start . $type_start) . "</div>\n";
            }
        } else {
            echo "<div class='well text-center'>" . $locale['news_0005'] . "</div>\n";
        }
        echo closetab();
        ?>
        </div>
        <?php 
    }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:101,代码来源:custom_news.php

示例14: dbquery_insert

                dbquery_insert(DB_SMILEYS, $data, "save");
                addNotice("success", $locale['410']);
                redirect(FUSION_SELF . $aidlink);
            }
        }
    }
}
opentable($form_title);
$tab_title['title'][] = $locale['400'];
$tab_title['id'][] = "smiley_list";
$tab_title['icon'][] = "";
$tab_title['title'][] = $form_title;
$tab_title['id'][] = "smileyform";
$tab_title['icon'][] = "";
$tab_active = tab_active($tab_title, $edit ? 1 : 0);
echo opentab($tab_title, $tab_active, "smileyAdmin");
echo opentabbody($tab_title['title'][0], $tab_title['id'][0], $tab_active);
$result = dbquery("SELECT smiley_id, smiley_code, smiley_image, smiley_text FROM " . DB_SMILEYS . " ORDER BY smiley_text");
if (dbrows($result)) {
    echo "<table class='table table-hover table-striped'>\n";
    echo "<tr>\n<th class='tbl2'><strong>" . $locale['430'] . "</strong></th>\n";
    echo "<th class='tbl2'><strong>" . $locale['431'] . "</strong></th>\n";
    echo "<th class='tbl2'><strong>" . $locale['432'] . "</strong></th>\n";
    echo "<th class='tbl2' width='1%' style='white-space:nowrap'><strong>" . $locale['433'] . "</strong></th>\n</tr>\n<tbody>\n";
    while ($cdata = dbarray($result)) {
        echo "<tr>\n<td>" . $cdata['smiley_code'] . "</td>\n";
        echo "<td><img src='" . IMAGES . "smiley/" . $cdata['smiley_image'] . "' alt='" . $data['smiley_text'] . "' /></td>\n";
        echo "<td>" . $cdata['smiley_text'] . "</td>\n";
        echo "<td width='1%' style='white-space:nowrap'><a href='" . FUSION_SELF . $aidlink . "&amp;action=edit&amp;smiley_id=" . $cdata['smiley_id'] . "'>" . $locale['434'] . "</a> -\n";
        echo "<a id='confirm' href='" . FUSION_SELF . $aidlink . "&amp;action=delete&amp;smiley_id=" . $cdata['smiley_id'] . "'>" . $locale['435'] . "</a></td>\n</tr>\n";
    }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:smileys.php

示例15: display_theme_editor

 /** The Theme Editor - Manage UI */
 public static function display_theme_editor($theme_name)
 {
     global $aidlink, $locale;
     // sanitize theme exist
     $theme_name = self::verify_theme($theme_name) ? $theme_name : "";
     if (!$theme_name) {
         redirect(clean_request("", array("aid"), TRUE));
     }
     add_breadcrumb(array('link' => '', 'title' => $locale['theme_1018']));
     // go with tabs
     $tab['title'] = array($locale['theme_1022'], $locale['theme_1023'], $locale['theme_1024']);
     $tab['id'] = array("dashboard", "widgets", "css");
     $tab['icon'] = array("fa fa-edit fa-fw", "fa fa-cube fa-fw", "fa fa-css3 fa-fw");
     if (isset($_GET['action'])) {
         $tab['title'][] = $locale['theme_1029'];
         $tab['id'][] = "close";
         $tab['icon'][] = "fa fa-close fa-fw";
     }
     if (isset($_POST['close_theme'])) {
         redirect(FUSION_SELF . $aidlink);
     }
     $_GET['section'] = isset($_GET['section']) && in_array($_GET['section'], $tab['id']) ? $_GET['section'] : "dashboard";
     $tab_active = $_GET['section'];
     $atom = new \PHPFusion\Atom\Atom();
     $atom->target_folder = $theme_name;
     $atom->theme_name = $theme_name;
     echo opentab($tab, $tab_active, "theme_admin", TRUE);
     // now include the thing as necessary
     switch ($_GET['section']) {
         case "dashboard":
             /**
              * Delete preset
              */
             if (isset($_GET['delete_preset']) && isnum($_GET['delete_preset'])) {
                 if (empty($_GET['theme'])) {
                     redirect(FUSION_SELF . $aidlink);
                 }
                 $theme_name = stripinput($_GET['theme']);
                 $file = dbarray(dbquery("SELECT theme_file FROM " . DB_THEME . " WHERE theme_name='" . $theme_name . "'\n\t\t\t\t\tand theme_id='" . intval($_GET['delete_preset']) . "'"));
                 if (file_exists(THEMES . $theme_name . "/" . $file['theme_file'])) {
                     unlink(THEMES . $theme_name . "/" . $file['theme_file']);
                 }
                 dbquery("DELETE FROM " . DB_THEME . " WHERE theme_id='" . intval($_GET['delete_preset']) . "'");
                 addNotice('success', $locale['theme_success_002']);
                 redirect(clean_request("", array("section", "aid", "action", "theme"), TRUE));
             }
             /**
              * Set active presets
              */
             if (isset($_POST['load_preset']) && isnum($_POST['load_preset'])) {
                 $result = dbquery("select theme_id FROM " . DB_THEME . " WHERE theme_active='1'");
                 if (dbrows($result) > 0) {
                     $data = dbarray($result);
                     $data = array("theme_id" => $data['theme_id'], "theme_active" => 0);
                     dbquery_insert(DB_THEME, $data, "update");
                 }
                 $data = array("theme_id" => $_POST['load_preset'], "theme_active" => 1);
                 dbquery_insert(DB_THEME, $data, "update");
                 redirect(clean_request("", array("section", "aid", "action", "theme"), TRUE));
             }
             $atom->display_theme_overview();
             break;
         case "widgets":
             $atom->display_theme_widgets();
             break;
         case "css":
             $atom->theme_editor();
             break;
         case "close":
             redirect(FUSION_SELF . $aidlink);
             break;
         default:
             break;
     }
     echo closetab();
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:77,代码来源:Admin.php


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