@@ -82,14 +82,14 @@ if ($action == '') { | |||
$devInfo = (array)json_decode($devContent); | |||
$offUrl = ""; | |||
if ($devInfo['dev_type'] == 1) { | |||
$offUrl = "<p>官方网址:<code>{$devInfo['offurl']}</code></p>"; | |||
$offUrl = "官方网址:<code>{$devInfo['offurl']}</code><br>"; | |||
} | |||
$authAt = date("Y-m-d", $devInfo['auth_at']); | |||
if (!isset($info['dev_id'])) { | |||
$devInfo['dev_name'] = $info['team']."<span class='btn btn-danger btn-sm'>未认证</span>"; | |||
$authAt = "未知"; | |||
} | |||
ShowMsg("<p>开发者名称:{$devInfo['dev_name']}</p><p>开发者id:{$devInfo['dev_id']}</p><span>认证于:{$authAt}</span>", "-1"); | |||
ShowMsg("开发者名称:{$devInfo['dev_name']}<br>开发者id:{$devInfo['dev_id']}<br>认证于:{$authAt}", "-1"); | |||
exit; | |||
} else if ($action == 'setup') { | |||
$dm = new DedeModule($mdir); | |||
@@ -139,7 +139,7 @@ if ($action == '') { | |||
$prvdir .= "</table>"; | |||
$win = new OxWindow(); | |||
$win->Init("module_main.php", "js/blank.js", "post"); | |||
$wecome_info = "模块管理"; | |||
$wecome_info = "<a href='module_main.php'>模块管理</a> - 安装{$infos['name']}"; | |||
$devURL = DEDECDNURL."/developers/{$infos['dev_id']}.json"; | |||
$dhd = new DedeHttpDown(); | |||
$dhd->OpenUrl($devURL); | |||
@@ -149,12 +149,11 @@ if ($action == '') { | |||
if (($devInfo['dev_id'] == $infos['dev_id']) && !empty($devInfo['dev_id'])) { | |||
$s = "已认证"; | |||
} | |||
$win->AddTitle("<a href='module_main.php'>模块管理</a> - 安装{$infos['name']}"); | |||
$win->AddHidden("hash", $hash); | |||
$win->AddHidden("action", 'setupstart'); | |||
$msg = "<tr> | |||
<td colspan='2'> | |||
<div class='alert alert-danger mb-0'>安装时文件列表中涉及的目录前可写入权限,此外后台管理目录和主题目录也必须暂时设置可写入权限</div> | |||
<div class='alert alert-danger mb-0'>文件列表中涉及的目录权限可写入,后台管理目录和主题目录也权限可写入</div> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -266,10 +265,9 @@ if ($action == '') { | |||
$dev_id = empty($infos['dev_id'])? "<a href='{$cfg_biz_dedebizUrl}/developer' target='_blank' class='btn btn-danger btn-sm'>未认证</a>" : "{$infos['dev_id']} <a href='{$cfg_biz_dedebizUrl}/developer?dev_id={$infos['dev_id']}' target='_blank' class='btn btn-success btn-sm'>已认证</a>"; | |||
$win = new OxWindow(); | |||
$win->Init("module_main.php", "js/blank.js", "post"); | |||
$wecome_info = "模块管理"; | |||
$win->AddTitle("<a href='module_main.php'>模块管理</a> - 删除{$infos['name']}"); | |||
$win->AddHidden('hash', $hash); | |||
$win->AddHidden('action', 'delok'); | |||
$wecome_info = "<a href='module_main.php'>模块管理</a> - 删除{$infos['name']}"; | |||
$win->AddHidden("hash", $hash); | |||
$win->AddHidden("action", "delok"); | |||
$msg = "<tr> | |||
<td width='260'>模块名称:</td> | |||
<td>{$infos['name']}</td> | |||
@@ -295,7 +293,7 @@ if ($action == '') { | |||
<td><a href='module_main.php?action=showreadme&hash={$hash}' target='_blank' class='btn btn-success btn-sm'>浏览</a></td> | |||
</tr> | |||
<tr> | |||
<td colspan='2'>删除模块仅删除这个模块的安装包文件,如果您已经安装,请执行<a href='module_main.php?hash={$hash}&action=uninstall'>卸载程序</a>来删除</td> | |||
<td colspan='2'>删除模块仅删除模块安装后文件,用<a href='module_main.php?hash={$hash}&action=uninstall'>卸载程序</a>来删除</td> | |||
</tr>"; | |||
$win->AddMsgItem("$msg"); | |||
$winform = $win->GetWindow("ok", ""); | |||
@@ -324,8 +322,7 @@ if ($action == '') { | |||
$dev_id = empty($infos['dev_id'])? "<a href='{$cfg_biz_dedebizUrl}/developer' target='_blank' class='btn btn-danger btn-sm'>未认证</a>" : "{$infos['dev_id']} <a href='{$cfg_biz_dedebizUrl}/developer?dev_id={$infos['dev_id']}' target='_blank' class='btn btn-success btn-sm'>已认证</a>"; | |||
$win = new OxWindow(); | |||
$win->Init("module_main.php", "js/blank.js", "post"); | |||
$wecome_info = "模块管理"; | |||
$win->AddTitle("<a href='module_main.php'>模块管理</a> - 卸载{$infos['name']}"); | |||
$wecome_info = "<a href='module_main.php'>模块管理</a> - 卸载{$infos['name']}"; | |||
$win->AddHidden("hash", $hash); | |||
$win->AddHidden("action", 'uninstallok'); | |||
$msg = "<tr> | |||
@@ -409,8 +406,7 @@ if ($action == '') { | |||
$dm->Clear(); | |||
$win = new OxWindow(); | |||
$win->Init("module_main.php", "js/blank.js", "post"); | |||
$wecome_info = "模块管理"; | |||
$win->AddTitle("<a href='module_main.php'>模块管理</a> - 使用说明"); | |||
$wecome_info = "<a href='module_main.php'>模块管理</a> - 使用说明"; | |||
$win->AddMsgItem("$msg"); | |||
$winform = $win->GetWindow("hand"); | |||
$win->Display(); | |||
@@ -443,12 +439,10 @@ if ($action == '') { | |||
} else { | |||
$setupinfo = "未安装 <a href='module_main.php?action=setup&hash={$hash}'>安装</a>"; | |||
} | |||
$dev_id = empty($infos['dev_id'])? "<a href='module_main.php?action=setup&hash={$hash}' class='btn btn-warning btn-sm'>安装</a><a href='{$cfg_biz_dedebizUrl}/developer' target='_blank' class='btn btn-success btn-sm'>{$s}</a>" : "{$infos['dev_id']} <a href='module_main.php?action=setup&hash={$hash}' class='btn btn-warning btn-sm'>安装</a><a href='{$cfg_biz_dedebizUrl}/developer?dev_id={$infos['dev_id']}' target='_blank' class='btn btn-success btn-sm'>{$s}</a>"; | |||
$win = new OxWindow(); | |||
$win->Init("", "js/blank.js", ""); | |||
$wecome_info = "模块管理"; | |||
$win->AddTitle("<a href='module_main.php'>模块管理</a> - {$infos['name']}"); | |||
$wecome_info = "<a href='module_main.php'>模块管理</a> - {$infos['name']}"; | |||
$msg = "<tr> | |||
<td width='260'>模块名称:</td> | |||
<td>{$infos['name']}</td> | |||
@@ -473,15 +467,11 @@ if ($action == '') { | |||
<td>使用协议:</td> | |||
<td><a href='module_main.php?action=showreadme&hash={$hash}' target='_blank' class='btn btn-success btn-sm'>浏览</a></td> | |||
</tr> | |||
<tr> | |||
<td>模块文件:</td> | |||
<td></td> | |||
</tr> | |||
<tr> | |||
<td colspan='2'><textarea name='filelists' id='filelists' class='admin-textarea-xl'>{$filelist}</textarea></td> | |||
</tr>"; | |||
$win->AddMsgItem("$msg"); | |||
$winform = $win->GetWindow('hand', ''); | |||
$winform = $win->GetWindow("hand", false); | |||
$win->Display(); | |||
$dm->Clear(); | |||
exit(); | |||
@@ -501,6 +491,6 @@ if ($action == '') { | |||
require_once(dirname(__FILE__).'/templets/module_edit.htm'); | |||
exit(); | |||
} else if ($action == 'download') { | |||
ShowMsg("暂不支持模块下载功能", "javascript:;"); | |||
ShowMsg("不支持模块下载功能", "javascript:;"); | |||
} | |||
?> |
@@ -31,7 +31,7 @@ else if ($action == 'make') { | |||
$devContent = $dhd->GetHtml(); | |||
$devInfo = (array)json_decode($devContent); | |||
if (($devInfo['auth_at'] + 60 * 60 * 24 * 365) < time()) { | |||
ShowMsg("您的开发者账号已经过期,请登录www.dedebiz.com重新申请", "-1"); | |||
ShowMsg("您的开发者账号已经过期,请登录DedeBIZ申请续费", "-1"); | |||
exit(); | |||
} | |||
$filelist = str_replace("\r", "\n", trim($filelist)); | |||
@@ -78,7 +78,7 @@ else if ($action == 'make') { | |||
$dm = new DedeModule($mdir); | |||
if ($dm->HasModule($hashcode)) { | |||
$dm->Clear(); | |||
ShowMsg("您指定同名模块已经存在,因此不能创建项目,如果您要更新这个模块,请先删除:module/{$hashcode}.xml", "-1"); | |||
ShowMsg("您指定同名模块已经存在,您要更新这个模块先删除:module/{$hashcode}.xml", "-1"); | |||
exit(); | |||
} | |||
$readmef = $setupf = $uninstallf = ''; | |||
@@ -162,7 +162,7 @@ $filelist | |||
fwrite($fp, "</modulefiles>\r\n"); | |||
fwrite($fp, "</module>\r\n"); | |||
fclose($fp); | |||
ShowMsg("成功对一个新模块进行编译", "module_main.php"); | |||
ShowMsg("成功更新一个模块插件", "module_main.php"); | |||
exit(); | |||
} | |||
//修改项目 | |||
@@ -307,7 +307,7 @@ $filelist | |||
fwrite($fp, $fxml); | |||
fclose($fp); | |||
} | |||
ShowMsg("成功对模块重新编译", "module_main.php"); | |||
ShowMsg("成功更新一个模块插件", "module_main.php"); | |||
exit(); | |||
}//ClearAllLink(); | |||
?> |
@@ -30,7 +30,7 @@ if ($action == 'upload') { | |||
if (empty($infos['hash'])) { | |||
unlink($tmpfilename); | |||
$dm->Clear(); | |||
ShowMsg("您上传的插件不是正常模块格式文件,<a href='javascript:history.go(-1);'>重新上传</a>", "javascript:;"); | |||
ShowMsg("您上传的插件不是正常模块格式文件", "javascript:;"); | |||
exit(); | |||
} | |||
if (preg_match("#[^0-9a-zA-Z]#", $infos['hash'])) { | |||
@@ -40,7 +40,7 @@ if ($action == 'upload') { | |||
if ($dm->HasModule($infos['hash']) && empty($delhas)) { | |||
unlink($tmpfilename); | |||
$dm->Clear(); | |||
ShowMsg("您上传的模块已存在,请删除原模块文件或强制同名模块上传,<a href='javascript:history.go(-1);'>重新上传</a>", "javascript:;"); | |||
ShowMsg("您上传的模块已存在,请删除原模块文件或强制同名模块上传", "javascript:;"); | |||
exit(); | |||
} | |||
@unlink($okfile); | |||
@@ -53,7 +53,6 @@ if ($action == 'upload') { | |||
} else { | |||
$win = new OxWindow(); | |||
$win->Init("module_upload.php", "js/blank.js", "POST' enctype='multipart/form-data"); | |||
$win->mainTitle = "模块管理"; | |||
$wecome_info = "<a href='module_main.php'>模块管理</a> - 上传模块插件"; | |||
$win->AddTitle('请选择上传的模块插件文件'); | |||
$win->AddHidden("action", 'upload'); | |||
@@ -63,11 +62,11 @@ if ($action == 'upload') { | |||
</tr> | |||
<tr> | |||
<td>已有模块:</td> | |||
<td><label><input type='checkbox' name='delhas' id='delhas' value='1'> 是否删除同名模块会导致已经安装模块无法卸载</label></td> | |||
<td><label><input type='checkbox' name='delhas' id='delhas' value='1'> 是否删除同名模块会导致已经安装模块卸载失败</label></td> | |||
</tr> | |||
<tr> | |||
<td>选择文件:</td> | |||
<td><input name='upfile' type='file' id='upfile' class='admin-input-lg'></td> | |||
<td><input type='file' name='upfile' id='upfile' class='admin-input-lg'></td> | |||
</tr>"; | |||
$win->AddMsgItem("$msg"); | |||
$winform = $win->GetWindow('ok', ''); | |||
@@ -13,10 +13,9 @@ CheckPurview('sys_ArcBatch'); | |||
require_once(DEDEINC.'/libraries/oxwindow.class.php'); | |||
if (empty($dopost)) { | |||
$win = new OxWindow(); | |||
$win->Init("sys_repair.php", "js/blank.js", "POST' enctype='multipart/form-data' "); | |||
$win->mainTitle = "系统修复工具"; | |||
$win->Init("sys_repair.php", "js/blank.js", "POST' enctype='multipart/form-data'"); | |||
$wecome_info = "系统修复工具"; | |||
$win->AddTitle('本工具用于检测和修复您的系统存在的错误'); | |||
$win->AddTitle('系统修复工具用于检测和修复系统数据错误'); | |||
$msg = "<tr> | |||
<td> | |||
由于手动升级时会员没运行指定的SQL语句,或自动升级的遗漏处理或处理出错,会导致一些错误,使用本工具会自动检测并处理,本工具目前主要执行下面动作:<br> | |||
@@ -27,20 +26,19 @@ if (empty($dopost)) { | |||
</td> | |||
</tr> | |||
<tr> | |||
<td bgcolor='#f5f5f5' align='center'><a href='sys_repair.php?dopost=1' class='btn btn-success btn-sm'>常规检测</a></td> | |||
<td bgcolor='#f5f5f5' align='center'><a href='sys_repair.php?dopost=1' class='btn btn-success btn-sm'>开始检测</a></td> | |||
</tr>"; | |||
$win->AddMsgItem("$msg"); | |||
$winform = $win->GetWindow('hand', ''); | |||
$winform = $win->GetWindow("hand", false); | |||
$win->Display(); | |||
exit(); | |||
} | |||
//数据结构常规检测 | |||
else if ($dopost == 1) { | |||
$win = new OxWindow(); | |||
$win->Init("sys_repair.php", "js/blank.js", "POST' enctype='multipart/form-data' "); | |||
$win->mainTitle = "系统修复工具"; | |||
$win->Init("sys_repair.php", "js/blank.js", "POST' enctype='multipart/form-data'"); | |||
$wecome_info = "<a href='sys_repair.php'>系统修复工具</a> - 检测数据结构"; | |||
$win->AddTitle('本工具用于检测和修复您的系统存在的错误'); | |||
$win->AddTitle('系统修复工具用于检测和修复系统数据错误'); | |||
$msg = "<tr> | |||
<td> | |||
已完成数据结构完整性检测:<br> | |||
@@ -49,10 +47,10 @@ else if ($dopost == 1) { | |||
3、列表显示数据目与实际文档数不一致 | |||
</td> | |||
<tr> | |||
<td bgcolor='#f5f5f5' align='center'><a href='sys_repair.php?dopost=2' class='btn btn-success btn-sm'>检测数据</a></td> | |||
<td bgcolor='#f5f5f5' align='center'><a href='sys_repair.php?dopost=2' class='btn btn-success btn-sm'>下一步</a></td> | |||
</tr>"; | |||
$win->AddMsgItem("$msg"); | |||
$winform = $win->GetWindow('hand', ''); | |||
$winform = $win->GetWindow("hand", false); | |||
$win->Display(); | |||
exit(); | |||
} | |||
@@ -62,7 +60,7 @@ else if ($dopost == 2) { | |||
$allarcnum = 0; | |||
$row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__archives`"); | |||
$allarcnum = $arcnum = $row['dd']; | |||
$msg .= "#@__archives 表总记录数:{$arcnum}<br>"; | |||
$msg .= "#@__archives表总记录数:{$arcnum}<br>"; | |||
$shtables = array(); | |||
$dsql->Execute('me', "SELECT addtable FROM `#@__channeltype` WHERE id < -1 "); | |||
while ($row = $dsql->GetArray('me')) { | |||
@@ -79,15 +77,15 @@ else if ($dopost == 2) { | |||
} | |||
} | |||
$msg .= "总有效记录数:{$allarcnum}<br>"; | |||
$errall = "<a href='index_body.php' class='btn btn-success btn-sm'>完成修正</a>"; | |||
$errall = "<a href='index_body.php' class='btn btn-success btn-sm'>完成修复</a>"; | |||
$row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__arctiny`"); | |||
$msg .= "微统计表记录数:{$row['dd']}<br>"; | |||
if ($row['dd'] == $allarcnum) { | |||
$msg .= "<span class='text-dark'>两者记录一致,无需修正</span><br>"; | |||
$msg .= "两者记录一致,无需修复<br>"; | |||
} else { | |||
$sql = "TRUNCATE TABLE `#@__arctiny`"; | |||
$dsql->ExecuteNoneQuery($sql); | |||
$msg .= "<span class='text-primary'>两者记录不一致,尝试进行简单修正</span><br>"; | |||
$msg .= "两者记录不一致,尝试进行简单修复<br>"; | |||
//导入普通模型微数据 | |||
$sql = "INSERT INTO `#@__arctiny` (id,typeid,typeid2,arcrank,channel,senddate,sortrank,mid) SELECT id,typeid,typeid2,arcrank,channel,senddate,sortrank,mid FROM `#@__archives` "; | |||
$dsql->ExecuteNoneQuery($sql); | |||
@@ -99,18 +97,17 @@ else if ($dopost == 2) { | |||
} | |||
$row = $dsql->GetOne("SELECT COUNT(*) AS dd FROM `#@__arctiny`"); | |||
if ($row['dd'] == $allarcnum) { | |||
$msg .= "修正记录成功<br>"; | |||
$msg .= "修复记录成功<br>"; | |||
} else { | |||
$msg .= "修正记录失败,建议进行高级综合检测<br>"; | |||
$errall = "<a href='sys_repair.php?dopost=3' class='btn btn-success btn-sm'>结合性检测</a> "; | |||
$msg .= "修复记录失败,建议高级结合检测<br>"; | |||
$errall = "<a href='sys_repair.php?dopost=3' class='btn btn-success btn-sm'>结合检测</a> "; | |||
} | |||
} | |||
UpDateCatCache(); | |||
$win = new OxWindow(); | |||
$win->Init("sys_repair.php", "js/blank.js", "POST' enctype='multipart/form-data' "); | |||
$win->mainTitle = "系统修复工具"; | |||
$wecome_info = "<a href='sys_repair.php'>系统修复工具</a> - 检测微表正确性"; | |||
$win->AddTitle('本工具用于检测和修复您的系统存在的错误'); | |||
$win->Init("sys_repair.php", "js/blank.js", "POST' enctype='multipart/form-data'"); | |||
$wecome_info = "<a href='sys_repair.php'>系统修复工具</a> - 检测微表数据"; | |||
$win->AddTitle('系统修复工具用于检测和修复系统数据错误'); | |||
$msg = "<tr> | |||
<td>{$msg}</td> | |||
</tr> | |||
@@ -118,7 +115,7 @@ else if ($dopost == 2) { | |||
<td bgcolor='#f5f5f5' align='center'>{$errall}</td> | |||
</tr>"; | |||
$win->AddMsgItem("$msg"); | |||
$winform = $win->GetWindow('hand', ''); | |||
$winform = $win->GetWindow("hand", false); | |||
$win->Display(); | |||
exit(); | |||
} | |||
@@ -155,17 +152,16 @@ else if ($dopost == 3) { | |||
} | |||
$win = new OxWindow(); | |||
$win->Init("sys_repair.php", "js/blank.js", "POST' enctype='multipart/form-data'"); | |||
$win->mainTitle = "系统修复工具"; | |||
$wecome_info = "<a href='sys_repair.php'>系统修复工具</a> - 高级综合检测修复"; | |||
$win->AddTitle('本工具用于检测和修复您的系统存在的错误'); | |||
$wecome_info = "<a href='sys_repair.php'>系统修复工具</a> - 高级检测"; | |||
$win->AddTitle('系统修复工具用于检测和修复系统数据错误'); | |||
$msg = "<tr> | |||
<td>完成所有修复操作,移除错误记录{$errnum}条</td> | |||
</tr> | |||
<tr> | |||
<td bgcolor='#f5f5f5' align='center'><a href='index_body.php' class='btn btn-success btn-sm'>完成修正</a></td> | |||
<td bgcolor='#f5f5f5' align='center'><a href='index_body.php' class='btn btn-success btn-sm'>完成修复</a></td> | |||
</tr>"; | |||
$win->AddMsgItem("$msg"); | |||
$winform = $win->GetWindow('hand', ''); | |||
$winform = $win->GetWindow("hand", false); | |||
$win->Display(); | |||
exit(); | |||
} |
@@ -11,7 +11,7 @@ | |||
<script src="../static/web/js/jquery.min.js"></script> | |||
<script src="../static/web/js/moment.min.js"></script> | |||
<script src="../static/web/js/daterangepicker.js"></script> | |||
<style>.typetab{text-align:left}.typetab ul{list-style:none}.typetab ul li{float:left;width:64px;height:28px;line-height:28px;background:#f5f5f5;text-align:center;cursor:pointer}.typetab ul .act{background:#e9ecef}.i_table{border:1px solid #eee}</style> | |||
<style>.typetab{text-align:left}.typetab ul li{float:left;width:60px;height:28px;line-height:28px;border-radius:.5rem .5rem 0 0;text-align:center;cursor:pointer}.typetab ul .act{background:#f5f5f5}</style> | |||
</head> | |||
<body> | |||
<form action="ad_add.php" method="post" name="form1" onSubmit="return checkSubmit()"> | |||
@@ -20,18 +20,18 @@ | |||
<input type="hidden" name="dopost" value="save"> | |||
<table align="center" class="table maintable my-3"> | |||
<tr> | |||
<td bgcolor="#f5f5f5" colspan="2"><a href="ad_main.php">广告管理</a> - 添加广告位置</td> | |||
<td bgcolor="#f5f5f5" colspan="2"><a href="ad_main.php">广告管理</a> - 添加广告</td> | |||
</tr> | |||
<tr> | |||
<td colspan="2"> | |||
<div class="alert alert-info mb-0">广告代码的调用方法“{dede:myad name='广告位标识'/}”</div> | |||
<div class="alert alert-info mb-0">广告代码标签“{dede:myad name='广告位标识'/}”调用</div> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="260">广告位标识:</td> | |||
<td> | |||
<input type="text" name="tagname" id="tagname" class="admin-input-lg"> | |||
<span>(使用英文或数字表示的简洁标识)</span> | |||
<span>(使用英文或数字表示标识)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -91,7 +91,7 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>过期显示文档:</td> | |||
<td>过期显示:</td> | |||
<td><textarea name="expbody" id="expbody" class="admin-textarea-xl"></textarea></td> | |||
</tr> | |||
<tr> | |||
@@ -101,7 +101,7 @@ | |||
</form> | |||
<div id="formtxt" style="display:none"> | |||
<div class="content" id="code" style="display:none"> | |||
<table class="i_table w-100"> | |||
<table class="maintable"> | |||
<tr> | |||
<td width="260">广告代码:请填写广告代码,支持网页代码</td> | |||
<td><textarea name="normbody[htmlcode]" class="admin-textarea-xl"></textarea></td> | |||
@@ -109,7 +109,7 @@ | |||
</table> | |||
</div> | |||
<div id="txt" class="content" style="display:none"> | |||
<table class="i_table w-100"> | |||
<table class="maintable"> | |||
<tr> | |||
<td width="260">文字文档</td> | |||
<td><input type="text" name="normbody[title]" value="" class="admin-input-lg"></td> | |||
@@ -129,7 +129,7 @@ | |||
</table> | |||
</div> | |||
<div id="img" class="content" style="display:none"> | |||
<table class="i_table w-100"> | |||
<table class="maintable"> | |||
<tr> | |||
<td width="260">图片地址</td> | |||
<td><input type="text" name="normbody[url]" value="" class="admin-input-lg"></td> | |||
@@ -153,7 +153,7 @@ | |||
</table> | |||
</div> | |||
<div id="flash" class="content" style="display:none"> | |||
<table class="i_table w-100"> | |||
<table class="maintable"> | |||
<tr> | |||
<td width="260">flash链接</td> | |||
<td><input type="text" name="normbody[link]" value="" class="admin-input-lg"></td> | |||
@@ -67,11 +67,11 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td>正常显示文档:</td> | |||
<td>正常显示:</td> | |||
<td><textarea name="normbody" id="normbody" class="admin-textarea-xl"><?php echo dede_htmlspecialchars(stripslashes($row['normbody']))?></textarea></td> | |||
</tr> | |||
<tr> | |||
<td>过期显示文档:</td> | |||
<td>过期显示:</td> | |||
<td><textarea name="expbody" id="expbody" class="admin-textarea-xl"><?php echo dede_htmlspecialchars($row['expbody'])?></textarea></td> | |||
</tr> | |||
<tr> | |||
@@ -12,49 +12,58 @@ | |||
<form action="article_description_main.php" name="form1" target="stafrm" method="post"> | |||
<table align="center" class="table maintable my-3"> | |||
<tr> | |||
<td bgcolor="#f5f5f5" colspan="2">自动摘要分页</td> | |||
<td bgcolor="#f5f5f5" colspan="4">自动摘要分页</td> | |||
</tr> | |||
<tr> | |||
<td width="630"> | |||
<label>栏目id:<input type="text" name="channel" id="channel" value="1" class="admin-input-xs"></label> | |||
<td width="120">栏目id:</td> | |||
<td> | |||
<input type="text" name="channel" id="channel" value="1" class="admin-input-xs"> | |||
<span>(可在“<a href="mychannel_main.php">栏目模型管理</a>”处获得)</span> | |||
</td> | |||
<td width="120">摘要大小:</td> | |||
<td> | |||
<label>摘要大小:<input type="text" name="dsize" id="dsize" value="<?php echo $cfg_auot_description?>" class="admin-input-xs"></label> | |||
<input type="text" name="dsize" id="dsize" class="admin-input-xs" value="<?php echo $cfg_auot_description?>"> | |||
<span>(最大255字节)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td><label>数据表:<input type="text" name="table" id="table2" value="<?php echo $cfg_dbprefix?>addonarticle" class="admin-input-sm"></label></td> | |||
<td><label>分析字段:<input type="text" name="field" id="field2" value="body" class="admin-input-sm"></label></td> | |||
<td width="120">数据表:</td> | |||
<td><input type="text" name="table" id="table2" value="<?php echo $cfg_dbprefix?>addonarticle" class="admin-input-sm"></td> | |||
<td width="120">分析字段:</td> | |||
<td><input type="text" name="field" id="field2" value="body" class="admin-input-sm"></td> | |||
</tr> | |||
<tr> | |||
<td width="120">最小值:</td> | |||
<td> | |||
<label>最小值:<input type="text" name="msize" id="msize2" value="512" class="admin-input-xs"></label> | |||
<input type="text" name="msize" id="msize2" value="512" class="admin-input-xs"> | |||
<span>(字节,文档大于该值才分析)</span> | |||
</td> | |||
<td width="120">每页更新:</td> | |||
<td> | |||
<label>每页更新:<input type="text" name="pagesize" id="pagesize" value="100" class="admin-input-xs"></label> | |||
<input type="text" name="pagesize" id="pagesize" value="100" class="admin-input-xs"></label> | |||
<span>(网页)</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td><label>开始id:<input type="text" name="sid" id="sid" class="admin-input-xs"></label></td> | |||
<td><label>结束id:<input type="text" name="eid" id="eid" class="admin-input-xs"></label></td> | |||
<td width="120">开始id:</td> | |||
<td><input type="text" name="sid" id="sid" class="admin-input-xs"></td> | |||
<td width="120">结束id:</td> | |||
<td><input type="text" name="eid" id="eid" class="admin-input-xs"></td> | |||
</tr> | |||
<tr> | |||
<td width="120">操作:</td> | |||
<td> | |||
<span>操作:</span> | |||
<label><input type="radio" name="dojob" value="des" checked> 自动摘要</label> | |||
<label><input type="radio" name="dojob" value="page"> 自动分页</label> | |||
</td> | |||
<td>自动分页大小:<?php echo $cfg_arcautosp_size?> K <a href="sys_info.php" class="btn btn-success btn-sm">系统变量</a></td> | |||
<td width="120">自动分页大小:</td> | |||
<td><?php echo $cfg_arcautosp_size?>K</td> | |||
</tr> | |||
<tr> | |||
<td bgcolor="#e9ecef" colspan="2" align="center"><button type="submit" name="Submit" class="btn btn-success btn-sm">执行分析</button></td> | |||
<td bgcolor="#e9ecef" colspan="4" align="center"><button type="submit" name="Submit" class="btn btn-success btn-sm">开始操作</button></td> | |||
</tr> | |||
<tr> | |||
<td colspan="2" id="mtd"> | |||
<td colspan="4" id="mtd"> | |||
<div id="mdv" class="admin-win-iframe"><iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe></div> | |||
</td> | |||
</tr> | |||
@@ -51,7 +51,7 @@ | |||
<td>前台参数:</td> | |||
<td> | |||
<label><input type="checkbox" name="notsend" id="notsend" value="1"> 投稿和采集禁用字段</label> | |||
<label><input type="checkbox" name="islist" id="islist" value="1"> 是否增加列表附加字段</label> | |||
<label><input type="checkbox" name="islist" id="islist" value="1"> 添加到列表附加字段</label> | |||
<span>(列表模板“{dede:list channelid='模型id' addfields='字段1,字段2'}{/dede:list}”中,标签“[field:name/]”调用)</span> | |||
</td> | |||
</tr> | |||
@@ -52,7 +52,7 @@ | |||
<td>前台参数:</td> | |||
<td> | |||
<label><input type="checkbox" name="notsend" id="notsend" value="1" <?php echo ($ctag->GetAtt('notsend')==1 ? " checked":"");?>> 投稿和采集禁用字段</label> | |||
<label><input type="checkbox" name="islist" id="islist" value="1" <?php echo ($ctag->GetAtt('islist')==1 ? " checked":"");?>> 是否增加列表附加字段</label> | |||
<label><input type="checkbox" name="islist" id="islist" value="1" <?php echo ($ctag->GetAtt('islist')==1 ? " checked":"");?>> 添加到列表附加字段</label> | |||
<span>(列表模板“{dede:list channelid='模型id' addfields='字段1,字段2'}{/dede:list}”中,标签“[field:name/]”调用)</span> | |||
</td> | |||
</tr> | |||
@@ -110,7 +110,6 @@ else if ($action == 'upload') { | |||
$win = new OxWindow(); | |||
make_hash(); | |||
$win->Init("tpl.php", "js/blank.js", "POST' enctype='multipart/form-data' "); | |||
$win->mainTitle = "模块管理"; | |||
$wecome_info = "<a href='templets_main.php'>模板管理</a> - 上传模板"; | |||
$win->AddTitle('请选择要上传的模块文件'); | |||
$win->AddHidden("action", 'uploadok'); | |||
@@ -571,7 +571,7 @@ if (!function_exists('obtainimgs')) { | |||
return $result; | |||
} | |||
} | |||
//联动单筛选{dede:php}AddFilter(模型id,类型,'字段1,字段2');{/dede:php}类型有三种,对应以下case值 | |||
//联动单筛选{dede:php}obtainfilter(模型id,类型,'字段1,字段2');{/dede:php}类型有三种,对应以下case值 | |||
function litimgurls($imgid = 0) | |||
{ | |||
global $dsql, $lit_imglist; | |||
@@ -604,7 +604,7 @@ function string_filter($str, $stype = "inject") | |||
return $str; | |||
} | |||
//联动单筛选三种类型显示 | |||
function AddFilter($channelid, $type = 1, $fieldsnamef = '', $defaulttid = 0, $toptid = 0, $loadtype = 'autofield') | |||
function obtainfilter($channelid, $type = 1, $fieldsnamef = '', $defaulttid = 0, $toptid = 0, $loadtype = 'autofield') | |||
{ | |||
global $tid, $dsql, $id, $aid; | |||
$tid = $defaulttid ? $defaulttid : $tid; | |||