本文整理汇总了PHP中tab_active函数的典型用法代码示例。如果您正苦于以下问题:PHP tab_active函数的具体用法?PHP tab_active怎么用?PHP tab_active使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了tab_active函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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: dbquery_insert
if (!dbcount("(article_cat_id)", DB_ARTICLE_CATS, $categoryNameCheck['when_saving'])) {
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");
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:31,代码来源:article_cat.php
示例3: addNotice
addNotice('success', "Theme Engine has been upgraded");
}
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();
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:theme.php
示例4: 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
示例5: get_settings
require_once FORUM . "classes/Admin.php";
require_once FORUM . "classes/Functions.php";
require_once INCLUDES . 'infusions_include.php';
$forum_settings = get_settings('forum');
$forum_admin = new PHPFusion\Forums\Admin();
opentable($locale['forum_000c']);
$tab_title['title'][] = $locale['forum_admin_000'];
$tab_title['id'][] = 'fm';
$tab_title['icon'][] = '';
$tab_title['title'][] = $locale['forum_admin_001'];
$tab_title['id'][] = 'fr';
$tab_title['icon'][] = '';
$tab_title['title'][] = $locale['forum_admin_002'];
$tab_title['id'][] = 'fs';
$tab_title['icon'][] = '';
$tab_active = tab_active($tab_title, isset($_GET['section']) ? $_GET['section'] : 'fm', true);
echo opentab($tab_title, $tab_active, 'fmm', true);
if (isset($_GET['section'])) {
switch ($_GET['section']) {
case 'fr':
pageAccess('FR');
add_breadcrumb(array('link' => INFUSIONS . 'forum/admin/forums.php' . $aidlink . '§ion=fr', 'title' => $locale['404']));
echo opentabbody($tab_title['title'][1], $tab_title['id'][1], $tab_active, true, 'section');
include INFUSIONS . 'forum/admin/forum_ranks.php';
echo closetabbody();
break;
case 'fs':
pageAccess('F');
echo opentabbody($tab_title['title'][2], $tab_title['id'][2], $tab_active, true, 'section');
include INFUSIONS . 'forum/admin/settings_forum.php';
echo closetabbody();
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:forums.php
示例6: author
| can read by viewing the included agpl.txt or online
| at www.gnu.org/licenses/agpl.html. Removal of this
| copyright header is strictly prohibited without
| written permission from the original author(s).
+--------------------------------------------------------*/
pageAccess("PH");
if (fusion_get_settings("tinymce_enabled")) {
echo "<script language='javascript' type='text/javascript'>advanced();</script>\n";
}
$phototab['title'][] = $locale['gallery_0009'];
$phototab['id'][] = "single_photo";
$phototab['icon'][] = "";
$phototab['title'][] = $locale['gallery_0010'];
$phototab['id'][] = "mass_photo";
$phototab['icon'][] = "";
$tab_active = tab_active($phototab, 0);
echo opentab($phototab, $tab_active, "phototabs", FALSE, "m-t-20");
echo opentabbody($phototab['title'][0], $phototab['id'][0], $tab_active);
photo_form();
echo closetabbody();
echo opentabbody($phototab['title'][1], $phototab['id'][1], $tab_active);
mass_photo_form();
echo closetabbody();
echo closetab();
// done.
function photo_form()
{
global $locale, $aidlink, $userdata, $gll_settings, $defender, $photo_edit;
$albumRows = dbcount("(album_id)", DB_PHOTO_ALBUMS, multilang_table("PG") ? "album_language='" . LANGUAGE . "'" : "");
if ($albumRows) {
$data = array("photo_id" => 0, "photo_title" => "", "album_id" => 0, "photo_description" => "", "photo_keywords" => "", "photo_filename" => "", "photo_thumb1" => "", "photo_thumb2" => "", "photo_datestamp" => time(), "photo_user" => $userdata['user_id'], "photo_views" => 0, "photo_order" => 0, "photo_allow_comments" => TRUE, "photo_allow_ratings" => TRUE);
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:photos.php
示例7: 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'] . "&" : '';
$cat_start = isset($_GET['cat_id']) ? "cat_id=" . $_GET['cat_id'] . "&" : '';
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
示例8: display_forum_form
/**
* Display Forum Form
*/
public function display_forum_form()
{
require_once INCLUDES . 'photo_functions_include.php';
require_once INCLUDES . 'infusions_include.php';
$forum_settings = $this->get_forum_settings();
$language_opts = fusion_get_enabled_languages();
add_breadcrumb(array('link' => '', 'title' => self::$locale['forum_001']));
if (!isset($_GET['action']) && $_GET['parent_id']) {
$data['forum_cat'] = $_GET['parent_id'];
}
$type_opts = array('1' => self::$locale['forum_opts_001'], '2' => self::$locale['forum_opts_002'], '3' => self::$locale['forum_opts_003'], '4' => self::$locale['forum_opts_004']);
$forum_image_path = FORUM . "images/";
if (isset($_POST['remove_image']) && isset($_POST['forum_id'])) {
$data['forum_id'] = form_sanitizer($_POST['forum_id'], '', 'forum_id');
if ($data['forum_id']) {
$data = self::get_forum($data['forum_id']);
if (!empty($data)) {
$forum_image = $forum_image_path . $data['forum_image'];
if (!empty($data['forum_image']) && file_exists($forum_image) && !is_dir($forum_image)) {
@unlink($forum_image);
$data['forum_image'] = '';
}
dbquery_insert(DB_FORUMS, $data, 'update');
addNotice('success', self::$locale['forum_notice_8']);
redirect(FUSION_REQUEST);
}
}
}
opentable(self::$locale['forum_001']);
echo openform('inputform', 'post', FUSION_REQUEST, array('enctype' => 1));
echo "<div class='row'>\n<div class='col-xs-12 col-sm-8 col-md-8 col-lg-8'>\n";
echo form_text('forum_name', self::$locale['forum_006'], $this->data['forum_name'], array('required' => 1, 'error_text' => self::$locale['forum_error_1'])) . form_textarea('forum_description', self::$locale['forum_007'], $this->data['forum_description'], array('autosize' => 1, 'type' => 'bbcode', 'form_name' => 'inputform', 'preview' => TRUE)) . form_text('forum_alias', self::$locale['forum_011'], $this->data['forum_alias']);
echo "</div><div class='col-xs-12 col-sm-4 col-md-4 col-lg-4'>\n";
openside('');
$self_id = $this->data['forum_id'] ? $this->data['forum_id'] : '';
echo form_select_tree('forum_cat', self::$locale['forum_008'], $this->data['forum_cat'], array('add_parent_opts' => 1, 'disable_opts' => $self_id, 'hide_disabled' => 1), DB_FORUMS, 'forum_name', 'forum_id', 'forum_cat', $self_id) . form_select('forum_type', self::$locale['forum_009'], $this->data['forum_type'], array("options" => $type_opts)) . form_select('forum_language', self::$locale['forum_010'], $this->data['forum_language'], array("options" => $language_opts)) . form_text('forum_order', self::$locale['forum_043'], $this->data['forum_order'], array('number' => 1)) . form_button('save_forum', $this->data['forum_id'] ? self::$locale['forum_000a'] : self::$locale['forum_000'], self::$locale['forum_000'], array('class' => 'btn btn-sm btn-success'));
closeside();
echo "</div>\n</div>\n";
echo "<div class='row'>\n<div class='col-xs-12 col-sm-8 col-md-8 col-lg-8'>\n";
echo form_select('forum_meta', self::$locale['forum_012'], $this->data['forum_meta'], array('tags' => 1, 'multiple' => 1, 'width' => '100%'));
if ($this->data['forum_image'] && file_exists(FORUM . "images/" . $this->data['forum_image'])) {
openside();
echo "<div class='pull-left m-r-10'>\n";
echo thumbnail(FORUM . "images/" . $this->data['forum_image'], '80px', '80px');
echo "</div>\n<div class='overflow-hide'>\n";
echo "<span class='strong'>" . self::$locale['forum_013'] . "</span><br/>\n";
$image_size = @getimagesize(FORUM . "images/" . $this->data['forum_image']);
echo "<span class='text-smaller'>" . sprintf(self::$locale['forum_027'], $image_size[0], $image_size[1]) . "</span><br/>";
echo form_hidden('forum_image', '', $this->data['forum_image']);
echo form_button('remove_image', self::$locale['forum_028'], self::$locale['forum_028'], array('class' => 'btn-danger btn-sm m-t-10', 'icon' => 'fa fa-trash'));
echo "</div>\n";
closeside();
} else {
$tab_title['title'][] = self::$locale['forum_013'];
$tab_title['id'][] = 'fir';
$tab_title['icon'][] = '';
$tab_title['title'][] = self::$locale['forum_014'];
$tab_title['id'][] = 'ful';
$tab_title['icon'][] = '';
$tab_active = tab_active($tab_title, 0);
echo opentab($tab_title, $tab_active, 'forum-image-tab', FALSE, "m-t-20 m-b-20");
// Upload Image
echo opentabbody($tab_title['title'][0], 'fir', $tab_active);
echo "<span class='display-inline-block m-t-10 m-b-10'>" . sprintf(self::$locale['forum_015'], parsebytesize($forum_settings['forum_attachmax'])) . "</span>\n";
$fileOptions = array("upload_path" => $forum_image_path, "thumbnail" => TRUE, "thumbnail_folder" => $forum_image_path, "type" => "image", "delete_original" => TRUE, "max_count" => $forum_settings['forum_attachmax']);
echo form_fileinput('forum_image', "", '', $fileOptions);
echo closetabbody();
// Upload image via Web Address
echo opentabbody($tab_title['title'][1], 'ful', $tab_active);
echo "<span class='display-inline-block m-t-10 m-b-10'>" . self::$locale['forum_016'] . "</strong></span>\n";
$header_opts = array('0' => 'Local Server', '1' => 'URL');
echo form_select('forum_image_header', self::$locale['forum_056'], '', array('inline' => TRUE, 'options' => $header_opts));
echo form_text('forum_image_url', self::$locale['forum_014'], '', array('placeholder' => 'images/forum/', 'inline' => TRUE));
echo closetabbody();
echo closetab();
}
echo form_textarea('forum_rules', self::$locale['forum_017'], $this->data['forum_rules'], array('autosize' => 1, 'bbcode' => 1));
echo "</div><div class='col-xs-12 col-sm-4 col-md-4 col-lg-4'>\n";
openside('');
// need to get parent category
echo form_select_tree('forum_permissions', self::$locale['forum_025'], $this->data['forum_branch'], array('no_root' => 1, 'deactivate' => $this->data['forum_id'] ? TRUE : FALSE), DB_FORUMS, 'forum_name', 'forum_id', 'forum_cat');
if ($this->data['forum_id']) {
echo form_button('jp_forum', self::$locale['forum_029'], self::$locale['forum_029'], array('class' => 'btn-sm btn-default m-r-10'));
}
closeside();
openside('');
echo form_checkbox('forum_lock', self::$locale['forum_026'], $this->data['forum_lock'], array("reverse_label" => TRUE)) . form_checkbox('forum_users', self::$locale['forum_024'], $this->data['forum_users'], array("reverse_label" => TRUE)) . form_checkbox('forum_quick_edit', self::$locale['forum_021'], $this->data['forum_quick_edit'], array("reverse_label" => TRUE)) . form_checkbox('forum_merge', self::$locale['forum_019'], $this->data['forum_merge'], array("reverse_label" => TRUE)) . form_checkbox('forum_allow_attach', self::$locale['forum_020'], $this->data['forum_allow_attach'], array("reverse_label" => TRUE)) . form_checkbox('forum_allow_poll', self::$locale['forum_022'], $this->data['forum_allow_poll'], array("reverse_label" => TRUE)) . form_hidden('forum_id', '', $this->data['forum_id']) . form_hidden('forum_branch', '', $this->data['forum_branch']);
closeside();
echo "</div>\n</div>\n";
echo form_button('save_forum', $this->data['forum_id'] ? self::$locale['forum_000a'] : self::$locale['forum_000'], self::$locale['forum_000'], array('class' => 'btn-sm btn-success'));
echo closeform();
closetable();
}
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:96,代码来源:view.php
示例9: dbquery_insert
// clear to save
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 . "&action=edit&smiley_id=" . $cdata['smiley_id'] . "'>" . $locale['434'] . "</a> -\n";
echo "<a id='confirm' href='" . FUSION_SELF . $aidlink . "&action=delete&smiley_id=" . $cdata['smiley_id'] . "'>" . $locale['435'] . "</a></td>\n</tr>\n";
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:smileys.php
示例10: explode
$cat_sorting = explode(" ", $data['weblink_cat_sorting']);
if ($cat_sorting[0] == "weblink_id") {
$data['cat_sort_by'] = "1";
} elseif ($cat_sorting[0] == "weblink_name") {
$data['cat_sort_by'] = "2";
} else {
$data['cat_sort_by'] = "3";
}
$data['cat_sort_order'] = $cat_sorting[1];
} else {
redirect(FUSION_SELF . $aidlink);
}
}
$wlCatTab['title'] = array($locale['wl_0710'], $locale['wl_0004']);
$wlCatTab['id'] = array("a", "b");
$tab_active = tab_active($wlCatTab, isset($_GET['cat_view']) ? 1 : 0);
echo opentab($wlCatTab, $tab_active, "wlCat_tab", FALSE, "m-t-20");
echo opentabbody($wlCatTab['title'][0], $wlCatTab['id'][0], $tab_active);
echo openform('addcat', 'post', FUSION_REQUEST, array("class" => "m-t-20"));
echo form_hidden("weblink_cat_id", "", $data['weblink_cat_id']);
echo form_text('weblink_cat_name', $locale['wl_0700'], $data['weblink_cat_name'], array('required' => TRUE, "error_text" => $locale['wl_0701'], "inline" => TRUE));
echo form_textarea('weblink_cat_description', $locale['wl_0702'], $data['weblink_cat_description'], array("html" => TRUE, "preview" => FALSE, "autosize" => TRUE, "inline" => TRUE));
echo form_select_tree("weblink_cat_parent", $locale['wl_0703'], $data['weblink_cat_parent'], array("disable_opts" => $cat_hidden, "hide_disabled" => TRUE, "inline" => TRUE), DB_WEBLINK_CATS, "weblink_cat_name", "weblink_cat_id", "weblink_cat_parent");
if (multilang_table("WL")) {
echo form_select('weblink_cat_language', $locale['global_ML100'], $data['weblink_cat_language'], array('options' => fusion_get_enabled_languages(), "inline" => TRUE));
} else {
echo form_hidden('weblink_cat_language', '', $data['weblink_cat_language']);
}
echo "<div class='row m-0'>\n";
echo "<label class='label-control col-xs-12 col-sm-3 p-l-0'>" . $locale['wl_0704'] . "</label>\n";
echo "<div class='col-xs-12 col-sm-3 p-l-0'>\n";
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:weblinks_cats.php
示例11: 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
示例12: elseif
$data['download_cat_sort_by'] = "2";
} elseif ($cat_sorting[0] == "download_datestamp") {
$data['download_cat_sort_by'] = "3";
}
$data['download_cat_sort_order'] = $cat_sorting[1];
} else {
redirect(clean_request("", array("section", "aid"), TRUE));
}
}
$tab_title['title'][] = $locale['download_0023'];
$tab_title['id'][] = "dlcats_form";
$tab_title['icon'][] = "";
$tab_title['title'][] = $locale['download_0020'];
$tab_title['id'][] = "dlcats";
$tab_title['icon'][] = "";
$tab_active = tab_active($tab_title, isset($_GET['cat_view']) ? 1 : 0);
echo opentab($tab_title, $tab_active, 'dcategory', FALSE, "m-t-20");
echo opentabbody($tab_title['title'][0], $tab_title['id'][0], $tab_active);
echo openform('addcat', 'post', FUSION_REQUEST, array('class' => 'm-t-20'));
echo "<div class='row'>\n";
echo "<div class='col-xs-12 col-sm-8'>\n";
openside('');
echo form_hidden("download_cat_id", "", $data['download_cat_id']);
echo form_text('download_cat_name', $locale['download_0300'], $data['download_cat_name'], array('required' => TRUE, 'error_text' => $locale['download_0351']));
echo form_textarea('download_cat_description', $locale['download_0301'], $data['download_cat_description'], array('resize' => 0, 'autosize' => TRUE));
echo "<div class='clearfix'>\n";
echo form_select('download_cat_sort_by', $locale['download_0302'], $data['download_cat_sort_by'], array('options' => array('1' => $locale['download_0303'], '2' => $locale['download_0304'], '3' => $locale['download_0305']), 'class' => 'pull-left m-r-10', 'width' => '200px'));
echo form_select('download_cat_sort_order', '', $data['download_cat_sort_order'], array('options' => array('ASC' => $locale['download_0306'], 'DESC' => $locale['download_0307']), 'class' => 'pull-left', 'width' => '200px'));
echo "</div>\n";
closeside();
echo "</div>\n<div class='col-xs-12 col-sm-4'>\n";
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:31,代码来源:download_cats.php
示例13: display_administration
/**
* Administration Console
*/
public function display_administration()
{
global $aidlink;
$locale = self::$locale;
define("NO_DEBUGGER", TRUE);
$_GET['rowstart'] = isset($_GET['rowstart']) && isnum($_GET['rowstart']) ? $_GET['rowstart'] : 0;
$tab_title['title'][0] = 'Errors';
$tab_title['id'][0] = 'errors-list';
$tab_title['icon'][0] = 'fa fa-bug m-r-10';
if ($this->error_id) {
$tab_title['title'][1] = 'Error File';
$tab_title['id'][1] = 'error-file';
$tab_title['icon'][1] = 'fa fa-medkit m-r-10';
$tab_title['title'][2] = 'Source File';
$tab_title['id'][2] = 'src-file';
$tab_title['icon'][2] = 'fa fa-stethoscope m-r-10';
}
$tab_active = tab_active($tab_title, $this->error_id ? 1 : 0);
add_breadcrumb(array('link' => ADMIN . "errors.php" . $aidlink, 'title' => $locale['400']));
opentable($locale['400']);
echo opentab($tab_title, $tab_active, 'error_tab');
echo opentabbody($tab_title['title'][0], $tab_title['id'][0], $tab_active);
?>
<div class='m-t-20'><?php
echo $this->getErrorLogs();
?>
</div>
<?php
echo closetabbody();
if ($this->error_id) {
// dump 1 and 2
add_to_head("<link rel='stylesheet' href='" . THEMES . "templates/errors.css' type='text/css' media='all' />");
define('no_debugger', 1);
$data = dbarray(dbquery("SELECT * FROM " . DB_ERRORS . " WHERE error_id='" . $this->error_id . "' LIMIT 1"));
if (!$data) {
redirect(FUSION_SELF . $aidlink);
}
$thisFileContent = is_file($data['error_file']) ? file($data['error_file']) : array();
$line_start = max($data['error_line'] - 10, 1);
$line_end = min($data['error_line'] + 10, count($thisFileContent));
$output = implode("", array_slice($thisFileContent, $line_start - 1, $line_end - $line_start + 1));
$pageFilePath = BASEDIR . $data['error_page'];
$pageContent = is_file($pageFilePath) ? file_get_contents($pageFilePath) : '';
add_to_jquery("\n\t\t\t\$('#error_status_sel').bind('change', function(e) { this.form.submit();\t});\n\t\t\t");
echo opentabbody($tab_title['title'][1], $tab_title['id'][1], $tab_active);
?>
<div class='m-t-20'>
<h2><?php
echo $data['error_message'];
?>
</h2>
<h3 style='border-bottom:0;' class='display-inline'><label
class='label label-success'><?php
echo $locale['415'] . " " . number_format($data['error_line']);
?>
</label>
</h3>
<div class='display-inline text-lighter'><strong><?php
echo $locale['419'];
?>
</strong>
-- <?php
echo self::getMaxFolders(stripslashes($data['error_file']), 3);
?>
</div>
<div class='m-t-10'>
<div class='display-inline-block m-r-20'><i class='fa fa-file-code-o m-r-10'></i><strong
class='m-r-10'><?php
echo $locale['411'];
?>
</strong> -- <a
href='<?php
echo FUSION_SELF . $aidlink . "&rowstart=" . $_GET['rowstart'] . "&error_id=" . $data['error_id'];
?>
#page'
title='<?php
echo $data['error_page'];
?>
'>
<?php
echo self::getMaxFolders($data['error_page'], 3);
?>
</a>
</div>
<span class='text-lighter'>generated by</span>
<div class='alert alert-info display-inline-block p-t-0 p-b-0 text-smaller'>
<strong><?php
echo $locale['412'] . "-" . $locale['416'];
?>
<?php
//.........这里部分代码省略.........
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:101,代码来源:Errors.php
示例14: quantum_admin_buttons
public function quantum_admin_buttons()
{
global $aidlink;
$tab_title['title'][] = $this->locale['fields_0300'];
$tab_title['id'][] = 'dyn';
$tab_title['icon'][] = '';
if (!empty($this->cat_list)) {
$tab_title['title'][] = $this->locale['fields_0301'];
$tab_title['id'][] = 'mod';
$tab_title['icon'][] = '';
}
// Extended Tabs
// add category
if (isset($_POST['add_cat'])) {
$tab_title['title'][] = $this->locale['fields_0305'];
$tab_title['id'][] = 'add';
$tab_title['icon'][] = '';
$tab_active = !empty($this->cat_list) ? tab_active($tab_title, 2) : tab_active($tab_title, 1);
} elseif (isset($_POST['add_field']) && in_array($_POST['add_field'], array_flip($this->get_dynamics_type()))) {
$tab_title['title'][] = $this->locale['fields_0306'];
$tab_title['id'][] = 'add';
$tab_title['icon'][] = '';
$tab_active = tab_active($tab_title, 2);
} elseif (isset($_POST['add_module']) && in_array($_POST['add_module'], array_flip($this->get_available_modules))) {
$tab_title['title'][] = $this->locale['fields_0307'];
$tab_title['id'][] = 'add';
$tab_title['icon'][] = '';
$tab_active = tab_active($tab_title, 2);
} elseif (isset($_GET['action']) && $_GET['action'] == 'cat_edit' && isset($_GET['cat_id']) && isnum($_GET['cat_id'])) {
$tab_title['title'][] = $this->locale['fields_0308'];
$tab_title['id'][] = 'edit';
$tab_title['icon'][] = '';
$tab_active = !empty($this->cat_list) ? tab_active($tab_title, 2) : tab_active($tab_title, 1);
} elseif (isset($_GET['action']) && $_GET['action'] == 'field_edit' && isset($_GET['field_id']) && isnum($_GET['field_id'])) {
$tab_title['title'][] = $this->locale['fields_0309'];
$tab_title['id'][] = 'edit';
$tab_title['icon'][] = '';
$tab_active = tab_active($tab_title, 2);
} elseif (isset($_GET['action']) && $_GET['action'] == 'module_edit' && isset($_GET['module_id']) && isnum($_GET['module_id'])) {
$tab_title['title'][] = $this->locale['fields_0310'];
$tab_title['id'][] = 'edit';
$tab_title['icon'][] = '';
$tab_active = tab_active($tab_title, 2);
} else {
$tab_active = tab_active($tab_title, 0);
}
echo opentab($tab_title, $tab_active, 'amd');
echo opentabbody($tab_title['title'][0], $tab_title['id'][0], $tab_active);
echo openform('addfield', 'post', FUSION_SELF . $aidlink);
echo form_button('add_cat', $this->locale['fields_0311'], 'add_cat', array('class' => 'm-t-20 m-b-20 btn-sm btn-primary btn-block', 'icon' =&g
|
请发表评论