@@ -24,7 +24,7 @@ USAGE: | |||
php ./dedebiz command [arguments...] | |||
COMMANDS: | |||
serv,s 运行DedeBIZ开发服务 | |||
make,m 生成HTML | |||
make,m 更新网页 | |||
update,u 更新到最新系统 | |||
help,h Shows 帮助 | |||
quick,q 快速开始一个开发环境 | |||
@@ -109,7 +109,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||
DedeCli::showProgress(ceil(($i / $total) * 100), 100, $i, $total); | |||
$i++; | |||
} | |||
DedeCli::write("成功生成内容html"); | |||
DedeCli::write("成功更新文档页"); | |||
$queryTime = ExecTime() - $t1; | |||
DedeCli::write($queryTime); | |||
exit; | |||
@@ -129,7 +129,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||
$lv = new SgListView($row->id); | |||
} | |||
$lv->CountRecord(); | |||
DedeCli::write("开始生成列表html[id:{$row->id}]"); | |||
DedeCli::write("开始更新列表页[id:{$row->id}]"); | |||
$lv->MakeHtml('', '', 0); | |||
} | |||
exit; | |||
@@ -153,7 +153,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||
$GLOBALS['_arclistEnv'] = 'index'; | |||
$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $templet); | |||
$pv->SaveToHtml($homeFile); | |||
DedeCli::write("成功生成首页html"); | |||
DedeCli::write("成功更新首页"); | |||
} else if (count($argv) > 2 && ($argv[2] == "auto" || $argv[2] == "o")) { | |||
//自动生成 | |||
function OptimizeData($dsql) | |||
@@ -190,7 +190,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||
} else { | |||
if (file_exists($homeFile)) @unlink($homeFile); | |||
} | |||
DedeCli::write("成功生成首页html"); | |||
DedeCli::write("成功更新首页"); | |||
//2.生成栏目 | |||
$query = "SELECT DISTINCT typeid From `#@__arctiny` WHERE senddate >=" . $start . " AND arcrank>-1"; | |||
$dsql->SetQuery($query); | |||
@@ -220,10 +220,10 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||
$lv = new SgListView($tt); | |||
} | |||
$lv->CountRecord(); | |||
DedeCli::write("开始生成列表html[id:{$tt}]"); | |||
DedeCli::write("开始更新列表页[id:{$tt}]"); | |||
$lv->MakeHtml('', '', 0); | |||
} | |||
DedeCli::write("成功生成列表html"); | |||
DedeCli::write("成功更新列表页"); | |||
} | |||
//生成文档 | |||
$tt = $dsql->GetOne("SELECT COUNT(id) as dd FROM `#@__arctiny` WHERE senddate >=" . $start . " AND arcrank>-1"); | |||
@@ -237,7 +237,7 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||
DedeCli::showProgress(ceil(($i / $total) * 100), 100); | |||
$i++; | |||
} | |||
DedeCli::write("成功生成html"); | |||
DedeCli::write("成功更新网页"); | |||
//优化数据 | |||
OptimizeData($dsql); | |||
DedeCli::write("成功优化数据"); | |||
@@ -246,16 +246,16 @@ if (count($argv) > 1 && ($argv[1] == "serv" || $argv[1] == "s")) { | |||
USAGE: | |||
php ./dedebiz make action [arguments...] | |||
ACTIONS: | |||
index,i 生成首页html | |||
--position 首页html位置,默认: ../index.html(相对system目录) | |||
arc,a 生成文档html | |||
index,i 更新首页 | |||
--position 首页位置,默认: ../index.html(相对system目录) | |||
arc,a 更新文档页 | |||
--typeid 栏目id | |||
--aid 文档id | |||
list,l 生成列表html | |||
list,l 更新列表页 | |||
--typeid 栏目id | |||
auto,o 自动生成 | |||
auto,o 自动更新 | |||
--start 开始时间(format:2012-03-12) | |||
tdata 生成测试数据 | |||
tdata 更新测试数据 | |||
WEBSITE: | |||
https://www.dedebiz.com/help/"; | |||
DedeCli::write($helpStr); | |||
@@ -1 +1 @@ | |||
body{line-height:1.6;letter-spacing:.6px;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}a:hover{color:#ff8400;text-decoration:none}h2{line-height:1.6;font-size:24px;color:#393d49;font-weight:600}.btn,input,select{font-size:14px!important}.admin-head{padding:1rem 0;background:#fff}.logo,.form-control{height:36px}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.admin-btn{color:#545b62}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:30px;line-height:30px;font-size:14px;color:#545b62!important}.login-from{margin:0 auto;width:500px}.login-box{padding:1.25rem;background:#fff;border-radius:.5rem}.login-power{padding-top:1rem}.form-control,.btn-md,.alert,.rounded{border-radius:.5rem!important}.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}#validateimg{border-radius:0 .5rem .5rem 0;cursor:pointer}#browsehappy{padding:20px 30px;font-size:14px;line-height:16px;color:#856404;background:#fff3cd;border-radius:.25rem;border:0}.browsehappy-close{float:right;cursor:pointer}@media (max-width:760px){.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}.login-from{width:100%}} | |||
body{line-height:1.6;letter-spacing:.6px;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}a:hover{color:#ff8400;text-decoration:none}h2{line-height:1.6;font-size:24px;color:#393d49;font-weight:600}.btn,input,select{font-size:14px!important}.admin-head{padding:1rem 0;background:#fff}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:30px;line-height:30px;font-size:14px;color:#545b62!important}.logo,.form-control{height:36px}.login-from{margin:0 auto;width:500px}.login-box{padding:1.25rem;background:#fff;border-radius:.5rem}.login-power{padding-top:1rem}.form-control,.btn-md,.alert,.rounded{border-radius:.5rem!important}.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}#validateimg{border-radius:0 .5rem .5rem 0;cursor:pointer}#browsehappy{padding:20px 30px;font-size:14px;line-height:16px;color:#856404;background:#fff3cd;border-radius:.25rem;border:0}.browsehappy-close{float:right;cursor:pointer}@media (max-width:760px){.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}.login-from{width:100%}} |
@@ -15,7 +15,7 @@ if (empty($dopost)) $dopost = ''; | |||
if ($dopost == 'add') { | |||
CheckCSRF(); | |||
if (preg_match("#[^0-9a-zA-Z_@!\.-]#", $pwd) || preg_match("#[^0-9a-zA-Z_@!\.-]#", $userid)) { | |||
ShowMsg('密码或或会员名不合法,<br>只能用[0-9a-zA-Z_@!.-]以内范围的字符', '-1', 0, 3000); | |||
ShowMsg('密码或或会员名不合法,只能用[0-9a-zA-Z_@!.-]以内范围的字符', '-1', 0, 3000); | |||
exit(); | |||
} | |||
$safecodeok = substr(md5($cfg_cookie_encode.$randcode), 0, 24); | |||
@@ -1,6 +1,6 @@ | |||
<?php | |||
/** | |||
* 获取管理员统计信息 | |||
* 获取管理员绩效统计 | |||
* | |||
* @version $id:sys_admin_user_edit.php 16:22 2010年7月20日 tianya $ | |||
* @package DedeBIZ.Administrator | |||
@@ -63,7 +63,7 @@ if (isset($dopost) && $dopost == 'getone') { | |||
$row = $dsql->GetOne("SELECT COUNT(id) AS dd,SUM(click) AS cc FROM `#@__archives` WHERE senddate>$istarttime AND mid='$uid';"); | |||
$ddm = $row['dd'] + $ddm; | |||
$ccm = $row['cc'] + $ccm; | |||
//本周 | |||
//七天 | |||
$starttime = $y."-{$m}-{$d} 00:00:00"; | |||
$istarttime = GetMkTime($starttime) - (7 * 24 * 3600); | |||
$sql = "SELECT addtable FROM `#@__channeltype` WHERE issystem='-1'"; | |||
@@ -93,12 +93,16 @@ if (isset($dopost) && $dopost == 'getone') { | |||
$row = $dsql->GetOne("SELECT COUNT(id) AS dd,SUM(click) AS cc FROM `#@__archives` WHERE senddate>$istarttime AND mid='$uid';"); | |||
$ddd = $row['dd'] + $ddd; | |||
$ccd = $row['cc'] + $ccd; | |||
$msg = "<span class='mr-3'>管理员:{$userid}</span> | |||
<span class='mr-3'>文档/点击:{$dd}/{$cc}</span> | |||
<span class='mr-3'>季度:{$dds}/{$ccs}</span> | |||
<span class='mr-3'>当月:{$ddm}/{$ccm}</span> | |||
<span class='mr-3'>近七天:{$ddw}/{$ccw}</span> | |||
<span>当天:{$ddd}/{$ccd}</span>"; | |||
$msg = "<div class='container-fluid'> | |||
<div class='row'> | |||
<div class='col-2'>管理员:{$userid}</div> | |||
<div class='col-2'>文档/点击:{$dd}/{$cc}</div> | |||
<div class='col-2'>季度:{$dds}/{$ccs}</div> | |||
<div class='col-2'>当月:{$ddm}/{$ccm}</div> | |||
<div class='col-2'>七天:{$ddw}/{$ccw}</div> | |||
<div class='col-2'>当天:{$ddd}/{$ccd}</div> | |||
</div> | |||
</div>"; | |||
AjaxHead(); | |||
echo $msg; | |||
exit(); | |||
@@ -104,9 +104,9 @@ else if ($dopost == 'search') { | |||
<td bgcolor="#f5f5f5" colspan="3">系统配置变量搜索</td> | |||
</tr> | |||
<tr bgcolor="#e9ecef" align="center"> | |||
<td width="300">参数说明</td> | |||
<td width="360">参数说明</td> | |||
<td>参数值</td> | |||
<td width="220">变量名</td> | |||
<td width="260">变量名</td> | |||
</tr> | |||
EOT; | |||
echo $configstr; | |||
@@ -39,7 +39,7 @@ | |||
function ShowObj(objname) { | |||
var obj = document.getElementById(objname); | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table"; | |||
else obj.style.display = "block"; | |||
} | |||
function HideObj(objname) { | |||
var obj = document.getElementById(objname); | |||
@@ -49,7 +49,7 @@ | |||
var upinyin = document.getElementById('upinyin'); | |||
var tpobj = document.getElementById('typedir'); | |||
if (upinyin.checked) tpobj.style.display = "none"; | |||
else tpobj.style.display = "block"; | |||
else tpobj.style.display = "inline-block"; | |||
} | |||
function ParTemplet(obj) { | |||
var sevvalue = channelArray[obj.value]; | |||
@@ -64,7 +64,7 @@ | |||
temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||
if (obj.value < 0) { | |||
if (Nav() == 'IE') tobj.style.display = "block"; | |||
else tobj.style.display = "table-row"; | |||
else tobj.style.display = "block"; | |||
} else { | |||
tobj.style.display = "none"; | |||
} | |||
@@ -126,6 +126,7 @@ | |||
<tr> | |||
<td>文档模型:</td> | |||
<td> | |||
<input type="hidden" value="{style}" name="dfstyle"> | |||
<select name="channeltype" id="channeltype" onChange="ParTemplet(this)" class="admin-input-sm"> | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
@@ -139,7 +140,25 @@ | |||
} | |||
?> | |||
</select> | |||
<input type="hidden" value="{style}" name="dfstyle"> | |||
<div id="smclass" class="mt-3" style="<?php echo ($channelid<0 ? '' : 'display:none');?>"> | |||
<select name="smalltype[]" multiple="yes" class="admin-input-md"> | |||
<?php | |||
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC, id DESC "; | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
{ | |||
if ($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'>{$arr['ename']}</option>"; | |||
} else if (preg_match("#\.#", $arr['evalue'])) { | |||
echo "<option value='{$arr['evalue']}'>└─ {$arr['ename']}</option>"; | |||
} else { | |||
echo "<option value='{$arr['evalue']}'>{$arr['ename']}</option>"; | |||
} | |||
} | |||
?> | |||
</select> | |||
<span>(支持多选)</span> | |||
</div> | |||
</td> | |||
<td>上级目录:</td> | |||
<td> | |||
@@ -199,13 +218,9 @@ | |||
</tr> | |||
<tr> | |||
<td>文件保存目录:</td> | |||
<td class="p-0"> | |||
<table cellspacing="1" cellpadding="1" class="table-borderless"> | |||
<tr> | |||
<td><input type="text" name="typedir" id="typedir" class="admin-input-md"></td> | |||
<td><label for="upinyin"><input type="checkbox" name="upinyin" id="upinyin" value="1" onclick="CheckTypeDir()"> 拼音</label></td> | |||
</tr> | |||
</table> | |||
<td> | |||
<input type="text" name="typedir" id="typedir" class="admin-input-md"> | |||
<label for="upinyin"><input type="checkbox" name="upinyin" id="upinyin" value="1" onclick="CheckTypeDir()"> 拼音</label> | |||
</td> | |||
<td>目录相对位置:</td> | |||
<td> | |||
@@ -321,31 +336,17 @@ | |||
<td>栏目描述:</td> | |||
<td><textarea name="description" id="description" class="admin-textarea-sm"></textarea>(标签“{dede:field.description/}”调用)</td> | |||
</tr> | |||
<tr id="smclass" style="<?php echo ($channelid<0 ? '' : 'display:none');?>"> | |||
<td>绑定小分类</td> | |||
<tr> | |||
<td>是否支持跨站数据:</td> | |||
<td> | |||
<select name="smalltype[]" multiple="yes" class="admin-input-md" style="height:200px"> | |||
<?php | |||
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC, id DESC "; | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
{ | |||
if ($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'>{$arr['ename']}</option>"; | |||
} else if (preg_match("#\.#", $arr['evalue'])) { | |||
echo "<option value='{$arr['evalue']}'>└─ {$arr['ename']}</option>"; | |||
} else { | |||
echo "<option value='{$arr['evalue']}'>{$arr['ename']}</option>"; | |||
} | |||
} | |||
?> | |||
</select> | |||
<span>(支持多选)</span> | |||
<input type="text" name="" id="" class="admin-input-md" placeholder="请输入调用秘钥"> | |||
<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> | |||
<td colspan="2"></td> | |||
</tr> | |||
<tr> | |||
<td colspan="4"><?php GetEditor("content","","300","Default","print","false");?></td> | |||
<td colspan="4"><?php GetEditor("content","","400","Default","print","false");?></td> | |||
</tr> | |||
<tr> | |||
<td bgcolor="#f5f5f5" colspan="4" align="center"> | |||
@@ -177,7 +177,7 @@ | |||
<tr bgcolor="#e9ecef" align="center"> | |||
<td width="6%" class="border-top-0">排序</td> | |||
<td width="16%" class="border-top-0">顶级栏目名称</td> | |||
<td width="60%" class="border-top-0">子类栏目名称(目录名称1,目录名称2)</td> | |||
<td width="60%" class="border-top-0">子栏目名称(名称1,名称2)</td> | |||
<td class="border-top-0"><button type="button" id="add" class="btn btn-success btn-sm">添加</button></td> | |||
</tr> | |||
<tr align="center"> | |||
@@ -39,7 +39,7 @@ | |||
function ShowObj(objname) { | |||
var obj = document.getElementById(objname); | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table"; | |||
else obj.style.display = "block"; | |||
} | |||
function HideObj(objname) { | |||
var obj = document.getElementById(objname); | |||
@@ -49,7 +49,7 @@ | |||
var upinyin = document.getElementById('upinyin'); | |||
var tpobj = document.getElementById('typedir'); | |||
if (upinyin.checked) tpobj.style.display = "none"; | |||
else tpobj.style.display = "block"; | |||
else tpobj.style.display = "inline-block"; | |||
} | |||
function ParTemplet(obj) { | |||
var sevvalue = channelArray[obj.value]; | |||
@@ -64,7 +64,7 @@ | |||
temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||
if (obj.value < 0) { | |||
if (Nav() == 'IE') tobj.style.display = "block"; | |||
else tobj.style.display = "table-row"; | |||
else tobj.style.display = "block"; | |||
} else { | |||
tobj.style.display = "none"; | |||
} | |||
@@ -109,6 +109,7 @@ | |||
<tr> | |||
<td>文档模型:</td> | |||
<td> | |||
<input type="hidden" value="{style}" name="dfstyle"> | |||
<select name="channeltype" id="channeltype" onChange="ParTemplet(this)" class="admin-input-sm"> | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
@@ -118,7 +119,31 @@ | |||
} | |||
?> | |||
</select> | |||
<input type="hidden" value="{style}" name="dfstyle"> | |||
<div id="smclass" class="mt-3" style="<?php echo ($channelid<0 ? '' : 'display:none');?>"> | |||
<select name="smalltype[]" multiple="yes" class="admin-input-md"> | |||
<?php | |||
$smtypes = explode(',',trim($myrow['smalltypes'])); | |||
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC, id DESC "; | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
{ | |||
if (in_array($arr['evalue'],$smtypes)) { | |||
$selstr = " selected='1' "; | |||
} else { | |||
$selstr = ''; | |||
} | |||
if ($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'{$selstr}>{$arr['ename']}</option>"; | |||
} else if (preg_match("#\.#", $arr['evalue'])) { | |||
echo "<option value='{$arr['evalue']}'{$selstr}>└─ {$arr['ename']}</option>"; | |||
} else { | |||
echo "<option value='{$arr['evalue']}'{$selstr}>{$arr['ename']}</option>"; | |||
} | |||
} | |||
?> | |||
</select> | |||
<span>(支持多选)</span> | |||
</div> | |||
</td> | |||
<td>上级目录:</td> | |||
<td> | |||
@@ -284,32 +309,12 @@ | |||
<td>栏目描述:</td> | |||
<td><textarea name="description" id="description" class="admin-textarea-sm"><?php echo $myrow['description']?></textarea>(标签“{dede:field.description/}”调用)</td> | |||
</tr> | |||
<tr id="smclass" style="<?php echo ($channelid<0 ? '' : 'display:none');?>"> | |||
<td>绑定小分类:</td> | |||
<tr> | |||
<td>是否支持跨站数据:</td> | |||
<td> | |||
<select name="smalltype[]" multiple="yes" class="admin-input-md" style="height:200px"> | |||
<?php | |||
$smtypes = explode(',',trim($myrow['smalltypes'])); | |||
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC, id DESC "; | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
{ | |||
if (in_array($arr['evalue'],$smtypes)) { | |||
$selstr = " selected='1' "; | |||
} else { | |||
$selstr = ''; | |||
} | |||
if ($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'{$selstr}>{$arr['ename']}</option>"; | |||
} else if (preg_match("#\.#", $arr['evalue'])) { | |||
echo "<option value='{$arr['evalue']}'{$selstr}>└─ {$arr['ename']}</option>"; | |||
} else { | |||
echo "<option value='{$arr['evalue']}'{$selstr}>{$arr['ename']}</option>"; | |||
} | |||
} | |||
?> | |||
</select> | |||
<span>(支持多选)</span> | |||
<input type="text" name="" id="" class="admin-input-md" placeholder="请输入调用秘钥"> | |||
<label><input type="radio" name="" value="1" <?php if ($myrow['issend']=="1") echo "checked='1'";?>> 支持</label> | |||
<label><input type="radio" name="" value="0" <?php if ($myrow['issend']=="0") echo "checked='1'";?>> 不支持</label> | |||
</td> | |||
<td colspan="2"></td> | |||
</tr> | |||
@@ -52,7 +52,7 @@ | |||
</table> | |||
<table cellpadding="1" cellspacing="1" align="center" class="maintable mb-3"> | |||
<tr> | |||
<td bgcolor="#f5f5f5" style="padding:.65rem;border-bottom:1px solid #dee2e6">网站栏目管理</td> | |||
<td bgcolor="#f5f5f5" class="admin-td">网站栏目管理</td> | |||
</tr> | |||
<form name="form1" method="post" action="catalog_do.php?dopost=upRankAll"> | |||
<tr> | |||
@@ -57,12 +57,12 @@ | |||
<tr bgcolor="#e9ecef" align="center"> | |||
<td width="6%">选择</td> | |||
<td width="6%">mid</td> | |||
<td width="15%">头像/会员名</td> | |||
<td width="12%">头像/会员名</td> | |||
<td width="8%">昵称</td> | |||
<td width="6%">等级</td> | |||
<td width="15%">钱包积分</td> | |||
<td width="16%">钱包积分</td> | |||
<td width="16%">地址/时间</td> | |||
<td width="6%">投稿限制</td> | |||
<td width="15%">地址/时间</td> | |||
<td>操作</td> | |||
</tr> | |||
{dede:datalist empty='<tr><td colspan="9" align="center">暂无会员</td></tr>'} | |||
@@ -80,11 +80,11 @@ | |||
<span class="mr-1">金币:{dede:field.money/}</span> | |||
<span>余额:{dede:field.user_money/}</span> | |||
</td> | |||
<td>{dede:field.send_max/}</td> | |||
<td> | |||
<span class="mr-1">{dede:field.loginip/}</span> | |||
<span>{dede:field.logintime function="MyDate('Y-m-d H:i:s',@me)"/}</span> | |||
</td> | |||
<td>{dede:field.send_max/}</td> | |||
<td> | |||
<a href="member_toadmin.php?id={dede:field.mid/}" target="_self" class="btn btn-light btn-sm"><i class="fa fa-user-plus"></i> 提升</a> | |||
<a href="content_list.php?mid={dede:field.mid/}" target="_self" class="btn btn-light btn-sm"><i class="fa fa-file-text"></i> 文档</a> | |||
@@ -69,7 +69,7 @@ | |||
<tr> | |||
<td class="admin-td">授权栏目:</td> | |||
<td class="admin-td"> | |||
<select name="typeids[]" id="typeid" multiple="true" class="admin-input-md" style="height:200px"> | |||
<select name="typeids[]" id="typeid" multiple="yes" class="admin-input-md"> | |||
<option value="0" class='alltype'>所有栏目</option> | |||
<?php echo $typeOptions?> | |||
</select> | |||
@@ -70,7 +70,7 @@ | |||
<tr> | |||
<td>授权栏目:</td> | |||
<td> | |||
<select name="typeids[]" id="typeid" multiple="true" class="admin-input-md" style="height:200px"> | |||
<select name="typeids[]" id="typeid" multiple="yes" class="admin-input-md"> | |||
<option value="0" selected>所有栏目</option> | |||
<?php echo $typeOptions?> | |||
</select> | |||
@@ -49,7 +49,7 @@ | |||
<tr> | |||
<td>授权栏目:</td> | |||
<td> | |||
<select name="typeids[]" id="typeid" multiple="true" class="admin-input-md" style="height:200px"> | |||
<select name="typeids[]" id="typeid" multiple="yes" class="admin-input-md"> | |||
<option value="0">所有栏目</option> | |||
<?php echo $typeOptions?> | |||
</select> | |||
@@ -17,7 +17,7 @@ | |||
if (resp.ok) { | |||
return resp.text() | |||
} | |||
throw new Error('载入失败'); | |||
throw new Error('加载失败'); | |||
}).then((d)=>{ | |||
ajaxdiv.innerHTML = d; | |||
}).catch((error) => { | |||
@@ -11,7 +11,7 @@ | |||
<script src="../static/web/js/popper.min.js"></script> | |||
<script src="../static/web/js/bootstrap.min.js"></script> | |||
<script src="../static/web/js/style.js"></script> | |||
<style>body{line-height:1.6;letter-spacing:.6px;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}a:hover{color:#ff8400;text-decoration:none}h2,legend{line-height:1.6;font-size:18px;font-weight:600;color:#393d49}label{margin-bottom:10px;line-height:18px}input,select,.btn{font-size:14px!important}.install-box{margin:0 auto;width:800px}.admin-head{padding:1rem 0;background:#fff}.logo,.form-control{height:36px}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.admin-btn{color:#545b62}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:36px;line-height:36px;font-size:14px;color:#545b62!important}.fa{font-size:14px!important;color:inherit;cursor:pointer}.form-control,.btn-md,.card,.alert,.rounded{border-radius:.5rem!important}.card-header:first-child{border-radius:.5rem .5rem 0 0}.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}@media (max-width:760px){.install-box{width:100%}.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}}</style> | |||
<style>body{line-height:1.6;letter-spacing:.6px;font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#545b62;background:#f5f5f5}a{color:#545b62}a:hover{color:#ff8400;text-decoration:none}h2,legend{line-height:1.6;font-size:18px;font-weight:600;color:#393d49}label{margin-bottom:10px;line-height:18px}input,select,.btn{font-size:14px!important}.install-box{margin:0 auto;width:800px}.admin-head{padding:1rem 0;background:#fff}.admin-nav{height:36px;line-height:36px}.admin-nav-a{padding-right:30px}.dropdown-menu{min-width:8rem;font-size:14px}.dropdown-item{padding:0 1rem;height:36px;line-height:36px;font-size:14px;color:#545b62!important}.fa{font-size:14px!important;color:inherit;cursor:pointer}.logo,.form-control{height:36px}.form-control,.btn-md,.card,.alert,.rounded{border-radius:.5rem!important}.card-header:first-child{border-radius:.5rem .5rem 0 0}.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label,.input-group:not(.has-validation)>.custom-file:not(:last-child) .custom-file-label::after,.input-group:not(.has-validation)>.custom-select:not(:last-child),.input-group:not(.has-validation)>.form-control:not(:last-child){border-top-right-radius:0!important;border-bottom-right-radius:0!important}.input-group>.input-group-append>.btn,.input-group>.input-group-append>.input-group-text,.input-group>.input-group-prepend:first-child>.btn:not(:first-child),.input-group>.input-group-prepend:first-child>.input-group-text:not(:first-child),.input-group>.input-group-prepend:not(:first-child)>.btn,.input-group>.input-group-prepend:not(:first-child)>.input-group-text{border-top-left-radius:0!important;border-bottom-left-radius:0!important}@media (max-width:760px){.install-box{width:100%}.admin-head{padding:1rem 15px}.admin-nav-a{display:none!important}}</style> | |||
</head> | |||
<body> | |||
<div class="d-flex flex-md-row align-items-center shadow-sm admin-head mb-5"> | |||
@@ -105,7 +105,7 @@ | |||
</div> | |||
</div> | |||
<div class="col-md-12"> | |||
<p>Powered by <a href="https://www.dedebiz.com" target="_blank">DedeBIZ开发团队</a></p> | |||
<p><a href="https://www.dedebiz.com" target="_blank">Powered by DedeBIZ开发团队</a></p> | |||
</div> | |||
</div> | |||
<script> | |||
@@ -14,6 +14,7 @@ | |||
font-size:12px | |||
} | |||
body { | |||
margin:0; | |||
line-height:1.6; | |||
letter-spacing:.6px; | |||
font:12px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif; | |||
@@ -106,6 +107,9 @@ select { | |||
vertical-align:middle; | |||
transition:all .5s | |||
} | |||
select[multiple=yes] { | |||
height:180px | |||
} | |||
textarea { | |||
padding:.25rem .65rem; | |||
color:#545b62; | |||
@@ -9,6 +9,7 @@ | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
//考虑安全原因不管是否开启游客投稿功能,都不允许会员对图片投稿 | |||
CheckRank(0, 0); | |||
if ($cfg_mb_lit == 'Y') { | |||
ShowMsg("由于系统开启会员空间精简版,您浏览的功能不可用", "-1"); | |||
@@ -9,7 +9,6 @@ | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckRank(0, 0); | |||
require_once(DEDEINC."/dedetag.class.php"); | |||
require_once(DEDEINC."/customfields.func.php"); | |||
require_once(DEDEMEMBER."/inc/inc_catalog_options.php"); | |||
@@ -9,7 +9,6 @@ | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckRank(0, 0); | |||
require_once(DEDEINC."/dedetag.class.php"); | |||
require_once(DEDEINC."/customfields.func.php"); | |||
require_once(DEDEMEMBER."/inc/inc_catalog_options.php"); | |||
@@ -9,7 +9,6 @@ | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckRank(0, 0); | |||
require_once(DEDEINC."/dedetag.class.php"); | |||
require_once(DEDEINC."/customfields.func.php"); | |||
require_once(DEDEMEMBER."/inc/inc_catalog_options.php"); | |||
@@ -9,10 +9,10 @@ | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckRank(0, 0); | |||
require_once(DEDEINC."/typelink/typelink.class.php"); | |||
require_once(DEDEINC."/datalistcp.class.php"); | |||
require_once(DEDEMEMBER."/inc/inc_list_functions.php"); | |||
CheckRank(0, 0); | |||
setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); | |||
$cid = isset($cid) && is_numeric($cid) ? $cid : 0; | |||
$channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 0; | |||
@@ -9,10 +9,10 @@ | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckRank(0, 0); | |||
require_once(DEDEINC."/typelink/typelink.class.php"); | |||
require_once(DEDEINC."/datalistcp.class.php"); | |||
require_once(DEDEMEMBER."/inc/inc_list_functions.php"); | |||
CheckRank(0, 0); | |||
setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); | |||
$cid = isset($cid) && is_numeric($cid) ? $cid : 0; | |||
$channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 0; | |||
@@ -9,8 +9,8 @@ | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckRank(0, 0); | |||
require_once(DEDEINC."/datalistcp.class.php"); | |||
CheckRank(0, 0); | |||
setcookie("ENV_GOBACK_URL", GetCurUrl(), time() + 3600, "/"); | |||
$type = empty($type) ? "sys" : trim($type); | |||
$tpl = ''; | |||
@@ -9,11 +9,11 @@ | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
CheckRank(0, 0); | |||
require_once(DEDEINC."/dedetag.class.php"); | |||
require_once(DEDEINC."/customfields.func.php"); | |||
require_once(DEDEMEMBER."/inc/inc_catalog_options.php"); | |||
require_once(DEDEMEMBER."/inc/inc_archives_functions.php"); | |||
CheckRank(0, 0); | |||
$channelid = isset($channelid) && is_numeric($channelid) ? $channelid : 3; | |||
$aid = isset($aid) && is_numeric($aid) ? $aid : 0; | |||
$menutype = 'content'; | |||