parser

Написать ответ на текущее сообщение

 

 
   команды управления поиском

получи

vasyan 19.06.2003 09:53

@CLASS
class_image

@create[]

@show_3[nmbr;align]
^dbconnect{
$kind_table[^table::sql{SELECT name, text
FROM image_kind
WHERE nmbr=$nmbr}]
}

<TABLE CLASS="globalimage" BORDER="0" CELLSPACING="1" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<TABLE CLASS="image" BORDER="0" CELLSPACING="1" CELLPADDING="0" WIDTH="100%">
<TH CLASS="head" ID="image">лБТФЙОЩ</TH>
<TR>
<TD CLASS="image" ID="td" VALIGN="top" ALIGN="left">
&nbsp^;<SPAN CLASS="bold" ALIGN="left">$kind_table.name</SPAN>
# <DIV CLASS="text">&nbsp^;$kind_table.text</DIV><BR>
<DIV ALIGN="center">
<DIV CLASS="text">&nbsp^;</DIV>
^dbconnect{
$group_table[^table::sql{SELECT nmbr, name, text
FROM image_group
WHERE kind_nmbr= $nmbr
ORDER BY name}]
}
^if(def $group_table){

^if(^group_table.count[] >1){
^if(def $form:image_group ){

^dbconnect{
$image_table[^table::sql{SELECT nmbr,name,text,image_big,image_small,data,size,style,info
FROM image
WHERE image_group= $t[$form:image_group] $t[^t.double(0)] $t
ORDER BY nmbr DESC
}]
}
<DIV CLASS="back">
&lt^;&lt^; <A HREF="${MAIN:web_url}${MAIN:url.0}">чуе бчфптщ</A>&nbsp^;
</DIV>
<BR>

^group_table.menu{

^if( $t == $group_table.nmbr){
<DIV CLASS="text"><span CLASS="bold">бЧФПТ:</SPAN> $group_table.name &nbsp^;</DIV>
$lim(5)
#нЕОСФШ ЕЭЕ Ч ПДОПН НЕУФЕ Ч ЬФПН ЖБКМЕ!
$count(^image_table.count[])

^if(def $form:image_str){
$str[$form:image_str] $str(^str.int(1))}{$str(1)}
^if($str<=0){$str(1)}
^if($str > ^math:ceiling(^eval($count/$lim))){$str(1)}
$off(^eval($lim*($str-1)))
^if($count>$lim){
<DIV ALIGN="right">
<SPAN CLASS="imagetableleft"> уФТБОЙГЩ:
^for[i](1;^math:ceiling(^eval($count/$lim))){
<SPAN CLASS="imagetableright">
^if(^eval($str) == $i ){&nbsp^;$i&nbsp^;}{
<A CLASS="imagelink" HREF="?image_group=$form:image_group&image_str=$i">&nbsp^;$i&nbsp^;</A>}
</SPAN>
}
</SPAN>
</DIV>
}
^for[cur](^eval($off);^eval($off+$lim-1)){
^image_table.offset[set]($cur)
^if($cur<$count){
<TABLE CLASS="globalimage" BORDER="0" CELLSPACING="1" CELLPADDING="0" WIDTH="98%">
<TR CLASS="imagetable">
<TD VALIGN="top">
<TABLE CLASS="image" cellSpacing="1" cellPadding="0" width="100%"
border="0
">
<TR>
<TD CLASS="head" ID="image" colspan="3" align="center">&nbsp^;$image_table.name
</TD>
</TR>
<TR>
<TD class="imagetable" vAlign="middle" ALIGN="center" WIDTH="144">
<A href="/images/image/$image_table.nmbr/big.jpg" target="blank"><IMG src="/images/image/$image_table.nmbr/small.jpg" BORDER="0" ALT="бЧФПТ: $group_table.name - $image_table.name"> </a>
</TD>
<TD colSpan="2" class="imagetable" id="text" VALIGN="top">
<TABLE cellspacing="1" cellpadding="0" border="0">
<TR>
<TD class="imagetableleft">фЕИОЙЛБ:
</TD>
<TD class="imagetableright">&nbsp^;$image_table.style
</TD>
</TR>
<TR>
<TD class="imagetableleft">тБЪНЕТЩ:
</TD>
<TD class="imagetableright">&nbsp^;$image_table.size
</TD>
</TR>
<TR>
<TD class="imagetableleft">дБФБ:
</TD>
<TD class="imagetableright">&nbsp^;$image_table.data
</TD>
</TR>
$pt[$image_table.info]
^if(^pt.match[ ][g]{} eq ""){}{
<TR>
<TD class="imagetableleft">гЕОБ:
</TD>
<TD class="imagetableright">&nbsp^;$image_table.info ТХВ. &nbsp^; <A HREF="mailto:gallery@rubtsovsk.ru?subject='ъБЛБЪ ЛБТФЙОЩ'">ъБЛБЪБФШ</A>
</TD>
</TR>
}
<TR>
<TD colspan="3" vAlign="top" class="text">
&nbsp^;$image_table.text
</TD>
</TR>
</TABLE>
</TD>
</TABLE>
</TD>
</TR>
</TABLE>

<BR>
}
}
^if($count> $lim){
<DIV ALIGN="right">
<SPAN CLASS="imagetableleft"> уФТБОЙГЩ:
^for[i](1;^math:ceiling(^eval($count/$lim))){
<SPAN CLASS="imagetableright">
^if(^eval($str) == $i ){&nbsp^;$i&nbsp^;}{
<A CLASS="imagelink" HREF="?image_group=$form:image_group&image_str=$i">&nbsp^;$i&nbsp^;</A>}
</SPAN>
}
</SPAN>
</DIV>
}
}
}
}{ <TABLE CLASS="globalimage" BORDER="0" CELLSPACING="1" CELLPADDING="0" WIDTH="100%">

^group_table.menu{
<TR CLASS="image" onMouseOver="this.style.backgroundColor='#EFEFEF'" onMouseOut="this.style.backgroundColor='#FFFFFF'">
<TD CLASS="text">&nbsp^;
<A CLASS="imagelink" HREF="?image_group=$group_table.nmbr"><SPAN>&nbsp^;&nbsp^;</SPAN>$group_table.name </A>
<DIV> $group_table.text</DIV>
</TD>
<TD CLASS="bold" WIDTH="40" VALIGN="middle" ALIGN="center" >
<A CLASS="imagelink" HREF="?image_group=$group_table.nmbr"> &nbsp^;^dbconnect{^string:sql{SELECT count(nmbr) FROM image WHERE image_group=$group_table.nmbr}}</A>
</TD>
</TR>
}
</TABLE>
}
}{

^dbconnect{
$group_table[^table::sql{SELECT nmbr,name
FROM image_group
WHERE kind_nmbr=$nmbr }]

<DIV CLASS="text"><span CLASS="bold">бЧФПТ:</SPAN> $group_table.name &nbsp^;</DIV>
$image_table[^table::sql{SELECT nmbr,name,text,image_big,image_small,style,size,data,info
FROM image
WHERE image_group = $group_table.nmbr
ORDER BY nmbr DESC}]

}
$lim(5)

#нЕОСФШ ЕЭЕ Ч ПДОПН НЕУФЕ Ч ЬФПН ЖБКМЕ!
$count(^image_table.count[])
^if(def $form:image_str){
$str[$form:image_str] $str(^str.int(1))}{$str(1)}
^if($str<=0){$str(1)}
^if($str > ^math:ceiling(^eval($count/$lim))){$str(1)}
$off(^eval($lim*($str-1)))
^if($count>$lim){
<DIV ALIGN="right">
<SPAN CLASS="imagetableleft"> уФТБОЙГЩ:
^for[i](1;^math:ceiling(^eval($count/$lim))){
<SPAN CLASS="imagetableright">
^if(^eval($str) == $i ){&nbsp^;$i&nbsp^; }{
<A CLASS="imagelink" HREF="?image_str=$i"> &nbsp^; $i &nbsp^;</A>}
</SPAN>
}
</SPAN>
</DIV>
}
^for[cur](^eval($off);^eval($off+$lim-1)){
^image_table.offset[set]($cur)
^if($cur<$count){
<TABLE CLASS="globalimage" BORDER="0" CELLSPACING="1" CELLPADDING="0" WIDTH="98%">
<TR CLASS="imagetable">
<TD VALIGN="top">
<TABLE CLASS="image" cellSpacing="1" cellPadding="0" width="100%"
border="0
">
<TR>
<TD CLASS="head" ID="image" colspan="3" align="center">&nbsp^;$image_table.name
</TD>
</TR>
<TR>
<TD class="imagetable" vAlign="middle" ALIGN="center" WIDTH="144">
<A href="/images/image/$image_table.nmbr/big.jpg" target="blank" ><IMG src="/images/image/$image_table.nmbr/small.jpg" BORDER="0" ALT="бЧФПТ: $group_table.name - $image_table.name"> </a>
</TD>
<TD colSpan="2" class="imagetable" id="text" VALIGN="top">
<TABLE cellspacing="1" cellpadding="0" border="0">
<TR>
<TD class="imagetableleft">фЕИОЙЛБ:
</TD>
<TD class="imagetableright">&nbsp^;$image_table.style
</TD>
</TR>
<TR>
<TD class="imagetableleft">тБЪНЕТЩ:
</TD>
<TD class="imagetableright">&nbsp^;$image_table.size
</TD>
</TR>
<TR>
<TD class="imagetableleft">дБФБ:
</TD>
<TD class="imagetableright">&nbsp^;$image_table.data
</TD>
</TR>
$pt[$image_table.info]
^if(^pt.match[ ][g]{} eq ""){}{
<TR>
<TD class="imagetableleft">гЕОБ:
</TD>

<TD class="imagetableright">
&nbsp^;$image_table.info ТХВ. &nbsp^;<A HREF="mailto:gallery@rubtsovsk.ru?subject='ъБЛБЪ ЛБТФЙОЩ'">ъБЛБЪБФШ</A>
</TD>
</TR>
}
<TR>
<TD colspan="3" vAlign="top" class="text">
&nbsp^;$image_table.text
</TD>
</TR>
</TABLE>
</TD>
</TABLE>
</TD>
</TR>
</TABLE>

<BR>
}
}
^if($count>$lim){
<DIV ALIGN="right">
<SPAN CLASS="imagetableleft"> уФТБОЙГЩ:
^for[i](1;^math:ceiling(^eval($count/$lim))){
<SPAN CLASS="imagetableright">
^if(^eval($str) == $i ){&nbsp^;$i&nbsp^;}{
<A CLASS="imagelink" HREF="?image_str=$i">&nbsp^;$i&nbsp^;</A>}
</SPAN>
}
</SPAN>
</DIV>
}
}
}
</DIV>
</TD>
<TR>
</TABLE>
</TD>
</TR>
</TABLE>