コード例 #1
0
ファイル: index.php プロジェクト: nickyudha/spalosophy
                      </tr>
                    </thead>

                    <tbody>
                      <?php 
if ($total_query < 1) {
    ?>
<tr><td class="no-record" colspan="8">No records found.</td></tr><?php 
}
?>
                      
                      <?php 
$record = 1;
$row = 1;
foreach ($all_product as $sale) {
    $promotions = get_promotions($sale['type_id']);
    ?>
      
                      <tr class="<?php 
    echo $tr_class;
    ?>
" id="<?php 
    echo "row_" . $row;
    ?>
" onclick="selectRow('<?php 
    echo $row;
    ?>
')">
                        <td><input type="checkbox" name="type_id[]" value="<?php 
    echo $sale['product_id'];
    ?>
コード例 #2
0
ファイル: ui.pool.php プロジェクト: Razinsky/echaude-com
function update_pool_content($selection = '', $id_parent = null, $id_ancestor = null)
{
    switch ($selection) {
        // General
        case 'supercat':
            $html = get_supercat_items();
            break;
            // Vins
        // Vins
        case 'cat-vins':
            $html = get_cat_vins_items();
            break;
        case 'regions-du-monde':
            $html = get_regions_monde_items();
            break;
        case 'pays':
            $html = get_items('v_all_pays', $id_parent, 'pays', 'nom_pays', 'id_pays');
            break;
        case 'regions':
            $html = get_items('v_all_regions', $id_parent, 'region', 'nom_region', 'id_region');
            break;
        case 'sous-regions':
            $html = get_items('v_all_sous_regions', $id_parent, 'sous-region', 'nom_sous_region', 'id_sous_region');
            break;
        case 'vins':
            $html = get_wines($id_parent, $id_ancestor);
            break;
            // Divers
        // Divers
        case 'promotions':
            $html = get_promotions();
            break;
        case 'divers':
            $cat_vin = $id_ancestor == 'undefined' ? $id_parent : $id_ancestor;
            $id_cat_vin = substr($cat_vin, -1);
            if ($id_cat_vin <= 5) {
                $html .= get_vins_au_verre($id_cat_vin);
            }
            if ($id_cat_vin <= 5) {
                $html .= get_demi_bouteilles($id_cat_vin);
            }
            break;
            // Alcool
        // Alcool
        case 'cat-alcool':
            //$html = get_cat_alcool_items();
            break;
        case 'alcools':
            //$html = get_alcools();
            break;
    }
    echo $html;
}