styles/subsilver2/template/posting_buttons.html
changeset 0 ceef6d64c21d
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/styles/subsilver2/template/posting_buttons.html	Wed Mar 07 16:41:10 2012 +0400
     1.3 @@ -0,0 +1,87 @@
     1.4 +<tr valign="middle" align="{S_CONTENT_FLOW_BEGIN}">
     1.5 +	<td colspan="2">
     1.6 +		<script type="text/javascript">
     1.7 +		// <![CDATA[
     1.8 +		
     1.9 +		// Define the bbCode tags
    1.10 +		var bbcode = new Array();
    1.11 +		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 -->);
    1.12 +		var imageTag = false;
    1.13 +		
    1.14 +		// Helpline messages
    1.15 +		var help_line = {
    1.16 +			b: '{LA_BBCODE_B_HELP}',
    1.17 +			i: '{LA_BBCODE_I_HELP}',
    1.18 +			u: '{LA_BBCODE_U_HELP}',
    1.19 +			q: '{LA_BBCODE_Q_HELP}',
    1.20 +			c: '{LA_BBCODE_C_HELP}',
    1.21 +			l: '{LA_BBCODE_L_HELP}',
    1.22 +			o: '{LA_BBCODE_O_HELP}',
    1.23 +			p: '{LA_BBCODE_P_HELP}',
    1.24 +			w: '{LA_BBCODE_W_HELP}',
    1.25 +			a: '{LA_BBCODE_A_HELP}',
    1.26 +			s: '{LA_BBCODE_S_HELP}',
    1.27 +			f: '{LA_BBCODE_F_HELP}',
    1.28 +			y: '{LA_BBCODE_Y_HELP}',
    1.29 +			d: '{LA_BBCODE_D_HELP}',
    1.30 +			tip: '{L_STYLES_TIP}'
    1.31 +			<!-- BEGIN custom_tags -->
    1.32 +				,cb_{custom_tags.BBCODE_ID}: '{custom_tags.A_BBCODE_HELPLINE}'
    1.33 +			<!-- END custom_tags -->
    1.34 +		}
    1.35 +
    1.36 +		// ]]>
    1.37 +		</script>
    1.38 +		<script type="text/javascript" src="{T_SUPER_TEMPLATE_PATH}/editor.js"></script>
    1.39 +
    1.40 +<!-- IF S_BBCODE_ALLOWED -->
    1.41 +		<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')" />
    1.42 +		<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')" />
    1.43 +		<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')" />
    1.44 +		<!-- IF S_BBCODE_QUOTE -->
    1.45 +			<input type="button" class="btnbbcode" accesskey="q" name="addbbcode6" value="Quote" style="width: 50px" onclick="bbstyle(6)" onmouseover="helpline('q')" onmouseout="helpline('tip')" />
    1.46 +		<!-- ENDIF -->
    1.47 +		<input type="button" class="btnbbcode" accesskey="c" name="addbbcode8" value="Code" style="width: 40px" onclick="bbstyle(8)" onmouseover="helpline('c')" onmouseout="helpline('tip')" />
    1.48 +		<input type="button" class="btnbbcode" accesskey="l" name="addbbcode10" value="List" style="width: 40px" onclick="bbstyle(10)" onmouseover="helpline('l')" onmouseout="helpline('tip')" />
    1.49 +		<input type="button" class="btnbbcode" accesskey="o" name="addbbcode12" value="List=" style="width: 40px" onclick="bbstyle(12)" onmouseover="helpline('o')" onmouseout="helpline('tip')" />
    1.50 +		<input type="button" class="btnbbcode" accesskey="y" name="addlistitem" value="[*]" style="width: 40px" onclick="bbstyle(-1)" onmouseover="helpline('e')" onmouseout="helpline('tip')" />				
    1.51 +		<!-- IF S_BBCODE_IMG -->
    1.52 +			<input type="button" class="btnbbcode" accesskey="p" name="addbbcode14" value="Img" style="width: 40px" onclick="bbstyle(14)" onmouseover="helpline('p')" onmouseout="helpline('tip')" />
    1.53 +		<!-- ENDIF -->
    1.54 +		<!-- IF S_LINKS_ALLOWED -->
    1.55 +			<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')" />
    1.56 +		<!-- ENDIF -->
    1.57 +		<!-- IF S_BBCODE_FLASH -->
    1.58 +			<input type="button" class="btnbbcode" accesskey="d" name="addbbcode18" value="Flash" onclick="bbstyle(18)" onmouseover="helpline('d')" onmouseout="helpline('tip')" />
    1.59 +		<!-- ENDIF -->
    1.60 +		<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')">
    1.61 +			<option value="50">{L_FONT_TINY}</option>
    1.62 +			<option value="85">{L_FONT_SMALL}</option>
    1.63 +			<option value="100" selected="selected">{L_FONT_NORMAL}</option>
    1.64 +			<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 150 -->
    1.65 +				<option value="150">{L_FONT_LARGE}</option>
    1.66 +				<!-- IF not MAX_FONT_SIZE or MAX_FONT_SIZE >= 200 -->
    1.67 +					<option value="200">{L_FONT_HUGE}</option>
    1.68 +				<!-- ENDIF -->
    1.69 +			<!-- ENDIF -->
    1.70 +		</select></span>
    1.71 +<!-- ENDIF -->
    1.72 +	</td>
    1.73 +</tr>
    1.74 +<!-- IF S_BBCODE_ALLOWED and .custom_tags -->
    1.75 +	<tr valign="middle" align="{S_CONTENT_FLOW_BEGIN}">
    1.76 +		<td colspan="2">
    1.77 +		<!-- BEGIN custom_tags -->
    1.78 +			<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 --> />
    1.79 +		<!-- END custom_tags -->
    1.80 +		</td>
    1.81 +	</tr>
    1.82 +<!-- ENDIF -->
    1.83 +<!-- IF S_BBCODE_ALLOWED -->
    1.84 +<tr>
    1.85 +	<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>
    1.86 +	<!-- IF not $S_SIGNATURE and not S_EDIT_DRAFT -->
    1.87 +		<td class="genmed" align="center">{L_FONT_COLOR}</td>
    1.88 +	<!-- ENDIF -->
    1.89 +</tr>
    1.90 +<!-- ENDIF -->