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.
48 lines
1.4 KiB
48 lines
1.4 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 (d_required('name')) return false;
|
|
if (d_isdomain('domain')) return false;
|
|
if ($("#mark").val() == 0) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
</script>
|
|
<div class="table-list" style="width:500px;">
|
|
<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="130"><font color="red">*</font> {fc_lang('网站名称')}: </th>
|
|
<td>
|
|
<input class="input-text" type="text" name="data[name]" id="dr_name" value="{$data['name']}" size="30" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><font color="red">*</font> {fc_lang('网站域名')}: </th>
|
|
<td>
|
|
<input style="width: 90%" class="input-text" type="text" name="data[domain]" id="dr_domain" value="{$data['domain']}" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th><font color="blue">{fc_lang('域名绑定至根目录')}:</font> </th>
|
|
<td>
|
|
<font color="blue">{WEBPATH}</font>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|