欧美一区二区三区老妇人-欧美做爰猛烈大尺度电-99久久夜色精品国产亚洲a-亚洲福利视频一区二区

帝國cms的tags 帝國cms api

帝國cms關(guān)鍵詞怎么更新到 tags里面去,sql數(shù)據(jù)庫命令怎么寫?

那你要把這個字段值寫進(jìn)去呀。所以你要找到這個頁面的提交處理頁面,然后在這個頁面內(nèi)加入你要添加的那個字段值。最后在前臺輸出。

寶山網(wǎng)站建設(shè)公司創(chuàng)新互聯(lián)公司,寶山網(wǎng)站設(shè)計(jì)制作,有大型網(wǎng)站制作公司豐富經(jīng)驗(yàn)。已為寶山上千家提供企業(yè)網(wǎng)站建設(shè)服務(wù)。企業(yè)網(wǎng)站搭建\外貿(mào)網(wǎng)站制作要多少錢,請找那個售后服務(wù)好的寶山做網(wǎng)站的公司定做!

帝國CMS,如何將關(guān)鍵字和tags 同步更新

修改系統(tǒng)字段---special.field (特殊屬性字段)

修改關(guān)鍵詞位置,修改為

function copykeyword(){

document.getElementById("keyword").focus()

document.getElementById("keyword").select()

document.getElementById("infotags").value=document.getElementById("keyword").value}關(guān)鍵字:

帝國cms怎么批量添加信息的tags

修改步驟:

1、以下代碼加入到admin/ecmsinfo.php,在任意2個elseif中間插入就行

elseif($enews=="AddTags_all")//列表批量添加Tags

{

$classid=$_POST['classid'];

$id=$_POST['id'];

$tags=$_POST['add_listtags'];

$newstime=time();

eInsertTags2($tags,$classid,$id,$newstime);

}

2、將以下代碼加入到class/uesrfun.php

//加入TAG表

function eInsertTags2($tags,$classid,$id,$newstime){

global $empire,$dbtbpre,$class_r;

if(!trim($tags))

{

printerror("TAGS信息不能為空", "", 1, 0, 1);

return '';

}

$count = count($id); //統(tǒng)計(jì)ID數(shù)量

$tags = RepPostVar($tags);

$tag = explode(",", $tags);

if (emptyempty($count))

{

printerror("未選擇信息ID", "", 1, 0, 1);

}

if (count($tag)1)

{

printerror("只能添加一個TAGS詞", "", 1, 0, 1);

}

$classid=(int)$classid;

$id[$i] = (int)$id[$i];

$mid=(int)$class_r[$classid][modid];

for($i=0;$i$count;$i++)

{

$tbname=$class_r[$classid][tbname];//獲取表名

$r=$empire-fetch1("select tagid from {$dbtbpre}enewstags where tagname='$tags' limit 1");

$t = $empire-fetch1("select infotags from {$dbtbpre}ecms_".$tbname." where id='$id[$i]'");

$taga=$t['infotags'].",".$tags; //組合TAGS

$tagb[$i] = explode(",",$taga); //設(shè)置數(shù)組

$tagc=array_values(array_unique($tagb[$i])); //數(shù)組排重

for($t=0;$tcount($tagc);$t++)

{//二級子循環(huán)TAGS數(shù)組輸出

$newtags[$i].= ",".$tagc[$t];

}

if($r[tagid])

{

$datar=$empire-fetch1("select tagid,classid,newstime from {$dbtbpre}enewstagsdata where tagid='$r[tagid]' and id='$id[$i]' and mid='$mid' limit 1");

if($datar[tagid])

{

if($datar[classid]!=$classid||$datar[newstime]!=$newstime)

{

$empire-query("update {$dbtbpre}enewstagsdata set classid='$classid',newstime='$newstime' where tagid='$r[tagid]' and id='$id[$i]' and mid='$mid' limit 1");

}

}

else

{

$empire-query("update {$dbtbpre}enewstags set num=num+1 where tagid='$r[tagid]'");

$empire-query("update {$dbtbpre}ecms_".$tbname." set infotags='".trim($newtags[$i],",")."' where id='$id[$i]'");

$empire-query("insert into {$dbtbpre}enewstagsdata(tagid,classid,id,newstime,mid) values('$r[tagid]','$classid','$id[$i]','$newstime','$mid');");

}

}

else

{

$empire-query("update {$dbtbpre}ecms_".$tbname." set infotags='".trim($newtags[$i],",")."' where id='$id[$i]'");

$empire-query("insert into {$dbtbpre}enewstags(tagname,num,isgood,cid) values('$tags',1,0,0);");

$tagid=$empire-lastid();

$empire-query("insert into {$dbtbpre}enewstagsdata(tagid,classid,id,newstime,mid) values('$tagid','$classid','$id[$i]','$newstime','$mid');");

}

}

printerror("批量添加TAGS成功", "", 1, 0, 1);

}

3、信息管理列表模板最后一列修改成以下代碼,在e/data/html/list/文件夾內(nèi)

td height="25" colspan="8"

table width="100%" border="0" cellpadding="0" cellspacing="0"

tr

td width="68%" height="25"

font color="#666666"備注:多選框藍(lán)色為未審核信息;發(fā)布者紅色為會員投稿;信息ID粗體為未生成,點(diǎn)擊ID可刷新頁面./font

/td

td width="32%" input type="text" name="add_listtags" id="add_listtags" size="50" value="" /

input type="submit" name="Submit100" value="添加TAGS" onClick="document.listform.enews.value='AddTags_all';document.listform.action='ecmsinfo.php';"

/td

/tr

/table

/td

網(wǎng)站題目:帝國cms的tags 帝國cms api
網(wǎng)頁路徑:http://chinadenli.net/article14/ddeijge.html

成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供網(wǎng)頁設(shè)計(jì)公司、企業(yè)建站企業(yè)網(wǎng)站制作、服務(wù)器托管、網(wǎng)站排名、虛擬主機(jī)

廣告

聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)

h5響應(yīng)式網(wǎng)站建設(shè)