Created
April 13, 2013 17:41
Revisions
-
msjoker created this gist
Apr 12, 2013 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ <div class="wrapper"> <ul class="banners_home"> <? $banner_query = mysql_query('select id,`title_'.$lc.'`,`content_'.$lc.'`,`image_'.$lc.'`,`link_'.$lc.'`,`type` from ' . TBL_BANNERS .' where `situation`=2 and `status`=1 order by `order` ASC'); while($banner = mysql_fetch_array($banner_query)){ if($banner['link_'.$lc] != '') { ?> <? if($banner['type'] == 1) { $target = 'target="_blank"'; } else { $target = 'target="_self"'; } ?> <li> <a href="<?=$banner['link_'.$lc]?>"> <? } ?> <div class="pic"><img src="<?=URL_BASE.IMGBAN_DIR.$banner['image_'.$lc]?>" alt="<?=$banner['title_'.$lc]?>" /></div> <div class="text"> <div class="content"><span class="title"><?=$banner['title_'.$lc]?></span><?=$banner['content_'.$lc]?><span class="btn">[Leer mรกs]</span></div> <div class="bg"></div> </div> <div class="border-top"></div> <div class="border-bottom"></div> </a> </li> <? if($banner['link_'.$lc] != '') { ?></a><? } } ?> </ul> </div>