HosipLan

Untitled

Jul 22nd, 2013
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 1.46 KB | None | 0 0
  1. {? \Nette\Diagnostics\Debugger::timer('render')}
  2.  
  3. {var
  4.     $countryLink = $presenter->link("Proxylist:country", 'XX','all','ping','all'),
  5.     $regionLink = $presenter->link("Proxylist:region", 'XX','all','ping')
  6.     $cityLink = $presenter->link("Proxylist:city", $cl,'all','ping')
  7. }
  8.  
  9. <div id="country_list">
  10.     <h3>Proxies by country</h3>
  11.     {foreach array_chunk($country_list, count($country_list) / 3) as $chunk => $countries}
  12.         <div id="country_list_{= ($chunk == 0 ? 'left' : ($chunk == 1 ? 'middle' : 'right'))}">
  13.             {foreach $countries as $country}
  14.                 <img src="flags/blank.gif" class="flag flag-{$country->country_short_low}"/>
  15.                 ({$country->country_short}) <a href="{$countryLink|replace:'XX':$country->country_short|url}">
  16.                 {$country->country_cut} {if $country->count > 1}proxies{else}proxy{/if}
  17.             </a> ({$country->count})
  18.                 <br/>
  19.             {/foreach}
  20.         </div>
  21.     {/foreach}
  22.     <br style="clear: left;" />
  23. </div>
  24.  
  25. <h3>Proxies by Region</h3>
  26. {foreach $region_list as $cl => $count}
  27.     <a href="{$regionLink|replace:'XX':$cl|url}">{$cl} {if $count > 1}proxies{else}proxy{/if}</a> ({$count})
  28. {/foreach}
  29.  
  30. <h3>Proxies by City</h3>
  31. {foreach $city_list as $cl => $count}
  32.     <a href="{$cityLink|replace:'XX':$cl|url}>{$cl} {if $count > 1}proxies{else}proxy{/if}</a> ({$count})
  33. {/foreach}
  34.  
  35. {?\Nette\Diagnostics\Debugger::barDump(\Nette\Diagnostics\Debugger::timer('render'))}
Advertisement
Add Comment
Please, Sign In to add comment