| Новости | FAQ | Авторы | Документация | В действии | Библиотека |
| Инструменты | Полезные ссылки | Хостинги | Скачать | Примеры | Форум |
Nick 11.01.2005 16:25
Выдает эту ошибку:driver failed to initialize client library './lib/libmysqlclient.so', can't open the module@greeting[]
Фотоальбом.
@body_left[]
^connect[$connect_string]{
$foto[^table::sql{select
id, name, info, body
from
images
}[$.limit(5)]]
^if($foto){
^foto.menu{
<table width="90%" border="0" cellpadding="10">
<tr>
<td><a href="/foto/?id=$foto.id"><img src="/foto/foto/$foto.name" border="0" width="160" height="120"></a></td>
</tr>
</table>
}<br>
}{
Фотографий нет
}
}
@body_center[]
^connect[$connect_string]{
$foto[^table::sql{select
id, name, info, body
from
images
WHERE id = '^form:id.int(0)'
}]
^if($foto){
^foto.menu{
<table width="90%" border="0" cellpadding="10">
<tr>
<td align="center"><img src="/foto/foto_big/$foto.name" border="0" width="460" height="350"></td>
</tr>
</table>
<br>
<table width="70%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#8080FF">
<tr bgcolor="#EBEBEB">
<td width="100%" height="20" align="center" valign="top"><b>^untaint{$foto.info}</b></td>
</tr>
<tr>
<td bgcolor="#ffffff" width="100%" height="150" valign="top" align="justify">^untaint{$foto.body}</td>
</tr>
</table>
}[<br>]
}{
Выберите фотографию и нажмите на неё
}
}
@body_right[]
^connect[$connect_string]{
$foto[^table::sql{select
id, name, info, body
from
images }[$.limit(5) $.offset(5)]]
^if($foto){
^foto.menu{
<table width="90%" border="0" cellpadding="10">
<tr>
<td><a href="/foto/?id=$foto.id"><img src="/foto/foto/$foto.name" border="0" width="160" height="120"></a></td>
</tr>
</table>
}<br>
}{
Фотографий нет
}
}