@@ -153,17 +153,6 @@ | |||
<td class="admin-td">默认页的名称:</td> | |||
<td class="admin-td"><input type="text" name="defaultname" value="index.html" class="admin-input-md"></td> | |||
</tr> | |||
<tr id="helpvar2" style="display:none"> | |||
<td bgcolor="#f5f5f5">支持变量:</td> | |||
<td bgcolor="#f5f5f5"> {Y}、{M}、{D} 年月日<br> | |||
{timestamp} INT类型的UNIX时间戳<br> | |||
{aid} 文档id<br> | |||
{pinyin} 拼音+文档id<br> | |||
{py} 拼音部首+文档id<br> | |||
{typedir} 栏目目录 <br> | |||
{cc} 日期+ID混编后用转换为适合的字母 <br> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="admin-td">文档命名规则:</td> | |||
<td class="admin-td"> | |||
@@ -171,9 +160,20 @@ | |||
<i class="fa fa-question-circle" title="帮助" onClick="ShowHide('helpvar2')"></i> | |||
</td> | |||
</tr> | |||
<tr id="helpvar3" style="display:none"> | |||
<tr id="helpvar2" style="display:none"> | |||
<td bgcolor="#f5f5f5">支持变量:</td> | |||
<td bgcolor="#f5f5f5">{page} 列表的页码</td> | |||
<td bgcolor="#f5f5f5"> | |||
{Y}、{M}、{D} 年月日<br> | |||
{timestamp} INT类型的UNIX时间戳<br> | |||
{aid} 文档id<br> | |||
{pinyin} 拼音+文档id<br> | |||
{py} 拼音部首+文档id<br> | |||
{typedir} 栏目目录<br> | |||
{cc} 日期+ID混编后用转换为适合的字母<br> | |||
Nginx伪静态默认规则<br> | |||
rewrite ^/([0-9]+).html$ /apps/view.php?arcID=$1;<br> | |||
rewrite ^/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2; | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>列表命名规则:</td> | |||
@@ -182,6 +182,15 @@ | |||
<i class="fa fa-question-circle" title="帮助" onClick="ShowHide('helpvar3')"></i> | |||
</td> | |||
</tr> | |||
<tr id="helpvar3" style="display:none"> | |||
<td bgcolor="#f5f5f5">支持变量:</td> | |||
<td bgcolor="#f5f5f5"> | |||
{page} 列表的页码<br> | |||
Nginx伪静态默认规则<br> | |||
rewrite ^/list-([0-9]+)$ /apps/list.php?tid=$1;<br> | |||
rewrite ^/list-([0-9]+)-([0-9]+)$ /apps/list.php?tid=$1&PageNo=$2; | |||
</td> | |||
</tr> | |||
<tr> | |||
<td colspan="2"> | |||
<table id="addQuick" width="98%" cellpadding="3" cellspacing="1"> | |||
@@ -192,54 +201,51 @@ | |||
<td>子栏目(用"目录名称1,目录名称2"这样表示多个栏目)</td> | |||
<td width="60" align="center"><button type="button" id="add" class="btn btn-success btn-sm">添加</button></td> | |||
</tr> | |||
<tr align="center"> | |||
<tr> | |||
<td class="rank"> | |||
<input type="hidden" name="posttype" value=""> | |||
<input type="text" name="rank" id="rank" value="1" class="admin-input-sm"> | |||
</td> | |||
<td align="center"><input type="text" name="toptype" id="toptype" class="admin-input-sm"></td> | |||
<td><input type="text" name="sontype" id="sontype" style="width:100%"> | |||
</td> | |||
<td align="center"><button type="button" name="" id="add" class="btn btn-danger btn-sm">删除</button></td> | |||
<td><input type="text" name="toptype" id="toptype" class="admin-input-sm"></td> | |||
<td><input type="text" name="sontype" id="sontype" class="w-100"></td> | |||
<td align="center"><button type="button" id="add" class="btn btn-danger btn-sm del">删除</button></td> | |||
</tr> | |||
<?php for ($i=2;$i<=10;$i++) {?> | |||
<tr class="repeat" align="center"> | |||
<tr class="repeat"> | |||
<td class="rank"> | |||
<input type="hidden" name="posttype<?php echo $i;?>" value="<?php echo $i;?>"> | |||
<input type="text" name="rank<?php echo $i;?>" id="rank<?php echo $i;?>" value="<?php echo $i;?>" class="admin-input-sm"> | |||
</td> | |||
<td><input type="text" name="toptype<?php echo $i;?>" id="toptype<?php echo $i;?>" class="admin-input-sm"></td> | |||
<td><input type="text" name="sontype<?php echo $i;?>" id="sontype<?php echo $i;?>" style="width:100%"></td> | |||
<td align="center"><button type="button" name="" id="add" class="btn btn-danger btn-sm">删除</button></td> | |||
<td><input type="text" name="sontype<?php echo $i;?>" id="sontype<?php echo $i;?>" class="w-100"></td> | |||
<td align="center"><button type="button" id="add" class="btn btn-danger btn-sm del">删除</button></td> | |||
</tr> | |||
<?php }?> | |||
</tbody> | |||
</table> | |||
<table id="addQuickRel" width="302" cellpadding="3" cellspacing="1" | |||
style="display:none"> | |||
<table id="addQuickRel" width="360" cellpadding="3" cellspacing="1" style="display:none"> | |||
<tbody> | |||
<tr bgcolor="#e9ecef" align="center"> | |||
<td width="60">排序</td> | |||
<td width="170">栏目名称</td> | |||
<td align="center"><button type="button" id="addrel" class="btn btn-success btn-sm">添加</button></td> | |||
</tr> | |||
<tr align="center"> | |||
<tr> | |||
<td class="rank"> | |||
<input type="hidden" name="posttype" value=""> | |||
<input type="text" name="rank" id="rank" value="1" class="admin-input-sm"> | |||
</td> | |||
<td><input type="text" name="reltype" id="reltype" class="admin-input-sm"> | |||
</td> | |||
<td align="center"><button type="button" name="" id="add" class="btn btn-danger btn-sm">删除</button></td> | |||
<td><input type="text" name="reltype" id="reltype" class="admin-input-sm"></td> | |||
<td align="center"><button type="button" id="add" class="btn btn-danger btn-sm del">删除</button></td> | |||
</tr> | |||
<?php for ($i=2;$i<=10;$i++) {?> | |||
<tr class="repeat" align="center"> | |||
<tr class="repeat"> | |||
<td class="rank"> | |||
<input type="hidden" name="posttype<?php echo $i;?>" value="<?php echo $i;?>"> | |||
<input type="text" name="rank<?php echo $i;?>" id="rank<?php echo $i;?>" value="<?php echo $i;?>" class="admin-input-sm"> | |||
</td> | |||
<td><input type="text" name="reltype<?php echo $i;?>" id="reltype<?php echo $i;?>" class="admin-input-sm"></td> | |||
<td align="center"><button type="button" id="add" class="btn btn-danger btn-sm">删除</button></td> | |||
<td align="center"><button type="button" id="add" class="btn btn-danger btn-sm del">删除</button></td> | |||
</tr> | |||
<?php }?> | |||
</tbody> | |||
@@ -98,7 +98,7 @@ | |||
</td> | |||
<td> | |||
<a href="diy_field_edit.php?diyid=<?php echo $diyid;?>&fname=<?php echo $ctag->GetTagName()?>" class="btn btn-success btn-sm"><i class="fa fa-pencil-square-o"></i> 修改</a> | |||
<a href="diy_field_edit.php?diyid=<?php echo $diyid;?>&action=delete&fname=<?php echo $ctag->GetTagName()?>" class="btn btn-success btn-sm"><i class="fa fa-eye"></i> 删除</a> | |||
<a href="diy_field_edit.php?diyid=<?php echo $diyid;?>&action=delete&fname=<?php echo $ctag->GetTagName()?>" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> 删除</a> | |||
</td> | |||
</tr> | |||
<?php }}?> | |||
@@ -59,7 +59,7 @@ | |||
<td><textarea name="msg" id="msg" class="admin-textarea-sm"></textarea></td> | |||
</tr> | |||
<tr> | |||
<td>站长Email:</td> | |||
<td>邮箱:</td> | |||
<td><input type="text" name="email" id="email" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
@@ -41,7 +41,7 @@ | |||
<td><textarea name="msg" id="msg" class="admin-textarea-sm"><?php echo dede_htmlspecialchars($myLink['msg'])?></textarea></td> | |||
</tr> | |||
<tr> | |||
<td>站长Email:</td> | |||
<td>邮箱:</td> | |||
<td><input type="text" name="email" id="email" value="<?php echo $myLink['email']?>" class="admin-input-md"></td> | |||
</tr> | |||
<tr> | |||
@@ -14,7 +14,7 @@ | |||
function checkSubmit() { | |||
if (document.form2.email.value == "") { | |||
document.form2.email.focus(); | |||
ShowMsg("Email不能为空"); | |||
ShowMsg("邮箱不能为空"); | |||
return false; | |||
} | |||
if (document.form2.uname.value == "") { | |||
@@ -16,7 +16,7 @@ | |||
if (document.form2.email.value=="") | |||
{ | |||
document.form2.email.focus(); | |||
ShowMsg("Email不能为空"); | |||
ShowMsg("邮箱不能为空"); | |||
return false; | |||
} | |||
if (document.form2.uname.value=="") | |||
@@ -32,7 +32,7 @@ if ($action == '') { | |||
//发送推荐信息 | |||
else if ($action == 'send') { | |||
if (!CheckEmail($email)) { | |||
ShowMsg("Email格式不正确", -1); | |||
ShowMsg("邮箱格式不正确", -1); | |||
exit(); | |||
} | |||
$mailbody = ''; | |||
@@ -1,22 +1,16 @@ | |||
function checkSubmit() | |||
{ | |||
if (document.form1.title.value=='') { | |||
alert("图片标题不能为空"); | |||
alert("文档标题不能为空"); | |||
document.form1.title.focus(); | |||
return false; | |||
} | |||
if (document.form1.typeid.value==0) { | |||
alert("所属栏目必须选择"); | |||
return false; | |||
} | |||
if (document.form1.typeid.options[document.form1.typeid.selectedIndex].className!='option3') | |||
{ | |||
alert("所属栏目必须选择白色背景的项目"); | |||
alert("请您选择文档所属栏目"); | |||
return false; | |||
} | |||
document.form1.imagebody.value = document.getElementById('copyhtml').innerHTML; | |||
document.getElementById('postloader').style.display = 'block'; | |||
} | |||
function CheckSelTable(nnum){ | |||
var cbox = document.getElementById('isokcheck'+nnum); | |||
@@ -5,7 +5,7 @@ function checkSubmit(t) { | |||
return false; | |||
} | |||
if (document.addcontent.typeid.value == 0) { | |||
ShowMsg("隶属栏目必须选择"); | |||
ShowMsg("请您选择文档所属栏目"); | |||
return false; | |||
} | |||
} |
@@ -25,7 +25,7 @@ | |||
</span> | |||
</nav> | |||
<form name="form1" method="post" action="flink.php"> | |||
<input type='hidden' name='dopost' value='save'> | |||
<input type="hidden" name="dopost" value="save"> | |||
<table width="100%" cellspacing="1" cellpadding="3" class="table"> | |||
<tr> | |||
<td>网址:</td> | |||
@@ -44,7 +44,7 @@ | |||
<td><textarea name="msg" cols="40" rows="4" id="msg"></textarea></td> | |||
</tr> | |||
<tr> | |||
<td>站长Email:</td> | |||
<td>邮箱:</td> | |||
<td><input name="email" type="text" id="email" size="30"></td> | |||
</tr> | |||
<tr> | |||
@@ -20,7 +20,7 @@ | |||
<input type="hidden" name="arcID" value="<?php echo $aid;?>"> | |||
<table width="100%" class="table" cellspacing="2" cellpadding="1"> | |||
<tr> | |||
<td align="right" width="160">您好友的Email:</td> | |||
<td align="right" width="160">您好友的邮箱:</td> | |||
<td align="left"><input name="email" type="text" class="form-control" id="email" value="@"></td> | |||
</tr> | |||
<tr> | |||
@@ -18,12 +18,12 @@ if ($dopost == 'save') { | |||
CheckCSRF(); | |||
if (function_exists('password_hash') && !empty($row['pwd_new'])) { | |||
if (!is_array($row) || !password_verify($oldpwd, $row['pwd_new'])) { | |||
ShowMsg('您输入的旧密码错误或没填写,不允许修改资料', '-1'); | |||
ShowMsg('您输入的旧密码错误或没填写,修改资料失败', '-1'); | |||
exit(); | |||
} | |||
} else { | |||
if (!is_array($row) || $row['pwd'] != md5($oldpwd)) { | |||
ShowMsg('您输入的旧密码错误或没填写,不允许修改资料', '-1'); | |||
ShowMsg('您输入的旧密码错误或没填写,修改资料失败', '-1'); | |||
exit(); | |||
} | |||
} | |||
@@ -56,16 +56,16 @@ if ($dopost == 'save') { | |||
$pwd2 = substr(md5($userpwd), 5, 20); | |||
} | |||
} | |||
//修改安全问题或Email | |||
//修改安全问题或邮箱 | |||
if ($email != $row['email'] || ($newsafequestion != 0 && $newsafeanswer != '')) { | |||
if ($row['safequestion'] != 0 && ($row['safequestion'] != $safequestion || $row['safeanswer'] != $safeanswer)) { | |||
ShowMsg('您的旧安全问题及答案不正确,不能修改Email或安全问题', '-1'); | |||
ShowMsg('您的旧安全问题及答案不正确,不能修改邮箱或安全问题', '-1'); | |||
exit(); | |||
} | |||
//修改Email | |||
//修改邮箱 | |||
if ($email != $row['email']) { | |||
if (!CheckEmail($email)) { | |||
ShowMsg('Email格式不正确', '-1'); | |||
ShowMsg('邮箱格式不正确', '-1'); | |||
exit(); | |||
} else { | |||
$addupquery .= ",email='$email'"; | |||
@@ -14,13 +14,13 @@ if (!isset($backurl)) { | |||
} | |||
if ($dopost == 'save') { | |||
if (!empty($cfg_ml->fields['email']) || $cfg_ml->fields['checkmail'] != -1) { | |||
ShowMsg('Email已经设置,无需重复提交', '-1'); | |||
ShowMsg('邮箱已经设置,无需重复提交', '-1'); | |||
exit(); | |||
} | |||
//校验CSRF | |||
CheckCSRF(); | |||
if (!CheckEmail($email)) { | |||
ShowMsg('Email格式不正确', '-1'); | |||
ShowMsg('邮箱格式不正确', '-1'); | |||
exit(); | |||
} | |||
$email = HtmlReplace($email, -1); | |||
@@ -102,20 +102,20 @@ else if ($fmdo == 'user') { | |||
echo $msg; | |||
exit(); | |||
} | |||
//检查email是否存在 | |||
//检查邮箱是否存在 | |||
else if ($dopost == "checkmail") { | |||
AjaxHead(); | |||
if ($cfg_md_mailtest == 'N') { | |||
$msg = "<span class='text-dark'>√可以使用</span>"; | |||
} else { | |||
if (!CheckEmail($email)) { | |||
$msg = "<span class='text-dark'>×Email格式有误</span>"; | |||
$msg = "<span class='text-dark'>×邮箱格式有误</span>"; | |||
} else { | |||
$row = $dsql->GetOne("SELECT mid FROM `#@__member` WHERE email LIKE '$email' LIMIT 1"); | |||
if (!is_array($row)) { | |||
$msg = "<span class='text-dark'>√可以使用</span>"; | |||
} else { | |||
$msg = "<span class='text-primary'>×Email已经被另一个帐号占用</span>"; | |||
$msg = "<span class='text-primary'>×邮箱已经被另一个帐号占用</span>"; | |||
} | |||
} | |||
} | |||
@@ -45,7 +45,7 @@ | |||
<div class="col-sm-10"> | |||
<?php | |||
$typeOptions = GetOptionList(0,$channelid); | |||
echo "<select class='form-control' name='typeid' size='1'>"; | |||
echo "<select name='typeid' class='form-control'>"; | |||
echo "<option value='0' selected>请选择栏目</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
@@ -57,10 +57,7 @@ | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield'); | |||
?> | |||
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | |||
<input name="maxwidth" type="hidden" id="maxwidth" value="<?php echo $cfg_album_width;?>"> | |||
<input name="prow" type="hidden" value="<?php echo $cfg_album_row;?>"> | |||
<input name="pcol" type="hidden" value="<?php echo $cfg_album_col;?>"> | |||
@@ -49,7 +49,7 @@ | |||
<div class="col-sm-10"> | |||
<?php | |||
$typeOptions = GetOptionList($row["typeid"],$row["channel"]); | |||
echo "<select class='form-control' name='typeid' size='1'>"; | |||
echo "<select name='typeid' class='form-control'>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
@@ -44,7 +44,7 @@ | |||
<div class="col-sm-10"> | |||
<?php | |||
$typeOptions = GetOptionList(0,$channelid); | |||
echo "<select class='form-control' name='typeid' size='1'>"; | |||
echo "<select name='typeid' class='form-control'>"; | |||
echo "<option value='0' selected>请选择栏目</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
@@ -56,10 +56,7 @@ | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield'); | |||
?> | |||
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | |||
<div class="text-center"> | |||
<button type="submit" class="btn btn-success">提交</button> | |||
<button type="reset" class="btn btn-secondary" onclick="location.reload();">重置</button> | |||
@@ -44,7 +44,7 @@ | |||
<div class="col-sm-10"> | |||
<?php | |||
$typeOptions = GetOptionList($row["typeid"],$row["channel"]); | |||
echo "<select class='form-control' name='typeid' size='1'>"; | |||
echo "<select name='typeid' class='form-control'>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
@@ -44,7 +44,7 @@ | |||
<div class="col-sm-10"> | |||
<?php | |||
$typeOptions = GetOptionList(0,$channelid); | |||
echo "<select class='form-control' name='typeid' size='1'>"; | |||
echo "<select name='typeid' class='form-control'>"; | |||
echo "<option value='0' selected>请选择栏目</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
@@ -56,10 +56,7 @@ | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield'); | |||
?> | |||
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | |||
<div class="text-center"> | |||
<button type="submit" class="btn btn-success">提交</button> | |||
<button type="reset" class="btn btn-secondary" onclick="location.reload();">重置</button> | |||
@@ -40,7 +40,7 @@ | |||
<div class="col-sm-10"> | |||
<?php | |||
$typeOptions = GetOptionList($addRow["typeid"],$addRow["channel"]); | |||
echo "<select class='form-control' name='typeid' size='1'>"; | |||
echo "<select name='typeid' class='form-control'>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
@@ -44,7 +44,7 @@ | |||
<div class="col-sm-10"> | |||
<?php | |||
$typeOptions = GetOptionList(0,$channelid); | |||
echo "<select class='form-control' name='typeid' size='1'>"; | |||
echo "<select name='typeid' class='form-control'>"; | |||
echo "<option value='0' selected>请选择栏目</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
@@ -56,10 +56,7 @@ | |||
<label class="col-sm-2 col-form-label">描述</label> | |||
<div class="col-sm-10"><textarea name="description" id="description" class="form-control"></textarea></div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield'); | |||
?> | |||
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">正文</label> | |||
<div class="col-sm-10"><?php GetEditor("body","",400,"Member");?></div> | |||
@@ -48,7 +48,7 @@ | |||
<div class="col-sm-10"> | |||
<?php | |||
$typeOptions = GetOptionList($row["typeid"], $row["channel"]); | |||
echo "<select class='form-control' name='typeid' size='1'>"; | |||
echo "<select name='typeid' class='form-control'>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
@@ -38,22 +38,22 @@ | |||
<div class="col-sm-10"><?php echo $cfg_ml->M_LoginID;?></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label for="iptUname" class="col-sm-2 col-form-label">昵称/公司名称</label> | |||
<div class="col-sm-10"><input name="uname" type="text" class="form-control" id="iptUname" value="<?php echo $row['uname'];?>"></div> | |||
<label for="iptUname" class="col-sm-2 col-form-label">昵称/公司名</label> | |||
<div class="col-sm-10"><input type="text" name="uname" class="form-control" id="iptUname" value="<?php echo $row['uname'];?>"></div> | |||
<small class="offset-md-2 col-sm-8 text-muted">个人会员该项为昵称,企业会员填写公司名称</small> | |||
</div> | |||
<div class="form-group row"> | |||
<label for="iptOldpwd" class="col-sm-2 col-form-label">原登录密码</label> | |||
<div class="col-sm-10"><input name="oldpwd" type="password" class="form-control" id="iptOldpwd"></div> | |||
<div class="col-sm-10"><input type="password" name="oldpwd" class="form-control" id="iptOldpwd"></div> | |||
</div> | |||
<div class="form-group row"> | |||
<label for="iptUserpwd" class="col-sm-2 col-form-label">新密码</label> | |||
<div class="col-sm-10"><input name="userpwd" type="password" class="form-control" id="iptUserpwd"></div> | |||
<div class="col-sm-10"><input type="password" name="userpwd" class="form-control" id="iptUserpwd"></div> | |||
<small class="offset-md-2 col-sm-8 text-muted">不修改密码请保留此项为空</small> | |||
</div> | |||
<div class="form-group row"> | |||
<label for="iptUserpwdok" class="col-sm-2 col-form-label">确认新密码</label> | |||
<div class="col-sm-10"><input name="userpwdok" type="password" class="form-control" id="iptUserpwdok"></div> | |||
<div class="col-sm-10"><input type="password" name="userpwdok" class="form-control" id="iptUserpwdok"></div> | |||
<small class="offset-md-2 col-sm-8 text-muted">不修改密码请保留此项为空</small> | |||
</div> | |||
<div class="form-group row"> | |||
@@ -106,7 +106,7 @@ | |||
function checkSubmit() { | |||
if (document.form2.oldpwd.value == '') { | |||
document.form2.oldpwd.focus(); | |||
ShowMsg("旧密码必须填写"); | |||
ShowMsg("请您填写旧密码"); | |||
return false; | |||
} | |||
if (document.form2.userpwdok.value != document.form2.userpwd.value) { | |||
@@ -116,17 +116,17 @@ | |||
} | |||
if (document.form2.email.value == "") { | |||
document.form2.email.focus(); | |||
ShowMsg("Email不能为空"); | |||
ShowMsg("请您填写邮箱"); | |||
return false; | |||
} | |||
if (document.form2.uname.value == "") { | |||
document.form2.uname.focus(); | |||
ShowMsg("用户昵称不能为空"); | |||
ShowMsg("请您填写昵称"); | |||
return false; | |||
} | |||
if (document.form2.vdcode.value == "") { | |||
document.form2.vdcode.focus(); | |||
ShowMsg("验证码不能为空"); | |||
ShowMsg("请您填写验证码"); | |||
return false; | |||
} | |||
} | |||
@@ -23,10 +23,8 @@ | |||
} | |||
} | |||
function ShowHideAddr() { | |||
document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == | |||
'block' ? 'none' : 'block'); | |||
document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏地址' : | |||
'显示地址'); | |||
document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == 'block' ? 'none' : 'block'); | |||
document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏地址' : '显示地址'); | |||
} | |||
</script> | |||
</head> | |||
@@ -63,7 +61,7 @@ | |||
<div class="col-sm-10"> | |||
<?php | |||
$typeOptions = GetOptionList(0,$channelid); | |||
echo "<select class='form-control' name='typeid' size='1'>"; | |||
echo "<select name='typeid' class='form-control'>"; | |||
echo "<option value='0' selected>请选择栏目</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
@@ -159,10 +157,7 @@ | |||
<input type="text" name="source" id="source" maxlength="100" class="form-control"> | |||
</div> | |||
</div> | |||
<?php | |||
//自定义字段 | |||
PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield'); | |||
?> | |||
<?php PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield');?> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">正文</label> | |||
<div class="col-sm-10"><?php GetEditor("body","",400,"Member");?></div> | |||
@@ -181,15 +176,6 @@ | |||
<div id="morelink" style="display:none"> | |||
<?php echo "<div id='uploadfield'></div>";?> | |||
</div> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">验证码</label> | |||
<div class="col-sm-10"> | |||
<div class="input-group"> | |||
<input type="text" name="vdcode" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | |||
<img src="../apps/vdimgck.php" id="validateimg" onclick="this.src=this.src+'?'" title="验证码"> | |||
</div> | |||
</div> | |||
</div> | |||
<div class="text-center"> | |||
<button type="submit" class="btn btn-success">提交</button> | |||
<button type="reset" class="btn btn-secondary" onclick="location.reload();">重置</button> | |||
@@ -23,10 +23,8 @@ | |||
} | |||
} | |||
function ShowHideAddr() { | |||
document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == | |||
'block' ? 'none' : 'block'); | |||
document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏地址' : | |||
'显示地址'); | |||
document.getElementById('morelink').style.display = (document.getElementById('morelink').style.display == 'block' ? 'none' : 'block'); | |||
document.getElementById('btsh3').value = (document.getElementById('morelink').style.display == 'block' ? '隐藏地址' : '显示地址'); | |||
} | |||
</script> | |||
</head> | |||
@@ -66,7 +64,7 @@ | |||
<div class="col-sm-10"> | |||
<?php | |||
$typeOptions = GetOptionList($row["typeid"],$row["channel"]); | |||
echo "<select class='form-control' name='typeid' size='1'>"; | |||
echo "<select name='typeid' class='form-control'>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||