<!-- IF_TITLE: ##id##, Modify Extra Page, Add Extra Page -->
<!-- TITLE: Add / Modify Extra Page -->
<script> var Site_URL = "../"; </script>
<script src="../html_editor/htmlarea2/htmlarea.js"></script>
<script>
var w_loaded;
function LoadHTMLArea(){
var f = document.frm;
var re = new RegExp("<script", "i");
if(f.content.value.match(re)){
f.wysiwyg.checked = false;
alert('Sorry, this page contains Javascript code.\nYou can edit only pages without Javascript in WYSIWYG mode.');
return;
}
if(!w_loaded && f.wysiwyg.checked){
editor_generate('content');
f.wysiwyg.disabled = true;
w_loaded = 1;
}
}
function str_replace(search,replace,s) {
while (s.indexOf(search)!=-1) {
s = s.replace(search,replace);
}
return s;
}
</script>
<table width=100% border=0 cellpadding=5>
<tr>
<td colspan=3>
<form method=post name=frm>
<table border=0 cellspacing=0 cellpadding=1 width="100%">
<tr>
<td colspan=2 align=right>
<p class=ag_adm>
WYSIWYG Content Editor ?
<input type=checkbox name=wysiwyg value=1 OnClick="LoadHTMLArea()" disabled>
<font color=blue class=txt8>IE 5.5+</font>
</p>
</td>
</tr>
<!-- TPL_INSERT : row -->
<!-- TPL_CELL : def -->
<tr>
<td><p class=ag_##css##>##f_t## </p></td>
<td>##f_v## <font class=txt8 color=blue>##f_txt##</td>
</tr>
<!-- /TPL_CELL : def -->
<!-- /TPL_INSERT : row -->
<tr height=30>
<td> </td>
<td>
<input type=submit value="Submit" name=go class=button><input type=button value="Cancel" class=button onClick="document.location='##PAGE_URL##'">
</td>
</tr>
</table>
</form>
<script>
var win_ie_ver = parseFloat(navigator.appVersion.split("MSIE")[1]);
if (navigator.userAgent.indexOf('Mac') >= 0) { win_ie_ver = 0; }
else if (navigator.userAgent.indexOf('Windows CE') >= 0) { win_ie_ver = 0; }
else if (navigator.userAgent.indexOf('Opera') >= 0) { win_ie_ver = 0; }
if (win_ie_ver >= 5.5) document.frm.wysiwyg.disabled = false;
</script>
</td>
</tr>
</table>