推荐设备MORE

网页在线编辑

网页在线编辑

疑难问题

h5游戏制作网-织梦网站后台管理增加复制文档功

日期:2021-01-12
我要分享
--------

h5游戏制作网

------- 公司开发设计手机微信微信公众号有甚么益处? 2020/12/17

自2013年以来,这是一个二维编码风靡的时期。那些发展趋势到今日的商人有她们自身的二维编码。二维编码的身后是wechat公共性服务平台。...


7 require_once(DEDEINC . '/typelink.class.php'); 8 if (!empty($aid) empty($qstr)) $qstr = $aid; 10 AjaxHead(); 11 $channelid = empty($channelid) ? 0 : $channelid; 12 $tl = new TypeLink($aid); 13 $typeOptions = $tl- GetOptionArray(0, $admin_catalogs, $channelid); 14 $typeOptions = " select name='totype' 15 option value='0' 请挑选拷贝到的部位... /option \r\n 16 $typeOptions 17 /select 19 //輸出AJAX可挪动窗体 20 $divname = 'copyArchives'; 21 echo " div onmousemove=\"DropMoveHand('{$divname}', 225);\" onmousedown=\"DropStartHand();\" onmouseup=\"DropStopHand();\" \r\n"; 22 echo " div 拷贝文本文档 /div \r\n"; 23 echo " div img src='images/ico-close.gif' alt='关掉' title='关掉' / /div \r\n"; 24 echo " /div \r\n"; 25 echo " form name='quickeditform' action='archives_do.php' method='post' \r\n"; 26 echo " input type='hidden' name='dopost' value='{$dopost}' / \r\n"; 27 echo " input type='hidden' name='qstr' value='{$qstr}' / \r\n"; 28 echo " table width='100%' \r\n"; 29 ? 30 tr height='28' 31 td width="80"  总体目标栏目: /td 32 td 33 ?php echo $typeOptions; ? 34 /td 35 /tr 36 tr height='32' 37 td width="80"  文本文档ID: /td 38 td 39 input type='text' name='tmpids' value=" ?php echo $qstr; ? " / 40 br/ 41 拷贝到的总体目标栏目务必和选定的文本文档频道种类一致,不然程序会全自动勿略不合乎的文本文档。 42 /td 43 /tr 44 tr height='32' 45 td colspan='2' align='center' 46 input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" 47 border="0" / 48    49 img src="images/button_back.gif" width="60" height="22" border="0" 50 / 51 /td 52 /td 53 /tr 54 /table 55 /form 56 ?php 57 //AJAX窗体完毕 58 } else { 59 $totype = preg_replace("#[^0-9]#", '', $totype); 60 $typeInfos = $dsql- GetOne("SELECT tp.channeltype,tp.ispart,tp.channeltype,ch.maintable,ch.addtable,ch.issystem FROM `dede_arctype` tp LEFT JOIN `dede_channeltype` ch on ch.id=tp.channeltype WHERE tp.id='$totype' "); 61 $idtype = "id"; 62 if (!is_array($typeInfos)) { 63 ShowMsg('主要参数不正确!', '-1'); 64 exit(); 65 } 66 if ($typeInfos['ispart'] != 0) { 67 ShowMsg('文本文档储存的栏目务必为最后目录栏目!', '-1'); 68 exit(); 69 } 70 if (empty($typeInfos['addtable'])) { 71 $typeInfos['maintable'] = '`dede_archives`'; 72 } 73 //提升单表实体模型分辨 74 if ($typeInfos['issystem'] == -1) { 75 $typeInfos['maintable'] = $typeInfos['addtable']; 76 $idtype = "aid"; 77 } 78 $arcids = preg_replace("#[^0-9,]#", '', preg_replace("#`#", ',', $qstr)); 79 $arc = ''; 80 $j = 0; 81 $okids = array(); 82 $dsql- SetQuery("SELECT {$idtype},typeid FROM `{$typeInfos['maintable']}` WHERE {$idtype} in($arcids) AND channel='{$typeInfos['channeltype']}' "); 83 $dsql- Execute(); 84 while ($row = $dsql- GetArray()) { 85 if ($row['typeid'] != $totype) { 87 $dsql- ExecuteNoneQuery("insert into `dede_arctiny` (typeid,typeid2,arcrank,channel,senddate,sortrank,mid) select typeid,typeid2,arcrank,channel,senddate,sortrank,mid from `dede_arctiny` where id='{$row[$idtype]}'"); 89 $xid = $dsql- GetLastID(); 91 $dsql- ExecuteNoneQuery("insert into `{$typeInfos['maintable']}`(id,typeid,typeid2,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,keywords,lastpost,scores,goodpost,badpost,voteid,notpost,description,filename,dutyadmin,tackid,mtype,weight) select case when id '0' then '$xid' else '' end, case when typeid '0' then '$totype' else '' end,typeid2,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,color,writer,source,litpic,pubdate,senddate,mid,keywords ,lastpost,scores,goodpost,badpost,voteid,notpost,description,filename,dutyadmin,tackid,mtype,weight from `{$typeInfos['maintable']}` WHERE id='{$row[$idtype]}' "); 93 $dsql- ExecuteNoneQuery("insert into `{$typeInfos['addtable']}`(aid,typeid,body,redirecturl,templet,userip) select case when aid '0' then '$xid' else '' end,$totype,body,redirecturl,templet,userip from `{$typeInfos['addtable']}` WHERE aid='{$row[$idtype]}' "); 95 $okids[] = $row[$idtype]; 96 $j++; 97 } 98 } 101 UpDateCatCache(); 102 $sql = " TRUNCATE TABLE `dede_arctiny`"; 103 $dsql- ExecuteNoneQuery($sql); 105 //导入一般实体模型微数据信息 106 $sql = "INSERT INTO `dede_arctiny`(id, typeid, typeid2, arcrank, channel, senddate, sortrank, mid) 107 SELECT id, typeid, typeid2, arcrank, channel, senddate, sortrank, mid FROM `dede_archives` "; 108 $dsql- ExecuteNoneQuery($sql); 110 //导入单表实体模型微数据信息 111 $dsql- SetQuery("SELECT id,addtable FROM `dede_channeltype` WHERE id -1 "); 112 $dsql- Execute(); 113 $doarray = array(); 114 while($row = $dsql- GetArray()) 115 { 116 $tb = str_replace('dede_', $cfg_dbprefix, $row['addtable']); 117 if(empty($tb) || isset($doarray[$tb]) ) 118 { 119 continue; 120 } 121 else 122 { 123 $sql = "INSERT INTO `dede_arctiny`(id, typeid, typeid2, arcrank, channel, senddate, sortrank, mid) 124 SELECT aid, typeid, 0, arcrank, channel, senddate, 0, mid FROM `$tb` "; 125 $rs = $dsql- executenonequery($sql); 126 $doarray[$tb] = 1; 127 } 128 } 129 //升级HTML 130 foreach ($okids as $aid) { 131 $arc = new Archives($aid); 132 $arc- MakeHtml(); 133 } 134 ShowMsg("取得成功拷贝 $j 个文本文档!", $ENV_GOBACK_URL); 135 exit(); 136 } 137 }
8 LoadQuickDiv(e, 'archives_do.php?dopost=copyArchives qstr='+qstr+' channelid='+cid+' rnd='+Math.random(), 'copyArchives', '450px', '180px'); 9 ChangeFullDiv('show'); 10 }

 

开启dede/js/list.js 检索  function ShowMenu(evt,obj,aid,atitle)里边的

new ContextItem( 强烈推荐文本文档 ,function(){ adArc(aid); }),的下面加上

new ContextItem("拷贝( u C /u )",function(){ copyToClipboard(atitle); }),

 

找到

a href= javascript:; #8221;moveArc(event,this, ?php echo (empty($channelid) ? 0 : $channelid); ? ) >

当今行的正下方加上

 a href="javascript:;"  拷贝  /a 

 


云风互联网是大家的精英团队倾力打造的一个以网站订制,互联网营销营销推广为关键的商务服务平台。大家有着工作经验丰富多彩,并且完善的精英团队,大家潜心于开发设计视觉效果精致,作用完善,适用电脑上、平板、手机上终端设备的响应式网站网站。网站后台管理系统软件选用PHP+Mysql构架,全站内嵌了SEO检索模块优化体制,适用客户自定...[more]


云风服务优点:7*24小时服务适用全方向营销大管家服务,丰富多彩的制造行业工作经验,雄厚的技术性整体实力,高效率激情的工作中心态,完善的售后服务管理体系,健全的顾客学习培训管理体系—创建顾客学习培训管理体系,协助顾客发展。云风互联网是您身旁的昆山企业网站建设权威专家!

---------

h5游戏制作网

------------