📄 _document_file_template.php
字号:
function btAddContinue_ondoc()
{
MyForm.content.value=Composition.document.body.innerHTML;
if(MyForm.content.value==""){
alert('编辑的正文内容不能为空!');
return false;
}else{
var saveOrNot=confirm("文件的内容为:"+MyForm.content.value+"\n\n您确定要保存吗?");
if(saveOrNot==false){
return false;
}else{
MyForm.submit();
}
}
if (CheckPages())
{
MyForm.action = "document.php?action=template&sysaction=add&id=<?=$id?>"
MyForm.submit();
document.MyForm.btAddContinue.disabled = true;
}
}
//-->
</SCRIPT>
<SCRIPT>
<!--
var blnLoad=false
var pureText=true
var viewMode ="DESIGN";
var initHTML ="";
var bodyTag="<BODY leftmargin=0 topmargin=0 STYLE='font:9pt arial,sans-serif'></BODY>"
public_description=new Editor
function Editor() {
this.put_html=SetHtml;
this.get_html=GetHtml;
}
function GetHtml() {
if (viewMode=="HTML")
return Composition.document.body.innerText
else {
cleanHtml();
cleanHtml();
return Composition.document.body.innerHTML;
}
}
function public_SetMyHtml(sVal) {
if (viewMode=="HTML")
Composition.document.body.innerText=sVal
else
Composition.document.body.innerHTML=sVal
}
function SetHtml(sVal) {
if (viewMode=="HTML")
Composition.document.body.innerText=sVal
else
Composition.document.body.innerHTML=sVal
}
//初始化一些值 in the inner html text area
function init() {
blnLoad=true;
window.self.focus();
var objForm=document.forms(0);
var strHTML="";
Composition.document.body.innerHTML = strHTML;
}
function formSubmit(){
form1.content.value=Composition.document.body.innerHTML;
if(form1.content.value==""){
alert('编辑的正文内容不能为空!');
return false;
}else{
var saveOrNot=confirm("文件的内容为:"+form1.content.value+"\n\n您确定要保存吗?");
if(saveOrNot==false){
return false;
}else{
form1.submit();
}
}
}
function showStatus(message) {
window.status = message;
}
function exitEditor(){
var exitOrNot=confirm("您真的要退出本编辑器吗?");
if(exitOrNot==true){
window.close();
}
}
//-->
</SCRIPT>
<STYLE type="text/css">
SELECT {
BACKGROUND: #eeeeee; FONT: 9pt verdana,arial,sans-serif
}
.Gen {
POSITION: relative
}
TABLE {
POSITION: relative
}
.heading {
BACKGROUND: #eeeeee; COLOR: #000000
}
.Composition {
BACKGROUND-COLOR: buttonface; POSITION: relative
}
.yToolbar {
BACKGROUND-COLOR: buttonface; BORDER-BOTTOM: buttonshadow 1px solid; BORDER-LEFT: buttonhighlight 1px solid; BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid; HEIGHT: 27px; LEFT: 0px; POSITION: relative; TOP: 0px;
}
.Btn {
BACKGROUND-COLOR: buttonface; BORDER-BOTTOM: buttonface 1px solid; BORDER-LEFT: buttonface 1px solid; BORDER-RIGHT: buttonface 1px solid; BORDER-TOP: buttonface 1px solid; HEIGHT: 23px; POSITION: absolute; TOP: 1px; WIDTH: 23px
}
.Ico {
HEIGHT: 22px; LEFT: -1px; POSITION: absolute; TOP: -1px; WIDTH: 22px
}
.Btn2 {
BACKGROUND-COLOR: buttonface; BORDER-BOTTOM: buttonface 1px solid; BORDER-LEFT: buttonface 1px solid; BORDER-RIGHT: buttonface 1px solid; BORDER-TOP: buttonface 1px solid; HEIGHT: 23px; POSITION: absolute; TOP: 1px; WIDTH: 53px
}
.Ico2 {
HEIGHT: 22px; LEFT: -1px; POSITION: absolute; TOP: -1px; WIDTH: 52px
}
.TBSep {
BORDER-LEFT: buttonshadow 1px solid; BORDER-RIGHT: buttonhighlight 1px solid; FONT-SIZE: 0px; HEIGHT: 22px; POSITION: absolute; TOP: 1px; WIDTH: 1px
}
.TBGen {
FONT: 8pt verdana,arial,sans-serif; HEIGHT: 22px; POSITION: absolute; TOP: 2px
}
.TBHandle {
BACKGROUND-COLOR: buttonface; BORDER-LEFT: buttonhighlight 1px solid; BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid; FONT-SIZE: 1px; HEIGHT: 22px; POSITION: absolute; TOP: 1px; WIDTH: 3px
}
.BtnMouseOverUp {
BACKGROUND-COLOR: buttonface; BORDER-BOTTOM: buttonshadow 1px solid; BORDER-LEFT: buttonhighlight 1px solid; BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: buttonhighlight 1px solid; HEIGHT: 23px; POSITION: absolute; TOP: 1px; WIDTH: 24px
}
.BtnMouseOverDown {
BACKGROUND-COLOR: buttonface; BORDER-BOTTOM: buttonhighlight 1px solid; BORDER-LEFT: buttonshadow 1px solid; BORDER-RIGHT: buttonhighlight 1px solid; BORDER-TOP: buttonshadow 1px solid; HEIGHT: 23px; POSITION: absolute; TOP: 1px; WIDTH: 24px
}
.BtnDown {
BACKGROUND-COLOR: gainsboro; BORDER-BOTTOM: buttonhighlight 1px solid; BORDER-LEFT: buttonshadow 1px solid; BORDER-RIGHT: buttonhighlight 1px solid; BORDER-TOP: buttonshadow 1px solid; HEIGHT: 23px; POSITION: absolute; TOP: 1px; WIDTH: 24px
}
.IcoDown {
HEIGHT: 23px; LEFT: 0px; POSITION: absolute; TOP: 0px; WIDTH: 24px
}
.IcoDownPressed {
LEFT: 1px; POSITION: absolute; TOP: 1px
}
BODY {
BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; MARGIN: 0px
}
input.flat {BORDER-BOTTOM: buttonhighlight 1px solid; BORDER-LEFT: buttonshadow 1px solid; BORDER-RIGHT: buttonhighlight 1px solid; BORDER-TOP: buttonshadow 1px solid; }
table {font-size: 10pt}
table.header {
BACKGROUND-COLOR:buttonface
}
</STYLE>
<form name=MyForm id=MyForm method=post>
<div id="Layer1" style="position:absolute; center:0px; top:80px; z-index:1; width:90%">
<table width="80%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="edgingTop"></td>
<td width="22" class="edgingLabelBg"><img src="./images/edgingLable_left.gif"></td>
<td class="edgingLabelBg"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="edgingLabel" nowrap align="center">添 加 模 板 基 本 信 息</td>
</tr>
</table></td>
<td width="11" class="edgingLabelBg"><img src="./images/edgingLable_right.gif"></td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="edgingTable_1">
<tr>
<td class="edgingTd_1"> <table width="100%" cellpadding="0" border="1" cellspacing="0" height="100%" bordercolordark="#ffffff" class="edgingTable_2">
<tr align="center">
<td>
<!-- 内容区开始 -->
<br> <table width="92%" cellspacing="0">
<tr>
<td align="center"><fieldset style="width:92%">
<legend class="LabelTitle"><img src="./images/icon_Add.gif" align="absmiddle" width="32" height="32">
[添加模板基本信息]</legend>
<br>
<table cellpadding="3">
<tr>
<td nowrap class="Shadow_white">模板类型:</td>
<td> <select name="sltDocClass">
<option value="0">--请选择--</option>
<? if(is_array($filetype_list)) {
foreach($filetype_list as $key => $val) { ?>
<option value='<?=$val['id']?>'<?=$val['sel']?>><?=$val['name']?></option>
<? }
} ?>
</select> </td>
</tr>
<tr>
<td nowrap class="Shadow_white">模板名称:</td>
<td> <input type="text" name="txtModName" size="60" maxlength="30" style="width: 300px">
<font color="red"> *</font> </td>
</tr>
<tr>
<td valign="top" nowrap class="Shadow_white">模板内容:</td>
<td>
<!--#######################################################################################-->
<!--#######################################################################################-->
<DIV class=yToolbar id=ParaToolbar>
<DIV class=TBHandle></DIV>
<SELECT class=TBGen id=formatSelect onchange="doSelectClick('FormatBlock',this)" style="FONT: icon; WIDTH: 80px" title=段落格式>
<OPTION selected>段落格式</OPTION>
<OPTION value="<P>">普通
<OPTION value="<PRE>">已编排格式
<OPTION value="<H1>">标题一
<OPTION value="<H2>">标题二
<OPTION value="<H3>">标题三
<OPTION value="<H4>">标题四
<OPTION value="<H5>">标题五
<OPTION value="<H6>">标题六
<OPTION value="<H7>">标题七</OPTION>
</SELECT>
<SELECT class=TBGen id=specialtype onchange="doSelectClick('FormatBlock',this)" style="FONT: icon; WIDTH: 100px">
<OPTION selected>特殊字体格式</OPTION>
<OPTION value=SUP>上标
<OPTION value=SUB>下标
<OPTION value=DEL>删除线
<OPTION value=BLINK>闪烁
<OPTION value=MARQUEE>跑马灯
<OPTION value=BIG>增大字体
<OPTION value=SMALL>减小字体</OPTION>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -