Перед созданием новой темы, пожалуйста, ознакомьтесь с FAQ по LinkorCMS
<?
if($cat != 0){<br />
IndexGalleryShow($cat);<br />
}
?>
<?
$Images = System::database()->Select('gallery', GetWhereByAccess('view', "`cat_id`='$Cat' and `show`='1'"), null, 'order');
?>
<?
IndexGalleryShow($cat);
?>
<?
$where = GetWhereByAccess('view', ($Cat != 0 ? "`cat_id`='$Cat' and " : "")."`show`='1'");<br />
$order = ($Cat != 0 ? 'order' : 'public');<br />
$Images = System::database()->Select('gallery', $where, null, $order);
?>
<?
$where = GetWhereByAccess('view', ($Cat != 0 ? "`cat_id`='$Cat' and " : "")."`show`='1'"); <br />
$order = ($Cat != 0 ? 'order' : 'public'); <br />
$Images = System::database()->Select('gallery', $where, null, $order);
?>
<?
$where = GetWhereByAccess('view', ($Cat != 0 ? "`cat_id`='$Cat' and " : "")."`show`='1'"); <br />
$order = ($Cat != 0 ? 'order' : 'public'); <br />
$desc = ($Cat == 0);<br />
$Images = System::database()->Select('gallery', $where, null, $order, $desc);
?>
Быстрый переход: |
---|