欲妇放荡叫床有声小说-欲妇放荡叫床小说短篇阅读-欲妇放荡叫床很浪的小说-欲帝精品导航-久久久综合网-久久久综合视频

?

DedeCMS織夢圖集Flash控件停用無法上傳圖片修改方法

2021-05-30 14:48?來源 綜合

我們知道由于Flash控件與2020年停用,導致DedeCMS織夢圖集無法上傳圖片,雖然flash已經退出舞臺了,而織夢的圖集上傳功能仍然使用的是flash控件,目前不僅無法正常上傳圖像而且也不支持多實例多圖集,我們來把它換一換,換成現在比較流行的layui前端框架 - layui上傳模塊。

整合教程

第一步、下載額外所需文件,根據自己網站編碼

把下載得到的文件解壓嗎,然后找到 layui上傳模塊 文件夾,然后選擇自己DedeCMS編碼對應的文件夾,然后把"layui"文件夾和"taglib"文件夾放到你網站include文件夾里去。

第二步、為后臺圖片集模型添加layui上傳模塊,官方原來的圖集上傳功能保留不動

伸手黨 可以直接把下載解壓后的文件夾 圖集模型上傳模塊 下的4個文件替換即可使用(替換之前建議你備份你自己的這4個文件)

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="text">
  1.     /dede/templets/album_add.htm
  2.     /dede/templets/album_edit.htm
  3.     /dede/album_add.php
  4.     /dede/album_edit.php

覆蓋文件后刷新后臺即可使用。

如果您使用的是默認單個圖集,沒有對DedeCMS圖集進行開發過,下面的教程可略過無需理會【注意,二開的后臺請根據教程來操作】。

二開教程

1、打開 /dede/templets/album_add.htm 找到

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="html4strict">
  1. < id="thumbnails"></>

在它所在的tr標簽下面加入

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="html4strict">
  1. <link href="../include/layui/css/layui.css" rel="stylesheet" media="all">
  2. <script src="../include/layui/layui.js" type="text/javascript"></script>
  3. <tr>
  4.     <td width="100%" height="24" colspan="4" class="bline">
  5.         <table width="800" border="0" cellspacing="0" cellpadding="0">
  6.             <tr>
  7.                 <td width="80" height="40">&nbsp;<b>默認圖集:</b></td>
  8.                 <td><button type="button" class="layui-btn layui-btn-sm layui-btn-normal imgurls"><i class="layui-icon layui-icon-upload"></i>上傳圖片</button></td>
  9.             </tr>
  10.         </table>
  11.     </td>
  12. </tr>
  13. <tr>
  14.     <td colspan="4" class="bline">
  15.         <table width='100%'>
  16.             <tr>
  17.                 <td>< class="layui-upload-img"><ul class="layui-upload-list" id="imgurls"></ul></></td>
  18.             </tr>
  19.         </table>
  20.     </td>
  21. </tr>
  22. <script type="text/javascript">
  23.     layui.use('upload', function(){
  24.         var $ = layui.jquery
  25.             ,upload = layui.upload;
  26.  
  27.         // imgurls 圖片上傳
  28.         var uploadInst = upload.render({
  29.             elem: '.imgurls'
  30.             ,url: '../include/layui/layuiupload.php'
  31.             ,multiple: true
  32.             ,accept: 'images'
  33.             ,acceptMime: 'image/*'
  34.             ,done: function(res){
  35.                 if(res.code == 0){
  36.                     return layer.msg(res.msg);
  37.                 }
  38.                 $('#imgurls').append('<li class="item_img">< class="operate"><i class="toleft layui-icon layui-icon-left"></i><i class="toright layui-icon layui-icon-right"></i><i class="close layui-icon layui-icon-close-fill" data-id="' + res.id + '"></i></><img src="' + res.img + '" class="img" ><input type="text" name="imgurls[alt][]" value="" class="layui-input" /><input type="hidden" name="imgurls[url][]" value="' + res.img + '" /><input type="hidden" name="imgurls[uaid][]" value="' + res.id + '" /></li>');
  39.             }
  40.             ,error: function(){
  41.  
  42.             }
  43.         });
  44.  
  45.         $("body").on("click",".close",function(){
  46.             var id = $(this).data('id');
  47.             $.get('../include/layui/layuiupload.php',{'dopost':'del','id':id},function(res){})
  48.             $(this).closest("li").remove();
  49.         });
  50.  
  51.         $("body").on("click",".layui-upload-img ul li .toleft",function(){
  52.             var li_index = $(this).closest("li").index();
  53.             if(li_index >= 1){
  54.                 $(this).closest("li").insertBefore($(this).closest("ul").find("li").eq(Number(li_index)-1));
  55.             }
  56.         });
  57.         $("body").on("click",".layui-upload-img ul li .toright",function(){
  58.             var li_index = $(this).closest("li").index();
  59.             $(this).closest("li").insertAfter($(this).closest("ul").find("li").eq(Number(li_index)+1));
  60.         });
  61.  
  62.     });
  63. </script>

2、打開 /dede/templets/album_edit.htm 找到

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="html4strict">
  1. < id="thumbnails"></>

在它所在的tr標簽下面加入

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="html4strict">
  1. <link href="../include/layui/css/layui.css" rel="stylesheet" media="all">
  2. <script src="../include/layui/layui.js" type="text/javascript"></script>
  3. <tr>
  4.     <td width="100%" height="24" colspan="4" class="bline">
  5.         <table width="800" border="0" cellspacing="0" cellpadding="0">
  6.             <tr>
  7.                 <td width="80" height="40">&nbsp;<b>默認圖集:</b></td>
  8.                 <td><button type="button" class="layui-btn layui-btn-sm layui-btn-normal imgurls"><i class="layui-icon layui-icon-upload"></i>上傳圖片</button></td>
  9.             </tr>
  10.         </table>
  11.     </td>
  12. </tr>
  13. <tr>
  14.     <td colspan="4" class="bline">
  15.         <table width='100%'>
  16.             <tr>
  17.                 <td>< class="layui-upload-img"><ul class="layui-upload-list" id="imgurls"></ul></></td>
  18.             </tr>
  19.         </table>
  20.     </td>
  21. </tr>
  22. <script type="text/javascript">
  23.     layui.use('upload', function(){
  24.         var $ = layui.jquery
  25.             ,upload = layui.upload;
  26.  
  27.         // imgurls 圖片上傳
  28.         var uploadInst = upload.render({
  29.             elem: '.imgurls'
  30.             ,url: '../include/layui/layuiupload.php'
  31.             ,multiple: true
  32.             ,accept: 'images'
  33.             ,acceptMime: 'image/*'
  34.             ,done: function(res){
  35.                 if(res.code == 0){
  36.                     return layer.msg(res.msg);
  37.                 }
  38.                 $('#imgurls').append('<li class="item_img">< class="operate"><i class="toleft layui-icon layui-icon-left"></i><i class="toright layui-icon layui-icon-right"></i><i class="close layui-icon layui-icon-close-fill" data-id="' + res.id + '"></i></><img src="' + res.img + '" class="img" ><input type="text" name="imgurls[alt][]" value="" class="layui-input" /><input type="hidden" name="imgurls[url][]" value="' + res.img + '" /><input type="hidden" name="imgurls[uaid][]" value="' + res.id + '" /></li>');
  39.             }
  40.             ,error: function(){
  41.                 //失敗重傳
  42.  
  43.             }
  44.         });
  45.  
  46.         $("body").on("click",".close",function(){
  47.             var id = $(this).data('id');
  48.             $.get('../include/layui/layuiupload.php',{'dopost':'del','id':id},function(res){})
  49.             $(this).closest("li").remove();
  50.         });
  51.  
  52.         $("body").on("click",".layui-upload-img ul li .toleft",function(){
  53.             var li_index = $(this).closest("li").index();
  54.             if(li_index >= 1){
  55.                 $(this).closest("li").insertBefore($(this).closest("ul").find("li").eq(Number(li_index)-1));
  56.             }
  57.         });
  58.         $("body").on("click",".layui-upload-img ul li .toright",function(){
  59.             var li_index = $(this).closest("li").index();
  60.             $(this).closest("li").insertAfter($(this).closest("ul").find("li").eq(Number(li_index)+1));
  61.         });
  62.  
  63.     });
  64. </script>

3、打開 /dede/album_add.php 找到

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="text">
  1. //加入附加表

在它上面加入

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="php">
  1. //圖集字段 imgurls
  2. if(is_array($_POST['imgurls']['url']))
  3. {
  4.     $my_imgurls = "";
  5.     foreach($_POST['imgurls']['url'] as $key => $val)
  6.     {
  7.         $my_imgurls .= "{dede:img ddimg='$val' text='{$_POST['imgurls']['alt'][$key]}' width='' height='' uaid='{$_POST['imgurls']['uaid'][$key]}'}$val{/dede:img}\r\n";
  8.     }
  9. }
  10. $imgurls .= addslashes($my_imgurls);

4、打開 /dede/album_edit.php 找到

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="text">
  1. //更新附加表

在它上面加入

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="php">
  1. //圖集字段 imgurls
  2. if(is_array($_POST['imgurls']['url']))
  3. {
  4.     $my_imgurls = "";
  5.     foreach($_POST['imgurls']['url'] as $key => $val)
  6.     {
  7.         $my_imgurls .= "{dede:img ddimg='$val' text='{$_POST['imgurls']['alt'][$key]}' width='' height='' uaid='{$_POST['imgurls']['uaid'][$key]}'}$val{/dede:img}\r\n";
  8.     }
  9. }
  10. $imgurls .= addslashes($my_imgurls);

第三步、內容頁模板調用圖集標簽新寫法

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="html4strict">
  1. <h2>默認圖集</h2>
  2.     <ul>
  3.     {dede:imagelist}
  4.     <li>
  5.         <img src="[field:imgsrc/]" alt="[field:text/]" width="220" height="150">
  6.         <p>[field:text/]</p>
  7.     </li>
  8.     {/dede:imagelist}
  9. </ul>
  10.  
  11. <h2>戶型圖片</h2>
  12. <ul>
  13.     {dede:imagelist field="huxing"}
  14.     <li>
  15.         <img src="[field:imgsrc/]" alt="[field:text/]" width="220" height="150">
  16.         <p>[field:text/]</p>
  17.     </li>
  18.     {/dede:imagelist}
  19. </ul>

特別說明

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="text">
  1. {dede:imagelist field="huxing"}

field='圖片集字段'

不填的話就是調用圖集默認,織夢多個圖集多實例教程

在操作下面的教程之前必須確定你已經完成上面第一、第二、第三步

第一步、附加表里添加多個圖集字段,例如 戶型圖片 字段

后臺-系統-SQL工具-SQL命令行工具

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="bash">
  1. ALTER TABLE dede_addonimages ADD `huxing` text;

dede_addonimages 是我的圖集模型附加表,注意自己的附加表,千萬別寫錯了

第二步、打開 /dede/templets/album_add.htm 找到

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="text">
  1. id="imgurls"

在它所在的tr下面加入

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="html4strict">
  1. <tr>
  2.     <td width="100%" height="24" colspan="4" class="bline">
  3.         <table width="800" border="0" cellspacing="0" cellpadding="0">
  4.             <tr>
  5.                 <td width="80" height="40">&nbsp;<b>戶型圖片:</b></td>
  6.                 <td>
  7.                     <button type="button" class="layui-btn layui-btn-sm layui-btn-normal huxing">
  8.                         <i class="layui-icon layui-icon-upload"></i>上傳圖片
  9.                     </button>
  10.                 </td>
  11.             </tr>
  12.         </table>
  13.     </td>
  14. </tr>
  15. <tr>
  16.     <td colspan="4" class="bline">
  17.         <table width='100%'>
  18.             <tr>
  19.                 <td>
  20.                     < class="layui-upload-img">
  21.                         <ul class="layui-upload-list" id="huxing"></ul>
  22.                     </>
  23.                 </td>
  24.             </tr>
  25.         </table>
  26.     </td>
  27. </tr>

如圖,注意標注的地方

繼續找到

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="text">
  1. // imgurls 圖片上傳

在它上面加入

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="php">
  1. // huxing 圖片上傳
  2. var uploadInst = upload.render({
  3.     elem: '.huxing'
  4.     ,url: '../include/layui/layuiupload.php'
  5.     ,multiple: true
  6.     ,accept: 'images'
  7.     ,acceptMime: 'image/*'
  8.     ,done: function(res){
  9.         if(res.code == 0){
  10.             return layer.msg(res.msg);
  11.         }
  12.         $('#huxing').append('<li class="item_img">< class="operate"><i class="toleft layui-icon layui-icon-left"></i><i class="toright layui-icon layui-icon-right"></i><i class="close layui-icon layui-icon-close-fill" data-id="' + res.id + '"></i></><img src="' + res.img + '" class="img" ><input type="text" name="huxing[alt][]" value="" class="layui-input" /><input type="hidden" name="huxing[url][]" value="' + res.img + '" /><input type="hidden" name="huxing[uaid][]" value="' + res.id + '" /></li>');
  13.     }
  14.     ,error: function(){
  15.         //失敗重傳
  16.  
  17.     }
  18. });

如圖,注意標注的地方

第三步、打開 /dede/templets/album_edit.htm 找到

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="text">
  1. id="imgurls"

在它所在的tr下面加入

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="php">
  1. <tr>
  2.     <td width="100%" height="24" colspan="4" class="bline">
  3.         <table width="800" border="0" cellspacing="0" cellpadding="0">
  4.             <tr>
  5.                 <td width="80" height="40">&nbsp;<b>戶型圖片:</b></td>
  6.                 <td>
  7.                     <button type="button" class="layui-btn layui-btn-sm layui-btn-normal huxing">
  8.                         <i class="layui-icon layui-icon-upload"></i>上傳圖片
  9.                     </button>
  10.                 </td>
  11.             </tr>
  12.         </table>
  13.     </td>
  14. </tr>
  15. <tr>
  16.     <td colspan="4" class="bline">
  17.         <table width='100%'>
  18.             <tr>
  19.                 <td>
  20.                     < class="layui-upload-img">
  21.                         <ul class="layui-upload-list" id="huxing">
  22.                             <?php
  23.                             if($addRow['huxing']!="")
  24.                             {
  25.                                 $dtp = new DedeTagParse();
  26.                                 $dtp->LoadSource($addRow['huxing']);
  27.                                 if(is_array($dtp->CTags))
  28.                                 {
  29.                                     $fhtml = '';
  30.                                     foreach($dtp->CTags as $ctag)
  31.                                     {
  32.                                         if($ctag->GetName()=="img")
  33.                                         {
  34.                                             $bigimg = trim($ctag->GetInnerText());
  35.                                             $text = trim($ctag->GetAtt('text'),'‘');
  36.                                             $uaid = trim($ctag->GetAtt('uaid'),'‘');
  37.                                             $fhtml .= "<li class=\"item_img\">< class=\"operate\"><i class=\"toleft layui-icon layui-icon-left\"></i><i class=\"toright layui-icon layui-icon-right\"></i><i class=\"close layui-icon layui-icon-close-fill\" data-id=\"{$uaid}\"></i></><img src=\"{$bigimg}\" class=\"img\" ><input type=\"text\" name=\"huxing[alt][]\" value=\"{$text}\" class=\"layui-input\" /><input type=\"hidden\" name=\"huxing[url][]\" value=\"{$bigimg}\" /><input type=\"hidden\" name=\"huxing[uaid][]\" value=\"{$uaid}\" /></li>";
  38.                                         }
  39.                                     }
  40.                                     echo $fhtml;
  41.                                 }
  42.                                 $dtp->Clear();
  43.                             }
  44.                             ?>
  45.                         </ul>
  46.                     </>
  47.                 </td>
  48.             </tr>
  49.         </table>
  50.     </td>
  51. </tr>

如圖,注意標注的字段部分

繼續找到

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="text">
  1. // imgurls 圖片上傳

在它上面加入

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="php">
  1. // huxing 圖片上傳
  2. var uploadInst = upload.render({
  3.     elem: '.huxing'
  4.     ,url: '../include/layui/layuiupload.php'
  5.     ,multiple: true
  6.     ,accept: 'images'
  7.     ,acceptMime: 'image/*'
  8.     ,done: function(res){
  9.         if(res.code == 0){
  10.             return layer.msg(res.msg);
  11.         }
  12.         $('#huxing').append('<li class="item_img">< class="operate"><i class="toleft layui-icon layui-icon-left"></i><i class="toright layui-icon layui-icon-right"></i><i class="close layui-icon layui-icon-close-fill" data-id="' + res.id + '"></i></><img src="' + res.img + '" class="img" ><input type="text" name="huxing[alt][]" value="" class="layui-input" /><input type="hidden" name="huxing[url][]" value="' + res.img + '" /><input type="hidden" name="huxing[uaid][]" value="' + res.id + '" /></li>');
  13.     }
  14.     ,error: function(){
  15.         //失敗重傳
  16.  
  17.     }
  18. });

如圖,注意標注的字段

第四步、打開 /dede/album_add.php 找到

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="text">
  1. //生成HTML

在它上面加入

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="php">
  1. //新增圖集字段 huxing
  2. if(is_array($_POST['huxing']['url']))
  3. {
  4.     $huxing = "";
  5.     foreach($_POST['huxing']['url'] as $key => $val)
  6.     {
  7.         $huxing .= "{dede:img ddimg='$val' text='{$_POST['huxing']['alt'][$key]}' width='' height='' uaid='{$_POST['huxing']['uaid'][$key]}'}$val{/dede:img}\r\n";
  8.     }
  9.     if($huxing)
  10.     {
  11.         $huxing = addslashes($huxing);
  12.         $upquery = "UPDATE `$addtable` SET `huxing`='$huxing' WHERE aid='$arcID' ";
  13.         $dsql->ExecuteNoneQuery($upquery);
  14.     }
  15. }

如圖,注意標注的字段

第五步、打開 /dede/album_edit.php 找到

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="text">
  1. //生成HTML

在它上面加入

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="php">
  1. //新增圖集字段 huxing
  2. $huxing = "";
  3. if(is_array($_POST['huxing']['url']))
  4. {
  5.     foreach($_POST['huxing']['url'] as $key => $val)
  6.     {
  7.         $huxing .= "{dede:img ddimg='$val' text='{$_POST['huxing']['alt'][$key]}' width='' height='' uaid='{$_POST['huxing']['uaid'][$key]}'}$val{/dede:img}\r\n";
  8.     }
  9. }
  10. $huxing = addslashes($huxing);
  11. $upquery = "UPDATE `$addtable` SET `huxing`='$huxing' WHERE aid='$id' ";
  12. $dsql->ExecuteNoneQuery($upquery);

如圖,注意標注的字段

第六步、內容頁標簽新寫法參考上面,使用layui第一張圖作為縮略圖,打開 /dede/album_add.php 找到

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="text">
  1. 生成文檔ID

在它上面加入

< class="wp-geshi-highlight-wrap5"> < class="wp-geshi-highlight-wrap4"> < class="wp-geshi-highlight-wrap3"> < class="wp-geshi-highlight-wrap2"> < class="wp-geshi-highlight-wrap"> < class="wp-geshi-highlight"> < class="php">
  1. //使用layui第一張圖作為縮略圖
  2. if($ddisfirst==1 && $litpic=='')
  3. {
  4.     if(isset($_POST['imgurls']['url'][0]))
  5.     {
  6.         $litpic = $_POST['imgurls']['url'][0];
  7.     }
  8. }

如圖,注意標注的字段

  本文“”來源:http://www.hangqichache.cn/keji/intel/zzzj/rumen/75773.html,轉載必須保留網址。

編輯: yujeu


    ?
    聯系方法 - 招聘信息 - 隱私政策 網站地圖
    溫州在線WENZHOUZX.COM版權所有
    主站蜘蛛池模板: 8x8x我要打机飞在线观看 | 美女脱三角裤 | 96精品视频 | 国产精品午夜福利在线观看 | 最近中文字幕2018MV高清在线 | 国产精品18久久久久久欧美 | 免费观看的毛片 | 99视频精品国产免费观看 | 麻豆免费观看高清完整视频在线 | 99久久e免费热视频百度 | 亚洲AV久久无码精品蜜桃 | 美女露出逼 | 亚洲国产系列一区二区三区 | 特污兔午夜影视院 | 99精品小视频 | 日韩精品亚洲专区在线电影不卡 | 日日噜噜夜夜躁躁狠狠 | 人妻夜夜爽天天爽三区麻豆AV网站 | 国产欧美国日产在线播放 | 亚洲精品偷拍影视在线观看 | 精品一产品大全 | 日本xxxx19 | 99精品99| 久久福利影院 | 波多野结衣二区 | 儿子操妈妈 | 韩剧19禁啪啪无遮挡大尺度 | 桃花在线视频观看免费 | 碰超成人在线公开免费视频 | 九九热精品在线观看 | 俄罗斯黄色大片 | 日韩AV成人无码久久精品老人 | 无限资源在线观看高清 | 免费视频亚洲 | 午夜福利小视频400 午夜福利网国产A | 成人在线免费视频播放 | 亚洲午夜精品A片久久软件 亚洲午夜精品A片久久不卡蜜桃 | 久草网国产自偷拍 | 美女被艹网站 | 久久夜色噜噜噜亚洲AV0000 | 亚洲国产高清在线观看视频 |