Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <table class="table table-bordered table-hover table-striped tablesorter" id="tableData">
- <?php //Parsing table header ?>
- <thead>
- <tr>
- <?php
- for($i=0;$i<count($this->colNames);$i++){
- ?>
- <th width="<?=$this->colWidths[$i]?>%"><?=$this->colNames[$i]?></th>
- <?php
- }
- ?>
- <?php
- if($this->del || $this->edit || $this->detail){
- ?>
- <th>Action</th>
- <?php
- }
- ?>
- </tr>
- </thead>
- <tbody>
- <?php
- $queryResult = mysql_query($this->query);
- if($queryResult){
- while($row=mysql_fetch_array($queryResult)){
- ?>
- <tr>
- <?php
- for($i=0;$i<count($this->colNames);$i++){
- echo "<td>$row[$i]</td>";
- }
- if($this->edit || $this->del || $this->detail){
- ?>
- <td>
- <?php
- if($this->detail)
- echo "<a href=\"#\" name=\"actionDetail\" >Detail</a>";
- if($this->edit)
- echo "<a href=\"#\" name=\"actionEdit\" >Edit</a>";
- if($this->del)
- echo "<a href=\"#\" name=\"actionDelete\" >Hapus</a>";
- } ?>
- </td>
- </tr>
- <?php
- }
- }
- ?>
- </tbody>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement