} echo '</ul> </div>'; } } echo '<a href="?route=suggestions.php&action=list" class="btn">' . $LANG['suggestions_view'] . '</a> </div>'; if (!empty($LANG['suggestions_view_subtitle'])) { echo '<span>' . $LANG['suggestions_view_subtitle'] . '</span>'; } echo '</div>'; if ($sugestion_exists) { // Set automaticaly read this suggestion actions::action_suggestions('read', $_GET['id']); $_SESSION['suggestions_csrf'] = $csrf; $info = admin_query::suggestion_infos($_GET['id']); echo '<div class="form-table"> <form action="#" method="POST"> <div class="row"><span>' . $LANG['form_name'] . ':</span><div>' . $info->name . '</div></div> <div class="row"><span>' . $LANG['form_store_url'] . ':</span><div><a href="' . $info->url . '">' . $info->url . '</a></div></div> <div class="row"><span>' . $LANG['form_description'] . ':</span><div>' . $info->description . '</div></div> <div class="row"><span>' . $LANG['form_message_for_us'] . ':</span><div>' . $info->message . '</div></div>'; if ($info->user == 0) { $addby = '-'; } else { $info_user = \query\main::user_infos($info->user); $addby = empty($info_user) ? '-' : (ab_to(array('users' => 'edit')) ? '<a href="?route=users.php&action=edit&id=' . $info_user->ID . '">' . $info_user->name . '</a>' : $info_user->name); } echo '<div class="row"><span>' . $LANG['added_by'] . ':</span><div>' . $addby . '</div></div>