Changeset 1648 in ExiteCMS for trunk/includes/templates/forum.post.tpl
- Timestamp:
- 08/17/08 22:34:14 (4 years ago)
- File:
-
- 1 edited
-
trunk/includes/templates/forum.post.tpl (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/templates/forum.post.tpl
r1627 r1648 62 62 </td> 63 63 <td class='tbl1'> 64 {if $settings.hoteditor_enabled == 0 }64 {if $settings.hoteditor_enabled == 0 || $userdata.user_hoteditor == 0} 65 65 <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> 66 66 <br /> … … 86 86 </select> 87 87 {else} 88 <input type='hidden' id='hoteditor_bbcode_ouput_editor' name='message' value='{$message}' /> 88 <style type='text/css'>@import url({$smarty.const.THEME}hoteditor/style.css);</style> 89 <input type='hidden' id='message' name='message' value='{$message}' /> 89 90 <script language="javascript" type="text/javascript"> 90 91 var hoteditor_path = "{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/"; 91 92 var hoteditor_theme_path = "{$smarty.const.THEME}hoteditor"; 92 93 </script> 93 <script language="javascript" type="text/javascript" src="{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/editor .js?version=4.2"></script>94 <script language="javascript" type="text/javascript" src="{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/editor__0001.js?version=4.2"></script> 94 95 {literal} 95 96 <script language="javascript" type="text/javascript"> 96 var getdata = "";97 Instantiate("max","editor", getdata , "100%", " 300px");97 var getdata = document.getElementById("message").value; 98 Instantiate("max","editor", getdata , "100%", "250px"); 98 99 99 100 //For Vietnamese User. Edit file editor.js to enable vietnamese keyboard … … 108 109 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>"); 109 110 } 110 111 111 function get_hoteditor_data(){ 112 112 setCodeOutput(); 113 113 var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode 114 114 document.getElementById("message").value = bbcode_output; 115 document.getElementById("preview_innerhtml").innerHTML=html_output;116 115 } 117 116 </script> … … 120 119 </td> 121 120 </tr> 121 {if $settings.hoteditor_enabled == 0 || $userdata.user_hoteditor == 0} 122 122 <tr> 123 123 <td align='right' width='145' valign='top' class='tbl2'> … … 128 128 </td> 129 129 </tr> 130 {/if} 130 131 <tr> 131 132 <td align='right' width='145' valign='top' class='tbl2'> … … 137 138 <br /> 138 139 {/if} 139 {if $opt_smileys }140 {if $opt_smileys && ($settings.hoteditor_enabled == 0 || $userdata.user_hoteditor == 0)} 140 141 <input type='checkbox' name='disable_smileys' value='1'{if $is_smileys_disabled} checked{/if} />{$locale.483} 141 142 <br /> … … 295 296 {/if} 296 297 <input type='submit' name='cancel' value='{$locale.417}' class='button' /> 297 <input type='submit' name='preview' value='{$button_preview}' class='button' />298 <input type='submit' name='save' value='{$button_save}' class='button' />298 <input type='submit' name='preview' value='{$button_preview}' class='button' onclick='javascript:get_hoteditor_data();' /> 299 <input type='submit' name='save' value='{$button_save}' class='button' onclick='javascript:get_hoteditor_data();' /> 299 300 <input type='hidden' name='post_author' value='{$post_author}' /> 300 301 <input type='hidden' name='random_id' value='{$random_id}' />
Note: See TracChangeset
for help on using the changeset viewer.
