Browse Source

优化悬浮框口

tags/6.0.4^2
xushubieli 2 years ago
parent
commit
dc223c5103
3 changed files with 230 additions and 247 deletions
  1. +176
    -193
      src/dede/archives_do.php
  2. +28
    -28
      src/dede/css/base.css
  3. +26
    -26
      src/dede/css/frame.css

+ 176
- 193
src/dede/archives_do.php View File

@@ -1,5 +1,4 @@
<?php
/**
* 文档处理
*
@@ -15,23 +14,21 @@ require_once(DEDEADMIN . '/inc/inc_archives_functions.php');
require_once(DEDEINC . '/typelink.class.php');
require_once(DEDEINC . '/arc.archives.class.php');
$ENV_GOBACK_URL = (empty($_COOKIE['ENV_GOBACK_URL']) ? 'content_list.php' : $_COOKIE['ENV_GOBACK_URL']);
if (empty($dopost)) {
ShowMsg('对不起,你没指定运行参数', '-1');
ShowMsg('对不起,你没指定运行参数', '-1');
exit();
}
$aid = isset($aid) ? preg_replace("#[^0-9]#", '', $aid) : '';
/*--------------------------
//编辑文档
function editArchives(){ }
---------------------------*/
if ($dopost == 'editArchives') {
$query = "SELECT arc.id,arc.typeid,ch.maintable,ch.editcon
FROM `#@__arctiny` arc
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
LEFT JOIN `#@__channeltype` ch ON ch.id=arc.channel
WHERE arc.id='$aid' ";
FROM `#@__arctiny` arc
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
LEFT JOIN `#@__channeltype` ch ON ch.id=arc.channel
WHERE arc.id='$aid' ";
$row = $dsql->GetOne($query);
$gurl = $row['editcon'];
if ($gurl == '') $gurl = 'article_edit.php';
@@ -41,27 +38,27 @@ if ($dopost == 'editArchives') {
/*--------------------------
//浏览文档
function viewArchives(){ }
---------------------------*/ else if ($dopost == "viewArchives") {
---------------------------*/
else if ($dopost == "viewArchives") {
$aid = preg_replace("#[^0-9]#", '', $aid);
//获取主表信息
$query = "SELECT arc.*,ch.maintable,ch.addtable,ch.issystem,ch.editcon,
tp.typedir,tp.typename,tp.corank,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.sitepath,tp.siteurl
FROM `#@__arctiny` arc
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype
WHERE arc.id='$aid' ";
tp.typedir,tp.typename,tp.corank,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.sitepath,tp.siteurl
FROM `#@__arctiny` arc
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype
WHERE arc.id='$aid' ";
$trow = $dsql->GetOne($query);
$trow['maintable'] = (trim($trow['maintable']) == '' ? '#@__archives' : trim($trow['maintable']));
if ($trow['issystem'] != -1) {
$arcQuery = "SELECT arc.*,tp.typedir,tp.typename,tp.corank,tp.namerule,tp.namerule2,tp.ispart,tp.moresite,tp.sitepath,tp.siteurl
FROM `{$trow['maintable']}` arc LEFT JOIN `#@__arctype` tp on arc.typeid=tp.id
LEFT JOIN `#@__channeltype` ch on ch.id=arc.channel WHERE arc.id='$aid' ";
FROM `{$trow['maintable']}` arc LEFT JOIN `#@__arctype` tp on arc.typeid=tp.id
LEFT JOIN `#@__channeltype` ch on ch.id=arc.channel WHERE arc.id='$aid' ";
$arcRow = $dsql->GetOne($arcQuery);
PutCookie('DedeUserID', $arcRow['mid'], 1800);
PutCookie('DedeLoginTime', time(), 1800);
if ($arcRow['ismake'] == -1 || $arcRow['corank'] != 0 || $arcRow['arcrank'] != 0 || ($arcRow['typeid'] == 0 && $arcRow['channel'] != -1) || $arcRow['money'] > 0) {
echo "<script language='javascript'>location.href='{$cfg_phpurl}/view.php?aid={$aid}';</script>";
echo "<script>location.href='{$cfg_phpurl}/view.php?aid={$aid}';</script>";
exit();
}
} else {
@@ -113,42 +110,43 @@ function viewArchives(){ }
if (!file_exists($truefile)) {
MakeArt($aid, TRUE);
}
echo "<script language='javascript'>location.href='$arcurl" . "?" . time() . "';</script>";
echo "<script>location.href='$arcurl" . "?" . time() . "';</script>";
exit();
}
/*--------------------------
//异步上传缩略图
function uploadLitpic(){ }
---------------------------*/ else if ($dopost == "uploadLitpic") {
---------------------------*/
else if ($dopost == "uploadLitpic") {
$upfile = AdminUpload('litpic', 'imagelit', 0, false);
if ($upfile == '-1') {
$msg = "<script language='javascript'>
$msg = "<script>
parent.document.getElementById('uploadwait').style.display = 'none';
alert('你没指定要上传的文件或文件大小超过限制');
alert('你没指定要上传的文件或文件大小超过限制');
</script>";
} else if ($upfile == '-2') {
$msg = "<script language='javascript'>
$msg = "<script>
parent.document.getElementById('uploadwait').style.display = 'none';
alert('上传文件失败,请检查原因');
alert('上传文件失败,请检查原因');
</script>";
} else if ($upfile == '0') {
$msg = "<script language='javascript'>
$msg = "<script>
parent.document.getElementById('uploadwait').style.display = 'none';
alert('文件类型不正确');
alert('文件类型不正确');
</script>";
} else {
if (!empty($cfg_uplitpic_cut) && $cfg_uplitpic_cut == 'N') {
$msg = "<script language='javascript'>
$msg = "<script>
parent.document.getElementById('uploadwait').style.display = 'none';
parent.document.getElementById('picname').value = '{$upfile}';
if(parent.document.getElementById('divpicview'))
{
parent.document.getElementById('divpicview').style.width = '150px';
parent.document.getElementById('divpicview').innerHTML = \"<img src='{$upfile}?n' width='150' />\";
parent.document.getElementById('divpicview').innerHTML = \"<img src='{$upfile}?n' width='150'>\";
}
</script>";
} else {
$msg = "<script language='javascript'>
$msg = "<script>
parent.document.getElementById('uploadwait').style.display = 'none';
window.open('imagecut.php?f=picname&isupload=yes&file={$upfile}', 'popUpImagesWin', 'scrollbars=yes,resizable=yes,statebar=no,width=800,height=600,left=150, top=50');
</script>";
@@ -160,20 +158,21 @@ function uploadLitpic(){ }
/*--------------------------
//推荐文档
function commendArchives(){ }
---------------------------*/ else if ($dopost == "commendArchives") {
---------------------------*/
else if ($dopost == "commendArchives") {
CheckPurview('a_Commend,sys_ArcBatch');
if (!empty($aid) && empty($qstr)) {
$qstr = $aid;
}
if ($qstr == '') {
ShowMsg("参数无效", $ENV_GOBACK_URL);
ShowMsg("参数无效", $ENV_GOBACK_URL);
exit();
}
$arcids = preg_replace("#[^0-9,]#", '', preg_replace("#`#", ',', $qstr));
$query = "SELECT arc.id,arc.typeid,ch.issystem,ch.maintable,ch.addtable FROM `#@__arctiny` arc
LEFT JOIN `#@__arctype` tp on tp.id=arc.typeid
LEFT JOIN `#@__channeltype` ch on ch.id=tp.channeltype
WHERE arc.id in($arcids) ";
LEFT JOIN `#@__arctype` tp on tp.id=arc.typeid
LEFT JOIN `#@__channeltype` ch on ch.id=tp.channeltype
WHERE arc.id in($arcids) ";
$dsql->SetQuery($query);
$dsql->Execute();
while ($row = $dsql->GetArray()) {
@@ -190,19 +189,18 @@ function commendArchives(){ }
$dsql->ExecuteNoneQuery(" UPDATE `{$maintable}` SET `flag`='$flag' WHERE aid='{$aid}' ");
}
}
ShowMsg("成功把所选的文档设为推荐", $ENV_GOBACK_URL);
ShowMsg("成功把所选的文档设为推荐", $ENV_GOBACK_URL);
exit();
}
/*--------------------------
//生成HTML
function makeArchives();
---------------------------*/ else if ($dopost == "makeArchives") {
---------------------------*/
else if ($dopost == "makeArchives") {
CheckPurview('sys_MakeHtml,sys_ArcBatch');
if (!empty($aid) && empty($qstr)) $qstr = $aid;
if ($qstr == '') {
ShowMsg('参数无效', $ENV_GOBACK_URL);
ShowMsg('参数无效', $ENV_GOBACK_URL);
exit();
}
require_once(DEDEADMIN . '/inc/inc_archives_functions.php');
@@ -212,25 +210,26 @@ function makeArchives();
$i++;
$pageurl = MakeArt($aid, false);
}
ShowMsg("成功更新指定 $i 个文件...", $ENV_GOBACK_URL);
ShowMsg("成功更新指定 $i 个文件", $ENV_GOBACK_URL);
exit();
}
/*--------------------------
//审核文档
function checkArchives() { }
---------------------------*/ else if ($dopost == "checkArchives") {
---------------------------*/
else if ($dopost == "checkArchives") {
CheckPurview('a_Check,a_AccCheck,sys_ArcBatch');
require_once(DEDEADMIN . "/inc/inc_archives_functions.php");
if (!empty($aid) && empty($qstr)) $qstr = $aid;
if ($qstr == '') {
ShowMsg("参数无效", $ENV_GOBACK_URL);
ShowMsg("参数无效", $ENV_GOBACK_URL);
exit();
}
$arcids = preg_replace("#[^0-9,]#", '', preg_replace("#`#", ',', $qstr));
$query = "SELECT arc.id,arc.typeid,ch.issystem,ch.maintable,ch.addtable FROM `#@__arctiny` arc
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype
WHERE arc.id in($arcids) ";
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype
WHERE arc.id in($arcids) ";
$dsql->SetQuery($query);
$dsql->Execute('ckall');
while ($row = $dsql->GetArray('ckall')) {
@@ -245,13 +244,14 @@ function checkArchives() { }
$dsql->ExecuteNoneQuery("UPDATE `#@__taglist` SET arcrank='0' WHERE aid='$aid' ");
$pageurl = MakeArt($aid, false);
}
ShowMsg("成功审核指定的文档", $ENV_GOBACK_URL);
ShowMsg("成功审核指定的文档", $ENV_GOBACK_URL);
exit();
}
/*--------------------------
//删除文档
function delArchives(){ }
---------------------------*/ else if ($dopost == "delArchives") {
---------------------------*/
else if ($dopost == "delArchives") {
CheckPurview('a_Del,a_AccDel,a_MyDel,sys_ArcBatch');
require_once(DEDEINC . "/oxwindow.class.php");
if (empty($fmdo)) $fmdo = '';
@@ -261,12 +261,11 @@ function delArchives(){ }
$qstr = $aid;
}
if ($qstr == '') {
ShowMsg("参数无效", $ENV_GOBACK_URL);
ShowMsg("参数无效", $ENV_GOBACK_URL);
exit();
}
$qstrs = explode("`", $qstr);
$okaids = array();
foreach ($qstrs as $aid) {
if (!isset($okaids[$aid])) {
DelArc($aid);
@@ -274,7 +273,7 @@ function delArchives(){ }
$okaids[$aid] = 1;
}
}
ShowMsg("成功删除指定的文档", $ENV_GOBACK_URL);
ShowMsg("成功删除指定的文档", $ENV_GOBACK_URL);
exit();
} else {
$wintitle = "文档管理-删除文档";
@@ -292,68 +291,66 @@ function delArchives(){ }
}
/*-----------------------------
function moveArchives(){ }
------------------------------*/ else if ($dopost == 'moveArchives') {
------------------------------*/
else if ($dopost == 'moveArchives') {
CheckPurview('sys_ArcBatch');
if (empty($totype)) {
require_once(DEDEINC . '/typelink.class.php');
if (!empty($aid) && empty($qstr)) $qstr = $aid;
AjaxHead();
$channelid = empty($channelid) ? 0 : $channelid;
$tl = new TypeLink($aid);
$typeOptions = $tl->GetOptionArray(0, $admin_catalogs, $channelid);
$typeOptions = "<select name='totype' style='width:90%'>
<option value='0'>请选择移动到的位置...</option>\r\n
$typeOptions = "<select name='totype' style='width:320px'>
<option value='0'>请选择移动到的位置</option>
$typeOptions
</select>";
//输出AJAX可移动窗体
$divname = 'moveArchives';
echo "<div class='title' onmousemove=\"DropMoveHand('{$divname}', 225);\" onmousedown=\"DropStartHand();\" onmouseup=\"DropStopHand();\">\r\n";
echo " <div class='titLeft'>移动文档</div>\r\n";
echo " <div class='titRight'><img src='images/ico-close.gif' style='cursor:pointer;' onclick='HideObj(\"{$divname}\");ChangeFullDiv(\"hide\");' alt='关闭' title='关闭' /></div>\r\n";
echo "</div>\r\n";
echo "<form name='quickeditform' action='archives_do.php' method='post'>\r\n";
echo "<input type='hidden' name='dopost' value='{$dopost}' />\r\n";
echo "<input type='hidden' name='qstr' value='{$qstr}' />\r\n";
echo "<table width='100%' style='margin-top:6px;z-index:9000;'>\r\n";
?>
<tr height='28'>
echo "<div class='title' onmousemove=\"DropMoveHand('{$divname}', 225);\" onmousedown=\"DropStartHand();\" onmouseup=\"DropStopHand();\">";
echo " <div class='titLeft'>移动文档</div>";
echo " <div class='titRight'><img src='images/ico-close.gif' style='cursor:pointer;' onclick='HideObj(\"{$divname}\");ChangeFullDiv(\"hide\");' title='关闭'></div>";
echo "</div>";
echo "<form name='quickeditform' action='archives_do.php' method='post'>";
echo "<input type='hidden' name='dopost' value='{$dopost}'>";
echo "<input type='hidden' name='qstr' value='{$qstr}'>";
echo "<table width='100%' style='display:inline-block;z-index:9000'>";
?>
<tr height='26'>
<td width="80" class='bline'>&nbsp;目标栏目:</td>
<td class='bline'>
<?php echo $typeOptions; ?>
</td>
</tr>
<tr height='32'>
<tr height='26'>
<td width="80" class='bline'>&nbsp;文档ID:</td>
<td class='bline'>
<input type='text' name='tmpids' value="<?php echo $qstr; ?>" style='width:310px;overflow:hidden;' />
<br />
<input type='text' name='tmpids' value="<?php echo $qstr; ?>" style='width:320px;overflow:hidden'><br>
移动到的目标栏目必须和选定的文档频道类型一致,否则程序会自动勿略不符合的文档。
</td>
</tr>
<tr height='32'>
<td colspan='2' align='center' style='padding-top:12px'>
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer" />
<tr height='36'>
<td colspan='2' align='center' style='padding-top:10px'>
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" style="cursor:pointer">
&nbsp;&nbsp;
<img src="images/button_back.gif" width="60" height="22" border="0" onclick='HideObj("<?php echo $divname; ?>");ChangeFullDiv("hide");' style="cursor:pointer" />
<img src="images/button_back.gif" width="60" height="22" onclick='HideObj("<?php echo $divname; ?>");ChangeFullDiv("hide");' style="cursor:pointer">
</td>
</td>
</tr>
</table>
</form>
<?php
<?php
//AJAX窗体结束
} else {
} else {
$totype = preg_replace("#[^0-9]#", '', $totype);
$typeInfos = $dsql->GetOne("SELECT tp.channeltype,tp.ispart,tp.channeltype,ch.maintable,ch.addtable,ch.issystem FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch on ch.id=tp.channeltype WHERE tp.id='$totype' ");
$idtype = "id";
if (!is_array($typeInfos)) {
ShowMsg('参数错误', '-1');
ShowMsg('参数错误', '-1');
exit();
}
if ($typeInfos['ispart'] != 0) {
ShowMsg('文档保存的栏目必须为最终列表栏目', '-1');
ShowMsg('文档保存的栏目必须为最终列表栏目', '-1');
exit();
}
if (empty($typeInfos['addtable'])) {
@@ -384,21 +381,22 @@ function moveArchives(){ }
$arc = new Archives($aid);
$arc->MakeHtml();
}
ShowMsg("成功移动 $j 个文档", $ENV_GOBACK_URL);
ShowMsg("成功移动 $j 个文档", $ENV_GOBACK_URL);
exit();
}
}
/*-----------------------------
//还原文档
function RbReturnArchives(){ }
------------------------------*/ else if ($dopost == 'return') {
------------------------------*/
else if ($dopost == 'return') {
CheckPurview('a_Del,a_AccDel,a_MyDel,sys_ArcBatch');
require_once(DEDEINC . "/oxwindow.class.php");
if (!empty($aid) && empty($qstr)) $qstr = $aid;
if ($qstr == '') {
ShowMsg("参数无效", "recycling.php");
ShowMsg("参数无效", "recycling.php");
exit();
}
$qstrs = explode("`", $qstr);
@@ -406,13 +404,14 @@ function RbReturnArchives(){ }
$dsql->ExecuteNoneQuery("UPDATE `#@__archives` SET arcrank='-1',ismake='0' WHERE id='$aid'");
$dsql->ExecuteNoneQuery("UPDATE `#@__arctiny` SET `arcrank` = '-1' WHERE id = '$aid'; ");
}
ShowMsg("成功还原指定的文档", "recycling.php");
ShowMsg("成功还原指定的文档", "recycling.php");
exit();
}
/*-----------------------------
//清空文档
function RbClearArchives(){ }
------------------------------*/ else if ($dopost == 'clear') {
------------------------------*/
else if ($dopost == 'clear') {
CheckPurview('a_Del,a_AccDel,a_MyDel,sys_ArcBatch');
require_once(DEDEINC . "/oxwindow.class.php");
if (empty($fmdo)) $fmdo = '';
@@ -421,7 +420,7 @@ function RbClearArchives(){ }
if ($fmdo == 'yes') {
if (!empty($aid) && empty($qstr)) $qstr = $aid;
if ($qstr == '') {
ShowMsg("参数无效", "recycling.php");
ShowMsg("参数无效", "recycling.php");
exit();
}
$qstrs = explode(",", $qstr);
@@ -434,7 +433,7 @@ function RbClearArchives(){ }
$okaids[$qstr] = 1;
}
}
ShowMsg("成功删除指定的文档", "recycling.php");
ShowMsg("成功删除指定的文档", "recycling.php");
exit();
} else {
$dsql->SetQuery("SELECT id FROM `#@__archives` WHERE `arcrank` = '-2'");
@@ -446,7 +445,7 @@ function RbClearArchives(){ }
}
$num = $dsql->GetTotalRow();
if (empty($num)) {
ShowMsg("对不起,未发现相关文档", "recycling.php");
ShowMsg("对不起,未发现相关文档", "recycling.php");
exit();
}
$wintitle = "文档管理-清空所有文档";
@@ -458,7 +457,7 @@ function RbClearArchives(){ }
$win->AddHidden("qstr", $qstr);
$win->AddHidden("aid", $aid);
$win->AddHidden("recycle", $recycle);
$win->AddTitle("本次操作将清空回收站<font color='#FF0000'>所有共 $num 篇文档</font><br>你确实要永久删除“ $qstr ”这些文档?");
$win->AddTitle("本次操作将清空回收站所有共 $num 篇文档<br>你确实要永久删除“ $qstr ”这些文档?");
$winform = $win->GetWindow("ok");
$win->Display();
}
@@ -466,21 +465,20 @@ function RbClearArchives(){ }
/*-----------------------------
//清除文档
function RbDelArchives(){ }
------------------------------*/ else if ($dopost == 'del') {
------------------------------*/
else if ($dopost == 'del') {
CheckPurview('a_Del,a_AccDel,a_MyDel,sys_ArcBatch');
require_once(DEDEINC . "/oxwindow.class.php");
if (empty($fmdo)) $fmdo = '';
$recycle = empty($recycle) ? "" : $recycle;
if ($fmdo == 'yes') {
if (!empty($aid) && empty($qstr)) $qstr = $aid;
if ($qstr == '') {
ShowMsg("参数无效", "recycling.php");
ShowMsg("参数无效", "recycling.php");
exit();
}
$qstrs = explode("`", $qstr);
$okaids = array();
foreach ($qstrs as $aid) {
if (!isset($okaids[$aid])) {
DelArc($aid, "OK", "", $recycle);
@@ -488,7 +486,7 @@ function RbDelArchives(){ }
$okaids[$aid] = 1;
}
}
ShowMsg("成功删除指定的文档", "recycling.php");
ShowMsg("成功删除指定的文档", "recycling.php");
exit();
} else {
$wintitle = "文档管理-删除文档";
@@ -508,7 +506,8 @@ function RbDelArchives(){ }
/*-----------------------------
//快速编辑
function quickEdit(){ }
------------------------------*/ else if ($dopost == 'quickEdit') {
------------------------------*/
else if ($dopost == 'quickEdit') {
require_once(DEDEADMIN . "/inc/inc_catalog_options.php");
AjaxHead();
$query = "SELECT ch.typename as channelname,ch.addtable,ar.membername as rankname,arc.*
@@ -517,83 +516,82 @@ function quickEdit(){ }
LEFT JOIN `#@__arcrank` ar ON ar.rank=arc.arcrank WHERE arc.id='$aid' ";
$arcRow = $dsql->GetOne($query);
$divname = 'quickEdit';
echo "<div class='title' onmousemove=\"DropMoveHand('{$divname}', 225);\" onmousedown=\"DropStartHand();\" onmouseup=\"DropStopHand();\">\r\n";
echo " <div class='titLeft'>快速属性编辑</div>\r\n";
echo " <div class='titRight'><img src='images/ico-close.gif' style='cursor:pointer;' onclick='HideObj(\"{$divname}\");ChangeFullDiv(\"hide\");' alt='关闭' title='关闭' /></div>\r\n";
echo "</div>\r\n";
echo "<form name='quickeditform' action='archives_do.php?dopost=quickEditSave&aid={$aid}' method='post'>\r\n";
echo "<input type='hidden' name='addtable' value='{$arcRow['addtable']}' />\r\n";
echo "<input type='hidden' name='oldtypeid' value='{$arcRow['typeid']}' />\r\n";
echo "<table width='100%' style='margin-top:6px;z-index:9000;'>\r\n";
echo "<div class='title' onmousemove=\"DropMoveHand('{$divname}', 225);\" onmousedown=\"DropStartHand();\" onmouseup=\"DropStopHand();\">";
echo "<div class='titLeft'>快速属性编辑</div>";
echo "<div class='titRight'><img src='images/ico-close.gif' style='cursor:pointer;' onclick='HideObj(\"{$divname}\");ChangeFullDiv(\"hide\");' title='关闭'></div>";
echo "</div>";
echo "<form name='quickeditform' action='archives_do.php?dopost=quickEditSave&aid={$aid}' method='post'>";
echo "<input type='hidden' name='addtable' value='{$arcRow['addtable']}'>";
echo "<input type='hidden' name='oldtypeid' value='{$arcRow['typeid']}'>";
echo "<table width='100%' style='display:inline-block;z-index:9000'>";
?>
<tr height='32'>
<tr height='26'>
<td width="80" class='bline'>&nbsp;所属栏目:</td>
<td class='bline'>
<?php
$typeOptions = GetOptionList($arcRow['typeid'], $cuserLogin->getUserChannel(), $arcRow['channel']);
echo "<select name='typeid' style='width:70%'>\r\n";
if ($arcRow["typeid"] == "0") echo "<option value='0' selected>请选择栏目...</option>\r\n";
echo "<select name='typeid' style='width:320px'>";
if ($arcRow["typeid"] == "0") echo "<option value='0' selected>请选择栏目</option>";
echo $typeOptions;
echo "</select>";
?>
</td>
</tr>
<tr height='28'>
<td width="80" class='bline'>&nbsp;属 性:</td>
<tr height='26'>
<td width="80" class='bline'>&nbsp;属性:</td>
<td class='bline'>
<input type='hidden' name='oldflag' value='<?php echo $arcRow['flag']; ?>' />
<input type='hidden' name='oldflag' value='<?php echo $arcRow['flag']; ?>'>
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while ($trow = $dsql->GetObject()) {
if ($trow->att == 'j' || $trow->att == 'p') continue;
if (preg_match("#" . $trow->att . "#", $arcRow['flag']))
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked' /> {$trow->attname}.{$trow->att}</label> ";
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked'>&nbsp;{$trow->attname}{$trow->att}[{$trow->att}]</label>&nbsp;";
else
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' /> {$trow->attname}.{$trow->att}</label> ";
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'>&nbsp;{$trow->attname}[{$trow->att}]</label>&nbsp;";
}
?>
</td>
</tr>
<tr height='32'>
<td width="80" class='bline'>&nbsp;标 题:</td>
<tr height='26'>
<td width="80" class='bline'>&nbsp;标题:</td>
<td class='bline'>
<input name="title" type="text" id="title" value="<?php echo $arcRow['title']; ?>" style="width:90%" />
<input name="title" type="text" id="title" value="<?php echo $arcRow['title']; ?>" style="width:320px">
</td>
</tr>
<tr height='32'>
<tr height='26'>
<td width="80" class='bline'>&nbsp;简略标题:</td>
<td class='bline'>
<input name="shorttitle" type="text" id="shorttitle" value="<?php echo $arcRow['shorttitle']; ?>" style="width:60%" />
<input name="shorttitle" type="text" id="shorttitle" value="<?php echo $arcRow['shorttitle']; ?>" style="width:320px">
</td>
</tr>
<tr height='32'>
<tr height='26'>
<td width="80" class='bline'>&nbsp;阅读权限:</td>
<td class='bline'>
<select name="arcrank" id="arcrank" style="width:120px">
<select name="arcrank" id="arcrank" style="width:100px">
<option value='<?php echo $arcRow["arcrank"] ?>'>
<?php echo $arcRow["rankname"] ?> </option>
<?php echo $arcRow["rankname"] ?> </option>
<?php
$urank = $cuserLogin->getUserRank();
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE adminrank<='$urank'");
$dsql->Execute();
while ($row = $dsql->GetObject()) {
echo " <option value='" . $row->rank . "'>" . $row->membername . "</option>\r\n";
echo "<option value='".$row->rank."'>".$row->membername."</option>";
}
?>
</select>
需要金币:<input name="money" type="text" id="money" value="<?php echo $arcRow["money"]; ?>" style="width:80px" />
需要金币:<input name="money" type="text" id="money" value="<?php echo $arcRow["money"]; ?>" style="width:100px">
</td>
</tr>
<tr height='32'>
<tr height='26'>
<td width="80" class='bline'>&nbsp;关键字:</td>
<td class='bline'>
<input name="keywords" type="text" id="keywords" value="<?php echo $arcRow['keywords']; ?>" style="width:70%" />
<input name="keywords" type="text" id="keywords" value="<?php echo $arcRow['keywords']; ?>" style="width:320px">
</td>
</tr>
<tr height='32'>
<td colspan='2' align='center' style='padding-top:12px' class='py-3'>
<tr height='36'>
<td colspan='2' align='center' class='py-3' style='padding-top:10px'>
<button type="submit" class="btn btn-success">保存</button>
&nbsp;&nbsp;
<button type="button" onclick='HideObj("<?php echo $divname; ?>");ChangeFullDiv("hide");' class="btn btn-success">关闭</button>
@@ -603,17 +601,18 @@ function quickEdit(){ }
</table>
</form>
<?php
//AJAX窗体结束
//AJAX窗体结束
}
/*-----------------------------
//保存快速编辑的内容
function quickEditSave(){ }
------------------------------*/ else if ($dopost == 'quickEditSave') {
------------------------------*/
else if ($dopost == 'quickEditSave') {
require_once(DEDEADMIN . '/inc/inc_archives_functions.php');
//权限检测
if (!TestPurview('a_Edit')) {
if (TestPurview('a_AccEdit')) {
CheckCatalog($typeid, "对不起,你没有操作栏目 {$typeid} 的文档权限");
CheckCatalog($typeid, "对不起,你没有操作栏目 {$typeid} 的文档权限");
} else {
CheckArcAdmin($aid, $cuserLogin->getUserID());
}
@@ -622,22 +621,13 @@ function quickEditSave(){ }
$shorttitle = cn_substrR($shorttitle, 36);
$keywords = trim(cn_substrR($keywords, 60));
if (!TestPurview('a_Check,a_AccCheck,a_MyCheck')) $arcrank = -1;
$adminid = $cuserLogin->getUserID();
//属性处理
$flag = isset($flags) ? join(',', $flags) : '';
if (!empty($flag)) {
if (preg_match("#p#", $oldflag)) $flag .= ',p';
if (preg_match("#j#", $oldflag)) $flag .= ',j';
}
/*
else
{
$flag = $oldflag;
}
*/
$query = "UPDATE `#@__archives` SET
typeid = '$typeid',
flag = '$flag',
@@ -661,28 +651,25 @@ function quickEditSave(){ }
}
//更新HTML
$artUrl = MakeArt($aid, TRUE, TRUE);
$backurl = !empty($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : '-1';
ShowMsg('成功更新一篇文档的基本信息', $backurl);
ShowMsg('成功更新一篇文档的基本信息', $backurl);
exit();
}
/*--------------------------
分析并自动获取文档关键词
function makekw(){ }
--------------------------*/ else if ($dopost == "makekw") {
--------------------------*/
else if ($dopost == "makekw") {
CheckPurview('a_Commend,sys_ArcBatch');
if (!empty($aid) && empty($qstr)) $qstr = $aid;
if ($qstr == '') {
ShowMsg("参数无效", $ENV_GOBACK_URL);
ShowMsg("参数无效", $ENV_GOBACK_URL);
exit();
}
$arcids = preg_replace("#[^0-9,]#", '', preg_replace("#`#", ',', $qstr));
$query = "SELECT arc.*, addt.* From `#@__archives` arc LEFT JOIN `#@__addonarticle` addt ON addt.aid=arc.id WHERE arc.id in($arcids) AND arc.channel=1 ";
$dsql->SetQuery($query);
$dsql->Execute();
if (!empty($cfg_bizcore_appid) && !empty($cfg_bizcore_key)) {
$client = new DedeBizClient($cfg_bizcore_hostname, $cfg_bizcore_port);
$client->appid = $cfg_bizcore_appid;
@@ -700,7 +687,7 @@ function makekw(){ }
$description = str_replace(' ', ' ', trim($description));
$description = str_replace('[', ' ', $description);
$description = str_replace(']', ' ', $description);
$description = preg_replace("#[ \r\n\t]{1,}#is", ' ', $description);
$description = preg_replace("#[ \t]{1,}#is", ' ', $description);
$description = str_replace('关键字', '', $description);
$description = str_replace('关键词', '', $description);
$description = addslashes($description);
@@ -713,7 +700,6 @@ function makekw(){ }
while ($row = $dsql->GetArray()) {
//跳过已经有关键字的内容
if (trim($row['keywords']) != '') continue;
$aid = $row['id'];
$keywords = '';
$title = $row['title'];
@@ -725,7 +711,6 @@ function makekw(){ }
$sp->SetSource(Html2Text($body), $cfg_soft_lang, $cfg_soft_lang);
$sp->StartAnalysis();
$allindexs = preg_replace("/#p#|#e#/", '', $sp->GetFinallyIndex());
if (is_array($allindexs) && is_array($titleindexs)) {
foreach ($titleindexs as $k => $v) {
if (strlen($keywords . $k) >= 60) {
@@ -744,11 +729,10 @@ function makekw(){ }
}
}
}
$description = str_replace(' ', ' ', trim($description));
$description = str_replace('[', ' ', $description);
$description = str_replace(']', ' ', $description);
$description = preg_replace("#[ \r\n\t]{1,}#is", ' ', $description);
$description = preg_replace("#[ \t]{1,}#is", ' ', $description);
$description = str_replace('关键字', '', $description);
$description = str_replace('关键词', '', $description);
$description = addslashes($description);
@@ -756,31 +740,29 @@ function makekw(){ }
}
$sp = null;
}
ShowMsg("成功分析指定文档的关键词!", $ENV_GOBACK_URL);
ShowMsg("成功分析指定文档的关键词", $ENV_GOBACK_URL);
exit();
}
/*--------------------------
//批量增加属性
function attsAdd(){ }
---------------------------*/ else if ($dopost == 'attsAdd') {
---------------------------*/
else if ($dopost == 'attsAdd') {
CheckPurview('a_Commend,sys_ArcBatch');
if (!empty($aid) && empty($qstr)) $qstr = $aid;
if ($qstr == '') {
ShowMsg("参数无效", $ENV_GOBACK_URL);
ShowMsg("参数无效", $ENV_GOBACK_URL);
exit();
}
if (empty($flagname)) {
ShowMsg("必须指定要添加的属性", $ENV_GOBACK_URL);
ShowMsg("必须指定要添加的属性", $ENV_GOBACK_URL);
exit();
}
$arcids = preg_replace("#[^0-9,]#", '', preg_replace("#`#", ',', $qstr));
$query = "SELECT arc.id,arc.typeid,ch.issystem,ch.maintable,ch.addtable FROM `#@__arctiny` arc
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype
WHERE arc.id in($arcids) ";
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype
WHERE arc.id in($arcids) ";
$dsql->SetQuery($query);
$dsql->Execute();
while ($row = $dsql->GetArray()) {
@@ -797,7 +779,7 @@ function attsAdd(){ }
$dsql->ExecuteNoneQuery(" UPDATE `{$maintable}` SET `flag`='$flag' WHERE aid='{$aid}' ");
}
}
ShowMsg("成功对选中文档增加指定的属性", $ENV_GOBACK_URL);
ShowMsg("成功对选中文档增加指定的属性", $ENV_GOBACK_URL);
exit();
}
/*--------------------------
@@ -807,18 +789,18 @@ function attsDel(){ }
CheckPurview('a_Commend,sys_ArcBatch');
if (!empty($aid) && empty($qstr)) $qstr = $aid;
if ($qstr == '') {
ShowMsg("参数无效", $ENV_GOBACK_URL);
ShowMsg("参数无效", $ENV_GOBACK_URL);
exit();
}
if (empty($flagname)) {
ShowMsg("必须指定要删除的属性", $ENV_GOBACK_URL);
ShowMsg("必须指定要删除的属性", $ENV_GOBACK_URL);
exit();
}
$arcids = preg_replace("#[^0-9,]#", '', preg_replace("#`#", ',', $qstr));
$query = "SELECT arc.id,arc.typeid,ch.issystem,ch.maintable,ch.addtable FROM `#@__arctiny` arc
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype
WHERE arc.id in($arcids) ";
LEFT JOIN `#@__arctype` tp ON tp.id=arc.typeid
LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype
WHERE arc.id in($arcids) ";
$dsql->SetQuery($query);
$dsql->Execute();
while ($row = $dsql->GetArray()) {
@@ -845,85 +827,86 @@ function attsDel(){ }
$flag = trim(join(',', $okflags));
$dsql->ExecuteNoneQuery(" UPDATE `{$maintable}` SET `flag`='$flag' WHERE {$idname}='{$aid}' ");
}
ShowMsg("成功对选中文档删除指定的属性", $ENV_GOBACK_URL);
ShowMsg("成功对选中文档删除指定的属性", $ENV_GOBACK_URL);
exit();
}
/*--------------------------
//获得批量属性处理的AJAX窗体
function attsDlg(){ }
---------------------------*/ else if ($dopost == 'attsDlg') {
---------------------------*/
else if ($dopost == 'attsDlg') {
if (!empty($aid) && empty($qstr)) $qstr = $aid;
$dojobname = ($dojob == 'attsDel' ? '批量删除属性' : '批量增加属性');
AjaxHead();
//输出AJAX可移动窗体
$divname = 'attsDlg';
echo "<div class='title' onmousemove=\"DropMoveHand('{$divname}', 225);\" onmousedown=\"DropStartHand();\" onmouseup=\"DropStopHand();\">\r\n";
echo " <div class='titLeft'>{$dojobname}</div>\r\n";
echo " <div class='titRight'><img src='images/ico-close.gif' style='cursor:pointer;' onclick='HideObj(\"{$divname}\");ChangeFullDiv(\"hide\");' alt='关闭' title='关闭' /></div>\r\n";
echo "</div>\r\n";
echo "<form name='quickeditform' action='archives_do.php' method='post'>\r\n";
echo "<input type='hidden' name='dopost' value='{$dojob}' />\r\n";
echo "<input type='hidden' name='qstr' value='{$qstr}' />\r\n";
echo "<table width='100%' style='margin-top:6px;z-index:9000;'>\r\n";
echo "<div class='title' onmousemove=\"DropMoveHand('{$divname}', 225);\" onmousedown=\"DropStartHand();\" onmouseup=\"DropStopHand();\">";
echo "<div class='titLeft'>{$dojobname}</div>";
echo "<div class='titRight'><img src='images/ico-close.gif' style='cursor:pointer;' onclick='HideObj(\"{$divname}\");ChangeFullDiv(\"hide\");' title='关闭'></div>";
echo "</div>";
echo "<form name='quickeditform' action='archives_do.php' method='post'>";
echo "<input type='hidden' name='dopost' value='{$dojob}'>";
echo "<input type='hidden' name='qstr' value='{$qstr}'>";
echo "<table width='100%' style='display:inline-block;z-index:9000'>";
?>
<tr height='28'>
<tr height='26'>
<td width="80" class='bline'>&nbsp;属 性:</td>
<td class='bline'>
<input type='hidden' name='oldflag' value='<?php echo $arcRow['flag']; ?>' />
<input type='hidden' name='oldflag' value='<?php echo $arcRow['flag']; ?>'>
<?php
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC");
$dsql->Execute();
while ($trow = $dsql->GetObject()) {
if ($trow->att == 'j' || $trow->att == 'p') continue;
echo "<label><input class='np' type='radio' name='flagname' id='flags{$trow->att}' value='{$trow->att}' /> {$trow->attname}.{$trow->att}</label>";
echo "<label><input class='np' type='radio' name='flagname' id='flags{$trow->att}' value='{$trow->att}'>&nbsp;{$trow->attname}[{$trow->att}]</label>&nbsp;";
}
?>
</td>
</tr>
<tr height='32'>
<tr height='26'>
<td width="80" class='bline'>&nbsp;文档ID:</td>
<td class='bline'>
<input type='text' name='tmpids' value="<?php echo $qstr; ?>" style='width:310px;overflow:hidden;' />
<input type='text' name='tmpids' value="<?php echo $qstr; ?>" style='width:320px;overflow:hidden'>
</td>
</tr>
<tr height='32'>
<td colspan='2' align='center' style='padding-top:12px'>
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" border="0" style="cursor:pointer" />
<tr height='36'>
<td colspan='2' align='center' style='padding-top:10px'>
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" class="np" style="cursor:pointer">
&nbsp;&nbsp;
<img src="images/button_back.gif" width="60" height="22" border="0" onclick='HideObj("<?php echo $divname; ?>");ChangeFullDiv("hide");' style="cursor:pointer" />
<img src="images/button_back.gif" width="60" height="22" onclick='HideObj("<?php echo $divname; ?>");ChangeFullDiv("hide");' style="cursor:pointer">
</td>
</td>
</tr>
</table>
</form>
<?php
//AJAX窗体结束
//AJAX窗体结束
}
/*------------------------
function getCatMap() { }
-------------------------*/ else if ($dopost == 'getCatMap') {
require_once(DEDEINC . '/typeunit.class.selector.php');
-------------------------*/
else if ($dopost == 'getCatMap') {
require_once(DEDEINC.'/typeunit.class.selector.php');
AjaxHead();
//输出AJAX可移动窗体
$divname = 'getCatMap';
echo "<div class='title' style='cursor:default;'>\r\n";
echo " <div class='titLeft'>栏目快速选择器</div>\r\n";
echo " <div class='titRight'><img src='images/ico-close.gif' style='cursor:pointer;' onclick='HideObj(\"{$divname}\");ChangeFullDiv(\"hide\");' alt='关闭' title='关闭' /></div>\r\n";
echo "</div>\r\n";
echo "<div class='title' style='cursor:default'>";
echo "<div class='titLeft'>栏目快速选择器</div>";
echo "<div class='titRight'><img src='images/ico-close.gif' style='cursor:pointer;' onclick='HideObj(\"{$divname}\");ChangeFullDiv(\"hide\");' title='关闭'></div>";
echo "</div>";
$tus = new TypeUnitSelector();
?>
?>
<form name='quicksel' action='javascript:;' method='get'>
<div class='quicksel'>
<?php $tus->ListAllType($channelid); ?>
</div>
<div align='center' class='quickselfoot'>
<img src="images/button_ok.gif" onclick="getSelCat('<?php echo $targetid; ?>');" width="60" height="22" class="np" border="0" style="cursor:pointer" />
<img src="images/button_ok.gif" onclick="getSelCat('<?php echo $targetid; ?>');" width="60" height="22" class="np" style="cursor:pointer">
&nbsp;&nbsp;
<img src="images/button_back.gif" onclick='HideObj("<?php echo $divname; ?>");ChangeFullDiv("hide");' width="60" height="22" border="0" style="cursor:pointer" />
<img src="images/button_back.gif" onclick='HideObj("<?php echo $divname; ?>");ChangeFullDiv("hide");' width="60" height="22" style="cursor:pointer">
</div>
</form>
<?php
//AJAX窗体结束
//AJAX窗体结束
}
?>

+ 28
- 28
src/dede/css/base.css View File

@@ -1,38 +1,38 @@
*{font-size:12px;letter-spacing:.4px}
body{font:12px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#424b51;background:#ffffff;line-height:1.5}
body{font:12px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;color:#424b51;background:#fff;line-height:1.5}
form,h1,h2,h3,ul,ol,div{margin:0;padding:0}
td{line-height:1.5}
td,th,div{word-break:break-all;word-wrap:break-word}
b,strong{font-weight:400}
li,dd{margin:0;padding:0;list-style-type:none}
select{height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;color:#495057;background:#ffffff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}
input[type=button],input[type=submit],input[type=reset]{padding:.25rem .5rem;line-height:1.5;color:#ffffff;background:#28a745;border-radius:.2rem;border:none;cursor:pointer}
input[type=text],input[type=password]{padding:.375rem .75rem;height:calc(1.5em + .75rem + 2px);font-size:1rem;font-weight:400;color:#495057;background:#ffffff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;line-height:18px;vertical-align:middle}
input[type=text]:focus,input[type="password"]:focus{border-color:#28a745;color:#333333;-moz-box-shadow:0 0 2px #28a745;-webkit-box-shadow:0 0 2px #28a745;box-shadow:0 0 2px #28a745;outline:none}
select{height:calc(1.5em + .75rem + 2px);padding:.375rem .75rem;font-size:1rem;font-weight:400;color:#495057;background:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}
input[type=button],input[type=submit],input[type=reset]{padding:.25rem .5rem;line-height:1.5;color:#fff;background:#28a745;border-radius:.2rem;border:none;cursor:pointer}
input[type=text],input[type=password]{padding:.375rem .75rem;height:calc(1.5em + .75rem + 2px);font-size:1rem;font-weight:400;color:#495057;background:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;line-height:18px;vertical-align:middle}
input[type=text]:focus,input[type="password"]:focus{border-color:#28a745;color:#333;-moz-box-shadow:0 0 2px #28a745;-webkit-box-shadow:0 0 2px #28a745;box-shadow:0 0 2px #28a745;outline:none}
input:disabled,input[readonly]{background:#e9ecef;opacity:1}
label{display:inline-block;margin:.5rem 0}
label{display:inline-block;margin:.6rem 0}
.alltxt{padding:.25rem .5rem;line-height:18px;vertical-align:middle;border-width:1px;border-style:solid;border-color:#707070 #CECECE #CECECE #707070}
textarea{padding:.25rem .5rem;font-size:1rem;font-weight:400;color:#495057;background:#ffffff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;vertical-align:middle;line-height:16px;overflow:auto;resize:vertical}
textarea:focus{border-color:#28a745;color:#333333;-moz-box-shadow:0 0 2px #28a745;-webkit-box-shadow:0 0 2px #28a745;box-shadow:0 0 2px #28a745}
textarea{padding:.25rem .5rem;font-size:1rem;font-weight:400;color:#495057;background:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:.25rem;transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out;vertical-align:middle;line-height:16px;overflow:auto;resize:vertical}
textarea:focus{border-color:#28a745;color:#333;-moz-box-shadow:0 0 2px #28a745;-webkit-box-shadow:0 0 2px #28a745;box-shadow:0 0 2px #28a745}
img{margin-right:6px;border-radius:.2rem;vertical-align:baseline}
h1,h2,h3{font-size:18px;color:#424b51}
a:link{color:#424b51;text-decoration:none}
a:hover{opacity:.8}
a:visited{color:#666666}
.pubinputs{padding:.25rem .5rem;width:250px;height:16px;line-height:16px;border-width:1px;border-style:solid;border-color:#999999 #dddddd #dddddd #999999}
.iptxt{padding:.25rem .5rem;height:14px;line-height:14px;border-width:1px;border-style:solid;border-color:#999999 #dddddd #dddddd #999999}
a:visited{color:#666}
.pubinputs{padding:.25rem .5rem;width:250px;height:16px;line-height:16px;border-width:1px;border-style:solid;border-color:#999 #dddddd #dddddd #999}
.iptxt{padding:.25rem .5rem;height:14px;line-height:14px;border-width:1px;border-style:solid;border-color:#999 #dddddd #dddddd #999}
.pubinput{padding-top:6px;padding-bottom:0;height:24px;width:250px}
.pubinputl{padding-top:6px;padding-bottom:0;height:24px;width:350px}
.np{border:none}
.linerow{border-bottom:1px solid #ACACAC}
.coolbg{padding:.25rem .5rem;border:none;border-right:1px solid #cccccc;border-bottom:1px solid #cccccc;background:#f2f2f2;border-radius:.2rem;cursor:pointer}
.coolbg2{border:1px solid #000000;background:#DFDDD2;height:18px}
.coolbg{padding:.25rem .5rem;border:none;border-bottom:1px solid #ccc;background:#f2f2f2;border-radius:.2rem;cursor:pointer}
.coolbg2{border:1px solid #000;background:#DFDDD2;height:18px}
.ll{border-right:2px solid #ACACAC;border-bottom:2px solid #ACACAC;background:#E6E6E6}
.bline{height:36px;background:#ffffff;border-bottom:1px solid #eeeeee}
.bline{height:36px;background:#fff;border-bottom:1px solid #eee}
#uploadfield{float:left}
.bline2{border-bottom:1px solid #eeeeee}
.coolbt{border-left:1px solid #EFEFEF;border-top:1px solid #EFEFEF;border-right:1px solid #ACACAC;border-bottom:1px solid #ACACAC;background:#E4F7D7;cursor:pointer}
.coolbt2{border-left:1px solid #EFEFEF;border-top:1px solid #EFEFEF;border-right:1px solid #ACACAC;border-bottom:1px solid #ACACAC;background:#F7FCDA}
.bline2{border-bottom:1px solid #eee}
.coolbt{border-left:1px solid #EFEFEF;border-top:1px solid #EFEFEF;border-bottom:1px solid #ACACAC;background:#E4F7D7;cursor:pointer}
.coolbt2{border-left:1px solid #EFEFEF;border-top:1px solid #EFEFEF;border-bottom:1px solid #ACACAC;background:#F7FCDA}
.coolbg3{width:140px;height:20px;border:1px solid #BDC5B4;background:#DFDDD2;text-align:right}
.coolbg61{width:380px;height:26px;line-height:26px;border-top:1px solid #BDC5B4;border-left:1px solid #BDC5B4;border-right:1px solid #BDC5B4;background:#E7F3B1;text-align:right}
.coolbg62{padding:6px;width:380px;height:300px;border:1px solid #BDC5B4;background:#F8FDF0}
@@ -40,15 +40,15 @@ a:visited{color:#666666}
.coolbg5{width:190px;height:6px;border-top:1px solid #BDC5B4;background:#F9FCDC}
.wsselect{height:60px;line-height:24px overflow-y:auto;background:#FCFEF1;overflow:auto}
.dlg{padding:.25rem .5rem;border:2px solid #008E38;background:#F0FAEB;width:360px;line-height:160%}
.pubdlg{z-index:8888;border:4px solid #008E38;background:#ffffff}
.pubdlg .title{border-bottom:1px solid #C9CFC1;background:#F9FCDC;background:url(../images/dlgtitle.gif)repeat-x;height:28px;line-height:28px;text-align:left;cursor:move}
.pubdlg .titLeft{float:left;padding-left:8px;line-height:28px;font-weight:bold;color:#555}
.pubdlg{z-index:8888;border:4px solid #008E38;background:#fff}
.pubdlg .title{border-bottom:1px solid #C9CFC1;background:#F9FCDC;background:url(../images/dlgtitle.gif)repeat-x;height:29px;line-height:29px;text-align:left;cursor:move}
.pubdlg .titLeft{float:left;padding-left:8px;line-height:28px;font-weight:bold;color:#333}
.pubdlg .titRight{float:right;padding:0}
.fullpagediv{position:absolute;width:100%;height:120%;top:0;left:0;background:#cdcdcd;filter:Alpha(opacity=50);-moz-opacity:.5;opacity:.5;z-index:1999}
.quicksel{margin-left:10px;margin-top:10px;width:680px;height:420px;overflow:auto;z-index:10005}
.quickselfoot{padding-top:8px;border-top:1px dashed #C0CC9D}
.quickselItem{margin-bottom:8px}
.quickselItem .topcat{padding-left:6px;line-height:24px;border-bottom:1px dashed #cccccc;background:#FBFEEF;clear:both}
.quickselItem .topcat{padding-left:6px;line-height:24px;border-bottom:1px dashed #ccc;background:#FBFEEF;clear:both}
.quickselItem .soncat{padding-left:10px}
.quickselItem .item{float:left;margin-right:8px}
.mysource,.mywriter{padding:.25rem .5rem;width:280px;line-height:160%;border:4px solid #008E38;background:#F0FAEB;z-index:10001}
@@ -59,9 +59,9 @@ a:visited{color:#666666}
#uploadwait{z-index:19999}
.option1{background:#DCECA6}
.option2{background:#F7FBD2}
.option3{background:#ffffff}
.ininput{width:96%;height:20px;border:1px solid #ffffff}
.nbt{padding:2px;background-image:url(../images/allbtbg.gif);background:#ffffff;border:1px solid #A5AF83}
.option3{background:#fff}
.ininput{width:96%;height:20px;border:1px solid #fff}
.nbt{padding:2px;background-image:url(../images/allbtbg.gif);background:#fff;border:1px solid #A5AF83}
.tdt{padding-left:6px}
.waitpage{position:absolute;top:0;left:0;filter:Alpha(opacity=70);-moz-opacity:.7;background:url(../../images/loading1.gif)#ababab center no-repeat;z-index:10000}
.divpre img{max-width:150px;max-height:100px}
@@ -71,14 +71,14 @@ a:visited{color:#666666}
.bodytitle div{float:left}
.bodytitletxt{padding-left:6px;line-height:28px}
.tbtitle td{padding:6px}
.tblist td{padding:6px;background:#ffffff}
.tblist td{padding:6px;background:#fff}
.tblist td.tbsname{padding:6px;background:#F9FFE6}
.colordlg{padding:.25rem .5rem;width:100px;line-height:160%;border:2px dashed #008E38;background:#F0FAEB;z-index:10005}
option.alltype{padding-left:16px;height:18px;line-height:18px;font-size:12px;background:url(../images/arr4.gif)3px 4px no-repeat}
option.btype{padding-left:16px;height:18px;line-height:18px;font-size:12px;background:url(../images/arr4.gif)3px 4px no-repeat}
option.stype{padding-left:24px;font-size:12px;height:18px;line-height:18px;background:url(../images/arrr.gif)10px 4px no-repeat}
.ilist{border-top:1px dashed #eeeeee;border-bottom:1px dashed #eeeeee;border-left:1px dashed #eeeeee}
.ilist td{border-right:1px dashed #eeeeee}
.ilist{border-top:1px dashed #eee;border-bottom:1px dashed #eee;border-left:1px dashed #eee}
.ilist td{border-right:1px dashed #eee}
#typeid2{float:left;font-size:12px;padding:0;height:18px;background:url(../images/typeid2bg.gif)no-repeat;border:0}
#litpic{margin-left:-20px;width:85px;height:20px;filter:alpha(opacity=00);-moz-opacity:.0;opacity:.0;cursor:pointer}
.litpic_span{margin-left:-60px;width:76px;height:22px;overflow:hidden;cursor:pointer}
@@ -88,7 +88,7 @@ option.stype{padding-left:24px;font-size:12px;height:18px;line-height:18px;backg
.gtab a{display:block;float:left;width:80px;height:26px;line-height:26px;text-align:center}
.albCt img{cursor:pointer}
.maintable{width:98%!important;border:1px solid #dee2e6}
span.page-link{color:#ffffff;background:#28a745}
span.page-link{color:#fff;background:#28a745}
a.btn{color:white!important}
.btn-success{background:#28a745;border-color:#28a745}
.table td,.table th{padding:.60rem;vertical-align:middle}

+ 26
- 26
src/dede/css/frame.css View File

@@ -9,35 +9,35 @@ form{margin:0;padding:0}
.head{width:100%;height:76px;overflow:hidden;z-index:8;position:relative}
.top{height:46px;width:100%;background-image:linear-gradient(135deg,#008E38 0%,#639709 100%);overflow:hidden;clear:both}
.top .top_logo{float:left;margin-left:30px;height:46px;line-height:46px}
.top .top_logo a{font-size:20px;font-weight:600;color:#ffffff}
.top .top_version{display:inline-block;margin-top:10px;margin-left:10px;color:#ffffff}
.top .top_logo a{font-size:20px;font-weight:600;color:#fff}
.top .top_version{display:inline-block;margin-top:10px;margin-left:10px;color:#fff}
.top .top_link{float:right;margin-right:30px}
.top .top_link ul{float:left;line-height:46px;overflow:hidden}
.top .top_link ul li.welcome img{margin-top:-4px;margin-right:10px;width:30px;height:30px;vertical-align:middle}
.top .top_link ul li{float:left;color:#ffffff}
.top .top_link ul li a{color:#ffffff;padding-left:20px}
.top .top_link ul li a:hover{color:#cccccc}
.top .top_link ul li{float:left;color:#fff}
.top .top_link ul li a{color:#fff;padding-left:20px}
.top .top_link ul li a:hover{color:#ccc}
.top .top_link .quick{padding:3px 0px 0px 0px;float:left}
.top .top_link .quick a{display:block;color:#C60;float:left;line-height:21px;height:21px;overflow:hidden}
.top .top_link .quick a.ac_qucikmenu{width:81px;background:url(../images/quick_bg.gif)left top no-repeat;letter-spacing:1px;text-indent:8px}
.top .top_link .quick a.ac_qucikmenu:hover{background:url(../images/quick_bg.gif)left bottom no-repeat}
.top .top_link .quick a.ac_qucikadd{width:19px;background:url(../images/quick_bg.gif)right top no-repeat}
.top .top_link .quick a.ac_qucikadd:hover{background:url(../images/quick_bg.gif)right bottom no-repeat}
.topnav{width:100%;height:30px;background:#333333;overflow:hidden;clear:both}
.topnav{width:100%;height:30px;background:#333;overflow:hidden;clear:both}
.topnav .menuact{width:168px;float:left;padding-left:30px;overflow:hidden;padding-top:6px}
.topnav .menuact a{overflow:hidden;color:#eeeeee;padding-right:10px}
.topnav .menuact a:hover{color:#ffffff}
.nav{float:left;padding-left:2px;line-height:26px;color:#999999}
.topnav .menuact a{overflow:hidden;color:#eee;padding-right:10px}
.topnav .menuact a:hover{color:#fff}
.nav{float:left;padding-left:2px;line-height:26px;color:#999}
.nav ul li{float:left;display:block;margin-left:4px}
.nav ul li a{padding:0 10px 0px 10px;color:#FFCC00}
.nav ul li a:hover{color:#ffffff}
.nav ul li a.thisclass,.nav ul li a.thisclass:hover{color:#4E8100;display:block;font-weight:bold;background:#ffffff;line-height:23px;border-top:2px solid #FFDE59;margin-top:4px;padding:0 10px 0px 10px}
.sysmsg{height:30px;overflow:hidden;line-height:30px;padding-right:30px;float:right;color:#999999;width:500px}
.nav ul li a:hover{color:#fff}
.nav ul li a.thisclass,.nav ul li a.thisclass:hover{color:#4E8100;display:block;font-weight:bold;background:#fff;line-height:23px;border-top:2px solid #FFDE59;margin-top:4px;padding:0 10px 0px 10px}
.sysmsg{height:30px;overflow:hidden;line-height:30px;padding-right:30px;float:right;color:#999;width:500px}
.scroll{float:right;overflow:hidden;height:30px}
.scroll ul li,.sysmsg ul li a{color:#bbbbbb}
.scroll ul li,.sysmsg ul li a{color:#bbb}
.scroll ul li{height:26px;overflow:hidden;line-height:26px;float:right;clear:both;padding-left:20px;background:url(../images/ico-sysmsg.png)5px 8px no-repeat}
.scroll ul li a:hover{text-decoration:underline}
.scroll a{padding-left:10px;color:#ffffff}
.scroll a{padding-left:10px;color:#fff}
body.showmenu .left{display:block}
body.hidemenu .left{display:none}
body.showmenu .right{left:220px}
@@ -50,16 +50,16 @@ body.hidemenu .right{left:0}
.main{height:100%}
.main iframe{height:100%;width:99.99%;z-index:20}
.qucikmenu{position:absolute;right:10px;top:32px;z-index:9;display:none}
.qucikmenu ul{width:110px;list-style:none;border:1px solid #E7E7E7;background:#ffffff}
.qucikmenu ul{width:110px;list-style:none;border:1px solid #E7E7E7;background:#fff}
.qucikmenu ul li{display:block;text-align:left}
.qucikmenu ul li a{height:30px;line-height:30px;display:block;color:#666666;padding-left:10px;padding-right:10px}
.qucikmenu ul li a{height:30px;line-height:30px;display:block;color:#666;padding-left:10px;padding-right:10px}
.qucikmenu ul li a:hover{background:#F7F7F7}
.pagemask{width:100%;height:100%;background:#000000;position:absolute;z-index:100;filter:alpha(opacity=70);-moz-opacity:.7;opacity:.7;display:none}
.iframemask{position:absolute;z-index:80;top:0;left:0;background:#ffffff;border:none;filter:alpha(opacity=0);-moz-opacity:0;opacity:0;height:100%;width:100%;display:none}
.allmenu{width:800px;background:#ffffff;z-index:999;position:absolute;left:50%;top:76px;margin-left:-400px;display:none;padding:10px}
.pagemask{width:100%;height:100%;background:#000;position:absolute;z-index:100;filter:alpha(opacity=70);-moz-opacity:.7;opacity:.7;display:none}
.iframemask{position:absolute;z-index:80;top:0;left:0;background:#fff;border:none;filter:alpha(opacity=0);-moz-opacity:0;opacity:0;height:100%;width:100%;display:none}
.allmenu{width:800px;background:#fff;z-index:999;position:absolute;left:50%;top:76px;margin-left:-400px;display:none;padding:10px}
.allmenu .allmenu-box{margin:0 auto;text-align:left;overflow:hidden;padding-left:2px}
.maptop{float:left;width:130px;overflow:hidden;padding-right:6px;padding-left:6px;margin-left:-1px}
.maptop dt.bigitem{padding:5px 10px;background:#333333;color:#ffffff;line-height:18px;font-weight:600}
.maptop dt.bigitem{padding:5px 10px;background:#333;color:#fff;line-height:18px;font-weight:600}
.mapitem dt{line-height:21px;font-weight:bold;text-indent:10px;background:#EFF1F1}
.mapitem ul{margin-top:10px;margin-bottom:10px}
.mapitem ul li{text-indent:20px;line-height:24px;background:url(../images/arrr.gif)4px 6px no-repeat}
@@ -67,12 +67,12 @@ body.hidemenu .right{left:0}
.allmenu a:hover{color:#F63}
#login .theme{clear:both;padding:10px;width:70%;margin-top:20px}
#login .theme li{margin-bottom:15px;margin-top:5px;overflow:hidden}
#login .theme span{color:#000000;width:150px;display:inline-block;float:left;text-align:right;height:22px;line-height:22px}
input[type="text"],input[type="password"]{width:140px;border-width:1px;border-style:solid;border-color:#ffffff;padding:2px 4px;height:18px;line-height:18px;vertical-align:middle;background:#ffffff}
input[type="text"]:focus,input[type="password"]:focus{border-color:#6FB1DF;color:#333333;-moz-box-shadow:0 0 3px #A5C760;-webkit-border-shadow:0 0 3px #A5C760;box-shadow:0 0 3px #A5C760}
* html input.text{width:220px;border:1px solid #a7a6aa;background:#ffffff url(../images/input.gif)0 0 no-repeat;margin-top:-1px;margin-right:5px;margin-bottom:0;margin-left:2px;padding:3px;line-height:12px}
#login .theme span{color:#000;width:150px;display:inline-block;float:left;text-align:right;height:22px;line-height:22px}
input[type="text"],input[type="password"]{width:140px;border-width:1px;border-style:solid;border-color:#fff;padding:2px 4px;height:18px;line-height:18px;vertical-align:middle;background:#fff}
input[type="text"]:focus,input[type="password"]:focus{border-color:#6FB1DF;color:#333;-moz-box-shadow:0 0 3px #A5C760;-webkit-border-shadow:0 0 3px #A5C760;box-shadow:0 0 3px #A5C760}
* html input.text{width:220px;border:1px solid #a7a6aa;background:#fff url(../images/input.gif)0 0 no-repeat;margin-top:-1px;margin-right:5px;margin-bottom:0;margin-left:2px;padding:3px;line-height:12px}
* html input.radio{margin:-1px 0 0 -2px}
.allsearch{float:left;margin-top:7px!important;font-size:12px;border:1px solid #ffffff;border-radius:.2rem}
.np{margin-left:10px;width:40px;height:18px;line-height:18px;font-size:12px;color:#ffffff;cursor:pointer;background:#57960f;border:none;border-radius:.2rem}
.allsearch{float:left;margin-top:7px!important;font-size:12px;border:1px solid #fff;border-radius:.2rem}
.np{margin-left:10px;width:40px;height:18px;line-height:18px;font-size:12px;color:#fff;cursor:pointer;background:#57960f;border:none;border-radius:.2rem}
#help{background:url(../images/dlgtitle.gif)repeat-x scroll 0 0 transparent;bottom:0;left:0;position:absolute;width:100%;height:28px;border-top:1px solid #390;line-height:28px;text-align:right;padding-top:0;padding-bottom:0}
#help #content{padding-right:12px;background:url(../images/gtk-edit.png)no-repeat scroll 0px -1px;padding-left:20px}

Loading…
Cancel
Save