Размер файла: 1.7Kb
<?
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` = '".$id."'" ));
$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>';
}
$pview = '<div class="posts_gl">';
$pview .= '<table cellspacing="0" callpadding="0" width="100%"><tr>';
$pview .= '<td style="font-size:14px;color: #61a117;" class="name" colspan="10">';
$pview .= '<b>'.$view['name'].'</b>';
$pview .= '<span class="time">'.$userprof.'</span>';
$pview .= '<div class="details">';
$pview .= '<span><img src="/engine/template/icons/author.png">';
$pview .= ' Автор: ';
$pview .= '<a href="/modules/profile.php?id='.$id_nick.'">'.$profile['name'].' '.$profile['family'].'</a>';
$pview .= '</span>';
$pview .= '<span><img src="/engine/template/icons/date.png"> '.date::make_date($view['time']).'</span>';
$pview .= '</div>';
$pview .= '</td></tr>';
$pview .= '<tr><td class="content" colspan="10">'. engine::input_text($view['text']) .'</td></tr>';
$pview .= '</table></div>';
//Вывод данных
echo $pview;
echo engine::home(array('Назад','index.php'));
?>