Exemple #1
0
{
    $query = "SELECT * FROM gallery WHERE `alias` = '{$alias}' limit 1";
    $result = mysql_query($query);
    while ($r = mysql_fetch_array($result)) {
        $img = $r[1];
    }
    return $img;
}
$query = "SELECT * FROM shops WHERE `show` = '1'";
$result = mysql_query($query);
if ($result != NULL) {
    while ($r = mysql_fetch_array($result)) {
        //ladystyle-nov-moscow.jpg
        echo "\n\t\t\t<div class='shop_container'>";
        if ($r[3] != NULL) {
            echo "<a class='shop_thumbnail' href='http://www.ladystyle.su/shops/details.php?shop={$r['0']}'><img alt='{$r['1']}' class='thumbnail' src='http://www.ladystyle.su/gallery/images/small/" . get_shop_pic($r[3]) . "'></a>";
        }
        if ($r[3] == NULL) {
            echo "<a class='shop_thumbnail' href='http://www.ladystyle.su/shops/details.php?shop={$r['0']}'><img alt='{$r['1']}' class='thumbnail' src='http://www.ladystyle.su/shops/title_pict/{$r['9']}'></a>";
        }
        echo "<div class='shop_text_container'>\n\t\t\t\t<h3>{$r['1']}</h3>\n\t\t\t\t<p>{$r['2']}</p>\n\t\t\t\t<div class='go_to_show'>\n\t\t\t\t<a href='http://www.ladystyle.su/shops/details.php?shop={$r['0']}'>Подробнее...</a>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t</div>\n\t\t\t<hr style='width: 90%;'>\n\t\t\t";
    }
}
?>

<br><br><br>
<p>Благодарим Вас за интерес, проявленный к продукции Компании Lady Style!</p>

  
</div>
<br><br>
Exemple #2
0
<div style='display: table;'>
<h2>Фотографии магазина</h2>
<?php 
    for ($i = 1; $i < 6; $i++) {
        ?>

<a style='float: left; margin: 0px 32px 10px 0px;' class="thumbnail fancybox" href="http://www.ladystyle.su/gallery/images/big/<?php 
        echo get_shop_pic($gallery_alias, $i);
        ?>
" data-fancybox-group="gallery" title="<?php 
        echo $r[2];
        ?>
">
					<img alt='$title' src="http://www.ladystyle.su/gallery/images/small/<?php 
        echo get_shop_pic($gallery_alias, $i);
        ?>
"></a>
<?php 
    }
    ?>

<a href="http://www.ladystyle.su/gallery/<?php 
    echo $gallery_alias;
    ?>
">Больше фотографий </a>
</div>
<?php 
}
?>