Current File : /home/users/barii/public_html/finansenl.com.pl/wodki/application/views/infosite/blog.php |
<script>
function showup() {
document.getElementById("create_post").style.display = "block";
}
</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;?>
<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><?php echo __t('Blog'); ?></h1>
<!--
<form action="/account/blog" method="post" enctype="multipart/form-data">
<fieldset>
<input type="text" style="width: 420px; border-right: none;" name="register_description" value="O czym chcesz dziś napisać ?" onclick="this.value=''"/>
<a href="#" onclick="showup(); return false;" class="add-photo-file"><img src="./static/images/medialni_469.jpg" alt=""/></a>
<input type="submit" value="Publikuj" />
</fieldset>
<div id="create_post" style="display: none;">
<span class="col1" style="width: 94%; float: left; margin-left: 330px;">
<label for="account">Wybierz zdjęcie:</label>
<input type="file" name="obraz" style="width: 100%" /><br clear="both"/>
</span>
</div>
</form>
//-->
<div class="main_content">
<div id="selection_answer"></div>
<?php if( $blogs->count() == 0 ) : ?>
<p><?php echo __t('Użytkownik nie prowadzi jeszcze bloga...'); ?></p>
<?php else: ?>
<?php foreach( $blogs as $blog ) : ?>
<div class="blog">
<h2><a href="/profile/blog/<?php echo $blog->user_id; ?>/<?php echo $blog->id; ?>" style="color: inherit;"><?php echo $blog->subject; ?></a></h2>
<em><?php echo date('H:i', $blog->date); ?> | <?php echo date('d m Y', $blog->date); ?></em>
<p>
<?php // echo aurora::putShortDescription( $blog->description ); ?>
<br clear="both"/>
<!-- <img src="/uploads/blog/thumb_<?php echo $blog->thumb; ?>" alt=""/> //-->
</p>
<!--
<div class="blog-answers">
<span style="height: 27px;">
<p style="width: 97%; margin-top: 5px; ">
<?php if( Auth::instance()->logged_in() ) : ?>
<a href="#" onclick="selection('<?php echo $user->id; ?>','<?php echo $blog->id; ?>','blog'); return false;"><img src="./static/images/medialni_345.jpg" alt=""/> [<em style="float: none;" class="selection<?php echo $blog->id; ?>"><?php echo aurora::getSelectionCount( $blog->id, 'blog'); ?></em>] 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: 30px;"><img src="./static/images/medialni_347.jpg" alt=""/> Dodaj komentarz </a>
<?php endif; ?>
<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>
<a href="/profile/blog/<?php echo $blog->user_id; ?>/<?php echo $blog->id; ?>" class="button" style="margin: 0px;">Czytaj więcej »»</a>
<div class="show_comments_<?php echo $blog->id; ?>" style="display: none">
<script> $(".show_comments_<?php echo $blog->id; ?>").toggle("slow"); </script>
<?php foreach( ORM::Factory('blog_comment')->where('blog_id','=',$blog->id)->find_all() as $comment ): ?>
<span>
<a href="/profile/<?php echo $comment->user->id; ?>"><img class="avatar<?php if( aurora::isMember($comment->user->id) ) : echo '_highlight'; endif; ?>" src="/uploads/user/images/thumb_<?php echo $comment->user->logo; ?>" alt=""/></a>
<p>
<a href="/profile/<?php echo $comment->user->id; ?>" style="color: #000;"><strong <?php if( aurora::isMember($comment->user->id) ) : echo 'class="highlight"'; endif; ?>><?php echo $comment->user->firstname; ?> <?php echo $comment->user->lastname; ?></strong></a>: <?php echo $comment->description; ?><br/>
<em><?php echo date('d m Y H:i', $comment->date); ?> | </em> <?php if( Auth::instance()->logged_in()) : ?><a href="#" onclick="selection('<?php echo $user->id; ?>','<?php echo $comment->id; ?>','blog_comment'); return false;"> <strong>Mega</strong> </a><?php endif; ?> <img src="./static/images/medialni_345.jpg" alt=""/> <a href="#" onclick="return false;">[<em style="float: none;" class="selection<?php echo $comment->id; ?>"><?php echo aurora::getSelectionCount( $comment->id, 'blog_comment'); ?></em>] osoby</a>
</p>
</span>
<?php endforeach; ?>
</div>
</div>
//-->
</div>
<br style="clear: both;"/>
<?php endforeach; ?>
<?php endif; ?>
</div>
</div>
<?php echo aurora::partial('sider'); ?>
</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>