Example #1
0
                ?>
                            <td><?php 
                echo _toimg($f->status, 0);
                ?>
</td>
                        <?php 
            }
            ?>
                    <?php 
        } else {
            ?>
                        <?php 
            for ($i = 0; $i < 8; $i++) {
                ?>
                            <td><?php 
                echo _toimg('0', 0);
                ?>
</td>
                        <?php 
            }
            ?>
                    <?php 
        }
        ?>
                    <td>
                        <a href="<?php 
        echo base_url('index.php/admin/kelas/edit/' . $p->idclass);
        ?>
" class="btn btn-default btn-xs btn-primary" data-target="#telo" role="button" data-toggle="modal"><span class="glyphicon glyphicon-edit"></span> Edit</a>
                        <a href="<?php 
        echo base_url('index.php/admin/kelas/gambar/' . $p->idclass);
Example #2
0
				' . _toimg(_replacenull($mk1['status'], '0')) . '		
			    </td>  ';
    ?>
    <?php 
    $m1 = mysql_query("Select status from facilities where idclass='" . $s['idclass'] . "' and fac='parking'");
    $mk1 = mysql_fetch_array($m1);
    echo '<td>   
				' . _toimg(_replacenull($mk1['status'], '0')) . '		
			    </td>  ';
    ?>
    
    <?php 
    $m1 = mysql_query("Select status from facilities where idclass='" . $s['idclass'] . "' and fac='laundry'");
    $mk1 = mysql_fetch_array($m1);
    echo '<td>   
				' . _toimg(_replacenull($mk1['status'], '0')) . '		
			    </td>  ';
    ?>
    
    
    <td><a href="?p=class-edit&id=<?php 
    echo sha1($s['idclass']);
    ?>
&act=<?php 
    echo $s['idclass'];
    ?>
">Edit</a> - <a href="?p=class&del=1&id=<?php 
    echo sha1($s['idclass']);
    ?>
">Hapus</a></td>
  </tr>