if ($db->getnumRows() == 1) { echo "<tr>"; echo "<td>" . $feedbacks['name'] . "</td>"; echo "<td>" . $feedbacks['email'] . "</td>"; echo "<td>" . $feedbacks['category'] . "</td>"; echo "<td><a href='#' rel='popover' data-content='" . $feedbacks['remarks'] . "' data-original-title='Description'>" . extract_str($feedbacks['remarks'], 200) . "</a></td>"; echo "</tr>"; } else { if (is_array($feedbacks)) { // for zero recordset checking foreach ($feedbacks as $fbk) { echo "<tr>"; echo "<td>" . $fbk['name'] . "</td>"; echo "<td>" . $fbk['email'] . "</td>"; echo "<td>" . $fbk['category'] . "</td>"; echo "<td><a href='#' rel='popover' data-content='" . $fbk['remarks'] . "' data-original-title='Description'>" . extract_str($fbk['remarks'], 200) . "</a></td>"; echo "</tr>"; } } } ?> </table> </div> </div> </div> <?php include 'footer.php'; ?> <script type="text/javascript"> $('a[rel="popover"]').popover({placement:'bottom'});
<div class="span9"> <h1>Manage Reviews</h1> <table class="table table-striped table-condensed"> <tr><th>Broker</th><th>User</th><th>Topic</th><th>Date</th></tr> <?php $reviews = $db->select('tbl_brokerreviews'); if ($db->getnumRows() == 1) { echo "<tr>"; echo "<td>" . $userTools->getBrokerName($reviews['nBrokerID']) . "</td>"; echo "<td>" . $reviews['sUserID'] . "</td>"; echo "<td><a href='#' rel='popover' data-content='" . $reviews['sReview'] . "' data-original-title='Description'>" . extract_str($reviews['sTopic'], 200) . "</a></td>"; echo "<td>" . $reviews['dtCreated'] . "</td>"; echo "</tr>"; } else { foreach ($reviews as $rev) { echo "<tr>"; echo "<td>" . $userTools->getBrokerName($rev['nBrokerID']) . "</td>"; echo "<td>" . $rev['sUserID'] . "</td>"; echo "<td><a href='#' rel='popover' data-content='" . $rev['sReview'] . "' data-original-title='Description'>" . extract_str($rev['sTopic'], 200) . "</a></td>"; echo "<td>" . $rev['dtCreated'] . "</td>"; echo "</tr>"; } } ?> </table> </div> </div> </div> <?php include 'footer.php';
<h3><a href="broker_info.php?id=<?php echo $broker_id; ?> "><?php echo $brokers['sBrokerName']; ?> </a></h3> <span class="website"><a href="<?php echo $brokers['sWebsite']; ?> "><?php echo $brokers['sWebsite']; ?> </a></span> <p class="desc"><?php echo extract_str($brokers['sDescription'], 250); ?> </p> <?php echo $userTools->getBrokerAvgRatings($broker_id); ?> <span class="reviews"><a href="broker_info.php?id=<?php echo $broker_id; ?> #divReviews">Reviews (<?php echo $userTools->getTotalReviews($broker_id); ?> )</a></span> <span class="find_more"> <a href="broker_info.php?id=<?php echo $broker_id;
public function renderBrokerReview($broker) { $broker_id = $broker['nBrokerID']; $html = '<div class="row">'; $html .= '<div class="span2">'; $html .= "<a href=\"broker_review.php?id={$broker_id}\">"; $html .= "<img src='" . $broker['sLogoImage'] . "' alt='" . $broker['sBrokerName'] . "' /></a>"; $html .= "</div>"; $html .= '<div class="span6">'; $html .= "<h3><a href=\"broker_review.php?id={$broker_id}\">" . $broker['sBrokerName'] . "</a></h3>"; $html .= "<p class=\"desc\">" . extract_str($broker['sDescription'], 250) . "</p>"; $html .= $this->getBrokerAvgRatings($broker_id); $html .= "<span class=\"ratings\"> <a href=\"broker_info.php?id={$broker_id}#divRatings\"><span class=\"label\">"; $html .= $this->getTotalRatings($broker_id); $html .= "</span></a></span>"; $html .= "<span class=\"pull-right\">"; $html .= "<a href=\"broker_review.php?id={$broker_id}\" class=\"btn\">Complete Review</a>"; $html .= "</span></div></div>"; return $html; }
public function rendertable_TradingPlatform() { $html = "<table class='table table-condensed table-striped'>"; $html .= "<tr><th>Name</th><th>Description</th><th>Edit</th><th>Delete</th></tr>"; $tps = $this->getRevTradingPlatforms(); if ($this->db->getNumRows() == 1) { $html .= "<tr>"; $html .= "<td>" . $tps['sName'] . "</td>"; $html .= "<td>" . extract_str($tps['sDescription'], 100) . "</td>"; $html .= "<td><a href='#' class='btn'>Edit</a></td>"; $html .= "<td><input type='button' class='btn' value='Delete' onclick='deleteTP(" . $tps['id'] . ")'></td>"; $html .= "</tr>"; } else { foreach ($tps as $tp) { $html .= "<tr>"; $html .= "<td>" . $tp['sName'] . "</td>"; $html .= "<td>" . extract_str($tp['sDescription'], 100) . "</td>"; $html .= "<td><a href='#' class='btn'>Edit</a></td>"; $html .= "<td><input type='button' class='btn' value='Delete' onclick='deleteTP(" . $tp['id'] . ")'></td>"; $html .= "</tr>"; } } $html .= "</table>"; return $html; }