Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/admin/blog_item.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;?>
<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('profil_sider', $user); ?>
<div class="main">
<img src="./static/images/medialni_455.jpg" class="ico_main" alt=""/><h1>Blog</h1>
<form action="">
<fieldset>
<input type="text" style="width: 390px; border-right: none;" name="keyword" value="O czym chcesz dziś napisać ?" onclick="this.value=''"/>
<a href="#" class="add-photo-file"><img src="images/medialni_469.jpg" alt=""/></a>
<input type="submit" id="showup" value="Publikuj" />
</fieldset>
</form>
<div class="main_content">
<div id="create_post" style="display: none;">
<form action="/profile/group_post/<?php echo $user->id; ?>" method="post">
<fieldset class="register">
<span class="col1" style="margin-left: 20px;">
<label for="account">Temat:</label>
<input type="text" name="register_subject" /><br clear="both"/>
<label for="account">Treść:</label>
<textarea class="article" type="text" name="register_description"></textarea><br clear="both"/>
<br clear="both"/><br clear="both"/>
<input type="submit" value="Napisz"/>
</span>
<br clear="both"/>
</fieldset>
</form>
</div>
<?php $blog = $blogs; ?>
<div class="blog">
<h2><?php echo $blog->subject; ?></h2>
<em><?php echo date('H:i', $blog->date); ?> | <?php echo date('d m Y', $blog->date); ?></em>
<p>
<?php echo $blog->description; ?>
</p>
<div class="blog-answers">
<span style="height: 27px; width: 573px">
<p style="width: 97%; margin-top: 5px; ">
<a href="#"><img src="images/medialni_345.jpg" alt=""/> [15] Mega zaznaczeń </a>
<a href="http://<?php echo Kohana::config('site.domain'); ?>/profile/blog_comment_add/<?php echo $user->id; ?>/<?php echo $blog->id; ?>" class="example7" style="margin-left: 90px;"><img src="./static/images/medialni_347.jpg" alt=""/> Dodaj komentarz </a>
<a href="javascript: show_comments('<?php echo $blog->id; ?>');" style="float: right; "><img src="./static/images/medialni_349.jpg" alt=""/> [<?php echo Model_Blog_Comment::getCount($blog->id); ?>] Komentarzy » </a>
</p>
</span>
<div class="show_comments_<?php echo $blog->id; ?>" style="display: none">
<?php foreach( ORM::Factory('blog_comment')->where('blog_id','=',$blog->id)->find_all() as $comment ): ?>
<span style="width: 573px;">
<img class="avatar" src="/uploads/user/<?php echo $comment->user->logo; ?>" alt=""/>
<p>
<strong><?php echo $comment->user->firstname; ?></strong>: <?php echo $comment->description; ?><br/>
<em><?php echo date('d m Y H:i', $comment->date); ?> | </em> <a href="/profile/<?php echo $comment->user->id; ?>"> <strong><?php echo $comment->user->firstname; ?> <?php echo $comment->user->lastname; ?></strong> </a> <img src="images/medialni_345.jpg" alt=""/> <a href="#">[<?php echo Model_Blog_Comment::getCount($blog->id); ?>] osoby</a>
</p>
</span>
<?php endforeach; ?>
</div>
</div>
</div>
<img src="./static/images/medialni_341.jpg" alt=""/>
</div>
</div>
</div>
</div>
</div>
<script>
<?php if( !empty( $toogle ) ) echo $toogle; ?>
<?php if( !empty( $toogle2 ) ) echo $toogle2; ?>
$("#showup").click(function () {
$("#create_post").toggle("slow");
});
function show_comments(id) {
$(".show_comments_"+id).toggle("slow");
}
</script>