Файл: templates/Default/public/main.tpl
Строк: 496
<script type="text/javascript">
var startResizeCss =
false;
$(document).ready(function(){
[admin]ajaxUpload = new
AjaxUpload('upload_cover', {
action:
'/index.php?go=groups&act=upload_cover&id={id}',
name:
'uploadfile',
onSubmit: function (file, ext) {
if(!(ext &&
/^(jpg|png|jpeg|gif|jpe)$/.test(ext))) {
addAllErr(lang_bad_format,
3300);
return
false;
}
$("#les10_ex2").draggable('destroy');
$('.cover_loaddef_bg').css('cursor',
'default');
$('.cover_loading').show();
$('.cover_newpos,
.cover_descring').hide();
$('.cover_profile_bg').css('opacity',
'0.4');
},
onComplete: function (file, row){
if(row == 1 || row ==
2) addAllErr('Максимальны размер 7 МБ.', 3300);
else
{
$('.cover_loading').hide();
$('.cover_loaddef_bg,
.cover_hidded_but, .cover_loaddef_bg,
.cover_descring').show();
$('#upload_cover').text('Изменить
фото');
$('.cover_profile_bg').css('opacity',
'1');
$('.cover_loaddef_bg').css('cursor',
'move');
$('.cover_newpos').css('position', 'absolute').css('z-index',
'2').css('margin-left', '197px').show();
row =
row.split('|');
rheihht = row[1];
postop =
(parseInt(rheihht/2)-100);
if(rheihht <= 230) postop =
0;
$('#les10_ex2').css('height', +rheihht+'px').css('top',
'-'+postop+'px');
cover.init('/uploads/groups/'+row[0],
rheihht);
$('.cover_addut_edit').attr('onClick',
'cover.startedit(\'/uploads/groups/'+row[0]+'\',
'+rheihht+')');
}
}
});[/admin]
$('#wall_text,
.fast_form_width').autoResize();
myhtml.checked(['{settings-comments}',
'{settings-discussion}']);
music.jPlayerInc();
$(window).scroll(function(){
if($('#type_page').val()
== 'public'){
if($(document).height() - $(window).height() <=
$(window).scrollTop()+($(document).height()/2-250)){
groups.wall_page();
}
if($(window).scrollTop()
< $('#fortoAutoSizeStyle').offset().top){
startResizeCss =
false;
$('#addStyleClass').remove();
}
if($(window).scrollTop()
> $('#fortoAutoSizeStyle').offset().top &&
!startResizeCss){
startResizeCss = true;
$('body').append('<div
id="addStyleClass"><style type="text/css"
media="all">.public_wall{width:770px}.infowalltext_f{font-size:11px}.wall_inpst{width:688px}.public_likes_user_block{margin-left:585px}.wall_fast_opened_form{width:698px}.wall_fast_block{width:710px;margin-top:2px}.public_wall_all_comm{width:692px;margin-top:2px;margin-bottom:-2px}.player_mini_mbar_wall{width:710px;margin-bottom:0px}#audioForSize{min-width:700px}.wall_rec_autoresize{width:710px}.wall_fast_ava
img{width:50px}.wall_fast_ava{width:60px}.wall_fast_comment_text{margin-left:57px}.wall_fast_date{margin-left:57px;font-size:11px}.size10{font-size:11px}</style>');
}
}
});
langNumric('langForum',
'{forum-num}', 'обсуждение', 'обсуждения',
'обсуждений', 'обсуждение', 'Нет
обсуждений');
langNumric('langNumricAll', '{audio-num}',
'аудиозапись', 'аудиозаписи',
'аудиозаписей', 'аудиозапись',
'аудиозаписей');
langNumric('langNumricVide', '{videos-num}',
'видеозапись', 'видеозаписи',
'видеозаписей', 'видеозапись',
'видеозаписей');
});
$(document).click(function(event){
wall.event(event);
});
</script>
<input
type="hidden" id="type_page" value="public"
/>
<style>.newcolor000{color:#000}</style>
<div
id="jquery_jplayer"></div>
<div
id="addStyleClass"></div>
<input
type="hidden" id="teck_id" value=""
/>
<input type="hidden" id="teck_prefix"
value="" />
<input type="hidden"
id="typePlay" value="standart" />
<input
type="hidden" id="public_id" value="{id}"
/>
[admin]<div class="cover_loading no_display"><img
src="{theme}/images/progress_gray.gif" /></div>
<div
class="cover_profile_bg cover_groups_bg">
<div
class="cover_buts_pos">
<div
class="cover_newpos" {cover-param-3}>
<div
class="cover_addut cover_hidded_but"
onClick="cover.cancel('{cover-pos}')">Отмена</div>
<div class="cover_addut cover_hidded_but"
onClick="cover.del('{id}')">Удалить</div>
<div class="cover_addut {cover-param-2}"
id="upload_cover">Добавить обложку</div>
<div class="cover_addut cover_hidded_but"
onClick="cover.save('{id}')">Сохранить</div>
<div id="cover_addut_edit"
class="no_display"><div class="cover_addut_edit
{cover-param}" onClick="cover.startedit('{cover}',
'{cover-height}')">Редактировать
обложку</div></div>
</div>
<div
class="cover_loaddef_bg {cover-param}" {cover-param-4}>
<div class="cover_descring {cover-param-2}">Обложку
можно двигать по высоте</div>
<div
id="les10_ex2" {cover-param-5}><img src="{cover}"
width="794" id="cover_img" /></div>
<div
id="cover_restart"></div>
</div>
</div>
</div>[/admin]
[not-admin][cover]<div
class="cover_all_user"><img src="{cover}"
width="794" id="cover_img" {cover-param-5}
/></div>[/cover][/not-admin]
<div class="ava fl_r"
style="margin-right:0px"
onMouseOver="groups.wall_like_users_five_hide()">
[admin]<div class="cover_newava" {cover-param-7}><img
src="{photo}" id="ava" /></div>[/admin]
[not-admin][cover]<div class="cover_newava"
{cover-param-7}>[/cover]<img src="{photo}"
id="ava" />[cover]</div>[/cover][/not-admin]
<div
class="menuleft" style="margin-top:5px">
<a
href="/" onClick="groups.inviteBox('{id}'); return
false"><div>Пригласить
друзей</div></a>
<a
href="/stats?gid={id}"><div>Статистика
страницы</div></a>
[admin]<a href="/"
onClick="groups.loadphoto('{id}'); return false"><img
class="icon editphoto_ic"
src="{theme}/images/spacer.gif" alt=""
/><div>Изменить
фотографию</div></a>
<span
id="del_pho_but" class="{display-ava}"><a
href="/" onClick="groups.delphoto('{id}'); return
false;"><img class="icon del_photo_ic"
src="{theme}/images/spacer.gif" alt=""
/><div>Удалить
фотографию</div></a></span>
<a
href="/" onClick="groups.editform(); return
false"><img class="icon ic_edit"
src="{theme}/images/spacer.gif" alt=""
/><div>Управление
страницей</div></a>[/admin]
</div>
<div
class="publick_subscblock">
<div id="yes"
class="{yes}">
<div class="button_div fl_l"
style="margin-bottom:15px;line-height:15px"><button
onClick="groups.login('{id}'); return false"
style="width:174px">Подписаться</button></div>
<div id="num2">{num-2}</div>
</div>
<div id="no" class="{no}"
style="text-align:left">
Вы подписаны на
новости этого сообщества.<br />
<div
style="margin-top:7px"></div>
<a
href="/public{id}" onClick="groups.exit2('{id}',
'{viewer-id}'); return false">Отписаться</a>
</div>
<div class="clear"></div>
</div>
<div style="margin-top:7px">
<div
class="{no-users}" id="users_block">
<div
class="public_vlock cursor_pointer"
onClick="groups.all_people('{id}')">Подписчики</div>
<div class="public_bg">
<div class="color777
public_margbut">{num}</div>
<div
class="public_usersblockhidden">{users}</div>
<div class="clear"></div>
</div>
</div>
</div>
[videos]<div class="public_vlock
cursor_pointer" onClick="Page.Go('/public/videos{id}'); return
false">Видеозаписи</div>
<div
class="public_bg">
[yesvideo]<div class="color777
public_margbut">{videos-num} <span
id="langNumricVide"></span></div>[/yesvideo]
{videos}
[novideo]<div class="line_height color777"
align="center">Ролики с Вашим участием и
другие видеоматериалы<br />
<a
href="/public/videos{id}" onClick="Page.Go(this.href);
return false">Добавить
видеозапись</a></div>[/novideo]
</div>[/videos]
[feedback]<div class="public_vlock
cursor_pointer"
onClick="groups.allfeedbacklist('{id}')">Контакты
[yes][admin]<a href="/public{id}" class="fl_r"
onClick="groups.allfeedbacklist('{id}'); return
false">ред.</a>[/admin][/yes]</div>
<div
class="public_bg" id="feddbackusers">
[yes]<div
class="color777
public_margbut">{num-feedback}</div>[/yes]
{feedback-users}
[no]<div class="line_height color777"
align="center">Страницы представителей,
номера телефонов, e-mail<br />
<a
href="/public{id}" onClick="groups.addcontact('{id}');
return false">Добавить
контакты</a></div>[/no]
</div>[/feedback]
[audios]<div class="public_vlock cursor_pointer"
onClick="Page.Go('/public/audio{id}'); return
false">Аудиозаписи</div>
<div
class="public_bg">
[yesaudio]<div class="color777
public_margbut">{audio-num} <span
id="langNumricAll"></span></div>[/yesaudio]
{audios}
[noaudio]<div class="line_height color777"
align="center">Композиции или другие
аудиоматериалы<br />
<a
href="/public/audio{id}" onClick="Page.Go(this.href); return
false">Добавить
аудиозапись</a></div>[/noaudio]
</div>[/audios]
<div
id="fortoAutoSizeStyle"></div>
</div>
<div
class="profiewr">
<div
id="public_editbg_container">
<div
class="public_editbg_container">
<div
class="fl_l" style="width:560px">
[admin]<div
class="set_status_bg no_display"
id="set_status_bg">
<input type="text"
id="status_text" class="status_inp"
value="{status-text}" style="width:500px;"
maxlength="255" onKeyPress="if(event.keyCode ==
13)gStatus.set('', 1)" />
<div class="fl_l
status_text"><span class="no_status_text
[status]no_display[/status]">Введите здесь текст
статуса.</span><a href="/"
class="yes_status_text [no-status]no_display[/no-status]"
onClick="gStatus.set(1, 1); return false">Удалить
статус</a></div>
[status]<div
class="button_div_gray fl_r status_but
margin_left"><button>Отмена</button></div>[/status]
<div class="button_div fl_r status_but"><button
id="status_but" onClick="gStatus.set('',
1)">Сохранить</button></div>
</div>[/admin]
<div class="public_title"
id="e_public_title">{title}</div>
<div
class="status">
<div>[admin]<a href="/"
id="new_status" onClick="gStatus.open(); return
false">[/admin]{status-text}[admin]</a>[/admin]</div>
[admin]<span id="tellBlockPos"></span>
<div
class="status_tell_friends no_display"
style="width:215px">
<div
class="status_str"></div>
<div
class="html_checkbox" id="tell_friends"
onClick="myhtml.checkbox(this.id);
gStatus.startTellPublic('{id}')">Рассказать
подписчикам сообщества</div>
</div>[/admin]
[admin]<a href="#"
onClick="gStatus.open(); return false" id="status_link"
[status]class="no_display"[/status]>установить
статус</a>[/admin]
</div>
<div
class="{descr-css}" id="descr_display"><div
class="flpodtext">Описание:</div> <div
class="flpodinfo"
id="e_descr">{descr}</div></div>
<div
class="flpodtext">Дата создания:</div>
<div class="flpodinfo">{date}</div>
[web]<div
class="flpodtext">Веб-сайт:</div> <div
class="flpodinfo"><a href="{web}"
target="_blank">{web}</a></div>[/web]
</div>
[admin]<div class="public_editbg fl_l
no_display" id="edittab1">
<div
class="public_title">Редактирование
страницы</div>
<div
class="public_hr"></div>
<div
class="texta">Название:</div>
<input
type="text" id="title" class="inpst"
maxlength="100" style="width:260px;"
value="{title}" />
<div
class="mgclr"></div>
<div
class="texta">Описание:</div>
<textarea
id="descr" class="inpst"
style="width:260px;height:80px">{edit-descr}</textarea>
<div class="mgclr"></div>
<div
class="texta">Адрес страницы:</div>
<input type="hidden" id="prev_adres_page"
class="inpst" maxlength="100"
style="width:260px;" value="{adres}" />
<input
type="text" id="adres_page" class="inpst"
maxlength="100" style="width:260px;"
value="{adres}" />
<div
class="mgclr"></div>
<div
class="texta">Веб-сайт:</div>
<input
type="text" id="web" class="inpst"
maxlength="100" style="width:260px;"
value="{web}" />
<div
class="mgclr"></div>
<div
class="texta"> </div>
<div
class="html_checkbox" id="comments"
onClick="myhtml.checkbox(this.id)"
style="margin-bottom:8px">Комментарии
включены</div>
<div class="mgclr
clear"></div>
<div
class="texta"> </div>
<div
class="html_checkbox" id="discussion"
onClick="myhtml.checkbox(this.id)"
style="margin-bottom:8px">Обсуждения
включены</div>
<div class="mgclr
clear"></div>
<div
class="texta"> </div>
<a
href="/public{id}" onClick="groups.edittab_admin(); return
false">Назначить администраторов
»</a>
<div class="mgclr"></div>
<div class="texta"> </div>
<div
class="button_div fl_l"><button
onClick="groups.saveinfo('{id}'); return false"
id="pubInfoSave">Сохранить</button></div>
<div class="button_div_gray fl_l margin_left"><button
onClick="groups.editformClose(); return
false">Отмена</button></div>
<div
class="mgclr"></div>
</div>
<div
class="public_editbg fl_l no_display"
id="edittab2">
<div
class="public_title">Руководители
страницы</div>
<div
class="public_hr"></div>
<input
type="text"
placeholder="Введите ссылку
на страницу или введите ID страницы
пользователя и нажмите Enter"
class="videos_input"
style="width:526px"
onKeyPress="if(event.keyCode ==
13)groups.addadmin('{id}')"
id="new_admin_id"
/>
<div class="clear"></div>
<div
style="width:600px"
id="admins_tab">{admins}</div>
<div
class="clear"></div>
<div class="button_div
fl_l"><button onClick="groups.editform(); return
false">Назад</button></div>
</div>[/admin]
</div>
</div>
[discussion]<a href="/forum{id}"
onClick="Page.Go(this.href); return false" class="fl_l"
style="text-decoration:none"><div
class="albtitle"
style="border-bottom:0px">{forum-num} <b
id="langForum">Нет
обсуждений</b></div></a>
<a
href="/forum{id}?act=new" onClick="Page.Go(this.href);
return false" class="fl_r {no}"
style="text-decoration:none"><div
class="albtitle"
style="border-bottom:0px;color:#ddd">Новая
тема</div></a>
<div
class="clear"></div>{thems}<div
class="clear"></div>[/discussion]
<div
class="albtitle"
style="border-bottom:0px">{rec-num}</div>
[admin]<div class="newmes" id="wall_tab"
style="border-bottom:0px;margin-bottom:-5px">
<input
type="hidden" value="Что у Вас нового?"
id="wall_input_text" />
<input type="text"
class="wall_inpst" value="Что у Вас
нового?" onMouseDown="wall.form_open(); return false"
id="wall_input" style="margin:0px" />
<div
class="no_display" id="wall_textarea">
<textarea id="wall_text" class="wall_inpst
wall_fast_opened_texta"
style="width:534px"
onKeyUp="wall.CheckLinkText(this.value)"
onBlur="wall.CheckLinkText(this.value,
1)"
onKeyPress="if(event.keyCode == 10 || (event.ctrlKey
&& event.keyCode == 13)) groups.wall_send('{id}')"
>
</textarea>
<div id="attach_files"
class="margin_top_10 no_display"></div>
<div
id="attach_block_lnk" class="no_display clear">
<div class="attach_link_bg">
<div
align="center" id="loading_att_lnk"><img
src="{theme}/images/loading_mini.gif"
style="margin-bottom:-2px" /></div>
<img
src="" align="left" id="attatch_link_img"
class="no_display cursor_pointer"
onClick="wall.UrlNextImg()" />
<div
id="attatch_link_title"></div>
<div
id="attatch_link_descr"></div>
<div
class="clear"></div>
</div>
<div
class="attach_toolip_but"></div>
<div
class="attach_link_block_ic fl_l"></div><div
class="attach_link_block_te"><div
class="fl_l">Ссылка: <a href="/"
id="attatch_link_url"
target="_blank"></a></div><img class="fl_l
cursor_pointer" style="margin-top:2px;margin-left:5px"
src="{theme}/images/close_a.png"
onMouseOver="myhtml.title('1', 'Не прикреплять',
'attach_lnk_')" id="attach_lnk_1"
onClick="wall.RemoveAttachLnk()" /></div>
<input
type="hidden" id="attach_lnk_stared" />
<input
type="hidden" id="teck_link_attach" />
<span
id="urlParseImgs" class="no_display"></span>
</div>
<div class="clear"></div>
<div
id="attach_block_vote" class="no_display">
<div class="attach_link_bg">
<div
class="texta">Тема опроса:</div><input
type="text" id="vote_title" class="inpst"
maxlength="80" value=""
style="width:355px;margin-left:5px"
onKeyUp="$('#attatch_vote_title').text(this.value)"
/><div
class="mgclr"></div>
<div
class="texta">Варианты ответа:<br
/><small><span id="addNewAnswer"><a
class="cursor_pointer"
onClick="Votes.AddInp()">добавить</a></span>
| <span
id="addDelAnswer">удалить</span></small></div><input
type="text" id="vote_answer_1" class="inpst"
maxlength="80" value=""
style="width:355px;margin-left:5px" /><div
class="mgclr"></div>
<div
class="texta"> </div><input
type="text" id="vote_answer_2" class="inpst"
maxlength="80" value=""
style="width:355px;margin-left:5px" /><div
class="mgclr"></div>
<div
id="addAnswerInp"></div>
<div
class="clear"></div>
</div>
<div
class="attach_toolip_but"></div>
<div
class="attach_link_block_ic fl_l"></div><div
class="attach_link_block_te"><div
class="fl_l">Опрос: <a
id="attatch_vote_title"
style="text-decoration:none;cursor:default"></a></div><img
class="fl_l cursor_pointer"
style="margin-top:2px;margin-left:5px"
src="{theme}/images/close_a.png"
onMouseOver="myhtml.title('1', 'Не прикреплять',
'attach_vote_')" id="attach_vote_1"
onClick="Votes.RemoveForAttach()" /></div>
<input
type="hidden" id="answerNum" value="2" />
</div>
<div class="clear"></div>
<input id="vaLattach_files" type="hidden" />
<div class="clear"></div>
<div
class="button_div fl_l margin_top_10"><button
onClick="groups.wall_send('{id}'); return false"
id="wall_send">Отправить</button></div>
<div class="wall_attach fl_r"
onClick="wall.attach_menu('open', this.id, 'wall_attach_menu')"
onMouseOut="wall.attach_menu('close', this.id,
'wall_attach_menu')"
id="wall_attach">Прикрепить</div>
<div
class="wall_attach_menu no_display"
onMouseOver="wall.attach_menu('open', 'wall_attach',
'wall_attach_menu')" onMouseOut="wall.attach_menu('close',
'wall_attach', 'wall_attach_menu')"
id="wall_attach_menu">
<div
class="wall_attach_icon_smile" id="wall_attach_link"
onClick="wall.attach_addsmile()">Смайлик</div>
<div class="wall_attach_icon_photo"
id="wall_attach_link"
onClick="groups.wall_attach_addphoto(0, 0,
'{id}')">Фотографию</div>
<div
class="wall_attach_icon_video" id="wall_attach_link"
onClick="wall.attach_addvideo_public(0, 0,
'{id}')">Видеозапись</div>
<div
class="wall_attach_icon_audio" id="wall_attach_link"
onClick="wall.attach_addaudio()">Аудиозапись</div>
<div
class="wall_attach_icon_doc" id="wall_attach_link"
onClick="wall.attach_addDoc()">Документ</div>
<div
class="wall_attach_icon_vote" id="wall_attach_link"
onClick="$('#attach_block_vote').slideDown('fast');wall.attach_menu('close',
'wall_attach',
'wall_attach_menu');$('#vote_title').focus();$('#vaLattach_files').val($('#vaLattach_files').val()+'vote|start||')">Опрос</div>
</div>
</div>
<div
class="clear"></div>
</div>[/admin]
<div
id="public_wall_records">{records}</div>
<div
class="cursor_pointer {wall-page-display}"
onClick="groups.wall_page('{id}'); return false"
id="wall_all_records"><div
class="public_wall_all_comm" id="load_wall_all_records"
style="margin-left:0px">к предыдущим
записям</div></div>
<input type="hidden"
id="page_cnt" value="1" />
</div>
<div
class="clear"></div>