<div class="table-responsive" id="tablelist"> <table class="table"> <thead> <tr> <th>Title</th> <!-- <th>Content</th>--> <th>Category</th> <th>Edit</th> </tr> </thead> <tbody> <?php if ($result != "No articles") { while ($row = $result->fetch_assoc()) { $content = $articles->limit_text($row['article_content'], 300); echo '<tr>'; echo "<td>" . $row['article_name'] . "</td>"; // echo "<td>".$content."</td>"; echo "<td>" . $row['category_name'] . "</td>"; echo "<td><a target='_blank' href='articleview.php?aid=" . $row['article_id'] . "'' class='btn btn-success'><span class='glyphicon glyphicon-folder-open'></span></a> <a target='_blank' href='articleupdate.php?aid=" . $row['article_id'] . "' class='btn btn-success'><span class='glyphicon glyphicon-pencil'></span></a> <button class='btn btn-success' id='" . $row['article_id'] . "' onclick='req(id)'><span id='delete'class='glyphicon glyphicon-trash'></span></button></td>"; echo '</tr>'; } } else { echo "<tr><p> Currently User Have Not Any Article</p></tr>"; } ?> </tbody> </table> </div> </div>
$count = 0; } ?> <div class="col-sm-4"> <div class="panel panel-primary"> <div class="panel-heading home links"><?php echo $row['article_name']; ?> </div> <div class="panel-body"><img src="articleimage/<?php echo $row['img']; ?> " class="img-responsive img-circle" style="width:100%" alt="Image"> <p> <?php $aid = $row['url']; echo $view->limit_text($row['article_content']) . " " . "<a href='{$aid}'>read more...</a>"; //echo $row['article_content']; ?> </p> </div> <div class="panel-footer"><p> Post by <?php echo ucwords($row['u_fname']) . " " . ucwords($row['u_lname']) . "," . $row['dates']; ?> . <br><span class="label label-danger"><?php echo $row['category_name']; ?> </span></p></div> </div> </div>