|
发表于 2010-12-30 16:08:15
|
来自 中国山东济南
//加粗
function jiancu();
---------------------------*/
else if($dopost=="jiachu")
{
SetPageRank(5);
if( $aid!="" && !ereg("(".$aid."`|`".$aid.")",$qstr) ) $qstr .= "`".$aid;
if($qstr==""){
ShowMsg("参数无效!",$ENV_GOBACK_URL);
exit();
}
$qstrs = explode("`",$qstr);
$dsql = new DedeSql(false);
foreach($qstrs as $aid)
{
$aid = ereg_replace("[^0-9]","",$aid);
if($aid=="") continue;
$dsql->SetQuery("Update #@__archives set iscommend='5' where ID='$aid'");
$dsql->ExecuteNoneQuery();
}
$dsql->Close();
ShowMsg("成功把所选的文档设为推荐!",$ENV_GOBACK_URL);
exit();
}
/*--------------------------
//变红
function bianhong();
---------------------------*/
else if($dopost=="bianhong")
{
SetPageRank(5);
if( $aid!="" && !ereg("(".$aid."`|`".$aid.")",$qstr) ) $qstr .= "`".$aid;
if($qstr==""){
ShowMsg("参数无效!",$ENV_GOBACK_URL);
exit();
}
$qstrs = explode("`",$qstr);
$dsql = new DedeSql(false);
foreach($qstrs as $aid)
{
$aid = ereg_replace("[^0-9]","",$aid);
if($aid=="") continue;
$dsql->SetQuery("Update #@__archives set color='#FF0000' where ID='$aid'");
$dsql->ExecuteNoneQuery();
}
$dsql->Close();
ShowMsg("成功把所选的文档设为推荐!",$ENV_GOBACK_URL);
exit();
}
/*--------------------------
//变蓝
function bianlan();
---------------------------*/
else if($dopost=="bianlan")
{
SetPageRank(5);
if( $aid!="" && !ereg("(".$aid."`|`".$aid.")",$qstr) ) $qstr .= "`".$aid;
if($qstr==""){
ShowMsg("参数无效!",$ENV_GOBACK_URL);
exit();
}
$qstrs = explode("`",$qstr);
$dsql = new DedeSql(false);
foreach($qstrs as $aid)
{
$aid = ereg_replace("[^0-9]","",$aid);
if($aid=="") continue;
$dsql->SetQuery("Update #@__archives set color='#0000FF' where ID='$aid'");
$dsql->ExecuteNoneQuery();
}
$dsql->Close();
ShowMsg("成功把所选的文档设为推荐!",$ENV_GOBACK_URL);
exit();
}
/*-------------------------- |
|