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

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

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

技術(shù)資訊

dede后臺(tái)文章添加頁手動(dòng)增加字段

2012-08-21 23:19:29

dede除了通過后臺(tái)內(nèi)容模型增加自定義字段外,還可以根據(jù)需要,對文章添加頁進(jìn)行字段的添加,這樣的最大好處就是能夠自由編輯文章添加頁的版式,因?yàn)閐ede自帶的那個(gè)模型添加字段只能往下羅列累加,導(dǎo)致dede文章添加頁巨長,可以在青島網(wǎng)站建設(shè)中使用,例圖:

青島網(wǎng)站設(shè)計(jì),青島網(wǎng)站制作,青島網(wǎng)站建設(shè),力圖數(shù)字科技

方法如下:

如何在后臺(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)

6、其他注意事項(xiàng):
如果添加圖片時(shí)候,選中,圖片選擇器窗口不能自動(dòng)關(guān)閉,就用該文件替換:
http://www.ihaomai.cn/uploads/allimg/120823/select_images.rar

0532-85810878 473587358 掃碼添加微信

掃碼添加微信

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

官方公眾號(hào)

2054585360
康平县| 来安县| 上饶县| 兴安县| 永和县| 福建省| 万载县| 磐石市| 长岛县| 曲麻莱县| 曲阜市| 广德县| 武鸣县| 公主岭市| 同仁县| 沙湾县| 邳州市| 平安县| 昌江| 宿松县| 万年县| 吉安县| 个旧市| 塘沽区| 汉川市| 缙云县| 顺义区| 泽普县| 广河县| 正安县| 清远市| 泸溪县| 长乐市| 丹巴县| 新昌县| 定州市| 白沙| 仪陇县| 泰来县| 亳州市| 和平县|