Revision 126 (by ahitrov, 2011/08/26 14:05:10) |
param 'rows => n' in notetext field type
|
<script LANGUAGE="JavaScript"><!--
function li()
{
document.form.<% $name %>.focus();
sel = document.selection.createRange();
s= "<ul>\n"+sel.text;
re = /\n/g;
s = s.replace(re, "\n<li>");
s=s+"\n</ul>"
sel.text= s;
}
function insertTags( TagOpen, TagClose )
{
document.form.<% $name %>.focus();
selectArea = document.selection.createRange();
selectArea.text= TagOpen + selectArea.text + TagClose;
}
// --->
</script>
<table border="0" width="95%" style="font-size:11px; font-weight:; font-family:Tahoma;background-color:#dcdcdc;color:#000000;">
<tr><td>
Вставка тегов:<br>
<a style="color:#000000" href="javascript: insertTags('<br>','')" title="перевод строки"><br></a>
<a style="color:#000000" href="javascript: insertTags('<p>','')" title="абзац"><p></a>
<a style="color:#000000" href="javascript: insertTags('<b>','</b>')" title="полужирный текст"><b></a>
<a style="color:#000000" href="javascript: insertTags('<i>','</i>')" title="курсив"><i></a>
<a style="color:#000000" href="javascript: insertTags('<u>','</u>')" title="подчеркивание"><u></a>
<a style="color:#000000" href="javascript: insertTags('<h2>','</h2>')" title="заголовок h2"><h2></a>
<a style="color:#000000" href="javascript: insertTags('<h3>','</h3>')" title="заголовок h2"><h3></a>
<a style="color:#000000" href="javascript: insertTags('<h4>','</h4>')" title="заголовок h2"><h4></a>
<a style="color:#000000" href="javascript: insertTags('<a href=>','</a>')" title="ссылка"><a href></a>
<a style="color:#000000" href="javascript: insertTags('<div align=center>','</div>')" title=""><div center></a>
<a style="color:#000000" href="javascript: insertTags('<ul>','</ul>')" title="список"><ul></a>
<a style="color:#000000" href="javascript: insertTags('<li>','')" title="элемент списка"><li></a>
<a style="color:#000000" href="javascript: insertTags('<blockquote>','</blockquote>')" title="цитата"><blockquote></a>
<a style="color:#000000" href="javascript: insertTags('<code>','</code>')" title="пример кода"><code></a>
</td><td align="right" valign="bottom">
<a style="color:#000000" href="javascript: li()" title="вставить список(ul-li)">Вставить список</a>
</td></tr></table>
<textarea name="<% $name %>" rows="<% $prop->{rows} || 30 %>" cols="60" style="width:95%;font-family:arial;font-size:9pt;"><% $check %></textarea>
<%args>
$name => undef
$check => undef
$prop => {}
</%args>