<?php if (!$sf_user->isAuthenticated()): ?>
<div class="search">
	<div class="top"></div>
	<div class="center">
		<?php echo form_tag('@katao_change_node') ?>
			<fieldset>
				<div class="search-form">
					<?php echo label_for('node_id', 'Noeud') ?>
					<?php echo select_tag('node_id', options_for_select(KataoNodePeer::getAllArray(), $sf_user->getActiveNode()?$sf_user->getActiveNode()->getId():false, array('include_custom' => 'LE RESEAU'))) ?>
					<?php echo submit_tag('', array('class' => 'btn-search', 'title' => 'Changer de noeud')) ?>
				</div>
			</fieldset>
		</form>
	</div>
	<div class="bottom"></div>
</div>
<?php endif ?>

<div class="search">
	<div class="top"></div>
	<div class="center">
		<?php echo form_tag('@katao_search') ?>
			<fieldset>
				<div class="search-form">
					<?php echo label_for('txt-search', 'Rechercher') ?>
					<?php echo input_tag('search', '', array('id' => 'txt-search')) ?>
					<?php echo submit_tag('', array('class' => 'btn-search', 'title' => 'Rechercher')) ?>
				</div>
			</fieldset>
		</form>
	</div>
	<div class="bottom"></div>
</div>

<?php if ('' != $katao_product_category_url = $sf_request->getParameter('category') || ('katao' == $sf_request->getParameter('module') && in_array($sf_request->getParameter('action'), array('suppliers', 'supplierDetails', 'supplierProducts')))): ?>
<div style="margin-bottom:20px;font-size:12pt;font-weight:normal;line-height:16px;text-align:center">
	<?php if ($sf_user->getDisplayOnlyActiveProducts()): ?>
		<?php echo link_to('Voir tous les produits', '@katao_change_display_only_active_products_false') ?>
	<?php else: ?>
		<?php echo link_to('Voir uniquement les produits en commande', '@katao_change_display_only_active_products_true') ?>
	<?php endif ?>
</div>
<?php endif ?>