@@ -181,7 +181,7 @@ else if ($dopost == 'save') { | |||
$album = $albumsArr[$i]; | |||
$data = explode(',', $album['img']); | |||
$ext = ".png"; | |||
if(strpos($data[0], "data:image/jpeg") === 0){ | |||
if (strpos($data[0], "data:image/jpeg") === 0){ | |||
$ext = ".jpg"; | |||
} elseif (strpos($data[0], "data:image/gif") === 0) { | |||
$ext = ".gif"; | |||
@@ -252,7 +252,7 @@ else if ($dopost == 'save') { | |||
if (!$dsql->ExecuteNoneQuery($query)) { | |||
$gerr = $dsql->GetError(); | |||
$dsql->ExecuteNoneQuery(" DELETE FROM `#@__arctiny` WHERE id='$arcID' "); | |||
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); | |||
ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); | |||
exit(); | |||
} | |||
//加入附加表 | |||
@@ -270,7 +270,7 @@ else if ($dopost == 'save') { | |||
$gerr = $dsql->GetError(); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); | |||
ShowMsg("把数据保存到数据库附加表 `{$addtable}` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); | |||
ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); | |||
exit(); | |||
} | |||
//生成网页 | |||
@@ -124,7 +124,7 @@ else if ($dopost == 'save') { | |||
$query = " | |||
UPDATE `#@__archives` SET typeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',click='$click',ismake='$ismake',arcrank='$arcrank',money='$money',title='$title',color='$color',source='$source',writer='$writer',litpic='$litpic',pubdate='$pubdate',notpost='$notpost',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid' WHERE id='$id'; "; | |||
if (!$dsql->ExecuteNoneQuery($query)) { | |||
ShowMsg("更新数据库 archives 表时出错,请检查".$dsql->GetError(), "javascript:;"); | |||
ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段".$dsql->GetError(), "javascript:;"); | |||
exit(); | |||
} | |||
$imgurls = "{dede:pagestyle maxwidth='$maxwidth' pagepicnum='$pagepicnum' ddmaxwidth='$ddmaxwidth' row='$row' col='$col' value='$pagestyle'/}\r\n"; | |||
@@ -251,7 +251,7 @@ else if ($dopost == 'save') { | |||
$album = $albumsArr[$i]; | |||
$data = explode(',', $album['img']); | |||
$ext = ".png"; | |||
if(strpos($data[0], "data:image/jpeg") === 0){ | |||
if (strpos($data[0], "data:image/jpeg") === 0){ | |||
$ext = ".jpg"; | |||
} elseif (strpos($data[0], "data:image/gif") === 0) { | |||
$ext = ".gif"; | |||
@@ -305,22 +305,9 @@ else if ($dopost == 'save') { | |||
$addtable = trim($cts['addtable']); | |||
if ($addtable != '') { | |||
$useip = GetIP(); | |||
$query = "Update `$addtable` | |||
set typeid='$typeid', | |||
pagestyle='$pagestyle', | |||
body='$body', | |||
maxwidth = '$maxwidth', | |||
ddmaxwidth = '$ddmaxwidth', | |||
pagepicnum = '$pagepicnum', | |||
imgurls='$imgurls', | |||
`row`='$row', | |||
col='$col', | |||
isrm='$isrm'{$inadd_f}, | |||
redirecturl='$redirecturl', | |||
userip = '$useip' | |||
WHERE aid='$id'; "; | |||
$query = "UPDATE `$addtable` SET typeid='$typeid',pagestyle='$pagestyle',body='$body',maxwidth='$maxwidth',ddmaxwidth='$ddmaxwidth',pagepicnum='$pagepicnum',imgurls='$imgurls',`row`='$row',col='$col',isrm='$isrm'{$inadd_f},redirecturl='$redirecturl',userip='$useip' WHERE aid='$id'; "; | |||
if (!$dsql->ExecuteNoneQuery($query)) { | |||
ShowMsg("更新附加表 `$addtable` 时出错,请检查原因".$dsql->GetError(), "javascript:;"); | |||
ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段".$dsql->GetError(), "javascript:;"); | |||
exit(); | |||
} | |||
} | |||
@@ -136,7 +136,7 @@ else if ($dopost == 'save') { | |||
if (!$dsql->ExecuteNoneQuery($query)) { | |||
$gerr = $dsql->GetError(); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); | |||
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); | |||
ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); | |||
exit(); | |||
} | |||
//保存到附加表 | |||
@@ -149,7 +149,7 @@ else if ($dopost == 'save') { | |||
$gerr = $dsql->GetError(); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); | |||
ShowMsg("把数据保存到数据库附加表 `{$addtable}` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); | |||
ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); | |||
exit(); | |||
} | |||
} | |||
@@ -30,7 +30,7 @@ if ($dopost == 'editArchives') { | |||
if ($gurl == '') $gurl = 'article_edit.php'; | |||
header("location:{$gurl}?aid=$aid"); | |||
exit(); | |||
} else if($dopost == 'upload_base64_image') { | |||
} else if ($dopost == 'upload_base64_image') { | |||
if ($litpic_b64 != "") { | |||
$data = explode(',', $litpic_b64); | |||
$ntime = time(); | |||
@@ -155,7 +155,7 @@ else if ($dopost == "uploadLitpic") { | |||
$msg = "<script> | |||
parent.document.getElementById('uploadwait').style.display = 'none'; | |||
parent.document.getElementById('picname').value = '{$upfile}'; | |||
if(parent.document.getElementById('divpicview')) | |||
if (parent.document.getElementById('divpicview')) | |||
{ | |||
parent.document.getElementById('divpicview').style.width = '150px'; | |||
parent.document.getElementById('divpicview').innerHTML = \"<img src='{$upfile}?n' width='150'>\"; | |||
@@ -330,14 +330,14 @@ else if ($dopost == 'moveArchives') { | |||
$dsql->Execute(); | |||
while ($row = $dsql->GetArray()) { | |||
if ($row['typeid'] != $totype) { | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__arctiny` SET typeid='$totype' WHERE id='{$row[$idtype]}' "); | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__arctiny` SET typeid='$totype' WHERE id='{$row[$idtype]}' "); | |||
$dsql->ExecuteNoneQuery("UPDATE `{$typeInfos['maintable']}` SET typeid='$totype' WHERE id='{$row[$idtype]}' "); | |||
$dsql->ExecuteNoneQuery("UPDATE `{$typeInfos['addtable']}` SET typeid='$totype' WHERE aid='{$row[$idtype]}' "); | |||
$okids[] = $row[$idtype]; | |||
$j++; | |||
} | |||
} | |||
//更新HTML | |||
//更新网页 | |||
foreach ($okids as $aid) { | |||
$arc = new Archives($aid); | |||
$arc->MakeHtml(); | |||
@@ -615,16 +615,7 @@ else if ($dopost == 'quickEditSave') { | |||
if (preg_match("#p#", $oldflag)) $flag .= ',p'; | |||
if (preg_match("#j#", $oldflag)) $flag .= ',j'; | |||
} | |||
$query = "UPDATE `#@__archives` SET | |||
typeid = '$typeid', | |||
flag = '$flag', | |||
arcrank = '$arcrank', | |||
money = '$money', | |||
title = '$title', | |||
shorttitle = '$shorttitle', | |||
keywords = '$keywords', | |||
dutyadmin = '$adminid' | |||
WHERE id = '$aid'; "; | |||
$query = "UPDATE `#@__archives` SET typeid='$typeid',flag='$flag',arcrank='$arcrank',money='$money',title='$title',shorttitle='$shorttitle',keywords='$keywords',dutyadmin='$adminid' WHERE id='$aid'; "; | |||
//更新主表 | |||
$dsql->ExecuteNoneQuery($query); | |||
//更新微表 | |||
@@ -636,7 +627,7 @@ else if ($dopost == 'quickEditSave') { | |||
else $addtable = preg_replace("#[^a-z0-9__#@-]#i", "", $addtable); | |||
$dsql->ExecuteNoneQuery("UPDATE `$addtable` SET typeid='$typeid' WHERE aid='$aid' "); | |||
} | |||
//更新HTML | |||
//更新网页 | |||
$artUrl = MakeArt($aid, TRUE, TRUE); | |||
$backurl = !empty($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : '-1'; | |||
ShowMsg('成功更新一篇文档基本信息', $backurl); | |||
@@ -128,7 +128,7 @@ else if ($dopost == 'save') { | |||
//更新数据库的SQL语句 | |||
$inQuery = "UPDATE `#@__archives` SET typeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',notpost='$notpost',click='$click',ismake='$ismake',arcrank='$arcrank',money='$money',title='$title',color='$color',writer='$writer',source='$source',litpic='$litpic',pubdate='$pubdate',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid',weight='$weight' WHERE id='$id'; "; | |||
if (!$dsql->ExecuteNoneQuery($inQuery)) { | |||
ShowMsg("更新数据库 archives 表时出错,请检查", "-1"); | |||
ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段", "-1"); | |||
exit(); | |||
} | |||
$cts = $dsql->GetOne("SELECT addtable From `#@__channeltype` WHERE id='$channelid' "); | |||
@@ -137,7 +137,7 @@ else if ($dopost == 'save') { | |||
$useip = GetIP(); | |||
$iquery = "UPDATE `$addtable` SET typeid='$typeid'{$inadd_f},redirecturl='$redirecturl',userip='$useip' WHERE aid='$id' "; | |||
if (!$dsql->ExecuteNoneQuery($iquery)) { | |||
ShowMsg("更新附加表 `$addtable` 时出错,请检查原因", "javascript:;"); | |||
ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段", "javascript:;"); | |||
exit(); | |||
} | |||
} | |||
@@ -115,7 +115,7 @@ else if ($dopost == 'save') { | |||
if (!$dsql->ExecuteNoneQuery($query)) { | |||
$gerr = $dsql->GetError(); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); | |||
ShowMsg("把数据保存到数据库附加表 `{$addtable}` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); | |||
ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); | |||
exit(); | |||
} | |||
} | |||
@@ -103,7 +103,7 @@ else if ($dopost == 'save') { | |||
if ($addtable != '') { | |||
$iquery = "UPDATE `$addtable` SET typeid='$typeid',arcrank='$arcrank',title='$title',flag='$flag',litpic='$litpic'{$inadd_f} WHERE aid='$id' "; | |||
if (!$dsql->ExecuteNoneQuery($iquery)) { | |||
ShowMsg("更新附加表 `$addtable` 时出错,请检查原因", "javascript:;"); | |||
ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段", "javascript:;"); | |||
exit(); | |||
} | |||
} | |||
@@ -153,7 +153,7 @@ else if ($dopost == 'save') { | |||
if (!$dsql->ExecuteNoneQuery($query)) { | |||
$gerr = $dsql->GetError(); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); | |||
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); | |||
ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); | |||
exit(); | |||
} | |||
//保存到附加表 | |||
@@ -172,7 +172,7 @@ else if ($dopost == 'save') { | |||
$gerr = $dsql->GetError(); | |||
$dsql->ExecuteNoneQuery("Delete From `#@__archives` where id='$arcID'"); | |||
$dsql->ExecuteNoneQuery("Delete From `#@__arctiny` where id='$arcID'"); | |||
ShowMsg("把数据保存到数据库附加表 `{$addtable}` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); | |||
ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); | |||
exit(); | |||
} | |||
//生成网页 | |||
@@ -35,7 +35,7 @@ $win = new OxWindow(); | |||
$win->Init('article_allowurl_edit.php', 'js/blank.js', 'POST'); | |||
$win->AddHidden('dopost', 'save'); | |||
$win->AddTitle("每行保存一个超链接:"); | |||
$win->AddMsgItem("<textarea name='allurls' id='allurls' style='width:100%;height:300px'>$allurls</textarea>"); | |||
$win->AddMsgItem("<textarea name='allurls' id='allurls'class='biz-textarea'>$allurls</textarea>"); | |||
$winform = $win->GetWindow('ok'); | |||
$win->Display(); | |||
?> |
@@ -139,9 +139,9 @@ else if ($dopost == 'save') { | |||
//跳转网址的文档强制为动态 | |||
if (preg_match("#j#", $flag)) $ismake = -1; | |||
//更新数据库的SQL语句 | |||
$query = "UPDATE `#@__archives` SETtypeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',click='$click',ismake='$ismake',arcrank='$arcrank',money='$money',title='$title',color='$color',writer='$writer',source='$source',litpic='$litpic',pubdate='$pubdate',notpost='$notpost',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid',weight='$weight'WHERE id='$id'; "; | |||
$query = "UPDATE `#@__archives` SET typeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',click='$click',ismake='$ismake',arcrank='$arcrank',money='$money',title='$title',color='$color',writer='$writer',source='$source',litpic='$litpic',pubdate='$pubdate',notpost='$notpost',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid',weight='$weight'WHERE id='$id'; "; | |||
if (!$dsql->ExecuteNoneQuery($query)) { | |||
ShowMsg('更新数据库 archives 表时出错,请检查', -1); | |||
ShowMsg('数据保存到数据库主表`#@__archives`时出错,请检查数据库字段', -1); | |||
exit(); | |||
} | |||
$cts = $dsql->GetOne("SELECT addtable FROM `#@__channeltype` WHERE id='$channelid' "); | |||
@@ -151,7 +151,7 @@ else if ($dopost == 'save') { | |||
$templet = empty($templet) ? '' : $templet; | |||
$iquery = "UPDATE `$addtable` SET typeid='$typeid',body='$body'{$inadd_f},redirecturl='$redirecturl',templet='$templet',userip='$useip' WHERE aid='$id'"; | |||
if (!$dsql->ExecuteNoneQuery($iquery)) { | |||
ShowMsg("更新附加表 `$addtable` 时出错,请检查原因", "javascript:;"); | |||
ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段", "javascript:;"); | |||
exit(); | |||
} | |||
} | |||
@@ -35,7 +35,7 @@ $win = new OxWindow(); | |||
$win->Init('article_source_edit.php', 'js/blank.js', 'POST'); | |||
$win->AddHidden('dopost', 'save'); | |||
$win->AddTitle("每行保存一个来源:"); | |||
$win->AddMsgItem("<textarea name='allsource' id='allsource' style='width:100%;height:300px'>$allsource</textarea>"); | |||
$win->AddMsgItem("<textarea name='allsource' id='allsource'class='biz-textarea'>$allsource</textarea>"); | |||
$winform = $win->GetWindow('ok'); | |||
$win->Display(); | |||
?> |
@@ -38,7 +38,7 @@ $win->Init('article_string_mix.php', 'js/blank.js', 'POST'); | |||
$win->AddHidden('dopost', 'save'); | |||
$win->AddHidden('token', $_SESSION['token']); | |||
$win->AddTitle("如果您要启用字符串混淆来防采集,请在文档模板需要的字段加上 function='RndString(@me)' 属性,如:{dede:field name='body' function='RndString(@me)'/}"); | |||
$win->AddMsgItem("<textarea name='allsource' id='allsource' style='width:100%;height:300px'>$allsource</textarea>"); | |||
$win->AddMsgItem("<textarea name='allsource' id='allsource'class='biz-textarea'>$allsource</textarea>"); | |||
$winform = $win->GetWindow('ok'); | |||
$win->Display(); | |||
?> |
@@ -47,7 +47,7 @@ else if ($dopost == 'makeold') { | |||
} | |||
for ($i = 0; $i < 10; $i++) { | |||
$temp = $cfg_tamplate_arr[mt_rand(0, $totalTmp)]; | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__addonarticle` set templet='$temp' where RIGHT(aid, 1)='$i' "); | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__addonarticle` SET templet='$temp' where RIGHT(aid, 1)='$i' "); | |||
} | |||
AjaxHead(); | |||
echo "全部随机操作成功"; | |||
@@ -56,7 +56,7 @@ else if ($dopost == 'makeold') { | |||
//清除全部的指定模板 | |||
else if ($dopost == 'clearold') { | |||
CheckCSRF(); | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__addonarticle` set templet='' "); | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__addonarticle` SET templet='' "); | |||
$dsql->ExecuteNoneQuery(" OPTIMIZE TABLE `#@__addonarticle` "); | |||
AjaxHead(); | |||
echo "全部清除操作成功"; | |||
@@ -35,7 +35,7 @@ $win = new OxWindow(); | |||
$win->Init('article_writer_edit.php', 'js/blank.js', 'POST'); | |||
$win->AddHidden('dopost', 'save'); | |||
$win->AddTitle("把作者姓名用半角逗号“,”分开:"); | |||
$win->AddMsgItem("<textarea name='allwriter' id='allwriter' style='width:100%;height:300px'>$allwriter</textarea>"); | |||
$win->AddMsgItem("<textarea name='allwriter' id='allwriter'class='biz-textarea'>$allwriter</textarea>"); | |||
$winform = $win->GetWindow('ok'); | |||
$win->Display(); | |||
?> |
@@ -66,7 +66,7 @@ if ($action == 'check') { | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__archives` SET arcrank=0 WHERE id='{$row->id}'"); | |||
} | |||
} | |||
ShowMsg("完成数据库的审核处理,准备更新HTML", $jumpurl); | |||
ShowMsg("完成数据库的审核处理,准备更新网页", $jumpurl); | |||
exit(); | |||
} | |||
//批量删除 | |||
@@ -114,22 +114,22 @@ button+button{margin-left:10px} | |||
document.addEventListener('drop', (e)=>{ | |||
e.stopPropagation(); | |||
e.preventDefault(); | |||
if(!e.dataTransfer.files){return false;} | |||
if (!e.dataTransfer.files){return false;} | |||
var dropfiles = e.dataTransfer.files; | |||
if(!(dropfiles.length>0)){return false;} | |||
if (!(dropfiles.length>0)){return false;} | |||
var exts=axupimgs.axupimgs_filetype.replace(/(\s)+/g,'').toLowerCase().split(','); | |||
var files=[]; | |||
for( let file of dropfiles ){ | |||
ext = file.name.split('.'); | |||
ext = '.'+ext[ext.length-1]; | |||
for(let s of exts){ | |||
if(s==ext){ | |||
if (s==ext){ | |||
files.push(file); | |||
break; | |||
} | |||
} | |||
} | |||
if(files.length>0){ addList(files) } | |||
if (files.length>0){ addList(files) } | |||
}); | |||
//添加文件 | |||
document.querySelector('#topbar .addfile').addEventListener('click',()=>{ | |||
@@ -147,7 +147,7 @@ button+button{margin-left:10px} | |||
function upAllFiles(n){ | |||
var len = axupimgs.res.length; | |||
file_i = n; | |||
if(len == n){ | |||
if (len == n){ | |||
file_i=0; | |||
document.querySelector('#topbar .upall').innerText='全部上传'; | |||
//返回 | |||
@@ -159,17 +159,17 @@ button+button{margin-left:10px} | |||
window.close(); | |||
return true; | |||
} | |||
if( axupimgs.res[n].url!='' ){ | |||
if ( axupimgs.res[n].url!='' ){ | |||
n++; | |||
upAllFiles(n) | |||
} else { | |||
blobInfo.file=axupimgs.res[n].file; | |||
blobInfo.isWater = document.querySelector('#isWater').checked; | |||
upload_handler(blobInfo,function(url){ | |||
if(upload_base_path){ | |||
if(upload_base_path.slice(-1)=='/' && url.substr(0,1)=='/' ){ | |||
if (upload_base_path){ | |||
if (upload_base_path.slice(-1)=='/' && url.substr(0,1)=='/' ){ | |||
url = upload_base_path + url.slice(1); | |||
}else if(upload_base_path.slice(-1)!='/' && url.substr(0,1)!='/' ){ | |||
}else if (upload_base_path.slice(-1)!='/' && url.substr(0,1)!='/' ){ | |||
url = upload_base_path + '/' + url; | |||
} else { | |||
url = upload_base_path + url; | |||
@@ -192,8 +192,8 @@ button+button{margin-left:10px} | |||
} | |||
} | |||
document.querySelector('#topbar .upall').addEventListener('click',(e)=>{ | |||
if(e.target.innerText!='全部上传'){return false;} | |||
if(axupimgs.res.length>0){ | |||
if (e.target.innerText!='全部上传'){return false;} | |||
if (axupimgs.res.length>0){ | |||
document.querySelectorAll('#file_list li.up-no').forEach((el,i)=>{ | |||
el.classList ? el.classList.add('up-now') : el.className+=' up-now'; | |||
}); | |||
@@ -202,7 +202,7 @@ button+button{margin-left:10px} | |||
} | |||
}); | |||
var observ_flist = new MutationObserver( (muList,observe)=>{ | |||
if(muList[0].addedNodes.length>0){ | |||
if (muList[0].addedNodes.length>0){ | |||
muList[0].addedNodes.forEach((el)=>{ | |||
el.querySelector('.remove').addEventListener('click',(e)=>{ | |||
var li = e.target.parentNode.parentNode; | |||
@@ -60,7 +60,7 @@ if ($action == 'save') { | |||
} | |||
$addlist = GetAddFieldList($dtp, $oksetting); | |||
$oksetting = addslashes($oksetting); | |||
$rs = $dsql->ExecuteNoneQuery("Update #@__diyforms set `info`='$oksetting' where diyid='$diyid' "); | |||
$rs = $dsql->ExecuteNoneQuery("UPDATE `#@__diyforms` SET `info`='$oksetting' WHERE diyid='$diyid' "); | |||
if (!$rs) { | |||
$grr = $dsql->GetError(); | |||
ShowMsg("保存节点配置出错".$grr, "javascript:;"); | |||
@@ -87,7 +87,7 @@ if ($action == 'save') { | |||
} | |||
$oksetting = $dtp->GetResultNP(); | |||
$oksetting = addslashes($oksetting); | |||
$dsql->ExecuteNoneQuery("UPDATE #@__diyforms SET info='$oksetting' WHERE diyid='$diyid' "); | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__diyforms` SET info='$oksetting' WHERE diyid='$diyid' "); | |||
ShowMsg("成功修改一个字段的配置", "diy_edit.php?diyid={$diyid}"); | |||
exit(); | |||
} | |||
@@ -103,7 +103,7 @@ else if ($action == "delete") { | |||
} | |||
} | |||
$oksetting = addslashes($dtp->GetResultNP()); | |||
$dsql->ExecuteNoneQuery("UPDATE #@__diyforms SET info='$oksetting' WHERE diyid='$diyid' "); | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__diyforms SET` info='$oksetting' WHERE diyid='$diyid' "); | |||
$dsql->ExecuteNoneQuery("ALTER TABLE `$trueTable` DROP `$fname` "); | |||
ShowMsg("成功删除一个字段", "diy_edit.php?diyid=$diyid"); | |||
exit(); | |||
@@ -171,7 +171,7 @@ if ($action == 'post') { | |||
} | |||
} | |||
} | |||
elseif($action == 'excel') { | |||
elseif ($action == 'excel') { | |||
ob_end_clean();//清除缓冲区,避免乱码 | |||
header("Content-type:application/vnd.ms-excel"); | |||
header("Content-Disposition:attachment;filename={$diy->name}_".date("Y-m-d").".xls"); | |||
@@ -16,7 +16,7 @@ if (empty($needclose)) { | |||
header('location:index.php'); | |||
} else { | |||
$msg = "<script> | |||
if(document.all) window.opener=true; | |||
if (document.all) window.opener=true; | |||
window.close(); | |||
</script>"; | |||
echo $msg; | |||
@@ -74,7 +74,7 @@ else if ($fmdo == "edit") { | |||
/* | |||
文件编辑,可视化模式 | |||
function __saveEditView(); | |||
else if($fmdo=="editview") | |||
else if ($fmdo=="editview") | |||
{ | |||
$filename = str_replace("..","",$filename); | |||
$file = "$cfg_basedir$activepath/$filename"; | |||
@@ -83,7 +83,7 @@ else if($fmdo=="editview") | |||
$fp = fopen($file,"w"); | |||
fputs($fp,$str); | |||
fclose($fp); | |||
if(empty($backurl)) | |||
if (empty($backurl)) | |||
{ | |||
$backurl = "file_manage_main.php?activepath=$activepath"; | |||
} | |||
@@ -39,7 +39,7 @@ if (empty($dopost)) { | |||
if (!empty($innertext)) $innertext = stripslashes($innertext); | |||
$listTag = "{dede:list $atts}$innertext{/dede:list}"; | |||
$listTag = addslashes($listTag); | |||
$inquery = "UPDATE `#@__freelist` set title='$title',namerule='$namerule',listdir='$listdir', defaultpage='$defaultpage',nodefault='$nodefault',templet='$templet',edtime='$edtime',`maxpage`='$maxpage',listtag='$listTag',keywords='$keywords',description='$description' WHERE aid='$aid';"; | |||
$inquery = "UPDATE `#@__freelist` SET title='$title',namerule='$namerule',listdir='$listdir', defaultpage='$defaultpage',nodefault='$nodefault',templet='$templet',edtime='$edtime',`maxpage`='$maxpage',listtag='$listTag',keywords='$keywords',description='$description' WHERE aid='$aid';"; | |||
$dsql->ExecuteNoneQuery($inquery); | |||
ShowMsg("成功修改一个自由列表", "freelist_main.php"); | |||
exit(); | |||
@@ -12,11 +12,11 @@ require_once(dirname(__FILE__)."/config.php"); | |||
CheckPurview('c_FreeList'); | |||
require_once DEDEINC.'/channelunit.func.php'; | |||
setcookie("ENV_GOBACK_URL",$dedeNowurl,time()+3600,"/"); | |||
if(empty($pagesize)) $pagesize = 30; | |||
if(empty($pageno)) $pageno = 1; | |||
if(empty($dopost)) $dopost = ''; | |||
if(empty($orderby)) $orderby = 'aid'; | |||
if(empty($keyword)) | |||
if (empty($pagesize)) $pagesize = 30; | |||
if (empty($pageno)) $pageno = 1; | |||
if (empty($dopost)) $dopost = ''; | |||
if (empty($orderby)) $orderby = 'aid'; | |||
if (empty($keyword)) | |||
{ | |||
$keyword = ''; | |||
$addget = ''; | |||
@@ -26,14 +26,14 @@ if(empty($keyword)) | |||
$addsql = " where title like '%$keyword%' "; | |||
} | |||
//重载列表 | |||
if($dopost=='getlist') | |||
if ($dopost=='getlist') | |||
{ | |||
AjaxHead(); | |||
GetTagList($dsql,$pageno,$pagesize,$orderby); | |||
exit(); | |||
} | |||
//删除字段 | |||
else if($dopost=='del') | |||
else if ($dopost=='del') | |||
{ | |||
$aid = preg_replace("#[^0-9]#", "", $aid); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__freelist` WHERE aid='$aid'; "); | |||
@@ -42,7 +42,7 @@ else if($dopost=='del') | |||
exit(); | |||
} | |||
//第一次进入这个页面 | |||
if($dopost=='') | |||
if ($dopost=='') | |||
{ | |||
$row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__freelist` $addsql "); | |||
$totalRow = $row['dd']; | |||
@@ -60,7 +60,7 @@ if ($dopost == "add") { | |||
ShowMsg("成功增加一个链接", $burl, 0, 500); | |||
exit(); | |||
} else { | |||
ShowMsg("增加链接时出错,请向官方反馈,原因:".$dsql->GetError(), "javascript:;"); | |||
ShowMsg("增加链接时出错,原因:".$dsql->GetError(), "javascript:;"); | |||
exit(); | |||
} | |||
} | |||
@@ -75,7 +75,7 @@ | |||
>sys_Writer>作者管理 | |||
>sys_SoftConfig>软件频道参数 | |||
>sys_Keyword>关键词管理 | |||
>sys_MakeHtml>更新HTML | |||
>sys_MakeHtml>更新网页 | |||
>sys_Feedback>评论管理 | |||
>sys_Upload>管理任意上传 | |||
>sys_MyUpload>管理我的上传 | |||
@@ -136,7 +136,7 @@ $actionSearch[4] = array( | |||
), | |||
1 => array( | |||
'title' => '文档批量维护 ', | |||
'description' => '批量的对某个栏目或者全部栏目的内容进行审核文档、更新HTML、移动文档、删除文档', | |||
'description' => '批量的对某个栏目或者全部栏目的内容进行审核文档、更新网页、移动文档、删除文档', | |||
'purview' => 'sys_ArcBatch', | |||
'linkurl' => 'content_batch_up.php' | |||
), | |||
@@ -12,87 +12,87 @@ | |||
function GetFieldMake($dtype, $fieldname, $dfvalue, $mxlen) | |||
{ | |||
$fields = array(); | |||
if($dtype == "int" || $dtype == "datetime") | |||
if ($dtype == "int" || $dtype == "datetime") | |||
{ | |||
if($dfvalue == "" || preg_match("#[^0-9-]#", $dfvalue)) | |||
if ($dfvalue == "" || preg_match("#[^0-9-]#", $dfvalue)) | |||
{ | |||
$dfvalue = 0; | |||
} | |||
$fields[0] = " `$fieldname` int(11) NOT NULL default '$dfvalue';"; | |||
$fields[1] = "int(11)"; | |||
} | |||
else if($dtype == "stepselect") | |||
else if ($dtype == "stepselect") | |||
{ | |||
if($dfvalue == "" || preg_match("#[^0-9\.-]#", $dfvalue)) | |||
if ($dfvalue == "" || preg_match("#[^0-9\.-]#", $dfvalue)) | |||
{ | |||
$dfvalue = 0; | |||
} | |||
$fields[0] = " `$fieldname` char(20) NOT NULL default '$dfvalue';"; | |||
$fields[1] = "char(20)"; | |||
} | |||
else if($dtype == "float") | |||
else if ($dtype == "float") | |||
{ | |||
if($dfvalue == "" || preg_match("#[^0-9\.-]#", $dfvalue)) | |||
if ($dfvalue == "" || preg_match("#[^0-9\.-]#", $dfvalue)) | |||
{ | |||
$dfvalue = 0; | |||
} | |||
$fields[0] = " `$fieldname` float NOT NULL default '$dfvalue';"; | |||
$fields[1] = "float"; | |||
} | |||
else if($dtype == "img" || $dtype == "media" || $dtype == "addon" || $dtype == "imgfile") | |||
else if ($dtype == "img" || $dtype == "media" || $dtype == "addon" || $dtype == "imgfile") | |||
{ | |||
if(empty($dfvalue)) $dfvalue = ''; | |||
if($mxlen=="") $mxlen = 200; | |||
if($mxlen > 255) $mxlen = 100; | |||
if (empty($dfvalue)) $dfvalue = ''; | |||
if ($mxlen=="") $mxlen = 200; | |||
if ($mxlen > 255) $mxlen = 100; | |||
$fields[0] = " `$fieldname` varchar($mxlen) NOT NULL default '$dfvalue';"; | |||
$fields[1] = "varchar($mxlen)"; | |||
} | |||
else if($dtype == "multitext" || $dtype == "htmltext") | |||
else if ($dtype == "multitext" || $dtype == "htmltext") | |||
{ | |||
$fields[0] = " `$fieldname` mediumtext;"; | |||
$fields[1] = "mediumtext"; | |||
} | |||
else if($dtype=="textdata") | |||
else if ($dtype=="textdata") | |||
{ | |||
if(empty($dfvalue)) $dfvalue = ''; | |||
if (empty($dfvalue)) $dfvalue = ''; | |||
$fields[0] = " `$fieldname` varchar(100) NOT NULL default '';"; | |||
$fields[1] = "varchar(100)"; | |||
} | |||
else if($dtype=="relation") { | |||
if(empty($dfvalue)) $dfvalue = ''; | |||
else if ($dtype=="relation") { | |||
if (empty($dfvalue)) $dfvalue = ''; | |||
$fields[0] = " `$fieldname` TEXT NOT NULL default '$dfvalue';"; | |||
$fields[1] = "TEXT"; | |||
} | |||
else if($dtype=="textchar") | |||
else if ($dtype=="textchar") | |||
{ | |||
if(empty($dfvalue)) $dfvalue = ''; | |||
if (empty($dfvalue)) $dfvalue = ''; | |||
$fields[0] = " `$fieldname` char(100) NOT NULL default '$dfvalue';"; | |||
$fields[1] = "char(100)"; | |||
} | |||
else if($dtype=="checkbox") | |||
else if ($dtype=="checkbox") | |||
{ | |||
$dfvalue = str_replace(',',"','",$dfvalue); | |||
$dfvalue = "'".$dfvalue."'"; | |||
$fields[0] = " `$fieldname` SET($dfvalue) NULL;"; | |||
$fields[1] = "SET($dfvalue)"; | |||
} | |||
else if($dtype=="select" || $dtype=="radio") | |||
else if ($dtype=="select" || $dtype=="radio") | |||
{ | |||
$dfvalue = str_replace(',', "','", $dfvalue); | |||
$dfvalue = "'".$dfvalue."'"; | |||
$fields[0] = " `$fieldname` enum($dfvalue) NULL;"; | |||
$fields[1] = "enum($dfvalue)"; | |||
} else { | |||
if(empty($dfvalue)) | |||
if (empty($dfvalue)) | |||
{ | |||
$dfvalue = ''; | |||
} | |||
if(empty($mxlen)) | |||
if (empty($mxlen)) | |||
{ | |||
$mxlen = 100; | |||
} | |||
if($mxlen > 255) | |||
if ($mxlen > 255) | |||
{ | |||
$mxlen = 250; | |||
} | |||
@@ -114,11 +114,11 @@ function GetAddFieldList(&$dtp,&$oksetting) | |||
$oklist = ''; | |||
$dtp->SetNameSpace("field","<",">"); | |||
$dtp->LoadSource($oksetting); | |||
if(is_array($dtp->CTags)) | |||
if (is_array($dtp->CTags)) | |||
{ | |||
foreach($dtp->CTags as $tagid=>$ctag) | |||
{ | |||
if($ctag->GetAtt('islist')==1) | |||
if ($ctag->GetAtt('islist')==1) | |||
{ | |||
$oklist .= ($oklist=='' ? strtolower($ctag->GetName()) : ','.strtolower($ctag->GetName()) ); | |||
} | |||
@@ -131,11 +131,11 @@ function GetCurContent($body) | |||
} else if ($itype == 'audio/mpeg'){ | |||
$itype = ".mp3"; | |||
$isImage = false; | |||
} else if($itype == 'image/jpeg') { | |||
} else if ($itype == 'image/jpeg') { | |||
$itype = '.jpg'; | |||
} else if($itype == 'image/bmp') { | |||
} else if ($itype == 'image/bmp') { | |||
$itype = '.bmp'; | |||
} else if($itype == 'image/svg+xml') { | |||
} else if ($itype == 'image/svg+xml') { | |||
$itype = '.svg'; | |||
$isImage = false; | |||
} else { | |||
@@ -61,7 +61,7 @@ function GetOptionList($selid = 0, $userCatalog = 0, $channeltype = 0) | |||
LogicGetOptionArray($row->id, '─', $channeltype, $dsql, $sonCats); | |||
if ($sonCats != '') { | |||
if ($row->ispart == 1) $OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename."-封面频道</option>"; | |||
else if($row->ispart == 2) $OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename."-外部连接</option>"; | |||
else if ($row->ispart == 2) $OptionArrayList .= "<option value='".$row->id."' class='option1'>".$row->typename."-外部连接</option>"; | |||
else if (empty($channeltype) && $row->ispart != 0) $OptionArrayList .= "<option value='".$row->id."' class='option2'>".$row->typename."(".$channels[$row->channeltype].")</option>"; | |||
else $OptionArrayList .= "<option value='".$row->id."' class='option3'>".$row->typename."</option>"; | |||
$OptionArrayList .= $sonCats; | |||
@@ -31,7 +31,7 @@ else if ($dopost == 'setskin') { | |||
} elseif ($dopost == 'get_seo') { | |||
//直接采用DedeBIZ重写方法 | |||
exit; | |||
} elseif($dopost == 'get_articles'){ | |||
} elseif ($dopost == 'get_articles'){ | |||
?> | |||
<table class="table table-borderless"> | |||
<?php | |||
@@ -44,11 +44,11 @@ else if ($dopost == 'setskin') { | |||
} | |||
?> | |||
<?php | |||
if(count($arcArr) > 1) | |||
if (count($arcArr) > 1) | |||
{ | |||
foreach($arcArr as $row) | |||
{ | |||
if(trim($row['editcon'])==''){ | |||
if (trim($row['editcon'])==''){ | |||
$row['editcon'] = 'archives_edit.php'; | |||
} | |||
$rowarcrank = $row['arcrank']==-1? " <span class='text-danger'>[未审核]</span>":""; | |||
@@ -60,5 +60,5 @@ if ($nextpage == $totalpage) { | |||
ShowMsg("创建列表:".$tid.",继续执行任务", $gourl, 0, 100); | |||
} | |||
} | |||
$dsql->ExecuteNoneQuery("Update `#@__freelist` set nodefault='1' where aid='$startid';"); | |||
$dsql->ExecuteNoneQuery("UPDATE `#@__freelist` SET nodefault='1' where aid='$startid';"); | |||
?> |
@@ -155,33 +155,10 @@ else if ($dopost == 'edituser') { | |||
ShowMsg("对不起,为安全起见,不支持直接把前台会员转为管理的操作", "-1"); | |||
exit(); | |||
} | |||
$query = "UPDATE `#@__member` SET | |||
email = '$email', | |||
uname = '$uname', | |||
sex = '$sex', | |||
matt = '$matt', | |||
money = '$money', | |||
scores = '$scores', | |||
`rank` = '$rank', | |||
spacesta='$spacesta', | |||
uptime='$uptime', | |||
exptime='$exptime' | |||
$pwdsql | |||
WHERE mid='$id' AND matt<>10 "; | |||
$query = "UPDATE `#@__member` SET email='$email',uname='$uname',sex='$sex',matt='$matt',money='$money',scores='$scores',`rank`='$rank',spacesta='$spacesta',uptime='$uptime',exptime='$exptime'$pwdsql WHERE mid='$id' AND matt<>10 "; | |||
$rs = $dsql->ExecuteNoneQuery2($query); | |||
if ($rs == 0) { | |||
$query = "UPDATE `#@__member` SET | |||
email = '$email', | |||
uname = '$uname', | |||
sex = '$sex', | |||
money = '$money', | |||
scores = '$scores', | |||
`rank` = '$rank', | |||
spacesta='$spacesta', | |||
uptime='$uptime', | |||
exptime='$exptime' | |||
$pwdsql | |||
WHERE mid='$id' "; | |||
$query = "UPDATE `#@__member` SET email='$email',uname='$uname',sex='$sex',money='$money',scores='$scores',`rank`='$rank',spacesta='$spacesta',uptime='$uptime',exptime='$exptime'$pwdsql WHERE mid='$id' "; | |||
$rs = $dsql->ExecuteNoneQuery2($query); | |||
} | |||
ShowMsg('成功修改会员资料', 'member_view.php?id='.$id); | |||
@@ -45,7 +45,7 @@ function ReWriteConfigAuto() | |||
$dsql->SetQuery("SELECT `varname`,`type`,`value`,`groupid` FROM `#@__sysconfig` ORDER BY aid ASC "); | |||
$dsql->Execute(); | |||
while ($row = $dsql->GetArray()) { | |||
if(empty($row['value']) && $row['type'] == 'number') $row['value'] = 0; | |||
if (empty($row['value']) && $row['type'] == 'number') $row['value'] = 0; | |||
if ($row['type'] == 'number') fwrite($fp, "\${$row['varname']} = ".$row['value'].";\r\n"); | |||
else fwrite($fp, "\${$row['varname']} = '".str_replace("'", '', $row['value'])."';\r\n"); | |||
} | |||
@@ -273,7 +273,7 @@ else if ($action == 'setupstart') { | |||
} | |||
ReWriteConfigAuto(); | |||
$rflwft = "<script>\r\n"; | |||
$rflwft .= "if(window.navigator.userAgent.indexOf('MSIE')>=1) top.document.frames.menu.location = 'index_menu.php';\r\n"; | |||
$rflwft .= "if (window.navigator.userAgent.indexOf('MSIE')>=1) top.document.frames.menu.location = 'index_menu.php';\r\n"; | |||
$rflwft .= "else top.document.getElementById('menufra').src = 'index_menu.php';\r\n"; | |||
$rflwft .= "</script>"; | |||
echo $rflwft; | |||
@@ -439,7 +439,7 @@ else if ($action == 'uninstallok') { | |||
} | |||
ReWriteConfigAuto(); | |||
$rflwft = "<script>\r\n"; | |||
$rflwft .= "if(window.navigator.userAgent.indexOf('MSIE')>=1) top.document.frames.menu.location = 'index_menu.php';\r\n"; | |||
$rflwft .= "if (window.navigator.userAgent.indexOf('MSIE')>=1) top.document.frames.menu.location = 'index_menu.php';\r\n"; | |||
$rflwft .= "else top.document.getElementById('menufra').src = 'index_menu.php';\r\n"; | |||
$rflwft .= "</script>"; | |||
echo $rflwft; | |||
@@ -104,7 +104,7 @@ else if ($action == 'make') { | |||
} | |||
if (trim($setupsql40) == '') $setupsql40 = ''; | |||
else $setupsql40 = base64_encode(trim($setupsql40)); | |||
//if(trim($setupsql41)=='') $setupsql41 = ''; | |||
//if (trim($setupsql41)=='') $setupsql41 = ''; | |||
//else $setupsql41 = base64_encode(trim($setupsql41)); | |||
if (trim($delsql) == '') $delsql = ''; | |||
else $delsql = base64_encode(trim($delsql)); | |||
@@ -244,7 +244,7 @@ else if ($action == 'edit') { | |||
} | |||
if (trim($setupsql40) == '') $setupsql40 = ''; | |||
else $setupsql40 = base64_encode(htmlspecialchars_decode(trim($setupsql40))); | |||
//if(trim($setupsql41)=='') $setupsql41 = ''; | |||
//if (trim($setupsql41)=='') $setupsql41 = ''; | |||
//else $setupsql41 = base64_encode(trim($setupsql41)); | |||
if (trim($delsql) == '') $delsql = ''; | |||
else $delsql = base64_encode(strip_tags(trim($delsql))); | |||
@@ -255,7 +255,7 @@ else if ($dopost == "copysave") { | |||
$row = $dsql->GetArray('me', MYSQL_BOTH); | |||
$tableStruct = $row[1]; | |||
$tb = str_replace('#@__', $cfg_dbprefix, $addtable); | |||
$tableStruct = preg_replace("/CREATE TABLE `$addtable`/iU", "CREATE TABLE `$newaddtable`", $tableStruct); | |||
$tableStruct = preg_replace("/CREATE TABLE `$addtable` /iU", "CREATE TABLE `$newaddtable`", $tableStruct); | |||
$dsql->ExecuteNoneQuery($tableStruct); | |||
} | |||
if ($copytemplet == 1) { | |||
@@ -280,27 +280,7 @@ function __SaveEdit() | |||
else if ($dopost == "save") { | |||
$fieldset = preg_replace("#[\r\n]{1,}#", "\r\n", $fieldset); | |||
$usertype = empty($usertype) ? '' : $usertype; | |||
$query = "Update `#@__channeltype` set | |||
typename = '$typename', | |||
addtable = '$addtable', | |||
addcon = '$addcon', | |||
mancon = '$mancon', | |||
editcon = '$editcon', | |||
useraddcon = '$useraddcon', | |||
usermancon = '$usermancon', | |||
usereditcon = '$usereditcon', | |||
fieldset = '$fieldset', | |||
listfields = '$listfields', | |||
issend = '$issend', | |||
arcsta = '$arcsta', | |||
usertype = '$usertype', | |||
sendrank = '$sendrank', | |||
needdes = '$needdes', | |||
needpic = '$needpic', | |||
titlename = '$titlename', | |||
onlyone = '$onlyone', | |||
dfcid = '$dfcid' | |||
WHERE id='$id' "; | |||
$query = "UPDATE `#@__channeltype` SET typename='$typename',addtable='$addtable',addcon='$addcon',mancon='$mancon',editcon='$editcon',useraddcon='$useraddcon',usermancon='$usermancon',usereditcon='$usereditcon',fieldset='$fieldset',listfields='$listfields',issend='$issend',arcsta='$arcsta',usertype='$usertype',sendrank='$sendrank',needdes='$needdes',needpic='$needpic',titlename='$titlename',onlyone='$onlyone',dfcid='$dfcid' WHERE id='$id' "; | |||
if (trim($fieldset) != '') { | |||
$dtp = new DedeTagParse(); | |||
$dtp->SetNameSpace("field", "<", ">"); | |||
@@ -312,7 +292,7 @@ else if ($dopost == "save") { | |||
} | |||
$trueTable = str_replace("#@__", $cfg_dbprefix, $addtable); | |||
if (!$dsql->IsTable($trueTable)) { | |||
ShowMsg("系统找不到您所指定的表 $trueTable ,请手工创建这个表", "-1"); | |||
ShowMsg("系统找不到您所指定的表`$trueTable`,请手工创建这个表", "-1"); | |||
exit(); | |||
} | |||
$dsql->ExecuteNoneQuery($query); | |||
@@ -444,13 +424,6 @@ else if ($dopost == 'modifysearch') { | |||
$mainfields .= '<label><input type="checkbox" name="mainfields[]" '.$c3.' value="writer" /> 作者</label> '; | |||
$mainfields .= '<label><input type="checkbox" name="mainfields[]" '.$c4.' value="source" /> 来源</label> '; | |||
$mainfields .= '<label><input type="checkbox" name="mainfields[]" '.$c5.' value="senddate" /> 发布时间</label> '; | |||
/* | |||
$mainfields .= '<label><input type="checkbox" name="mainfields[]" value="description" />摘要</label>'; | |||
$mainfields .= '<label><input type="checkbox" name="mainfields[]" value="keywords" />关键词</label>'; | |||
$mainfields .= '<label><input type="checkbox" name="mainfields[]" value="smalltypeid" />小分类</label>'; | |||
$mainfields .= '<label><input type="checkbox" name="mainfields[]" value="area" />地区</label>'; | |||
$mainfields .= '<label><input type="checkbox" name="mainfields[]" value="sector" />行业</label>'; | |||
*/ | |||
$query = "SELECT * FROM `#@__channeltype` WHERE id='$mid'"; | |||
$channel = $dsql->GetOne($query); | |||
$searchtype = array('int', 'datetime', 'float', 'textdata', 'textchar', 'text', 'htmltext', 'multitext', 'select', 'radio', 'checkbox'); | |||
@@ -146,7 +146,7 @@ else if ($dopost == 'save') { | |||
if (!$dsql->ExecuteNoneQuery($inQuery)) { | |||
$gerr = $dsql->GetError(); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); | |||
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); | |||
ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); | |||
exit(); | |||
} | |||
//软件链接列表 | |||
@@ -208,7 +208,7 @@ else if ($dopost == 'save') { | |||
$gerr = $dsql->GetError(); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); | |||
ShowMsg("把数据保存到数据库附加表 `{$addtable}` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); | |||
ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); | |||
exit(); | |||
} | |||
//生成网页 | |||
@@ -162,9 +162,9 @@ else if ($dopost == 'save') { | |||
//跳转网址的文档强制为动态 | |||
if (preg_match('#j#', $flag)) $ismake = -1; | |||
//修改主档案表 | |||
$inQuery = "UPDATE `#@__archives` SETtypeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',click='$click',ismake='$ismake',arcrank='$arcrank',`money`='$money',title='$title',color='$color',source='$source',writer='$writer',litpic='$litpic',pubdate='$pubdate',notpost='$notpost',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid',weight='$weight' WHERE id='$id'; "; | |||
$inQuery = "UPDATE `#@__archives` SET typeid='$typeid',typeid2='$typeid2',sortrank='$sortrank',flag='$flag',click='$click',ismake='$ismake',arcrank='$arcrank',`money`='$money',title='$title',color='$color',source='$source',writer='$writer',litpic='$litpic',pubdate='$pubdate',notpost='$notpost',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename',dutyadmin='$adminid',weight='$weight' WHERE id='$id'; "; | |||
if (!$dsql->ExecuteNoneQuery($inQuery)) { | |||
ShowMsg("更新数据库 archives 表时出错,请检查", "-1"); | |||
ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段", "-1"); | |||
exit(); | |||
} | |||
//软件链接列表 | |||
@@ -193,7 +193,7 @@ else if ($dopost == 'save') { | |||
$useip = GetIP(); | |||
$inQuery = "UPDATE `$addtable` SET typeid='$typeid',filetype='$filetype',language='$language',softtype='$softtype',accredit='$accredit',os='$os',softrank='$softrank',officialUrl ='$officialUrl',officialDemo ='$officialDemo',softsize='$softsize',softlinks='$urls',redirecturl='$redirecturl',userip='$useip',daccess='$daccess',needmoney='$needmoney',introduce='$body' {$inadd_f} WHERE aid='$id';"; | |||
if (!$dsql->ExecuteNoneQuery($inQuery)) { | |||
ShowMsg("更新数据库附加表 addonsoft 时出错,请检查原因", "-1"); | |||
ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段", "-1"); | |||
exit(); | |||
} | |||
} | |||
@@ -79,7 +79,7 @@ else if ($dopost == 'save') { | |||
echo $inQuery; | |||
$gerr = $dsql->GetError(); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); | |||
ShowMsg("把数据保存到数据库主表 `#@__archives` 时出错,请把相关信息提交给DedeBIZ官方".str_replace('"', '', $gerr), "javascript:;"); | |||
ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段".str_replace('"', '', $gerr), "javascript:;"); | |||
exit(); | |||
} | |||
//专题节点列表 | |||
@@ -163,7 +163,7 @@ else if ($dopost == 'save') { | |||
if (!$dsql->ExecuteNoneQuery($inQuery)) { | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__arctiny` WHERE id='$arcID'"); | |||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__archives` WHERE id='$arcID'"); | |||
ShowMsg("把数据保存到数据库附加表 addonspec 时出错,请检查原因", "-1"); | |||
ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段", "-1"); | |||
exit(); | |||
} | |||
//生成网页 | |||
@@ -107,7 +107,7 @@ else if ($dopost == 'save') { | |||
} | |||
$inQuery = "UPDATE `#@__archives` SET typeid='$typeid',sortrank='$sortrank',flag='$flag',ismake='$ismake',arcrank='$arcrank',click='$click',title='$title',color='$color',writer='$writer',source='$source',litpic='$litpic',pubdate='$pubdate',notpost='$notpost',description='$description',keywords='$keywords',shorttitle='$shorttitle',filename='$filename' WHERE id='$id'; "; | |||
if (!$dsql->ExecuteNoneQuery($inQuery)) { | |||
ShowMsg("更新数据库 archives 表时出错,请检查", "-1"); | |||
ShowMsg("数据保存到数据库主表`#@__archives`时出错,请检查数据库字段", "-1"); | |||
exit(); | |||
} | |||
//专题节点列表 | |||
@@ -176,7 +176,7 @@ else if ($dopost == 'save') { | |||
//更新附加表 | |||
$inQuery = "UPDATE `#@__addonspec` SET typeid ='$typeid',note='$notelist'{$inadd_f},templet='$templet' WHERE aid='$id';"; | |||
if (!$dsql->ExecuteNoneQuery($inQuery)) { | |||
ShowMsg("更新数据库附加表 addonspec 时出错,请检查原因", "-1"); | |||
ShowMsg("数据保存到数据库附加表时出错,请检查数据库字段", "-1"); | |||
exit(); | |||
} | |||
//生成网页 | |||
@@ -53,7 +53,7 @@ else if ($dopost == 1) { | |||
<span class='text-dark'>已完成数据结构完整性检测</span> | |||
如果您系统有下面几种问题之一,请检测微表正确性:<br> | |||
1、无法获得主键,因此无法进行后续操作<br> | |||
2、更新数据库 archives 表时出错<br> | |||
2、更新数据库#@__archivess表时出错<br> | |||
3、列表显示数据目与实际文档数不一致<br> | |||
<br><a href='sys_repair.php?dopost=2' class='btn btn-danger btn-sm'>检测数据</a> | |||
</td> | |||
@@ -89,8 +89,8 @@ | |||
<tr> | |||
<td>时间限制:</td> | |||
<td colspan="2"> | |||
<label><input type="radio" name="timeset" value="0" <?php if($row['timeset']==0) echo "checked='1'";?>> 永不过期</label> | |||
<label><input type="radio" name="timeset" value="1" <?php if($row['timeset']==1) echo "checked='1'";?>> 在设内时间内有效</label> | |||
<label><input type="radio" name="timeset" value="0" <?php if ($row['timeset']==0) echo "checked='1'";?>> 永不过期</label> | |||
<label><input type="radio" name="timeset" value="1" <?php if ($row['timeset']==1) echo "checked='1'";?>> 在设内时间内有效</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -99,7 +99,7 @@ | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') | |||
if ($trow->att=='j') | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label>"; | |||
else | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label>"; | |||
@@ -185,7 +185,7 @@ | |||
</span> | |||
<i class="btn btn-sm fa fa-search" onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid')" title="快捷选择" style="cursor:pointer"></i> | |||
<?php | |||
if($cfg_need_typeid2=='Y') | |||
if ($cfg_need_typeid2=='Y') | |||
{ | |||
echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>选择副栏目</a>"; | |||
} | |||
@@ -221,7 +221,7 @@ | |||
<button type="button" name="Submit" onClick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">浏览</button> | |||
</td> | |||
<td> | |||
<label><input type="checkbox" name="autokey" onClick="ShowHide('keywords');" ; id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked';?>> 自动获取,手动填写用","分开</label> | |||
<label><input type="checkbox" name="autokey" onClick="ShowHide('keywords');" ; id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo ' checked';?>> 自动获取,手动填写用","分开</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -243,9 +243,9 @@ | |||
<tr> | |||
<td width="90"> 表现方式:</td> | |||
<td> | |||
<label><input type="radio" name="pagestyle" id="pagestyle1" onClick="checkMuList()" value="1" <?php if($cfg_album_style==1) echo " checked='checked'";?>> <img src="../static/web/img/alb2.jpg" title="单页多图样式"></label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle2" onClick="checkMuList()" value="2" <?php if($cfg_album_style==2) echo " checked='checked'";?>> <img src="../static/web/img/alb1.jpg" title="幻灯片样式"></label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle3" onClick="checkMuList()" value="3" <?php if($cfg_album_style==3) echo " checked='checked'";?>> <img src="../static/web/img/alb3.jpg" title="多缩略图样式"></label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle1" onClick="checkMuList()" value="1" <?php if ($cfg_album_style==1) echo " checked='checked'";?>> <img src="../static/web/img/alb2.jpg" title="单页多图样式"></label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle2" onClick="checkMuList()" value="2" <?php if ($cfg_album_style==2) echo " checked='checked'";?>> <img src="../static/web/img/alb1.jpg" title="幻灯片样式"></label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle3" onClick="checkMuList()" value="3" <?php if ($cfg_album_style==3) echo " checked='checked'";?>> <img src="../static/web/img/alb3.jpg" title="多缩略图样式"></label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -365,8 +365,8 @@ | |||
<tr> | |||
<td width="90" width="260"> 评论选项:</td> | |||
<td width="260"> | |||
<label><input type="radio" name="notpost" value="0" <?php if($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||
</td> | |||
<td width="90">发布选项:</td> | |||
<td> | |||
@@ -98,9 +98,9 @@ | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | |||
if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | |||
else $jumpclick = ''; | |||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | |||
if (preg_match("#".$trow->att."#", $arcRow['flag'])) | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label>"; | |||
else | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label>"; | |||
@@ -144,7 +144,7 @@ | |||
<button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||
<button type="button" id="btnClearAll" class="btn btn-success btn-smete">清空</button> | |||
</td> | |||
<td align="center"><img src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td> | |||
<td align="center"><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -176,7 +176,7 @@ | |||
<?php | |||
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:160px'>"; | |||
if($arcRow['typeid']=='0') echo "<option value='0' selected>请选择主分类</option>"; | |||
if ($arcRow['typeid']=='0') echo "<option value='0' selected>请选择主分类</option>"; | |||
echo $typeOptions; | |||
echo '</select>'; | |||
?> | |||
@@ -189,7 +189,7 @@ | |||
</td> | |||
</tr> | |||
<?php | |||
if($cfg_need_typeid2=='Y') { | |||
if ($cfg_need_typeid2=='Y') { | |||
?> | |||
<tr> | |||
<td class="bline"> | |||
@@ -235,15 +235,15 @@ | |||
<tr> | |||
<td width="90"> 表现方式:</td> | |||
<td> | |||
<label><input type="radio" name="pagestyle" id="pagestyle1" onClick="checkMuList()" value="1" <?php if($pagestyle==1) echo " checked='checked'";?>> <img src="../static/web/img/alb2.jpg" title="单页多图样式"></label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle2" onClick="checkMuList()" value="2" <?php if($pagestyle==2) echo " checked='checked'";?>> <img src="../static/web/img/alb1.jpg" title="幻灯片样式"></label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle3" onClick="checkMuList()" value="3" <?php if($pagestyle==3) echo " checked='checked'";?>> <img src="../static/web/img/alb3.jpg" title="多缩略图样式"></label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle1" onClick="checkMuList()" value="1" <?php if ($pagestyle==1) echo " checked='checked'";?>> <img src="../static/web/img/alb2.jpg" title="单页多图样式"></label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle2" onClick="checkMuList()" value="2" <?php if ($pagestyle==2) echo " checked='checked'";?>> <img src="../static/web/img/alb1.jpg" title="幻灯片样式"></label> | |||
<label><input type="radio" name="pagestyle" id="pagestyle3" onClick="checkMuList()" value="3" <?php if ($pagestyle==3) echo " checked='checked'";?>> <img src="../static/web/img/alb3.jpg" title="多缩略图样式"></label> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr id="cfgmulist" style="<?php if($pagestyle!=3) echo 'display:none';?>"> | |||
<tr id="cfgmulist" style="<?php if ($pagestyle!=3) echo 'display:none';?>"> | |||
<td class="bline"> | |||
<table width="900" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
@@ -261,7 +261,7 @@ | |||
</table> | |||
</td> | |||
</tr> | |||
<tr id="spagelist" style="<?php if($pagestyle!=1) echo 'display:none';?>"> | |||
<tr id="spagelist" style="<?php if ($pagestyle!=1) echo 'display:none';?>"> | |||
<td class="bline"> | |||
<table width="900" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
@@ -330,17 +330,17 @@ | |||
<div id="thumbnailsEdit"> | |||
<?php | |||
$j = 1; | |||
if($imgurls!=""){ | |||
if ($imgurls!=""){ | |||
$dtp = new DedeTagParse(); | |||
$dtp->LoadSource($imgurls); | |||
if(is_array($dtp->CTags)) | |||
if (is_array($dtp->CTags)) | |||
{ | |||
foreach($dtp->CTags as $ctag) | |||
{ | |||
if($ctag->GetName()=="img") | |||
if ($ctag->GetName()=="img") | |||
{ | |||
$bigimg = trim($ctag->GetInnerText()); | |||
if($ctag->GetAtt('ddimg') != $bigimg && $ctag->GetAtt('ddimg')!='') | |||
if ($ctag->GetAtt('ddimg') != $bigimg && $ctag->GetAtt('ddimg')!='') | |||
{ | |||
$litimg = $ctag->GetAtt('ddimg'); | |||
} else { | |||
@@ -406,13 +406,13 @@ | |||
<tr> | |||
<td width="90" width="260"> 评论选项:</td> | |||
<td width="260"> | |||
<label><input type="radio" name="notpost" value="0" <?php if($arcRow['notpost']==0) echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if($arcRow['notpost']==1) echo "checked='1'";?>> 禁止评论</label> | |||
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo "checked='1'";?>> 禁止评论</label> | |||
</td> | |||
<td width="90">发布选项:</td> | |||
<td> | |||
<label><input type="radio" name="ishtml" value="1" <?php if($arcRow["ismake"]!=-1) echo "checked";?>> 生成网页</label> | |||
<label><input type="radio" name="ishtml" value="0" <?php if($arcRow["ismake"]==-1) echo "checked";?>> 仅动态浏览</label> | |||
<label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo "checked";?>> 生成网页</label> | |||
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo "checked";?>> 仅动态浏览</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -427,7 +427,7 @@ | |||
<?php | |||
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]); | |||
echo "<option value='0'>正常排序</option>"; | |||
if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>"; | |||
if ($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>"; | |||
?> | |||
<option value="7">置顶一周</option> | |||
<option value="30">置顶一个月</option> | |||
@@ -78,7 +78,7 @@ | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') | |||
if ($trow->att=='j') | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label>"; | |||
else | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label>"; | |||
@@ -111,7 +111,7 @@ | |||
</table> | |||
</td> | |||
</tr> | |||
<tr id="pictable" style='<?php if($cInfos['needpic']==0) echo 'display:none';?>'> | |||
<tr id="pictable" style='<?php if ($cInfos['needpic']==0) echo 'display:none';?>'> | |||
<td class="bline"> | |||
<table width="900" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
@@ -147,7 +147,7 @@ | |||
<script>InitPage();</script> | |||
</td> | |||
</tr> | |||
<?php if($cInfos['dfcid']>0) | |||
<?php if ($cInfos['dfcid']>0) | |||
{ | |||
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>"; | |||
echo "<input type='hidden' name='typeid2' value='0'>"; | |||
@@ -170,7 +170,7 @@ | |||
</span> | |||
<i class="btn btn-sm fa fa-search" onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid')" title="快捷选择" style="cursor:pointer"></i> | |||
<?php | |||
if($cfg_need_typeid2=='Y') | |||
if ($cfg_need_typeid2=='Y') | |||
{ | |||
echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>选择副栏目</a>"; | |||
} | |||
@@ -206,7 +206,7 @@ | |||
<button type="button" name="Submit" value="" class="btn btn-success btn-sm" onClick="SelectKeywords('form1.keywords');">浏览</button> | |||
</td> | |||
<td> | |||
<label><input type="checkbox" name="autokey" onClick="ShowHide('keywords');" ; id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked';?>> 自动获取,手动填写用","分开</label> | |||
<label><input type="checkbox" name="autokey" onClick="ShowHide('keywords');" ; id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo ' checked';?>> 自动获取,手动填写用","分开</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -229,10 +229,10 @@ | |||
<tr> | |||
<td width="90"> 附加选项:</td> | |||
<td> | |||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo 'checked="1"';?>> 下载远程图片和资源</label> | |||
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if($cfg_arc_dellink=='Y') echo 'checked="1"';?>> 删除非站内链接</label> | |||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo 'checked="1"';?>> 提取第一个图片为缩略图</label> | |||
<label><input type="checkbox" name="needwatermark" value="1" <?php if($photo_markup=='1') echo 'checked="1"';?>> 图片是否加水印</label> | |||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked="1"';?>> 下载远程图片和资源</label> | |||
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked="1"';?>> 删除非站内链接</label> | |||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked="1"';?>> 提取第一个图片为缩略图</label> | |||
<label><input type="checkbox" name="needwatermark" value="1" <?php if ($photo_markup=='1') echo 'checked="1"';?>> 图片是否加水印</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -247,8 +247,8 @@ | |||
<tr> | |||
<td width="90" width="260"> 评论选项:</td> | |||
<td width="260"> | |||
<label><input type="radio" name="notpost" value="0" <?php if($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||
</td> | |||
<td width="90">发布选项:</td> | |||
<td> | |||
@@ -75,9 +75,9 @@ | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | |||
if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | |||
else $jumpclick = ''; | |||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | |||
if (preg_match("#".$trow->att."#", $arcRow['flag'])) | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label> "; | |||
else | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> "; | |||
@@ -110,7 +110,7 @@ | |||
</table> | |||
</td> | |||
</tr> | |||
<tr id="pictable" style='<?php if($cInfos['needpic']==0) echo 'display:none';?>'> | |||
<tr id="pictable" style='<?php if ($cInfos['needpic']==0) echo 'display:none';?>'> | |||
<td class="bline"> | |||
<table width="900" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
@@ -122,7 +122,7 @@ | |||
<button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||
<button id="btnClearAll" type="button" class="btn btn-success btn-smete">清空</button> | |||
</td> | |||
<td align="center"><img src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td> | |||
<td align="center"><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -146,7 +146,7 @@ | |||
<script>InitPage();</script> | |||
</td> | |||
</tr> | |||
<?php if($cInfos['dfcid']>0) | |||
<?php if ($cInfos['dfcid']>0) | |||
{ | |||
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>"; | |||
echo "<input type='hidden' name='typeid2' value=''>"; | |||
@@ -161,7 +161,7 @@ | |||
<?php | |||
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:160px'>"; | |||
if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>"; | |||
if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
@@ -173,7 +173,7 @@ | |||
</table> | |||
</td> | |||
</tr> | |||
<?php if($cfg_need_typeid2=='Y') {?> | |||
<?php if ($cfg_need_typeid2=='Y') {?> | |||
<tr> | |||
<td class="bline"> | |||
<table width="900" cellspacing="0" cellpadding="0"> | |||
@@ -221,9 +221,9 @@ | |||
<tr> | |||
<td width="90"> 附加选项:</td> | |||
<td> | |||
<label><input name="remote" type="checkbox" class="np" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo ' checked="1" ';?>> | |||
<label><input name="remote" type="checkbox" class="np" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo ' checked="1" ';?>> | |||
下载远程图片和资源</label> | |||
<label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo ' checked="1" ';?>> | |||
<label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo ' checked="1" ';?>> | |||
提取第一个图片为缩略图</label> | |||
</td> | |||
</tr> | |||
@@ -236,13 +236,13 @@ | |||
<tr> | |||
<td width="90" width="260"> 评论选项:</td> | |||
<td width="260"> | |||
<label><input type='radio' name='notpost' class='np' value='0' <?php if($arcRow['notpost']==0) echo " checked='1' ";?>> 允许评论</label> | |||
<label><input type='radio' name='notpost' class='np' value='1' <?php if($arcRow['notpost']==1) echo " checked='1' ";?>> 禁止评论</label> | |||
<label><input type='radio' name='notpost' class='np' value='0' <?php if ($arcRow['notpost']==0) echo " checked='1' ";?>> 允许评论</label> | |||
<label><input type='radio' name='notpost' class='np' value='1' <?php if ($arcRow['notpost']==1) echo " checked='1' ";?>> 禁止评论</label> | |||
</td> | |||
<td width="90">发布选项:</td> | |||
<td><label><input name="ishtml" type="radio" class="np" value="1" <?php if($arcRow["ismake"]!=-1) echo " checked";?>> | |||
<td><label><input name="ishtml" type="radio" class="np" value="1" <?php if ($arcRow["ismake"]!=-1) echo " checked";?>> | |||
生成网页</label> | |||
<label><input type="radio" name="ishtml" class="np" value="0" <?php if($arcRow["ismake"]==-1) echo " checked";?>> | |||
<label><input type="radio" name="ishtml" class="np" value="0" <?php if ($arcRow["ismake"]==-1) echo " checked";?>> | |||
仅动态浏览</label> | |||
</td> | |||
</tr> | |||
@@ -258,7 +258,7 @@ | |||
<?php | |||
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]); | |||
echo "<option value='0'>正常排序</option>"; | |||
if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>"; | |||
if ($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>"; | |||
?> | |||
<option value="7">置顶一周</option> | |||
<option value="30">置顶一个月</option> | |||
@@ -22,11 +22,11 @@ | |||
<script> | |||
function checkSubmit() | |||
{ | |||
if(document.form1.title.value==""){ | |||
if (document.form1.title.value==""){ | |||
ShowMsg("<?php echo $cInfos['titlename'];?>不能为空"); | |||
return false; | |||
} | |||
if(document.form1.typeid.value==0){ | |||
if (document.form1.typeid.value==0){ | |||
ShowMsg("请选择档案的主栏目"); | |||
return false; | |||
} | |||
@@ -85,7 +85,7 @@ | |||
</table> | |||
</td> | |||
</tr> | |||
<tr id="pictable" style="<?php if($cInfos['needpic']==0) echo 'display:none';?>"> | |||
<tr id="pictable" style="<?php if ($cInfos['needpic']==0) echo 'display:none';?>"> | |||
<td class="bline"> | |||
<table width="900" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
@@ -102,7 +102,7 @@ | |||
</table> | |||
</td> | |||
</tr> | |||
<?php if($cInfos['dfcid']>0) | |||
<?php if ($cInfos['dfcid']>0) | |||
{ | |||
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>"; | |||
} else { | |||
@@ -22,7 +22,7 @@ | |||
<script> | |||
function checkSubmit() | |||
{ | |||
if(document.form1.title.value==""){ | |||
if (document.form1.title.value==""){ | |||
ShowMsg("<?php echo $cInfos['titlename'];?>不能为空"); | |||
document.form1.title.focus(); | |||
return false; | |||
@@ -75,7 +75,7 @@ | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if(preg_match("#".$trow->att."#", $addRow['flag'])) | |||
if (preg_match("#".$trow->att."#", $addRow['flag'])) | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked'> {$trow->attname}[{$trow->att}]</label>"; | |||
else | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label>"; | |||
@@ -86,7 +86,7 @@ | |||
</table> | |||
</td> | |||
</tr> | |||
<tr id="pictable" style="<?php if($cInfos['needpic']==0) echo 'display:none';?>"> | |||
<tr id="pictable" style="<?php if ($cInfos['needpic']==0) echo 'display:none';?>"> | |||
<td class="bline"> | |||
<table width="900" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
@@ -98,12 +98,12 @@ | |||
<button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||
<button type="button" id="btnClearAll" class="btn btn-success btn-smete">清空</button> | |||
</td> | |||
<td align="center"><img src="<?php if($addRow['litpic']!='') echo $addRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td> | |||
<td align="center"><img src="<?php if ($addRow['litpic']!='') echo $addRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<?php if($cInfos['dfcid']>0) | |||
<?php if ($cInfos['dfcid']>0) | |||
{ | |||
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}'>"; | |||
} else { | |||
@@ -117,7 +117,7 @@ | |||
<?php | |||
$typeOptions = GetOptionList($addRow['typeid'],$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:160px'>"; | |||
if($addRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>"; | |||
if ($addRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
@@ -53,7 +53,7 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" align="center" cellpadding="0" cellspacing="0" id="getone" class="table table-borderless" style="<?php if(empty($geturl)) echo 'display:none';?>"> | |||
<table width="98%" align="center" cellpadding="0" cellspacing="0" id="getone" class="table table-borderless" style="<?php if (empty($geturl)) echo 'display:none';?>"> | |||
<form name="getonepage" action="article_add.php" method="get"> | |||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||
<input type="hidden" name="cid" value="<?php echo $cid;?>"> | |||
@@ -100,7 +100,7 @@ | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') | |||
if ($trow->att=='j') | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label>"; | |||
else | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label>"; | |||
@@ -185,7 +185,7 @@ | |||
</span> | |||
<i class='btn btn-sm fa fa-search' style="cursor:pointer" onClick="ShowCatMap(event,this,<?php echo $channelid;?>,'typeid')" title="快捷选择"></i> | |||
<?php | |||
if($cfg_need_typeid2=='Y') | |||
if ($cfg_need_typeid2=='Y') | |||
{ | |||
echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>选择副栏目</a>"; | |||
} | |||
@@ -221,7 +221,7 @@ | |||
<button type="button" name="Submit" onClick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">浏览</button> | |||
</td> | |||
<td> | |||
<label><input type="checkbox" name="autokey" onClick="ShowHide('keywords');" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo 'checked="1"';?>> 自动获取,手动填写用","分开</label> | |||
<label><input type="checkbox" name="autokey" onClick="ShowHide('keywords');" id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked="1"';?>> 自动获取,手动填写用","分开</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -243,11 +243,11 @@ | |||
<tr> | |||
<td width="90"> 附加选项:</td> | |||
<td> | |||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo 'checked="1"';?>> 下载远程图片和资源</label> | |||
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if($cfg_arc_dellink=='Y') echo 'checked="1"';?>> 删除非站内链接</label> | |||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked="1"';?>> 下载远程图片和资源</label> | |||
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked="1"';?>> 删除非站内链接</label> | |||
<a href="javascript:OpenMyWin('article_allowurl_edit.php')" class="btn btn-success btn-sm">设置</a> | |||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo 'checked="1"';?>> 提取第一个图片为缩略图</label> | |||
<label><input type="checkbox" name="needwatermark" value="1" <?php if($photo_markup=='1') echo "checked";?>> 图片是否加水印</label> | |||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked="1"';?>> 提取第一个图片为缩略图</label> | |||
<label><input type="checkbox" name="needwatermark" value="1" <?php if ($photo_markup=='1') echo "checked";?>> 图片是否加水印</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -259,8 +259,8 @@ | |||
<tr> | |||
<td width="90"> 分页方式:</td> | |||
<td> | |||
<label><input type="radio" name="sptype" value="hand" <?php if($cfg_arcautosp=='N') echo "checked='1'"?>> 手动</label> | |||
<label><input type="radio" name="sptype" value="auto" <?php if($cfg_arcautosp=='Y') echo "checked='1'"?>> 自动</label> | |||
<label><input type="radio" name="sptype" value="hand" <?php if ($cfg_arcautosp=='N') echo "checked='1'"?>> 手动</label> | |||
<label><input type="radio" name="sptype" value="auto" <?php if ($cfg_arcautosp=='Y') echo "checked='1'"?>> 自动</label> | |||
大小:<input name="spsize" type="text" id="spsize" value="<?php echo $cfg_arcautosp_size?>" style="width:60px"> K(分页符为:#p#分页标题#e#) | |||
</td> | |||
</tr> | |||
@@ -280,8 +280,8 @@ | |||
<tr> | |||
<td width="90"> 评论选项:</td> | |||
<td width="260"> | |||
<label><input type="radio" name="notpost" value="0" <?php if($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||
</td> | |||
<td width="90">发布选项:</td> | |||
<td> | |||
@@ -337,7 +337,7 @@ | |||
<td><input type="text" name="filename" id="filename" style="width:160px">(不包括后缀名如.html等)</td> | |||
<td> | |||
<?php | |||
if(isset($cfg_tamplate_rand) && $cfg_tamplate_rand==1) | |||
if (isset($cfg_tamplate_rand) && $cfg_tamplate_rand==1) | |||
{ | |||
?> | |||
随机选择模板: | |||
@@ -78,13 +78,13 @@ | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') | |||
if ($trow->att=='j') | |||
{ | |||
$jumpclick = " onclick='ShowUrlTr()'"; | |||
} else { | |||
$jumpclick = ''; | |||
} | |||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | |||
if (preg_match("#".$trow->att."#", $arcRow['flag'])) | |||
{ | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label> "; | |||
} else { | |||
@@ -131,7 +131,7 @@ | |||
<button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||
<button id="btnClearAll" type="button" class="btn btn-success btn-smete">清空</button> | |||
</td> | |||
<td align="center"><img src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td> | |||
<td align="center"><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -163,7 +163,7 @@ | |||
<?php | |||
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:160px'>"; | |||
if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>"; | |||
if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
@@ -175,7 +175,7 @@ | |||
</table> | |||
</td> | |||
</tr> | |||
<?php if($cfg_need_typeid2=='Y') {?> | |||
<?php if ($cfg_need_typeid2=='Y') {?> | |||
<tr> | |||
<td class="bline"> | |||
<table width="900" cellspacing="0" cellpadding="0"> | |||
@@ -220,8 +220,8 @@ | |||
<tr> | |||
<td width="90"> 附加选项:</td> | |||
<td> | |||
<label><input name="remote" type="checkbox" class="np" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo ' checked="1" ';?>> 下载远程图片和资源</label> | |||
<label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo ' checked="1" ';?>> 提取第一个图片为缩略图</label> | |||
<label><input name="remote" type="checkbox" class="np" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo ' checked="1" ';?>> 下载远程图片和资源</label> | |||
<label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo ' checked="1" ';?>> 提取第一个图片为缩略图</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -237,13 +237,13 @@ | |||
<tr> | |||
<td width="90"> 评论选项:</td> | |||
<td width="260"> | |||
<label><input type="radio" name="notpost" class="np" value="0" <?php if($arcRow['notpost']==0) echo " checked='1' ";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" class="np" value="1" <?php if($arcRow['notpost']==1) echo " checked='1' ";?>> 禁止评论</label> | |||
<label><input type="radio" name="notpost" class="np" value="0" <?php if ($arcRow['notpost']==0) echo " checked='1' ";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" class="np" value="1" <?php if ($arcRow['notpost']==1) echo " checked='1' ";?>> 禁止评论</label> | |||
</td> | |||
<td width="90">发布选项:</td> | |||
<td> | |||
<label><input name="ishtml" type="radio" class="np" value="1" <?php if($arcRow["ismake"]!=-1) echo " checked";?>> 生成网页</label> | |||
<label><input type="radio" name="ishtml" class="np" value="0" <?php if($arcRow["ismake"]==-1) echo " checked";?>> 仅动态浏览</label> | |||
<label><input name="ishtml" type="radio" class="np" value="1" <?php if ($arcRow["ismake"]!=-1) echo " checked";?>> 生成网页</label> | |||
<label><input type="radio" name="ishtml" class="np" value="0" <?php if ($arcRow["ismake"]==-1) echo " checked";?>> 仅动态浏览</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -259,7 +259,7 @@ | |||
<?php | |||
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]); | |||
echo "<option value='0'>正常排序</option>"; | |||
if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>"; | |||
if ($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>"; | |||
?> | |||
<option value="7">置顶一周</option> | |||
<option value="30">置顶一个月</option> | |||
@@ -299,7 +299,7 @@ | |||
<td><input type="text" name="filename" id="filename" value="<?php echo $arcRow['filename']?>" style="width:160px">(不包括后缀名如.html等)</td> | |||
<td> | |||
<?php | |||
if(isset($cfg_tamplate_rand) && $cfg_tamplate_rand==1) | |||
if (isset($cfg_tamplate_rand) && $cfg_tamplate_rand==1) | |||
{ | |||
?> | |||
模板选择: | |||
@@ -11,7 +11,7 @@ | |||
//获得选中文件的文件名 | |||
function SelKw(kw) | |||
{ | |||
if(document.form2.keywords.value) | |||
if (document.form2.keywords.value) | |||
{ | |||
document.form2.keywords.value += ","+kw; | |||
} else { | |||
@@ -20,7 +20,7 @@ | |||
} | |||
function ReturnValue() | |||
{ | |||
if(window.opener.document.<?php echo $f?>.value) | |||
if (window.opener.document.<?php echo $f?>.value) | |||
{ | |||
window.opener.document.<?php echo $f?>.value += ','+document.form2.keywords.value; | |||
} else { | |||
@@ -32,7 +32,7 @@ | |||
function showHide(objname) | |||
{ | |||
var obj = document.getElementById(objname); | |||
if(obj.style.display=="none") obj.style.display = "block"; | |||
if (obj.style.display=="none") obj.style.display = "block"; | |||
else obj.style.display="none"; | |||
} | |||
function AddNewKw() | |||
@@ -63,7 +63,7 @@ | |||
<?php | |||
while($row = $dsql->GetArray()) | |||
{ | |||
if($row['dd']==1 ) break; | |||
if ($row['dd']==1 ) break; | |||
?> | |||
<tr align="center" onMouseMove="javascript:this.bgColor='#EFEFEF';" onmousemove="javascript:this.bgColor='#fbfce2';" onmouseout="javascript:this.bgColor='#ffffff';"> | |||
<td><input type="checkbox" name="arcTitles" id="arcTitle" value="<?php echo urlencode($row['title'])?>"></td> | |||
@@ -24,7 +24,7 @@ | |||
<td align="left"> | |||
<select name="channelid" style="width:160px"> | |||
<?php | |||
if(!empty($channelinfos)) | |||
if (!empty($channelinfos)) | |||
{ | |||
foreach($channelinfos as $rs) | |||
{ | |||
@@ -124,7 +124,7 @@ | |||
<input type="hidden" name="reid" id="reid" value="<?php echo $id;?>"> | |||
<input type="hidden" name="topid" id="topid" value="<?php echo $topid;?>"> | |||
<?php | |||
if($id>0) | |||
if ($id>0) | |||
{ | |||
echo " <input type='hidden' name='moresite' value='{$myrow['moresite']}'>"; | |||
echo " <input type='hidden' name='siteurl' value='{$myrow['siteurl']}'>"; | |||
@@ -175,8 +175,8 @@ | |||
<tr> | |||
<td width="260" class="bline">是否支持投稿:</td> | |||
<td class="bline"> | |||
<label><input type="radio" name="issend" value="1" <?php if($issend==1) echo " checked='checked' ";?>> 支持</label> | |||
<label><input type="radio" name="issend" value="0" <?php if($issend==0) echo " checked='checked' ";?>> 不支持</label> | |||
<label><input type="radio" name="issend" value="1" <?php if ($issend==1) echo " checked='checked' ";?>> 支持</label> | |||
<label><input type="radio" name="issend" value="0" <?php if ($issend==0) echo " checked='checked' ";?>> 不支持</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -193,7 +193,7 @@ | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
if($k==$channelid) { | |||
if ($k==$channelid) { | |||
$nid = $arr['nid']; | |||
echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>"; | |||
} else { | |||
@@ -246,9 +246,9 @@ | |||
$dsql->SetQuery("Select * from `#@__arcrank` where `rank` >= 0"); | |||
$dsql->Execute('cc'); | |||
while($row = $dsql->GetObject('cc')){ | |||
if($corank==$row->rank) echo "<option value='".$row->rank."' selected>".$row->membername."</option>"; | |||
if ($corank==$row->rank) echo "<option value='".$row->rank."' selected>".$row->membername."</option>"; | |||
else { | |||
if($corank==0){ | |||
if ($corank==0){ | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>"; | |||
} | |||
} | |||
@@ -263,7 +263,7 @@ | |||
<td class="bline"> | |||
<?php | |||
$pardir = '{cmspath}'.$cfg_arcdir; | |||
if(!empty($typedir)) $pardir = $typedir.'/'; | |||
if (!empty($typedir)) $pardir = $typedir.'/'; | |||
$pardir = preg_replace("#\/{1,}#", '/', $pardir); | |||
echo $pardir; | |||
?> | |||
@@ -286,7 +286,7 @@ | |||
<td class="bline"> | |||
<label><input type="radio" name="referpath" value="parent" checked="chekced"> 上级目录</label> | |||
<?php | |||
if($moresite==0){ | |||
if ($moresite==0){ | |||
?> | |||
<label><input type="radio" name="referpath" value="cmspath"> CMS根目录</label> | |||
<label><input type="radio" name="referpath" value="basepath"> 站点根目录</label> | |||
@@ -337,10 +337,10 @@ | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
{ | |||
if($arr['evalue']%500==0) { | |||
if ($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'>{$arr['ename']}</option>"; | |||
} | |||
else if(preg_match("#\.#", $arr['evalue'])) | |||
else if (preg_match("#\.#", $arr['evalue'])) | |||
{ | |||
echo "<option value='{$arr['evalue']}'>└───{$arr['ename']}</option>"; | |||
} else { | |||
@@ -354,7 +354,7 @@ | |||
</table> | |||
<table width="100%" cellspacing="0" cellpadding="0" id="adset" class="biz-border table" style="display:none"> | |||
<?php | |||
if($id==0) | |||
if ($id==0) | |||
{ | |||
?> | |||
<tr> | |||
@@ -120,7 +120,7 @@ | |||
<label><input type="radio" name="referpath" value="parent" checked="1"> 默认HMTL目录( | |||
<?php | |||
$pardir = '{cmspath}'.$cfg_arcdir; | |||
if(!empty($typedir)) $pardir = $typedir.'/'; | |||
if (!empty($typedir)) $pardir = $typedir.'/'; | |||
$pardir = preg_replace("#\/{1,}#", '/', $pardir); | |||
echo $pardir; | |||
?>)</label> | |||
@@ -144,7 +144,7 @@ | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
if($k==$channelid) echo "<option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>"; | |||
if ($k==$channelid) echo "<option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>"; | |||
else echo "<option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>"; | |||
} | |||
?> | |||
@@ -156,15 +156,15 @@ | |||
<tr> | |||
<td width="260" class="bline">是否支持投稿:</td> | |||
<td class="bline"> | |||
<label><input type="radio" name="issend" value="1" <?php if($myrow['issend']=="1") echo "checked='1'";?>> 支持</label> | |||
<label><input type="radio" name="issend" value="0" <?php if($myrow['issend']=="0") echo "checked='1'";?>> 不支持</label> | |||
<label><input type="radio" name="issend" value="1" <?php if ($myrow['issend']=="1") echo "checked='1'";?>> 支持</label> | |||
<label><input type="radio" name="issend" value="0" <?php if ($myrow['issend']=="0") echo "checked='1'";?>> 不支持</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="260" class="bline">是否隐藏栏目:</td> | |||
<td class="bline"> | |||
<label><input type="radio" name="ishidden" value="0" <?php if($myrow['ishidden']=="0") echo "checked='1'";?>> 显示</label> | |||
<label><input type="radio" name="ishidden" value="1" <?php if($myrow['ishidden']=="1") echo "checked='1'";?>> 隐藏</label> | |||
<label><input type="radio" name="ishidden" value="0" <?php if ($myrow['ishidden']=="0") echo "checked='1'";?>> 显示</label> | |||
<label><input type="radio" name="ishidden" value="1" <?php if ($myrow['ishidden']=="1") echo "checked='1'";?>> 隐藏</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -174,7 +174,7 @@ | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
if($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>"; | |||
if ($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>"; | |||
else echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>"; | |||
} | |||
?> | |||
@@ -224,7 +224,7 @@ | |||
$dsql->Execute('cc'); | |||
while($row = $dsql->GetObject('cc')) | |||
{ | |||
if($myrow['corank']==$row->rank) | |||
if ($myrow['corank']==$row->rank) | |||
echo "<option value='".$row->rank."' selected>".$row->membername."</option>"; | |||
else | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>"; | |||
@@ -241,9 +241,9 @@ | |||
<tr> | |||
<td>栏目列表选项:</td> | |||
<td> | |||
<label><input type="radio" name="isdefault" value="1" <?php if($myrow['isdefault']==1) echo "checked='1'";?>> 链接到默认页</label> | |||
<label><input type="radio" name="isdefault" value="0" <?php if($myrow['isdefault']==0) echo "checked='1'";?>> 链接到列表第一页</label> | |||
<label><input type="radio" name="isdefault" value="-1" <?php if($myrow['isdefault']==-1) echo "checked='1'";?>> 使用动态页</label> | |||
<label><input type="radio" name="isdefault" value="1" <?php if ($myrow['isdefault']==1) echo "checked='1'";?>> 链接到默认页</label> | |||
<label><input type="radio" name="isdefault" value="0" <?php if ($myrow['isdefault']==0) echo "checked='1'";?>> 链接到列表第一页</label> | |||
<label><input type="radio" name="isdefault" value="-1" <?php if ($myrow['isdefault']==-1) echo "checked='1'";?>> 使用动态页</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -253,9 +253,9 @@ | |||
<tr> | |||
<td class="bline">栏目属性:</td> | |||
<td class="bline"> | |||
<label><input type="radio" name="ispart" value="0" <?php if($myrow['ispart']==0) echo "checked='1'";?>> 最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br> | |||
<label><input type="radio" name="ispart" value="1" <?php if($myrow['ispart']==1) echo "checked='1'";?>> 频道封面(栏目本身不允许发布文档)</label><br> | |||
<label><input type="radio" name="ispart" value="2" <?php if($myrow['ispart']==2) echo "checked='1'";?>> 外部连接(在"文件保存目录"处填写网址)</label> | |||
<label><input type="radio" name="ispart" value="0" <?php if ($myrow['ispart']==0) echo "checked='1'";?>> 最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br> | |||
<label><input type="radio" name="ispart" value="1" <?php if ($myrow['ispart']==1) echo "checked='1'";?>> 频道封面(栏目本身不允许发布文档)</label><br> | |||
<label><input type="radio" name="ispart" value="2" <?php if ($myrow['ispart']==2) echo "checked='1'";?>> 外部连接(在"文件保存目录"处填写网址)</label> | |||
</td> | |||
</tr> | |||
<tr id="helpvarco" style="display:none"> | |||
@@ -266,11 +266,11 @@ | |||
<tr> | |||
<td>栏目交叉:<i class="fa fa-question-circle" title="帮助" onClick="ShowHide('helpvarco')" style="cursor:pointer"></i> 仅适用[最终列表栏目]</td> | |||
<td class="bline"> | |||
<label><input type="radio" name="cross" onClick="CheckCross()" value="0" <?php if($myrow['cross']==0) echo "checked='1'";?>> 不交叉</label> | |||
<label><input type="radio" name="cross" onClick="CheckCross()" value="1" <?php if($myrow['cross']==1) echo "checked='1'";?>> 自动获取同名栏目内容</label> | |||
<label><input type="radio" name="cross" onClick="CheckCross()" value="2" <?php if($myrow['cross']==2) echo "checked='1'";?>> 手工指定交叉栏目id(用逗号分开)</label> | |||
<label><input type="radio" name="cross" onClick="CheckCross()" value="0" <?php if ($myrow['cross']==0) echo "checked='1'";?>> 不交叉</label> | |||
<label><input type="radio" name="cross" onClick="CheckCross()" value="1" <?php if ($myrow['cross']==1) echo "checked='1'";?>> 自动获取同名栏目内容</label> | |||
<label><input type="radio" name="cross" onClick="CheckCross()" value="2" <?php if ($myrow['cross']==2) echo "checked='1'";?>> 手工指定交叉栏目id(用逗号分开)</label> | |||
<br> | |||
<textarea name="crossid" id="crossid" style="<?php if($myrow['cross']!=2) echo'display:none';?>"><?php echo $myrow['crossid'];?></textarea> | |||
<textarea name="crossid" id="crossid" style="<?php if ($myrow['cross']!=2) echo'display:none';?>"><?php echo $myrow['crossid'];?></textarea> | |||
</td> | |||
</tr> | |||
<tr id="smclass" style="<?php echo ($channelid<0 ? '' : 'display:none');?>"> | |||
@@ -283,15 +283,15 @@ | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
{ | |||
if(in_array($arr['evalue'],$smtypes)) { | |||
if (in_array($arr['evalue'],$smtypes)) { | |||
$selstr = " selected='1' "; | |||
} else { | |||
$selstr = ''; | |||
} | |||
if($arr['evalue']%500==0) { | |||
if ($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'{$selstr}>{$arr['ename']}</option>"; | |||
} | |||
else if(preg_match("#\.#", $arr['evalue'])) | |||
else if (preg_match("#\.#", $arr['evalue'])) | |||
{ | |||
echo "<option value='{$arr['evalue']}'{$selstr}> └───{$arr['ename']}</option>"; | |||
} else { | |||
@@ -307,8 +307,8 @@ | |||
<tr> | |||
<td class="bline" width="260">多站点支持:</td> | |||
<td class="bline"> | |||
<label><input type="radio" name="moresite" value="1" <?php if($myrow['moresite']==1) echo "checked='1'";?>> 启用</label> | |||
<label><input type="radio" name="moresite" value="0" <?php if($myrow['moresite']==0) echo "checked='1'";?>> 不启用</label> | |||
<label><input type="radio" name="moresite" value="1" <?php if ($myrow['moresite']==1) echo "checked='1'";?>> 启用</label> | |||
<label><input type="radio" name="moresite" value="0" <?php if ($myrow['moresite']==0) echo "checked='1'";?>> 不启用</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -50,7 +50,7 @@ | |||
<a href="catalog_add.php?listtype=all" class="btn btn-success btn-sm">增加顶级栏目</a> | |||
<a href="catalog_add.php?dopost=quick" class="btn btn-success btn-sm">批量增加栏目</a> | |||
<a href="catalog_do.php?dopost=upcatcache" class="btn btn-success btn-sm">更新栏目缓存</a> | |||
<?php if(!isset($exallct)) {?> | |||
<?php if (!isset($exallct)) {?> | |||
<a href="catalog_main.php?exallct=all" class="btn btn-success btn-sm">展开栏目</a> | |||
<?php } else {?> | |||
<a href="catalog_main.php" class="btn btn-success btn-sm">收缩栏目</a> | |||
@@ -64,8 +64,8 @@ | |||
<tr> | |||
<td> | |||
<?php | |||
if(empty($opendir)) $opendir=-1; | |||
if($userChannel>0) $opendir=$userChannel; | |||
if (empty($opendir)) $opendir=-1; | |||
if ($userChannel>0) $opendir=$userChannel; | |||
$tu = new TypeUnit(); | |||
$tu->ListAllType($userChannel,$opendir); | |||
?> | |||
@@ -111,7 +111,7 @@ | |||
<td>操作:</td> | |||
<td> | |||
<label><input type="radio" name="action" value="check" onClick="ShowHideMove()" checked="1"> 审核文档</label> | |||
<label><input type="radio" name="action" value="makehtml" onClick="ShowHideMove()"> 更新HTML</label> | |||
<label><input type="radio" name="action" value="makehtml" onClick="ShowHideMove()"> 更新网页</label> | |||
<label><input type="radio" name="action" value="move" onClick="ShowHideMove()"> 移动文档</label> | |||
<label><input type="radio" name="action" value="del" onClick="ShowHideMove()"> 删除文档</label> | |||
</td> | |||
@@ -107,7 +107,7 @@ | |||
<a href="javascript:adArc(0)" class="btn btn-success btn-sm">推荐</a> | |||
<a href="javascript:;" onClick="moveArc(event,this,<?php echo (empty($channelid)?0:$channelid);?>)" class="btn btn-success btn-sm">移动</a> | |||
<a href="javascript:delArc(0)" class="btn btn-danger btn-sm">删除</a> | |||
<?php if($channelid==1) echo "<a href='javascript:kwArc(0)' class='btn btn-success btn-sm'>自动关键词</a>";?> | |||
<?php if ($channelid==1) echo "<a href='javascript:kwArc(0)' class='btn btn-success btn-sm'>自动关键词</a>";?> | |||
<a href="javascript:;" onClick="cAtts('attsAdd',event,this)" class="btn btn-success btn-sm">增加属性</a> | |||
<a href="javascript:;" onClick="cAtts('attsDel',event,this)" class="btn btn-danger btn-sm">删除属性</a> | |||
</td> | |||
@@ -193,7 +193,7 @@ | |||
<a class="btn btn-success btn-sm" href="javascript:;" onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid);?>)" class="coolbg">移动</a> | |||
<a class="btn btn-danger btn-sm" href="javascript:delArc(0)" class="coolbg">删除</a> | |||
<?php | |||
if(!empty($f)) { | |||
if (!empty($f)) { | |||
?> | |||
<a href="javascript:ReturnValue()" class="btn btn-success btn-sm">把选定值加到列表</a> | |||
<?php }?> | |||
@@ -83,7 +83,7 @@ | |||
$dtp = new DedeTagParse(); | |||
$dtp->SetNameSpace("field","<",">"); | |||
$dtp->LoadSource($fieldset); | |||
if(is_array($dtp->CTags)){ | |||
if (is_array($dtp->CTags)){ | |||
foreach($dtp->CTags as $ctag) | |||
{ | |||
?> | |||
@@ -91,7 +91,7 @@ | |||
<td> | |||
<?php | |||
$itname = $ctag->GetAtt('itemname'); | |||
if($itname=='') echo "没指定"; | |||
if ($itname=='') echo "没指定"; | |||
else echo $itname; | |||
?> | |||
</td> | |||
@@ -99,14 +99,14 @@ | |||
<td> | |||
<?php | |||
$ft = $ctag->GetAtt('type'); | |||
if(isset($fieldtypes[$ft])) echo $fieldtypes[$ft]; | |||
if (isset($fieldtypes[$ft])) echo $fieldtypes[$ft]; | |||
else echo "系统专用类型"; | |||
?> | |||
</td> | |||
<td> | |||
<?php | |||
$ft = $ctag->GetAtt('autofield'); | |||
if($ft==''||$ft==0) echo "固化表单"; | |||
if ($ft==''||$ft==0) echo "固化表单"; | |||
else echo "自动表单"; | |||
?> | |||
</td> | |||
@@ -26,16 +26,16 @@ | |||
foreach($fieldlist as $field=>$fielddata) | |||
{ | |||
$allowhtml = array('htmltext'); | |||
if($row[$field]=='') continue; | |||
if($fielddata[1]=='img') | |||
if ($row[$field]=='') continue; | |||
if ($fielddata[1]=='img') | |||
{ | |||
$row[$field] = "<input name='photo' type='file'> <a href='{$row[$field]}' target='_blank'><i class='fa fa-picture-o'></i> 浏览原图</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原图</a>"; | |||
} | |||
else if($fielddata[1]=='addon') | |||
else if ($fielddata[1]=='addon') | |||
{ | |||
$row[$field] = "<input name='file' type='file'> <a href='{$row[$field]}' target='_blank'><i class='fa fa-file-text-o'></i> 浏览原附件</a> <a href='diy_list.php?action=delete&diyid=$diy->diyid&id=$row[id]&do=1&name=$field'>删除原附件</a>"; | |||
} else { | |||
if(!in_array($fielddata[1],$allowhtml)){ | |||
if (!in_array($fielddata[1],$allowhtml)){ | |||
$row[$field] = dede_htmlspecialchars($row[$field]); | |||
$row[$field] = "<input type='text' name='".$field."' value='".$row[$field]."'>"; | |||
} | |||
@@ -22,7 +22,7 @@ | |||
var enums = document.getElementsByName('dtype'); | |||
for(i=0;i<enums.length;i++) | |||
{ | |||
if(enums[i].checked) dtype = enums[i].value; | |||
if (enums[i].checked) dtype = enums[i].value; | |||
} | |||
var isnull = theform.isnull.value; | |||
var vdefault = theform.vdefault.value; | |||
@@ -30,29 +30,29 @@ | |||
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"); | |||
if(itemname=="") | |||
if (itemname=="") | |||
{ | |||
ShowMsg("表单提示名称不能为空"); | |||
theform.itemname.focus(); | |||
return false; | |||
} | |||
if(fieldname=="") | |||
if (fieldname=="") | |||
{ | |||
ShowMsg("字段名称不能为空"); | |||
theform.fieldname.focus(); | |||
return false; | |||
} | |||
if(notAllow.indexOf(" "+fieldname+" ") >-1 ) | |||
if (notAllow.indexOf(" "+fieldname+" ") >-1 ) | |||
{ | |||
ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||
return false; | |||
} | |||
if((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | |||
if ((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | |||
{ | |||
ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)"); | |||
return false; | |||
} | |||
if(spage=="no") spage = ""; | |||
if (spage=="no") spage = ""; | |||
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\" isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | |||
revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||
document.form1.fieldstring.value = revalue; | |||
@@ -122,7 +122,7 @@ | |||
<tr> | |||
<td>默认值:<br> | |||
<span class="style2">如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(用“,”分开,如“男,女,人妖”)</span></td> | |||
<td><textarea name="vdefault" id="vdefault" style="width:70%;height:60px"></textarea></td> | |||
<td><textarea name="vdefault" id="vdefault" class="biz-textarea"></textarea></td> | |||
</tr> | |||
<tr> | |||
<td>最大长度:<br> | |||
@@ -135,7 +135,7 @@ | |||
</tr> | |||
<tr> | |||
<td align="center"></td> | |||
<td><textarea name="vinnertext" cols="45" rows="5" id="vinnertext" style="width:70%;height:120px"></textarea></td> | |||
<td><textarea name="vinnertext" id="vinnertext" class="biz-textarea"></textarea></td> | |||
</tr> | |||
<tr> | |||
<td colspan="2" bgcolor="#f8f8f8" align="center" class="py-2"> | |||
@@ -29,18 +29,18 @@ | |||
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"); | |||
if(itemname=="") | |||
if (itemname=="") | |||
{ | |||
ShowMsg("表单提示名称不能为空"); | |||
theform.itemname.focus(); | |||
return false; | |||
} | |||
if((dtype=="radio"||dtype=="select"||dtype=="checkbox") && vdefault=="") | |||
if ((dtype=="radio"||dtype=="select"||dtype=="checkbox") && vdefault=="") | |||
{ | |||
ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)"); | |||
return false; | |||
} | |||
if(spage=="no") spage = ""; | |||
if (spage=="no") spage = ""; | |||
revalue = "<field:"+fieldname+" itemname=\""+itemname+"\" autofield=\"1\" type=\""+dtype+"\""; | |||
revalue += " isnull=\""+sisnull+"\" default=\""+vdefault+"\" "; | |||
revalue += " maxlength=\""+maxlength+"\" page=\""+spage+"\">"+vinnertext+"</field:"+fieldname+">"; | |||
@@ -83,7 +83,7 @@ | |||
<select name="dtype" id="type" style="width:260px"> | |||
<?php | |||
$dtype = $ctag->GetAtt('type'); | |||
if($dtype!='' && isset($fieldtypes[$dtype])) | |||
if ($dtype!='' && isset($fieldtypes[$dtype])) | |||
{ | |||
echo "<option value='{$dtype}'>{$fieldtypes[$dtype]}</option>"; | |||
$canchange = true; | |||
@@ -91,7 +91,7 @@ | |||
echo "<option value='{$dtype}'>系统专用类型</option>"; | |||
$canchange = false; | |||
} | |||
if($canchange) | |||
if ($canchange) | |||
{ | |||
?> | |||
<option value="text">单行文本(varchar)</option> | |||
@@ -117,14 +117,14 @@ | |||
<span class="style2">如果内容需要分页符,不论何种内容,都可以用#P#副标题#e#作为分页符号实现内容分页,但一个模型里仅允许一个这样的字段!</span></td> | |||
<td> | |||
<input type="hidden" name="isnull" value="1"> | |||
<label><input type="radio" name="spage" value="split"<?php if($ctag->GetAtt('page')=='split') echo "checked='1'";?>> 是</label> | |||
<label><input type="radio" name="spage" value="no"<?php if($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo "checked='1'";?>> 否</label> | |||
<label><input type="radio" name="spage" value="split"<?php if ($ctag->GetAtt('page')=='split') echo "checked='1'";?>> 是</label> | |||
<label><input type="radio" name="spage" value="no"<?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo "checked='1'";?>> 否</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>默认值:<br> | |||
<span class="style2"> 如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(用“,”分开,如“男,女,人妖”)如果为联动选框,这里填写联动选框项目名称</span></td> | |||
<td><textarea name="vdefault" id="vdefault" style="width:70%;height:60px"><?php echo $ctag->GetAtt('default');?></textarea></td> | |||
<td><textarea name="vdefault" id="vdefault" class="biz-textarea"><?php echo $ctag->GetAtt('default');?></textarea></td> | |||
</tr> | |||
<tr> | |||
<td>最大长度:<br> | |||
@@ -137,7 +137,7 @@ | |||
</tr> | |||
<tr> | |||
<td align="center"></td> | |||
<td><textarea name="vinnertext" cols="45" rows="5" id="vinnertext" style="width:70%;height:120px"><?php echo $ctag->GetInnerText();?></textarea></td> | |||
<td><textarea name="vinnertext" id="vinnertext" class="biz-textarea"><?php echo $ctag->GetInnerText();?></textarea></td> | |||
</tr> | |||
<tr> | |||
<td colspan="2" bgcolor="#f8f8f8"> | |||
@@ -34,21 +34,21 @@ | |||
</tr> | |||
{dede:datalist} | |||
<?php | |||
if(!empty($fields)) | |||
if (!empty($fields)) | |||
{ | |||
$allowhtml = array('htmltext'); | |||
$fields['sta'] = $fields['ifcheck'] == 1 ? '已审核':'未审核'; | |||
echo '<tr bgcolor="#fbfce2"><td width="18%"><input type="checkbox" name="id[]" value="'.$fields['id'].'"></td><td><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'">'.$fields['id'].'</a> '.$fields['sta'].'</td><td width="12%" align="center"><a href="diy_list.php?action=edit&diyid='.$diy->diyid.'&id='.$fields['id'].'"><i class="btn btn-sm fa fa-pencil-square-o" title="修改"></i></a></td></tr>'; | |||
foreach($fieldlist as $field=>$fielddata) | |||
{ | |||
if($fields[$field]=='') continue; | |||
if($fielddata[1]=='img'){ | |||
if ($fields[$field]=='') continue; | |||
if ($fielddata[1]=='img'){ | |||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><i class='fa fa-picture-o'></i> 图片附件</a>"; | |||
} | |||
else if($fielddata[1]=='addon'){ | |||
else if ($fielddata[1]=='addon'){ | |||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><i class='fa fa-file-text-o'></i> 其它附件</a>"; | |||
} else { | |||
if(!in_array($fielddata[1],$allowhtml)){ | |||
if (!in_array($fielddata[1],$allowhtml)){ | |||
$fields[$field] = dede_htmlspecialchars($fields[$field]); | |||
} | |||
} | |||
@@ -94,7 +94,7 @@ | |||
<span>文档:<a href='feedback_main.php?aid={dede:field.aid/}'>{dede:field.arctitle function="RemoveXSS(@me)"/}</a></span> | |||
<span>评论:{dede:field.msg function='cn_substr(Text2Html(@me),280)'/}</span> | |||
<a href="archives_do.php?aid={dede:field.aid/}&dopost=viewArchives" target="_blank" class="btn btn-outline-success btn-sm">浏览</a> | |||
<?php if($fields['replycount'] > 0) {?><a href='feedback_main.php?fid={dede:field.id/}'>{dede:field.replycount/}条回复</a><?php }?> | |||
<?php if ($fields['replycount'] > 0) {?><a href='feedback_main.php?fid={dede:field.id/}'>{dede:field.replycount/}条回复</a><?php }?> | |||
</td> | |||
<td width="12%" align="center">地址:<a href='feedback_main.php?ip={dede:field.ip/}'>{dede:field.ip/}</a></td> | |||
<td width="12%">时间:{dede:field.dtime function="GetDateTimeMK(@me)"/}</td> | |||
@@ -29,13 +29,13 @@ | |||
$files = $dirs = array(); | |||
foreach ($dh as $file) | |||
{ | |||
if($file!="." && $file!=".." && !is_dir("$inpath/$file")) | |||
if ($file!="." && $file!=".." && !is_dir("$inpath/$file")) | |||
{ | |||
@$filesize = filesize("$inpath/$file"); | |||
@$filesize=$filesize/1024; | |||
@$filetime = filemtime("$inpath/$file"); | |||
@$filetime = MyDate("Y-m-d H:i:s",$filetime); | |||
if($filesize<0.1) | |||
if ($filesize<0.1) | |||
{ | |||
@list($ty1,$ty2)=explode(".",$filesize); | |||
$filesize=$ty1.".".substr($ty2,0,2); | |||
@@ -44,13 +44,13 @@ | |||
$filesize=$ty1.".".substr($ty2,0,1); | |||
} | |||
} | |||
if($file == ".") | |||
if ($file == ".") | |||
{ | |||
continue; | |||
} | |||
else if($file == "..") | |||
else if ($file == "..") | |||
{ | |||
if($activepath == "") | |||
if ($activepath == "") | |||
{ | |||
continue; | |||
} | |||
@@ -63,10 +63,10 @@ | |||
</tr>"; | |||
$dirs[] = $line; | |||
} | |||
else if(is_dir("$inpath/$file")) | |||
else if (is_dir("$inpath/$file")) | |||
{ | |||
if(preg_match("#^_(.*)$#i",$file)) continue; | |||
if(preg_match("#^\.(.*)$#i",$file)) continue; | |||
if (preg_match("#^_(.*)$#i",$file)) continue; | |||
if (preg_match("#^\.(.*)$#i",$file)) continue; | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
<td> | |||
<a href='file_manage_main.php?activepath=".urlencode("$activepath/$file")."'><img src='../static/web/img/dir.gif'>$file</a></td> | |||
@@ -80,7 +80,7 @@ | |||
</tr>"; | |||
$dirs[] = $line; | |||
} | |||
else if(preg_match("#\.(gif|png)#i",$file)) | |||
else if (preg_match("#\.(gif|png)#i",$file)) | |||
{ | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
<td> | |||
@@ -95,7 +95,7 @@ | |||
</tr>"; | |||
$files[] = $line; | |||
} | |||
else if(preg_match("#\.(jpg)#i",$file)) | |||
else if (preg_match("#\.(jpg)#i",$file)) | |||
{ | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
<td> | |||
@@ -110,7 +110,7 @@ | |||
</tr>"; | |||
$files[] = $line; | |||
} | |||
else if(preg_match("#\.(swf|fla|fly)#i",$file)) | |||
else if (preg_match("#\.(swf|fla|fly)#i",$file)) | |||
{ | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
<td> | |||
@@ -125,7 +125,7 @@ | |||
</tr>"; | |||
$files[] = $line; | |||
} | |||
else if(preg_match("#\.(zip|rar|tar.gz)#i",$file)) | |||
else if (preg_match("#\.(zip|rar|tar.gz)#i",$file)) | |||
{ | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
<td> | |||
@@ -140,7 +140,7 @@ | |||
</tr>"; | |||
$files[] = $line; | |||
} | |||
else if(preg_match("#\.(exe)#i",$file)) | |||
else if (preg_match("#\.(exe)#i",$file)) | |||
{ | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
<td> | |||
@@ -155,7 +155,7 @@ | |||
</tr>"; | |||
$files[] = $line; | |||
} | |||
else if(preg_match("#\.(mp3|wma)#i",$file)) | |||
else if (preg_match("#\.(mp3|wma)#i",$file)) | |||
{ | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
<td> | |||
@@ -170,7 +170,7 @@ | |||
</tr>"; | |||
$files[] = $line; | |||
} | |||
else if(preg_match("#\.(wmv|api)#i",$file)) | |||
else if (preg_match("#\.(wmv|api)#i",$file)) | |||
{ | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
<td> | |||
@@ -185,7 +185,7 @@ | |||
</tr>"; | |||
$files[] = $line; | |||
} | |||
else if(preg_match("#\.(rm|rmvb)#i",$file)) | |||
else if (preg_match("#\.(rm|rmvb)#i",$file)) | |||
{ | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
<td> | |||
@@ -200,7 +200,7 @@ | |||
</tr>"; | |||
$files[] = $line; | |||
} | |||
else if(preg_match("#\.(txt|inc|pl|cgi|asp|xml|xsl|aspx|cfm)#",$file)) | |||
else if (preg_match("#\.(txt|inc|pl|cgi|asp|xml|xsl|aspx|cfm)#",$file)) | |||
{ | |||
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
@@ -217,7 +217,7 @@ | |||
</tr>"; | |||
$files[] = $line; | |||
} | |||
else if(preg_match("#\.(htm|html)#i",$file)) | |||
else if (preg_match("#\.(htm|html)#i",$file)) | |||
{ | |||
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#F9FBF0';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
@@ -234,7 +234,7 @@ | |||
</tr>"; | |||
$files[] = $line; | |||
} | |||
else if(preg_match("#\.(php)#i",$file)) | |||
else if (preg_match("#\.(php)#i",$file)) | |||
{ | |||
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
@@ -251,7 +251,7 @@ | |||
</tr>"; | |||
$files[] = $line; | |||
} | |||
else if(preg_match("#\.(js)#i",$file)) | |||
else if (preg_match("#\.(js)#i",$file)) | |||
{ | |||
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
@@ -268,7 +268,7 @@ | |||
</tr>"; | |||
$files[] = $line; | |||
} | |||
else if(preg_match("#\.(css)#i",$file)) | |||
else if (preg_match("#\.(css)#i",$file)) | |||
{ | |||
$edurl = "file_manage_view.php?fmdo=edit&filename=".urlencode($file)."&activepath=".urlencode($activepath); | |||
$line = "\n<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\"> | |||
@@ -309,7 +309,7 @@ | |||
?> | |||
<tr> | |||
<td colspan="4" bgcolor="#f8f8f8"> | |||
<?php if(!DEDEBIZ_SAFE_MODE) {?><a href="file_manage_main.php" class="btn btn-success btn-sm">根目录</a><?php }?> | |||
<?php if (!DEDEBIZ_SAFE_MODE) {?><a href="file_manage_main.php" class="btn btn-success btn-sm">根目录</a><?php }?> | |||
<a href="file_manage_view.php?fmdo=newfile&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">新建文件</a> | |||
<a href="file_manage_view.php?fmdo=newdir&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">新建目录</a> | |||
<a href="file_manage_view.php?fmdo=upload&activepath=<?php echo urlencode($activepath)?>" class="btn btn-success btn-sm">文件上传</a> | |||
@@ -162,7 +162,7 @@ | |||
$dsql->Execute(); | |||
while($lrow = $dsql->GetObject()){ | |||
$disable = ''; | |||
if($lrow->channeltype < -1) | |||
if ($lrow->channeltype < -1) | |||
{ | |||
$disable = 'disabled'; | |||
} | |||
@@ -85,7 +85,7 @@ | |||
<td>目录默认页名称:</td> | |||
<td> | |||
<input type="text" name="defaultpage" id="defaultpage" value="<?php echo $row['defaultpage']?>" style="width:260px"> | |||
<label><input type="checkbox" name="nodefault" id="nodefault" value="1" <?php if($row['nodefault']==1) echo "checked";?>> 不使用目录默认主页</label> | |||
<label><input type="checkbox" name="nodefault" id="nodefault" value="1" <?php if ($row['nodefault']==1) echo "checked";?>> 不使用目录默认主页</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -131,11 +131,11 @@ | |||
$dsql->Execute(); | |||
while($lrow = $dsql->GetObject()){ | |||
$disable = ''; | |||
if($lrow->channeltype < -1) | |||
if ($lrow->channeltype < -1) | |||
{ | |||
$disable = 'disabled'; | |||
} | |||
if($lrow->id==$typeid) echo "<option value='{$lrow->id}' selected $disable>{$lrow->typename}</option>"; | |||
if ($lrow->id==$typeid) echo "<option value='{$lrow->id}' selected $disable>{$lrow->typename}</option>"; | |||
else echo "<option value='{$lrow->id}' $disable>{$lrow->typename}</option>"; | |||
} | |||
echo "</select>"; | |||
@@ -151,7 +151,7 @@ | |||
$dsql->Execute(); | |||
while($nrow = $dsql->GetObject()) | |||
{ | |||
if($nrow->id==$channel) echo "<option value='{$nrow->id}' selected>{$nrow->typename}</option>"; | |||
if ($nrow->id==$channel) echo "<option value='{$nrow->id}' selected>{$nrow->typename}</option>"; | |||
else echo "<option value='{$nrow->id}'>{$nrow->typename}</option>"; | |||
} | |||
echo "</select>"; | |||
@@ -168,7 +168,7 @@ | |||
$dsql->Execute(); | |||
while($nrow = $dsql->GetObject()) | |||
{ | |||
if($att==$nrow->att) | |||
if ($att==$nrow->att) | |||
{ | |||
echo "<option value='{$nrow->att}' selected>{$nrow->attname}</option>"; | |||
} else { | |||
@@ -191,12 +191,12 @@ | |||
<td> | |||
<?php | |||
$setype = $ctag->GetAtt('type'); | |||
if($setype=='') $setype = 'X'; | |||
if ($setype=='') $setype = 'X'; | |||
?> | |||
高级筛选: | |||
<label><input type="checkbox" name="types[]" id="type1" value="image" <?php if(preg_match("#image#i",$setype)) echo ' checked';?>> 带缩略图</label> | |||
<label><input type="checkbox" name="types[]" id="type2" value="commend" <?php if(preg_match("#commend#i", $setype)) echo ' checked';?>> 推荐</label> | |||
<label><input type="checkbox" name="types[]" id="type3" value="spec" class="inputbut" <?php if(preg_match("#spec#i", $setype)) echo ' checked';?>> 专题</label> | |||
<label><input type="checkbox" name="types[]" id="type1" value="image" <?php if (preg_match("#image#i",$setype)) echo ' checked';?>> 带缩略图</label> | |||
<label><input type="checkbox" name="types[]" id="type2" value="commend" <?php if (preg_match("#commend#i", $setype)) echo ' checked';?>> 推荐</label> | |||
<label><input type="checkbox" name="types[]" id="type3" value="spec" class="inputbut" <?php if (preg_match("#spec#i", $setype)) echo ' checked';?>> 专题</label> | |||
关键词:<input type="text" name="keywordarc" id="keywordarc" value="<?php echo $ctag->GetAtt('keyword')?>">(","逗号分开) | |||
</td> | |||
</tr> | |||
@@ -225,8 +225,8 @@ | |||
<option value="lastpost">最后评论时间</option> | |||
<option value="postnum">评论总数</option> | |||
</select> | |||
<label><input type="radio" name="order" value="desc" <?php if($ctag->GetAtt('orderway')=='desc') echo "checked";?>> 由高到低</label> | |||
<label><input type="radio" name="order" value="asc" <?php if($ctag->GetAtt('orderway')=='asc') echo "checked";?>> 由低到高</label> | |||
<label><input type="radio" name="order" value="desc" <?php if ($ctag->GetAtt('orderway')=='desc') echo "checked";?>> 由高到低</label> | |||
<label><input type="radio" name="order" value="asc" <?php if ($ctag->GetAtt('orderway')=='asc') echo "checked";?>> 由低到高</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -37,7 +37,7 @@ | |||
function EditNote(nid) { | |||
location.href = 'freelist_edit.php?aid=' + nid; | |||
} | |||
//更新HTML | |||
//更新网页 | |||
function CreateNote(nid) { | |||
location.href = 'makehtml_freelist.php?aid=' + nid; | |||
} | |||
@@ -13,13 +13,13 @@ | |||
<script> | |||
function CheckSubmit() | |||
{ | |||
if(document.form1.url.value=="http://"||document.form1.url.value=="") | |||
if (document.form1.url.value=="http://"||document.form1.url.value=="") | |||
{ | |||
document.form1.url.focus(); | |||
ShowMsg("网址不能为空"); | |||
return false; | |||
} | |||
if(document.form1.webname.value=="") | |||
if (document.form1.webname.value=="") | |||
{ | |||
document.form1.webname.focus(); | |||
ShowMsg("网站名称不能为空"); | |||
@@ -50,9 +50,9 @@ | |||
<tr> | |||
<td>链接位置:</td> | |||
<td> | |||
<label><input type="radio" name="ischeck" value="0" <?php if($myLink['ischeck']==0) echo "checked='1'"?>> 未审核</label> | |||
<label><input type="radio" name="ischeck" value="1" <?php if($myLink['ischeck']==1) echo "checked='1'"?>> 内页</label> | |||
<label><input type="radio" name="ischeck" value="2" <?php if($myLink['ischeck']==2) echo "checked='1'"?>> 首页</label> | |||
<label><input type="radio" name="ischeck" value="0" <?php if ($myLink['ischeck']==0) echo "checked='1'"?>> 未审核</label> | |||
<label><input type="radio" name="ischeck" value="1" <?php if ($myLink['ischeck']==1) echo "checked='1'"?>> 内页</label> | |||
<label><input type="radio" name="ischeck" value="2" <?php if ($myLink['ischeck']==2) echo "checked='1'"?>> 首页</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -45,7 +45,7 @@ | |||
<?php | |||
foreach($selCheckArr as $k=>$v) | |||
{ | |||
if($k==$ischeck) echo "<option value='$k' selected>$v</option>"; | |||
if ($k==$ischeck) echo "<option value='$k' selected>$v</option>"; | |||
else echo "<option value='$k'>$v</option>"; | |||
} | |||
?> | |||
@@ -24,7 +24,7 @@ | |||
<div class="top-logo"> | |||
<span class="top-dedebiz"><a href="index_body.php" target="main"><?php echo cn_substr($cfg_webname,8);?></a></span> | |||
<span class="top-version">V<?php echo $cfg_version_detail;?></span> | |||
<?php if(DEDEBIZ_SAFE_MODE){?> | |||
<?php if (DEDEBIZ_SAFE_MODE){?> | |||
<a href="index_body.php?dopost=safe_mode" target="main" class="btn btn-primary btn-xs">安全</a> | |||
<?php } else {?> | |||
<a href="index_body.php?dopost=safe_mode" target="main" class="btn btn-warning btn-xs">开发</a> | |||
@@ -33,12 +33,12 @@ | |||
<div class="top-item"> | |||
<ul class="mb-0"> | |||
<li class="pl-0"><a href="javascript:;" id="togglemenu" title="侧边伸缩"><i class="fa fa-dedent"></i></a></li> | |||
<?php if($cuserLogin->getUserType()>=10){?> | |||
<?php if ($cuserLogin->getUserType()>=10){?> | |||
<li><a href="sys_info.php" target="main" title="系统配置"><i class="fa fa-cog"></i></a></li> | |||
<li><a href="catalog_main.php" target="main" title="栏目管理"><i class="fa fa-bars"></i></a></li> | |||
<li><a href="file_manage_main.php<?php echo DEDEBIZ_SAFE_MODE?'?activepath='.$cfg_medias_dir:'';?>" target="main" title="文件管理"><i class="fa fa-folder"></i></a></li> | |||
<?php }?> | |||
<?php if(!DEDEBIZ_SAFE_MODE){?><li><a href="templets_main.php" target="main" title="模板管理"><i class="fa fa-cube"></i></a></li><?php }?> | |||
<?php if (!DEDEBIZ_SAFE_MODE){?><li><a href="templets_main.php" target="main" title="模板管理"><i class="fa fa-cube"></i></a></li><?php }?> | |||
<li><a href="makehtml_all.php" target="main" title="更新整站"><i class="fa fa-repeat"></i></a></li> | |||
<?php echo ($cfg_mb_open=='Y')?'<li><a href="../user" target="_blank" title="会员中心"><i class="fa fa-user-circle"></i></a></li>':'';?> | |||
<li><a href="../" target="_blank" title="预览主页"><i class="fa fa-eye"></i></a></li> | |||
@@ -52,7 +52,7 @@ | |||
</div> | |||
<div class="top-admin"> | |||
<ul class="mb-0"> | |||
<li><a href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID();?>&dopost=edit" target="main"><img src="../static/web/img/avatar.png" title="<?php echo $cuserLogin->getUserName();?>"><?php echo $cuserLogin->getUserName();?><?php if($cuserLogin->getUserType()==10){echo "管理员";} else if($cuserLogin->getUserType()==5) {echo "频道员";} else {echo "信息员";}?></a></li> | |||
<li><a href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID();?>&dopost=edit" target="main"><img src="../static/web/img/avatar.png" title="<?php echo $cuserLogin->getUserName();?>"><?php echo $cuserLogin->getUserName();?><?php if ($cuserLogin->getUserType()==10){echo "管理员";} else if ($cuserLogin->getUserType()==5) {echo "频道员";} else {echo "信息员";}?></a></li> | |||
<li><a href="exit.php" title="退出系统">退了</a></li> | |||
</ul> | |||
</div> | |||
@@ -29,7 +29,7 @@ | |||
<a id="link6" class="menu-item"> | |||
<div onClick="ShowMainMenu(6)"><b>会员</b></div> | |||
</a> | |||
<?php if($cuserLogin->getUserType()>=10){?> | |||
<?php if ($cuserLogin->getUserType()>=10){?> | |||
<a id="link7" class="menu-item"> | |||
<div onClick="ShowMainMenu(7)"><b>模板</b></div> | |||
</a> | |||
@@ -50,7 +50,7 @@ | |||
</td> | |||
</tr> | |||
</table> | |||
<?php if(!empty($openitem) && $openitem!=1){?> | |||
<?php if (!empty($openitem) && $openitem!=1){?> | |||
<script> | |||
ShowMainMenu(100); | |||
</script> | |||
@@ -35,7 +35,7 @@ | |||
<div class="login-area shadow-sm"> | |||
<h2 class="mb-4 text-center">后台登录</h2> | |||
<form name="form1" method="post" action="login.php"> | |||
<input type="hidden" name="gotopage" value="<?php if(!empty($gotopage)) echo RemoveXSS($gotopage);?>"> | |||
<input type="hidden" name="gotopage" value="<?php if (!empty($gotopage)) echo RemoveXSS($gotopage);?>"> | |||
<input type="hidden" name="dopost" value="login"> | |||
<input type="hidden" name="adminstyle" value="newDedeBIZ"> | |||
<div class="form-group"> | |||
@@ -21,11 +21,11 @@ | |||
<td width="260">选择栏目:</td> | |||
<td> | |||
<?php | |||
if(empty($cid)) $cid="0"; | |||
if (empty($cid)) $cid="0"; | |||
$tl = new TypeLink($cid); | |||
$typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0); | |||
echo "<select name='typeid' style='width:260px'>"; | |||
if($cid=="0") echo "<option value='0' selected>更新所有文档</option>"; | |||
if ($cid=="0") echo "<option value='0' selected>更新所有文档</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
@@ -24,11 +24,11 @@ | |||
</tr> | |||
<tr> | |||
<td>起始id:</td> | |||
<td><input type="text" name="startid" id="startid" size="10" <?php if(!empty($aid)) echo " value='$aid'";?>>(空或0表示从头开始)</td> | |||
<td><input type="text" name="startid" id="startid" size="10" <?php if (!empty($aid)) echo " value='$aid'";?>>(空或0表示从头开始)</td> | |||
</tr> | |||
<tr> | |||
<td>结束ID:</td> | |||
<td><input type="text" name="endid" id="endid" size="10" <?php if(!empty($aid)) echo " value='$aid'";?>>(空或0表示直到结束ID)</td> | |||
<td><input type="text" name="endid" id="endid" size="10" <?php if (!empty($aid)) echo " value='$aid'";?>>(空或0表示直到结束ID)</td> | |||
</tr> | |||
<tr> | |||
<td>每批生成:</td> | |||
@@ -64,7 +64,7 @@ | |||
$client->appid = $cfg_bizcore_appid; | |||
$client->key = $cfg_bizcore_key; | |||
$data = $client->AdminPWDExists(); | |||
if($data->code == -1){ | |||
if ($data->code == -1){ | |||
?> | |||
<tr> | |||
<td colspan="2">尚未开启DedeBIZ商业组件 <a class="btn btn-danger btn-sm" target="_blank" href="https://www.dedebiz.com/start?code=-1008">如何启动组件</a></td> | |||
@@ -73,7 +73,7 @@ | |||
} else { | |||
$data = json_decode($data->data); | |||
$rs = (array)($data->result); | |||
if($rs["admin_pwd_exists"] == "false") { | |||
if ($rs["admin_pwd_exists"] == "false") { | |||
?> | |||
<tr> | |||
<td>设置操作密码:</td> | |||
@@ -18,11 +18,11 @@ | |||
<td width="260">选择栏目:</td> | |||
<td> | |||
<?php | |||
if(empty($cid)) $cid=0; | |||
if (empty($cid)) $cid=0; | |||
$tl = new TypeLink($cid); | |||
$typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0,1); | |||
echo "<select name='typeid' style='width:260px'>"; | |||
if($cid=='0') echo "<option value='0' selected='1'>更新所有栏目</option>"; | |||
if ($cid=='0') echo "<option value='0' selected='1'>更新所有栏目</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
@@ -24,7 +24,7 @@ | |||
<td bgcolor="#f8f8f8" colspan="2">更新标签</td> | |||
</tr> | |||
<?php | |||
if($tagid > 0) { | |||
if ($tagid > 0) { | |||
$row = $dsql->GetOne("Select tag From `#@__tagindex` where id = '$tagid' "); | |||
?> | |||
<tr> | |||
@@ -54,10 +54,10 @@ | |||
<tr> | |||
<td width="15%" align="left" class="bline">媒体类型:</td> | |||
<td width="85%" align="left" class="bline"> | |||
<label><input type="radio" name="mediatype" value="1" <?php if($myrow['mediatype']==1) echo "checked";?>> 图片</label> | |||
<label><input type="radio" name="mediatype" value="2" <?php if($myrow['mediatype']==2) echo "checked";?>> FLASH</label> | |||
<label><input type="radio" name="mediatype" value="3" <?php if($myrow['mediatype']==3) echo "checked";?>> 视频音频</label> | |||
<label><input type="radio" name="mediatype" value="4" <?php if($myrow['mediatype']==4) echo "checked";?>> 附件其它</label> | |||
<label><input type="radio" name="mediatype" value="1" <?php if ($myrow['mediatype']==1) echo "checked";?>> 图片</label> | |||
<label><input type="radio" name="mediatype" value="2" <?php if ($myrow['mediatype']==2) echo "checked";?>> FLASH</label> | |||
<label><input type="radio" name="mediatype" value="3" <?php if ($myrow['mediatype']==3) echo "checked";?>> 视频音频</label> | |||
<label><input type="radio" name="mediatype" value="4" <?php if ($myrow['mediatype']==4) echo "checked";?>> 附件其它</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -84,14 +84,14 @@ | |||
</td> | |||
</tr> | |||
<?php | |||
if($myrow['mediatype']==1) | |||
if ($myrow['mediatype']==1) | |||
{ | |||
$fullfilename = $cfg_basedir.$myrow['url']; | |||
if(file_exists($fullfilename)){ | |||
if (file_exists($fullfilename)){ | |||
$info = ""; | |||
$sizes = getimagesize($fullfilename,$info); | |||
if(is_array($sizes)){ | |||
if($sizes[0]>200) $w=200; | |||
if (is_array($sizes)){ | |||
if ($sizes[0]>200) $w=200; | |||
else $w = $sizes[0]; | |||
?> | |||
<tr> | |||
@@ -62,17 +62,17 @@ | |||
<td width="170"> | |||
<select name="mediatype" style="width:160px"> | |||
<option value="0">文件类型</option> | |||
<option value="1" <?php if($mediatype==1) echo "selected"?>>图片</option> | |||
<option value="2" <?php if($mediatype==2) echo "selected"?>>FLASH</option> | |||
<option value="3" <?php if($mediatype==3) echo "selected"?>>视频音频</option> | |||
<option value="4" <?php if($mediatype==4) echo "selected"?>>其它附件</option> | |||
<option value="1" <?php if ($mediatype==1) echo "selected"?>>图片</option> | |||
<option value="2" <?php if ($mediatype==2) echo "selected"?>>FLASH</option> | |||
<option value="3" <?php if ($mediatype==3) echo "selected"?>>视频音频</option> | |||
<option value="4" <?php if ($mediatype==4) echo "selected"?>>其它附件</option> | |||
</select> | |||
</td> | |||
<td width="170"> | |||
<select name="membertype" style="width:160px"> | |||
<option value="0">用户组</option> | |||
<option value="1" <?php if($membertype==1) echo "selected"?>>管理员</option> | |||
<option value="2" <?php if($membertype==2) echo "selected"?>>外部会员</option> | |||
<option value="1" <?php if ($membertype==1) echo "selected"?>>管理员</option> | |||
<option value="2" <?php if ($membertype==2) echo "selected"?>>外部会员</option> | |||
</select> | |||
</td> | |||
<td> | |||
@@ -40,7 +40,7 @@ | |||
<?php | |||
foreach($staArr as $k=>$v) | |||
{ | |||
if($spacesta==$k) echo "<option value='$k' selected>$v</option>"; | |||
if ($spacesta==$k) echo "<option value='$k' selected>$v</option>"; | |||
else echo "<option value='$k'>$v</option>"; | |||
} | |||
?> | |||
@@ -78,10 +78,10 @@ | |||
<td>{dede:field.mid/}</td> | |||
<td> | |||
<?php | |||
if(!empty($fields['face'])) {echo "<img src='{$fields['face']}' class='user-img'>";}; | |||
if (!empty($fields['face'])) {echo "<img src='{$fields['face']}' class='user-img'>";}; | |||
echo ''.$fields['userid'].''; | |||
if($fields['spacesta']==-2) echo "<span class='text-danger'>[禁言]</span>"; | |||
if($fields['spacesta']==-1) echo "<span class='text-danger'>[未审核]</span>"; | |||
if ($fields['spacesta']==-2) echo "<span class='text-danger'>[禁言]</span>"; | |||
if ($fields['spacesta']==-1) echo "<span class='text-danger'>[未审核]</span>"; | |||
?> | |||
</td> | |||
<td>{dede:field.email/}<br> | |||
@@ -42,11 +42,11 @@ | |||
<td><input type="text" name="scores_<?php echo $k?>" value="<?php echo $row->scores;?>" id="scores_<?php echo $k?>"></td> | |||
<td align="center"> | |||
<?php | |||
if($row->id<=5) { echo "系统"; } | |||
if ($row->id<=5) { echo "系统"; } | |||
else { echo "用户"; } | |||
?> | |||
</td> | |||
<td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" <?php if($row->id == 3) echo 'disabled="disabled"';?> value="1" checked="checked"> 正在使用</td> | |||
<td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" <?php if ($row->id == 3) echo 'disabled="disabled"';?> value="1" checked="checked"> 正在使用</td> | |||
</tr> | |||
<?php }?> | |||
<input type="hidden" name="idend" value="<?php echo $k;?>"> | |||
@@ -45,8 +45,8 @@ | |||
<td align="center"><input type="text" name="titles-<?php echo $v['id']?>" id="titles-<?php echo $v['id']?>" value="<?php echo $v['titles']?>" style="width:160px"></td> | |||
<td align="center"> | |||
<select name="isdefault-<?php echo $v['id']?>" id="isdefault-<?php echo $v['id']?>"> | |||
<option value="1" <?php if($v['isdefault']) echo " selected='selected'";?>>是</option> | |||
<option value="0" <?php if(!$v['isdefault']) echo " selected='selected'";?>>否</option> | |||
<option value="1" <?php if ($v['isdefault']) echo " selected='selected'";?>>是</option> | |||
<option value="0" <?php if (!$v['isdefault']) echo " selected='selected'";?>>否</option> | |||
</select> | |||
</td> | |||
</tr> | |||
@@ -33,7 +33,7 @@ | |||
<tr> | |||
<td align="center"> | |||
<?php | |||
if($row['matt']==10) | |||
if ($row['matt']==10) | |||
{ | |||
echo "<span class='text-danger'>已经是管理员了,不要再提升了</span>"; | |||
} else { | |||
@@ -48,7 +48,7 @@ | |||
<td class="bline" class="bline"> | |||
<?php | |||
echo "".$row['userid'].""; | |||
if($row['face']!='') { | |||
if ($row['face']!='') { | |||
echo "<img src='{$row['face']}' style='max-width:80px;height:auto'>"; | |||
} | |||
?> | |||
@@ -71,7 +71,7 @@ | |||
$dsql->Execute("ut"); | |||
while($myrow = $dsql->GetObject("ut")) | |||
{ | |||
if($row['usertype']==$myrow->rank) echo "<option value='".$myrow->rank."' selected='1'>".$myrow->typename."</option>"; | |||
if ($row['usertype']==$myrow->rank) echo "<option value='".$myrow->rank."' selected='1'>".$myrow->typename."</option>"; | |||
else echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>"; | |||
} | |||
?> | |||
@@ -47,7 +47,7 @@ | |||
<select name="rank_<?php echo $k?>" id="rank_<?php echo $k?>" style="width:90%"> | |||
<?php | |||
foreach($arcranks as $kkk=>$vvv){ | |||
if($row->rank==$kkk) echo "<option value='{$kkk}' selected>{$vvv}</option>"; | |||
if ($row->rank==$kkk) echo "<option value='{$kkk}' selected>{$vvv}</option>"; | |||
else echo "<option value='{$kkk}'>{$vvv}</option>"; | |||
} | |||
?> | |||
@@ -58,7 +58,7 @@ | |||
<select name="exptime_<?php echo $k?>" id="exptime_<?php echo $k?>" style="width:90%"> | |||
<?php | |||
foreach($times as $kkk=>$vvv){ | |||
if($row->exptime==$kkk) echo "<option value='{$kkk}' selected>{$vvv}</option>"; | |||
if ($row->exptime==$kkk) echo "<option value='{$kkk}' selected>{$vvv}</option>"; | |||
else echo "<option value='{$kkk}'>{$vvv}</option>"; | |||
} | |||
?> | |||
@@ -13,13 +13,13 @@ | |||
<script> | |||
function checkSubmit() | |||
{ | |||
if(document.form2.email.value=="") | |||
if (document.form2.email.value=="") | |||
{ | |||
document.form2.email.focus(); | |||
ShowMsg("Email不能为空"); | |||
return false; | |||
} | |||
if(document.form2.uname.value=="") | |||
if (document.form2.uname.value=="") | |||
{ | |||
document.form2.uname.focus(); | |||
ShowMsg("用户昵称不能为空"); | |||
@@ -35,7 +35,7 @@ | |||
</tr> | |||
<tr> | |||
<td align="center"> | |||
<?php if($row['matt']==10) echo "<span class='text-danger'>当前用户是网站管理员关连的帐号,请小心操作</span>";?> | |||
<?php if ($row['matt']==10) echo "<span class='text-danger'>当前用户是网站管理员关连的帐号,请小心操作</span>";?> | |||
<table width="98%" cellspacing="0" cellpadding="6" class="table table-borderless"> | |||
<form name="form2" action="member_do.php" method="post" onSubmit="return checkSubmit();"> | |||
<input type="hidden" name="dopost" value="edituser"> | |||
@@ -44,7 +44,7 @@ | |||
<td width="260" class="bline">用户名:</td> | |||
<td class="bline"> | |||
<?php | |||
if($row['face']!='') {echo "<img src='{$row['face']}' class='user-img'>";}; | |||
if ($row['face']!='') {echo "<img src='{$row['face']}' class='user-img'>";}; | |||
echo "".$row['userid'].""; | |||
?> | |||
</td> | |||
@@ -82,9 +82,9 @@ | |||
<tr> | |||
<td class="bline">性别:</td> | |||
<td class="bline"> | |||
<label><input type="radio" name="sex" value="男"<?php if($row['sex']=="男" ) echo" checked='1'" ;?>> 男</label> | |||
<label><input type="radio" name="sex" value="女"<?php if($row['sex']=="女" ) echo" checked='1'" ;?>> 女</label> | |||
<label><input type="radio" name="sex" value=""<?php if($row['sex']=="" ) echo" checked='1'" ;?>> 保密</label> | |||
<label><input type="radio" name="sex" value="男"<?php if ($row['sex']=="男" ) echo" checked='1'" ;?>> 男</label> | |||
<label><input type="radio" name="sex" value="女"<?php if ($row['sex']=="女" ) echo" checked='1'" ;?>> 女</label> | |||
<label><input type="radio" name="sex" value=""<?php if ($row['sex']=="" ) echo" checked='1'" ;?>> 保密</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -108,7 +108,7 @@ | |||
$options = "<select name='rank' style='width:160px'>"; | |||
foreach($MemberTypes as $k=>$v) | |||
{ | |||
if($k!=$row['rank']) $options .= "<option value='$k'>$v</option>"; | |||
if ($k!=$row['rank']) $options .= "<option value='$k'>$v</option>"; | |||
else $options .= "<option value='$k' selected>$v</option>"; | |||
} | |||
$options .= "</select>"; | |||
@@ -124,7 +124,7 @@ | |||
<td class="bline">会员天数:</td> | |||
<td class="bline"><input type="text" name="exptime" value="<?php echo $row['exptime']?>" id="exptime" style="width:60px">(如果您要升级会员,会员天数必须大于0)</td> | |||
</tr> | |||
<?php if($mhasDay!=0){ $mhasDay=($mhasDay>0)? $mhasDay : '<span class="text-danger">该会员已经到期</span>';?> | |||
<?php if ($mhasDay!=0){ $mhasDay=($mhasDay>0)? $mhasDay : '<span class="text-danger">该会员已经到期</span>';?> | |||
<tr> | |||
<td class="bline">会员剩余天数:</td> | |||
<td class="bline"><?php echo $mhasDay;?></td> | |||
@@ -144,7 +144,7 @@ | |||
<?php | |||
foreach($staArr as $k=>$v) | |||
{ | |||
if($row['spacesta']==$k) echo "<option value='$k' selected>$v</option>"; | |||
if ($row['spacesta']==$k) echo "<option value='$k' selected>$v</option>"; | |||
else echo "<option value='$k'>$v</option>"; | |||
} | |||
?> | |||
@@ -12,7 +12,7 @@ | |||
function ShowHideField(cbox,vid,nid) | |||
{ | |||
var cboxobj = document.getElementById(cbox); | |||
if(cboxobj.checked) | |||
if (cboxobj.checked) | |||
{ | |||
document.getElementById(nid).style.display = 'block'; | |||
document.getElementById(vid).style.display = 'none'; | |||
@@ -24,7 +24,7 @@ | |||
function ShowHideMb(rbox1,nid) | |||
{ | |||
var rboxobj = document.getElementById(rbox1); | |||
if(rboxobj.checked) | |||
if (rboxobj.checked) | |||
{ | |||
document.getElementById(nid).style.display = 'none'; | |||
} else { | |||
@@ -56,10 +56,10 @@ | |||
<tr> | |||
<td>封装类型:</td> | |||
<td> | |||
<label><input type="radio" name="moduletype" id="moduletype1" value="soft" <?php if($moduletype=='soft') echo "checked='1'";?>> 模块</label> | |||
<label><input type="radio" name="moduletype" id="moduletype2" value="templets" <?php if($moduletype=='templets') echo "checked='1'";?>> 模板</label> | |||
<label><input type="radio" name="moduletype" id="moduletype3" value="plus" <?php if($moduletype=='plus') echo "checked='1'";?>> 小插件</label> | |||
<label><input type="radio" name="moduletype" id="moduletype4" value="patch" <?php if($moduletype=='patch') echo "checked='1'";?>> 补丁</label> | |||
<label><input type="radio" name="moduletype" id="moduletype1" value="soft" <?php if ($moduletype=='soft') echo "checked='1'";?>> 模块</label> | |||
<label><input type="radio" name="moduletype" id="moduletype2" value="templets" <?php if ($moduletype=='templets') echo "checked='1'";?>> 模板</label> | |||
<label><input type="radio" name="moduletype" id="moduletype3" value="plus" <?php if ($moduletype=='plus') echo "checked='1'";?>> 小插件</label> | |||
<label><input type="radio" name="moduletype" id="moduletype4" value="patch" <?php if ($moduletype=='patch') echo "checked='1'";?>> 补丁</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -76,8 +76,8 @@ | |||
<tr> | |||
<td>是否涉及会员系统:</td> | |||
<td> | |||
<label><input type="radio" name="ismember" id="ismember1" value="1" onclick="ShowHideMb('ismember0','rboxct')" <?php if($ismember=='1') echo "checked='1'";?>> 涉及</label> | |||
<label><input type="radio" name="ismember" id="ismember0" value="0" onclick="ShowHideMb('ismember0','rboxct')" <?php if($ismember=='0') echo "checked='1'";?>> 不涉及</label> | |||
<label><input type="radio" name="ismember" id="ismember1" value="1" onclick="ShowHideMb('ismember0','rboxct')" <?php if ($ismember=='1') echo "checked='1'";?>> 涉及</label> | |||
<label><input type="radio" name="ismember" id="ismember0" value="0" onclick="ShowHideMb('ismember0','rboxct')" <?php if ($ismember=='0') echo "checked='1'";?>> 不涉及</label> | |||
<div id="rboxct" style="display:<?php echo ($ismember=='0' ? 'none' : 'block');?>"> | |||
导航使用名称:<input type="text" name="indexname" id="indexname" style="width:160px" value="<?php echo $indexname;?>"><br> | |||
导航使用网址:<input type="text" name="indexurl" id="indexurl" style="width:160px" value="<?php echo $indexurl;?>">(用相对于会员中心的网址,如:../ask) | |||
@@ -108,9 +108,9 @@ | |||
<tr> | |||
<td>程序安装:</td> | |||
<td> | |||
<label><input type="checkbox" name="autosetup" id="autosetup" value="1" onclick="ShowHideField('autosetup','autosetupinput','autosetupct')"<?php if(isset($autosetup) && $autosetup==1) echo "checked='1'";?>> 自动生成(由系统自动处理安装)</label><br> | |||
<div style="display:<?php if(!isset($autosetup) || $autosetup==0) echo 'block'; else echo 'none';?>" id="autosetupinput"><input name="setup" type="file" id="setup" style="width:360px"></div> | |||
<div style="margin:5px 0px 5px 5px;display:<?php if(isset($autosetup) && $autosetup==1) echo 'block'; else echo 'none';?>" id="autosetupct"> | |||
<label><input type="checkbox" name="autosetup" id="autosetup" value="1" onclick="ShowHideField('autosetup','autosetupinput','autosetupct')"<?php if (isset($autosetup) && $autosetup==1) echo "checked='1'";?>> 自动生成(由系统自动处理安装)</label><br> | |||
<div style="display:<?php if (!isset($autosetup) || $autosetup==0) echo 'block'; else echo 'none';?>" id="autosetupinput"><input name="setup" type="file" id="setup" style="width:360px"></div> | |||
<div style="margin:5px 0px 5px 5px;display:<?php if (isset($autosetup) && $autosetup==1) echo 'block'; else echo 'none';?>" id="autosetupct"> | |||
<table width="100%" cellpadding="5" cellspacing="1"> | |||
<tr> | |||
<td bgcolor="#fbfce2"> | |||
@@ -129,10 +129,10 @@ | |||
<tr> | |||
<td>删除程序:</td> | |||
<td> | |||
<label><input type="checkbox" name="autodel" id="autodel" value="1" onclick="ShowHideField('autodel','autodelinput','autodelct')" <?php if(isset($autodel) && $autodel==1) echo "checked='1'";?>> 自动生成(由系统自动处理卸载)</label> | |||
<label><input type="checkbox" name="autodel" id="autodel" value="1" onclick="ShowHideField('autodel','autodelinput','autodelct')" <?php if (isset($autodel) && $autodel==1) echo "checked='1'";?>> 自动生成(由系统自动处理卸载)</label> | |||
<br> | |||
<div style="display:<?php if(!isset($autodel) || $autodel==0) echo 'block'; else echo 'none';?>" id="autodelinput"><input name="uninstall" type="file" id="uninstall" style="width:360px"></div> | |||
<div style='margin:5px 0px 5px 5px;display:<?php if(isset($autodel) && $autodel==1) echo 'block'; else echo 'none';?>' id='autodelct'> | |||
<div style="display:<?php if (!isset($autodel) || $autodel==0) echo 'block'; else echo 'none';?>" id="autodelinput"><input name="uninstall" type="file" id="uninstall" style="width:360px"></div> | |||
<div style='margin:5px 0px 5px 5px;display:<?php if (isset($autodel) && $autodel==1) echo 'block'; else echo 'none';?>' id='autodelct'> | |||
<table width="100%" cellpadding="5" cellspacing="1"> | |||
<tr> | |||
<td bgcolor="#fbfce2">卸载时执行的SQL语句:<br> | |||
@@ -46,7 +46,7 @@ | |||
<td align="center" width="26%">管理</td> | |||
</tr> | |||
<?php | |||
if(count($modules)>0) | |||
if (count($modules)>0) | |||
foreach($modules as $k=>$v) | |||
{ | |||
?> | |||
@@ -55,7 +55,7 @@ | |||
<td><?php echo $v['time'];?></td> | |||
<td> | |||
<?php | |||
if($cfg_soft_lang != $v['lang']) echo "<span class='text-danger'>".$v['lang']."</span>"; | |||
if ($cfg_soft_lang != $v['lang']) echo "<span class='text-danger'>".$v['lang']."</span>"; | |||
else echo $v['lang']; | |||
?> | |||
</td> | |||
@@ -63,8 +63,8 @@ | |||
<td> | |||
<?php | |||
$file = DEDEDATA."/module/{$v['hash']}.xml"; | |||
if(file_exists($file)) { | |||
if(file_exists(DEDEDATA."/module/{$v['hash']}-readme.php")){ | |||
if (file_exists($file)) { | |||
if (file_exists(DEDEDATA."/module/{$v['hash']}-readme.php")){ | |||
echo "已安装 <a href='module_main.php?action=uninstall&hash={$v['hash']}' class='btn btn-outline-danger btn-sm'>卸载</a>"; | |||
} else { | |||
echo "未安装 <a href='module_main.php?action=setup&hash={$v['hash']}' class='btn btn-outline-success btn-sm'>安装</a>"; | |||
@@ -75,7 +75,7 @@ | |||
?> | |||
</td> | |||
<td> | |||
<div id='manager_<?php echo $v['hash'];?>' <?php if(!file_exists(DEDEDATA."/module/{$v['hash']}.xml")) echo 'style="display:none"'?>> | |||
<div id='manager_<?php echo $v['hash'];?>' <?php if (!file_exists(DEDEDATA."/module/{$v['hash']}.xml")) echo 'style="display:none"'?>> | |||
<a class="btn btn-success btn-sm" href="module_main.php?action=view_developoer&hash=<?php echo $v['hash'];?>">开发者</a> | |||
<a class="btn btn-success btn-sm" href="module_main.php?action=view&hash=<?php echo $v['hash'];?>">详情</a> | |||
<a class="btn btn-success btn-sm" href="module_main.php?action=edit&hash=<?php echo $v['hash'];?>">修改</a> | |||
@@ -98,7 +98,7 @@ | |||
</table> | |||
<table width="98%" id='needset' cellpadding="3" cellspacing="1" align="center" class="table maintable" style="display:block"> | |||
<?php | |||
if($row['issystem'] == 1) | |||
if ($row['issystem'] == 1) | |||
{ | |||
?> | |||
<tr> | |||
@@ -111,9 +111,9 @@ | |||
</td> | |||
<td class="border-top-0"> | |||
<?php | |||
if($row['issystem']==0) echo "自动模型"; | |||
else if($row['issystem']==1) echo "系统模型"; | |||
else if($row['issystem']==-1) echo "独立模型"; | |||
if ($row['issystem']==0) echo "自动模型"; | |||
else if ($row['issystem']==1) echo "系统模型"; | |||
else if ($row['issystem']==-1) echo "独立模型"; | |||
?> | |||
</td> | |||
</tr> | |||
@@ -139,8 +139,8 @@ | |||
<tr> | |||
<td>是否支持会员投稿</td> | |||
<td> | |||
<label><input type="radio" name="issend" value="0" <?php if($row['issend']==0) echo "checked='1'";?>> 不支持</label> | |||
<label><input type="radio" name="issend" value="1" <?php if($row['issend']==1) echo "checked='1'";?>> 支持</label> | |||
<label><input type="radio" name="issend" value="0" <?php if ($row['issend']==0) echo "checked='1'";?>> 不支持</label> | |||
<label><input type="radio" name="issend" value="1" <?php if ($row['issend']==1) echo "checked='1'";?>> 支持</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -154,7 +154,7 @@ | |||
$dsql->Execute(); | |||
while($row2 = $dsql->GetObject()) | |||
{ | |||
if($row2->rank==$row['sendrank']) echo "<option value='".$row2->rank."' selected>".$row2->membername."</option>"; | |||
if ($row2->rank==$row['sendrank']) echo "<option value='".$row2->rank."' selected>".$row2->membername."</option>"; | |||
else echo "<option value='".$row2->rank."'>".$row2->membername."</option>"; | |||
} | |||
?> | |||
@@ -172,15 +172,15 @@ | |||
echo "<label><input type='radio' name='usertype' value='".$row3->name."'".($row['usertype']==$row3->name? "checked" : "")."> ".$row3->name."</label> "; | |||
} | |||
?> | |||
<label><input type="radio" name="usertype" value="" <?php if($row['usertype']=='') echo "checked='1'";?>> 不限</label> | |||
<label><input type="radio" name="usertype" value="" <?php if ($row['usertype']=='') echo "checked='1'";?>> 不限</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>会员稿件默认状态</td> | |||
<td> | |||
<label><input type="radio" name="arcsta" value="-1" <?php if($row['arcsta']==-1) echo "checked='1'";?>> 未审核</label> | |||
<label><input type="radio" name="arcsta" value="0" <?php if($row['arcsta']==0) echo "checked='1'";?>> 已审核(自动生成网页)</label> | |||
<label><input type="radio" name="arcsta" value="1" <?php if($row['arcsta']==1) echo "checked='1'";?>> 已审核(仅使用动态文档)</label> | |||
<label><input type="radio" name="arcsta" value="-1" <?php if ($row['arcsta']==-1) echo "checked='1'";?>> 未审核</label> | |||
<label><input type="radio" name="arcsta" value="0" <?php if ($row['arcsta']==0) echo "checked='1'";?>> 已审核(自动生成网页)</label> | |||
<label><input type="radio" name="arcsta" value="1" <?php if ($row['arcsta']==1) echo "checked='1'";?>> 已审核(仅使用动态文档)</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -220,15 +220,15 @@ | |||
<td>投稿是否使用摘要<br> | |||
<span class="style2">如果不使用主表(独立模型)缩略图设置同</span></td> | |||
<td> | |||
<label><input type="radio" name="needdes" value="1" <?php if($row['needdes']==1) echo "checked='1'";?>> 使用</label> | |||
<label><input type="radio" name="needdes" value="0" <?php if($row['needdes']==0) echo "checked='1'";?>> 不使用</label> | |||
<label><input type="radio" name="needdes" value="1" <?php if ($row['needdes']==1) echo "checked='1'";?>> 使用</label> | |||
<label><input type="radio" name="needdes" value="0" <?php if ($row['needdes']==0) echo "checked='1'";?>> 不使用</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>投稿是否使用缩图</td> | |||
<td> | |||
<label><input type="radio" name="needpic" value="1" <?php if($row['needpic']==1) echo "checked='1'";?>> 使用</label> | |||
<label><input type="radio" name="needpic" value="0" <?php if($row['needpic']==0) echo "checked='1'";?>> 不使用</label> | |||
<label><input type="radio" name="needpic" value="1" <?php if ($row['needpic']==1) echo "checked='1'";?>> 使用</label> | |||
<label><input type="radio" name="needpic" value="0" <?php if ($row['needpic']==0) echo "checked='1'";?>> 不使用</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -239,8 +239,8 @@ | |||
<td>投稿具有唯一性<br> | |||
<span class="style2" id="help9">如果投稿是唯一会员只能在这个模型对应的栏目中发布单篇文档,其作用相当于自定义表单</span></td> | |||
<td> | |||
<label><input type="radio" name="onlyone" value="1" <?php if($row['onlyone']==1) echo "checked='1'";?>> 是</label> | |||
<label><input type="radio" name="onlyone" value="0" <?php if($row['onlyone']==0) echo "checked='1'";?>> 不是</label> | |||
<label><input type="radio" name="onlyone" value="1" <?php if ($row['onlyone']==1) echo "checked='1'";?>> 是</label> | |||
<label><input type="radio" name="onlyone" value="0" <?php if ($row['onlyone']==0) echo "checked='1'";?>> 不是</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -260,7 +260,7 @@ | |||
<td>操作</td> | |||
</tr> | |||
<?php | |||
if($row['issystem']==-1) | |||
if ($row['issystem']==-1) | |||
{ | |||
?> | |||
<tr> | |||
@@ -283,7 +283,7 @@ | |||
$dtp = new DedeTagParse(); | |||
$dtp->SetNameSpace("field","<",">"); | |||
$dtp->LoadSource($fieldset); | |||
if(is_array($dtp->CTags)){ | |||
if (is_array($dtp->CTags)){ | |||
foreach($dtp->CTags as $ctag) | |||
{ | |||
?> | |||
@@ -291,7 +291,7 @@ | |||
<td> | |||
<?php | |||
$itname = $ctag->GetAtt('itemname'); | |||
if($itname=='') echo "没指定"; | |||
if ($itname=='') echo "没指定"; | |||
else echo $itname; | |||
?> | |||
</td> | |||
@@ -299,14 +299,14 @@ | |||
<td> | |||
<?php | |||
$ft = $ctag->GetAtt('type'); | |||
if(isset($fieldtypes[$ft])) echo $fieldtypes[$ft]; | |||
if (isset($fieldtypes[$ft])) echo $fieldtypes[$ft]; | |||
else echo "系统专用类型"; | |||
?> | |||
</td> | |||
<td> | |||
<?php | |||
$ft = $ctag->GetAtt('autofield'); | |||
if($ft=='' || $ft==0) { | |||
if ($ft=='' || $ft==0) { | |||
echo "固化字段"; | |||
} else { | |||
echo "自动表单"; | |||
@@ -315,11 +315,11 @@ | |||
</td> | |||
<td> | |||
<?php | |||
if($ft==1) | |||
if ($ft==1) | |||
{ | |||
?> | |||
<a href="mychannel_field_edit.php?id=<?php echo $id;?>&fname=<?php echo $ctag->GetTagName();?>&issystem=<?php echo $row['issystem'];?>"><i class="btn btn-sm fa fa-pencil-square-o" title="修改"></i></a> | |||
<?php if($row['issystem']!=1){?> | |||
<?php if ($row['issystem']!=1){?> | |||
<a href="javascript:;" onClick="javascript:DelNote('mychannel_field_edit.php?id=<?php echo $id;?>&fname=<?php echo $ctag->GetTagName();?>&action=delete');"><i class="btn btn-sm fa fa-trash" title="删除"></i></a> | |||
<?php }?> | |||
<?php | |||
@@ -337,9 +337,9 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="30%">模型字段配置(文本模式)<br> | |||
<td width="30%">模型字段配置(文本模式)<br> | |||
修改配置文本可调整字段顺序,但不会修改字段属性</td> | |||
<td width="70%"><textarea name="fieldset" rows="10" id="fieldset"><?php echo stripslashes($row['fieldset']);?></textarea></td> | |||
<td width="70%"><textarea name="fieldset" id="fieldset" class="biz-textarea"><?php echo stripslashes($row['fieldset']);?></textarea></td> | |||
</tr> | |||
</table> | |||
<table width="98%" cellpadding="3" cellspacing="1" align="center" class="table maintable mt-3 mb-3"> | |||
@@ -352,7 +352,7 @@ | |||
</table> | |||
</form> | |||
<?php | |||
if(!empty($openfield)) | |||
if (!empty($openfield)) | |||
{ | |||
echo "<script>ShowItem2();</script>"; | |||
} | |||
@@ -22,7 +22,7 @@ | |||
var enums = document.getElementsByName('dtype'); | |||
for(i=0;i<enums.length;i++) | |||
{ | |||
if(enums[i].checked) dtype = enums[i].value; | |||
if (enums[i].checked) dtype = enums[i].value; | |||
} | |||
var isnull = theform.isnull.value; | |||
var vdefault = theform.vdefault.value; | |||
@@ -34,29 +34,29 @@ | |||
var islist = (theform.islist.checked ? 1 : 0); | |||
var notsend = (theform.notsend.checked ? 1 : 0); | |||
var automake = theform.relation_automake.checked ? 1 : 0; | |||
if(itemname=="") | |||
if (itemname=="") | |||
{ | |||
ShowMsg("表单提示名称不能为空"); | |||
theform.itemname.focus(); | |||
return false; | |||
} | |||
if(fieldname=="") | |||
if (fieldname=="") | |||
{ | |||
ShowMsg("字段名称不能为空"); | |||
theform.fieldname.focus(); | |||
return false; | |||
} | |||
if(notAllow.indexOf(" "+fieldname+" ") >-1 ) | |||
if (notAllow.indexOf(" "+fieldname+" ") >-1 ) | |||
{ | |||
ShowMsg("字段名称不合法,如下字段名已经存在,建议在名称后加上数字以区分:\n"+notAllow); | |||
return false; | |||
} | |||
if((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | |||
if ((dtype=="radio" || dtype=="select" || dtype=="checkbox") && vdefault=="") | |||
{ | |||
ShowMsg("您选择的select或radio、checkbox类型,必须默认值设置选择的项目(用逗号[,]分开)"); | |||
return false; | |||
} | |||
if(spage=="no") spage = ""; | |||
if (spage=="no") spage = ""; | |||
relstr = ""; | |||
if (dtype==="relation") { | |||
relstr = " automake=\""+automake+"\" channel=\""+$("#channeltype").val()+"\""; | |||
@@ -88,7 +88,7 @@ | |||
<td bgcolor="#f8f8f8" colspan="2"> | |||
<table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||
<tr> | |||
<td width="30%"><a href="mychannel_main.php">频道管理</a> > 增加新字段</td> | |||
<td width="30%"><a href="mychannel_main.php">内容模型管理</a> > 增加新字段</td> | |||
<td width="70%" align="right"> | |||
<button type="button" name="ss1" onClick="location='mychannel_edit.php?id=<?php echo $id?>&dopost=edit';" class="btn btn-success btn-sm">当前模型信息</button> | |||
<button type="button" name="ss12" onClick="location='mychannel_main.php';" class="btn btn-success btn-sm">内容模型管理</button> | |||
@@ -171,7 +171,7 @@ | |||
$channelid = 1; | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
if($k==$channelid) { | |||
if ($k==$channelid) { | |||
$nid = $arr['nid']; | |||
echo "<option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>"; | |||
} else { | |||
@@ -186,7 +186,7 @@ | |||
<tr> | |||
<td>默认值:<br> | |||
<span class="style2">如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(用“,”分开,如“男,女,人妖”)</span></td> | |||
<td><textarea name="vdefault" id="vdefault" style="width:70%;height:60px"></textarea></td> | |||
<td><textarea name="vdefault" id="vdefault" class="biz-textarea"></textarea></td> | |||
</tr> | |||
<tr> | |||
<td>最大长度:<br> | |||
@@ -199,7 +199,7 @@ | |||
</tr> | |||
<tr> | |||
<td align="center"></td> | |||
<td><textarea name="vinnertext" cols="45" rows="5" id="vinnertext" style="width:70%;height:120px"></textarea></td> | |||
<td><textarea name="vinnertext" id="vinnertext" class="biz-textarea"></textarea></td> | |||
</tr> | |||
<tr> | |||
<td colspan="2" bgcolor="#f8f8f8" align="center" class="py-2"> | |||
@@ -69,7 +69,7 @@ | |||
<td bgcolor="#f8f8f8" colspan="2"> | |||
<table width="98%" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||
<tr> | |||
<td width="30%"><a href="mychannel_main.php">频道管理</a> > 查看修改字段</td> | |||
<td width="30%"><a href="mychannel_main.php">内容模型管理</a> > 查看修改字段</td> | |||
<td width="70%" align="right"> | |||
<button type="button" name="ss1" class="btn btn-success btn-sm" onClick="location='mychannel_edit.php?id=<?php echo $id?>&dopost=edit';">当前模型信息</button> | |||
<button type="button" name="ss12" onClick="location='mychannel_main.php';" class="btn btn-success btn-sm">内容模型管理</button> | |||
@@ -78,7 +78,7 @@ | |||
</table> | |||
</td> | |||
</tr> | |||
<?php if($row['issystem']==1){?> | |||
<?php if ($row['issystem']==1){?> | |||
<tr> | |||
<td colspan="2"> | |||
<span class="style1">您当前操作的字段属于系统模型字段:修改系统模型有风险,请不要随便改动系统模型的字段相关的属性</span> | |||
@@ -91,9 +91,9 @@ | |||
<td><input type="text" name="itemname" id="itemname" value="<?php echo $ctag->GetAtt('itemname')?>" class="pubinputs"> *(发布内容时显示的项名字)</td> | |||
</tr> | |||
<tr> | |||
<td width="28%">字段名称:<br> | |||
<td width="30%">字段名称:<br> | |||
<span class="style2">只能用英文字母或数字,数据表的真实字段名</span></td> | |||
<td width="72%" style="table-layout:fixed;word-break:break-all"><?php echo $fname?></td> | |||
<td width="70%" style="table-layout:fixed;word-break:break-all"><?php echo $fname?></td> | |||
</tr> | |||
<tr> | |||
<td>字段类型:</td> | |||
@@ -114,7 +114,7 @@ | |||
<select name="dtype" id="type" style="width:260px"> | |||
<?php | |||
$dtype = $ctag->GetAtt('type'); | |||
if($dtype!='' && isset($fieldtypes[$dtype])) | |||
if ($dtype!='' && isset($fieldtypes[$dtype])) | |||
{ | |||
echo "<option value='{$dtype}'>{$fieldtypes[$dtype]}</option>"; | |||
$canchange = true; | |||
@@ -122,7 +122,7 @@ | |||
echo "<option value='{$dtype}'>系统专用类型</option>"; | |||
$canchange = false; | |||
} | |||
if($canchange) | |||
if ($canchange) | |||
{ | |||
?> | |||
<option value="text">单行文本(varchar)</option> | |||
@@ -156,7 +156,7 @@ | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
if($k==$channelid) { | |||
if ($k==$channelid) { | |||
$nid = $arr['nid']; | |||
echo "<option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>"; | |||
} else { | |||
@@ -173,19 +173,19 @@ | |||
<span class="style2">如果内容需要分页符,不论何种内容,都可以用#P#副标题#e#作为分页符号实现内容分页,但一个模型里仅允许一个这样的字段!</span></td> | |||
<td> | |||
<input name="isnull" type="hidden" value="1"> | |||
<label><input type="radio" name="spage" value="split" <?php if($ctag->GetAtt('page')=='split') echo "checked='1'";?>> 是</label> | |||
<label><input type="radio" name="spage" value="no" <?php if($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo "checked='1'";?>> 否</label> | |||
<label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo "checked='1'";?>> 是</label> | |||
<label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo "checked='1'";?>> 否</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>默认值:<br> | |||
<span class="style2">如果定义数据类型为select、radio、checkbox时,此处填写被选择的项目(用“,”分开,如“男,女,人妖”)如果为联动选框,这里填写联动选框项目名称</span></td> | |||
<td><textarea name="vdefault" id="vdefault" style="width:70%;height:60px"><?php echo $ctag->GetAtt('default');?></textarea></td> | |||
<td><textarea name="vdefault" id="vdefault" class="biz-textarea"><?php echo $ctag->GetAtt('default');?></textarea></td> | |||
</tr> | |||
<tr> | |||
<td>最大长度:<br> | |||
<span class="style2"> 文本数据必须填写,大于255为text类型 </span></td> | |||
<td><input type="text" name="maxlength" id="maxlength" value="<?php echo $ctag->GetAtt('maxlength')?>" style="width:80px;height:24px;padding-top:3px;"></td> | |||
<td><input type="text" name="maxlength" id="maxlength" value="<?php echo $ctag->GetAtt('maxlength')?>" style="width:80px"></td> | |||
</tr> | |||
<tr> | |||
<td>自定义表单HTML:</td> | |||
@@ -193,7 +193,7 @@ | |||
</tr> | |||
<tr> | |||
<td align="center"><br> </td> | |||
<td><textarea name="vinnertext" cols="45" rows="5" id="vinnertext" style="width:70%;height:120px"><?php echo $ctag->GetInnerText();?></textarea></td> | |||
<td><textarea name="vinnertext" id="vinnertext" class="biz-textarea"><?php echo $ctag->GetInnerText();?></textarea></td> | |||
</tr> | |||
<tr> | |||
<td colspan="2" bgcolor="#f8f8f8" align="center" class="py-2"> | |||
@@ -41,7 +41,7 @@ | |||
<td><?php echo $channel['typename']?></td> | |||
</tr> | |||
<?php | |||
if($channel['issystem'] >= 0) { | |||
if ($channel['issystem'] >= 0) { | |||
?> | |||
<tr> | |||
<td>主表可供自定义搜索的字段<br> | |||
@@ -39,8 +39,8 @@ | |||
<tr> | |||
<td align="center">时间限制:</td> | |||
<td colspan="2"> | |||
<input name="timeset" type="radio" value="0"<?php if($row['timeset']==0) echo "checked";?>> 永不过期 | |||
<input type="radio" name="timeset" value="1" <?php if($row['timeset']==1) echo "checked";?>> 在设内时间内有效 | |||
<input name="timeset" type="radio" value="0"<?php if ($row['timeset']==0) echo "checked";?>> 永不过期 | |||
<input type="radio" name="timeset" value="1" <?php if ($row['timeset']==1) echo "checked";?>> 在设内时间内有效 | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -92,7 +92,7 @@ | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') | |||
if ($trow->att=='j') | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label>"; | |||
else | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label>"; | |||
@@ -176,7 +176,7 @@ | |||
</span> | |||
<i class='btn btn-sm fa fa-search' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid;?>, 'typeid')" title='快捷选择'></i> | |||
<?php | |||
if($cfg_need_typeid2=='Y') | |||
if ($cfg_need_typeid2=='Y') | |||
{ | |||
echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>选择副栏目</a>"; | |||
} | |||
@@ -212,7 +212,7 @@ | |||
<button type="button" name="Submit" class="btn btn-success btn-sm" onClick="SelectKeywords('form1.keywords');">浏览</button> | |||
</td> | |||
<td> | |||
<label><input type="checkbox" name="autokey" onClick="ShowHide('keywords');" ; id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked';?>> 自动获取,手动填写用","分开</label> | |||
<label><input type="checkbox" name="autokey" onClick="ShowHide('keywords');" ; id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo ' checked';?>> 自动获取,手动填写用","分开</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -329,8 +329,8 @@ | |||
$dsql->Execute(); | |||
while($row = $dsql->GetArray()) | |||
{ | |||
if($row['rank']==0) $row['membername'] = "不限会员"; | |||
if($row['rank'] == $softconfig['dfrank']) echo "<option value='{$row['rank']}' selected>{$row['membername']}</option>"; | |||
if ($row['rank']==0) $row['membername'] = "不限会员"; | |||
if ($row['rank'] == $softconfig['dfrank']) echo "<option value='{$row['rank']}' selected>{$row['membername']}</option>"; | |||
else echo "<option value='{$row['rank']}'>{$row['membername']}</option>"; | |||
} | |||
?> | |||
@@ -360,7 +360,7 @@ | |||
</td> | |||
</tr> | |||
<?php | |||
if($softconfig['moresitedo'] == 0 && trim($softconfig['sites']) != '') | |||
if ($softconfig['moresitedo'] == 0 && trim($softconfig['sites']) != '') | |||
{ | |||
?> | |||
<tr> | |||
@@ -371,7 +371,7 @@ | |||
foreach($sites as $site) | |||
{ | |||
$site = trim($site); | |||
if(empty($site)) continue; | |||
if (empty($site)) continue; | |||
list($siteurl, $sitename) = explode('|', $site); | |||
$siteurl = trim($siteurl); | |||
$sitename = trim($sitename); | |||
@@ -414,10 +414,10 @@ | |||
<tr> | |||
<td width="90"> 附加选项:</td> | |||
<td> | |||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo ' checked';?>> 下载远程图片和资源</label> | |||
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if($cfg_arc_dellink=='Y') echo ' checked';?>> 删除非站内链接</label> | |||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo ' checked';?>> 下载远程图片和资源</label> | |||
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo ' checked';?>> 删除非站内链接</label> | |||
<a href="javascript:OpenMyWin('article_allowurl_edit.php');" class="btn btn-success btn-sm">设置</a> | |||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo ' checked';?>> 提取第一个图片为缩略图</label> | |||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo ' checked';?>> 提取第一个图片为缩略图</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -432,8 +432,8 @@ | |||
<tr> | |||
<td width="90" width="260"> 评论选项:</td> | |||
<td width="260"> | |||
<label><input type="radio" name="notpost" value="0" <?php if($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||
</td> | |||
<td width="90">发布选项:</td> | |||
<td> | |||
@@ -29,36 +29,36 @@ | |||
<tr> | |||
<td width="260">链接显示方式:</td> | |||
<td> | |||
<label><input type="radio" name="downtype" value="0" <?php if($row['downtype']==0) echo " checked='checked' ";?>> 直接显示地址列表</label> | |||
<label><input type="radio" name="downtype" value="1" <?php if($row['downtype']==1) echo " checked='checked' ";?>> 要求进入下载地址列表页</label> | |||
<label><input type="radio" name="downtype" value="0" <?php if ($row['downtype']==0) echo " checked='checked' ";?>> 直接显示地址列表</label> | |||
<label><input type="radio" name="downtype" value="1" <?php if ($row['downtype']==1) echo " checked='checked' ";?>> 要求进入下载地址列表页</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>附件下载方式:</td> | |||
<td> | |||
<label><input type="radio" name="gotojump" value="0" <?php if($row['gotojump']==0) echo " checked='checked' ";?>> 链接到真实软件地址</label> | |||
<label><input type="radio" name="gotojump" value="1" <?php if($row['gotojump']==1) echo " checked='checked' ";?>> 链接到跳转页面</label> | |||
<label><input type="radio" name="gotojump" value="0" <?php if ($row['gotojump']==0) echo " checked='checked' ";?>> 链接到真实软件地址</label> | |||
<label><input type="radio" name="gotojump" value="1" <?php if ($row['gotojump']==1) echo " checked='checked' ";?>> 链接到跳转页面</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>是否启用镜像站点:</td> | |||
<td> | |||
<label><input type="radio" name="ismoresite" value="1" <?php if($row['ismoresite']==1) echo " checked='checked' ";?>> 启用</label> | |||
<label><input type="radio" name="ismoresite" value="0" <?php if($row['ismoresite']==0) echo " checked='checked' ";?>> 不启用</label> | |||
<label><input type="radio" name="ismoresite" value="1" <?php if ($row['ismoresite']==1) echo " checked='checked' ";?>> 启用</label> | |||
<label><input type="radio" name="ismoresite" value="0" <?php if ($row['ismoresite']==0) echo " checked='checked' ";?>> 不启用</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>启用镜像站点后是否保留本地下载:</td> | |||
<td> | |||
<label><input type="radio" name="islocal" value="1" <?php if($row['islocal']==1) echo " checked='checked' ";?>> 保留</label> | |||
<label><input type="radio" name="islocal" value="0" <?php if($row['islocal']==0) echo " checked='checked' ";?>> 不保留</label> | |||
<label><input type="radio" name="islocal" value="1" <?php if ($row['islocal']==1) echo " checked='checked' ";?>> 保留</label> | |||
<label><input type="radio" name="islocal" value="0" <?php if ($row['islocal']==0) echo " checked='checked' ";?>> 不保留</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>镜像处理方式:</td> | |||
<td> | |||
<label><input type="radio" name="moresitedo" value="1" <?php if($row['moresitedo']==1) echo " checked='checked' ";?>> 根据本地地址和服务器列表自动生成</label> | |||
<label><input type="radio" name="moresitedo" value="0" <?php if($row['moresitedo']==0) echo " checked='checked' ";?>> 发布时按服务器生成列表由我手工填写</label> | |||
<label><input type="radio" name="moresitedo" value="1" <?php if ($row['moresitedo']==1) echo " checked='checked' ";?>> 根据本地地址和服务器列表自动生成</label> | |||
<label><input type="radio" name="moresitedo" value="0" <?php if ($row['moresitedo']==0) echo " checked='checked' ";?>> 发布时按服务器生成列表由我手工填写</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -74,8 +74,8 @@ | |||
$dsql->Execute(); | |||
while($nrow = $dsql->GetArray()) | |||
{ | |||
if($nrow['rank']==0) $nrow['membername'] = "开放下载"; | |||
if($nrow['rank']==$row['dfrank']) echo "<option value='{$nrow['rank']}' selected>{$nrow['membername']}</option>"; | |||
if ($nrow['rank']==0) $nrow['membername'] = "开放下载"; | |||
if ($nrow['rank']==$row['dfrank']) echo "<option value='{$nrow['rank']}' selected>{$nrow['membername']}</option>"; | |||
else echo "<option value='{$nrow['rank']}'>{$nrow['membername']}</option>"; | |||
} | |||
?> | |||
@@ -89,8 +89,8 @@ | |||
<tr> | |||
<td>参数限制方式:</td> | |||
<td> | |||
<label><input type="radio" name="argrange" value="0" <?php if($row['argrange']==0) echo " checked='checked' ";?>> 允许发布时重新选择权限</label> | |||
<label><input type="radio" name="argrange" value="2" <?php if($row['argrange']==1) echo " checked='checked' ";?>> 所有软件均使用此权限</label> | |||
<label><input type="radio" name="argrange" value="0" <?php if ($row['argrange']==0) echo " checked='checked' ";?>> 允许发布时重新选择权限</label> | |||
<label><input type="radio" name="argrange" value="2" <?php if ($row['argrange']==1) echo " checked='checked' ";?>> 所有软件均使用此权限</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -88,9 +88,9 @@ | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | |||
if ($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | |||
else $jumpclick = ''; | |||
if(preg_match("#".$trow->att."#",$arcRow['flag'])) | |||
if (preg_match("#".$trow->att."#",$arcRow['flag'])) | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label>"; | |||
else | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label>"; | |||
@@ -135,7 +135,7 @@ | |||
<button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||
<button type="button" id="btnClearAll" class="btn btn-success btn-smete">清空</button> | |||
</td> | |||
<td align="center"><img src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td> | |||
<td align="center"><img src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -167,7 +167,7 @@ | |||
<?php | |||
$typeOptions = GetOptionList($arcRow["typeid"],$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:160px'>"; | |||
if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择主分类</option>"; | |||
if ($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择主分类</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
@@ -179,7 +179,7 @@ | |||
</table> | |||
</td> | |||
</tr> | |||
<?php if($cfg_need_typeid2=='Y') {?> | |||
<?php if ($cfg_need_typeid2=='Y') {?> | |||
<tr> | |||
<td class="bline"> | |||
<table width="900" cellspacing="0" cellpadding="0"> | |||
@@ -222,7 +222,7 @@ | |||
<td width="170"> | |||
<select name="filetype" id="filetype" style="width:160px"> | |||
<?php | |||
if($addRow["filetype"]!="") echo "<option value=\"".$addRow["filetype"]."\">".$addRow['filetype']."</option>"; | |||
if ($addRow["filetype"]!="") echo "<option value=\"".$addRow["filetype"]."\">".$addRow['filetype']."</option>"; | |||
?> | |||
<option value=".exe">.exe</option> | |||
<option value=".zip">.zip</option> | |||
@@ -235,7 +235,7 @@ | |||
<td width="170"> | |||
<select name="softrank" id="softrank" style="width:160px"> | |||
<?php | |||
if($addRow["softrank"]!="") echo "<option value=\"".$addRow["softrank"]."\">".$addRow['softrank']."星</option>"; | |||
if ($addRow["softrank"]!="") echo "<option value=\"".$addRow["softrank"]."\">".$addRow['softrank']."星</option>"; | |||
?> | |||
<option value="1">一星</option> | |||
<option value="2">二星</option> | |||
@@ -248,7 +248,7 @@ | |||
<td width="170"> | |||
<select name="softtype" id="softtype" style="width:160px"> | |||
<?php | |||
if($addRow["softtype"]!="") echo "<option value=\"".$addRow["softtype"]."\">".$addRow['softtype']."</option>"; | |||
if ($addRow["softtype"]!="") echo "<option value=\"".$addRow["softtype"]."\">".$addRow['softtype']."</option>"; | |||
?> | |||
<option value="国产软件">国产软件</option> | |||
<option value="国外软件">国外软件</option> | |||
@@ -259,7 +259,7 @@ | |||
<td width="170"> | |||
<select name="language" id="language" style="width:160px"> | |||
<?php | |||
if($addRow["language"]!="") echo "<option value=\"".$addRow["language"]."\">".$addRow['language']."</option>"; | |||
if ($addRow["language"]!="") echo "<option value=\"".$addRow["language"]."\">".$addRow['language']."</option>"; | |||
?> | |||
<option value="简体中文">简体中文</option> | |||
<option value="英文软件">英文软件</option> | |||
@@ -271,7 +271,7 @@ | |||
<td width="170"> | |||
<select name="accredit" id="accredit" style="width:160px"> | |||
<?php | |||
if($addRow["accredit"]!="") echo "<option value=\"".$addRow["accredit"]."\">".$addRow['accredit']."</option>"; | |||
if ($addRow["accredit"]!="") echo "<option value=\"".$addRow["accredit"]."\">".$addRow['accredit']."</option>"; | |||
?> | |||
<option value="共享软件">共享软件</option> | |||
<option value="免费软件">免费软件</option> | |||
@@ -321,8 +321,8 @@ | |||
$dsql->Execute(); | |||
while($row = $dsql->GetArray()) | |||
{ | |||
if($row['rank']==0) $row['membername'] = "不限会员"; | |||
if($row['rank'] == $daccess) echo "<option value='{$row['rank']}' selected>{$row['membername']}</option>"; | |||
if ($row['rank']==0) $row['membername'] = "不限会员"; | |||
if ($row['rank'] == $daccess) echo "<option value='{$row['rank']}' selected>{$row['membername']}</option>"; | |||
else echo "<option value='{$row['rank']}'>{$row['membername']}</option>"; | |||
} | |||
?> | |||
@@ -366,8 +366,8 @@ | |||
<tr> | |||
<td width="90"> 附加选项:</td> | |||
<td> | |||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo 'checked="1"';?>> 下载远程图片和资源</label> | |||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo 'checked="1"';?>> 提取第一个图片为缩略图</label> | |||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked="1"';?>> 下载远程图片和资源</label> | |||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked="1"';?>> 提取第一个图片为缩略图</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -382,13 +382,13 @@ | |||
<tr> | |||
<td width="90" width="260"> 评论选项:</td> | |||
<td width="260"> | |||
<label><input type='radio' name='notpost' value='0' <?php if($arcRow['notpost']==0) echo "checked='1'";?>> 允许评论</label> | |||
<label><input type='radio' name='notpost' value='1' <?php if($arcRow['notpost']==1) echo "checked='1'";?>> 禁止评论</label> | |||
<label><input type='radio' name='notpost' value='0' <?php if ($arcRow['notpost']==0) echo "checked='1'";?>> 允许评论</label> | |||
<label><input type='radio' name='notpost' value='1' <?php if ($arcRow['notpost']==1) echo "checked='1'";?>> 禁止评论</label> | |||
</td> | |||
<td width="90">发布选项:</td> | |||
<td> | |||
<label><input type="radio" name="ishtml" value="1" <?php if($arcRow["ismake"]!=-1) echo "checked";?>> 生成网页</label> | |||
<label><input type="radio" name="ishtml" value="0" <?php if($arcRow["ismake"]==-1) echo "checked";?>> 仅动态浏览</label> | |||
<label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo "checked";?>> 生成网页</label> | |||
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo "checked";?>> 仅动态浏览</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -404,7 +404,7 @@ | |||
<?php | |||
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]); | |||
echo "<option value='0'>正常排序</option>"; | |||
if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>"; | |||
if ($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>"; | |||
?> | |||
<option value="7">置顶一周</option> | |||
<option value="30">置顶一个月</option> | |||
@@ -116,7 +116,7 @@ | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att!='j') | |||
if ($trow->att!='j') | |||
{ | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label>"; | |||
} | |||
@@ -205,7 +205,7 @@ | |||
<input type="text" name="keywords" id="keywords" value="" style="width:360px"> | |||
<button type="button" name="Submit" class="btn btn-success btn-sm" onClick="SelectKeywords('form1.keywords');">浏览</button> | |||
</td> | |||
<td><label><input type="checkbox" name="autokey" onClick="ShowHide('keywords');" ; id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo 'checked="1"';?> />自动获取,手动填写用","分开</label></td> | |||
<td><label><input type="checkbox" name="autokey" onClick="ShowHide('keywords');" ; id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked="1"';?> />自动获取,手动填写用","分开</label></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -226,8 +226,8 @@ | |||
<tr> | |||
<td width="90" width="260"> 评论选项:</td> | |||
<td width="260"> | |||
<label><input type="radio" name="notpost" value="0" <?php if($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||
</td> | |||
<td width="90">发布选项:</td> | |||
<td> | |||
@@ -289,7 +289,7 @@ | |||
$nodename = $nodeid = ''; | |||
for($i=1;$i<=$cfg_specnote;$i++) | |||
{ | |||
if($i==1) | |||
if ($i==1) | |||
{ | |||
$nodename = '默认节点'; | |||
$nodeid = 'default'; | |||
@@ -114,8 +114,8 @@ | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') continue; | |||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | |||
if ($trow->att=='j') continue; | |||
if (preg_match("#".$trow->att."#", $arcRow['flag'])) | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked'> {$trow->attname}[{$trow->att}]</label>"; | |||
else | |||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label>"; | |||
@@ -138,7 +138,7 @@ | |||
<button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | |||
<button type="button" id="btnClearAll" class="btn btn-success btn-smete">清空</button> | |||
</td> | |||
<td align="center"><img id="litPic" src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td> | |||
<td align="center"><img id="litPic" src="<?php if ($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg';?>" id="litPic" class="thumbnail"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -163,7 +163,7 @@ | |||
<?php | |||
$subday = SubDay($arcRow["sortrank"],$arcRow["senddate"]); | |||
echo "<option value='0'>正常排序</option>"; | |||
if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>"; | |||
if ($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>"; | |||
?> | |||
<option value="7">置顶一周</option> | |||
<option value="30">置顶一个月</option> | |||
@@ -190,7 +190,7 @@ | |||
<?php | |||
$typeOptions = GetOptionList($arcRow["typeid"],$cuserLogin->getUserChannel(),0); | |||
echo "<select name='typeid' style='width:160px'>"; | |||
if($arcRow["typeid"]=="0") echo "<option value='0' selected='1'>请选择主分类</option>"; | |||
if ($arcRow["typeid"]=="0") echo "<option value='0' selected='1'>请选择主分类</option>"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
@@ -226,12 +226,12 @@ | |||
<tr> | |||
<td width="90" width="260"> 评论选项:</td> | |||
<td width="260"> | |||
<label><input type="radio" name="notpost" value="0" <?php if($arcRow['notpost']==0) echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if($arcRow['notpost']==1) echo "checked='1'";?>> 禁止评论</label> | |||
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo "checked='1'";?>> 允许评论</label> | |||
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo "checked='1'";?>> 禁止评论</label> | |||
<td width="90">发布选项:</td> | |||
<td> | |||
<label><input type="radio" name="ishtml" value="1" <?php if($arcRow["ismake"]!=-1) echo "checked='1'";?>> 生成网页</label> | |||
<label><input type="radio" name="ishtml" value="0" <?php if($arcRow["ismake"]==-1) echo "checked='1'";?>> 仅动态浏览</label> | |||
<label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo "checked='1'";?>> 生成网页</label> | |||
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo "checked='1'";?>> 仅动态浏览</label> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -300,10 +300,10 @@ | |||
$i = 1; | |||
$dtp = new DedeTagParse(); | |||
$dtp->LoadSource($addRow["note"]); | |||
if(is_array($dtp->CTags)){ | |||
if (is_array($dtp->CTags)){ | |||
foreach($dtp->CTags as $tagid=>$ctag) | |||
{ | |||
if($ctag->GetName()!="specnote") continue; | |||
if ($ctag->GetName()!="specnote") continue; | |||
$notename = $ctag->GetAtt('name'); | |||
$col = $ctag->GetAtt('col'); | |||
$idlist = $ctag->GetAtt('idlist'); | |||
@@ -313,14 +313,14 @@ | |||
$infolen = $ctag->GetAtt('infolen'); | |||
$temp = trim($ctag->GetInnerText()); | |||
$noteid = $ctag->GetAtt('noteid'); | |||
if(empty($noteid)) $noteid = $i; | |||
if (empty($noteid)) $noteid = $i; | |||
$isauto = $ctag->GetAtt('isauto'); | |||
if(empty($isauto)) $isauto = 0; | |||
if (empty($isauto)) $isauto = 0; | |||
$keywords = $ctag->GetAtt('keywords'); | |||
$typeid = $ctag->GetAtt('typeid'); | |||
if(empty($typeid)) $typeid = 0; | |||
if (empty($typeid)) $typeid = 0; | |||
$rownum = $ctag->GetAtt('rownum'); | |||
if(empty($rownum)) $rownum = 40; | |||
if (empty($rownum)) $rownum = 40; | |||
?> | |||
<tr bgcolor="#fbfce2"> | |||
<td width="260">节点<?php echo $i?>名称:</td> | |||
@@ -342,8 +342,8 @@ | |||
<tr> | |||
<td>文档来源:</td> | |||
<td> | |||
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" <?php if($isauto==0) echo "checked";?>> 按文档列表</label> | |||
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1" <?php if($isauto==1) echo "checked";?>> 自动获取文档</label> | |||
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" <?php if ($isauto==0) echo "checked";?>> 按文档列表</label> | |||
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1" <?php if ($isauto==1) echo "checked";?>> 自动获取文档</label> | |||
<label>关键词:<input type="text" name="keywords<?php echo $i?>" value="<?php echo $keywords?>" id="keywords<?php echo $i?>" value="" size="16">(逗号分开)</label> | |||
<label>栏目id:<input type="text" name="typeid<?php echo $i?>" value="<?php echo $typeid?>" id="typeid<?php echo $i?>" value="0" size="4"></label> | |||
</td> | |||