function ISRecord($m_id,$channel_id,$user_id)
{
$dsql = new Dedesql(false);
$dsql->Init();//这句不加不能初始化数据库链接,不清楚什么原因
if($channel_id==-30)
{
$row = $dsql->GetOne("SELECT * FROM `#@__addon30` WHERE huiyuanid = '$m_id' ");
if(is_array($row))
return "<font color='blue'>已录入</font>";
else
return "<a href='javascript:;' onclick=\"setReturn('".$m_id."|".$user_id."')\">选择</a>";
}
if($channel_id==-19)
{
$row = $dsql->GetOne("SELECT * FROM `#@__addon19` WHERE huiyuanid = '$m_id' ");
if(is_array($row))
return "<font color='blue'>已录入</font>";
else
return "<a href='javascript:;' onclick='setReturn('".$m_id."|".$user_id."')'>选择</a>";
}
}