//当subday=7的时候调用7天内得所有文章
if($subday > 0)
{
if($subday == 1)
{
$ntime = gmmktime(0, 0, 0, gmdate('m'), gmdate('d'), gmdate('Y'));
$limitday = $ntime - ($subday * 24 * 3600);
$orwheres[] = " arc.senddate > $limitday ";
}
else if ($subday == 2)
{
$ntime = gmmktime(0, 0, 0, gmdate('m'), gmdate('d'), gmdate('Y'));
$limitday = $ntime - ($subday * 24 * 3600);
$lomitday = $ntime;
$orwheres[] = " arc.senddate > $lomitday && arc.senddate < $limitday";
}
else if ($subday == 3)
{
$ntime = gmmktime(0, 0, 0, gmdate('m'), gmdate('d'), gmdate('Y'));
$limitday = $ntime -($subday * 24 * 3600)+(1*24 * 3600);
$orwheres[] = " arc.senddate < $limitday ";
}
else if ($subday == 7)
{
$ntime = gmmktime(0, 0, 0, gmdate('m'), gmdate('d'), gmdate('Y'));
$limitday = $ntime - ($subday * 24 * 3600);
$orwheres[] = " arc.senddate > $limitday ";
}
}
}
到此这篇关于织梦DEDECMS调用某个时间段发布的文章就介绍到这了。更快、更高、更强。领先就是金牌。更多相关织梦DEDECMS调用某个时间段发布的文章内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!