<div id="header">
	<div class="header-top"></div>
	<div class="header-center">
		<div class="header-add">
			<div class="header-add01">
				<?php $root = $ContentTree->getRoot() ?>
				<strong class="logo"><a href="<?php echo $root->getUrl() ?>" title="<?php echo $root->getTitle() ?>"><?php echo $root->getTitle() ?></a></strong>
			<?php if ('sol-violette' != sfConfig::get('sf_environment')): ?>
				<div class="header-box">
					<div class="center">
						<div>
						<?php if (null != $katao_node = $sf_user->getActiveNode()): ?>
							<p>Depuis le <span class="date01"><?php echo Utils::getKataoStartDate($katao_node->getId()) ?></span>, les <span class="date01"><?php echo Utils::getKataoMembersCount($katao_node->getId()) ?></span> adhérents du noeud ont réalisé </p>
							<p><span class="date01"><?php echo Utils::getKataoTransactionsCount($katao_node->getId()) ?></span> transactions pour un montant total de <span class="date01"><?php echo Utils::getKataoTransactionsSum($katao_node->getId()) ?></span></p>
						<?php else: ?>
							<p>Depuis le <span class="date01"><?php echo Utils::getKataoStartDate() ?></span>, les <span class="date01"><?php echo Utils::getKataoMembersCount() ?></span> adhérents du réseau ont réalisé </p>
							<p><span class="date01"><?php echo Utils::getKataoTransactionsCount() ?></span> transactions pour un montant total de <span class="date01"><?php echo Utils::getKataoTransactionsSum() ?></span></p>
						<?php endif ?>
						</div>
					</div>
					<div class="bottom"></div>
				</div>
			<?php endif ?>
			</div>
		</div>
	</div>
	<div class="header-bottom">
		<ul id="nav">
		<?php foreach ($ContentTree->getRoot()->getVisibleChildren() as/*(ContentTreeNode)*/ $topMenuNode): ?>
			<li class="<?php echo $topMenuNode->isActive()?'active':'' ?>"><a href="<?php echo $topMenuNode->getUrl() ?>"><?php echo $topMenuNode->getMenuTitle() ?></a></li>
		<?php endforeach ?>
		<?php foreach(KataoProductCategoryPeer::getAll() as $katao_product_category_id => $katao_product_category): ?>
			<li class="<?php echo ($katao_product_category['url'] == $sf_request->getParameter('category'))?'active':'' ?>"><?php echo link_to($katao_product_category['name'], '@katao_boutique_rayon?category=' . $katao_product_category['url']) ?></li>
		<?php endforeach ?>
			<li class="<?php echo ('katao' == $sf_request->getParameter('module') && in_array($sf_request->getParameter('action'), array('suppliers', 'supplierDetails', 'supplierProducts')))?'active':'' ?>"><?php echo link_to('Les partenaires', '@katao_fournisseurs') ?></li>
		<?php if ($sf_user->isAuthenticated()): ?>
			<li class="<?php echo ('katao' == $sf_request->getParameter('module') && in_array($sf_request->getParameter('action'), array('adjustments')))?'active':'' ?>"><?php echo link_to('Ajustements', '@katao_ajustements') ?></li>
		<?php endif ?>
		</ul>
	</div>
</div>