📄 wiki_post.htm
字号:
<!--{template header}-->
<script language="javascript" src="image/editor/editor_function.js"></script>
<script type="text/javascript">
function validate() {
var subject = $('title');
if (subject) {
var slen = strlen(subject.value);
if (slen < 1 || slen > 80) {
alert("标题长度(1~80字符)不符合要求");
subject.focus();
return false;
}
}
return true;
}
function checkForm() {
edit_save();
if( !validate() ) {
return false;
}
if($('uchome-ttHtmlEditor').value == '<DIV></DIV>')
{
alert('请填写内容');
return false;
}
return true;
}
</script>
<div class="h_status">
<table width="100%">
<tr><td>
<h1><!--{if $id}-->编辑词条<!--{else}-->创建词条<!--{/if}--> <a href="wiki.php?do=ask">返回词条列表</a></h1>
</td></tr></table>
</div>
<STYLE>
.userData {behavior:url(#default#userdata);}
</STYLE>
<div class="d_content">
<form method="post" action="wiki.php?do=wiki&ac=cp&op=post" enctype="multipart/form-data" onsubmit="return checkForm()">
<input type="hidden" name="wiki_id" id="wiki_id" value="$info[id]" />
<table cellspacing="4" cellpadding="4" width="100%" class="infotable">
<tr>
<td>
词条标题:
<input type="text" class="t_input" id="title" name="title" value="$info[title]" size="80" />
</td>
</tr>
<tr>
<td>
类别: <select name="typeid" id="typeid">
<!--{loop $gEumsType $typeid $typename}-->
<option value="$typeid" <!--{if $typeid == $info[typeid] }-->selected="selected"<!--{/if}--> >$typename</option>
<!--{/loop}-->
</select>
</td>
</tr>
<tr>
<td>
<textarea class="userData" name="content" id="uchome-ttHtmlEditor" style="height:100%;width:100%;display:none;border:0px">$info[content]</textarea>
<iframe src="editor.php?charset=$_SC[charset]&allowhtml=$allowhtml" name="uchome-ifrHtmlEditor" id="uchome-ifrHtmlEditor" scrolling="no" border="0" frameborder="0" style="width:100%;border: 1px solid #C5C5C5;" height="400"></iframe>
</td>
</tr>
</table>
<table cellspacing="4" cellpadding="4" width="100%" class="infotable">
<tr>
<th width="60"> </th>
<td><input type="submit" id="issuance" value="保存发布" class="submit" />
<a href="wiki.php?do=ask">返回列表</a>
</td>
</tr>
</table>
</form>
</div>
<!--{template footer}-->
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -