Форум ?
Тестовые данные- пароль test логин test
В быстром ответе почему-то выделение коряво работает...То есть если мышкой выделяешь текст...
Шаблон из quick_reply_box_open-
<script type="text/javascript">
<!--
document.onkeydown=function(e){
if (e) event=e
if ((event.keyCode==13)&&(event.ctrlKey)){
document.REPLIER.submit.click();
}}
function emo_pop()
{
window.open('index.{ibf.vars.php_ext}?act=legends&CODE=emoticons&s={ibf.session_id}','Legends','width=250,height=500,resizable=yes,scrollbars=yes');
}
//-->
</script>
<script language="javascript1.2" type="text/javascript">
<!--
var MessageMax = "{ibf.lang.the_max_length}";
var Override = "{ibf.lang.override}";
function CheckLength() {
MessageLength = document.REPLIER.Post.value.length;
message = "";
if (MessageMax > 0) {
message = "{ibf.lang.js_max_length} " + MessageMax + " {ibf.lang.js_characters}.";
} else {
message = "";
}
alert(message + " {ibf.lang.js_used} " + MessageLength + " {ibf.lang.js_characters}.");
}
function ValidateForm() {
MessageLength = document.REPLIER.Post.value.length;
errors = "";
if (MessageMax !=0) {
if (MessageLength > MessageMax) {
errors = "{ibf.lang.js_max_length} " + MessageMax + " {ibf.lang.js_characters}. {ibf.lang.js_current}: " + MessageLength;
}
}
if (errors != "" && Override == "") {
alert(errors);
return false;
} else {
document.REPLIER.submit.disabled = true;
return true;
}
}
// IBC Code stuff
var text_enter_url = "{ibf.lang.jscode_text_enter_url}";
var text_enter_url_name = "{ibf.lang.jscode_text_enter_url_name}";
var text_enter_image = "{ibf.lang.jscode_text_enter_image}";
var text_enter_email = "{ibf.lang.jscode_text_enter_email}";
var text_enter_flash = "{ibf.lang.jscode_text_enter_flash}";
var text_code = "{ibf.lang.jscode_text_code}";
var text_quote = "{ibf.lang.jscode_text_quote}";
var error_no_url = "{ibf.lang.jscode_error_no_url}";
var error_no_title = "{ibf.lang.jscode_error_no_title}";
var error_no_email = "{ibf.lang.jscode_error_no_email}";
var error_no_width = "{ibf.lang.jscode_error_no_width}";
var error_no_height = "{ibf.lang.jscode_error_no_height}";
var prompt_start = "{ibf.lang.js_text_to_format}";
var help_bold = "{ibf.lang.hb_bold}";
var help_italic = "{ibf.lang.hb_italic}";
var help_under = "{ibf.lang.hb_under}";
var help_font = "{ibf.lang.hb_font}";
var help_size = "{ibf.lang.hb_size}";
var help_color = "{ibf.lang.hb_color}";
var help_close = "{ibf.lang.hb_close}";
var help_url = "{ibf.lang.hb_url}";
var help_img = "{ibf.lang.hb_img}";
var help_email = "{ibf.lang.hb_email}";
var help_quote = "{ibf.lang.hb_quote}";
var help_list = "{ibf.lang.hb_list}";
var help_code = "{ibf.lang.hb_code}";
var help_click_close = "{ibf.lang.hb_click_close}";
var list_prompt = "{ibf.lang.js_tag_list}";
//-->
</script>
<br />
<div align='left' id='qr_open' style="display:$show;position:relative;">
<form name='REPLIER' action="{ibf.script_url}" method='post' enctype='multipart/form-data'>
<input type='hidden' name='act' value='Post' />
<input type='hidden' name='s' value='' />
<input type='hidden' name='CODE' value='03' />
<input type='hidden' name='f' value='$fid' />
<input type='hidden' name='t' value='$tid' />
<input type='hidden' name='st' value='{$ibforums->input['st']}' />
<input type='hidden' name='enabletrack' value='{ibf.member.auto_track}' />
<input type='hidden' name='auth_key' value='$key' />
<input type='hidden' name='MAX_FILE_SIZE' value='5000000' />
<!-- TITLE DIV -->
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" width="100%" height="29"> <tr>
<td width="1%"> <img border="0" src="http://ut-clan.org/forum/tile_back_left.gif" width="45" height="29"></td>
<td width="100%" background="http://ut-clan.org/forum/tile_back.gif"><div class='maintitle' align="center"> {ibf.lang.qr_title}</a></td>
<td width="1%"> <img border="0" src="http://ut-clan.org/forum/tile_back_right.gif" width="45" height="29"></td> </tr>
</table><div class="tableborder">
<div class="tablepad" align="center">
<br />
<table width="80%" border="1" cellspacing="" cellpadding="0" valign="top">
<tr>
<td class="pformleft" width="40%">
<input type='radio' name='bbmode' value='ezmode' onclick='setmode(this.value)' /> <b>Расширенный режим
</b><br />
<input type='radio' name='bbmode' value='normal' onclick='setmode(this.value)' checked="checked" /> <b>Нормальный режим
<script language='javascript' type="text/javascript" src='html/ibfcode.js'></script>
</td>
<td class="pformright" width="60%" valign="top">
<input type='button' accesskey='b' value=' B ' onclick='simpletag("B")' class='codebuttons' name='B' style="font-weight:bold" onmouseover="hstat('bold')" />
<input type='button' accesskey='i' value=' I ' onclick='simpletag("I")' class='codebuttons' name='I' style="font-style:italic" onmouseover="hstat('italic')" />
<input type='button' accesskey='u' value=' U ' onclick='simpletag("U")' class='codebuttons' name='U' style="text-decoration:underline" onmouseover="hstat('under')" />
<input type='button' style="text-decoration:line-through" accesskey='s' value=' S ' onclick = "insTxt()" class='codebuttons' name='S' onmouseover = "copyT('S')" />
<select name='ffont' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'FONT')" onmouseover="hstat('font')">
<option value='0'>{ibf.lang.ct_font}</option>
<option value='Arial' style='font-family:Arial'>{ibf.lang.ct_arial}</option>
<option value='Times' style='font-family:Times'>{ibf.lang.ct_times}</option>
<option value='Courier' style='font-family:Courier'>{ibf.lang.ct_courier}</option>
<option value='Impact' style='font-family:Impact'>{ibf.lang.ct_impact}</option>
<option value='Geneva' style='font-family:Geneva'>{ibf.lang.ct_geneva}</option>
<option value='Optima' style='font-family:Optima'>Optima</option>
<option value='Century Gothic' style='font-family:Century Gothic'>Century Gothic</option>
<option value='System' style='font-family:System'>System</option>
<option value='Arial Black' style='font-family:Arial Black'>Arial Black</option>
<option value='Book Antiqua' style='font-family:Book Antiqua'>Book Antiqua</option>
<option value='Fixedsys' style='font-family:Fixedsys'>Fixedsys</option>
<option value='Franklin Gothic Medium' style='font-family:Franklin Gothic Medium'>Franklin Gothic Medium</option>
<option value='Lucida Console' style='font-family:Lucida Console'>Lucida Console</option>
<option value='Palatino Linotype' style='font-family:Palatino Linotype'>Palatino Linotype</option>
<option value='Trebuchet Ms' style='font-family:Trebuchet Ms'>Trebuchet Ms</option>
<option value='Tahoma' style='font-family:Tahoma'>Tahoma</option>
<option value='Microsoft Sans Serif' style='font-family:Microsoft Sans Serif'>Microsoft Sans Serif</option>
<option value='Lucida Sans Unicode' style='font-family:Lucida Sans Unicode'>Lucida Sans Unicode</option>
<option value='Georgia' style='font-family:Georgia'>Georgia</option>
<option value='Garamond' style='font-family:Garamond'>Garamond</option>
<option value='Comic Sans Ms' style='font-family:Comic Sans Ms'>Comic Sans Ms</option>
<option value='Arial Narrow' style='font-family:Arial Narrow'>Arial Narrow</option>
<option value='Monotype Corsiva' style='font-family:'Monotype Corsiva'>Monotype Corsiva</option>
</select><select name='fsize' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'SIZE')" onmouseover="hstat('size')">
<option value='0'>{ibf.lang.ct_size}</option>
<option value='1'>{ibf.lang.ct_sml}</option>
<option value='4'>Небольшой</option>
<option value='6'>Почти большой</option>
<option value='7'>{ibf.lang.ct_lrg}</option>
<option value='10'>Ещё больше</option>
<option value='14'>{ibf.lang.ct_lest}</option>
<option value='19'>Очень огромный</option>
</select> <select name='fcolor' class='codebuttons' onchange="alterfont(this.options[this.selectedIndex].value, 'COLOR')" onmouseover="hstat('color')">
<option value='0'>{ibf.lang.ct_color}</option>
<option value='blue' style='color:blue'>{ibf.lang.ct_blue}</option>
<option value='red' style='color:red'>{ibf.lang.ct_red}</option>
<option value='purple' style='color:purple'>{ibf.lang.ct_purple}</option>
<option value='orange' style='color:orange'>{ibf.lang.ct_orange}</option>
<option value='yellow' style='color:yellow'>{ibf.lang.ct_yellow}</option>
<option value='gray' style='color:gray'>{ibf.lang.ct_grey}</option>
<option value='green' style='color:green'>{ibf.lang.ct_green}</option>
<option value='darkblue' style='color:darkblue'>Тёмно Синий</option>
<option value='red' style='color:red'>Красный</option>
<option value='#7400e8' style='color:#7400e8'>Фиолетовый</option>
<option value='#dc3410' style='color:#dc3410'>Оранжевый</option>
<option value='#ecb613' style='color:#ecb613'>Жёлтый</option>
<option value='#808080' style='color:#808080'>Серый</option>
<option value='#006600' style='color:#006600'>Зелёный</option>
<option value='darkred' style='color:darkred'>Тёмно Красный</option>
<option value='purple' style='color:purple'>Пурпурный</option>
<option value='orange' style='color:orange'>Светло Оранжевый</option>
<option value='yellow' style='color:yellow'>Светло Жёлтый</option>
<option value='#00f078' style='color:#00f078'>Салатовый</option>
<option value='#2020ff' style='color:#2020ff'>Голубой</option>
<option value='#804040' style='color:#804040'>Коричневый</option>
<option value='#c4024a' style='color:#c4024a'>Бордовый</option>
<option value='#6a6aff' style='color:#6a6aff'>Сиреневый</option>
</select>
<a href='javascript:closeall();' onmouseover="hstat('close')">{ibf.lang.js_close_all_tags}</a>
<br />
<input type='button' accesskey='h' value=' http:// ' onclick='tag_url()' class='codebuttons' name='url' onmouseover="hstat('url')">
<input type='button' accesskey='g' value=' IMG ' onclick='tag_image()' class='codebuttons' name='img' onmouseover="hstat('img')">
<input type='button' accesskey='e' value=' @ ' onclick='tag_email()' class='codebuttons' name='email' onmouseover="hstat('email')">
<input type='button' accesskey='q' value=' QUOTE ' onclick='simpletag("QUOTE")' class='codebuttons' name='QUOTE' onmouseover="hstat('quote')">
<input type='button' accesskey='p' value=' CODE ' onclick='simpletag("CODE")' class='codebuttons' name='CODE' onmouseover="hstat('code')">
<input type='hidden' accesskey='l' value=' LIST ' onclick='tag_list()' class='codebuttons' name="LIST" onmouseover="hstat('list')">
<input type='button' accesskey='l' value=' SQL ' onclick='simpletag("SQL")' class='codebuttons' name='SQL'>
<input type='button' accesskey='t' value=' HTML ' onclick='simpletag("HTML")' class='codebuttons' name='HTML'>
<br />
Открытых тэгов: <input type='text' name='tagcount' size='3' maxlength='3' style='color:#ffcc66;font-size:10px;font-family:verdana,arial;border:0px;font-weight:bold;' readonly="readonly" class='row1' value="0" />
<a href='javascript:closeall();' onmouseover="hstat('close')">Закрыть все тэги</a>
</td>
</tr>
<tr>
<div>
<td class="pformleft" width="40%" align="center" valign="middle">
<img src='http://1bb.ru/html/emoticons/0026.gif'></div>
<a href='javascript:emo_pop();'>{ibf.lang.show_emo}</a>
<br><script language=JavaScript>
<!--
var rus_lr2 = ('Е-е-О-о-Ё-Ё-Ё-Ё-Ж-Ж-Ч-Ч-Ш-Ш-Щ-Щ-Ъ-Ь-Э-Э-Ю-Ю-Я-Я-Я-Я-ё-ё-ж-ч-ш-щ-э-ю-я-я').split('-');
var lat_lr2 = ('/E-/e-/O-/o-ЫO-Ыo-ЙO-Йo-ЗH-Зh-ЦH-Цh-СH-Сh-ШH-Шh-ъ'+String.fromCharCode(35)+'-ь'+String.fromCharCode(39)+'-ЙE-Йe-ЙU-Йu-ЙA-Йa-ЫA-Ыa-ыo-йo-зh-цh-сh-шh-йe-йu-йa-ыa').split('-');
var rus_lr1 = ('А-Б-В-Г-Д-Е-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Х-Ц-Щ-Ы-Я-а-б-в-г-д-е-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-х-ц-щ-ъ-ы-ь-ь-я').split('-');
var lat_lr1 = ('A-B-V-G-D-E-Z-I-J-K-L-M-N-O-P-R-S-T-U-F-H-X-C-W-Y-Q-a-b-v-g-d-e-z-i-j-k-l-m-n-o-p-r-s-t-u-f-h-x-c-w-'+String.fromCharCode(35)+'-y-'+String.fromCharCode(39)+'-'+String.fromCharCode(96)+'-q').split('-');
var rus_rl = ('А-Б-В-Г-Д-Е-Ё-Ж-З-И-Й-К-Л-М-Н-О-П-Р-С-Т-У-Ф-Х-Ц-Ч-Ш-Щ-Ъ-Ы-Ь-Э-Ю-Я-а-б-в-г-д-е-ё-ж-з-и-й-к-л-м-н-о-п-р-с-т-у-ф-х-ц-ч-ш-щ-ъ-ы-ь-э-ю-я').split('-');
var lat_rl = ('A-B-V-G-D-E-JO-ZH-Z-I-J-K-L-M-N-O-P-R-S-T-U-F-H-C-CH-SH-SHH-'+String.fromCharCode(35)+String.fromCharCode(35)+'-Y-'+String.fromCharCode(39)+String.fromCharCode(39)+'-JE-JU-JA-a-b-v-g-d-e-jo-zh-z-i-j-k-l-m-n-o-p-r-s-t-u-f-h-c-ch-sh-shh-'+String.fromCharCode(35)+'-y-'+String.fromCharCode(39)+'-je-ju-ja').split('-');
var translitown=0;var language = 0;
if (document.images) {swrus_src = new Image; swrus_src = "pict/swrus.gif";swlat_src = new Image; swlat_src = "pict/swlat.gif";}
function setfoc(){document.post.message.focus();}
function compbelongs(isprivate)
{
translitown = isprivate;
if (translitown==1) {document.post.message.createTextRange().execCommand("Copy");}
document.cookie = "trowncomputer=" + escape(isprivate);
return true;
}
function upgradeclipboard()
{
if (translitown==1) {document.post.message.createTextRange().execCommand("Copy");}
return true;
}
function setlangpicture(){document.ruslat.src = swrus_src;}
function changelanguage(){if (language==1) {language=0; document.images['ruslat'].src = swrus_src; document.post.message.focus();return;}if (language==0) {language=1; document.images['ruslat'].src = swlat_src; document.post.message.focus();return;}}
function AkeyIsDown()
{
if (event.ctrlKey && event.altKey) changelanguage();
if (window.event.keyCode==27) event.returnValue=false;
return false;
}
function translate_letter()
{
if (language==1) return; //no transliteration necessary
//the entered character
var code = event.keyCode;
txt=String.fromCharCode(code);
//make selection
cursor_pos_selection = document.selection.createRange();
//delete something is selected before
cursor_pos_selection.text="";
//get the previous character
cursor_pos_selection.moveStart("character",-1);
pretxt = cursor_pos_selection.text;
if (pretxt.length>1) {pretxt="";}
event.keyCode = 0;
result = translatesymboltocyrillic(pretxt,txt)
//delete the previous symbol if it is exists (if the entered symbol is not the first one)
if (pretxt!="") { cursor_pos_selection.select(); cursor_pos_selection.collapse();}
with(document.selection.createRange()) {text = result; collapse(); select()}
return;
}
function translatesymboltocyrillic(pretxt,txt)
{
var doubletxt = pretxt+txt;
var code = txt.charCodeAt(0);
if (!(((code>=65) && (code<=123))||(code==35)||(code==39))) return doubletxt;
var ii;
for (ii=0; ii<lat_lr2.length; ii++)
{
if (lat_lr2[ii]==doubletxt) return rus_lr2[ii];
}
for (ii=0; ii<lat_lr1.length; ii++)
{
if (lat_lr1[ii]==txt) return pretxt+rus_lr1[ii];
}
return doubletxt;
}
function translatesymboltolatin(symb)
{
var ii;
for (ii=0; ii<rus_rl.length; ii++)
{
if (rus_rl[ii]==symb)
return lat_rl[ii];
}
return symb;
}
function translateAlltoCyrillic()
{
var is_selection_flag = 1;
var userselection = document.selection.createRange();
var txt = userselection.text;
if (userselection==null || userselection.text==null || userselection.parentElement==null || userselection.parentElement().type!="textarea")
{
// no text selected, all the text in the textarea is to be processed
is_selection_flag = 0;
txt = document.post.message.value;
}
var txtnew = translatesymboltocyrillic("",txt.substr(0,1));
var symb = "";
for (kk=1;kk<txt.length;kk++)
{
symb = translatesymboltocyrillic(txtnew.substr(txtnew.length-1,1),txt.substr(kk,1));
txtnew = txtnew.substr(0,txtnew.length-1) + symb;
}
if (is_selection_flag)
{
userselection.text = txtnew; userselection.collapse(); userselection.select();
}
else
{
document.post.message.value = txtnew;
document.post.message.focus();
}
return;
}
function translateAlltoLatin()
{
var is_selection_flag = 1;
var userselection = document.selection.createRange();
var txt = userselection.text;
if (userselection==null || userselection.text==null || userselection.parentElement==null || userselection.parentElement().type!="textarea")
{
// no text selected, all the text in the textarea is to be processed
is_selection_flag = 0;
txt = document.post.message.value;
}
txtnew="";
var symb = "";
for (kk=0;kk<txt.length;kk++)
{
symb = translatesymboltolatin(txt.substr(kk,1));
txtnew = txtnew.substr(0,txtnew.length) + symb;
}
if (is_selection_flag)
{
userselection.text = txtnew; userselection.collapse(); userselection.select();
}
else
{
document.post.message.value = txtnew;
document.post.message.focus();
}
return;
}
//-->
</SCRIPT>
<br /> <INPUT class=button onclick=translateAlltoCyrillic();upgradeclipboard(); type=button value="в кириллицу">
<INPUT class=button onclick=translateAlltoLatin();upgradeclipboard(); type=button value="в латиницу"><br />
</td>
<td class="pformright" width="60%">
<textarea cols='70' rows='10' name='Post' class='textinput' tabindex="1" id="tex" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" onfocus="storeCaret(this);"></textarea>
</td>
</tr>
<tr>
<td class="pformleft" width="40%">Опции сообщения</td>
<td class="pformright" width="60%">
<input type='checkbox' name='enableemo' value='yes' class="checkbox" checked="checked" /> {ibf.lang.qr_add_smilie}
<br />
<input type='checkbox' name='enablesig' value='yes' class="checkbox" checked="checked" /> {ibf.lang.qr_add_sig}
</td>
</tr>
<tr>
<td class="pformleft" width="40%">
Вы можете загрузить файл в это сообщение
</td>
<td class="pformright" width="60%">
<input type='file' name='FILE_UPLOAD' class='textinput' size='30' />
</td>
</tr>
</table>
<br />
<input type='submit' name='submit' value='{ibf.lang.qr_submit} (Ctrl+Enter)' class='forminput' tabindex="2" accesskey="s" />
<input type='submit' name='preview' value='{ibf.lang.qr_more_opts}' class='forminput' />
<input type='button' name='qrc' onclick="ShowHide('qr_open','qr_closed');" value='{ibf.lang.qr_closeit}' class='forminput' />
<br />
</div>
</div>
</form>
</div>
