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


PHP closetable函数代码示例

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


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

示例1: render_article

function render_article($subject, $article, $info)
{
    global $locale;
    opentable($subject);
    echo "<div class='floatfix'>" . ($info['article_breaks'] == "y" ? nl2br($article) : $article) . "</div>\n<div class='news-footer'>\n\t" . articleposter($info, " &middot;") . articleopts($info, "&middot;") . itemoptions("A", $info['article_id']) . "\n</div>\n";
    closetable();
}
开发者ID:dioda,项目名称:phpfusion,代码行数:7,代码来源:theme.php

示例2: display_no_item

 function display_no_item()
 {
     global $locale;
     opentable($locale['home_0100']);
     echo $locale['home_0101'];
     closetable();
 }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:7,代码来源:home.php

示例3: render_comments

 function render_comments($c_data, $c_info)
 {
     global $locale;
     opentable($locale['c100']);
     if (!empty($c_data)) {
         echo "<div class='comments floatfix'>\n";
         $c_makepagenav = '';
         if ($c_info['c_makepagenav'] !== false) {
             echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>" . $c_info['c_makepagenav'] . "</div>\n";
         }
         foreach ($c_data as $data) {
             echo "<div class='tbl2'>\n";
             if ($data['edit_dell'] !== false) {
                 echo "<div style='float:right' class='comment_actions'>" . $data['edit_dell'] . "\n</div>\n";
             }
             echo "<a href='" . FUSION_REQUEST . "#c" . $data['comment_id'] . "' id='c" . $data['comment_id'] . "' name='c" . $data['comment_id'] . "'>#" . $data['i'] . "</a> |\n";
             echo "<span class='comment-name'>" . $data['comment_name'] . "</span>\n";
             echo "<span class='small'>" . $data['comment_datestamp'] . "</span>\n";
             echo "</div>\n<div class='tbl1 comment_message'>" . $data['comment_message'] . "</div>\n";
         }
         echo $c_makepagenav;
         if ($c_info['admin_link'] !== false) {
             echo "<div style='float:right' class='comment_admin'>" . $c_info['admin_link'] . "</div>\n";
         }
         echo "</div>\n";
     } else {
         echo $locale['c101'] . "\n";
     }
     closetable();
 }
开发者ID:dioda,项目名称:phpfusion,代码行数:30,代码来源:render_functions.php

示例4: render_faq_item

 function render_faq_item($info)
 {
     global $locale;
     echo "<span id='content'></span>\n";
     opentable($locale['401'] . ": " . $info['faq_cat_name']);
     echo "<a href='" . INFUSIONS . "faq/faq.php'>" . $locale['400'] . "</a> &gt; <a href='" . $info['faq_link'] . "'>" . $info['faq_cat_name'] . "</a>\n";
     if (!empty($info['nofaq_items'])) {
         echo "<div class='well text-center m-t-20'>" . $info['nofaq_items'] . "</div>\n";
     } else {
         echo "<div class='row m-t-20'>\n";
         echo "<div class='col-xs-12 col-sm-3'>\n";
         if (!empty($info['items'])) {
             echo "<ul>\n";
             foreach ($info['items'] as $data) {
                 echo "<li><a href='" . FUSION_REQUEST . "#faq_" . $data['faq_id'] . "'>" . $data['faq_question'] . "</a></li>\n";
             }
             echo "</ul>\n";
         }
         echo "</div>\n";
         echo "<div class='col-xs-12 col-sm-9'>\n";
         foreach ($info['items'] as $data) {
             echo "<a class='pull-right btn btn-xs btn-default' href='" . FUSION_REQUEST . "#content'><i class='fa fa-arrow-up'></i> " . $locale['402'] . "</a>\n";
             echo "<h4 id='faq_" . $data['faq_id'] . "'>" . $data['faq_question'] . "</h4>\n";
             echo nl2br(parse_textarea($data['faq_answer']));
             echo "<hr/>\n";
         }
         echo "</div>\n";
         echo "</div>\n";
     }
     closetable();
 }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:faq.php

示例5: render_weblinks

 function render_weblinks($info)
 {
     global $locale;
     echo render_breadcrumbs();
     opentable($locale['400']);
     if ($info['weblink_cat_rows'] != 0) {
         $counter = 0;
         $columns = 2;
         echo "<div class='row m-0'>\n";
         if (!empty($info['item'])) {
             foreach ($info['item'] as $weblink_cat_id => $data) {
                 if ($counter != 0 && $counter % $columns == 0) {
                     echo "</div>\n<div class='row m-0'>\n";
                 }
                 echo "<div class='col-xs-12 col-sm-6 col-md-6 col-lg-6 p-t-20'>\n";
                 echo "<div class='media'>\n";
                 echo "<div class='pull-left'><i class='entypo folder mid-opacity icon-sm'></i></div>\n";
                 echo "<div class='media-body overflow-hide'>\n";
                 echo "<div class='media-heading strong'><a href='" . $data['weblink_item']['link'] . "'>" . $data['weblink_item']['name'] . "</a> <span class='small'>" . $data['weblink_count'] . "</span></div>\n";
                 if ($data['weblink_cat_description'] != "") {
                     echo "<span>" . $data['weblink_cat_description'] . "</span>";
                 }
                 echo "</div>\n</div>\n";
                 echo "</div>\n";
                 $counter++;
             }
         }
         echo "</div>\n";
     } else {
         echo "<div style='text-align:center'><br />\n" . $locale['430'] . "<br /><br />\n</div>\n";
     }
     closetable();
 }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:33,代码来源:weblinks.php

示例6: extras_crime

function extras_crime()
{
    //Crime, not finished
    global $HTTP_POST_VARS, $userdata, $locale, $settings, $golddata;
    table_top($locale['URG1554']);
    echo $locale['URG1552'];
    echo $locale['URG1553'];
    closetable();
}
开发者ID:simplyianm,项目名称:clububer,代码行数:9,代码来源:extras.inc.php

示例7: display_error_page

 function display_error_page($data)
 {
     $locale = fusion_get_locale();
     $text = $data['title'];
     $image = $data['image'];
     opentable($text);
     echo "<table class='table table-responsive' width='100%' style='text-center'>";
     echo "<tr>";
     echo "<td width='30%' align='center'><img class='img-responsive' src='" . $image . "' alt='" . $text . "' border='0'></td>";
     echo "<td style='font-size:16px;color:red' align='center'>" . $text . "</td>";
     echo "</tr>";
     echo "<tr>";
     echo "<td colspan='2' align='center'><b><a class='button' href='" . BASEDIR . "index.php'>" . $locale['errret'] . "</a></b></td>";
     echo "</tr>";
     echo "</table>";
     closetable();
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:17,代码来源:error.php

示例8: gold_admin_main

function gold_admin_main()
{
    //Gold administration entry view
    global $locale, $aidlink;
    include GOLD_INC . "version_checker/version_checker.php";
    opentable($locale['urg_a_global_100'], '');
    echo "<div align='left' style='float: left; width: 50%;'>\n";
    echo $locale['urg_a_global_105'];
    /*if (gold_table_exists(DB_PREFIX."users_points")) {//Check if usergold 2 is installed or not
    		$rows = dbcount("(*)", DB_UG3);
    		if ($rows < 2) { 
    			echo "<br /><br />".$locale['urg_a_global_110']."<a href='install.php".$aidlink."'><strong>".$locale['urg_a_global_111']."</strong></a>".$locale['urg_a_global_112'];
    		}
    	}*/
    echo "</div><div align='right' style='float: right; width: 50%;'>\n";
    echo checkversion(GOLD_VERSION);
    echo "</div><div style='clear:both;'></div>\n";
    closetable();
}
开发者ID:simplyianm,项目名称:clububer,代码行数:19,代码来源:admin_functions.php

示例9: display_loginform

 /**
  * Display Login form
  * @param array $info
  */
 function display_loginform(array $info)
 {
     global $locale, $userdata, $aidlink;
     opentable($locale['global_100']);
     if (iMEMBER) {
         $msg_count = dbcount("(message_id)", DB_MESSAGES, "message_to='" . $userdata['user_id'] . "' AND message_read='0' AND message_folder='0'");
         opentable($userdata['user_name']);
         echo "<div style='text-align:center'><br />\n";
         echo THEME_BULLET . " <a href='" . BASEDIR . "edit_profile.php' class='side'>" . $locale['global_120'] . "</a><br />\n";
         echo THEME_BULLET . " <a href='" . BASEDIR . "messages.php' class='side'>" . $locale['global_121'] . "</a><br />\n";
         echo THEME_BULLET . " <a href='" . BASEDIR . "members.php' class='side'>" . $locale['global_122'] . "</a><br />\n";
         if (iADMIN && (iUSER_RIGHTS != "" || iUSER_RIGHTS != "C")) {
             echo THEME_BULLET . " <a href='" . ADMIN . "index.php" . $aidlink . "' class='side'>" . $locale['global_123'] . "</a><br />\n";
         }
         echo THEME_BULLET . " <a href='" . BASEDIR . "index.php?logout=yes' class='side'>" . $locale['global_124'] . "</a>\n";
         if ($msg_count) {
             echo "<br /><br />\n";
             echo "<strong><a href='" . BASEDIR . "messages.php' class='side'>" . sprintf($locale['global_125'], $msg_count);
             echo ($msg_count == 1 ? $locale['global_126'] : $locale['global_127']) . "</a></strong>\n";
         }
         echo "<br /><br /></div>\n";
     } else {
         echo "<div id='login_form' class='panel panel-default text-center text-dark'>\n";
         if (fusion_get_settings("sitebanner")) {
             echo "<a class='display-inline-block' href='" . BASEDIR . fusion_get_settings("opening_page") . "'><img src='" . BASEDIR . fusion_get_settings("sitebanner") . "' alt='" . fusion_get_settings("sitename") . "'/></a>\n";
         } else {
             echo "<a class='display-inline-block' href='" . BASEDIR . fusion_get_settings("opening_page") . "'>" . fusion_get_settings("sitename") . "</a>\n";
         }
         echo "<div class='panel-body text-center'>\n";
         echo $info['open_form'];
         echo $info['user_name'];
         echo $info['user_pass'];
         echo $info['remember_me'];
         echo $info['login_button'];
         echo $info['registration_link'] . "<br/><br/>";
         echo $info['forgot_password_link'] . "<br/><br/>";
         echo $info['close_form'];
         echo "</div>\n";
         echo "</div>\n";
     }
     closetable();
 }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:46,代码来源:login.php

示例10: render_post

function render_post($post)
{
    global $locale, $settings;
    opentable($post['alb_post_title']);
    echo "<div class='post-item'>";
    echo "<div class='post-body'>" . $post['alb_post_text'] . "</div>";
    echo "<div class='post-footer'>";
    echo "<img src='" . AL_BLOG_DIR . "asset/images/user.png' class='icon' /><a href='" . BASEDIR . "profile.php?lookup=" . $post['alb_post_user'] . "'>" . $post['user_name'] . "</a>";
    echo "<img src='" . AL_BLOG_DIR . "asset/images/category.png' class='icon' />" . ($post['alb_cat_title'] != '' ? "<a href='" . FUSION_SELF . "?p=view_category&id=" . $post['alb_post_cat'] . "'>" . $post['alb_cat_title'] . "</a>" : $locale['alb21']);
    echo "<img src='" . AL_BLOG_DIR . "asset/images/calendar.png' class='icon' />" . showdate("forumdate", $post['alb_post_datestamp']);
    echo "<img src='" . AL_BLOG_DIR . "asset/images/comments.png' class='icon' />" . $post['comments'];
    //echo " <a href='".FUSION_SELF."?p=view_post&id=".$post['alb_post_id']."'>".$locale['alb22']."</a>";
    echo "</div>";
    echo "</div>";
    closetable();
    require_once INCLUDES . "comments_include.php";
    showcomments("BL", DB_AL_BLOG_POSTS, "alb_post_id", $_GET['id'], FUSION_SELF . "?p=view_post&id=" . $_GET['id']);
    require_once INCLUDES . "ratings_include.php";
    showratings("B", $_GET['id'], FUSION_SELF . "?p=view_post&id=" . $_GET['id']);
}
开发者ID:SymbolixDEV,项目名称:AL-PHP-Fusion-Addons,代码行数:20,代码来源:functions.php

示例11: render_custompage

 function render_custompage($info)
 {
     echo render_breadcrumbs();
     opentable($info['title']);
     echo "<!--cp_idx-->\n";
     if (!empty($info['error'])) {
         echo "<div class='well text-center'>\n";
         echo $info['error'];
         echo "</div>\n";
     } else {
         echo $info['body'][$_GET['rowstart']];
     }
     closetable();
     if (!empty($info['pagenav'])) {
         echo "<div class='display-block text-center m-t-5'>\n";
         echo $info['pagenav'];
         echo "</div>\n";
     }
     echo "<!--cp_sub_idx-->\n";
     echo $info['show_comments'];
     echo $info['show_ratings'];
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:22,代码来源:custompage.php

示例12: render_comments

 function render_comments($c_data, $c_info)
 {
     global $locale;
     opentable(format_word(number_format(count($c_data)), $locale['fmt_comment']));
     if (!empty($c_data)) {
         echo "<div class='comments floatfix'>\n";
         $c_makepagenav = '';
         if ($c_info['c_makepagenav'] !== FALSE) {
             echo $c_makepagenav = "<div style='text-align:center;margin-bottom:5px;'>" . $c_info['c_makepagenav'] . "</div>\n";
         }
         foreach ($c_data as $data) {
             echo "<div class='comments_container m-b-15'><div class='pull-left m-r-10'>";
             echo $data['user_avatar'];
             echo "</div>\n";
             echo "<div class='overflow-hide'>\n";
             if ($data['edit_dell'] !== FALSE) {
                 echo "\n\t\t\t\t\t<div class='pull-right text-smaller comment_actions'>\n\t\t\t\t\t" . $data['edit_dell'] . "\n\t\t\t\t\t</div>\n";
             }
             echo "<div class='comment_name'>\n";
             echo "<a href='" . FUSION_REQUEST . "#c" . $data['comment_id'] . "' id='c" . $data['comment_id'] . "' name='c" . $data['comment_id'] . "'>#" . $data['i'] . "</a> ";
             echo $data['comment_name'];
             echo "<span class='text-smaller mid-opacity m-l-10'>" . $data['comment_datestamp'] . "</span>\n";
             echo "</div>\n";
             echo "<div class='comment_message'>" . $data['comment_message'] . "</div>\n";
             echo "</div>\n</div>\n";
         }
         echo $c_makepagenav;
         if ($c_info['admin_link'] !== FALSE) {
             echo "<div style='float:right' class='comment_admin'>" . $c_info['admin_link'] . "</div>\n";
         }
         echo "</div>\n";
     } else {
         echo "<div class='no_comment'>\n";
         echo $locale['c101'] . "\n";
         echo "</div>\n";
     }
     closetable();
 }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:38,代码来源:render_functions.php

示例13: ConfigureVideo

function ConfigureVideo($ModPath, $ModStart, $class_sty_2)
{
    opentable();
    echo '<table width="100%" cellspacing="2" cellpadding="2" border="0">
   <tr><td class="header">' . video_yt_translate('Configuration du module vid&#xE9;o') . '</td>
   </tr><tr><td><font color=red>* </font>' . video_yt_translate('requis') . '</td></tr>
   </table>';
    opentable();
    echo '<form action="admin.php" method="post">';
    if (file_exists("modules/{$ModPath}/video_yt_conf.php")) {
        include "modules/{$ModPath}/video_yt_conf.php";
    }
    echo '<table width="100%" cellspacing="2" cellpadding="2" border="1"><tr>
   <td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Votre ID developpeur youtube') . '</span> <font color=red>*</font> </td><td><input type="text" size="33" maxlength="255" name="dev_id" value="' . $dev_id . '"></td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Votre clef developpeur youtube') . '</span> </td><td><input type="text" size="33" maxlength="255" name="dev_key" value="' . $dev_key . '"> </td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Votre username id') . '</span> <font color=red>*</font></td><td><input type="text" size="33" maxlength="255" name="account" value="' . $use_id . '"> </td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Votre username youtube') . '</span> <font color=red>*</font></td><td><input type="text" size="33" maxlength="255" name="account" value="' . $account . '"> </td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Username alternatif') . '</span> <font color=red>*</font></td><td><input type="text" size="33" maxlength="255" name="rep_account" value="' . $rep_account . '"></td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Largeur de la vid&#xE9;o') . '</span> </td><td><input type="text" size="33" maxlength="255" name="video_width" value="' . $video_width . '"></td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Hauteur de la vid&#xE9;o') . '</span> </td><td><input type="text" size="33" maxlength="255" name="video_height" value="' . $video_height . '"></td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Largeur de la vid&#xE9;o dans le bloc') . '</span> </td><td><input type="text" size="33" maxlength="255" name="bloc_width" value="' . $bloc_width . '"></td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Hauteur de la vid&#xE9;o dans le bloc') . '</span> </td><td><input type="text" size="33" maxlength="255" name="bloc_height" value="' . $bloc_height . '"></td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Nombre de vid&#xE9;o par page') . '</span> <font color=red>*</font> </td><td><input type="text" size="33" maxlength="2" name="incrementby" value="' . $incrementby . '"></td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Nombre de vid&#xE9;o dans recherche') . '</span> <font color=red>*</font> </td><td><input type="text" size="33" maxlength="2" name="search_incrementby" value="' . $search_incrementby . '"></td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Couleur de fond zone recherche') . '</span> <font color=red>*</font> </td><td><input type="text" size="33" maxlength="6" name="bg_yt_search" value="' . $bg_yt_search . '"></td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Classe de style titre') . '</span> </td><td><input type="text" size="33" maxlength="255" name="class_sty_1" value="' . $class_sty_1 . '"></td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Classe de style sous-titre') . '</span> </td><td><input type="text" size="33" maxlength="255" name="class_sty_2" value="' . $class_sty_2 . '"></td></tr><tr><td width="25%">
   <span class="' . $class_sty_2 . '">' . video_yt_translate('Classe de style commentaire') . '</span> </td><td><input type="text" size="33" maxlength="255" name="class_sty_3" value="' . $class_sty_3 . '"></td></tr></table>
   <br /><input class="bouton_standard" type="submit" value="' . video_yt_translate('Sauver') . '" />
   <input type="hidden" name="op" value="Extend-Admin-SubModule" />
   <input type="hidden" name="ModPath" value="' . $ModPath . '" />
   <input type="hidden" name="ModStart" value="' . $ModStart . '" />
   <input type="hidden" name="subop" value="SaveSetVideo_yt" />
   </form>';
    closetable();
    closetable();
}
开发者ID:Jireck-npds,项目名称:npds_dune,代码行数:38,代码来源:video_yt_set.php

示例14: showcomments

function showcomments($ctype, $cdb, $ccol, $cid, $clink = "")
{
    global $settings, $userdata, $locale;
    include LOCALE . LOCALESET . "comments.php";
    require_once INCLUDES . "bbcode_include.php";
    add_to_head("<script type='text/javascript' src='" . INCLUDES . "comments_include/comments.js'></script>");
    add_to_head("<script type='text/javascript'>\n            var ctype = '" . $ctype . "';\n            if (ctype == 'MG') {\n                var cid = window.cidas;\n            } else {\n                var cid = '" . $cid . "';\n            }\n            var basedir = '" . BASEDIR . "';\n\t\t\tvar locale_noc = '" . $locale['c101'] . "';\n\t\t\tvar locale_edit = '" . $locale['c108'] . "';\n\t\t\tvar locale_del = '" . $locale['c109'] . "';\n    </script>");
    echo "<br /><br />";
    opentable($locale['c100']);
    echo "<div id='comments_load' style='display:none;text-align:center;'><img src='" . INCLUDES . "comments_include/load.gif' alt='' style='border:0;' /></div><div id='comments'></div>";
    closetable();
    echo "<br /><br />";
    opentable($locale['c102']);
    if (iMEMBER) {
        echo "<div align='center'>";
        echo "<a id='edit_comment' name='edit_comment'></a>";
        echo "<form name='comment_form' method='post' action='#'>";
        echo "<input type='hidden' name='comment_name' value='" . $userdata['user_id'] . "' />";
        echo "<input type='hidden' name='cid' value='" . $cid . "' />";
        echo "<input type='hidden' name='ctype' value='" . $ctype . "' />";
        echo "<input type='hidden' name='edited_id' value='' />";
        echo "<input type='hidden' name='edited_id' value='' />";
        echo "<textarea name='comment_message' cols='70' rows='6' class='textbox' style='width:360px'></textarea><br />";
        echo "<div align='center'>" . display_bbcodes("360px", "comment_message", "comment_form") . "</div>";
        echo "<input type='submit' name='post_comment' value='" . $locale['c102'] . "' class='button' /> ";
        echo "<input type='submit' name='edit_comment' value='" . $locale['c103'] . "' class='button' /> ";
        echo "</form>";
        echo "<div id='comment_load' style='display:none;text-align:center;height:140px;'><img src='" . INCLUDES . "comments_include/load.gif' alt='' style='border:0;margin-top:50px;' /></div>";
        echo "<br />";
        echo "</div>";
    } else {
        echo "<div style='text-align:center'>" . $locale['c105'] . "</div><br />";
    }
    closetable();
    echo "<div style='text-align:center;width:100%;'>AL jQ comments <a href='http://fusion.annetlab.tk'>Fusion @ AnnetLab</a> &copy; 2011-2012</div>";
}
开发者ID:SymbolixDEV,项目名称:AL-PHP-Fusion-Addons,代码行数:36,代码来源:comments_include.php

示例15: error_handler

function error_handler($ibid)
{
    opentable();
    echo "<p class=\"errorhandler\" align=\"center\">" . adm_translate("Merci d'entrer l'information en fonction des spécifications") . "<br /><br />";
    echo "{$ibid}<br /><a href=\"admin.php?op=mod_authors\" class=\"noir\">" . adm_translate("Retour en arrière") . "</a></p>";
    closetable();
}
开发者ID:npds,项目名称:npds_dune,代码行数:7,代码来源:authors.php


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