コード例 #1
0
<div class="col-sm-12">
	<div class="page-header">
		<h2><span class="glyphicon glyphicon-gift"></span>Más Productos <a href=""><small> / Tienda Balerom</small></a></h2>
	</div>
<!-- Thumbnails -->
<div class="row">
<?php 
for ($i = 1; $i <= 4; $i++) {
    echo div_open("col-xs-6 col-md-3");
    echo a_open("thumbnail", "#");
    echo img("http://placehold.it/500x300");
    echo a_close();
    echo div_close();
}
?>
</div>
</div>
コード例 #2
0
function album_song_list($songList)
{
    /* Load the Song list */
    foreach ($songList as $song) {
        $title = $song->track_title;
        $trackId = $song->track_id;
        $price = $song->track_price;
        echo a_open("list-group-item", base_url() . "cart/add/track/{$trackId}");
        echo "<span class='badge'>\${$price}.00</span>";
        echo $title;
        echo a_close();
    }
}
コード例 #3
0
        <table class="table">
          <thead>
            <td><strong>#</strong></td>
            <td><strong>Producto</strong></td>
            <td><strong>Titulo</strong></td>
            <td><strong>Precio</strong></td>
            <td class="text-right"><strong>Opciones</strong></td>
            <td>&nbsp;</td>
          </thead>
          <tbody>
            <?php 
$i = 1;
foreach ($this->cart->contents() as $items) {
    $id = $items['rowid'];
    $link = a_open('link', base_url() . "cart/delete/{$id}") . "eliminar" . a_close();
    $type = 'Desconocido';
    switch ($items['type']) {
        case '1':
            $type = "Album";
            break;
        case '2':
            $type = "Cancion de Album";
            break;
        case '3':
            $type = "Sencillo";
            break;
        case '4':
            $type = "Video";
            break;
        case '5':