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


PHP parseubb函数代码示例

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


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

示例1: awec_post_process_events

function awec_post_process_events(&$events, &$out)
{
    global $ec_today, $ec_tomorrow, $locale, $awec_settings;
    $count = 0;
    $current = 'others';
    $path_event = INFUSIONS . 'aw_ecal_panel/view_event.php?id=';
    $path_birthday = INFUSIONS . 'aw_ecal_panel/birthday.php?id=';
    $show_details = $awec_settings['show_today_in_panel'] ? true : false;
    foreach ($events as $year => $y_data) {
        ksort($y_data, SORT_NUMERIC);
        foreach ($y_data as $month => $m_data) {
            ksort($m_data, SORT_NUMERIC);
            $today_month = $ec_today['mon'] == $month && $ec_today['year'] == $year;
            $tomorrow_month = $ec_tomorrow['mon'] == $month && $ec_tomorrow['year'] == $year;
            foreach ($m_data as $mday => $d_data) {
                if ($today_month && $ec_today['mday'] == $mday) {
                    $current = 'today';
                } else {
                    if ($tomorrow_month && $ec_tomorrow['mday'] == $mday) {
                        $current = 'tomorrow';
                    } else {
                        $current = 'others';
                    }
                }
                foreach ($d_data as $ev) {
                    $item = '';
                    if ($current != 'others') {
                        if ($ev['start_time']) {
                            $item .= $ev['start_time'];
                            if ($ev['end_time']) {
                                $item .= '-' . $ev['end_time'];
                            }
                            $item .= ' ';
                        }
                    } else {
                        $item .= ec_format_fucking_date($year, $month, $mday) . ' ';
                    }
                    if ($ev['is_birthday']) {
                        $path = $path_birthday . $ev['user_id'];
                    } else {
                        $path = $path_event . $ev['ev_id'];
                    }
                    $item .= '<a href="' . $path . '">' . $ev['ev_title'] . '</a>';
                    if ($show_details && $current == 'today') {
                        $body = parseubb($ev['ev_body']);
                        $body = explode(stripinput(AWEC_BREAK), $body);
                        if (count($body) > 1) {
                            $body[0] .= ' <a href="' . $path . '">' . $locale['EC207'] . '</a>';
                        }
                        $item .= '<br /><span class="small2">' . $body[0] . '</span>';
                    }
                    $out[$current][] = $item;
                    ++$count;
                }
            }
        }
    }
    return $count;
}
开发者ID:simplyianm,项目名称:clububer,代码行数:59,代码来源:aw_ecal_panel.php

示例2: makefilelist

            include INFUSIONS . "ss_feeds_panel/locale/English/feeds/" . $data['feed_name'] . ".php";
        }
        include INFUSIONS . "ss_feeds_panel/feeds/" . $data['feed_name'] . "_var.php";
        $feed_icon = makefilelist(INFUSIONS . "ss_feeds_panel/images/icon/", "index.php", true, "files");
        foreach ($feed_icon as $icon) {
            $aicon = "<a href='" . INFUSIONS . "ss_feeds_panel/rss/" . $data['feed_name'] . ".rss' target='_blank'><img src='" . INFUSIONS . "ss_feeds_panel/images/icon/" . $icon . "' title='" . $feed_title . "' alt='" . $feed_title . "' style='border: 0pt none;' /></a>\n";
            $acheck = "&nbsp;<input type='radio' name='feed_icon' value='" . $icon . "' class='textbox' " . ($icon == $data['feed_icon'] ? " checked='checked'" : "") . " onclick='submit();' />" . $locale['ssfp_010'];
            $code = "";
            $code .= "[code]";
            $code .= "rss_icon(\"" . $data['feed_name'] . "\", " . $updfrq . ", \"" . $icon . "\");\n";
            $code .= "[/code]";
            echo "\t<tr>\n";
            echo "\t\t<td class='tbl2' style='white-space:nowrap'>" . $aicon . $acheck . "</td>\n";
            echo "\t</tr>\n";
            echo "\t<tr>\n";
            echo "\t\t<td class='tbl1' style='white-space:nowrap'>" . nl2br(parseubb(stripinput($code))) . "</td>\n";
            echo "\t</tr>\n";
        }
    }
    echo "</table>\n";
    echo "</form>\n";
} else {
    opentable($locale['ssfp_005']);
    echo "<table cellpadding='0' cellspacing='1' width='100%' class='tbl-border center'>\n";
    echo "\t<tr>\n";
    echo "\t\t<td align='center' class='tbl1'>" . $locale['ssfp_102'] . "</td>\n";
    echo "\t</tr>\n";
    echo "</table>\n";
}
echo "<br /><br /><div align='center'><strong><a href='javascript:window.close();'>" . $locale['ssfp_008'] . "</a></strong></div>\n";
closetable();
开发者ID:MichaelFichtner,项目名称:RadioLaFamilia,代码行数:31,代码来源:ss_feeds_code.php

示例3: parseubb

                echo "<h2>" . parseubb($navigation_cache[$i]['link_name'], "b|i|u|color") . "</h2>\n";
            } elseif ($navigation_cache[$i]['link_name'] == "---" && $navigation_cache[$i]['link_url'] == "---") {
                if ($list_open) {
                    echo "</ul>\n";
                    $list_open = false;
                }
                echo "<hr class='side-hr' />\n";
            } else {
                if (!$list_open) {
                    echo "<ul>\n";
                    $list_open = true;
                }
                $link_target = $navigation_cache[$i]['link_window'] == "1" ? " target='_blank'" : "";
                if (strstr($navigation_cache[$i]['link_url'], "http://") || strstr($navigation_cache[$i]['link_url'], "https://")) {
                    echo "<li><a href='" . $navigation_cache[$i]['link_url'] . "'" . $link_target . " class='side'>" . THEME_BULLET . " <span>" . parseubb($navigation_cache[$i]['link_name'], "b|i|u|color") . "</span></a></li>\n";
                } elseif (URL_REWRITE && $navigation_cache[$i]['link_seo_url'] != '') {
                    echo "<li><a href='" . BASEDIR . $navigation_cache[$i]['link_seo_url'] . "'" . $link_target . " class='side'>" . THEME_BULLET . " <span>" . parseubb($navigation_cache[$i]['link_name'], "b|i|u|color") . "</span></a></li>\n";
                } else {
                    echo "<li><a href='" . BASEDIR . $navigation_cache[$i]['link_url'] . "'" . $link_target . " class='side'>" . THEME_BULLET . " <span>" . parseubb($navigation_cache[$i]['link_name'], "b|i|u|color") . "</span></a></li>\n";
                }
            }
        }
    }
    if ($list_open) {
        echo "</ul>\n";
    }
    echo "</div>\n";
} else {
    echo $locale['global_002'];
}
closeside();
开发者ID:MichaelFichtner,项目名称:RadioLaFamilia,代码行数:31,代码来源:css_navigation_panel.php

示例4: showsublinks

function showsublinks($sep = "&middot;", $class = "")
{
    global $settings;
    require_once INCLUDES . "mobile.menu.inc.php";
    $mobile_icon = isset($default_mobile_icon) ? $default_mobile_icon : '';
    $sres = dbquery("SELECT link_name, link_url, link_window, link_visibility FROM " . DB_SITE_LINKS . "\r\n\t        " . (multilang_table("SL") ? "WHERE link_language='" . LANGUAGE . "' AND" : "WHERE") . " link_position>='2' ORDER BY link_order");
    $mobile_link = array();
    if (dbrows($sres)) {
        $i = 0;
        if ($settings['bootstrap']) {
            $res = "<nav class='navbar' role='navigation'>\n";
            $res .= "<div class='mobile-menu'>\n<button type='button' class='navbar-toggle collapsed' data-toggle='collapse' data-target='#mp'><i class='entypo menu'></i></button>\n</div>\n";
            $res .= "<div id='mp' class='navbar-collapse collapse'>\n";
            // collect all navbar item.
            $res .= "<ul class='nav navbar-nav hidden-xs'>\n";
        } else {
            $res = "<ul>\n";
        }
        while ($sdata = dbarray($sres)) {
            $mobile_link[$sdata['link_name']] = $sdata['link_url'];
            // order, visibility, language - complied.
            $li_class = $class;
            $i++;
            if ($sdata['link_url'] != "---" && checkgroup($sdata['link_visibility'])) {
                $link_target = $sdata['link_window'] == "1" ? " target='_blank'" : "";
                if ($i == 1) {
                    $li_class .= ($li_class ? " " : "") . "first-link";
                }
                if (START_PAGE == $sdata['link_url']) {
                    $li_class .= ($li_class ? " " : "") . "current-link";
                }
                if (preg_match("!^(ht|f)tp(s)?://!i", $sdata['link_url'])) {
                    $res .= "<li" . ($li_class ? " class='" . $li_class . "'" : "") . ">" . $sep . "<a href='" . $sdata['link_url'] . "'" . $link_target . ">\n";
                    $res .= "<span>" . parseubb($sdata['link_name'], "b|i|u|color|img") . "</span></a></li>\n";
                } else {
                    $res .= "<li" . ($li_class ? " class='" . $li_class . "'" : "") . ">" . $sep . "<a href='" . BASEDIR . $sdata['link_url'] . "'" . $link_target . ">\n";
                    $res .= "<span>" . parseubb($sdata['link_name'], "b|i|u|color|img") . "</span></a></li>\n";
                }
            }
        }
        if ($settings['bootstrap']) {
            $res .= "</ul>\n";
            $res .= "<!--start of mobile menu -->\n";
            $res .= "<div class='hidden-sm hidden-md hidden-lg mobile-panel m-0'>\n";
            $res .= "<div class='mobile-pane'>\n";
            $res .= "<div class='mobile-header'>\n";
            $res .= "<button class='btn mobile-btn-close' data-toggle='collapse' data-target='#mp'>Close</button>\n";
            $res .= "<div class='mobile-header-text text-center'>Navigation</div>";
            $res .= "</div>\n";
            if (count($mobile_link) > 0) {
                $res .= "<div class='row m-0 mobile-body'>\n";
                foreach ($mobile_link as $link_name => $link_url) {
                    $icon = array_key_exists($link_url, $mobile_icon) ? $mobile_icon[$link_url] : 'entypo layout';
                    $res .= "<div class='col-xs-3 mobile-grid text-center'><a href='{$link_url}' class='btn btn-menu btn-block btn-default m-b-10'><i class='" . $icon . "'></i><br/><span class='mobile-text'>" . trimlink($link_name, 10) . "</span></a></div>\n";
                }
                $res .= "</div>\n";
            }
            $res .= "</div>\n";
            $res .= "</div>\n";
            $res .= "<!--end of mobile menu -->\n";
        } else {
            $res .= "</ul>\n";
        }
        $res .= "</div>\n";
        $res .= "</nav>\n";
        return $res;
    }
}
开发者ID:WuChEn,项目名称:PHP-Fusion,代码行数:68,代码来源:theme_functions_include.php

示例5: dbquery

     if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) {
         $_GET['rowstart'] = 0;
     }
     $result = dbquery("SELECT fp.post_message, fp.post_datestamp, fp.post_edittime, fp.post_author, fp.post_edituser,\n                fu.user_name AS user_name, fu.user_status AS user_status, fe.user_name AS edit_name, fe.user_status AS edit_status,\n                ft.thread_subject, ff.forum_access\n                FROM " . DB_FORUM_THREADS . " ft\n                INNER JOIN " . DB_FORUM_POSTS . " fp ON ft.thread_id = fp.thread_id\n                INNER JOIN " . DB_FORUMS . " ff ON ff.forum_id = ft.forum_id\n                INNER JOIN " . DB_USERS . " fu ON fu.user_id = fp.post_author\n                LEFT JOIN " . DB_USERS . " fe ON fe.user_id = fp.post_edituser\n                WHERE ft.thread_id=" . $_GET['item_id'] . "\n                ORDER BY fp.post_datestamp\n                LIMIT " . $_GET['rowstart'] . ",{$posts_per_page}");
     $res = FALSE;
     $i = 0;
     if (dbrows($result)) {
         while ($data = dbarray($result)) {
             if (checkgroup($data['forum_access'])) {
                 $res = TRUE;
                 if ($i == 0) {
                     echo $locale['500'] . " <strong>" . $settings['sitename'] . " :: " . $data['thread_subject'] . "</strong><hr /><br />\n";
                 }
                 echo "<div style='margin-left:20px'>\n";
                 echo "<div style='float:left'>" . $locale['501'] . profile_link($data['post_author'], $data['user_name'], $data['user_status']) . $locale['502'] . showdate("forumdate", $data['post_datestamp']) . "</div><div style='float:right'>#" . ($i + 1) . "</div><div style='float:none;clear:both'></div><hr />\n";
                 echo nl2br(parseubb(parsesmileys($data['post_message'])));
                 if ($data['edit_name'] != '') {
                     echo "<div style='margin-left:20px'>\n<hr />\n";
                     echo $locale['503'] . profile_link($data['post_edituser'], $data['edit_name'], $data['edit_status']) . $locale['502'] . showdate("forumdate", $data['post_edittime']);
                     echo "</div>\n";
                 }
                 echo "</div>\n";
                 echo "<br />\n";
                 $i++;
             }
         }
     }
     if (!$res) {
         redirect($settings['opening_page']);
     }
 }
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:31,代码来源:print.php

示例6: navigation

function navigation($main_menu = true)
{
    if ($main_menu) {
        $link = Cache::read('navigation');
        if (!$link) {
            $result = dbquery("SELECT link_name, link_url, link_window, link_visibility FROM " . DB_SITE_LINKS . "\r\n\t\t\t\t WHERE link_position='3' ORDER BY link_order");
            $link = array();
            while ($data = dbarray($result)) {
                $link[] = $data;
            }
            Cache::write('navigation', $link);
        }
        echo "<ul>\n";
        foreach ($link as $data) {
            if (checkgroup($data['link_visibility'])) {
                $link_target = $data['link_window'] == "1" ? " target='_blank'" : "";
                $li_class = preg_match("/^" . preg_quote(START_PAGE, '/') . "/i", $data['link_url']) ? " class='current'" : "";
                if (strstr($data['link_name'], "%submenu% ")) {
                    echo "        <li{$li_class}><a href='/" . $data['link_url'] . "'{$link_target}><span>" . parseubb(str_replace("%submenu% ", "", $data['link_name']), "b|i|u|color") . "</span></a>\n        <ul class='children'>\n";
                } elseif (strstr($data['link_name'], "%endmenu% ")) {
                    echo "        <li{$li_class}><a href='/" . $data['link_url'] . "'{$link_target}><span>" . parseubb(str_replace("%endmenu% ", "", $data['link_name']), "b|i|u|color") . "</span></a></li>\n        </ul>\n        </li>\n";
                } elseif (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
                    echo "        <li{$li_class}><a href='" . $data['link_url'] . "'{$link_target}><span>" . parseubb($data['link_name'], "b|i|u|color") . "</span></a></li>\n";
                } else {
                    echo "        <li{$li_class}><a href='/" . $data['link_url'] . "'{$link_target}><span>" . parseubb($data['link_name'], "b|i|u|color") . "</span></a></li>\n";
                }
            }
        }
        echo "      </ul>\n";
    } else {
        $link = Cache::read('footer');
        $list_open = false;
        if (!$link) {
            $result = dbquery("SELECT link_name, link_url, link_window, link_visibility FROM " . DB_SITE_LINKS . "\r\n\t\t\t\t WHERE link_position='1' ORDER BY link_order");
            $link = array();
            while ($data = dbarray($result)) {
                $link[] = $data;
            }
            Cache::write('footer', $link);
        }
        foreach ($link as $data) {
            if (checkgroup($data['link_visibility'])) {
                if ($data['link_name'] != "---" && $data['link_url'] == "---") {
                    if ($list_open) {
                        echo "\t\t\t</ul>\n\t\t</div>\n";
                        $list_open = false;
                    }
                    echo "\t\t<div class='footer grid_4'>\n\t\t\t<h3>" . parseubb($data['link_name'], "b|i|u|color") . "</h3>\n";
                } elseif ($data['link_name'] == "---" && $data['link_url'] == "---") {
                    echo "\t\t\t\t<li>Method does not exist anymore</li>\n";
                } else {
                    if (!$list_open) {
                        echo "\t\t\t<ul>\n";
                        $list_open = true;
                    }
                    $link_target = $data['link_window'] == "1" ? " target='_blank'" : "";
                    if (strstr($data['link_url'], "http://") || strstr($data['link_url'], "https://")) {
                        echo "\t\t\t\t<li><a href='" . $data['link_url'] . "'" . $link_target . "><span>" . parseubb($data['link_name'], "b|i|u|color") . "</span></a></li>\n";
                    } else {
                        echo "\t\t\t\t<li><a href='/" . $data['link_url'] . "'" . $link_target . "><span>" . parseubb($data['link_name'], "b|i|u|color") . "</span></a></li>\n";
                    }
                }
            }
        }
        if ($list_open) {
            echo "\t\t\t</ul>\n\t\t</div>\n";
        }
    }
}
开发者ID:xXxthebeastxXx,项目名称:addondb,代码行数:69,代码来源:functions.php

示例7: dbcount

 $rows = dbcount("(photo_id)", DB_PHOTOS, "album_id='" . (int) $_GET['album_id'] . "'");
 add_to_title($locale['global_201'] . $data['album_title']);
 opentable($locale['420']);
 echo "<!--pre_album_info-->";
 echo "<table cellpadding='0' cellspacing='0' width='80%' class='center'>\n<tr>\n";
 echo "<td rowspan='2' align='center' class='tbl1 photogallery_album_thumb'><!--photogallery_album_thumb-->";
 if ($data['album_thumb'] && file_exists(PHOTOS . $data['album_thumb'])) {
     echo "<img src='" . PHOTOS . $data['album_thumb'] . "' alt='" . $data['album_thumb'] . "' />";
 } elseif (file_exists(PHOTOS . "nophoto.jpg")) {
     echo "<img src='" . PHOTOS . "nophoto.jpg' alt='" . $locale['432'] . "' title='" . $locale['432'] . "' style='border:0px' />";
 } else {
     echo $locale['432'];
 }
 echo "</td>\n";
 echo "<td valign='top' width='100%'><div class='tbl2' style='font-weight:bold;vertical-align:top'>" . $locale['421'] . $data['album_title'] . "</div>\n";
 echo "<div class='tbl1 photogallery_album_desc' style='vertical-align:middle'><!--photogallery_album_desc-->" . nl2br(parseubb($data['album_description'])) . "</div>\n</td>\n</tr>\n";
 echo "<tr>\n<td valign='bottom' width='100%'>\n<div class='tbl2' style='vertical-align:bottom'>\n";
 if ($rows) {
     $pdata = dbarray(dbquery("\r\n\t\t\t\t\tSELECT tp.photo_datestamp, tu.user_id, tu.user_name, tu.user_status\r\n\t\t\t\t\tFROM " . DB_PHOTOS . " tp\r\n\t\t\t\t\tLEFT JOIN " . DB_USERS . " tu ON tp.photo_user=tu.user_id\r\n\t\t\t\t\tWHERE album_id='" . (int) $_GET['album_id'] . "' ORDER BY photo_datestamp DESC LIMIT 1"));
     echo $locale['422'] . "{$rows}<br />\n";
     echo $locale['423'] . profile_link($pdata['user_id'], $pdata['user_name'], $pdata['user_status']) . "" . $locale['424'] . showdate("longdate", $pdata['photo_datestamp']) . "\n";
 } else {
     echo $locale['425'] . "\n";
 }
 echo "</div>\n</td>\n</tr>\n</table>";
 echo "<!--sub_album_info-->";
 closetable();
 //Pimped subcategories begin
 $subs = dbcount("(album_id)", DB_PHOTO_ALBUMS, groupaccess('album_access') . " AND album_parent='" . $_GET['album_id'] . "'");
 if (!isset($_GET['page']) || !isnum($_GET['page'])) {
     $_GET['page'] = 0;
开发者ID:MichaelFichtner,项目名称:RadioLaFamilia,代码行数:31,代码来源:photogallery.php

示例8: showdate

}
echo '<table style="width: 100%;"  class="tbl-border forum_thread_table">';
if ($blogarr = dbarray($bloglist)) {
    echo '
<tr>
<td style="width: 25%;" class="tbl2 forum-caption">' . showdate('forumdate', $blogarr['bp_timestamp']) . '</td>
<td style="width: 75%;" class="tbl2 forum-caption">' . $blogarr['bp_title'] . '</td>
</tr>
<tr>
<td style="width: 25%;" class="tbl2 forum-caption">
' . profile_link($blogarr['bp_author'], $blogarr['user_name'], $blogarr['user_status']) . '<br />';
    if ($blogarr['user_avatar'] && file_exists(IMAGES . "avatars/" . $blogarr['user_avatar']) && $blogarr['user_status'] != 6 && $blogarr['user_status'] != 5) {
        echo "<img src='" . IMAGES . "avatars/" . $blogarr['user_avatar'] . "' alt='Avatar' /><br /><br />\n";
    }
    echo 'Antal blogindlæg: ' . $blogarr['user_blog'] . '<br />
<a href="/blog/liste.php?list=' . $blogarr['user_id'] . '">Se blog</a>
' . (iADMIN || $blogarr['user_id'] == $userdata['user_id'] ? '<br /><a href="/blog/slet.php?id=' . $blogarr['bp_id'] . '" onclick="return confirm(\'Er du sikker på, du vil slette dette indlæg?\')">Slet indlæg</a>' : '') . '
<br /><a href="/report.php?action=new&amp;bp_id=' . $blogarr['bp_id'] . '">Anmeld</a>
</td>
<td style="width: 75%;" class="tbl1">' . nl2br(parseubb(phpentities($blogarr['bp_content']))) . '</td>
</tr>
<tr>
<td colSpan="2" style="width: 5px;">&nbsp;</td>
</tr>
';
} else {
    echo 'Indlægget kunne ikke findes.';
}
echo '</table>';
closetable();
require_once THEMES . "templates/footer.php";
开发者ID:necrophcodr,项目名称:Muks,代码行数:31,代码来源:vis.php

示例9: dbarray

 } else {
     $udata = dbarray(dbquery("SELECT user_id, user_name, user_status FROM " . DB_USERS . " WHERE user_id='" . $_GET['msg_send'] . "'"));
     echo "<input type='hidden' name='msg_send' value='" . $udata['user_id'] . "' />\n";
     echo profile_link($udata['user_id'], $udata['user_name'], $udata['user_status']) . "\n";
 }
 echo "</td>\n<td class='tbl1' align='right'>\n";
 if (iADMIN && !isset($_GET['msg_id'])) {
     echo "<label><input name='chk_sendtoall' type='checkbox' " . $sendtoall_chk . " />\n";
     echo "" . $locale['434'] . ":</label> <select name='msg_to_group' class='textbox'>\n" . $user_types . "</select>\n";
 }
 echo "</td>\n</tr>\n";
 echo "<tr>\n<td align='right' class='tbl2' style='white-space:nowrap'>" . $locale['405'] . ":</td>\n";
 echo "<td class='tbl1' colspan='2'><input type='text' name='subject' value='" . $subject . "' maxlength='32' class='textbox' style='width:250px;' /></td>\n</tr>\n";
 if ($reply_message) {
     echo "<tr>\n<td align='right' class='tbl2' valign='top' style='white-space:nowrap'>" . $locale['422'] . ":</td>\n";
     echo "<td class='tbl1' colspan='2'>" . nl2br(parseubb($reply_message)) . "</td>\n</tr>\n";
 }
 echo "<tr>\n<td align='right' class='tbl2' valign='top' style='white-space:nowrap'>" . ($reply_message ? $locale['433'] : $locale['422']) . ":</td>\n";
 echo "<td class='tbl1' colspan='2'><textarea name='message' cols='75' rows='15' class='textbox' style='width:98%'>" . $message . "</textarea></td>\n</tr>\n";
 echo "<tr>\n<td align='right' class='tbl2' valign='top'></td>\n<td class='tbl1' colspan='2'>\n";
 echo display_bbcodes("98%", "message") . "</td>\n</tr>\n";
 echo "<tr>\n<td align='right' class='tbl2' valign='top' style='white-space:nowrap'>" . $locale['425'] . ":</td>\n";
 echo "<td class='tbl1' colspan='2'>\n<label><input type='checkbox' name='chk_disablesmileys' value='y'" . $disablesmileys_chk . " />" . $locale['427'] . "</label></td>\n</tr>\n";
 echo "</table>\n";
 echo "<table border='0' cellpadding='0' cellspacing='0' width='100%'>\n";
 echo "<tr>\n<td class='tbl'><a href='" . FUSION_SELF . "?folder=inbox'>" . $locale['435'] . "</a></td>\n";
 echo "<td align='right' class='tbl'>\n<input type='submit' name='send_preview' value='" . $locale['429'] . "' class='button' />\n";
 echo "<input type='submit' name='send_message' value='" . $locale['430'] . "' class='button' />\n</td>\n</tr>\n";
 echo "</table>\n</form>\n";
 closetable();
 echo "<script type='text/javascript'>\n";
开发者ID:caveman4572,项目名称:PHP-Fusion,代码行数:31,代码来源:messages.php

示例10: render_dashboard


//.........这里部分代码省略.........
        closeside();
        echo "</div>\n";
    }
    echo "</div>\n";
    echo "<div class='row'>\n";
    echo "<div class='col-xs-12 co-sm-6 col-md-6 col-lg-3'>\n";
    openside("<span class='text-smaller text-uppercase'><strong>" . $locale['283'] . "</strong></span><span class='pull-right badge'>" . number_format($infusions_count) . "</span>");
    if ($infusions_count > 0) {
        global $global_infusions;
        echo "<div class='comment_content'>\n";
        if (!empty($global_infusions)) {
            foreach ($global_infusions as $inf_id => $inf_data) {
                echo "<span class='badge m-b-10'>" . $inf_data['inf_title'] . "</span>\n";
            }
        }
        echo "</div>\n";
        closeside("" . (checkrights("I") ? "<div class='text-right text-uppercase'>\n<a class='text-smaller' href='" . ADMIN . "infusions.php" . $aidlink . "'>" . $locale['285'] . "</a><i class='entypo right-open-mini'></i></div>\n" : '') . "");
    } else {
        echo "<div class='text-center'>" . $locale['284'] . "</div>\n";
        closeside();
    }
    // comments
    echo "</div>\n<div class='col-xs-12 co-sm-6 col-md-6 col-lg-3'>\n";
    openside("<span class='text-smaller text-uppercase'><strong>" . $locale['277'] . "</strong></span><span class='pull-right badge'>" . number_format($global_comments['rows']) . "</span>");
    if (count($global_comments['data']) > 0) {
        foreach ($global_comments['data'] as $i => $comment_data) {
            echo "<!--Start Comment Item-->\n";
            echo "<div data-id='{$i}' class='comment_content clearfix p-t-10 p-b-10' " . ($i > 0 ? "style='border-top:1px solid #ddd;'" : '') . " >\n";
            echo "<div class='pull-left display-inline-block' style='margin-top:0px; margin-bottom:10px;'>" . display_avatar($comment_data, "25px", "", FALSE, "", "") . "</div>\n";
            echo "<div id='comment_action-{$i}' class='btn-group pull-right display-none' style='position:absolute; right: 30px; margin-top:25px;'>\n\n\t\t\t\t<a class='btn btn-xs btn-default' title='" . $locale['274'] . "' href='" . ADMIN . "comments.php" . $aidlink . "&amp;ctype=" . $comment_data['comment_type'] . "&amp;comment_item_id=" . $comment_data['comment_item_id'] . "'><i class='entypo eye'></i></a>\n\t\t\t\t<a class='btn btn-xs btn-default' title='" . $locale['275'] . "' href='" . ADMIN . "comments.php" . $aidlink . "&amp;action=edit&amp;comment_id=" . $comment_data['comment_id'] . "&amp;ctype=" . $comment_data['comment_type'] . "&amp;comment_item_id=" . $comment_data['comment_item_id'] . "'><i class='entypo pencil'></i></a>\n\t\t\t\t<a class='btn btn-xs btn-default' title='" . $locale['276'] . "' href='" . ADMIN . "comments.php" . $aidlink . "&amp;action=delete&amp;comment_id=" . $comment_data['comment_id'] . "&amp;ctype=" . $comment_data['comment_type'] . "&amp;comment_item_id=" . $comment_data['comment_item_id'] . "'><i class='entypo trash'></i></a></div>\n";
            echo "<strong>" . profile_link($comment_data['user_id'], $comment_data['user_name'], $comment_data['user_status']) . "</strong>\n";
            echo "<span class='text-lighter'>" . $locale['273'] . "</span> <a href='" . sprintf($link_type[$comment_data['comment_type']], $comment_data['comment_item_id']) . "'><strong>" . $comments_type[$comment_data['comment_type']] . "</strong></a>";
            echo "<br/>\n" . timer($comment_data['comment_datestamp']) . "<br/>\n";
            echo "<span class='text-smaller text-lighter'>" . trimlink(parseubb($comment_data['comment_message']), 70) . "</span>\n";
            echo "</div>\n";
            echo "<!--End Comment Item-->\n";
        }
        if (isset($global_comments['comments_nav'])) {
            echo "<div class='clearfix'>\n";
            echo "<span class='pull-right text-smaller'>" . $global_comments['comments_nav'] . "</span>";
            echo "</div>\n";
        }
    } else {
        echo "<div class='text-center'>" . $global_comments['nodata'] . "</div>\n";
    }
    closeside();
    echo "</div>\n<div class='col-xs-12 co-sm-6 col-md-6 col-lg-3'>\n";
    // Ratings
    openside("<span class='text-smaller text-uppercase'><strong>" . $locale['278'] . "</strong></span>");
    if (count($global_ratings['data']) > 0) {
        foreach ($global_ratings['data'] as $i => $ratings_data) {
            echo "<!--Start Rating Item-->\n";
            echo "<div class='comment_content clearfix p-t-10 p-b-10' " . ($i > 0 ? "style='border-top:1px solid #ddd;'" : '') . " >\n";
            echo "<div class='pull-left display-inline-block' style='margin-top:0px; margin-bottom:10px;'>" . display_avatar($ratings_data, "25px", "", FALSE, "", "") . "</div>\n";
            echo "<strong>" . profile_link($ratings_data['user_id'], $ratings_data['user_name'], $ratings_data['user_status']) . "</strong>\n";
            echo "<span class='text-lighter'>" . $locale['273a'] . "</span>\n";
            echo "<a href='" . sprintf($link_type[$ratings_data['rating_type']], $ratings_data['rating_item_id']) . "'><strong>" . $comments_type[$ratings_data['rating_type']] . "</strong></a>";
            echo "<span class='text-lighter m-l-10'>" . str_repeat("<i class='fa fa-star fa-fw'></i>", $ratings_data['rating_vote']) . "</span>\n<br/>";
            echo timer($ratings_data['rating_datestamp']) . "<br/>\n";
            echo "</div>\n";
            echo "<!--End Rating Item-->\n";
        }
        if (isset($global_ratings['ratings_nav'])) {
            echo "<div class='clearfix'>\n";
            echo "<span class='pull-right text-smaller'>" . $global_ratings['ratings_nav'] . "</span>";
            echo "</div>\n";
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:67,代码来源:functions.php

示例11: showcomments


//.........这里部分代码省略.........
                    $c_start = 0;
                }
                //if (!$settings['site_seo']) {
                redirect($clink . "&amp;c_start=" . $c_start . "#c" . $id);
                //}
            }
        }
        $c_arr = array("c_con" => array(), "c_info" => array("c_makepagenav" => FALSE, "admin_link" => FALSE));
        $c_rows = dbcount("(comment_id)", DB_COMMENTS, "comment_item_id='" . $comment_item_id . "' AND comment_type='" . $comment_type . "' AND comment_hidden='0'");
        if (!isset($_GET['c_start']) && $c_rows > $cpp) {
            $_GET['c_start'] = (ceil($c_rows / $cpp) - 1) * $cpp;
        }
        if (!isset($_GET['c_start']) || !isnum($_GET['c_start'])) {
            $_GET['c_start'] = 0;
        }
        $result = dbquery("SELECT tcm.comment_id, tcm.comment_name, tcm.comment_message, tcm.comment_datestamp,\n\t\t\t\t\ttcu.user_id, tcu.user_name, tcu.user_avatar, tcu.user_status\n\t\t\t\t\tFROM " . DB_COMMENTS . " tcm\n\t\t\t\t\tLEFT JOIN " . DB_USERS . " tcu ON tcm.comment_name=tcu.user_id\n\t\t\t\t\tWHERE comment_item_id='" . $comment_item_id . "' AND comment_type='" . $comment_type . "' AND comment_hidden='0'\n\t\t\t\t\tORDER BY comment_datestamp " . $settings['comments_sorting'] . " LIMIT " . $_GET['c_start'] . "," . $cpp);
        if (dbrows($result) > 0) {
            $i = $settings['comments_sorting'] == "ASC" ? $_GET['c_start'] + 1 : $c_rows - $_GET['c_start'];
            if ($c_rows > $cpp) {
                $c_arr['c_info']['c_makepagenav'] = makepagenav($_GET['c_start'], $cpp, $c_rows, 3, $clink . "&amp;", "c_start");
            }
            while ($data = dbarray($result)) {
                $c_arr['c_con'][$i]['comment_id'] = $data['comment_id'];
                $c_arr['c_con'][$i]['edit_dell'] = FALSE;
                $c_arr['c_con'][$i]['i'] = $i;
                if ($data['user_name']) {
                    $c_arr['c_con'][$i]['comment_name'] = profile_link($data['comment_name'], $data['user_name'], $data['user_status'], 'strong text-dark');
                } else {
                    $c_arr['c_con'][$i]['comment_name'] = $data['comment_name'];
                }
                $c_arr['c_con'][$i]['user_avatar'] = display_avatar($data, '35px', '', true, 'img-rounded');
                $c_arr['c_con'][$i]['user'] = array('user_id' => $data['user_id'], 'user_name' => $data['user_name'], 'user_avatar' => $avatar = $data['user_avatar'] !== '' && file_exists(IMAGES . 'avatars/' . $data['user_avatar']) ? IMAGES . 'avatars/' . $data['user_avatar'] : IMAGES . "avatars/noavatar50.png", 'user_status' => $data['user_status']);
                $c_arr['c_con'][$i]['comment_datestamp'] = showdate('shortdate', $data['comment_datestamp']);
                $c_arr['c_con'][$i]['comment_time'] = timer($data['comment_datestamp']);
                $c_arr['c_con'][$i]['comment_message'] = "<!--comment_message-->\n" . nl2br(parseubb(parsesmileys($data['comment_message'])));
                if (iADMIN && checkrights("C") || iMEMBER && $data['comment_name'] == $userdata['user_id'] && isset($data['user_name'])) {
                    $edit_link = clean_request('c_action=edit&comment_id=' . $data['comment_id'], array('c_action', 'comment_id'), false) . "#edit_comment";
                    $delete_link = clean_request('c_action=delete&comment_id=' . $data['comment_id'], array('c_action', 'comment_id'), false);
                    $c_arr['c_con'][$i]['edit_link'] = array('link' => $edit_link, 'name' => $locale['c108']);
                    $c_arr['c_con'][$i]['delete_link'] = array('link' => $delete_link, 'name' => $locale['c109']);
                    $c_arr['c_con'][$i]['edit_dell'] = "<!--comment_actions-->\n";
                    $c_arr['c_con'][$i]['edit_dell'] .= "<div class='btn-group'>";
                    $c_arr['c_con'][$i]['edit_dell'] .= "<a class='btn btn-xs btn-default' href='" . $edit_link . "'>";
                    $c_arr['c_con'][$i]['edit_dell'] .= $locale['c108'] . "</a>\n";
                    $c_arr['c_con'][$i]['edit_dell'] .= "<a class='btn btn-xs btn-default' href='" . $delete_link . "' onclick=\"return confirm('" . $locale['c110'] . "');\">";
                    $c_arr['c_con'][$i]['edit_dell'] .= "<i class='fa fa-trash'></i> " . $locale['c109'] . "</a>";
                    $c_arr['c_con'][$i]['edit_dell'] .= "</div>\n";
                }
                $settings['comments_sorting'] == "ASC" ? $i++ : $i--;
            }
            if (iADMIN && checkrights("C")) {
                $c_arr['c_info']['admin_link'] = "<!--comment_admin-->\n";
                $c_arr['c_info']['admin_link'] .= "<a href='" . ADMIN . "comments.php" . $aidlink . "&amp;ctype=" . $comment_type . "&amp;comment_item_id=" . $comment_item_id . "'>" . $locale['c106'] . "</a>";
            }
        }
        opentable($locale['c102']);
        $comment_message = "";
        if (iMEMBER && (isset($_GET['c_action']) && $_GET['c_action'] == "edit") && (isset($_GET['comment_id']) && isnum($_GET['comment_id']))) {
            $eresult = dbquery("SELECT tcm.comment_id, tcm.comment_name, tcm.comment_message, tcu.user_name\n\t\t\t\tFROM " . DB_COMMENTS . " tcm\n\t\t\t\tLEFT JOIN " . DB_USERS . " tcu ON tcm.comment_name=tcu.user_id\n\t\t\t\tWHERE comment_id='" . $_GET['comment_id'] . "' AND comment_item_id='" . $comment_item_id . "'\n\t\t\t\tAND comment_type='" . $comment_type . "' AND comment_hidden='0'");
            if (dbrows($eresult) > 0) {
                $edata = dbarray($eresult);
                if (iADMIN && checkrights("C") || iMEMBER && $edata['comment_name'] == $userdata['user_id'] && isset($edata['user_name'])) {
                    $clink .= "&amp;c_action=edit&amp;comment_id=" . $edata['comment_id'];
                    $comment_message = $edata['comment_message'];
                }
            } else {
                $comment_message = "";
            }
        }
        if (iMEMBER || $settings['guestposts'] == "1") {
            require_once INCLUDES . "bbcode_include.php";
            echo "<a id='edit_comment' name='edit_comment'></a>\n";
            echo openform('inputform', 'post', $clink, array('class' => 'm-b-20', 'max_tokens' => 1));
            if (iGUEST) {
                echo form_text('comment_name', $locale['c104'], '', array('max_length' => 30));
            }
            echo form_textarea('comment_message', '', $comment_message, array('required' => 1, 'autosize' => 1, 'form_name' => 'inputform', 'bbcode' => 1));
            if (iGUEST && (!isset($_CAPTCHA_HIDE_INPUT) || isset($_CAPTCHA_HIDE_INPUT) && !$_CAPTCHA_HIDE_INPUT)) {
                $_CAPTCHA_HIDE_INPUT = FALSE;
                echo "<div style='width:360px; margin:10px auto;'>";
                echo $locale['global_150'] . "<br />\n";
                include INCLUDES . "captchas/" . $settings['captcha'] . "/captcha_display.php";
                if (!$_CAPTCHA_HIDE_INPUT) {
                    echo "<br />\n<label for='captcha_code'>" . $locale['global_151'] . "</label>";
                    echo "<br />\n<input type='text' id='captcha_code' name='captcha_code' class='textbox' autocomplete='off' style='width:100px' />\n";
                }
                echo "</div>\n";
            }
            echo form_button('post_comment', $comment_message ? $locale['c103'] : $locale['c102'], $comment_message ? $locale['c103'] : $locale['c102'], array('class' => 'btn-success m-t-10'));
            echo closeform();
        } else {
            echo "<div class='well'>\n";
            echo $locale['c105'] . "\n";
            echo "</div>\n";
        }
        closetable();
        echo "<a id='comments' name='comments'></a>";
        render_comments($c_arr['c_con'], $c_arr['c_info']);
    }
}
开发者ID:knapnet,项目名称:PHP-Fusion,代码行数:101,代码来源:comments_include.php

示例12: nl2br

 echo "</tr>\n<tr>\n";
 echo "<td class='tbl1' align='right' width='20%'>" . $locale['pla_148'] . ":</td>";
 echo "<td class='tbl1'><a href='mailto:" . $data['app_bill_email'] . "' title='" . $data['app_bill_email'] . "'>" . $data['app_bill_email'] . "</a></td>";
 echo "</tr>\n<tr>\n";
 echo "<td class='tbl1' align='right' width='20%'>" . $locale['pla_146'] . ":</td>";
 echo "<td class='tbl1'>" . $data['app_tech_name'] . "</td>";
 echo "</tr>\n<tr>\n";
 echo "<td class='tbl1' align='right' width='20%'>" . $locale['pla_148'] . ":</td>";
 echo "<td class='tbl1'><a href='mailto:" . $data['app_tech_email'] . "' title='" . $data['app_tech_email'] . "'>" . $data['app_tech_email'] . "</td>";
 echo "</tr>\n<tr>\n";
 echo "<td class='tbl1' align='right' width='20%'>" . $locale['pla_153'] . ":</td>";
 echo "<td class='tbl1' nowrap valign='top'>" . $license_types[$data['app_type']] . "</td>\n";
 echo "</tr>\n<tr>\n";
 echo "<td class='tbl1' align='right' valign='top' width='20%'>" . $locale['pla_113'] . ":</td>";
 echo "<td class='quote' valign='top'>";
 $text = nl2br(parseubb(censorwords($data['app_text'])));
 echo isset($text) ? $text : "";
 echo "</td>";
 echo "</tr>\n<tr>\n";
 echo "<td class='tbl1' width='20%'>" . $locale['pla_133'] . ":</td>";
 echo "<td class='tbl1' nowrap valign='top'>";
 echo "<select name='app_status' class='textbox'>\n";
 echo "<option value='0' " . ($app_status == 0 ? "selected" : "") . ">" . $locale['pla_110'] . "</option>\n";
 echo "<option value='1' " . ($app_status == 1 ? "selected" : "") . ">" . $locale['pla_135'] . "</option>\n";
 echo "<option value='2' " . ($app_status == 2 ? "selected" : "") . ">" . $locale['pla_136'] . "</option>\n";
 echo "<option value='3' " . ($app_status == 3 ? "selected" : "") . ">" . $locale['pla_137'] . "</option>\n";
 echo "</select>\n</td>\n";
 echo "</tr>\n<tr>\n";
 echo "<td class='tbl1' colspan='2'><hr /></td>";
 echo "</tr>\n<tr>\n";
 echo "<td class='tbl1' valign='top' width='20%'>" . $locale['pla_613'] . ":</td>";
开发者ID:xXxthebeastxXx,项目名称:addondb,代码行数:31,代码来源:license_admin.php

示例13: display_forum_list

 /**
  * Forum Listing
  */
 private function display_forum_list()
 {
     global $aidlink;
     $title = !empty($this->level['title']) ? sprintf(self::$locale['forum_000b'], $this->level['title'][0]) : self::$locale['forum_000c'];
     add_to_title(" " . $title);
     $forum_settings = $this->get_forum_settings();
     $threads_per_page = $forum_settings['threads_per_page'];
     $max_rows = dbcount("('forum_id')", DB_FORUMS, (multilang_table("FO") ? "forum_language='" . LANGUAGE . "' AND" : '') . " forum_cat='" . $_GET['parent_id'] . "'");
     // need max rows
     $_GET['rowstart'] = isset($_GET['rowstart']) && isnum($_GET['rowstart']) && $_GET['rowstart'] <= $max_rows ? intval($_GET['rowstart']) : 0;
     opentable($title);
     $result = dbquery("SELECT forum_id, forum_cat, forum_branch, forum_name, forum_description, forum_image, forum_alias, forum_type, forum_threadcount, forum_postcount, forum_order FROM\n\t\t\t" . DB_FORUMS . " " . (multilang_table("FO") ? "WHERE forum_language='" . LANGUAGE . "' AND" : "WHERE") . " forum_cat='" . intval($_GET['parent_id']) . "'\n\t\t\t ORDER BY forum_order ASC LIMIT " . $_GET['rowstart'] . ", {$threads_per_page}\n\t\t\t ");
     $rows = dbrows($result);
     if ($rows > 0) {
         // To support entypo and font-awesome icon switching
         $has_entypo = fusion_get_settings("entypo") ? TRUE : FALSE;
         $has_fa = fusion_get_settings("fontawesome") ? TRUE : FALSE;
         $type_icon = array('1' => $has_entypo ? 'entypo folder' : $has_fa ? 'fa fa-folder fa-fw fa-2x' : "", '2' => $has_entypo ? 'entypo icomment' : $has_fa ? 'fa fa-comment-o fa-fw fa-2x' : "", '3' => $has_entypo ? 'entypo link' : $has_fa ? 'fa fa-external-link fa-fw fa-2x' : "", '4' => $has_entypo ? 'entypo info-circled' : $has_fa ? 'fa fa-lightbulb-o fa-fw fa-2x' : "");
         $ui_label = array("move_up" => $has_entypo ? "<i class='entypo up-bold m-r-10'></i>" : $has_fa ? "<i class='fa fa-arrow-up fa-lg m-r-10'></i>" : self::$locale['forum_046'], "move_down" => $has_entypo ? "<i class='entypo down-bold m-r-10'></i>" : $has_fa ? "<i class='fa fa-arrow-down fa-lg m-r-10'></i>" : self::$locale['forum_045'], "edit_permission" => $has_entypo ? "<i class='entypo key m-r-10'></i>" : $has_fa ? "<i class='fa fa-eye fa-lg m-r-10'></i>" : self::$locale['forum_047'], "edit" => $has_entypo ? "<i class='entypo cog m-r-10'></i>" : $has_fa ? "<i class='fa fa-cog fa-lg m-r-10'></i>" : self::$locale['forum_048'], "delete" => $has_entypo ? "<i class='entypo icancel m-r-10'></i>" : $has_fa ? "<i class='fa fa-trash-o fa-lg m-r-10'></i>" : self::$locale['forum_049']);
         $i = 1;
         while ($data = dbarray($result)) {
             $up = $data['forum_order'] - 1;
             $down = $data['forum_order'] + 1;
             $subforums = get_child($this->forum_index, $data['forum_id']);
             $subforums = !empty($subforums) ? count($subforums) : 0;
             echo "<div class='panel panel-default'>\n";
             echo "<div class='panel-body'>\n";
             echo "<div class='pull-left m-r-10'>\n";
             echo "<i class='display-inline-block text-lighter " . $type_icon[$data['forum_type']] . "'></i>\n";
             echo "</div>\n";
             echo "<div class='overflow-hide'>\n";
             echo "<div class='row'>\n";
             echo "<div class='col-xs-6 col-sm-6 col-md-6 col-lg-6'>\n";
             $html2 = '';
             if ($data['forum_image'] && file_exists(INFUSIONS . "forum/images/" . $data['forum_image'])) {
                 echo "<div class='pull-left m-r-10'>\n" . thumbnail(INFUSIONS . "forum/images/" . $data['forum_image'], '50px') . "</div>\n";
                 echo "<div class='overflow-hide'>\n";
                 $html2 = "</div>\n";
             }
             echo "<span class='strong text-bigger'><a href='" . FUSION_SELF . $aidlink . "&amp;parent_id=" . $data['forum_id'] . "&amp;branch=" . $data['forum_branch'] . "'>" . $data['forum_name'] . "</a></span><br/>" . nl2br(parseubb($data['forum_description'])) . $html2;
             echo "</div>\n<div class='col-xs-6 col-sm-6 col-md-6 col-lg-6'>\n";
             echo "<div class='pull-right'>\n";
             $upLink = FUSION_SELF . $aidlink . $this->ext . "&amp;action=mu&amp;order={$up}&amp;forum_id=" . $data['forum_id'];
             $downLink = FUSION_SELF . $aidlink . $this->ext . "&amp;action=md&amp;order={$down}&amp;forum_id=" . $data['forum_id'];
             echo $i == 1 ? '' : "<a title='" . self::$locale['forum_046'] . "' href='" . $upLink . "'>" . $ui_label['move_up'] . "</a>";
             echo $i == $rows ? '' : "<a title='" . self::$locale['forum_045'] . "' href='" . $downLink . "'>" . $ui_label['move_down'] . "</a>";
             echo "<a title='" . self::$locale['forum_047'] . "' href='" . FUSION_SELF . $aidlink . "&amp;action=p_edit&forum_id=" . $data['forum_id'] . "&amp;parent_id=" . $_GET['parent_id'] . "'>" . $ui_label['edit_permission'] . "</a>";
             // edit
             echo "<a title='" . self::$locale['forum_048'] . "' href='" . FUSION_SELF . $aidlink . "&amp;action=edit&forum_id=" . $data['forum_id'] . "&amp;parent_id=" . $_GET['parent_id'] . "'>" . $ui_label['edit'] . "</a>";
             // edit
             echo "<a title='" . self::$locale['forum_049'] . "' href='" . FUSION_SELF . $aidlink . "&amp;action=delete&amp;forum_id=" . $data['forum_id'] . "&amp;forum_cat=" . $data['forum_cat'] . "&amp;forum_branch=" . $data['forum_branch'] . $this->ext . "' onclick=\"return confirm('" . self::$locale['delete_notice'] . "');\">" . $ui_label['delete'] . "</a>";
             // delete
             echo "</div>\n";
             echo "<span class='text-dark text-smaller strong'>" . self::$locale['forum_057'] . " " . number_format($data['forum_threadcount']) . " / " . self::$locale['forum_059'] . " " . number_format($data['forum_postcount']) . " </span>\n<br/>";
             echo "<span class='text-dark text-smaller strong'>" . self::$locale['forum_058'] . " " . number_format($subforums) . "</span>\n<br/>";
             echo "<span class='text-smaller text-dark strong'>" . self::$locale['forum_051'] . " </span> <span class='text-smaller'>" . $data['forum_alias'] . " </span>\n";
             echo "</div></div>\n";
             // end row
             echo "</div>\n";
             echo "</div>\n</div>\n";
             $i++;
         }
         if ($max_rows > $threads_per_page) {
             $ext = isset($_GET['parent_id']) ? "&amp;parent_id=" . $_GET['parent_id'] . "&amp;" : '';
             echo makepagenav($_GET['rowstart'], $threads_per_page, $max_rows, 3, FUSION_SELF . $aidlink . $ext);
         }
     } else {
         echo "<div class='well text-center'>" . self::$locale['560'] . "</div>\n";
     }
     closetable();
 }
开发者ID:php-fusion,项目名称:PHP-Fusion,代码行数:74,代码来源:view.php

示例14: profile_link

         echo "<div class='attachments-list'>" . $a_images . "</div>\n";
         echo "</div>\n";
     }
 }
 if ($data['post_edittime'] != "0") {
     echo "\n<hr />\n<span class='small'>" . $locale['508'] . profile_link($data['post_edituser'], $data['edit_name'], $data['edit_status']) . $locale['509'] . showdate("forumdate", $data['post_edittime']) . "</span>\n";
     if ($data['post_editreason'] != "" && iMEMBER) {
         $edit_reason = true;
         echo "<br /><div class='edit_reason'><a id='reason_pid_" . $data['post_id'] . "' rel='" . $data['post_id'] . "' class='reason_button small' href='#reason_div_pid_" . $data['post_id'] . "'>";
         echo "<strong>" . $locale['508a'] . "</strong>";
         echo "</a>\n";
         echo "<div id='reason_div_pid_" . $data['post_id'] . "' class='reason_div small'>" . $data['post_editreason'] . "</div></div>\n";
     }
 }
 if ($data['post_showsig'] && isset($data['user_sig']) && $data['user_sig'] && $data['user_status'] != 6 && $data['user_status'] != 5) {
     echo "\n<hr /><div class='forum_sig'>" . nl2br(parseubb(parsesmileys($data['user_sig']), "b|i|u||center|small|url|mail|img|color")) . "</div>\n";
 }
 echo "<!--sub_forum_post--></td>\n</tr>\n";
 echo "<tr>\n<td class='tbl2 forum_thread_ip' style='width:140px;white-space:nowrap'>";
 if ($settings['forum_ips'] && iMEMBER || iMOD) {
     echo "<strong>" . $locale['571'] . "</strong>: " . $data['post_ip'];
 } else {
     echo "&nbsp;";
 }
 echo "</td>\n<td class='tbl2 forum_thread_userbar'>\n<div style='float:left;white-space:nowrap' class='small'><!--forum_thread_userbar-->\n";
 if (isset($data['user_web']) && $data['user_web'] && (iADMIN || $data['user_status'] != 6 && $data['user_status'] != 5)) {
     echo "<a href='" . $data['user_web'] . "' target='_blank'><img src='" . get_image("web") . "' alt='" . $data['user_web'] . "' style='border:0;vertical-align:middle' /></a>";
 }
 if (iMEMBER && $data['user_id'] != $userdata['user_id'] && (iADMIN || $data['user_status'] != 6 && $data['user_status'] != 5)) {
     echo "<a href='" . BASEDIR . "messages.php?msg_send=" . $data['user_id'] . "'><img src='" . get_image("pm") . "' alt='" . $locale['572'] . "' style='border:0;vertical-align:middle' /></a>\n";
 }
开发者ID:keddyboys,项目名称:kmods,代码行数:31,代码来源:viewthread.php

示例15: pdp_render_download

    function pdp_render_download($id, $data, $links, $files, $images, $old_data)
    {
        global $locale, $pdp;
        $down_link = '';
        if (!$data['can_download']) {
        } elseif (!empty($old_data['down']) || !empty($old_data['link_extern'])) {
            $down_link = array('did' => $id, 'file' => 0);
        } elseif (count($files)) {
            $latest_download = array_shift($files);
            $down_link = array('did' => $id, 'file' => $latest_download['id']);
            $old_ver = $latest_download['ver'];
            $old_size = $latest_download['size'];
            array_unshift($files, $latest_download);
        }
        if (is_array($down_link)) {
            $down_link = '
<form action="file.php" method="get">
<input type="hidden" name="did" value="' . $down_link['did'] . '" />
<input type="hidden" name="file_id" value="' . $down_link['file'] . '" />
<input type="submit" class="button" value="' . $locale['PDP201'] . '" />
</form>';
        } else {
            $down_link = parseubb($pdp->settings['download_restricted']);
            if (FUSION_VERSION != 'FF') {
                $down_link = nl2br($down_link);
            }
        }
        if (!empty($data['pic'])) {
            $pic = $data['pic'];
            $pic_id = 0;
        } elseif (count($images)) {
            $first_pic = $images[0];
            $pic = $first_pic['url'];
            $pic_id = $first_pic['id'];
        } else {
            $pic = "";
        }
        echo "<p><font size='+1'><b>" . $data['name'] . "</b></font>\n";
        echo "<hr />\n\n<table border='0' cellspacing='2' width='100%' cellpadding='0'>\n<tr>\n\t<td valign='top' colspan='2'>" . $data['desc'] . "</td>\n\t<td width='150' valign='top' rowspan='2'>\n\t<table class='tbl-border' cellspacing='1' width='100%'>";
        // version
        if (!empty($old_data['version'])) {
            echo "<tr><td class='tbl2' align='center'>" . $locale['PDP018'] . ":<br />" . $old_data['version'] . "</td>";
        }
        // homepage
        if (!empty($data['homepage'])) {
            echo "<tr><td class='tbl2' align='center'><a href='" . $data['homepage'] . "'" . " target='_blank'>" . $locale['PDP020'] . "</a></td>";
        }
        // screenshot
        if (!empty($pic)) {
            echo "<tr>\n\t<td align='center' class='tbl2'>" . "<a href='image.php?did=" . $id . "&amp;pic_id={$pic_id}'>" . $locale['PDP028'] . "</a></td>\n</tr>";
        }
        // download count
        echo "<tr>\n\t<td align='center' class='tbl2'>" . $locale['pdp_downloads'] . ":<br />" . pdpCore::format_number($data['count']) . "</td>\n</tr>";
        // FIXME TODO
        if (!empty($old_data['size'])) {
            echo "<tr><td align='center' class='tbl2'>" . $locale['PDP029'] . ":<br />" . $old_data['size'] . "</td></tr>";
        }
        if (!empty($data['license'])) {
            echo "<tr>\n\t<td align='center' class='tbl2'>" . $locale['pdp_license'] . ': ' . $data['license'] . "</td>\n</tr>";
        }
        // who posted and when.
        echo "<tr><td align='center' class='tbl2'>" . ($data['user_id'] ? "<a href='profile.php?id=" . $data['user_id'] . "'>" . $data['user_name'] . "</a><br />" : "") . showdate("shortdate", $data['mtime']) . "</td>\n</tr>\n";
        if (!empty($data['copyright'])) {
            echo "<tr>\n\t<td class='tbl2' align='center'>" . $data['copyright'] . "</td>\n</tr>\n";
        }
        if ($data['allow_notify']) {
            if ($data['can_subscribe']) {
                echo "<tr>\n\t<td class='tbl2' align='center'>" . ($data['is_subscribing'] ? "<a href='include/do_did.php?did=" . $id . "&amp;subscibe=0'>" . $locale['PDP060'] . "</a>" : "<a href='include/do_did.php?did=" . $id . "&amp;subscibe=1'>" . $locale['PDP059'] . "</a>") . "</td>\n</tr>\n";
            }
        }
        echo "</table></td>\n</tr>\n<tr>\n\t<td align='center' valign='bottom'>" . $down_link . "\n\t</td>\n</tr>\n</table>\n<hr />\n";
        // report broken downloads
        echo "<div align='right'>";
        if (iPDP_BROKEN) {
            echo "[ <a href='broken.php?did=" . $id . "'>" . $locale['PDP024'] . "</a> ]<br />";
        }
        // edit link
        if (count($links)) {
            echo "<b>" . $locale['pdp_edit'] . ":</b> [ " . implode(" | ", $links) . " ]";
        }
        echo "</div>\n";
        // files
        if (count($files)) {
            echo '<strong>' . $locale['PDP200'] . ":</strong><ul>\n";
        }
        foreach ($files as $row) {
            echo "<li>" . showdate("shortdate", $row['timestamp']) . " - <b>" . $row['ver'] . " - </b>";
            if ($data['can_download']) {
                echo " <a href='file.php?did=" . $id . "&amp;file_id=" . $row['id'] . "'" . " title='" . $row['url'] . "'>" . trimlink($row['url'], 40) . "</a>";
            } else {
                echo trimlink($row['url'], 40);
            }
            echo " (<span class='small2'>" . $row['size'] . " - " . $row['desc'] . ")</span>" . "</li>\n";
        }
        if (count($files)) {
            echo "</ul>\n";
        }
    }
开发者ID:petemadsen,项目名称:Professional-Download-System,代码行数:98,代码来源:theme_funcs.php


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