Index: schedule/Module/control.php
===================================================================
--- schedule/Module/control.php	(revision 17462)
+++ schedule/Module/control.php	(revision 17463)
@@ -472,5 +472,9 @@
 				newtr<?php echo $cnt; ?>.appendChild(newtd_c5);
 				newInnertable.appendChild(newtr<?php echo $cnt; ?>);
-
+		<?php		
+			$cnt++;
+			$prevtimestamp = $timestamp;
+		}
+		?>
 			var newtd_c6 = document.createElement("td");
 				newtd_c6.appendChild(newInnertable);
@@ -499,11 +503,6 @@
 			} else {
 				targetView.appendChild(newdiv);
-			}
-
-		
-		<?php		
-			$cnt++;
-			$prevtimestamp = $timestamp;
-		}
+			}	
+	<?php
 	}
 
