M_ID==0)
{
ShowMsg('鍙湁浼氬憳鎵嶅厑璁告敹钘忔搷浣滐紒','javascript:window.close();');
exit();
}
//璇诲彇鏂囨。淇℃伅
$arcRow = GetOneArchive($aid);
if($arcRow['aid']=='')
{
ShowMsg("鏃犳硶鏀惰棌鏈煡鏂囨。!","javascript:window.close();");
exit();
}
extract($arcRow, EXTR_SKIP);
$title = HtmlReplace($title,1);
$aid = intval($aid);
$addtime = time();
if($type==''){
$row = $dsql->GetOne("Select * From `#@__member_stow` where aid='$aid' And mid='{$ml->M_ID}' AND type='' ");
if(!is_array($row))
{
$dsql->ExecuteNoneQuery("INSERT INTO `#@__member_stow`(mid,aid,title,addtime) VALUES ('".$ml->M_ID."','$aid','".addslashes($arctitle)."','$addtime'); ");
}
}else{
$row = $dsql->GetOne("Select * From `#@__member_stow` where type='$type' and (aid='$aid' And mid='{$ml->M_ID}')");
if(!is_array($row)){
$dsql->ExecuteNoneQuery(" INSERT INTO `#@__member_stow`(mid,aid,title,addtime,type) VALUES ('".$ml->M_ID."','$aid','$title','$addtime','$type'); ");
}
}
//鏇存柊鐢ㄦ埛缁熻
$row = $dsql->GetOne("SELECT COUNT(*) AS nums FROM `#@__member_stow` WHERE `mid`='{$ml->M_ID}' ");
$dsql->ExecuteNoneQuery("UPDATE #@__member_tj SET `stow`='$row[nums]' WHERE `mid`='".$ml->M_ID."'");
ShowMsg('鎴愬姛鏀惰棌涓€绡囨枃妗o紒','javascript:window.close();');
?>