';
+
+if (!empty($yayear) && !empty($yamonth) && empty($calendstart) && empty($calendend)) {
+
+ $date1 = $yayear . $yamonth . '01';
+ $nextmonth = $yamonth + 1;
+ $dayendmonth = date('d', mktime(0,0,0,$nextmonth,0,2016));
+ $date2 = $yayear . $yamonth . $dayendmonth;
+ $ModDate1 = $date1;
+ $ModDate2 = $date2;
+
+ // dump($yamonth,0,'$yamonth');
+
+}
+
+if (!empty($calendstart) && !empty($calendend)) {
+ $date1 = date('Ymd',strtotime($calendstart));
+ $date2 = date('Ymd',strtotime($calendend));
+ $ModDate1 = $date1;
+ $ModDate2 = $date2;
+ // dump($yamonth,0,'$yamonth');
+}
+
+$articlesmonthtag = "SELECT id"
+." FROM " . ZOO_TABLE_ITEM
+." WHERE type = '".$TypeArticleorProduct."' AND state = '1' AND access = '1' AND publish_up BETWEEN '".$year."-".$month."-01 00:00:00' AND '".$year."-".$month."-31 23:59:59'";
+
+$Arrayarticlesmonthtag = array($app->table->tag->database->queryResultArray($articlesmonthtag));
+echo "