You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
1.3 KiB
35 lines
1.3 KiB
<script type="text/javascript">
|
|
$(function() { //防止回车提交表单
|
|
document.onkeydown = function(e){
|
|
var ev = document.all ? window.event : e;
|
|
if (ev.keyCode==13) $("#mark").val("1"); // 标识不能提交表单
|
|
}
|
|
$(".table_form th").last().css('border','none');
|
|
$(".table_form td").last().css('border','none');
|
|
});
|
|
function dr_form_check() {
|
|
if ($("#mark").val() == 0) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
</script>
|
|
<div class="table-list" style="width:420px;">
|
|
<form action="" method="post" id="myform" name="myform" onsubmit="return dr_form_check()">
|
|
<input name="mark" id="mark" type="hidden" value="0">
|
|
<table width="100%" class="table_form">
|
|
<tr>
|
|
<th width="100"><font color="red">*</font> {fc_lang('名称')}: </th>
|
|
<td><input class="input-text" type="text" name="data[name]" size="20" /></td>
|
|
</tr>
|
|
<tr>
|
|
<th><font color="red">*</font> {fc_lang('目录')}: </th>
|
|
<td><input class="input-text" type="text" name="data[dirname]" size="20" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" style="padding-left: 64px;">{fc_lang('<font color=red>根目录必须由读写权限,否则无法创建目录和文件</font><br><font color=green>只复制模块的基础功能,不含用户的自定义字段</font>')}</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|