Вид материалов каталога сайтов:
·········10········20········30········40········50········60········70········80········90········100·······110·······120·······130·······140·······150
<div
class
=
"topic"
>$TITLE$$MODER_PANEL$ <span style=
"float:right"
><a href=
"javascript://"
onclick=
"site$ID$('$SITE_DIRECT_URL$','$TITLE$');"
>Поделиться<
/a></
span></div>
<div
class
=
"dec"
><img src=
"http://mini.s-shot.ru/1024/png/?$SITE_DIRECT_URL$"
> <b>Ссылка на сайт:</b> <a href=
"$SITE_URL$"
target=
"_blank"
>$SITE_DIRECT_URL$<
/a><br><b>Категория:</
b> <a href=
"$CATEGORY_URL$"
target=
"_blank"
>$CATEGORY_NAME$<
/a><br> <b>Дата:</
b> $DATE$<br><b>Переходов:<
/b> $REDIRECTS$<br><b>Описание:</
b> $MESSAGE$</div>
<div
class
=
"ht$ID$"
style=
"display:none"
>
<input type=
'text'
value=
'<a href="$SITE_DIRECT_URL$" target="_blank">$TITLE$</a>'
onclick=
'this.select()'
style=
'width:312px;'
>
</div>
<script>
function
site$ID$(url,name)
{
new
_uWnd(
'bbcode'
,
'Поделиться сайтом - '
+name+
' с другими'
,
350
,
120
,{
alert
:
1
,resize:
0
,autosize:
1
, align:
'left'
},
'<fieldset><legend>Обычная ссылка:</legend><input type="text" value="'
+url+
'" style="width:312px;" onclick="this.select()"></fieldset><fieldset><legend>BB-Code (для форумов):</legend><input type="text" value="[url='
+url+
']'
+name+
'[/url]" style="width:312px;" onclick="this.select()"></fieldset><fieldset><legend>HTML-код (для сайта):</legend>'
+$(
'.ht$ID$'
).html()+
'</fieldset>'
);
}
</script>
<br>
01.
02.
03.
04.
05.
06.
07.
08.
09.
10.
11.
12.
13.
В нижнюю часть сайта:
·········10········20········30········40········50········60········70········80········90········100·······110·······120·······130·······140·······150
<div
class
=
"categ"
><
/div><div class="categor"><select size="0" id="ca"></
select></div>
<script>
$(
'.categ,.categor'
).hide();$(
'a'
).click(
function
(webing){
if
($(
this
).attr(
'href'
)==
'$HOME_PAGE_LINK$dir/0-0-0-0-1'
){webing.preventDefault();$.get(
'/dir/0-0-0-0-1'
,
function
(data){$(
'.categ'
).html($(
'#uCatsMenu7'
,data).html());$(
'.categ div'
).each(
function
(){$(
'.categor select'
).append(
'<option value="'
+$(
this
).find(
'input'
).val()+
'" >'
+$(
this
).find(
'label'
).html()+
'</option>'
)});
new
_uWnd(
'add_dir'
,
'Добавление сайта в каталог'
,
350
,
120
,{
alert
:
1
,resize:
0
,autosize:
1
,align:
'left'
},
'<fieldset><legend>Категория</legend><span class="c">'
+$(
'.categor'
).html()+
'</span></fieldset><fieldset><legend>Название сайта:</legend> <input type="text" style="width:312px;" id="name_dir"></fieldset> <fieldset><legend>Ссылка на сайт:</legend> <input type="text" style="width:312px;" id="url_dir"> </fieldset><fieldset><legend>Описание сайта:</legend><textarea id="description_dir" style="width:312px;height:100px;"></textarea> </fieldset><fieldset> <span style="float:right;">'
+_uButton(
''
,
'b'
,{style:
3
,align:
'right'
,text:
'Добавить сайт'
,content:
'onclick="add_dir();" style="float:right"'
})+
'</span> </fieldset>'
)})}});
function
add_dir(){
new
_uWnd(
'obr'
,
'Обработка процесса'
,
300
,
120
,{
alert
:
1
,resize:
0
,modal:
1
,autosize:
1
,align:
'left'
},
'<fieldset><legend>Загрузка</legend> <div class="myWinLoadS" style="float:left;padding:5px; "></div> Пожалуйста подождите, обработка...</fieldset>'
);$.get(
'/dir/0-0-0-0-1'
,
function
(data){$.post(
'/dir/'
,{a:
12
,ocat:$(
'.c #ca'
).val(),jkd428:
1
,jkd498:
1
,title:$(
'#name_dir'
).val(),brief:$(
'#description_dir'
).val(),slink:$(
'#url_dir'
).val(),ssid:$(
'input[name="ssid"]'
,data).val()},
function
(otv){_uWnd.close(
'obr'
);
if
($(otv).text().indexOf(
'успешно'
)!=-
1
){_uWnd.close(
'add_dir'
);_uWnd.
alert
(
'Ваш сайт добавлен!'
,
'Спасибо'
,{w:
270
,h:
70
,t:
8000
})}
else
{_uWnd.
alert
(
'Произошла ошибка!'
,
'Ошибка'
,{w:
270
,h:
70
,t:
8000
})}})})};
</script>
1.
2.
3.
4.
В CSS, в самый низ:
·········10········20········30········40········50········60········70········80········90········100·······110·······120·······130·······140·······150
.topic {padding:5px; background:
#f7f7f7; border:1px solid #ccc;border-bottom:1px dotted #ccc;font-size:13px;font-family:Tahoma; }
.dec {border:1px solid
#ccc;background:#fff; border-top:none; padding:5px; min-height:110px; }
.dec img {
float
:left;background:
#f7f7f7; padding:2px;border-radius:2px;-moz-border-radius:2px;-webkit-border-radius:2px; border:1px solid #ccc;width:100px;height:100px;margin-right: 7px; }
1.
2.
3.
Установка завершена.