Changeset 17506
- Timestamp:
- 01/13/14 06:54:35 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/Module/control.php
r17501 r17506 1 1 <script language="javascript"> 2 2 'use strict'; 3 3 var ctr; 4 4 … … 296 296 297 297 newdiv.appendChild(newtable); 298 299 298 if(nextrow != null){ 300 299 var doc = document.getElementById(nextrow); … … 307 306 function addRowClone(nextrow){ 308 307 <?php 309 $fetch = mysql_query("SELECT * FROM schedule WHERE date(fStart) = '$days' ORDER BY fScheduleID A SC,fMeasurementID ASC") or die(mysql_error());308 $fetch = mysql_query("SELECT * FROM schedule WHERE date(fStart) = '$days' ORDER BY fScheduleID AND fMeasurementID ASC") or die(mysql_error()); 310 309 $cnt3=0; 311 310 $cnt2=0; … … 314 313 //$data = array(); 315 314 //$counter=0; 316 $prevtimestamp = 0;317 318 315 while($rows = mysql_fetch_array($fetch)) 319 316 { 320 $scheduleId = $rows['fScheduleID'];321 317 $timestamp=strtotime($rows['fStart']); 322 318 $timestamp2 = date('Y-m-d',$timestamp); … … 371 367 input_data.setAttribute("value","+"), 372 368 input_data.onclick = function(){ 373 addRowClone1("list_<?php echo $cnt +1; ?>");369 addRowClone1("list_<?php echo $cnt; ?>"); 374 370 } 375 371 ); … … 458 454 } 459 455 ); 460 461 456 newtr<?php echo $cnt; ?>.appendChild(newtd_c2); 462 457 newtr<?php echo $cnt; ?>.appendChild(newtd_c3); … … 464 459 newtr<?php echo $cnt; ?>.appendChild(newtd_c5); 465 460 newInnertable.appendChild(newtr<?php echo $cnt; ?>); 461 466 462 467 463 var newtd_c6 = document.createElement("td"); … … 485 481 486 482 newdiv.appendChild(newtable); 487 488 483 if(nextrow != null){ 489 484 var doc = document.getElementById(nextrow); 490 485 $(doc).after(newdiv); 491 } else{486 }else{ 492 487 targetView.appendChild(newdiv); 493 488 //$(targetView).after(newtr<?php echo $cnt; ?>); … … 497 492 498 493 $cnt++; 499 $prevtimestamp = $timestamp;500 494 } 501 502 503 495 if(mysql_num_rows($fetch)<1) 504 496 {
Note:
See TracChangeset
for help on using the changeset viewer.