Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/admin/job.php
<script type="text/javascript">
	function remove(id) {
		jConfirm('Czy na pewno chcesz usunać ?', 'Potwierdzenie', function(r) {
		if( r == true ) {
			$.ajax({
					type:"GET",
					url:"/admin/job/delete/"+id,
					cache:false,
					success:function(rsponse)
					{
						
							jAlert('Oferta została usunięta!', 'Podsumowanie', function() {
								location.href = '/admin/job';
							});
										
						
					}
					});
			}
		});
	}		
</script>
	<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;?>
			<a href="/profile/<?php echo aurora::prevProfile($user->id); ?>" class="prev-profile"><img src="./static/images/medialni_451.jpg" alt=""/></a>
			<?php foreach( ORM::Factory('advertisement')->where('label','=','TOP')->order_by(DB::expr('RAND()'))->limit(1)->find_all() as $advert ) : ?>
						
				<a target="_blank" class="promo2" href="<?php echo $advert->link; ?>"><img class="button_top" src="/uploads/advertisement/<?php echo $advert->thumb; ?>" alt="<?php echo $advert->title; ?>" title="<?php echo $advert->title; ?>"/></a>
		
			<?php endforeach; ?>
			<a href="/profile/<?php echo aurora::nextProfile($user->id); ?>" class="next-profile"><img src="./static/images/medialni_450.jpg" alt=""/></a>
			
			<div class="line" style="width: 98%"></div>
			
			<div id="content">

				<?php echo aurora::partial('admin_sider', $user); ?>
				
				<div class="main">
				
					<img src="./static/images/medialni_313.jpg" class="ico_main" alt=""/><h1>Praca</h1>
				
					<div class="main_content">
					
					<h2>Wszystkie oferty w portalu</h2>
					<?php $n=0; foreach( $articles as $article ) : $n++; ?>
					<?php 
						if( $article->status==0 ) $title = "<em>".$article->title."</em>"; else $title = "<strong>".$article->title."</strong>"; 
						
					?>
					<table>
					
						<tr>
							<td class="title" width="220"><a href="/praca/<?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); ?>] komentarzy   [<?php echo aurora::getSelectionCount( $article->id, 'article'); ?>] Mega zaznaczenia</td>
							<td>
							
								<a href="/admin/job/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>
							
							</td>
						</tr>
						
					</table>
					<img src="./static/images/medialni_341.jpg" alt=""/>
					<?php endforeach; ?>
					
					
					<a href="/admin/job/edit" class="add"><img src="./static/images/medialni_800.jpg" alt=""/></a>
						
					</div>
				
				</div>
				
				

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