@@ -6,7 +6,7 @@ function addImage(src, pid) { | |||
albImg++; | |||
if (pid != 0) { | |||
albImg = 'ok' + pid; | |||
delstr = '<a href="javascript:delAlbPic(' + pid + ')" class="btn btn-danger btn-sm">删除</a>'; | |||
delstr = '<div class="mt-2"><a href="javascript:delAlbPic(' + pid + ')" class="btn btn-danger btn-sm">删除</a></div>'; | |||
} else { | |||
albImg = 'err' + albImg; | |||
} | |||
@@ -315,7 +315,8 @@ | |||
$fhtml .= "<div class='albCt albEdit' id='albold{$j}'>"; | |||
$fhtml .= "<input type='hidden' name='imgurl{$j}' value='{$bigimg}'>"; | |||
$fhtml .= "<input type='hidden' name='imgddurl{$j}' value='{$litimg}'>"; | |||
$fhtml .= "<img src='{$litimg}'><a href=\"javascript:delAlbPicOld('$bigimg',$j)\" class=\"btn btn-success btn-sm mt-2\">删除</a>"; | |||
$fhtml .= "<img src='{$litimg}'>"; | |||
$fhtml .= "<div class='mt-2'><a href=\"javascript:delAlbPicOld('$bigimg',$j)\" class=\"btn btn-success btn-sm mt-2\">删除</a></div>"; | |||
$fhtml .= "<div class='mt-2'>名称:<input type='text' name='imgmsg{$j}' value='".$ctag->GetAtt('text')."' class='admin-input-sm'></div>"; | |||
$fhtml .= "<div class='mt-2'>更换:<input type='file' name='imgfile{$j}' class='admin-input-sm'></div>"; | |||
$fhtml .= "</div>"; | |||
@@ -1,151 +0,0 @@ | |||
var cssdropdown={ | |||
disappeardelay: 250, | |||
disablemenuclick: false, | |||
enableswipe: 1, | |||
enableiframeshim: 1, | |||
dropmenuobj: null, ie: document.all, firefox: document.getElementById&&!document.all, swipetimer: undefined, bottomclip:0, | |||
getposOffset:function(what, offsettype){ | |||
var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; | |||
var parentEl=what.offsetParent; | |||
while (parentEl!=null){ | |||
totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; | |||
parentEl=parentEl.offsetParent; | |||
} | |||
return totaloffset; | |||
}, | |||
swipeeffect:function(){ | |||
if (this.bottomclip<parseInt(this.dropmenuobj.offsetHeight)){ | |||
this.bottomclip+=10+(this.bottomclip/10) | |||
this.dropmenuobj.style.clip="rect(0 auto "+this.bottomclip+"px 0)" | |||
} | |||
else | |||
return | |||
this.swipetimer=setTimeout("cssdropdown.swipeeffect()", 10) | |||
}, | |||
showhide:function(obj, e){ | |||
if (this.ie || this.firefox) | |||
this.dropmenuobj.style.left=this.dropmenuobj.style.top="-500px" | |||
if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover"){ | |||
if (this.enableswipe==1){ | |||
if (typeof this.swipetimer!="undefined") | |||
clearTimeout(this.swipetimer) | |||
obj.clip="rect(0 auto 0 0)" | |||
this.bottomclip=0 | |||
this.swipeeffect() | |||
} | |||
obj.visibility="visible" | |||
} | |||
else if (e.type=="click") | |||
obj.visibility="hidden" | |||
}, | |||
iecompattest:function(){ | |||
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body | |||
}, | |||
clearbrowseredge:function(obj, whichedge){ | |||
var edgeoffset=0 | |||
if (whichedge=="rightedge"){ | |||
var windowedge=this.ie && !window.opera? this.iecompattest().scrollLeft+this.iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 | |||
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth | |||
if (windowedge-this.dropmenuobj.x < this.dropmenuobj.contentmeasure) | |||
edgeoffset=this.dropmenuobj.contentmeasure-obj.offsetWidth | |||
} | |||
else{ | |||
var topedge=this.ie && !window.opera? this.iecompattest().scrollTop : window.pageYOffset | |||
var windowedge=this.ie && !window.opera? this.iecompattest().scrollTop+this.iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 | |||
this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight | |||
if (windowedge-this.dropmenuobj.y < this.dropmenuobj.contentmeasure){ | |||
edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight | |||
if ((this.dropmenuobj.y-topedge)<this.dropmenuobj.contentmeasure) | |||
edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge | |||
} | |||
} | |||
return edgeoffset | |||
}, | |||
dropit:function(obj, e, dropmenuID){ | |||
if (this.dropmenuobj!=null) | |||
this.dropmenuobj.style.visibility="hidden" | |||
this.clearhidemenu() | |||
if (this.ie||this.firefox){ | |||
obj.onmouseout=function(){cssdropdown.delayhidemenu()} | |||
obj.onclick=function(){return !cssdropdown.disablemenuclick} | |||
this.dropmenuobj=document.getElementById(dropmenuID) | |||
if(!this.dropmenuobj) return; | |||
this.dropmenuobj.onmouseover=function(){cssdropdown.clearhidemenu()} | |||
this.dropmenuobj.onmouseout=function(e){cssdropdown.dynamichide(e)} | |||
this.dropmenuobj.onclick=function(){cssdropdown.delayhidemenu()} | |||
this.showhide(this.dropmenuobj.style, e) | |||
this.dropmenuobj.x=this.getposOffset(obj, "left") | |||
this.dropmenuobj.y=this.getposOffset(obj, "top") | |||
this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, "rightedge")+"px" | |||
this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px" | |||
this.positionshim() | |||
} | |||
}, | |||
positionshim:function(){ | |||
if (this.enableiframeshim && typeof this.shimobject!="undefined"){ | |||
if (this.dropmenuobj.style.visibility=="visible"){ | |||
this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px" | |||
this.shimobject.style.height=this.dropmenuobj.offsetHeight+"px" | |||
this.shimobject.style.left=this.dropmenuobj.style.left | |||
this.shimobject.style.top=this.dropmenuobj.style.top | |||
} | |||
this.shimobject.style.display=(this.dropmenuobj.style.visibility=="visible")? "block" : "none" | |||
} | |||
}, | |||
hideshim:function(){ | |||
if (this.enableiframeshim && typeof this.shimobject!="undefined") | |||
this.shimobject.style.display='none' | |||
}, | |||
contains_firefox:function(a, b) { | |||
while (b.parentNode) | |||
if ((b = b.parentNode) == a) | |||
return true; | |||
return false; | |||
}, | |||
dynamichide:function(e){ | |||
var evtobj=window.event? window.event : e | |||
if (this.ie&&!this.dropmenuobj.contains(evtobj.toElement)) | |||
this.delayhidemenu() | |||
else if (this.firefox&&e.currentTarget!= evtobj.relatedTarget&& !this.contains_firefox(evtobj.currentTarget, evtobj.relatedTarget)) | |||
this.delayhidemenu() | |||
}, | |||
delayhidemenu:function(){ | |||
this.delayhide=setTimeout("cssdropdown.dropmenuobj.style.visibility='hidden'; cssdropdown.hideshim()",this.disappeardelay) | |||
}, | |||
clearhidemenu:function(){ | |||
if (this.delayhide!="undefined") | |||
clearTimeout(this.delayhide) | |||
}, | |||
startchrome:function(){ | |||
for (var ids=0; ids<arguments.length; ids++){ | |||
var menuitems=document.getElementById(arguments[ids]).getElementsByTagName("a") | |||
for (var i=0; i<menuitems.length; i++){ | |||
if (menuitems[i].getAttribute("rel")){ | |||
var relvalue=menuitems[i].getAttribute("rel") | |||
menuitems[i].onmouseover=function(e){ | |||
var event=typeof e!="undefined"? e : window.event | |||
cssdropdown.dropit(this,event,this.getAttribute("rel")) | |||
} | |||
} | |||
} | |||
} | |||
if (window.createPopup && !window.XmlHttpRequest){ | |||
document.write('<IFRAME id="iframeshim" src="" style="display: none; left: 0; top: 0; z-index: 90; position: absolute; filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)" frameBorder="0" scrolling="no"></IFRAME>') | |||
this.shimobject=document.getElementById("iframeshim") | |||
} | |||
} | |||
} |
@@ -38,7 +38,7 @@ function MakeUpload(mnum) | |||
if (endNum>120) endNum = 120; | |||
for (startNum;startNum < endNum;startNum++) | |||
{ | |||
if (startNum==1){ | |||
if (startNum==1) { | |||
dsel = " checked='checked' "; | |||
dplay = "block"; | |||
} else { | |||
@@ -46,20 +46,11 @@ function MakeUpload(mnum) | |||
dplay = "display:none"; | |||
} | |||
fhtml = ''; | |||
fhtml += "<table width='100%'><tr><td><label><input type='checkbox' name='isokcheck"+startNum+"' id='isokcheck"+startNum+"' value='1' "+dsel+" onClick='CheckSelTable("+startNum+")' />显示图片 "+startNum+" 的上传框</label></td></tr></table>"; | |||
fhtml += "<table width='100%' border=\"0\" id=\"seltb"+startNum+"\" cellpadding=\"1\" cellspacing=\"1\" bgcolor=\"white\" style=\"margin-bottom:6px;margin-left:10px;"+dplay+"\"><tobdy>"; | |||
fhtml += "<tr bgcolor=\"#F7F7F7\">\r\n"; | |||
fhtml += "<td height=\"25\" colspan=\"2\"> <strong>图片"+startNum+":</strong></td>"; | |||
fhtml += "</tr>"; | |||
fhtml += "<tr bgcolor=\"#ffffff\"> "; | |||
fhtml += "<td height=\"25\"> 图片地址:"; | |||
fhtml += "<input type=\"text\" name='imgfile"+startNum+"' style=\"width:330px\" class=\"intxt\"/> <nobr>填写远程网址</nobr></td>"; | |||
fhtml += "<td rowspan=\"2\" align=\"center\"><div id='divpicview"+startNum+"' class='divpre'></div></td>"; | |||
fhtml += "</tr>"; | |||
fhtml += "<tr bgcolor=\"#ffffff\"> "; | |||
fhtml += "<td height=\"56\" valign=\"top\"> 图片简介:"; | |||
fhtml += "<textarea name='imgmsg"+startNum+"' style=\"height:46px;width:330px\"></textarea></td>"; | |||
fhtml += "</tr></tobdy></table>\r\n"; | |||
fhtml += "<div><label><input type='checkbox' name='isokcheck"+startNum+"' id='isokcheck"+startNum+"' value='1' "+dsel+" onClick='CheckSelTable("+startNum+")'> 显示图片"+startNum+"上传框</label></div>"; | |||
fhtml += "<div id=\"seltb"+startNum+"\" style=\""+dplay+"\">"; | |||
fhtml += "<p>图片"+startNum+":<input type='text' name='imgfile"+startNum+"' class='form-control' placeholder='请输入网址'></p>"; | |||
fhtml += "<p>图片简介:<textarea name='imgmsg"+startNum+"' class='form-control'></textarea></p>"; | |||
fhtml += "</div>"; | |||
upfield.innerHTML += fhtml; | |||
} | |||
} |
@@ -1,9 +0,0 @@ | |||
var dedeqrcodeLink = document.getElementById('__dedeqrcode_'+__dedeqrcode_id); | |||
dedeqrcodeLink.style.display = 'none'; | |||
var randNum = Math.floor(Math.random() * 2147483648).toString(36); | |||
var __dedeqrcode_src = "\""+__dedeqrcode_dir+"/qrcode.php?id="+__dedeqrcode_aid+"&type="+__dedeqrcode_type+"\""; | |||
document.writeln("<ins style=\"display:inline-table;border:none;margin:0;padding:0;position:relative;visibility:visible;width:100%\">"); | |||
document.writeln(" <ins id=\"__bfzInc_"+randNum+"\" style=\"display:block;border:none;margin:0;padding:0;position:relative;visibility:visible;width:100%\">"); | |||
document.writeln("<iframe id=\"dede_qrcode_frame\" name=\"dede_qrcode_frame\" width=\"260\" height=\"300\" style='display:block;margin:0 auto;' frameborder=\"0\" src="+__dedeqrcode_src+" marginwidth=\"0\" marginheight=\"0\" vspace=\"0\" hspace=\"0\" allowtransparency=\"true\" scrolling=\"no\" allowfullscreen=\"true\"></iframe>"); | |||
document.writeln(" </ins>"); | |||
document.writeln("</ins>"); |
@@ -1,50 +0,0 @@ | |||
<?php | |||
if (!defined('DEDEINC')) exit('dedebiz'); | |||
/** | |||
* QRCode | |||
* | |||
* @version $id:qrcode.lib.php 9:29 2020年9月14日 tianya $ | |||
* @package DedeBIZ.Taglib | |||
* @copyright Copyright (c) 2022 DedeBIZ.COM | |||
* @license https://www.dedebiz.com/license | |||
* @link https://www.dedebiz.com | |||
*/ | |||
$GLOBALS['qrcode_id'] = isset($GLOBALS['qrcode_id']) ? $GLOBALS['qrcode_id'] : 1; | |||
function lib_qrcode(&$ctag, &$refObj) | |||
{ | |||
//属性处理 | |||
$attlist = "type|,id|"; | |||
FillAttsDefault($ctag->CAttribute->Items, $attlist); | |||
extract($ctag->CAttribute->Items, EXTR_SKIP); | |||
//var_dump($refObj->Fields['id']); | |||
$id = 0; | |||
if (empty($type) and empty($id)) { | |||
if (get_class($refObj) == 'Archives') { | |||
$type = 'arc'; | |||
$id = $refObj->Fields['id']; | |||
} elseif (get_class($refObj) == 'ListView' or get_class($refObj) == 'SgListView') { | |||
$type = 'list'; | |||
$id = $refObj->Fields['id']; | |||
} elseif (get_class($refObj) == 'PartView' and !empty($refObj->Fields['id'])) { | |||
$type = 'list'; | |||
$id = $refObj->Fields['id']; | |||
} elseif (get_class($refObj) == 'PartView' and empty($refObj->Fields['id'])) { | |||
$type = 'index'; | |||
$id = 0; | |||
} | |||
} | |||
$reval = <<<EOT | |||
<a href='https://www.dedebiz.com/' id='__dedeqrcode_{$GLOBALS['qrcode_id']}'>二维码生成</a> | |||
<script> | |||
var __dedeqrcode_id={$GLOBALS['qrcode_id']}; | |||
var __dedeqrcode_aid={$id}; | |||
var __dedeqrcode_type='{$type}'; | |||
var __dedeqrcode_dir='{$GLOBALS['cfg_plus_dir']}'; | |||
</script> | |||
<script src="{$GLOBALS['cfg_static_dir']}/web/js/qrcode.js"></script> | |||
EOT; | |||
$GLOBALS['qrcode_id']++; | |||
return $reval; | |||
} | |||
?> |
@@ -112,7 +112,6 @@ | |||
{dede:include comment='推荐文档' filename='widget_recommend.htm'/} | |||
{dede:include comment='热点文档' filename='widget_hot.htm'/} | |||
{dede:include comment='投票' filename='widget_vote.htm'/} | |||
{dede:include comment='QR二维码' filename='widget_qrcode.htm'/} | |||
</div> | |||
</div> | |||
</div> | |||
@@ -41,11 +41,11 @@ if (empty($dopost)) { | |||
//检查会员等级和类型限制 | |||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | |||
$row = $dsql->GetOne("Select membername From `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); | |||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | |||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
include(DEDEMEMBER."/templets/album_add.htm"); | |||
@@ -34,11 +34,11 @@ if (empty($dopost)) { | |||
//检查会员等级和类型限制 | |||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | |||
$row = $dsql->GetOne("Select membername From `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); | |||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | |||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
include(DEDEMEMBER."/templets/archives_add.htm"); | |||
@@ -34,11 +34,11 @@ if (empty($dopost)) { | |||
//检查会员等级和类型限制 | |||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | |||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | |||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | |||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
include(DEDEMEMBER."/templets/archives_sg_add.htm"); | |||
@@ -78,11 +78,11 @@ else if ($dopost == 'save') { | |||
//检查栏目设定的投稿许可权限 | |||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | |||
$row = $dsql->GetOne("Select membername From #@__arcrank where `rank`='".$cInfos['sendrank']."' "); | |||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | |||
ShowMsg("对不起,需要[".$cInfos['usertype']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
//文档的默认状态 | |||
@@ -28,11 +28,11 @@ if (empty($dopost)) { | |||
//检查会员等级和类型限制 | |||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | |||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | |||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | |||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
include(DEDEMEMBER."/templets/article_add.htm"); | |||
@@ -39,11 +39,11 @@ if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] | |||
//检查栏目设定的投稿许可权限 | |||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | |||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | |||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | |||
ShowMsg("对不起,需要[".$cInfos['usertype']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$cInfos['usertype']."才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
//文档的默认状态 | |||
@@ -39,11 +39,11 @@ if (empty($dopost)) { | |||
//检查会员等级和类型限制 | |||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | |||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); | |||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$row['membername']."才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | |||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个栏目发布文档", "-1", "0", 5000); | |||
ShowMsg("对不起,需要".$cInfos['usertype']."帐号才能在这个栏目发布文档", "-1", "0", 5000); | |||
exit(); | |||
} | |||
include(DEDEMEMBER."/templets/soft_add.htm"); | |||
@@ -178,7 +178,7 @@ else if ($dopost == 'save') { | |||
$win = new OxWindow(); | |||
$win->AddTitle("成功发布软件"); | |||
$win->AddMsgItem($msg); | |||
$winform = $win->GetWindow("hand", " ", FALSE); | |||
$win->Display(); | |||
$winform = $win->GetWindow("hand", " ", false); | |||
$win->Display(DEDEMEMBER."/templets/win_templet.htm"); | |||
} | |||
?> |
@@ -53,9 +53,8 @@ if (empty($dopost)) { | |||
if (is_array($dtp->CTags)) { | |||
foreach ($dtp->CTags as $ctag) { | |||
if ($ctag->GetName() == 'link') { | |||
$nForm .= "软件地址".$newRowStart.":<input class='form-control' type='text' name='softurl".$newRowStart."' value='".trim($ctag->GetInnerText())."' /> | |||
服务器名称:<input class='form-control' type='text' name='servermsg".$newRowStart."' value='".$ctag->GetAtt("text")."' /> | |||
<br>"; | |||
$nForm .= "<p>软件地址".$newRowStart.":<input type='text' name='softurl".$newRowStart."' value='".trim($ctag->GetInnerText())."' class='form-control'></p> | |||
<p>服务器名称:<input type='text' name='servermsg".$newRowStart."' value='".$ctag->GetAtt("text")."' class='form-control'></p>"; | |||
$newRowStart++; | |||
} | |||
} | |||
@@ -176,7 +175,7 @@ else if ($dopost == 'save') { | |||
$win = new OxWindow(); | |||
$win->AddTitle("成功修改软件"); | |||
$win->AddMsgItem($msg); | |||
$winform = $win->GetWindow("hand", " ", FALSE); | |||
$win->Display(); | |||
$winform = $win->GetWindow("hand", " ", false); | |||
$win->Display(DEDEMEMBER."/templets/win_templet.htm"); | |||
} | |||
?> |
@@ -9,7 +9,7 @@ | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/user.css"> | |||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/member_album.js"></script> | |||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/member.album.js"></script> | |||
</head> | |||
<body> | |||
<?php pasterTempletDiy('top.htm');?> | |||
@@ -74,7 +74,7 @@ | |||
</div> | |||
<div class="form-group"> | |||
<label>手工上传</label> | |||
图片数目:<input type="text" name="picnum" value="5" id="picnum" class="form-control d-inline-block w-25"> | |||
<span>图片数目:<input type="text" name="picnum" value="5" id="picnum" class="form-control d-inline-block w-25"></span> | |||
<button type="button" name="kkkup" id="kkkup2" class="btn btn-success" onclick="MakeUpload(0);">增加</button>(最大60幅) | |||
</div> | |||
<div id="uploadfield"></div> | |||
@@ -9,7 +9,7 @@ | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/font/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/style.css"> | |||
<link rel="stylesheet" href="<?php echo $cfg_cmsurl;?>/static/web/css/user.css"> | |||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/member_album.js"></script> | |||
<script src="<?php echo $cfg_cmsurl;?>/static/web/js/member.album.js"></script> | |||
</head> | |||
<body> | |||
<?php pasterTempletDiy('top.htm');?> | |||
@@ -77,7 +77,7 @@ | |||
</div> | |||
<div class="form-group"> | |||
<label>手工上传</label> | |||
图片数目:<input type="text" name="picnum" value="5" id="picnum" class="form-control d-inline-block w-25"> | |||
<span>图片数目:<input type="text" name="picnum" value="5" id="picnum" class="form-control d-inline-block w-25"></span> | |||
<button type="button" name="kkkup" id="kkkup2" class="btn btn-success" onclick="MakeUpload(0);">增加</button>(最大60幅) | |||
</div> | |||
<div id="uploadfield"></div> | |||
@@ -88,27 +88,15 @@ | |||
foreach($dtp->CTags as $ctag){ | |||
if ($ctag->GetName()=="img"){ | |||
?> | |||
<table width="98%" align="center"> | |||
<tr> | |||
<td><input type="checkbox" name="isokcheck<?php echo $j;?>" id="isokcheck<?php echo $j;?>" value="1" onclick="CheckSelTable(<?php echo $j;?>)" checked="1"> 显示隐藏图片[<?php echo $j;?>]的选框</td> | |||
</tr> | |||
</table> | |||
<table width="100%" id="seltb<?php echo $j;?>" align="center"> | |||
<tr> | |||
<td colspan="2">图片</td> | |||
</tr> | |||
<tr> | |||
<td>本地上传:<input type="text" name="imgfile<?php echo $j;?>" style="width:200px" maxlength="100"></td> | |||
<td rowspan="3" align="center"> | |||
<div id="divpicview<?php echo $j;?>" class="divpre"></div> | |||
<img src="<?php echo trim($ctag->GetInnerText());?>" id="picview<?php echo $j;?>" name="picview<?php echo $j;?>" style="width:128px;height:128px"> | |||
</td> | |||
</tr> | |||
<input type="hidden" name="imgurl<?php echo $j;?>" value="<?php echo trim($ctag->GetInnerText())?>"> | |||
<tr> | |||
<td height="56">简介:<textarea name="imgmsg<?php echo $j;?>" style="height:46px;width:200px"><?php echo trim($ctag->GetAtt('text'))?></textarea></td> | |||
</tr> | |||
</table> | |||
<div><label><input type="checkbox" name="isokcheck<?php echo $j;?>" id="isokcheck<?php echo $j;?>" value="1" onclick="CheckSelTable(<?php echo $j;?>)" checked="1"> 显示隐藏图片<?php echo $j;?>选框</label></div> | |||
<div id="seltb<?php echo $j;?>"> | |||
<p>本地上传:<input type="text" name="imgfile<?php echo $j;?>" class="form-control"></p> | |||
<p> | |||
<div id="divpicview<?php echo $j;?>" class="divpre"></div> | |||
<img src="<?php echo trim($ctag->GetInnerText());?>" id="picview<?php echo $j;?>" name="picview<?php echo $j;?>"> | |||
</p> | |||
<p>简介:<textarea name="imgmsg<?php echo $j;?>" class="form-control"><?php echo trim($ctag->GetAtt('text'))?></textarea></p> | |||
</div> | |||
<?php | |||
$j++; | |||
} | |||
@@ -116,9 +104,8 @@ | |||
} | |||
$dtp->Clear(); | |||
?> | |||
</p> | |||
<script> | |||
startNum = "<? php echo $j;?>"; | |||
startNum = <? php echo $j;?>; | |||
</script> | |||
<div class="text-center"> | |||
<button type="submit" class="btn btn-success">提交</button> | |||
@@ -18,10 +18,8 @@ | |||
morelinkobj.style.display = "block"; | |||
if (endNum > 12) endNum = 12; | |||
for (startNum; startNum <= endNum; startNum++) { | |||
upfield.innerHTML += "<label>软件地址" + startNum + ":</label><input type='text' name='softurl" + startNum + | |||
"' value='http://' maxlength='100' class='form-control'> "; | |||
upfield.innerHTML += " "; | |||
upfield.innerHTML += "服务器名称:<input type='text' name='servermsg" + startNum + "' class='form-control'>"; | |||
upfield.innerHTML += "<p>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='form-control'></p>"; | |||
upfield.innerHTML += "<p>服务器名称:<input type='text' name='servermsg" + startNum + "' class='form-control'></p>"; | |||
} | |||
} | |||
function ShowHideAddr() { | |||
@@ -181,7 +179,7 @@ | |||
<button type="button" name="Submit3" id="btsh3" onclick="ShowHideAddr();" class="btn btn-success">隐藏地址</button>(最多为12个链接) | |||
</div> | |||
<div id="morelink" style="display:none"> | |||
<?php echo "<span id='uploadfield'></span>";?> | |||
<?php echo "<div id='uploadfield'></div>";?> | |||
</div> | |||
<?php | |||
//游客强制加验证码 | |||
@@ -18,10 +18,8 @@ | |||
morelinkobj.style.display = "block"; | |||
if (endNum > 12) endNum = 12; | |||
for (startNum; startNum <= endNum; startNum++) { | |||
upfield.innerHTML += "<label>软件地址" + startNum + ":</label><input type='text' name='softurl" + startNum + | |||
"' value='http://' maxlength='100' class='form-control'> "; | |||
upfield.innerHTML += " "; | |||
upfield.innerHTML += "服务器名称:<input type='text' name='servermsg" + startNum + "' class='form-control'>"; | |||
upfield.innerHTML += "<p>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' maxlength='100' class='form-control'></p>"; | |||
upfield.innerHTML += "<p>服务器名称:<input type='text' name='servermsg" + startNum + "' class='form-control'></p>"; | |||
} | |||
} | |||
function ShowHideAddr() { | |||
@@ -196,7 +194,7 @@ | |||
<div id="morelink"> | |||
<?php | |||
echo $nForm; | |||
echo "<span id='uploadfield'></span>"; | |||
echo "<div id='uploadfield'></div>"; | |||
?> | |||
</div> | |||
<div class="text-center"> | |||
@@ -12,23 +12,18 @@ | |||
</head> | |||
<body> | |||
<?php pasterTempletDiy('top.htm');?> | |||
<main class="member"> | |||
<div class="pannel"> | |||
<div class="container py-3"> | |||
<div class="row"> | |||
<div class="pannel-main col-md-12"> | |||
<div class="card"> | |||
<div class="card-header">{dede:wintitle/}</div> | |||
<div class="card-body"> | |||
<h5 class="card-title">{dede:wecome_info/}</h5> | |||
<div class="card-text">{dede:winform/}</div> | |||
</div> | |||
</div> | |||
<div class="container py-3"> | |||
<div class="row"> | |||
<div class="col-md-12"> | |||
<div class="card"> | |||
<div class="card-header">{dede:wintitle/}</div> | |||
<div class="card-body"> | |||
<h5 class="card-title">{dede:wecome_info/}</h5> | |||
<div class="card-text">{dede:winform/}</div> | |||
</div> | |||
</div> | |||
</div> | |||
</div> | |||
</main> | |||
<?php pasterTempletDiy('foot.htm');?> | |||
</div> | |||
</body> | |||
</html> |