• Страница 1 из 1
  • 1
Форум » Скрипты для SysTeM uCoz » Форум » Форма добавления ( Рабочая )
Форма добавления ( Рабочая )
GaaraДата: Суббота, 25.06.2011, 04:52 | Сообщение # 1
10
Титул:
 
Группа:
 
Пользователи
Сообщений:
 
149
Награды:


[spoiler="Скрин"][/spoiler]

[Table]Вставлять в форму добавления сообщения[/Table]

Code
<script type="text/javascript" src="http://criminall.ucoz.com/alltranslit.js"></script>       

   <script language="JavaScript" type="text/javascript">       
   function chklen()       
   {       
   max_limit=40000;       
   str = document.addform.message.value;       
   len = str.length;       

   if (len > max_limit)       
   {       
   str = str.substring(0,max_limit);       
   len = str.length;       
   document.addform.message.value = str;       
   }       

   document.addform.fcounter.value = (max_limit - document.addform.message.value.length);       

   while ( document.addform.fcounter.value<0)       
   {       
   document.addform.message.value = str.substring(0,len-1 );       
   str = document.addform.message.value;       
   len = str.length;       
   document.addform.fcounter.value = (max_limit - document.addform.message.value.length);       
   }       
   }       
   </script>       

   <DIV class="gDivLeft"><DIV class="gDivRight">       
   <TABLE border="0" width="100%" cellspacing="1" cellpadding="0" class="gTable" id="frM53"><TBODY><TR id="frM54"><TD colspan="2" class="gTableTop" id="frM55"><DIV style="float:right" class="gTopCornerRight"></DIV><A name="post">$FORM_TITLE$</A> <DIV id="stamp" style="display: none; position: absolute; width:53%; height: 125px;overflow: auto; border: 1px solid #BBB; background:#E9E8F2;">       
   <DIV align="right" title="Закрыть штампы" style="cursor:hand;" onclick="hidestamp()"><B>[X]</B></DIV>       
   <script>       
   Nsm=36;       
   pat='http://cspro100team.ucoz.ru/stamps/stamp';       

   for(i=1; i<=Nsm; i++) {       
   kod='[img]'+pat+i+'.gif[/img]';       
   document.write('<a href="javascript://" onClick="emoticon(');       
   document.write("'"+kod+"'");       
   document.write(');hidestamp();"><img style="padding:3px;" border="0" src="'+pat+i+'.gif"></a>');       
   }       
   function showstamp()       
   {       
   document.getElementById('stamp').style.display = document.getElementById('stamp').style.display == 'block' ? 'none' : 'block';       
   }       
   function hidestamp()       
   {       
   document.getElementById('stamp').style.display ='none';       
   }       
   </script>       
   </DIV></TD></TR><?if($ERROR$)?><TR id="frM1"><TD colspan="2" align="center" class="gTableError" id="frM2">$ERROR$</TD></TR><?endif?><?if($_USER$)?><TR id="frM3"><TD class="gTableLeft" id="frM4">Имя:</TD><TD class="gTableRight" id="frM5">$_USER$</TD></TR><?endif?><?if($_THREAD_NAME$)?><TR id="frM25"><TD class="gTableLeft" id="frM26">Название темы:</TD><TD class="gTableRight" id="frM27">$_THREAD_NAME$</TD></TR><TR id="frM28"><TD class="gTableLeft" id="frM29">Описание темы:</TD><TD class="gTableRight" id="frM30">$_THREAD_DESCR$</TD></TR><?endif?><?if($_POLL_QUESTION$)?><TR id="frM31"><TD class="gTableRight" colspan="2" id="frM32"> </TD></TR><TR id="frM33"><TD class="gTableLeft" id="frM34">Вопрос голосования:</TD><TD class="gTableRight" id="frM35">$_POLL_QUESTION$</TD></TR><TR id="frM36"><TD class="gTableLeft" id="frM37">Пункты опроса:<DIV class="pollHelp">Введите по одному ответу на строку. Максимум <B>10</B> ответов.</DIV></TD><TD class="gTableRight" id="frM38">$_POLL_ANSWERS$</TD></TR><TR id="frM40"><TD class="gTableLeft" id="frM41">Опции опроса:</TD><TD class="gTableRight" id="frM42">$_POLL_ONLY_OPT$ <LABEL for="pollonly">Только опрос (писать ответы в теме будет нельзя)</LABEL><BR>$_POLL_MULTI_OPT$ <LABEL for="pollmulty">Включить возможность выбора нескольких вариантов ответов</LABEL><BR>$_POLL_PERIOD_OPT$ Период голосования (0 - без ограничений)</TD></TR><TR id="frM43"><TD class="gTableRight" colspan="2" id="frM44"> </TD></TR><?endif?><TR id="frM56" align="center"><TD width="25%" class="gTableLeft" id="frM57" valign="top">Текст сообщения:<DIV class="smilesPart">$SMILES$</DIV></TD><TD class="gTableRight" id="frM58">$BBCODES$       

   <INPUT accesskey="y" value="P.S." onclick="simpletag('p.s.','','','message',''); return false;" class="codeButtons" title="p.s." name="p.s." type="button">       

   <INPUT type="button" value="Инфо" onclick="simpletag('info','','','message',''); return false;" class="codeButtons" title="Информация" name="info">       

   <INPUT type="button" value="Штампы" onclick="showstamp()" class="codeButtons" title="Вставить Штамп" name="Штампы">       

   <INPUT type="button" value="mp3" onclick="simpletag('mp3','','','message',''); return false;" class="codeButtons" title="Вставить mp3" name="mp3">       

   <INPUT type="button" value="blink" onclick="simpletag('blink','','','message',''); return false;" class="codeButtons" title="Вставить бегущий текст" name="blink">       

   <INPUT type="button" value="Внимание" onclick="simpletag('warning','','','message',''); return false;" class="codeButtons" title="admin text" name="Внимание">       

   <INPUT type="button" value="Бегущая строка" onclick="simpletag('marquee','','','message',''); return false;" class="codeButtons" title="Бегущая строка" name="marquee">       

   <INPUT title="Offtop" value="off" onclick="simpletag('off','','','message','')" class="codeButtons" name="off" style="width: 40px;" type="button">       

   <INPUT title="Спойлер" value="Спойлер" onclick="tag_spoiler('message','')" class="codeButtons" style="width: 60px;" name="url" type="button">       

   <?if($BBCODES$)?>       
   <DIV style="padding-bottom: 2px;">       
   <SPAN class="</span><span class=" bbc1"="" id="bc24"><INPUT type="button" value="Video" title="Добавить ссылку на видео файл" onclick="tag_video()" class="codeButtons" name="video"></SPAN><SPAN class="bbc1" id="bc25"><INPUT type="button" value="Audio" title="Добавить ссылку на аудио файл" onclick="tag_audio()" class="codeButtons" name="audio"></SPAN>       
   </DIV>       
   <?endif?> $_MESSAGE$<TR><TD width="25%" class="gTableLeft" id="frM15"></TD><TD class="gTableRight">       
   <SPAN style="display:none" style="&{head};">       
             
   </SPAN>       
   </TD></TR><!-- Bogdan4eg smiles END --><BR><TR><TD class="gTableLeft" width="25%">Дополнительные смайлики:</TD><TD class="gTableRight">       
   <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/1b9427a725df9df403bd86b77667cd25-web.gif[/img]'); return false;"><IMG src="http://killbot.at.ua/sm/1b9427a725df9df403bd86b77667cd25-web.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/s_049.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/s_049.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/s_093.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/s_093.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/s_097.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/s_097.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/s_098.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/s_098.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/s_100.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/s_100.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/s_105.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/s_105.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/s_109.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/s_109.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/s_111.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/s_111.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/s_148.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/s_148.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/s_159.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/s_159.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/s_170.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/s_170.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/s_171.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/s_171.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/wypyp.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/wypyp.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://4online.3dn.ru/dowmload/smile/34.gif[/img]');return false;"><IMG src="http://4online.3dn.ru/dowmload/smile/34.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://4online.3dn.ru/dowmload/smile/35.gif[/img]');return false;"><IMG src="http://4online.3dn.ru/dowmload/smile/35.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://4online.3dn.ru/dowmload/smile/45.gif[/img]');return false;"><IMG src="http://4online.3dn.ru/dowmload/smile/45.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://4online.3dn.ru/dowmload/smile/131.gif[/img]');return false;"><IMG src="http://4online.3dn.ru/dowmload/smile/131.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://4online.3dn.ru/dowmload/smile/05.gif[/img]');return false;"><IMG src="http://4online.3dn.ru/dowmload/smile/05.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://4online.3dn.ru/dowmload/smile/h3.gif[/img]');return false;"><IMG src="http://4online.3dn.ru/dowmload/smile/h3.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/lol.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/lol.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/ura-1.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/ura-1.gif" border="0"></A><A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/Smile3-55.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/Smile3-55.gif" border="0"></A><A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/Smile5-3.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/Smile5-3.gif" border="0"></A><A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/Smile5-4.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/Smile5-4.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/ml9.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/ml9.gif" border="0"></A><A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/gu-gu.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/gu-gu.gif" border="0"></A><A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/sam_takoy.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/sam_takoy.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/repa.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/repa.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/aftaar_jjot.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/aftaar_jjot.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/ok.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/ok.gif" border="0"></A> <A href="javascript://" onclick="emoticon('[img]http://killbot.at.ua/sm/flooooood.gif[/img]');return false;"><IMG src="http://killbot.at.ua/sm/flooooood.gif" border="0"></A>       
   </TD></TR><?if($BBCODES$)?><script language="JavaScript">       

   var text_enter_audio = "http://any_site.com/music.mp3 ";       
   var text_enter_video = "http://any_site.com/music.mp3 ";       

   function tag_audio()       
   {       
   var FoundErrors = '';       
   var enterAudio = prompt(text_enter_audio, "http://any_site.com/music.mp3");       
   if (!enterAudio || enterAudio=='http://any_site.com/music.mp3') {       
   FoundErrors = 1;       
   }       
   if (FoundErrors) {       
   return;       
   }       
   doInsert("[audio]"+enterAudio+"[/audio]", "", false);       
   }       

   function tag_video()       
   {       
   var FoundErrors = '';       
   var enterVideo = prompt(text_enter_video, "http://youtube.com/watch?v=DbzFNj8HVmc");       
   if (!enterVideo || enterVideo=='http://youtube.com/watch?v=DbzFNj8HVmc') {       
   FoundErrors = 1;       
   }       
   if (FoundErrors) {       
   return;       
   }       
   doInsert("[video]"+enterVideo+"[/video]", "", false);       
   }       
   </script><?endif?><?if($MESSAGE_OPTIONS_FLAG$)?><TR id="frM14"><TD class="gTableLeft" id="frM15">Опции сообщения:</TD><TD class="gTableRight" id="frM16">       

   <CENTER><A href="javascript:t.go(0)" title="Перевести в кириллицу">Кириллица</A> - <A href="javascript:t.go(1)" title="Перевести в латиницу">Латиница</A> | <A href="javascript:t.Tags()" id="translitTags" title="Отключить обнаружение HTML и BB тегов">Пропустить тэги</A> </CENTER>       

   <?if($_HTML_OPT$)?>       
   $_HTML_OPT$ <LABEL for="ahtml">Включить HTML теги</LABEL><BR>$_MAKE_BR_OPT$ <LABEL for="frmt">Заменять переводы строк тегом <B><BR></B></LABEL><BR>       
   <?endif?>       
   <?if($_EDITED_OPT$)?>       
   $_EDITED_OPT$ <LABEL for="edited">Добавить надпись "Отредактировано..." в это сообщение?</LABEL><BR>       
   <?endif?>       
   <?if($_SMILES_OPT$)?>       
   $_SMILES_OPT$ <LABEL for="smon">Включить смайлы</LABEL><BR>       
   <?endif?>       
   <?if($_SIGNATURE_OPT$)?>       
   $_SIGNATURE_OPT$ <LABEL for="sgon">Включить подпись</LABEL><BR>       
   <?endif?>       
   <?if($_SUBSCRIBE_OPT$)?>       
   $_SUBSCRIBE_OPT$ <LABEL for="sbon">Включить уведомление на e-mail при ответах</LABEL><BR>       
   <?endif?>       
   </TD></TR><?endif?><?if($MODER_OPTIONS_FLAG$)?><TR id="frM6"><TD class="gTableLeft" id="frM7">Опции темы:</TD><TD class="gTableRight" id="frM8">       
   <?if($_FIRSTONTOP_OPT$)?>       
   $_FIRSTONTOP_OPT$ <LABEL for="firstontop">Первое сообщение темы сделать шапкой (показывать на всех страницах)</LABEL><BR>       
   <?endif?>       
   <?if($_ONTOP_OPT$)?>       
   $_ONTOP_OPT$ <LABEL for="isontop">Тема всегда сверху</LABEL><BR>       
   <?endif?>       
   <?if($_CLOSED_OPT$)?>       
   $_CLOSED_OPT$ <LABEL for="isclosed">Закрытая тема</LABEL>       
   <?endif?>       
   </TD></TR><?endif?><?if($_FILES_UPLOADER$)?><TR id="frM50"><TD class="gTableLeft" id="frM51">Прикрепить файл: <SPAN style="font:7pt;">(не более <B>$FILE_MAX_SIZE$</B>Kb)</SPAN></TD><TD class="gTableRight" id="frM52">$_FILES_UPLOADER$</TD></TR><?endif?><?if($_SECURITY_CODE$)?><TR id="frM45"><TD class="gTableLeft" id="frM46">Код безопасности:</TD><TD class="gTableRight" id="frM47">$_SECURITY_CODE$</TD></TR><?endif?><TR id="frM59"><TD class="gTableRight" colspan="2" align="center" id="frM60"><INPUT style="width:110px;" id="frF15" class="postPreview" type="button" value="Просмотреть" onclick="prepost();"> <INPUT type="submit" id="frF16" name="sbm" style="width:150px;font-weight:bold;" class="postSubmit" value="$SUBMIT_SIGN$"> <INPUT style="width:110px;" id="frF17" class="postReset" type="reset" value="Отменить"></TD></TR></TBODY></TABLE>       
   </DIV></DIV><DIV class="gDivBottomLeft"></DIV><DIV class="gDivBottomCenter"></DIV><DIV class="gDivBottomRight"></DIV>
Форум » Скрипты для SysTeM uCoz » Форум » Форма добавления ( Рабочая )
  • Страница 1 из 1
  • 1
Поиск: