Changeset 1706 in ExiteCMS for branches/PLi-Fusion/includes/templates/main.pm.post.tpl
- Timestamp:
- 08/27/08 22:48:36 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/PLi-Fusion/includes/templates/main.pm.post.tpl
r1702 r1706 128 128 <textarea name='message' cols='80' rows='15' class='textbox' style='width:100%; height:{math equation="x/4" x=$smarty.const.BROWSER_HEIGHT format="%u"}px;'>{$message}</textarea> 129 129 {else} 130 <style type='text/css'>@import url({$smarty.const.THEME}hoteditor/style.css);</style> 131 <input type='hidden' id='message' name='message' value='{$message}' /> 132 <script language="javascript" type="text/javascript"> 133 var hoteditor_path = "{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/"; 134 var hoteditor_theme_path = "{$smarty.const.THEME}hoteditor"; 135 var hoteditor_reply_to = "{$orgauthor|default:""}"; 136 </script> 137 <script language="javascript" type="text/javascript" src="{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/editor__0001.js?version=4.2"></script> 138 {literal} 139 <script language="javascript" type="text/javascript"> 140 var getdata = document.getElementById("message").value; 141 Instantiate("max","editor", getdata , "100%", "250px"); 142 143 //For Vietnamese User. Edit file editor.js to enable vietnamese keyboard 144 if(enable_vietnamese_keyboard==1){ 145 document.write("<script language=\"JavaScript\" type=\"text/javascript\" src={/literal}{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/avim.js{literal}><\/script>"); 146 var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked="";var him_telex_checked="";var him_vni_checked="";var him_viqr_checked="";var him_viqr2_checked="";var him_off_checked="";if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";} 147 document.write("<div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off<br><img src="+styles_folder_path+"/vietnamese_symbol.gif></div>"); 148 } 149 150 if(enable_vietnamese_keyboard==1){ 151 var hoteditor_avim_method = hot_readCookie("hoteditor_avim_method");var him_auto_checked;var him_telex_checked;var him_vni_checked;var him_viqr_checked;var him_viqr2_checked;var him_off_checked;if(hoteditor_avim_method=="0"){him_auto_checked="checked";}else if(hoteditor_avim_method=="1"){him_telex_checked="checked";}else if(hoteditor_avim_method=="2"){him_vni_checked="checked";}else if(hoteditor_avim_method=="3"){him_viqr_checked="checked";}else if(hoteditor_avim_method=="4"){him_viqr2_checked="checked";}else if(hoteditor_avim_method=="-1"){him_off_checked="checked";} 152 document.write("<script language=\"JavaScript\" type=\"text/javascript\" src={/literal}{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/avim.js{literal}><\/script><div style='width:100%;text-align:center;font-family:Verdana;font-size:11px;'><input "+him_auto_checked+" id=him_auto onclick=setMethod(0); type=radio name=viet_method> Auto :: <input "+him_telex_checked+" id=him_telex onclick=setMethod(1); type=radio name=viet_method> Telex :: <input "+him_vni_checked+" id=him_vni onclick=setMethod(2); type=radio name=viet_method> VNI :: <input "+him_viqr_checked+" id=him_viqr onclick=setMethod(3); type=radio name=viet_method> VIQR :: <input "+him_viqr2_checked+" id=him_viqr2 onclick=setMethod(4); type=radio name=viet_method> VIQR* :: <input "+him_off_checked+" id=him_off onclick=setMethod(-1); type=radio name=viet_method> Off</div>"); 153 } 154 function get_hoteditor_data(){ 155 setCodeOutput(); 156 var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode 157 document.getElementById("message").value = bbcode_output; 158 } 159 </script> 160 {/literal} 130 {include file="_bbcode_editor.tpl" name="message" id="message" author=$orgauthor message=$message width="100%" height="250px"} 161 131 {/if} 162 132 </td>
Note: See TracChangeset
for help on using the changeset viewer.
