Changeset 1705 in ExiteCMS for trunk/includes/templates/main.edit_profile.tpl
- Timestamp:
- 08/27/08 22:37:24 (4 years ago)
- File:
-
- 1 edited
-
trunk/includes/templates/main.edit_profile.tpl (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/templates/main.edit_profile.tpl
r1700 r1705 278 278 <input type='button' value='small' class='button' style='width:40px;' onclick="addText('user_sig', '[small]', '[/small]');" /> 279 279 {else} 280 <style type='text/css'>@import url({$smarty.const.THEME}hoteditor/style.css);</style>281 <input type='hidden' id='user_sig' name='user_sig' value='{$this_userdata.user_sig}' />282 <script language="javascript" type="text/javascript">283 var hoteditor_path = "{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/";284 var hoteditor_theme_path = "{$smarty.const.THEME}hoteditor";285 var hoteditor_reply_to = "";286 </script>287 <script language="javascript" type="text/javascript" src="{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/editor__0001.js?version=4.2"></script>288 {literal}289 280 <script language="javascript" type="text/javascript"> 290 281 // non-standard toolbars for this editor instance 291 toolbar1 ="SPACE,btFont_Name,btFont_Size,btFont_Color,btHighlight";292 toolbar2 ="SPACE,btRemove_Format,SPACE,btBold,btItalic,btUnderline,SPACE,btAlign_Left,btCenter,btAlign_Right,SPACE,btStrikethrough,btSubscript,btSuperscript,btHorizontal";293 toolbar3 ="SPACE,btHyperlink,btHyperlink_Email,btInsert_Image,btEmotions";282 var toolbar1 ="SPACE,btFont_Name,btFont_Size,btFont_Color,btHighlight"; 283 var toolbar2 ="SPACE,btRemove_Format,SPACE,btBold,btItalic,btUnderline,SPACE,btAlign_Left,btCenter,btAlign_Right,SPACE,btStrikethrough,btSubscript,btSuperscript,btHorizontal"; 284 var toolbar3 ="SPACE,btHyperlink,btHyperlink_Email,btInsert_Image,btEmotions"; 294 285 295 textarea_toolbar1 ="SPACE,btFont_Name,btFont_Size,btFont_Color,btHighlight"; 296 textarea_toolbar2 ="SPACE,btRemove_Format,SPACE,btBold,btItalic,btUnderline,SPACE,btAlign_Left,btCenter,btAlign_Right,SPACE,btStrikethrough,btSubscript,btSuperscript,btHorizontal"; 297 textarea_toolbar3 ="SPACE,btHyperlink,btHyperlink_Email,btInsert_Image,btEmotions"; 298 299 var getdata = document.getElementById("user_sig").value; 300 Instantiate("max","editor", getdata , "250px", "200px"); 301 302 //For Vietnamese User. Edit file editor.js to enable vietnamese keyboard 303 if(enable_vietnamese_keyboard==1){ 304 document.write("<script language=\"JavaScript\" type=\"text/javascript\" src={/literal}{$smarty.const.INCLUDES}jscripts/hoteditor-4.2/avim.js{literal}><\/script>"); 305 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";} 306 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>"); 307 } 308 309 if(enable_vietnamese_keyboard==1){ 310 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";} 311 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>"); 312 } 313 function get_hoteditor_data(){ 314 setCodeOutput(); 315 var bbcode_output=document.getElementById("hoteditor_bbcode_ouput_editor").value;//Output to BBCode 316 document.getElementById("user_sig").value = bbcode_output; 317 } 286 var textarea_toolbar1 ="SPACE,btFont_Name,btFont_Size,btFont_Color,btHighlight"; 287 var textarea_toolbar2 ="SPACE,btRemove_Format,SPACE,btBold,btItalic,btUnderline,SPACE,btAlign_Left,btCenter,btAlign_Right,SPACE,btStrikethrough,btSubscript,btSuperscript,btHorizontal"; 288 var textarea_toolbar3 ="SPACE,btHyperlink,btHyperlink_Email,btInsert_Image,btEmotions"; 318 289 </script> 319 { /literal}290 {include file="_bbcode_editor.tpl" name="user_sig" id="user_sig" author="" message=$this_userdata.user_sig width="250px" height="200px"} 320 291 {/if} 321 292 </td>
Note: See TracChangeset
for help on using the changeset viewer.
