Размер файла: 1.94Kb
<?php
if( ! defined( 'SHCMS_ENGINE' ) ) {
die('SHCMS Engine No access');
}
$id = intval($_GET['id']);
$view = $db->get_array($db->query( "SELECT * FROM `blogs` WHERE `id` = '".$id."'" ));
$profile = $db->get_array($db->query( "SELECT * FROM `users` WHERE `id` = '".$view['id_user']."'" ));
$views = $db->get_array($db->query("SELECT * FROM `blogs_cat` WHERE `id` = '{$view['id_cat']}'"));
$id_nick = $user->users($view['id_user'],array('id'),false);
if($view['id_user'] == $id_user AND $userq['group'] == 15)
{
$userprof = '<a href="?do=editb&id='.$view['id'].'"><img src="/engine/template/icons/edit.png"></a> ';
$userprof .= '<a href="?do=deleteb&id='.$view['id'].'"><img src="/engine/template/icons/delete.png"></a>';
}
echo '<div class="mainpost"><b style="font-size:13px;">'.$view['name'].'</b>'.$userprof.'';
echo '<span class="time">'.date::make_date($view['time']).'</span><br/>';
echo '<div class="details">';
echo '<span><img src="/engine/template/icons/folder.png"> ';
echo '<a style="color:#1E90FF;" href="category.php?id='.$views['id'].'">'.$views['name'].'</a>';
echo '</span>';
echo '<span><img src="/engine/template/icons/author.png"> ';
echo '<a style="color:#1E90FF;" href="/modules/profile.php?id='.$id_nick.'">'.$profile['name'].' '.$profile['family'].'</a>';
echo '</span>';
echo '<span><img src="/engine/template/icons/eye.png"> ';
echo '<font color="#778899">'.engine::number($news['view']).'</font></span>';
echo '</div>';
echo '<div class="lighter row2">'.engine::input_text($view['text']).'</div>';
echo '<div class="row" style="height: 5px;line-height: 100%;padding: 10px 20px;">';
echo '</div></div>';
echo engine::home(array('Назад','index.php'));