admin/templets/member_model_field_add.htm
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>">
<title>增加字段</title>
<link href="css/base.css" rel="stylesheet" type="text/css" />
<script language="javascript">
var notAllow = " <?php echo $f; ?> ";
function GetFields()
{
var theform = document.form1;
var fieldname = theform.fieldname.value;
var itemname = theform.itemname.value;
var dtype = 'text';
var enums = document.getElementsByName('dtype');
for(i=0;i<enums.length;i++)
{
if(enums[i].checked) dtype = enums[i].value;
}
var isnull = theform.isnull.value;
var vdefault = theform.vdefault.value;
var maxlength = theform.maxlength.value;
var vinnertext = theform.vinnertext.value;
var issearch = (theform.issearch[0].checked ? theform.issearch[0].value : theform.issearch[1].value);
var isshow = (theform.isshow[0].checked ? theform.isshow[0].value : theform.isshow[1].value);
var state = (theform.state[0].checked ? theform.state[0].value : theform.state[1].value);
var sisnull = (isnull==0 ? "false" : "true");
if(itemname=="")
{
alert("表单提示名称不能为空!");
theform.itemname.focus();
return false;
}
if(fieldname=="")
{
alert("字段名称不能为空!");
theform.fieldname.focus();
return false;
}
if(notAllow.indexOf(" "+fieldname+" ") >-1 )
{
alert("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow);
return false;
}
if((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="")
{
alert("你选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)!");
return false;
}
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\" isnull=\""+sisnull+"\"";
revalue += " default=\""+vdefault+"\" ";
revalue += " maxlength=\""+maxlength+"\" issearch=\""+issearch+"\" isshow=\""+isshow+"\" state=\""+state+"\">\r\n"+vinnertext+"</field:"+fieldname+">\r\n";
后面还有 154 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。