devilangel Posted March 6, 2012 Share Posted March 6, 2012 This is the script i am using i two areas , but the goal is not the same Code: <div class='allDeal'> <div class='date'><?php echo app()->locale->dateFormatter->formatDateTime( utime($data->start,false),'medium',false); ?></div> <div class='content'> <div class='name'><?php echo CHtml::link($data->name,url('/deal/view',array('url'=>$data->url))); ?></div> <div class='clearfix prepend-top'> <div class='column data'> <div class='stats txt-center'> <span class='num'><?php echo $data->stats && $data->stats->bought?$data->stats->bought:'0'; ?></span><br /> <?php echo $this->t('Coupons Bought'); ?> </div> <div class='info prepend-top'> <div class='row price'> <label><?php echo $this->t('Price').':'; ?></label> <?php echo m('payment')->format($data->price); ?> </div> <div class='row'> <label><?php echo $this->t('Value').':'; ?></label> <?php echo m('payment')->format($data->value); ?> </div> <div class='row'> <label><?php echo $this->t('Savings').':'; ?></label> <?php echo m('payment')->format($data->value-$data->price); ?> </div> </div> </div> <div class='column last image'><?php if($data->imageBin) echo CHtml::link( CHtml::image(app()->storage->bin($data->imageBin)->getFileUrl('original')), url('/deal/view',array('url'=>$data->url)) ); ?></div> </div> </div> </div><?php if($index && ($index+1)%2==0) { ?><div class='clearfix'></div><?php } Only change: div class='allDeal' to div class='recentDeal' This is the good: http://kupon.woano.lv/deal/recent and the same code in other place looks ugly http://kupon.woano.lv/deal/all What i am doing wrong Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/ Share on other sites More sharing options...
Muddy_Funster Posted March 6, 2012 Share Posted March 6, 2012 could I ask that you post screen shots rather than links, call me paranoid, but I don't click random links posted in forums Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324419 Share on other sites More sharing options...
devilangel Posted March 6, 2012 Author Share Posted March 6, 2012 Yes ofcurse Silly me 1st is good looking 2nd is ugly one But code are the same :/ Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324428 Share on other sites More sharing options...
scootstah Posted March 6, 2012 Share Posted March 6, 2012 I can't view your links because I think I need to log in or something (can't read whatever language it is in). So can you post the full HTML source (from the browser) of each page? Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324435 Share on other sites More sharing options...
Muddy_Funster Posted March 6, 2012 Share Posted March 6, 2012 eyes on your css code if it's in a linked file would be handy too. Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324444 Share on other sites More sharing options...
devilangel Posted March 6, 2012 Author Share Posted March 6, 2012 I disabled the e-mail notifiaction at start of site, now can enter And yes sorry if i am acting silly , i am only starting to learning something Source: The uglly page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="lv" lang="lv"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="language" content="lv" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <!-- blueprint CSS framework --> <link rel="stylesheet" type="text/css" href="/css/blueprint/screen.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="/css/blueprint/print.css" media="print" /> <!--[if lt IE 8]> <link rel="stylesheet" type="text/css" href="/css/blueprint/ie.css" media="screen, projection" /> <![endif]--> <link rel="stylesheet" type="text/css" href="/css/blueprint/plugins/fancy-type/screen.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="/css/main.css" /> <link rel="stylesheet" type="text/css" href="/themes/classic/css/main.css" /> <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="/themes/classic/css/ie8.main.css" /> <![endif]--> <link href="/deal/rss/Ergli" rel="alternate" title="RSS" type="application/rss+xml" /> <link rel="SHORTCUT ICON" href="http://kupon.woano.lv/favicon.ico"> <meta name="keywords" content="1" /> <meta name="description" content="2" /> <link rel="stylesheet" type="text/css" href="/assets/2ed0a1da/all.css" /> <link rel="stylesheet" type="text/css" href="/assets/132adf7f/listview/styles.css" /> <link rel="stylesheet" type="text/css" href="/assets/ed6d8512/pager.css" /> <script type="text/javascript" src="/assets/e2035475/jquery.min.js"></script> <script type="text/javascript" src="/assets/e2035475/jquery.ba-bbq.js"></script> <script type="text/javascript" src="/assets/2ed0a1da/all.js"></script> <script type="text/javascript" src="/assets/132adf7f/listview/jquery.yiilistview.js"></script> <script type="text/javascript" src="/assets/885b2a4b/jquery.countdown.js"></script> <script type="text/javascript" src="/assets/885b2a4b/jquery.countdown-lv.js"></script> <title>Patreizējie piedāvājumi | Drīzumā pieejamie piedāvājumi - Te Ir Letak.lv</title> </head> <body class='classic-theme'> <div id="wrapper"> <div id="header"> <div class="container"> <div id="wlt-LocationSelect" class="worklet"><div class='small txt-right'><a class="topMenuLink" name="wlt-LocationSelect" href="#">paslēpt</a></div><div class="worklet-info notice hide"></div> <div class="worklet-content"><ul> <li class='city current'><a href="/Ergli">Ergli</a></li></ul></div> </div><div id="wlt-DealSubscribe" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><div class='small txt-right'><a class="topMenuLink" name="wlt-DealSubscribe" href="#">paslēpt</a></div><form id="uForm_DealSubscribe" action="/deal/subscribe" method="post"><div style="visibility:hidden"><input type="hidden" value="1" name="yform_uForm_DealSubscribe" id="yform_uForm_DealSubscribe" /></div> <div id="uForm_DealSubscribe_es_" class="errorSummary" style="display:none"><p>Nepieciešams izlabot sekojošas kļūdas:</p> <ul><li>dummy</li></ul></div> <div class="row field_location"> <label for="MDealSubscribeForm_location" class="required"><span class="required">*</span>Pilsēta:</label> <select name="MDealSubscribeForm[location]" id="MDealSubscribeForm_location"> <option value="1" selected="selected">Ergli</option> </select> </div> <div class="row field_email"> <label for="MDealSubscribeForm_email" class="required"><span class="required">*</span>Jūsu e-pasta adrese:</label> <input name="MDealSubscribeForm[email]" id="MDealSubscribeForm_email" type="text" value="" /> </div> <div class="row buttons"><input name="submit" type="submit" value="Parakstīties" /> </div> </form></div></div> <div class="span-24 last prepend-top append-bottom"> <div class="column" id="logo"><a href="http://kupon.woano.lv"><img src="/themes/classic/images/logo.png" alt="" /></a></div> <h2 class='column'>Labākais dienas piedāvājums pilsētā <a href="http://kupon.woano.lv">Ergli</a></h2> <div class='topmenu'><div id="wlt-BaseTopMenu" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><ul class="horizontal clearfix" id="yw1"> <li><a class="topMenuLink" name="wlt-LocationSelect" href="#">Apmeklēt vairāk pilsētu</a></li> <li><a class="topMenuLink" name="wlt-DealSubscribe" href="#">Saņemt Dienas ziņas</a></li> </ul></div></div></div> </div> </div> </div><!-- header --> <div id="mainmenu"> <div class="container"> <div class='column'><div id="wlt-BaseMenu" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><ul class="horizontal clearfix" id="yw2"> <li><a href="http://kupon.woano.lv">Sākums</a></li> <li><a href="/page/how-it-works">Kā Te Ir Letak.lv darbojas</a></li> <li><a href="/deal/all">Visi piedāvājumi</a></li> <li><a href="/deal/recent">Beigušies piedāvājumi</a></li> </ul></div></div></div> <div><div id="wlt-UserMenu" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><div class="column welcome"><div> Sveiks/a, Edzus Balodis!<br /> <span class='logoutLink'><a href="/user/logout">Izrakstīties</a></span> </div></div><ul class="horizontal clearfix" id="yw3"> <li><a href="/deal/coupons">Manas mantas</a></li> <li><a href="/admincp">Administrātora konsole</a></li> </ul></div></div></div> </div> </div><!-- mainmenu --> <div class="container" id="page"> <div class="span-24 last" id="main"> <div class="span-24 last" id="content"> <div id="wlt-DealAllFilter" class="worklet"> <div class="roundedBox"> <div class="tl"><div class="tr"><div class="borders t"></div></div></div> <div class="borders l"><div class="borders r"> <div class="boxContent"><div class="worklet-info notice hide"></div> <div class="worklet-content"><div id="filterInfo">Patreizējais filtrs: Ergli<br /><a id="changeFilterLink" href="#">Mainīt</a></div><form id="uForm_DealAllFilter" action="/deal/allFilter" method="post"><div style="visibility:hidden"><input type="hidden" value="1" name="yform_uForm_DealAllFilter" id="yform_uForm_DealAllFilter" /></div> <div id="uForm_DealAllFilter_es_" class="errorSummary" style="display:none"><p>Nepieciešams izlabot sekojošas kļūdas:</p> <ul><li>dummy</li></ul></div> <div class="row field_location"> <label for="MDealAllFilterForm_location">Pilsēta:</label> <select name="MDealAllFilterForm[location]" id="MDealAllFilterForm_location"> <option value="1" selected="selected">Ergli</option> </select> </div> <div class="row buttons"><input name="submit" type="submit" value="Izvērstā meklēšana" /> </div> </form></div></div> </div></div> <div class="bl"><div class="br"><div class="borders b"></div></div></div> </div></div><div id="wlt-DealAll" class="worklet"> <div class="roundedBox"> <div class="tl"><div class="tr"><div class="borders t"></div></div></div> <div class="borders l"><div class="borders r"> <div class="boxContent"><h3 class="worklet-title">Patreizējie piedāvājumi | <a class="switchLink" href="/deal/all/type/upcoming">Drīzumā pieejamie piedāvājumi</a></h3><div class="worklet-info notice hide"></div> <div class="worklet-content"><div class='clearfix'><div id="wlt-DealAll-list" class="list-view"> <div class="keys" style="display:none" title="/deal/all"><span>1</span></div> <div class="summary">Attēlo no 1. līdz 1. no pavisam 1 ieraksta(-iem).</div> <div class="items"> <div class='allDeal'> <div class='date'>2012. gada 5. mar</div> <div class='content'> <div class='name'><a href="/deals/1">12,10Ls No 15,90Ls Spa masāža</a></div> <div class='clearfix prepend-top'> <div class='column data'> <div class='stats txt-center'> <span class='num'>1</span><br /> Kupons tika nopirkts </div> <div class='info prepend-top'> <div class='row price'> <label>Cena: </label> 12,10 Ls </div> <div class='row'> <label>Vērtība: </label> 15,90 Ls </div> <div class='row'> <label>Ietaupi: </label> 3,80 Ls </div> </div> </div> <div class='column last image'><a href="/deals/1"><img src="http://kupon.woano.lv/storage/32000/1/ebc52b9a460bcab383cc1f4dec2d0d8a.jpg" alt="" /></a></div> </div> </div> </div></div> </div></div></div></div> </div></div> <div class="bl"><div class="br"><div class="borders b"></div></div></div> </div></div> </div><!-- content --> </div><!-- main --> </div><!-- page --> <div id="space"></div> <div id="footer"> <div class='container'> <div class='span-5 append-1'> <div id="wlt-BaseFollowMenu" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><ul class="horizontal clearfix" id="yw4"> <li><span>Seko mums:</span></li> <li><a target="_blank" href="http://www.twitter.com"><img src="/assets/42f5746a/twitter.png" alt="Twitter" /></a></li> <li><a target="_blank" href="http://www.facebook.com"><img src="/assets/42f5746a/facebook.png" alt="Facebook" /></a></li> <li><a target="_blank" href="/deal/rss/Ergli"><img src="/assets/42f5746a/rss.png" alt="RSS" /></a></li> <li><a target="_blank" href="/deal/subscription"><img src="/assets/42f5746a/email.png" alt="Email" /></a></li> </ul></div></div><div id="wlt-DealStats" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><div class='info'> <div class='row'> <label>Kopā ietaupīta nauda:</label> 7,60 Ls </div> <div class='row'> <label>Kopā nopirkti kuponi:</label> 2 </div> </div></div></div> </div> <div class='span-18 last'> <div id='footermenu'><div id="wlt-BaseFooterMenu" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><ul class="horizontal clearfix" id="yw5"> <li><a href="http://kupon.woano.lv">Sākums</a></li> <li><a href="/gift/card">Give Te Ir Letak.lv Gift Card</a></li> <li><a href="/deal/suggest">Ieteikt uzņēmumu</a></li> <li><a href="/deal/partner">Kļūtsti par partneri</a></li> <li><a href="/page/about-us">Par Mums</a></li> <li><a href="/base/contact">Sazināties ar mums</a></li> <li><a href="/page/privacy">Privātuma noteikumi</a></li> <li><a href="/page/terms">Lietošanas noteikumi</a></li> </ul></div></div></div> <hr /> Copyright © 2012 by GroupDeal.<br/>Visas tiesības aizsargātas<br/> </div> </div> </div><!-- footer --> </div> <script type="text/javascript"> /*<![CDATA[*/ jQuery(function($) { jQuery("#changeFilterLink").live("click",function(){ $("#wlt-DealAllFilter").find("form").toggle(); }); $('#uForm_DealAllFilter').uForm().attach(); jQuery('#wlt-DealAll-list').yiiListView({'ajaxUpdate':['wlt-DealAll-list'],'ajaxVar':'ajax','pagerClass':'pager','loadingClass':'list-view-loading','sorterClass':'sorter'}); $("#wlt-DealAll .switchLink").click(function(e){ e.preventDefault(); $.ajax({ url: $(this).attr("href"), success: function(data) { $("#wlt-DealAll").after(data).remove(); } }); }); $('#uForm_DealSubscribe').uForm().attach(); }); /*]]>*/ </script> </body> </html> Nice loking one: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" xml:lang="lv" lang="lv"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="language" content="lv" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <!-- blueprint CSS framework --> <link rel="stylesheet" type="text/css" href="/css/blueprint/screen.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="/css/blueprint/print.css" media="print" /> <!--[if lt IE 8]> <link rel="stylesheet" type="text/css" href="/css/blueprint/ie.css" media="screen, projection" /> <![endif]--> <link rel="stylesheet" type="text/css" href="/css/blueprint/plugins/fancy-type/screen.css" media="screen, projection" /> <link rel="stylesheet" type="text/css" href="/css/main.css" /> <link rel="stylesheet" type="text/css" href="/themes/classic/css/main.css" /> <!--[if lt IE 9]> <link rel="stylesheet" type="text/css" href="/themes/classic/css/ie8.main.css" /> <![endif]--> <link href="/deal/rss/Ergli" rel="alternate" title="RSS" type="application/rss+xml" /> <link rel="SHORTCUT ICON" href="http://kupon.woano.lv/favicon.ico"> <meta name="keywords" content="1" /> <meta name="description" content="2" /> <link rel="stylesheet" type="text/css" href="/assets/2ed0a1da/all.css" /> <link rel="stylesheet" type="text/css" href="/assets/132adf7f/listview/styles.css" /> <link rel="stylesheet" type="text/css" href="/assets/ed6d8512/pager.css" /> <script type="text/javascript" src="/assets/e2035475/jquery.min.js"></script> <script type="text/javascript" src="/assets/e2035475/jquery.ba-bbq.js"></script> <script type="text/javascript" src="/assets/2ed0a1da/all.js"></script> <script type="text/javascript" src="/assets/132adf7f/listview/jquery.yiilistview.js"></script> <title>Beigušies piedāvājumi pilsētā Ergli - Te Ir Letak.lv</title> </head> <body class='classic-theme'> <div id="wrapper"> <div id="header"> <div class="container"> <div id="wlt-LocationSelect" class="worklet"><div class='small txt-right'><a class="topMenuLink" name="wlt-LocationSelect" href="#">paslēpt</a></div><div class="worklet-info notice hide"></div> <div class="worklet-content"><ul> <li class='city current'><a href="/Ergli">Ergli</a></li></ul></div> </div><div id="wlt-DealSubscribe" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><div class='small txt-right'><a class="topMenuLink" name="wlt-DealSubscribe" href="#">paslēpt</a></div><form id="uForm_DealSubscribe" action="/deal/subscribe" method="post"><div style="visibility:hidden"><input type="hidden" value="1" name="yform_uForm_DealSubscribe" id="yform_uForm_DealSubscribe" /></div> <div id="uForm_DealSubscribe_es_" class="errorSummary" style="display:none"><p>Nepieciešams izlabot sekojošas kļūdas:</p> <ul><li>dummy</li></ul></div> <div class="row field_location"> <label for="MDealSubscribeForm_location" class="required"><span class="required">*</span>Pilsēta:</label> <select name="MDealSubscribeForm[location]" id="MDealSubscribeForm_location"> <option value="1" selected="selected">Ergli</option> </select> </div> <div class="row field_email"> <label for="MDealSubscribeForm_email" class="required"><span class="required">*</span>Jūsu e-pasta adrese:</label> <input name="MDealSubscribeForm[email]" id="MDealSubscribeForm_email" type="text" value="" /> </div> <div class="row buttons"><input name="submit" type="submit" value="Parakstīties" /> </div> </form></div></div> <div class="span-24 last prepend-top append-bottom"> <div class="column" id="logo"><a href="http://kupon.woano.lv"><img src="/themes/classic/images/logo.png" alt="" /></a></div> <h2 class='column'>Labākais dienas piedāvājums pilsētā <a href="http://kupon.woano.lv">Ergli</a></h2> <div class='topmenu'><div id="wlt-BaseTopMenu" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><ul class="horizontal clearfix" id="yw1"> <li><a class="topMenuLink" name="wlt-LocationSelect" href="#">Apmeklēt vairāk pilsētu</a></li> <li><a class="topMenuLink" name="wlt-DealSubscribe" href="#">Saņemt Dienas ziņas</a></li> </ul></div></div></div> </div> </div> </div><!-- header --> <div id="mainmenu"> <div class="container"> <div class='column'><div id="wlt-BaseMenu" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><ul class="horizontal clearfix" id="yw2"> <li><a href="http://kupon.woano.lv">Sākums</a></li> <li><a href="/page/how-it-works">Kā Te Ir Letak.lv darbojas</a></li> <li><a href="/deal/all">Visi piedāvājumi</a></li> <li><a href="/deal/recent">Beigušies piedāvājumi</a></li> </ul></div></div></div> <div><div id="wlt-UserMenu" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><div class="column welcome"><div> Sveiks/a, Edzus Balodis!<br /> <span class='logoutLink'><a href="/user/logout">Izrakstīties</a></span> </div></div><ul class="horizontal clearfix" id="yw3"> <li><a href="/deal/coupons">Manas mantas</a></li> <li><a href="/admincp">Administrātora konsole</a></li> </ul></div></div></div> </div> </div><!-- mainmenu --> <div class="container" id="page"> <div class="span-24 last" id="main"> <div class="span-24 last" id="content"> <div id="wlt-DealRecent" class="worklet"> <div class="roundedBox"> <div class="tl"><div class="tr"><div class="borders t"></div></div></div> <div class="borders l"><div class="borders r"> <div class="boxContent"><h3 class="worklet-title">Beigušies piedāvājumi pilsētā Ergli</h3><div class="worklet-info notice hide"></div> <div class="worklet-content"><div class='clearfix'><form action="/deal/recent" method="post"><div id="wlt-DealRecent-list" class="list-view"> <div class="keys" style="display:none" title="/deal/recent"><span>2</span></div> <div class="summary">Attēlo no 1. līdz 1. no pavisam 1 ieraksta(-iem).</div> <div class="items"> <div class='recentDeal'> <div class='date'>2012. gada 4. mar</div> <div class='content'> <div class='name'><a href="/deals/2">12,10Ls No 15,90Ls Spa masāža </a></div> <div class='clearfix prepend-top'> <div class='column data'> <div class='stats txt-center'> <span class='num'>1</span><br /> Kupons tika nopirkts </div> <div class='info prepend-top'> <div class='row price'> <label>Cena:</label> 12,10 Ls </div> <div class='row'> <label>Vērtība:</label> 15,90 Ls </div> <div class='row'> <label>Ietaupi:</label> 3,80 Ls </div> </div> </div> <div class='column last image'><a href="/deals/2"><img src="http://kupon.woano.lv/storage/32000/2/2d2d347d284f8de1dcdbb1bcc18a2a3b.jpg" alt="" /></a></div> </div> </div> </div></div> </div></form></div></div></div> </div></div> <div class="bl"><div class="br"><div class="borders b"></div></div></div> </div></div> </div><!-- content --> </div><!-- main --> </div><!-- page --> <div id="space"></div> <div id="footer"> <div class='container'> <div class='span-5 append-1'> <div id="wlt-BaseFollowMenu" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><ul class="horizontal clearfix" id="yw4"> <li><span>Seko mums:</span></li> <li><a target="_blank" href="http://www.twitter.com"><img src="/assets/42f5746a/twitter.png" alt="Twitter" /></a></li> <li><a target="_blank" href="http://www.facebook.com"><img src="/assets/42f5746a/facebook.png" alt="Facebook" /></a></li> <li><a target="_blank" href="/deal/rss/Ergli"><img src="/assets/42f5746a/rss.png" alt="RSS" /></a></li> <li><a target="_blank" href="/deal/subscription"><img src="/assets/42f5746a/email.png" alt="Email" /></a></li> </ul></div></div><div id="wlt-DealStats" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><div class='info'> <div class='row'> <label>Kopā ietaupīta nauda:</label> 7,60 Ls </div> <div class='row'> <label>Kopā nopirkti kuponi:</label> 2 </div> </div></div></div> </div> <div class='span-18 last'> <div id='footermenu'><div id="wlt-BaseFooterMenu" class="worklet"> <div class="worklet-info notice hide"></div> <div class="worklet-content"><ul class="horizontal clearfix" id="yw5"> <li><a href="http://kupon.woano.lv">Sākums</a></li> <li><a href="/gift/card">Give Te Ir Letak.lv Gift Card</a></li> <li><a href="/deal/suggest">Ieteikt uzņēmumu</a></li> <li><a href="/deal/partner">Kļūtsti par partneri</a></li> <li><a href="/page/about-us">Par Mums</a></li> <li><a href="/base/contact">Sazināties ar mums</a></li> <li><a href="/page/privacy">Privātuma noteikumi</a></li> <li><a href="/page/terms">Lietošanas noteikumi</a></li> </ul></div></div></div> <hr /> Copyright © 2012 by GroupDeal.<br/>Visas tiesības aizsargātas<br/> </div> </div> </div><!-- footer --> </div> <script type="text/javascript"> /*<![CDATA[*/ jQuery(function($) { jQuery('#wlt-DealRecent-list').yiiListView({'ajaxUpdate':['wlt-DealRecent-list'],'ajaxVar':'ajax','pagerClass':'pager','loadingClass':'list-view-loading','sorterClass':'sorter'}); $('#uForm_DealSubscribe').uForm().attach(); }); /*]]>*/ </script> </body> </html> This css is for the ugly: .allDeal {float: left; margin: 0 1em 1.5em 1em; width: 435px;} .allDeal .name {height: 50px; overflow: hidden;} .allDeal .prepend-top {margin-top: 1em} .allDeal .data {width: 150px;} .allDeal .date {font-weight: bold;} .allDeal .content {border: 2px solid #ddd; padding: .5em} .allDeal .image img {height: 170px;} .allDeal .stats {border: 1px solid #ddd; padding: .5em; line-height: 1;} .allDeal .stats .num {font-weight: bold; font-size: 250%} .allDeal .info {border: 1px solid #ddd;} .allDeal .info .price {background-color: #ddd;} .allDeal .info .row {padding: .5em; margin: 0; font-size: 110%;} .allDeal .info label {text-align: left; width: 50%;}} and this for the nice one : .recentDeal {float: left; margin: 0 1em 1.5em 1em; width: 435px;} .recentDeal .name {height: 50px; overflow: hidden;} .recentDeal .prepend-top {margin-top: 1em} .recentDeal .data {width: 150px;} .recentDeal .date {font-weight: bold;} .recentDeal .content {border: 2px solid #ddd; padding: .5em} .recentDeal .image img {height: 170px;} .recentDeal .stats {border: 1px solid #ddd; padding: .5em; line-height: 1;} .recentDeal .stats .num {font-weight: bold; font-size: 250%} .recentDeal .info {border: 1px solid #ddd;} .recentDeal .info .price {background-color: #ddd;} .recentDeal .info .row {padding: .5em; margin: 0; font-size: 110%;} .recentDeal .info label {text-align: left; width: 50%;} Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324470 Share on other sites More sharing options...
batwimp Posted March 6, 2012 Share Posted March 6, 2012 Is the ugly CSS in a different file than the good looking CSS? Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324493 Share on other sites More sharing options...
devilangel Posted March 6, 2012 Author Share Posted March 6, 2012 yes they are in two diferent file . Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324494 Share on other sites More sharing options...
batwimp Posted March 6, 2012 Share Posted March 6, 2012 So did you make sure you called the correct CSS files in your HTML code? At a glance, it looks like both HTML files are loading the same CSS files. Make sure your <link> tags are pointing to the correct CSS file. Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324498 Share on other sites More sharing options...
devilangel Posted March 6, 2012 Author Share Posted March 6, 2012 :/ as far i see is using assets folder but must use configured folder strange :/ like i sad i am learning... where i must look at now ? Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324529 Share on other sites More sharing options...
blacknight Posted March 6, 2012 Share Posted March 6, 2012 why 2 css classes if they are the same ... id put them in the same file and call it on each page .... Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324536 Share on other sites More sharing options...
devilangel Posted March 6, 2012 Author Share Posted March 6, 2012 Becuse time by time i think i will body the way they are loking at, now its only the basic look. thats why.. and the orginal code of now uggly looking one was : more uggliest :// <div class='allDeal'> <div class='image'><?php if($data->imageBin) echo CHtml::link( CHtml::image(app()->storage->bin($data->imageBin)->getFileUrl('original')), url('/deal/view',array('url'=>$data->url)) ); ?></div> <div class='name'><?php echo CHtml::link($data->name,url('/deal/view',array('url'=>$data->url))); ?></div> <div class='clearfix'> <div class='column viewLink'><?php echo CHtml::link($this->t('View this deal'),url('/deal/view',array('url'=>$data->url))); ?></div><?php if($data->start < time()) { ?><div class='txt-right date'><?php echo $this->t('{time} left', array( '{time}' => CHtml::tag('span', array('id' => 'timer_'.$data->id)) )); ?></div><?php } else { ?><div class='txt-right date'><?php echo app()->locale->dateFormatter->formatDateTime( utime($data->start,false),'medium',false); ?></div><?php } ?></div> </div><?php if($data->start < time()) { $layout = $data->end-time() > 86400 ? '{dn} {dl} {hn}:{mn}:{sn}' : '{hn}:{mn}:{sn}'; cs()->registerScript('timelefttimer.'.$data->id, '$("#timer_'.$data->id.'").countdown({until: new Date('.($data->end * 1000).'),layout: "'.$layout.'"});'); } if($index && ($index+1)%2==0) { ?><div class='clearfix'></div><?php } i tryed to modyfy only it , i wanted to add total bougt orginal price discount Savings as normal loking in first img but what i get is second img :/ Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324538 Share on other sites More sharing options...
devilangel Posted March 6, 2012 Author Share Posted March 6, 2012 and orginal css for that one was: .allDeal { float: left; margin: 0 1em 1.5em 1em; width: 415px; padding: 10px; border: 1px solid #ccc; } .allDeal .image img {width: 415px;} Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324542 Share on other sites More sharing options...
devilangel Posted March 6, 2012 Author Share Posted March 6, 2012 SOLVED i changed : class='allDeals to class='recentDeal and voala Thankyou guys Quote Link to comment https://forums.phpfreaks.com/topic/258370-the-same-code-in-2-areas-showing-different-help/#findComment-1324553 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.