欧美乱伦图片区,国产日韩欧美一区二区三区四区五区,欧美性色爽,乱伦小说网站免费观看视频,啊用力啊好深啊H在线观看,男女做哎爱过程图片

信息動(dòng)態(tài)

網(wǎng)站設(shè)計(jì)是技術(shù)與創(chuàng)意的完美融合!

技術(shù)資訊

dede自定義圖片上傳不支持中文 解決方法

2012-07-22 18:41:42

青島網(wǎng)站建設(shè)青島網(wǎng)站制作的時(shí)候,大家有時(shí)候會(huì)用到織夢的后臺(tái),但是dede自定義圖片上傳不支持中文,就是自定義圖片瀏覽上傳的時(shí)候,如果本地圖片名字是中文,那么上傳后,中文字符將不能保存,導(dǎo)致圖片無法顯示,網(wǎng)上大家的說這是dede的一個(gè)bug,因此,今天用一個(gè)別的辦法解決了這個(gè)問題,并且用此方法也可以給后臺(tái)文章添加頁增加其他字段,方法如下:

在后臺(tái)模板增加一個(gè)圖片上傳字段:

1、在dede/templets/archives_add.htm,增加修改字段代碼:
圖片:<input type='text' name='pica3' id='pica3' style='width:300px' class='text' /> <input name='pica3_bt' type='button' class='inputbut' value='瀏覽...' onClick="SelectImage('form1.pica3','big')" />

2、在dede/archives_add.php增加字段的代碼pica3:
//保存到主表
 $query = "INSERT INTO `dede_archives`(id,typeid,typeid2,sortrank,flag,ismake,channel,arcrank,click,money,title,shorttitle,pica3,
    color,writer,source,litpic,pubdate,senddate,mid,notpost,description,keywords,filename,dutyadmin,weight)
    VALUES ('$arcID','$typeid','$typeid2','$sortrank','$flag','$ismake','$channelid','$arcrank','$click','$money','$title','$shorttitle','$pica3',

3、在dede/templets/archives_edit.htm,增加修改字段代碼pica3,:
圖片:<input type='text' name='pica3' id='pica3' style='width:300px' class='text' value="<?php echo $arcRow["pica3"]?>" /> <input name='pica3_bt' type='button' class='inputbut' value='瀏覽...' onClick="SelectImage('form1.pica3','big')" />

4、在dede/archives_edit.php增加字段的代碼pica3,:
//對保存的內(nèi)容進(jìn)行處理
 $pubdate = GetMkTime($pubdate);
 $sortrank = AddDay($pubdate,$sortup);
 $ismake = $ishtml==0 ? -1 : 0;
 $title = cn_substrR($title,$cfg_title_maxlen);
 $shorttitle = cn_substrR($shorttitle,36);
 $pica3 = cn_substrR($pica3,250);
 $color =  cn_substrR($color,7);
 $writer =  cn_substrR($writer,20);
 $source = cn_substrR($source,30);
 $description = cn_substrR($description,$cfg_auot_description);
 $keywords = trim(cn_substrR($keywords,60));
 $filename = trim(cn_substrR($filename,40));
 $isremote  = (empty($isremote)? 0  : $isremote);
 $serviterm=empty($serviterm)? "" : $serviterm;
 if(!TestPurview('a_Check,a_AccCheck,a_MyCheck'))

5、在數(shù)據(jù)庫添加對應(yīng)字段pica3,:
dede_archives增加一個(gè)字段pica3 varchar(250)

好了,大功告成。什么?圖片上傳后選中,圖片選擇器窗口不能關(guān)閉?用這個(gè)辦法吧:

select_images.rar

將上面這個(gè)文件覆蓋這個(gè):include\dialog\select_images.php

0532-85810878 473587358 掃碼添加微信

掃碼添加微信

掃碼關(guān)注公眾號(hào)

官方公眾號(hào)

2054585360
郧西县| 高邮市| 高阳县| 疏附县| 塔河县| 洞口县| 尼玛县| 六安市| 东光县| 富民县| 和顺县| 神农架林区| 子洲县| 万全县| 新巴尔虎左旗| 石河子市| 永丰县| 平山县| 东莞市| 遂平县| 金堂县| 泽库县| 巨鹿县| 大兴区| 广昌县| 济南市| 安徽省| 龙门县| 多伦县| 宜州市| 清徐县| 柳河县| 旬邑县| 盐源县| 潜江市| 昌宁县| 乳山市| 高州市| 蛟河市| 涞水县| 邹城市|