,给织梦添加复制文档的功能步骤如下:, ,一、打开templets下的content_list.htm, , 找到 这一行:, ,<a href="javascript:;" onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)" class="coolbg"> 移动 </a>, ,在这一行的下方添加:, , <a href="javascript:;" onClick="copyArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>);" class="coolbg"> 复制 </a>, ,二、打开dede/js/list.js, ,找到moveArc这个函数, ,function moveArc(e, obj, cid){, var qstr=getCheckboxItem();, if(qstr==''), {, alert('必须选择一个或多个文档!');, return;, }, LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr='+qstr+'&channelid='+cid+'&rnd='+Math.random(), 'moveArchives', '450px', '180px');, ChangeFullDiv('show');,}, ,然后在下方添加copyArc这个函数, ,function copyArc(e, obj, cid){, var qstr=getCheckboxItem();, if(qstr==''), {, alert('必须选择一个或多个文档!');, return;, }, LoadQuickDiv(e, 'archives_do.php?dopost=copyArchives&qstr='+qstr+'&channelid='+cid+'&rnd='+Math.random(), 'copyArchives', '450px', '180px');, ChangeFullDiv('show');,}, ,三、打开 dede/archives_do.php找到, ,else if($dopost=='moveArchives'),{, ,这句代码 然后在这个大括弧结尾处 也就是在433行左右添加如下代码:, , , ,/*—————————–,function copyArchives(){ },——————————*/, , ,else if($dopost=='copyArchives'),{, 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%'>