вот неправильный код...
coel 23.09.2008 13:47
@load[]
^MAIN:dbconnect{
$messages[^table::sql{select id, author, email, date, body from gbook}]
}
@show_messages[]
$ttt[^table::sql{select id from gbook}]
^if($ttt){
^void:sql{delete from gbook where id='$ttt.id'}
}{ Не выбрано.
}
^if($messages){
^messages.menu{
<table width="100%" align="center">
<tr>
<td align="left" width="80%"><b>$messages.author
^if(def $messages.email){
$messages.email
}{
}</b>
</td>
<td align="right" width="10%">$messages.date</td>
<td align="center" width="10%">
<form method="POST">
<input type="checkbox" name="Delete" value="$ttt.id" />* $ttt.id
<input type="submit" value="ok" name="del" />
</form>
</td>
</tr>
<tr>
<td colspan="3">$messages.body</td>
</tr>
</table>
}[<hr />]
}{
Гостевая книга пуста.
}