Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {? \Nette\Diagnostics\Debugger::timer('render')}
- {var
- $countryLink = $presenter->link("Proxylist:country", 'XX','all','ping','all'),
- $regionLink = $presenter->link("Proxylist:region", 'XX','all','ping')
- $cityLink = $presenter->link("Proxylist:city", $cl,'all','ping')
- }
- <div id="country_list">
- <h3>Proxies by country</h3>
- {foreach array_chunk($country_list, count($country_list) / 3) as $chunk => $countries}
- <div id="country_list_{= ($chunk == 0 ? 'left' : ($chunk == 1 ? 'middle' : 'right'))}">
- {foreach $countries as $country}
- <img src="flags/blank.gif" class="flag flag-{$country->country_short_low}"/>
- ({$country->country_short}) <a href="{$countryLink|replace:'XX':$country->country_short|url}">
- {$country->country_cut} {if $country->count > 1}proxies{else}proxy{/if}
- </a> ({$country->count})
- <br/>
- {/foreach}
- </div>
- {/foreach}
- <br style="clear: left;" />
- </div>
- <h3>Proxies by Region</h3>
- {foreach $region_list as $cl => $count}
- <a href="{$regionLink|replace:'XX':$cl|url}">{$cl} {if $count > 1}proxies{else}proxy{/if}</a> ({$count})
- {/foreach}
- <h3>Proxies by City</h3>
- {foreach $city_list as $cl => $count}
- <a href="{$cityLink|replace:'XX':$cl|url}>{$cl} {if $count > 1}proxies{else}proxy{/if}</a> ({$count})
- {/foreach}
- {?\Nette\Diagnostics\Debugger::barDump(\Nette\Diagnostics\Debugger::timer('render'))}
Advertisement
Add Comment
Please, Sign In to add comment