styles/subsilver2/template/posting_buttons.html
author indvdum (gotoindvdum[at]gmail[dot]com)
Wed, 07 Mar 2012 23:06:09 +0400
changeset 6 40f90a92f114
parent 0 ceef6d64c21d
permissions -rw-r--r--
Game logo
     1 <tr valign="middle" align="{S_CONTENT_FLOW_BEGIN}">
     2 	<td colspan="2">
     3 		<script type="text/javascript">
     4 		// <![CDATA[
     5 		
     6 		// Define the bbCode tags
     7 		var bbcode = new Array();
     8 		var bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[quote]','[/quote]','[code]','[/code]','[list]','[/list]','[list=]','[/list]','[img]','[/img]','[url]','[/url]','[flash=]', '[/flash]','[size=]','[/size]'<!-- BEGIN custom_tags -->, {custom_tags.BBCODE_NAME}<!-- END custom_tags -->);
     9 		var imageTag = false;
    10 		
    11 		// Helpline messages
    12 		var help_line = {
    13 			b: '{LA_BBCODE_B_HELP}',
    14 			i: '{LA_BBCODE_I_HELP}',
    15 			u: '{LA_BBCODE_U_HELP}',
    16 			q: '{LA_BBCODE_Q_HELP}',
    17 			c: '{LA_BBCODE_C_HELP}',
    18 			l: '{LA_BBCODE_L_HELP}',
    19 			o: '{LA_BBCODE_O_HELP}',
    20 			p: '{LA_BBCODE_P_HELP}',
    21 			w: '{LA_BBCODE_W_HELP}',
    22 			a: '{LA_BBCODE_A_HELP}',
    23 			s: '{LA_BBCODE_S_HELP}',
    24 			f: '{LA_BBCODE_F_HELP}',
    25 			y: '{LA_BBCODE_Y_HELP}',
    26 			d: '{LA_BBCODE_D_HELP}',
    27 			tip: '{L_STYLES_TIP}'
    28 			<!-- BEGIN custom_tags -->
    29 				,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
    30 			<!-- END custom_tags -->
    31 		}
    32 
    33 		// ]]>
    34 		</script>
    35 		<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script>
    36 
    37 <!-- IF S_BBCODE_ALLOWED -->
    38 		<input type="button" class="btnbbcode" accesskey="b" name="addbbcode0" value=" B " style="font-weight:bold; width: 30px;" onclick="bbstyle(0)" onmouseover="helpline('b')" onmouseout="helpline('tip')" />
    39 		<input type="button" class="btnbbcode" accesskey="i" name="addbbcode2" value=" i " style="font-style:italic; width: 30px;" onclick="bbstyle(2)" onmouseover="helpline('i')" onmouseout="helpline('tip')" />
    40 		<input type="button" class="btnbbcode" accesskey="u" name="addbbcode4" value=" u " style="text-decoration: underline; width: 30px;" onclick="bbstyle(4)" onmouseover="helpline('u')" onmouseout="helpline('tip')" />
    41 		<!-- IF S_BBCODE_QUOTE -->
    42 			<input type="button" class="btnbbcode" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" onmouseover="helpline('q')" onmouseout="helpline('tip')" />
    43 		<!-- ENDIF -->
    44 		<input type="button" class="btnbbcode" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" onmouseover="helpline('c')" onmouseout="helpline('tip')" />
    45 		<input type="button" class="btnbbcode" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" onmouseover="helpline('l')" onmouseout="helpline('tip')" />
    46 		<input type="button" class="btnbbcode" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" onmouseover="helpline('o')" onmouseout="helpline('tip')" />
    47 		<input type="button" class="btnbbcode" accesskey="y" name="addlistitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" onmouseover="helpline('e')" onmouseout="helpline('tip')" />				
    48 		<!-- IF S_BBCODE_IMG -->
    49 			<input type="button" class="btnbbcode" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('tip')" />
    50 		<!-- ENDIF -->
    51 		<!-- IF S_LINKS_ALLOWED -->
    52 			<input type="button" class="btnbbcode" accesskey="w" name="addbbcode16" value="URL" style="text-decoration: underline; width: 40px" onclick="bbstyle(16)" onmouseover="helpline('w')" onmouseout="helpline('tip')" />
    53 		<!-- ENDIF -->
    54 		<!-- IF S_BBCODE_FLASH -->
    55 			<input type="button" class="btnbbcode" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />
    56 		<!-- ENDIF -->
    57 		<span class="genmed nowrap">{L_FONT_SIZE}: <select class="gensmall" name="addbbcode20" onchange="bbfontstyle('[size=' + this.form.addbbcode20.options[this.form.addbbcode20.selectedIndex].value + ']', '[/size]');this.form.addbbcode20.selectedIndex = 2;" onmouseover="helpline('f')" onmouseout="helpline('tip')">
    58 			<option value="50">{L_FONT_TINY}</option>
    59 			<option value="85">{L_FONT_SMALL}</option>
    60 			<option value="100" selected="selected">{L_FONT_NORMAL}</option>
    61 			<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
    62 				<option value="150">{L_FONT_LARGE}</option>
    63 				<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
    64 					<option value="200">{L_FONT_HUGE}</option>
    65 				<!-- ENDIF -->
    66 			<!-- ENDIF -->
    67 		</select></span>
    68 <!-- ENDIF -->
    69 	</td>
    70 </tr>
    71 <!-- IF S_BBCODE_ALLOWED and .custom_tags -->
    72 	<tr valign="middle" align="{S_CONTENT_FLOW_BEGIN}">
    73 		<td colspan="2">
    74 		<!-- BEGIN custom_tags -->
    75 			<input type="button" class="btnbbcode" name="addbbcode{custom_tags.BBCODE_ID}" value="{custom_tags.BBCODE_TAG}" onclick="bbstyle({custom_tags.BBCODE_ID})"<!-- IF custom_tags.BBCODE_HELPLINE !== '' --> onmouseover="helpline('cb_{custom_tags.BBCODE_ID}')" onmouseout="helpline('tip')"<!-- ENDIF --> />
    76 		<!-- END custom_tags -->
    77 		</td>
    78 	</tr>
    79 <!-- ENDIF -->
    80 <!-- IF S_BBCODE_ALLOWED -->
    81 <tr>
    82 	<td<!-- IF $S_SIGNATURE or S_EDIT_DRAFT --> colspan="2"<!-- ENDIF -->><input type="text" readonly="readonly" name="helpbox" style="width:100%" class="helpline" value="{L_STYLES_TIP}" /></td>
    83 	<!-- IF not $S_SIGNATURE and not S_EDIT_DRAFT -->
    84 		<td class="genmed" align="center">{L_FONT_COLOR}</td>
    85 	<!-- ENDIF -->
    86 </tr>
    87 <!-- ENDIF -->