Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/infosite/article.php
	<div id="page">
		<div id="container">
		<!--  start message-blue -->
			<?php if (isset($message_ok)):?>
			<div id="message-blue">
					<table border="0" width="100%" cellpadding="0" cellspacing="0">
						<tr>
							<td class="blue-left"><?php echo $message_ok; ?>  </td>
							<td class="blue-right"><a class="close-blue"><?php echo HTML::image('static/images/table/icon_close_blue.gif');?></a></td>
						</tr>
					</table>
				</div>
			<!--  end message-blue -->
			<?php endif;?>	
			<!--  start message-red -->
			<?php if (isset($message)):?>
			<div id="message-red">
				<table border="0" width="100%" cellpadding="0" cellspacing="0">
					<tr>
						<td class="red-left">
							<?php echo $message;?>
						</td>
						<td class="red-right"><a class="close-red"><?php echo HTML::image('static_back/images/table/icon_close_red.gif');?></a></td>
					</tr>
				</table>
			</div>
			<?php endif;?>
		
			<div class="line" style="width: 98%"></div>
			<div id="content">

				
				
				<div class="main">
					
					<img src="./static/images/medialni_313.jpg" class="ico_main" alt=""/><h1><?php echo __t('Artykuły'); ?></h1>
					
					<div class="main_content">
					
					
					<h2><?php echo __t('Wszystkie artykuły'); ?></h2>
					<?php $n=0; foreach( $articles as $article ) : $n++; ?>
					<?php 
						if( $article->status==0 ) $title = "".$article->title.""; else $title = "<strong>".$article->title."</strong>"; 
						
					?>
					<table>
					
						<tr>
							<td class="title" width="220"><a href="/profile/article/<?php echo $article->user->id; ?>/<?php echo $article->id; ?>" style="color: inherit;"><?php echo $title; ?></a></td><td width="300">[<?php echo Model_Article_Comment::getCount($article->id); ?>] <?php echo __t('komentarzy'); ?>   [<?php echo aurora::getSelectionCount( $article->id, 'article'); ?>] <?php echo __t('Polecam'); ?></td>
							<td>
							<?php if( Auth::instance()->logged_in() ) : ?>
								<?php if( $article->user->id == Auth::instance()->get_user()->id ) : ?>
									<a href="/account/article/edit/<?php echo $article->id; ?>"><img src="./static/images/edit.png" alt=""/></a>
									<a href="#" onclick="remove('<?php echo $article->id; ?>'); return false;" class="confirm_button"><img src="./static/images/medialni_402.jpg" alt=""/></a>
								<?php endif; ?>
							<?php endif; ?>
							</td>
						</tr>
						
					</table>
					<img src="./static/images/medialni_341.jpg" alt=""/>
					<?php endforeach; ?>

					<a href="/account/article/edit" class="add"><?php echo __t('Dodaj artykuł'); ?></a>
						
					</div>
				
				</div>
				
				<?php echo aurora::partial('sider'); ?>

			</div>
			
		</div>
	</div>