@@ -11,6 +11,34 @@ function checkSubmitAlb() { | |||
$("#albums").val(JSON.stringify(albums)); | |||
return true; | |||
} | |||
function checkMuList(psid, cmid) { | |||
if ($Obj('pagestyle3').checked) { | |||
$Obj('cfgmulist').style.display = 'table-row'; | |||
$Obj('spagelist').style.display = 'none'; | |||
} else if ($Obj('pagestyle1').checked) { | |||
$Obj('cfgmulist').style.display = 'none'; | |||
$Obj('spagelist').style.display = 'table-row'; | |||
} else { | |||
$Obj('cfgmulist').style.display = 'none'; | |||
$Obj('spagelist').style.display = 'none'; | |||
} | |||
} | |||
//删除已经上传的图片 | |||
function delAlbPic(pid) { | |||
var tgobj = $Obj('atlasok' + pid); | |||
fetch('swfupload.php?dopost=del&id=' + pid).then(resp => resp.text()).then((d) => { | |||
tgobj.innerHTML = d; | |||
$Obj('gallery').removeChild(tgobj); | |||
}); | |||
} | |||
//删除已经上传的图片修改时用 | |||
function delAlbPicOld(picfile, pid) { | |||
var tgobj = $Obj('albold' + pid); | |||
fetch('swfupload.php?dopost=delold&picfile=' + picfile).then(resp => resp.text()).then((d) => { | |||
tgobj.innerHTML = d; | |||
$Obj('galleryedit').removeChild(tgobj); | |||
}); | |||
} | |||
function seePicNewAlb(f, imgdid, frname, hpos, acname) { | |||
var newobj = null; | |||
if (f.value == '') return; | |||
@@ -45,32 +73,4 @@ function seePicNewAlb(f, imgdid, frname, hpos, acname) { | |||
nForm.dopost.value = 'save'; | |||
nForm.target = ''; | |||
nForm.litpic.disabled = true; | |||
} | |||
function checkMuList(psid, cmid) { | |||
if ($Obj('pagestyle3').checked) { | |||
$Obj('cfgmulist').style.display = 'table-row'; | |||
$Obj('spagelist').style.display = 'none'; | |||
} else if ($Obj('pagestyle1').checked) { | |||
$Obj('cfgmulist').style.display = 'none'; | |||
$Obj('spagelist').style.display = 'table-row'; | |||
} else { | |||
$Obj('cfgmulist').style.display = 'none'; | |||
$Obj('spagelist').style.display = 'none'; | |||
} | |||
} | |||
//删除已经上传的图片 | |||
function delAlbPic(pid) { | |||
var tgobj = $Obj('atlasok' + pid); | |||
fetch('swfupload.php?dopost=del&id=' + pid).then(resp=>resp.text()).then((d)=>{ | |||
tgobj.innerHTML = d; | |||
$Obj('gallery').removeChild(tgobj); | |||
}); | |||
} | |||
//删除已经上传的图片修改时用 | |||
function delAlbPicOld(picfile, pid) { | |||
var tgobj = $Obj('albold' + pid); | |||
fetch('swfupload.php?dopost=delold&picfile=' + picfile).then(resp=>resp.text()).then((d)=>{ | |||
tgobj.innerHTML = d; | |||
$Obj('galleryedit').removeChild(tgobj); | |||
}); | |||
} |
@@ -405,7 +405,7 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="70" class="admin-td"> | |||
<td class="admin-td"> | |||
<table> | |||
<tr> | |||
<td width="120">更新时间:</td> | |||
@@ -403,7 +403,7 @@ input[type=file] { | |||
.cke_top,.item-theme-img img,.list-article-img img,.article-hot-img img { | |||
border-radius:.5rem .5rem 0 0!important | |||
} | |||
.cke_bottom,.list-article-body { | |||
.cke_bottom,.list-article-radius { | |||
border-radius:0 0 .5rem .5rem!important | |||
} | |||
#validateimg,.btn-send { | |||
@@ -781,7 +781,7 @@ class Archives | |||
$i++; | |||
} | |||
} else { | |||
$revalue = "<select id='dedepagetitles' onchange='location.href=this.options[this.selectedIndex].value;'>\r\n"; | |||
$revalue = "<select class='form-control w-25' onchange='location.href=this.options[this.selectedIndex].value;'>\r\n"; | |||
foreach ($this->SplitTitles as $k => $v) { | |||
if ($i == 1) { | |||
$revalue .= "<option value='".$this->NameFirst.".".$this->ShortName."'>{$i}、{$v}</option>\r\n"; | |||
@@ -890,7 +890,7 @@ class Archives | |||
$i++; | |||
} | |||
} else { | |||
$revalue = "<select class='form-control w-25' id='dedepagetitles' onchange='location.href=this.options[this.selectedIndex].value;'>\r\n"; | |||
$revalue = "<select class='form-control w-25' onchange='location.href=this.options[this.selectedIndex].value;'>\r\n"; | |||
foreach ($this->SplitTitles as $k => $v) { | |||
if ($i == 1) { | |||
if ($cfg_rewrite == 'Y') { | |||
@@ -930,7 +930,7 @@ class Archives | |||
*/ | |||
function GetPagebreakDM($totalPage, $nowPage, $aid) | |||
{ | |||
global $cfg_rewrite,$cfg_cmsurl; | |||
global $cfg_rewrite, $cfg_cmsurl; | |||
if ($totalPage == 1) { | |||
return ""; | |||
} | |||
@@ -931,7 +931,7 @@ class SgListView | |||
*/ | |||
function GetPageListDM($list_len, $listitem = "index,end,pre,next,pageno") | |||
{ | |||
global $nativeplace, $infotype, $keyword,$cfg_rewrite; | |||
global $nativeplace, $infotype, $keyword, $cfg_rewrite; | |||
if (empty($nativeplace)) $nativeplace = 0; | |||
if (empty($infotype)) $infotype = 0; | |||
if (empty($keyword)) $keyword = ''; | |||
@@ -113,7 +113,6 @@ function lib_infolink(&$ctag, &$refObj) | |||
} else { | |||
$ff .= " <a href='{$baseurl}apps/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$eid}&infotype={$infotype}'>{$em}</a>\r\n"; | |||
} | |||
} | |||
} | |||
} | |||
@@ -128,8 +127,7 @@ function lib_infolink(&$ctag, &$refObj) | |||
$fields['nativeplace'] .= "<a href='{$baseurl}apps/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$t}&infotype={$infotype}'> {$em_nativeplaces[$t]}</a> -"; | |||
} | |||
foreach ($em_nativeplaces as $eid => $em) { | |||
if ($eid < $t + 1 && $eid > $t) | |||
{ | |||
if ($eid < $t + 1 && $eid > $t) { | |||
if ($eid === $nativeplace) { | |||
$fields['nativeplace'] .= " {$em}\r\n"; | |||
} else { | |||
@@ -187,8 +185,7 @@ function lib_infolink(&$ctag, &$refObj) | |||
$i = 0; | |||
$ff = ""; | |||
foreach ($em_infotypes as $eid => $em) { | |||
if ($eid < $sontype + 1 && $eid > $sontype) | |||
{ | |||
if ($eid < $sontype + 1 && $eid > $sontype) { | |||
if (is_str_float($eid)) { | |||
$i++; | |||
} | |||
@@ -200,7 +197,6 @@ function lib_infolink(&$ctag, &$refObj) | |||
} else { | |||
$ff .= " <a href='{$baseurl}apps/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$nativeplace}&infotype={$eid}'>{$em}</a>\r\n"; | |||
} | |||
} | |||
} | |||
} | |||
@@ -215,8 +211,7 @@ function lib_infolink(&$ctag, &$refObj) | |||
$fields['infotype'] .= "<a href='{$baseurl}apps/list.php?channelid={$channelid}&tid={$typeid}&nativeplace={$nativeplace}&infotype={$t}'> {$em_infotypes[$t]}</a> -"; | |||
} | |||
foreach ($em_infotypes as $eid => $em) { | |||
if ($eid < $t + 1 && $eid > $t) | |||
{ | |||
if ($eid < $t + 1 && $eid > $t) { | |||
if ($eid === $infotype) { | |||
$fields['infotype'] .= " {$em}\r\n"; | |||
} else { | |||
@@ -35,7 +35,7 @@ | |||
<div class="col-md-6 mb-3"> | |||
<div class="list-article rounded mb-3"> | |||
<div class="list-article-img">[field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a>");[/field:array]</div> | |||
<div class="list-article-body bg-white shadow-sm p-3"> | |||
<div class="list-article-body list-article-radius bg-white shadow-sm p-3"> | |||
<h2 class="mb-3"><a href="[field:arcurl/]">[field:title/]</a></h2> | |||
<div class="mb-3"> | |||
<span class="mr-3"><img src="[field:face/]" class="user-img-xs mr-1">[field:uname/]</span> | |||