@@ -1,110 +0,0 @@ | |||
<?php | |||
require_once(dirname(__FILE__)."/../system/common.inc.php"); | |||
require_once(DEDEINC.'/channelunit.class.php'); | |||
require_once(DEDEINC.'/taglib/arcpagelist.lib.php'); | |||
$mtype = empty($mtype)? 0 : intval(preg_replace("/[^\d]/",'', $mtype)); | |||
$pnum = empty($pnum)? 0 : intval(preg_replace("/[^\d]/",'', $pnum)); | |||
$tagid = empty($tagid)? '' : (preg_replace("/[^a-z0-9]/",'', $tagid)); | |||
if ($tagid=='' || $pnum==0) die("dedebiz"); | |||
if ($tagid !='') | |||
{ | |||
$row = $dsql->GetOne("SELECT * FROM `#@__arcmulti` WHERE tagid='$tagid'"); | |||
$ids = explode(',', $row['arcids']); | |||
$totalnum = $line = count($ids); | |||
//取出属性并解析为变量 | |||
$attarray = unserialize($row['attstr']); | |||
extract($attarray, EXTR_SKIP); | |||
$artlist = ''; | |||
//通过页面及总数解析当前页面数据范围 | |||
$strnum = ($pnum-1) * $row['pagesize']; | |||
$limitsql = " LIMIT $strnum,{$row['pagesize']} "; | |||
if ($mtype == 0) | |||
{ | |||
//处理列表文档项 | |||
$query = "SELECT arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath {$row['addfieldsSql']} FROM `#@__archives` arc LEFT JOIN `#@__arctype` tp ON arc.typeid=tp.id {$row['addfieldsSqlJoin']} WHERE arc.id IN({$row['arcids']}) {$row['ordersql']} $limitsql"; | |||
$dsql->SetQuery($query); | |||
$dsql->Execute('al'); | |||
$dtp2 = new DedeTagParse(); | |||
$dtp2->SetNameSpace('field', '[', ']'); | |||
$dtp2->LoadString($row['innertext']); | |||
$GLOBALS['autoindex'] = 0; | |||
$ids = array(); | |||
for ($i=0; $i<$line; $i++) | |||
{ | |||
if ($col>1) $artlist .= "<tr>\r\n"; | |||
for ($j=0; $j<$col; $j++) | |||
{ | |||
if ($col>1) $artlist .= "<td width='$colWidth'>\r\n"; | |||
if ($row = $dsql->GetArray("al")) { | |||
$ids[] = $row['id']; | |||
//处理一些特殊字段 | |||
$row['info'] = $row['infos'] = cn_substr($row['description'],$infolen); | |||
$row['id'] = $row['id']; | |||
if ($row['corank'] > 0 && $row['arcrank']==0) | |||
{ | |||
$row['arcrank'] = $row['corank']; | |||
} | |||
$row['filename'] = $row['arcurl'] = GetFileUrl($row['id'],$row['typeid'],$row['senddate'],$row['title'],$row['ismake'], | |||
$row['arcrank'],$row['namerule'],$row['typedir'],$row['money'],$row['filename'],$row['moresite'],$row['siteurl'],$row['sitepath']); | |||
$row['typeurl'] = GetTypeUrl($row['typeid'],$row['typedir'],$row['isdefault'],$row['defaultname'],$row['ispart'], | |||
$row['namerule2'],$row['moresite'],$row['siteurl'],$row['sitepath']); | |||
if ($row['litpic'] == '-' || $row['litpic'] == '') | |||
{ | |||
$row['litpic'] = $GLOBALS['cfg_cmspath'].'/static/web/img/thumbnail.jpg'; | |||
} | |||
if (!preg_match("#^http:\/\/#", $row['litpic']) && $GLOBALS['cfg_multi_site'] == 'Y') | |||
{ | |||
$row['litpic'] = $GLOBALS['cfg_mainsite'].$row['litpic']; | |||
} | |||
$row['picname'] = $row['litpic']; | |||
$row['stime'] = GetDateMK($row['pubdate']); | |||
$row['typelink'] = "<a href='".$row['typeurl']."'>".$row['typename']."</a>"; | |||
$row['image'] = "<img src='".$row['picname']."' width='$imgwidth' height='$imgheight' title='".preg_replace("#['><]#", "", $row['title'])."'>"; | |||
$row['imglink'] = "<a href='".$row['filename']."'>".$row['image']."</a>"; | |||
$row['fulltitle'] = $row['title']; | |||
$row['title'] = cn_substr($row['title'],$titlelen); | |||
if ($row['color']!='') $row['title'] = "<span style='color:".$row['color']."'>".$row['title']."</span>"; | |||
if (preg_match('#b#', $row['flag'])) $row['title'] = "".$row['title'].""; | |||
//$row['title'] = "".$row['title'].""; | |||
$row['textlink'] = "<a href='".$row['filename']."'>".$row['title']."</a>"; | |||
$row['plusurl'] = $row['phpurl'] = $GLOBALS['cfg_phpurl']; | |||
$row['memberurl'] = $GLOBALS['cfg_memberurl']; | |||
$row['templeturl'] = $GLOBALS['cfg_templeturl']; | |||
if (is_array($dtp2->CTags)) | |||
{ | |||
foreach($dtp2->CTags as $k=>$ctag) | |||
{ | |||
if ($ctag->GetName()=='array') | |||
{ | |||
//传递整个数组,在runphp模式中有特殊作用 | |||
$dtp2->Assign($k,$row); | |||
} else { | |||
if (isset($row[$ctag->GetName()])) $dtp2->Assign($k,$row[$ctag->GetName()]); | |||
else $dtp2->Assign($k,''); | |||
} | |||
} | |||
$GLOBALS['autoindex']++; | |||
} | |||
$artlist .= $dtp2->GetResult()."\r\n"; | |||
}//if hasRow | |||
else { | |||
$artlist .= ''; | |||
} | |||
if ($col>1) $artlist .= " </td>\r\n"; | |||
}//Loop Col | |||
if ($col>1) $i += $col - 1; | |||
if ($col>1) $artlist .= " </tr>\r\n"; | |||
}//loop line | |||
if ($col>1) $artlist .= " </table>\r\n"; | |||
$dsql->FreeResult("al"); | |||
} else { | |||
//处理分页字段 | |||
$artlist .= '<div id="page_'.$tagid.'">'; | |||
$artlist .= multipage($totalnum, $pnum, $row['pagesize'], $tagid); | |||
$artlist .= '</div>'; | |||
} | |||
} | |||
AjaxHead(); | |||
echo $artlist; | |||
exit(); | |||
?> |
@@ -208,21 +208,6 @@ CREATE TABLE `#@__archives` ( | |||
KEY `lastpost` (`lastpost`,`scores`,`goodpost`,`badpost`,`notpost`) | |||
) TYPE=MyISAM; | |||
DROP TABLE IF EXISTS `#@__arcmulti`; | |||
CREATE TABLE `#@__arcmulti` ( | |||
`id` mediumint(8) unsigned NOT NULL auto_increment, | |||
`tagid` char(60) NOT NULL default '', | |||
`uptime` int(11) NOT NULL default '0', | |||
`innertext` varchar(255) NOT NULL default '', | |||
`pagesize` int(11) NOT NULL default '0', | |||
`arcids` text NOT NULL, | |||
`ordersql` varchar(255) default NULL, | |||
`addfieldsSql` varchar(255) default NULL, | |||
`addfieldsSqlJoin` varchar(255) default NULL, | |||
`attstr` text, | |||
PRIMARY KEY (`id`) | |||
) TYPE=MyISAM; | |||
DROP TABLE IF EXISTS `#@__arcrank`; | |||
CREATE TABLE `#@__arcrank` ( | |||
`id` smallint(5) unsigned NOT NULL auto_increment, | |||
@@ -1,69 +1,84 @@ | |||
.login-from { | |||
margin:6rem 0 | |||
margin: 6rem 0 | |||
} | |||
.login-box { | |||
padding:1.25rem; | |||
width:500px; | |||
background:#fff | |||
padding: 1.25rem; | |||
width: 500px; | |||
background: #fff | |||
} | |||
#validateimg { | |||
border-radius:0 .2rem .2rem 0 | |||
border-radius: 0 .2rem .2rem 0 | |||
} | |||
.member-actions { | |||
line-height:40px; | |||
text-align:right | |||
line-height: 40px; | |||
text-align: right | |||
} | |||
.member-logo { | |||
max-width:60px; | |||
min-height:60px; | |||
border-radius:50% | |||
max-width: 60px; | |||
min-height: 60px; | |||
border-radius: 50% | |||
} | |||
.member-type span { | |||
position:relative; | |||
padding:.3rem; | |||
font-size:14px; | |||
font-weight:400; | |||
top:-10px | |||
position: relative; | |||
padding: .3rem; | |||
font-size: 14px; | |||
font-weight: 400; | |||
top: -10px | |||
} | |||
.dropdown { | |||
display:inline-block; | |||
margin-left:.25rem; | |||
content:""; | |||
border-top:.3em solid; | |||
border-right:.3em solid transparent; | |||
border-bottom:0; | |||
border-left:.3em solid transparent; | |||
vertical-align:.25rem | |||
display: inline-block; | |||
margin-left: .25rem; | |||
content: ""; | |||
border-top: .3em solid; | |||
border-right: .3em solid transparent; | |||
border-bottom: 0; | |||
border-left: .3em solid transparent; | |||
vertical-align: .25rem | |||
} | |||
.pannel-main .pannel-main-container { | |||
padding:1rem; | |||
background:#fff | |||
padding: 1rem; | |||
background: #fff | |||
} | |||
.list-group-item.active a { | |||
color:#fff | |||
color: #fff | |||
} | |||
.list-group-flush>.list-group-item { | |||
cursor:pointer | |||
cursor: pointer | |||
} | |||
.pannel-main .nav-link.active { | |||
font-weight:600 | |||
font-weight: 600 | |||
} | |||
.user-meter i { | |||
font-size:24px!important | |||
font-size: 24px !important | |||
} | |||
.user-img { | |||
margin-right:10px; | |||
width:30px; | |||
height:30px; | |||
border-radius:50%; | |||
border:1px solid #dee2e6 | |||
margin-right: 10px; | |||
width: 30px; | |||
height: 30px; | |||
border-radius: 50%; | |||
border: 1px solid #dee2e6 | |||
} | |||
.form-control { | |||
height:36px; | |||
line-height:36px | |||
height: 36px; | |||
line-height: 36px | |||
} | |||
@media (max-width:480px) { | |||
.login-from,.login-box { | |||
width:100% | |||
} | |||
.login-from, | |||
.login-box { | |||
width: 100% | |||
} | |||
} |
@@ -0,0 +1,11 @@ | |||
function checkSubmit(t) { | |||
if (document.addcontent.title.value == "") { | |||
ShowMsg(`${t}不能为空`); | |||
document.addcontent.title.focus(); | |||
return false; | |||
} | |||
if (document.addcontent.typeid.value == 0) { | |||
ShowMsg("隶属栏目必须选择"); | |||
return false; | |||
} | |||
} |
@@ -421,22 +421,6 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele | |||
if ($col > 1) $artlist .= " </table>\r\n"; | |||
$dsql->FreeResult("al"); | |||
$idsstr = join(',', $ids); | |||
//分页特殊处理 | |||
if ($pagesize > 0) { | |||
$artlist .= " </div>\r\n"; | |||
$row = $dsql->GetOne("SELECT tagid FROM `#@__arcmulti` WHERE tagid='$tagid'"); | |||
$uptime = time(); | |||
$attstr = addslashes(serialize($attarray)); | |||
$innertext = addslashes($innertext); | |||
if (!is_array($row)) { | |||
$query = "INSERT INTO `#@__arcmulti` (tagid,uptime,innertext,pagesize,arcids,ordersql,addfieldsSql,addfieldsSqlJoin,attstr) VALUES ('$tagid','$uptime','$innertext','$pagesize','$idsstr','$ordersql','$addfieldsSql','$addfieldsSqlJoin','$attstr'); | |||
"; | |||
$dsql->ExecuteNoneQuery($query); | |||
} else { | |||
$query = "UPDATE `#@__arcmulti` SET uptime='$uptime', innertext='$innertext', pagesize='$pagesize', arcids='$idsstr', ordersql='$ordersql', addfieldsSql='$addfieldsSql', addfieldsSqlJoin='$addfieldsSqlJoin', attstr='$attstr' WHERE tagid='$tagid'"; | |||
$dsql->ExecuteNoneQuery($query); | |||
} | |||
} | |||
//保存ID缓存 | |||
if ($needSaveCache) { | |||
if ($idsstr == '') $idsstr = '0'; | |||
@@ -1,70 +0,0 @@ | |||
<?php | |||
if (!defined('DEDEINC')) exit('dedebiz'); | |||
/** | |||
* | |||
* @version $id:arcpagelist.lib.php 9:29 2010年7月6日 tianya $ | |||
* @package DedeBIZ.Taglib | |||
* @copyright Copyright (c) 2022 DedeBIZ.COM | |||
* @license https://www.dedebiz.com/license | |||
* @link https://www.dedebiz.com | |||
*/ | |||
function lib_arcpagelist(&$ctag, &$refObj) | |||
{ | |||
global $dsql; | |||
$attlist = "tagid|,style|1"; | |||
FillAttsDefault($ctag->CAttribute->Items, $attlist); | |||
extract($ctag->CAttribute->Items, EXTR_SKIP); | |||
$row = $dsql->GetOne("SELECT * FROM `#@__arcmulti` WHERE tagid='$tagid'"); | |||
if (is_array($row)) { | |||
$ids = explode(',', $row['arcids']); | |||
$totalnum = count($ids); | |||
$pagestr = '<div id="page_'.$tagid.'">'; | |||
if ($row['pagesize'] < $totalnum) { | |||
$pagestr .= multipage($totalnum, 1, $row['pagesize'], $tagid); | |||
} else { | |||
$pagestr .= '共1页'; | |||
} | |||
$pagestr .= '</div>'; | |||
return $pagestr; | |||
} else { | |||
$pagestr = '<div id="page_'.$tagid.'">'; | |||
$pagestr .= '没有检索到对应分页'; | |||
$pagestr .= '</div>'; | |||
return $pagestr; | |||
} | |||
} | |||
/** | |||
* 分页函数 | |||
* | |||
* @access public | |||
* @param string $allItemTotal 所有记录 | |||
* @param string $currPageNum 当前页面数 | |||
* @param string $pagesize 显示条数 | |||
* @param string $tagid 标签ID | |||
* @return string | |||
*/ | |||
function multipage($allItemTotal, $currPageNum, $pagesize, $tagid = '') | |||
{ | |||
if ($allItemTotal == 0) return ""; | |||
//计算总页数 | |||
$pagesNum = ceil($allItemTotal / $pagesize); | |||
//第一页显示 | |||
$firstPage = ($currPageNum <= 1) ? $currPageNum."<<" : "<a href='javascript:multi(1,\"{$tagid}\")' title='第1页'>1<<</a>"; | |||
//最后一页显示 | |||
$lastPage = ($currPageNum >= $pagesNum) ? ">".$currPageNum : "<a href='javascript:multi(".$pagesNum.",\"{$tagid}\")' title='第".$pagesNum."页'>>".$pagesNum."</a>"; | |||
//上一页显示 | |||
$prePage = ($currPageNum <= 1) ? "上页" : "<a href='javascript:multi(".($currPageNum - 1).",\"{$tagid}\")' accesskey='p' title='上一页'>[上一页]</a>"; | |||
//下一页显示 | |||
$nextPage = ($currPageNum >= $pagesNum) ? "下页" : "<a href='javascript:multi(".($currPageNum + 1).",\"{$tagid}\")' title='下一页'>[下一页]</a>"; | |||
//按页显示 | |||
$listNums = ""; | |||
for ($i = ($currPageNum - 4); $i < ($currPageNum + 9); $i++) { | |||
if ($i < 1 || $i > $pagesNum) continue; | |||
if ($i == $currPageNum) $listNums .= "<a href='javascript:void(0)' class='thislink'>".$i."</a>"; | |||
else $listNums .= " <a href='javascript:multi(".$i.",\"{$tagid}\")' title='".$i."'>".$i."</a> "; | |||
} | |||
$returnUrl = $listNums; | |||
return $returnUrl; | |||
} | |||
?> |
@@ -11,12 +11,6 @@ if (!defined('DEDEMEMBER')) exit('dedebiz'); | |||
*/ | |||
include_once(DEDEINC.'/image.func.php'); | |||
include_once(DEDEINC.'/libraries/oxwindow.class.php'); | |||
$svali = GetCkVdValue(); | |||
if (strtolower($vdcode) != $svali || $svali == '') { | |||
ResetVdValue(); | |||
ShowMsg('验证码不正确', '-1'); | |||
exit(); | |||
} | |||
//校验CSRF | |||
CheckCSRF(); | |||
$flag = ''; | |||
@@ -38,7 +38,7 @@ function GetOptionList($selid = 0, $channeltype = 0) | |||
if ($row->ispart == 0) { | |||
$OptionArrayList .= "<option value='".$row->id."' {$selected}>└─ ".$row->typename."</option>\r\n"; | |||
} else if ($row->ispart == 1) { | |||
$OptionArrayList .= "<option value='".$row->id."' {$selected}>└──".$row->typename."</option>\r\n"; | |||
$OptionArrayList .= "<option disabled value='".$row->id."' {$selected}>└──".$row->typename."</option>\r\n"; | |||
} | |||
} | |||
$selected = ''; | |||
@@ -70,7 +70,7 @@ function LogicGetOptionArray($id, $step, $channeltype, $selid = 0) | |||
if ($row->ispart == 0) { | |||
$OptionArrayList .= "<option value='".$row->id."' {$selected}>└─$step ".$row->typename."</option>\r\n"; | |||
} else if ($row->ispart == 1) { | |||
$OptionArrayList .= "<option value='".$row->id."' {$selected}>└─$step ".$row->typename."</option>\r\n"; | |||
$OptionArrayList .= "<option disabled value='".$row->id."' {$selected}>└─$step ".$row->typename."</option>\r\n"; | |||
} | |||
} | |||
$selected = ''; | |||
@@ -81,15 +81,6 @@ | |||
<script> | |||
MakeUpload(2); | |||
</script> | |||
<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> | |||
@@ -9,6 +9,7 @@ | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/user.css"> | |||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
</head> | |||
<body class="body-bg"> | |||
<?php pasterTempletDiy('top.htm');?> | |||
@@ -23,7 +24,7 @@ | |||
</ol> | |||
<span class="navbar-text"><a href="javascript:history.back(-1);" class="btn btn-success">返回</a></span> | |||
</nav> | |||
<form name="addcontent" action="archives_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();"> | |||
<form name="addcontent" action="archives_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit(`<?php echo $cInfos['titlename'];?>`);"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||
<div class="form-group row"> | |||
@@ -59,15 +60,6 @@ | |||
//自定义字段 | |||
PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield'); | |||
?> | |||
<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> | |||
@@ -9,6 +9,7 @@ | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/user.css"> | |||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
</head> | |||
<body class="body-bg"> | |||
<?php pasterTempletDiy('top.htm');?> | |||
@@ -23,11 +24,11 @@ | |||
</ol> | |||
<span class="navbar-text"><a href="javascript:history.back(-1);" class="btn btn-success">返回</a></span> | |||
</nav> | |||
<form name="addcontent" action="archives_edit.php?aid=<?php echo $aid;?>" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();"> | |||
<form name="addcontent" action="archives_edit.php?aid=<?php echo $aid;?>" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit(`<?php echo $cInfos['titlename'];?>`);"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标题</label> | |||
<label class="col-sm-2 col-form-label"><?php echo $cInfos['titlename'];?></label> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" value="<?php echo $row['title']?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
@@ -9,6 +9,7 @@ | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/user.css"> | |||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
</head> | |||
<body class="body-bg"> | |||
<?php pasterTempletDiy('top.htm');?> | |||
@@ -23,7 +24,7 @@ | |||
</ol> | |||
<span class="navbar-text"><a href="javascript:history.back(-1);" class="btn btn-success">返回</a></span> | |||
</nav> | |||
<form name="addcontent" action="archives_sg_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();"> | |||
<form name="addcontent" action="archives_sg_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit(`<?php echo $cInfos['titlename'];?>`);"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||
<div class="form-group row"> | |||
@@ -59,15 +60,6 @@ | |||
//自定义字段 | |||
PrintAutoFieldsAdd(stripslashes($cInfos['fieldset']),'autofield'); | |||
?> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">验证码</label> | |||
<div class="col-sm-10"> | |||
<div class="input-group"> | |||
<input name="vdcode" type="text" 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> | |||
@@ -9,6 +9,7 @@ | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/user.css"> | |||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
</head> | |||
<body class="body-bg"> | |||
<?php pasterTempletDiy('top.htm');?> | |||
@@ -23,11 +24,11 @@ | |||
</ol> | |||
<span class="navbar-text"><a href="javascript:history.back(-1);" class="btn btn-success">返回</a></span> | |||
</nav> | |||
<form name="addcontent" action="archives_sg_edit.php?aid=<?php echo $aid;?>" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();"> | |||
<form name="addcontent" action="archives_sg_edit.php?aid=<?php echo $aid;?>" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit(`<?php echo $cInfos['titlename'];?>`);"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标题</label> | |||
<label class="col-sm-2 col-form-label"><?php echo $cInfos['titlename'];?></label> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" value="<?php echo $addRow['title']?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||
@@ -9,6 +9,7 @@ | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/user.css"> | |||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
</head> | |||
<body class="body-bg"> | |||
<?php pasterTempletDiy('top.htm');?> | |||
@@ -23,7 +24,7 @@ | |||
</ol> | |||
<span class="navbar-text"><a href="javascript:history.back(-1);" class="btn btn-success">返回</a></span> | |||
</nav> | |||
<form name="addcontent" action="article_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();"> | |||
<form name="addcontent" action="article_add.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit(`<?php echo $cInfos['titlename'];?>`);"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||
<div class="form-group row"> | |||
@@ -63,15 +64,6 @@ | |||
<label class="col-sm-2 col-form-label">正文</label> | |||
<div class="col-sm-10"><?php GetEditor("body","",400,"Member");?></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> | |||
@@ -9,6 +9,7 @@ | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/user.css"> | |||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/user.js"></script> | |||
</head> | |||
<body class="body-bg"> | |||
<?php pasterTempletDiy('top.htm');?> | |||
@@ -23,7 +24,7 @@ | |||
</ol> | |||
<span class="navbar-text"><a href="javascript:history.back(-1);" class="btn btn-success">返回</a></span> | |||
</nav> | |||
<form name="addcontent" action="article_edit.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit();"> | |||
<form name="addcontent" action="article_edit.php" method="post" enctype="multipart/form-data" onsubmit="return checkSubmit(`<?php echo $cInfos['titlename'];?>`);"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="aid" value="<?php echo $row['id'];?>"> | |||
<input type="hidden" name="idhash" value="<?php echo hash('sha256', $row['id'].$cfg_cookie_encode);?>"> | |||
@@ -31,7 +32,7 @@ | |||
<input type="hidden" name="oldlitpic" value="<?php echo $row['litpic'];?>"> | |||
<input type="hidden" name="sortrank" value="<?php echo $row['sortrank'];?>"> | |||
<div class="form-group row"> | |||
<label class="col-sm-2 col-form-label">标题</label> | |||
<label class="col-sm-2 col-form-label"><?php echo $cInfos['titlename'];?></label> | |||
<div class="col-sm-10"><input type="text" name="title" id="title" class="form-control" value="<?php echo $row['title']?>"></div> | |||
</div> | |||
<div class="form-group row"> | |||