admin/templets/mychannel_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 spage = (theform.spage[0].checked ? theform.spage[0].value : theform.spage[1].value);
var sisnull = (isnull==0 ? "false" : "true");
var autofield = (theform.autofield[0].checked ? theform.autofield[0].value : theform.autofield[1].value);
var islist = (theform.islist.checked ? 1 : 0);
var notsend = (theform.notsend.checked ? 1 : 0);
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;
}
if(spage=="no") spage = "";
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\""+autofield+"\" notsend=\""+notsend+"\" type=\""+dtype+"\"";
revalue += " isnull=\""+sisnull+"\" islist=\""+islist+"\" default=\""+vdefault+"\" ";
revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">\r\n"+vinnertext+"</field:"+fieldname+">\r\n";
后面还有 169 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。