function show_comment($comment, $lvl = 0) { $style = 'style="margin-left: ' . $lvl * 20 . 'px"'; ?> <div class="comment" id="comment-<?php echo $comment['id']; ?> " <?php echo $style; ?> > <a name="com<?php echo $comment['id']; ?> "></a> <?php echo avatar($comment); ?> <div class="author">Написал: <a href="<?php echo site_url('user/profile/' . $comment['login']); ?> "><?php echo $comment['login']; ?> </a> <?php echo human_read_date($comment['added_at']); ?> </div> <p><?php echo $comment['deleted'] == 1 ? '[комментарий был удалён администратором]' : $comment['text']; ?> </p> <?php if (user_is('admin')) { ?> <a href="#" class="delcomment ctrl" id="destroy-<?php echo $comment['id']; ?> "><span class="ui-icon ui-icon-trash"></span> удал.</a><?php } ?> <a href="#comment_form" id="reply-<?php echo $comment['id']; ?> " class="reply">ответить</a> </div> <?php }
<table class="table table-bordered table-hover profile" style="width:70%"> <tr> <td>Логин:</td><td><strong><?php echo form_prep($user['login']); ?> </strong> <?php if ($user['banned'] == 1) { ?> <strong class="red">(ЗАБАНЕН)</strong><?php } ?> </td> </tr> <tr> <td>Зарегистрирован:</td><td><?php echo human_read_date($user['registered_at']); ?> </td> </tr> <?php if (user_signed_in()) { if (is_current_user($user) or user_is('admin')) { ?> <tr> <td>E-mail:</td><td><input type="text" name="email" class="string size90p" value="<?php echo form_prep($user['email']); ?> "/></td> </tr> <tr> <td>Сменить пароль:</td>