function show_archive($result) { init_tex(); while ($row = pg_fetch_assoc($result)) { show_post($row); } }
<?php include "config/config.php"; include "admin/include/function.php"; include "include/post-templete.php"; sleep(1); $start = $_GET["start"]; $limit = $_GET["limit"]; $extsql = ""; if ($_GET["category"] != "0") { $extsql .= " AND `" . POST . "`.`slno`=`" . POST_CATEGORY . "`.`post_id` "; $extsql .= " AND `" . POST_CATEGORY . "`.`category_id`='{$_GET['category']}'"; } if ($_GET["search"] != "0") { $extsql .= " AND `" . POST . "`.`name` LIKE '%{$_GET['search']}%'"; } $sql = "SELECT `" . POST . "`.`slno` AS 'slno' FROM `" . POST . "`,`mchp_post_to_categories` \n WHERE `" . POST . "`.`status`='publish' AND `" . POST . "`.`verified`='yes' {$extsql}\n GROUP BY `" . POST . "`.`slno` \n ORDER BY `" . POST . "`.`slno` DESC \n LIMIT {$start},{$limit}"; $result = mysql_query($sql); while ($data = mysql_fetch_array($result)) { $posrarr = get_the_post($data["slno"]); show_post($data["slno"]); } if (!mysql_num_rows($result)) { echo "0"; }
</div> <div class="col-md-4 bg-info" style="padding-left: 50px"> <?php get_sidebar(); ?> <br> <div class=""> <?php function show_post($path) { $post = get_page_by_path($path); $content = apply_filters('the_content', $post->post_content); echo $content; } show_post('devis'); ?> <br> <br> <!-- Derniers articles <h3>Plus d'info</h3> <p>Vous avez une fuite ?</p> <p>Vous avez besoin déboucher les canalisations ?</p> <p>Problème de chaudière</p> <p>Besoin d'un dépannage?</p> <button class="btn btn-primary pull-right" onclick="window.location='contact';">Contacter nous !</button> --> </div> </div> </div>
case 1: show_team_forum_title($forum, $thread); break; } echo "<p>"; if ($preview == tra("Preview")) { $options = new output_options(); echo "<h2>" . tra("Preview") . "</h2>\n"; echo "<div class=\"pm_preview\">" . output_transform($content, $options) . "</div>\n"; } start_table(); show_message_row($thread, $parent_post); end_table(); if ($parent_post) { start_forum_table(array(tra("Author"), tra("Message"))); show_post($parent_post, $thread, $forum, $logged_in_user, 0, 0, false, false); end_table(); } else { show_posts($thread, $forum, 0, 0, CREATE_TIME_NEW, 0, $logged_in_user); } end_table(); page_tail(); function show_message_row($thread, $parent_post) { global $logged_in_user, $bbcode_html; global $content, $preview; $x1 = tra("Message:") . html_info() . post_warning(); $x2 = ""; if ($parent_post) { $x2 .= " " . tra("reply to %1Message ID%2:", "<a href=#" . $parent_post->id . ">", " " . $parent_post->id . "</a>"); }
* Time: 4:26 PM */ ?> <div class="col-md-4"> <div class="block"> <h3>Cimar Electronics</h3> <span class="block-title">Over Cimar</span> <?php /* |---------------------------------------------------------------- | Apply filter to set a max lenght for the_content() string. |---------------------------------------------------------------- */ $content = apply_filters('the_content', show_post('over-ons')); $content = str_replace(']]>', ']]>', $content); $content = substr($content, 0, 310); $content .= '...'; ?> <div class="block-intro"><?php echo $content; ?> </div> <script> $('.block-intro').find('h4').remove(); </script> <span class="read-more">
echo "send email failed"; $success_page = -1; } } $no_forum_rating = parse_bool($config, "no_forum_rating"); //__--------------- Display part if ($success_page == 1) { page_head(tra("Report Registered")); echo tra("Your report has been recorded. Thanks for your input.") . "<p>" . tra("A moderator will now look at your report and decide what will happen - this may take a little while, so please be patient"); echo "<p><a href=\"forum_thread.php?id={$thread->id}&postid={$post->id}\">" . tra("Return to thread") . "</a>"; } elseif ($success_page == 0) { page_head(tra("Report a forum post")); if (!$no_forum_rating) { echo "<p>" . tra("Before reporting this post, consider using the +/- rating system instead. If enough users rate a post negatively it will eventually be hidden.<br />You can find the rating system at the bottom of the post.") . "</p>\n "; } start_forum_table(array(tra("Author"), tra("Message"), "")); show_post($post, $thread, $forum, $user, 0, 0); echo "<form action=\"forum_report_post.php\" method=\"get\">\n"; echo form_tokens($user->authenticator); row1(tra("Report post")); row2(tra("Why do you find the post offensive: %1Please include enough information so that a person that\nhas not yet read the thread will quickly be able to identify the issue.%2", "<span class=\"smalltext\">", "</span>"), "<textarea name=\"reason\" rows=12 cols=54></textarea>"); row2("", "<input type=\"submit\" name=\"submit\" value=\"" . tra("OK") . "\">"); echo "<input type=\"hidden\" name=\"post\" value=\"" . $post->id . "\">"; echo "</form>"; end_table(); } elseif ($success_page == -1) { page_head(tra("Report not registered")); echo "<p>" . tra("Your report could not be recorded. Please wait a while and try again.") . "</p>\n <p>" . tra("If this is not a temporary error, please report it to the project developers.") . "</p>\n "; echo "<a href=\"forum_thread.php?id={$thread->id}&postid={$post->id}\">" . tra("Return to thread") . "</a>"; } page_tail();
function show_thread($topicid, $posts, $open = 0, $openids = false) { foreach ($posts as $post) { show_post($topicid, $post, $open, $openids); } }
function postView() { return show_post(); }