<h1>Info</h1> <div class="static-text"> <?php echo $content['text']; ?> </div> <div> Последнее обноаление: <?php echo Helper_Time::relativeTime($content['updated']); ?> </div>
</tr> <?php foreach ($data as $row) { echo '<tr ' . $statusClass[$row['id']] . '>'; foreach ($row as $key => $val) { echo "<td>"; if ($key == 'img') { echo Helper_Image::render($val, Helper_Image::ADMINPREVIEW); } elseif ($key == 'title' && isset($prefixUrl)) { echo '<a href="' . Helper_Html::link(array('controller' => 'admin', 'action' => $prefixUrl, 'param1' => $row['id'])) . '" title="' . $prefixUrlTitle . '"> ' . $val . '</a>'; } elseif ($key == 'created' || $key == 'updated') { echo Helper_Time::relativeTime($val); } elseif ($key == 'text') { echo htmlspecialchars($val); } else { echo $val; } echo "</td>"; } echo '<td><a href="' . Helper_Html::link(array('controller' => 'admin', 'action' => 'edit', 'param1' => $prefix, 'param2' => $row['id'])) . '">edit</a>'; echo '<br/>'; echo '<a href="' . Helper_Html::link(array('controller' => 'admin', 'action' => 'delete', 'param1' => $prefix, 'param2' => $row['id'])) . '" onclick="return confirm(\'Удалять?\');" >delete</a></td>'; echo '</tr>'; } ?>