コード例 #1
0
$shelf = new Shelf();

$shelf->setUserID($_COOKIE['userID']);
$shelf->setPID($_data['PID']);
$shelf->getShelfItem();

$cited_stat = intval($shelf->getCitedStat());

$access_stat = intval($shelf->getAccessStat());

$visible = $shelf->getVisible();

if($visible || $access_stat)
{
	$shelf->setCitedStat(0);
	$shelf->UpdateArticleInShelf();

}else{
	$shelf->removeArticleFromShelf();
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
	"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	    <meta http-equiv="Pragma" content="no-cache">
	    <meta http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT">
		<script type="text/javascript">