<?xml version="1.0" encoding="utf-8"?>
<FictionBook xmlns="http://www.gribuser.ru/xml/fictionbook/2.0" xmlns:l="http://www.w3.org/1999/xlink">
<stylesheet type="text/css">
.body{font-family : Verdana, Geneva, Arial, Helvetica, sans-serif;
}
.p{margin:0.5em 0 0 0.3em; padding:0.2em; text-align:justify;
}
</stylesheet>
<description>
<title-info>
<genre>sf_history</genre>
<author>
<first-name>The author's name</first-name>
<last-name>The author's last name</last-name>
</author>
<book-title>Book name</book-title>
<annotation></annotation>
<date>Sana</date>
<lang>ru</lang>
</title-info>
<document-info>
<author><nickname></nickname>
</author>
<program-used>Lib converter jcms</program-used>
<date value=""></date>
<src-url>http://johncms.com</src-url>
<id></id>
<version>1.0</version>
<history><p>book</p></history>
</document-info>
</description>
<body>
<title><p>JohnCMS uchun Galleryadagi rasmlarni bosh sahifaga chiqarish</p>
</title>
<section><p>echo'<div class="phdr"><b>Последние картинки из Галереи</b></div><div class="list1">';</p>
<p>$limit_gallery='5';// количество </p>
<p>$req_gallery= mysql_query("SELECT `id`, `text`, `name` FROM `gallery` WHERE `type` = 'ft' ORDER BY `time` DESC LIMIT $limit_gallery ");</p>
<p>while($res_gallery= mysql_fetch_array($req_gallery)){</p>
<p>echo'<a href="/gallery/index.php?id='.$res_gallery['id'].'" title="'.$res_gallery['text'].'"><img src="/gallery/foto/'.$res_gallery['name'].'" height="100px" width="100px"/></a> ';</p>
<p>}</p>
<p>echo'</div>';</p>
</section>
</body>
</FictionBook>