本文整理汇总了PHP中showcomments函数的典型用法代码示例。如果您正苦于以下问题:PHP showcomments函数的具体用法?PHP showcomments怎么用?PHP showcomments使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了showcomments函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render_article
function render_article($subject, $article, $info)
{
global $locale;
$category = "<a href='" . INFUSIONS . "articles/articles.php?cat_id=" . $info['cat_id'] . "'>" . $info['cat_name'] . "</a>\n";
$comment = "<a href='" . INFUSIONS . "articles/articles.php?article_id=" . $info['article_id'] . "#comments'> " . format_word($info['article_comments'], $locale['fmt_comment']) . " </a>\n";
echo render_breadcrumbs();
echo "<!--pre_article-->";
echo "<article>\n";
echo "<div class='news-action text-right'>";
echo "<a title='" . $locale['global_075'] . "' href='" . BASEDIR . "print.php?type=A&item_id=" . $info['article_id'] . "'><i class='entypo print'></i></a>";
echo !empty($info['edit_link']) ? "<a href='" . $info['edit_link'] . "' title='" . $locale['global_076'] . "' /><i class='entypo pencil'></i></a>\n" : '';
echo "</div>\n";
echo "<div class='news-info'>" . ucfirst($locale['posted']) . " <span class='news-date'>" . showdate("%d %b %Y", $info['article_date']) . "</span> " . $locale['in'] . " {$category} " . $locale['and'] . " {$comment}</div>\n";
echo "<h2 class='news-title'>{$subject}</h2>";
echo "<div class='article'>\n";
echo ($info['article_breaks'] == "y" ? nl2br($article) : $article) . "<br />\n";
echo "</div>\n";
echo "<hr />\n";
echo "<div class='news-user-info clearfix m-b-10'>\n";
echo "<h4>" . $locale['about'] . " <a href='" . BASEDIR . "profile.php?lookup=" . $info['user_id'] . "'>" . $info['user_name'] . "</a>\n</h4>";
echo "<div class='pull-left m-r-10'>" . display_avatar($info, '80px') . "</div>\n";
echo "<strong>" . getuserlevel($info['user_level']) . "</strong><br/>\n";
echo "<strong>" . $locale['joined'] . showdate('newsdate', $info['user_joined']) . "</strong><br/>\n";
echo "</div>\n";
echo "</article>";
echo "<!--sub_article-->";
echo $info['page_nav'];
echo "<hr />\n";
if ($info['article_allow_comments']) {
showcomments("A", DB_ARTICLES, "article_id", $_GET['article_id'], INFUSIONS . "articles/articles.php?article_id=" . $_GET['article_id']);
}
if ($info['article_allow_ratings']) {
showratings("A", $_GET['article_id'], INFUSIONS . "articles/articles.php?article_id=" . $_GET['article_id']);
}
}
示例2: 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']);
}
示例3: get_image
echo "© " . $data['download_copyright'] . "<br />\n";
}
if ($data['download_version'] != "" || $data['download_license'] != "" || $data['download_os'] != "" || $data['download_copyright'] != "") {
echo "</td>\n</tr>\n";
}
echo "</table>\n";
echo "</td></tr>\n";
echo "<tr>\n";
echo "<td class='tbl1' colspan='2' style='text-align:center;'><hr />\n";
echo "<strong>" . $locale['416'] . ":</strong><br />\n";
echo "<a href='" . FUSION_SELF . "?cat_id=" . $data['download_cat'] . "&file_id=" . $data['download_id'] . "' target='_blank'>" . get_image("download", $locale['416'], "border:none;", $locale['416']) . "</a>\n";
if ($data['download_filesize'] != "") {
echo "<br />(" . $data['download_filesize'] . ")\n";
}
echo "</td>\n</tr>\n";
echo "</table>\n";
echo "<!--sub_download_details-->\n";
closetable();
echo "<!--pre_download_comments-->\n";
include INCLUDES . "comments_include.php";
include INCLUDES . "ratings_include.php";
if ($data['download_allow_comments']) {
showcomments("D", DB_DOWNLOADS, "download_id", $_GET['download_id'], FUSION_SELF . "?cat_id=" . $data['download_cat'] . "&download_id=" . $_GET['download_id']);
}
if ($data['download_allow_ratings']) {
showratings("D", $_GET['download_id'], FUSION_SELF . "?cat_id=" . $data['download_cat'] . "&download_id=" . $_GET['download_id']);
}
}
}
echo $dl_stats;
require_once THEMES . "templates/footer.php";
示例4: set_meta
set_meta('description', trimlink($article_subject, 255), false);
echo "<!--pre_article-->";
render_article($article_subject, $article[$_GET['page'] - 1], $article_info);
echo "<!--sub_article-->";
if ($settings['enable_tags']) {
require_once INCLUDES . "tag_include.php";
echo show_tags((int) $_GET['article_id'], "A");
}
if ($pagecount > 1) {
echo "<div align='center' style='margin-top:5px;'>\n";
echo pagination(true, (int) $_GET['page'] - 1, 1, $pagecount, 3, FUSION_SELF . "?article_id=" . (int) $_GET['article_id'] . "&", "article", "-", (int) $_GET['article_id'], "-page-", "-", $article_subject);
echo "\n</div>\n";
}
if ($data['article_allow_comments']) {
require_once INCLUDES . "comments_include.php";
showcomments("A", DB_ARTICLES, "article_id", (int) $_GET['article_id'], FUSION_SELF . "?article_id=" . (int) $_GET['article_id'], "article", "-", (int) $_GET['article_id'], "-page-", (int) $_GET['page'], "-", $article_subject);
}
if ($data['article_allow_ratings'] && $settings['ratings_enabled'] == "1") {
require INCLUDES . "ratings_include.php";
showratings("A", (int) $_GET['article_id'], FUSION_SELF . "?article_id=" . (int) $_GET['article_id'], "article-" . (int) $_GET['article_id'] . "-", $article_subject);
}
if ($settings['sharethis_article']) {
$share_this = "article";
require_once INCLUDES . "share_this_include.php";
}
} else {
redirect(FUSION_SELF);
}
} elseif (!isset($_GET['cat_id']) || !isnum($_GET['cat_id'])) {
opentable($locale['400']);
echo "<!--pre_article_idx-->\n";
示例5: explode
$article = explode("<--PAGEBREAK-->", $article);
} else {
$article = explode("<!-- pagebreak -->", $article);
}
$pagecount = count($article);
$article_subject = stripslashes($data['article_subject']);
$article_info = array("article_id" => $data['article_id'], "user_id" => $data['user_id'], "user_name" => $data['user_name'], "article_date" => $data['article_datestamp'], "article_breaks" => $data['article_breaks'], "article_comments" => dbcount("(comment_id)", DB_COMMENTS, "comment_type='A' AND comment_item_id='" . $data['article_id'] . "'"), "article_reads" => $data['article_reads'], "article_allow_comments" => $data['article_allow_comments']);
add_to_title($locale['global_201'] . $article_subject);
echo "<!--pre_article-->";
render_article($article_subject, $article[$_GET['rowstart']], $article_info);
echo "<!--sub_article-->";
if ($pagecount > 1) {
echo "<div align='center' style='margin-top:5px;'>\n" . makepagenav($_GET['rowstart'], 1, $pagecount, 3, FUSION_SELF . "?article_id=" . $_GET['article_id'] . "&") . "\n</div>\n";
}
if ($data['article_allow_comments']) {
showcomments("A", DB_ARTICLES, "article_id", $_GET['article_id'], FUSION_SELF . "?article_id=" . $_GET['article_id']);
}
if ($data['article_allow_ratings']) {
showratings("A", $_GET['article_id'], FUSION_SELF . "?article_id=" . $_GET['article_id']);
}
} else {
redirect(FUSION_SELF);
}
} elseif (!isset($_GET['cat_id']) || !isnum($_GET['cat_id'])) {
opentable($locale['400']);
echo "<!--pre_article_idx-->\n";
$result = dbquery("SELECT * FROM " . DB_ARTICLE_CATS . " WHERE " . groupaccess('article_cat_access') . " ORDER BY article_cat_name");
$rows = dbrows($result);
if ($rows) {
$counter = 0;
$columns = 2;
示例6: parse_textarea
} else {
echo "<p>" . parse_textarea($cp_data['page_content']) . "</p>\n";
}
$eval = ob_get_contents();
ob_end_clean();
$info['body'] = preg_split("/<!?--\\s*pagebreak\\s*-->/i", fusion_get_settings("tinymce_enabled") ? $eval : nl2br($eval));
$info['count'] = count($info['body']);
if ($info['count'] > 0) {
if (isset($_GET['rowstart']) && $_GET['rowstart'] > $info['count']) {
redirect(BASEDIR . "viewpage.php?page_id=" . $_GET['page_id']);
}
$info['pagenav'] = makepagenav($_GET['rowstart'], 1, $info['count'], 1, BASEDIR . "viewpage.php?page_id=" . $_GET['page_id'] . "&") . "\n";
}
if ($cp_data['page_allow_comments']) {
ob_start();
showcomments("C", DB_CUSTOM_PAGES, "page_id", $_GET['page_id'], BASEDIR . "viewpage.php?page_id=" . $_GET['page_id']);
$info['show_comments'] = ob_get_contents();
ob_end_clean();
}
if ($cp_data['page_allow_ratings']) {
ob_start();
showratings("C", $_GET['page_id'], BASEDIR . "viewpage.php?page_id=" . $_GET['page_id']);
$info['show_ratings'] = ob_get_contents();
ob_end_clean();
}
unset($cp_data);
} else {
add_to_title($locale['global_200'] . $locale['401']);
$info['title'] = $locale['401'];
$info['error'] = $locale['402'];
}
示例7: render_news_item
/**
* News Item Page Template
* @param $info
*/
function render_news_item($info)
{
global $aidlink;
$locale = fusion_get_locale();
$news_settings = get_settings('news');
$data = $info['news_item'];
add_to_head("<link rel='stylesheet' href='" . INFUSIONS . "news/templates/css/news.css' type='text/css'>");
add_to_head("<link rel='stylesheet' href='" . INCLUDES . "jquery/colorbox/colorbox.css' type='text/css' media='screen' />");
add_to_head("<script type='text/javascript' src='" . INCLUDES . "jquery/colorbox/jquery.colorbox.js'></script>");
add_to_footer('<script type="text/javascript">
$(document).ready(function() {
$(".news-image-overlay").colorbox({
transition: "elasic",
height:"100%",
width:"100%",
maxWidth:"98%",
maxHeight:"98%",
scrolling:false,
overlayClose:true,
close:false,
photo:true,
onComplete: function(result) {
$("#colorbox").live("click", function(){
$(this).unbind("click");
$.fn.colorbox.close();
});
},
onLoad: function () {
}
});
});
</script>');
opentable($locale['news_0004']);
echo render_breadcrumbs();
echo "<!--news_pre_readmore-->";
echo "<article class='news-item' style='display:block; width:100%; overflow:hidden;'>\n";
echo "<h2 class='text-center'>" . $data['news_subject'] . "</h2>\n";
echo "<div class='news_news text-dark m-t-20 m-b-20'>\n";
if ($data['news_image_src']) {
echo "<a class='" . $data['news_ialign'] . " news-image-overlay' href='" . $data['news_image_src'] . "'>\n <img class='img-responsive' src='" . $data['news_image_src'] . "' alt='" . $data['news_subject'] . "' style='padding:5px; max-height:" . $news_settings['news_photo_h'] . "px; overflow:hidden;' /></a>";
} elseif (!empty($data['news_image']) && !empty($data['news_cat_image_src'])) {
echo "<a class='" . $data['news_ialign'] . "' href='" . INFUSIONS . "news/news.php?cat_id=" . $data['news_cat_id'] . "'>\n <img class='img-responsive' src='" . IMAGES_NC . $data['news_cat_image_src'] . "' style='padding:5px; max-height:" . $news_settings['news_photo_h'] . "px; alt='" . $data['news_cat_name'] . "' />\n </a>";
}
echo $data['news_news'];
echo "</div>\n";
echo "<div class='news_extended text-dark m-t-20 m-b-20'>" . $data['news_extended'] . "</div>\n";
echo "<div style='clear:both;'></div>\n";
echo "<div class='well m-t-5 text-center'>\n";
echo "<span class='news-action m-r-10'><i class='fa fa-user'></i>" . profile_link($data['user_id'], $data['user_name'], $data['user_status']) . "</span>\n";
echo "<span class='news-action m-r-10'><i class='fa fa-calendar'></i>" . showdate("newsdate", $data['news_datestamp']) . "</span>\n";
echo "<span class='news-action'><i class='fa fa-eye'></i><span class='text-dark m-r-10'>" . number_format($data['news_reads']) . "</span>\n</span>";
echo $data['news_allow_comments'] ? display_comments($data['news_comments'], INFUSIONS . "news/news.php?readmore=" . $data['news_id'] . "#comments") : '';
echo $data['news_allow_ratings'] ? "<span class='m-r-10'>" . display_ratings($data['news_sum_rating'], $data['news_count_votes'], INFUSIONS . "news/news.php?readmore=" . $data['news_id'] . "#ratings") . " </span>" : '';
echo "<a class='m-r-10' title='" . $locale['news_0002'] . "' href='" . BASEDIR . "print.php?type=N&item_id=" . $data['news_id'] . "'><i class='fa fa-print'></i></a>";
echo iADMIN && checkrights("N") ? "<a title='" . $locale['news_0003'] . "' href='" . INFUSIONS . "news/news_admin.php" . $aidlink . "&action=edit&section=news_form&news_id=" . $data['news_id'] . "' title='" . $locale['news_0003'] . "' />" . $locale['news_0003'] . "</a>\n" : "";
echo "</div>";
echo "<!--news_sub_readmore-->";
echo !isset($_GET['readmore']) && $data['news_ext'] == "y" ? "<div class='m-t-20'>\n<a href='" . INFUSIONS . "news/news.php?readmore=" . $data['news_id'] . "' class='button'>" . $locale['news_0001'] . "</a>\n</div>\n" : "";
if ($data['page_count'] > 0) {
echo "<div class='text-center m-t-10'>\n" . makepagenav($_GET['rowstart'], 1, $data['page_count'], 3, INFUSIONS . "news/news.php?readmore=" . $_GET['readmore'] . "&") . "\n</div>\n";
}
if ($data['news_allow_comments']) {
echo "<hr />" . showcomments("N", DB_NEWS, "news_id", $_GET['readmore'], INFUSIONS . "news/news.php?readmore=" . $_GET['readmore']) . "\n";
}
if ($data['news_allow_ratings']) {
echo "<hr />" . showratings("N", $_GET['readmore'], INFUSIONS . "news/news.php?readmore=" . $_GET['readmore']) . "\n";
}
echo "</article>\n";
closetable();
}
示例8: explode
echo "<a href='" . FUSION_SELF . "'>" . $locale['gem19'] . "</a> / <a href='" . BASEDIR . "generator.php?action=create&id=" . $data['mem_gen_id'] . "'>" . $locale['gem27'] . "</a>";
echo "</div>";
echo "<div style='float:right;'>";
$voters = explode("|", $data['mem_voters']);
echo !in_array(FUSION_IP, $voters) ? "<a class='quote-rating-plus-" . $data['mem_id'] . "' href='#vm' onclick='javascript: quote_vote(1," . $data['mem_id'] . ");'>+</a> " : "";
echo "<span class='quote-rating-" . $data['mem_id'] . "' style='color:" . ($data['mem_rating'] >= 0 ? "green" : "red") . ";'>" . $data['mem_rating'] . "</span>";
echo !in_array(FUSION_IP, $voters) ? " <a class='quote-rating-minus-" . $data['mem_id'] . "' href='#vm' onclick='javascript: quote_vote(2," . $data['mem_id'] . ");'>-</a>" : "";
echo "</div>";
echo "<div style='clear:both;'></div>";
echo "<div style='width:100%;text-align:center;'>";
echo "<img src='" . INFUSIONS . "al_genmem/asset/images/" . $data['mem_image'] . "' />";
echo "<br /><br />";
echo $data['mem_text1'] . "<br />" . $data['mem_text2'];
echo "</div>";
closetable();
echo showcomments("G", DB_GEM_MEMS, "mem_id", $_GET['view'], FUSION_SELF . "?view=" . $_GET['view']);
} else {
redirect(FUSION_SELF);
}
} else {
$total = dbcount("(mem_id)", DB_GEM_MEMS);
if ($total > 0) {
echo "<a href='" . FUSION_SELF . "'>" . $locale['gem23'] . "</a> / <a href='" . FUSION_SELF . "?sort=popular'>" . $locale['gem24'] . "</a> / <a href='" . FUSION_SELF . "?sort=best'>" . $locale['gem25'] . "</a> / <a href='" . FUSION_SELF . "?sort=random'>" . $locale['gem26'] . "</a> / <a href='" . BASEDIR . "generator.php?action=create'>" . $locale['gem27'] . "</a>";
if (!isset($_GET['rowstart']) || !isnum($_GET['rowstart'])) {
$_GET['rowstart'] = 0;
}
if (isset($_GET['sort'])) {
if ($_GET['sort'] == "popular") {
$title = $locale['gem22'];
$result = dbquery("SELECT * FROM " . DB_GEM_MEMS . " ORDER BY mem_views DESC LIMIT " . $_GET['rowstart'] . ",16");
} else {
示例9: render_item
function render_item($item_id)
{
global $aidlink, $locale, $settings, $golddata, $_REQUEST, $_POST, $_GET;
include INCLUDES . "comments_include.php";
include INCLUDES . "ratings_include.php";
echo "<table width='100%' cellpadding='0' cellspacing='0' class='tbl-border'>\n<tr>\n";
echo "<td valign='top' align='left'>\n";
$result = dbquery("SELECT * FROM " . DB_UG3_USAGE . " LEFT JOIN (" . DB_UG3_CATEGORIES . ")\n\t\t\t\t ON (" . DB_UG3_CATEGORIES . ".cat_id = " . DB_UG3_USAGE . ".category)\n\t\t\t\t WHERE " . DB_UG3_USAGE . ".id = '" . $item_id . "'\n\t\t\t\t LIMIT 1");
if (dbrows($result)) {
$data = dbarray($result);
if (checkgroup($data['cat_access'])) {
echo "<table cellpadding='3' cellspacing='0' width='100%' class='tbl-border'>\n<tr>\n";
echo "<td align='left' valign='top'> </td>\n";
echo "<td algin='left' valign='top'><h3>" . $data['name'] . "</h3></td>\n";
echo "</tr><tr>\n";
echo "<td align='left' valign='top'><img src='" . GOLD_IMAGE_ITEM . $data['image'] . "' /></td>";
echo "<td algin='left' valign='top'>" . $data['description'] . "<br/><br />\n";
echo "<u>" . $locale['urg_shop_109'] . "</u> " . formatMoney($data['cost']) . "<br /><br />\n";
echo "<u>" . $locale['urg_shop_117'] . "</u> " . $data['stock'] . "<br /><br />\n";
if ($golddata['cash'] >= $data['cost']) {
echo "<a href='index.php?op=shop_finalise&id=" . $data['id'] . "&return=" . urlencode(FUSION_SELF . "?op=shop_start&category=" . $data['category']) . "'>" . $locale['urg_shop_119'] . "</a>\n";
} elseif ($data['stock'] == 0) {
echo "<strong>" . $locale['urg_shop_120'] . "</strong>\n";
} else {
echo "<span style='color:red;'>" . sprintf($locale['urg_shop_121'] . " %s", formatMoney($data['cost'] - $golddata['cash'])) . "</span>\n";
}
echo "</td>\n";
echo "</tr>\n</table>\n";
} else {
echo $locale['urg_shop_150'];
pagerefresh('meta', 3, FUSION_SELF . '?op=shop_start');
}
} else {
echo $locale['urg_shop_151'];
pagerefresh('meta', 3, FUSION_SELF . '?op=shop_start');
}
echo "</td>\n";
echo "<td valign='top' align='left' width='150px'>\n";
echo "<table width='100%' cellpadding='3' cellspacing='3' class='tbl-border'>\n<tr>\n";
echo "<td class='tbl2'><strong>" . $locale['urg_shop_152'] . "</strong></td>\n";
echo "</tr>\n";
$count = 0;
$result = dbquery("SELECT ownerid FROM " . DB_UG3_INVENTORY . " WHERE itemid = '" . $item_id . "' AND ownerid != '" . $userdata['user_id'] . "' GROUP BY ownerid ORDER BY RAND()");
if (dbrows($result)) {
while ($data = dbarray($result)) {
if ($count < 5) {
$result2 = dbquery("SELECT itemid FROM " . DB_UG3_INVENTORY . " WHERE ownerid = '" . $data['ownerid'] . "' AND itemid != '" . $item_id . "' GROUP BY itemid ORDER BY RAND() LIMIT 5");
while ($data2 = dbarray($result2)) {
if ($count < 5) {
$item = dbarray(dbquery("SELECT id, name, image FROM " . DB_UG3_USAGE . " WHERE id = '" . $data2['itemid'] . "' LIMIT 1"));
echo "<tr>\n";
echo "<td><img src='" . GOLD_IMAGE_ITEM . $item['image'] . "' alt='" . $data['itemname'] . "' width='15px' height='15px' align='left' /> \n";
echo "<a href='" . FUSION_SELF . "?op=shop_item&id=" . $item['id'] . "'>" . trimlink($item['name'], 15) . "</a></td>\n";
echo "</tr>\n";
$count++;
} else {
break;
}
}
} else {
break;
}
}
} else {
echo "<tr><td>" . $locale['urg_shop_153'] . "</td></tr>\n";
}
echo "</table>\n";
echo "</td>\n</tr>\n</table>\n";
echo "<div style='margin:5px'></div>\n";
showcomments("S", DB_UG3_USAGE, "id", $_REQUEST['id'], FUSION_SELF . "?op=shop_item&id=" . $_REQUEST['id']);
showratings("S", $_REQUEST['id'], FUSION_SELF . "?op=shop_item&id=" . $_REQUEST['id']);
}
示例10: ob_start
if (checkgroup($cp_data['page_access'])) {
ob_start();
eval("?>" . stripslashes($cp_data['page_content']) . "<?php ");
$custompage = ob_get_contents();
ob_end_clean();
$custompage = preg_split("/<!?--\\s*pagebreak\\s*-->/i", $custompage);
$pagecount = count($custompage);
echo $custompage[$_GET['rowstart']];
} else {
echo "<div class='admin-message' style='text-align:center'><br /><img style='border:0px; vertical-align:middle;' src ='" . BASEDIR . "images/warn.png' alt=''/><br /> " . $locale['400'] . "<br /><a href='index.php' onclick='javascript:history.back();return false;'>" . $locale['403'] . "</a>\n<br /><br /></div>\n";
}
} else {
add_to_title($locale['global_200'] . $locale['401']);
echo "<!--custompages-pre-content-->\n";
opentable($locale['401']);
echo "<div style='text-align:center'><br />\n" . $locale['402'] . "\n<br /><br /></div>\n";
}
closetable();
if (isset($pagecount) && $pagecount > 1) {
echo "<div align='center' style='margin-top:5px;'>\n" . makepagenav($_GET['rowstart'], 1, $pagecount, 3, FUSION_SELF . "?page_id=" . $_GET['page_id'] . "&") . "\n</div>\n";
}
echo "<!--custompages-after-content-->\n";
if (dbrows($cp_result) && checkgroup($cp_data['page_access'])) {
if ($cp_data['page_allow_comments']) {
showcomments("C", DB_CUSTOM_PAGES, "page_id", $_GET['page_id'], FUSION_SELF . "?page_id=" . $_GET['page_id']);
}
if ($cp_data['page_allow_ratings']) {
showratings("C", $_GET['page_id'], FUSION_SELF . "?page_id=" . $_GET['page_id']);
}
}
require_once THEMES . "templates/footer.php";
示例11: closetable
}
echo "<br />";
if (!$me_voted && $app['app_status'] == "0" && (check_group(2) || check_group(3))) {
echo "<form method='post' name='tgcgh'><input type='hidden' name='app_id' value='" . $_GET['id'] . "' /><input type='submit' name='vote_yes' class='button' value='" . $locale['ar46'] . "' /><input type='submit' class='button' name='vote_no' value='" . $locale['ar47'] . "' />";
if ($app['app_status'] == "0" && check_group(3)) {
echo "<br /><input type='submit' class='button' name='c_apply' value='" . $locale['ar461'] . "' /><input type='submit' class='button' name='c_decline' value='" . $locale['ar471'] . "' />";
}
echo "</form>";
}
echo "</td></tr>";
echo "</table>";
closetable();
// app
$app_form = dbquery("SELECT * FROM " . DB_RM_FORM_FIELDS . " ORDER BY ff_order ASC");
$ff_info = dbarray(dbquery("SELECT * FROM " . DB_RM_FORM_APPS . " WHERE fa_id='" . $app['app_form'] . "'"));
opentable($locale['ar35']);
echo "<table width='100%'>";
while ($ff = dbarray($app_form)) {
if ($ff['ff_type'] == "1") {
echo "<tr><td class='tbl2' width='250'>" . $ff['ff_title'] . "</td><td class='tbl2'>" . $ff_info['fa_' . $ff['ff_name']] . "</td></tr>";
} elseif ($ff['ff_type'] == "2") {
echo "<tr><td class='tbl2' width='250'>" . $ff['ff_title'] . "</td><td class='tbl2'>" . nl2br(trim(stripinput($ff_info['fa_' . $ff['ff_name']]))) . "</td></tr>";
} elseif ($ff['ff_type'] == "3") {
echo "<tr><td class='tbl2' width='250'>" . $ff['ff_title'] . "</td><td class='tbl2'>" . $ff_info['fa_' . $ff['ff_name']] . "</td></tr>";
}
}
echo "</table>";
closetable();
require_once INCLUDES . "comments_include.php";
showcomments("RM", DB_RM_APPS, "app_id", $_GET['id'], INFUSIONS . "al_register_mod/admin/index.php?p=view_app&id=" . $_GET['id']);
示例12: render_photo
function render_photo($info)
{
global $locale, $userdata;
opentable($locale['450']);
echo render_breadcrumbs();
echo "<!--pre_photo-->";
echo "<a target='_blank' href='" . $info['photo_filename'] . "' class='photogallery_photo_link' title='" . (!empty($info['photo_title']) ? $info['photo_title'] : $info['photo_filename']) . "'><!--photogallery_photo_" . $_GET['photo_id'] . "-->";
echo "<img class='img-responsive' style='margin:0 auto;' src='" . $info['photo_filename'] . "' alt='" . (!empty($info['photo_title']) ? $info['photo_title'] : $info['photo_filename']) . "' style='border:0px' class='photogallery_photo' />";
echo "</a>\n";
echo "<div class='clearfix'>\n";
echo "<div class='btn-group pull-right m-t-20'>\n";
echo isset($info['nav']['first']) ? "<a class='btn btn-default btn-sm' href='" . $info['nav']['first']['link'] . "' title='" . $info['nav']['first']['name'] . "'><i class='entypo to-start'></i></a>\n" : '';
echo isset($info['nav']['prev']) ? "<a class='btn btn-default btn-sm' href='" . $info['nav']['prev']['link'] . "' title='" . $info['nav']['prev']['name'] . "'><i class='entypo left-dir'></i></a>\n" : '';
echo isset($info['nav']['next']) ? "<a class='btn btn-default btn-sm' href='" . $info['nav']['next']['link'] . "' title='" . $info['nav']['next']['name'] . "'><i class='entypo right-dir'></i></a>\n" : '';
echo isset($info['nav']['last']) ? "<a class='btn btn-default btn-sm' href='" . $info['nav']['last']['link'] . "' title='" . $info['nav']['last']['name'] . "'><i class='entypo to-end'></i></a>\n" : '';
echo "</div>\n";
echo "<div class='overflow-hide m-b-20'>\n";
echo "<h2 class='photo_title m-b-0'>" . $info['photo_title'] . "</span>\n</h2>\n";
if ($info['photo_description']) {
echo "<span class='photo_description list-group-item'>" . $info['photo_description'] . "</span>";
}
echo "</div>\n";
echo "<div class='list-group-item m-b-20'>\n";
echo "<div class='row'>\n";
echo "<div class='col-xs-12 col-sm-6 col-md-6 col-lg-6'>\n";
echo "<strong>" . $locale['434'] . "</strong>" . profile_link($info['user_id'], $info['user_name'], $info['user_status']) . "<br/>\n";
echo "<strong>" . $locale['433'] . "</strong><abbr title='" . showdate("shortdate", $info['photo_datestamp']) . "'>" . timer(time()) . "</abbr><br/>";
echo "<strong>" . $locale['454'] . "</strong>" . $info['photo_size'][0] . " x " . $info['photo_size'][1] . " " . $locale['455'] . "<br/>\n";
echo "<strong>" . $locale['456'] . "</strong>" . $info['photo_byte'];
echo "</div><div class='col-xs-12 col-sm-6 col-md-6 col-lg-6'>\n";
echo "<strong>" . $locale['457'] . "</strong>" . number_format($info['photo_views']) . "<br/>\n";
echo "<strong>" . $locale['437'] . "</strong>" . $info['photo_ratings'] . "<br/>\n";
echo "<strong>" . $locale['436'] . "</strong>" . $info['photo_comment'] . "<br/>\n";
echo "</div>\n</div>\n";
echo "</div>\n</div>\n";
echo "<!--sub_photo-->";
if ($info['photo_allow_comments']) {
showcomments("P", DB_PHOTOS, "photo_id", $_GET['photo_id'], INFUSIONS . "gallery/gallery.php?photo_id=" . $_GET['photo_id']);
}
if ($info['photo_allow_ratings']) {
showratings("P", $_GET['photo_id'], INFUSIONS . "gallery/gallery.php?photo_id=" . $_GET['photo_id']);
}
closetable();
}
示例13: author
<?php
/*-------------------------------------------------------+
| PHP-Fusion Content Management System
| Copyright © 2002 - 2008 Nick Jones
| http://www.php-fusion.co.uk/
+--------------------------------------------------------+
| Author: Domi & fetloser
+--------------------------------------------------------+
| This program is released as free software under the
| Affero GPL license. You can redistribute it and/or
| modify it under the terms of this license which you
| 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).
+--------------------------------------------------------*/
require_once "../../maincore.php";
echo "<script type='text/javascript' src='" . INCLUDES . "jscript.js'></script>\n";
require_once THEME . "theme.php";
echo "<link rel='stylesheet' href='" . THEME . "styles.css' type='text/css'>";
include INCLUDES . "comments_include.php";
showcomments("K", "" . $db_prefix . "kroax", "" . $_GET['comment_id'] . "", $_GET['comment_id'], FUSION_SELF . "?comment_id=" . $_GET['comment_id'] . "");
示例14: nl2br
}
if ($data['tour_grid'] == "1") {
echo "<tr><td class='tbl2' colspan='3' align='center'><a href='" . BASEDIR . "tourney.php?p=viewbracket&id=" . $data['tour_id'] . "'>Go to brackets</a></td></tr>";
}
echo "<tr><td class='tbl2' colspan='3'>Description:</td></tr>";
echo "<tr><td class='tbl1'>" . nl2br(parseubb($data['tour_desc'])) . "</td></tr>";
echo "</table>";
closetable();
openside("Players", true, "off");
$result2 = dbquery("SELECT tpl.*, us.user_name FROM " . DB_T_PLAYERS . " tpl LEFT JOIN " . DB_USERS . " us ON tpl.player_user=us.user_id WHERE player_tour='" . $data['tour_id'] . "' AND player_user<>'" . $bye . "'");
if (dbrows($result2)) {
echo "<table width='100%'>";
echo "<tr><td width='1%' class='tbl2'>#</td><td class='tbl2'>Name</td><td width='1%' class='tbl2'>Confirm</td><td class='tbl2' width='1%'></td></tr>";
$i = 1;
while ($data2 = dbarray($result2)) {
echo "<tr><td width='1%' class='" . ($i % 2 == 0 ? "tbl2" : "tbl1") . "'>" . $i . "</td><td class='" . ($i % 2 == 0 ? "tbl2" : "tbl1") . "'><a href='" . BASEDIR . "profile.php?lookup=" . $data2['player_user'] . "'>" . $data2['user_name'] . "</a></td><td width='1%' class='" . ($i % 2 == 0 ? "tbl2" : "tbl1") . "' align='center'>" . ($data2['player_checkin'] == 1 ? "<span style='color:green;'>confirmed</span>" : "<span style='color:red;'>not confirmed</span>") . "</td><td class='" . ($i % 2 == 0 ? "tbl2" : "tbl1") . "' width='1%'>";
if (checkrights("T")) {
echo "<a href='" . FUSION_REQUEST . "&checkin=" . ($data2['player_checkin'] == "1" ? "0" : "1") . "&pid=" . $data2['player_id'] . "'><img src='" . IMAGES . "" . ($data2['player_checkin'] == "1" ? "no" : "yes") . ".png' alt='change confirmation' /></a> <a href='" . FUSION_REQUEST . "&delete=" . $data2['player_id'] . "'><img src='" . IMAGES . "no.png' alt='delete player' /></a>";
}
echo "</td></tr>";
$i++;
}
echo "</table>";
} else {
echo "No registered players.";
}
closeside();
}
require_once INCLUDES . "comments_include.php";
showcomments("TT", DB_T_TOURS, "tour_id", $_GET['id'], BASEDIR . "tourney.php?p=viewtour&id=" . $_GET['id']);
示例15: itemoptions
} else {
echo "<div class='viewpage'>" . $custompage . "</div>";
}
echo itemoptions("CP", (int) $_GET['page_id']);
// Pimped
} else {
echo "<div style='text-align:center'><br />\n" . $locale['400'] . "\n<br /><br /></div>\n";
}
} else {
add_to_title($locale['global_200'] . $locale['401']);
opentable($locale['401']);
echo "<div style='text-align:center'><br />\n" . $locale['402'] . "\n<br /><br /></div>\n";
}
closetable();
if (dbrows($cp_result) && checkgroup($cp_data['page_access'])) {
if ($settings['enable_tags']) {
require_once INCLUDES . "tag_include.php";
// Pimped: tag
echo show_tags((int) $_GET['page_id'], "C");
// Pimped: tag
}
if ($cp_data['page_allow_comments']) {
require_once INCLUDES . "comments_include.php";
showcomments("C", DB_CUSTOM_PAGES, "page_id", (int) $_GET['page_id'], FUSION_SELF . "?page_id=" . (int) $_GET['page_id'], "page", "-", (int) $_GET['page_id'], "", "", "-", $cp_data['page_title']);
}
if ($cp_data['page_allow_ratings'] && $settings['ratings_enabled'] == "1") {
require INCLUDES . "ratings_include.php";
showratings("C", (int) $_GET['page_id'], FUSION_SELF . "?page_id=" . (int) $_GET['page_id'], "page-" . (int) $_GET['page_id'] . "-", $cp_data['page_title']);
}
}
require_once TEMPLATES . "footer.php";