								<div class="control_bar">
                                                                        <div class="control_bar_left">
                                                                                <div class="control_bar_right">
                                                                                        <div class="control_bar_main">
                                                                                                <form action="{$_SERVER.REQUEST_URI}" method="POST" class="control">
                                                                                                        <fieldset>
                                                                                                                <div class="control_select">
                                                                                                                        <select onChange="javascript:this.form.submit();" name="sort">
																<option value="0"{if !$_GET.sort} SELECTED{/if}>Show Best Media First</option>
                                                                                                                                <option value="1"{if $_GET.sort==1} SELECTED{/if}>Uploaded - Old</option>
                                                                                                                                <option value="2"{if $_GET.sort==2} SELECTED{/if}>Uploaded - New</option>
                                                                                                                                <option value="3"{if $_GET.sort==3} SELECTED{/if}>Views - Most</option>
                                                                                                                                <option value="4"{if $_GET.sort==4} SELECTED{/if}>Views - Least</option>
                                                                                                                                <option value="5"{if $_GET.sort==5} SELECTED{/if}>A-Z</option>
                                                                                                                                <option value="6"{if $_GET.sort==6} SELECTED{/if}>Z-A</option>
																{if $photo_list OR $search_results}
																<option value="7"{if $_GET.sort==7} SELECTED{/if}>Date Taken - Newest</option>
                                                                                                                                <option value="8"{if $_GET.sort==8} SELECTED{/if}>Date Taken - Oldest</option>
																<option value="9"{if $_GET.sort==9} SELECTED{/if}>Rating - Highest</option>
																<option value="10"{if $_GET.sort==10} SELECTED{/if}>Rating - Lowest</option>
																{/if}

                                                                                                                        </select>
                                                                                                                </div>
                                                                                                        </fieldset>
                                                                                                </form>
                                                                                        <ul class="navigation">
												{if $_GET.all}
													{if $total_items == 1}
													<li>SHOWING THE 1 ITEM</li>
													{else}
													<li>SHOWING ALL {$total_items} ITEMS</li>
													{/if}
												{else}
												{if $CONFIG.permission_download_all <= $_USER.level AND $album_info}
												<li><a href="/{$_GET.a}/&download" title="Download All Items">ZIP ALL</a></li>
												{/if}
												<li><a href="{$all_url}" title="View All Items">VIEW ALL</a></li>
												<li>ITEMS {$first_result} - {$last_result} OF {$total_items}</li>	
                                                                                                {$pagination}
												{/if}
												</li>
                                                                                        </ul>
                                                                                        </div>
                                                                                </div>
                                                                        </div>
                                                                </div>
