Changeset 16419 for schedule/function
- Timestamp:
- 05/29/13 05:32:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
schedule/function/SplitDelete.php
r16345 r16419 19 19 input.setAttribute("required",true) 20 20 21 ) 21 ); 22 td3.appendChild( 23 button=document.createElement('input'), 24 button.setAttribute('type','button'), 25 button.setAttribute('value','[+]'), 26 button.setAttribute('id','btnAddTime'), 27 button.onclick=function(){ 28 if($('#Time1').val() != ""){ timeValue = $('#Time1').val(); meas = "disabled"; meas2 = true; split1(); }else{ alert("please enter value for time to add measurement"); } 29 30 31 } 32 ); 22 33 var td=document.createElement('td'); 23 34 td.setAttribute("style","border:1px solid white; color:#37DFB1; font-size:14px;text-align:center;"); … … 66 77 ?> 67 78 measurementcbo.setAttribute('id','measurement1') 79 ); 80 td1.appendChild( 81 button=document.createElement('input'), 82 button.setAttribute('type','button'), 83 button.setAttribute('value','[+]'), 84 button.setAttribute('id','btnAddTime'), 85 button.onclick=function(){ 86 if($('#Time1').val() != ""){ timeValue = $('#Time1').val(); meas = "hidden"; meas2 = true; split1(); }else{ alert("please enter value for time to add measurement"); } 87 88 89 } 68 90 ); 69 91 var td2=document.createElement('td'); … … 101 123 } 102 124 ); 103 td4.appendChild( 104 button=document.createElement('input'), 105 button.setAttribute('type','button'), 106 button.setAttribute('value','+Measurement'), 107 button.setAttribute('id','btnMeasurement'), 108 button.onclick=function(){ 109 110 if($('#Time1').val() != ""){ timeValue = $('#Time1').val(); meas = "disabled"; meas2 = true; split1(); }else{ alert("please enter value for time to add measurement"); } 111 } 112 ); 125 113 126 tr.appendChild(td3); 114 127 tr.appendChild(td1); … … 136 149 input.setAttribute("min","1"), 137 150 input.setAttribute("required",true) 138 ) 151 ); 152 td3.appendChild( 153 button=document.createElement('input'), 154 button.setAttribute('type','button'), 155 button.setAttribute('value','[+]'), 156 button.setAttribute('id','btnAddTime'), 157 button.onclick=function(){ 158 if($('#Time2').val() != ""){ timeValue = $('#Time2').val(); meas = "disabled"; meas2 = true; split(); }else{ alert("please enter value for time to add measurement"); } 159 160 161 } 162 ); 139 163 var td=document.createElement('td'); 140 164 td.setAttribute("style","border:1px solid white; color:#37DFB1; font-size:14px;text-align:center;"); … … 180 204 ?> 181 205 measurementcbo.setAttribute('id','measurement2') 206 ); 207 td1.appendChild( 208 button=document.createElement('input'), 209 button.setAttribute('type','button'), 210 button.setAttribute('value','[+]'), 211 button.setAttribute('id','btnAddTime'), 212 button.onclick=function(){ 213 if($('#Time2').val() != ""){ timeValue = $('#Time2').val(); meas = "hidden"; meas2 = true; split(); }else{ alert("please enter value for time to add measurement"); } 214 215 216 } 182 217 ); 183 218 var td2=document.createElement('td'); … … 214 249 } 215 250 ); 216 td4.appendChild( 217 button=document.createElement('input'), 218 button.setAttribute('type','button'), 219 button.setAttribute('value','+Measurement'), 220 button.setAttribute('id','btnMeasurement'), 221 button.onclick=function(){ 222 223 224 225 if($('#Time2').val() != ""){ timeValue = $('#Time2').val(); meas = "disabled"; meas2 = true; split(); }else{ alert("please enter value for time to add measurement"); } 226 227 } 228 ); 251 229 252 tr.appendChild(td3); 230 253 tr.appendChild(td1); … … 251 274 var td3=document.createElement('td'); 252 275 td3.setAttribute('style','border:1px solid white; color:#37DFB1; font-size:14px; text-align:center;'); 276 td3.setAttribute('class','first'); 277 253 278 td3.appendChild( 254 279 input = document.createElement("input"), … … 262 287 263 288 ); 289 td3.appendChild( 290 button=document.createElement('input'), 291 button.setAttribute('type','button'), 292 button.setAttribute('value','[+]'), 293 button.setAttribute('id','btnAddTime'), 294 button.setAttribute(meas,meas2), 295 button.onclick=function(){ 296 if($('#Time'+cnt).val() != ""){ timeValue = $('#Time'+cnt).val(); meas = "disabled"; meas2 = true; split1(); }else{ alert("please enter value for time to add measurement"); } 297 298 299 } 300 ); 264 301 265 302 var td=document.createElement('td'); … … 307 344 measurementcbo.setAttribute('id','measurement'+cnt) 308 345 ); 346 td1.appendChild( 347 button=document.createElement('input'), 348 button.setAttribute('type','button'), 349 button.setAttribute('value','[+]'), 350 button.setAttribute('id','btnAddTime'), 351 button.onclick=function(){ 352 353 if($('#Time'+cnt).val() != ""){ timeValue = $('#Time'+cnt).val(); meas = "hidden"; meas2 = true; split1(); }else{ alert("please enter value for time to add measurement"); } 354 355 356 } 357 ); 358 309 359 var td2=document.createElement('td'); 310 360 td2.setAttribute("style","border:1px solid white; color:#37DFB1; font-size:14px; text-align:center;"); … … 338 388 } 339 389 ); 340 td4.appendChild( 341 button=document.createElement('input'), 342 button.setAttribute('type','button'), 343 button.setAttribute('value','+Measurement'), 344 button.setAttribute('id','btnMeasurement'), 345 button.onclick=function(){ 346 if($('#Time'+cnt).val() != ""){ timeValue = $('#Time'+cnt).val(); meas = "disabled"; meas2 = true; split(); }else{ alert("please enter value for time to add measurement"); } 347 } 348 ); 390 349 391 tr.appendChild(td3); 350 392 tr.appendChild(td1); … … 375 417 var td3=document.createElement('td'); 376 418 td3.setAttribute('style','border:1px solid white; color:#37DFB1; font-size:14px; text-align:center;'); 419 td3.setAttribute('class','first'); 377 420 td3.appendChild( 378 421 input = document.createElement("input"), … … 385 428 input.setAttribute("value",timeValue) 386 429 ); 430 td3.appendChild( 431 button=document.createElement('input'), 432 button.setAttribute('type','button'), 433 button.setAttribute('value','[+]'), 434 button.setAttribute('id','btnAddTime'), 435 button.setAttribute(meas,meas2), 436 button.onclick=function(){ 437 if($('#Time'+cnt).val() != ""){ timeValue = $('#Time'+cnt).val(); meas = "disabled"; meas2 = true; split1(); }else{ alert("please enter value for time to add measurement"); } 438 439 440 } 441 ); 387 442 388 443 var td=document.createElement('td'); … … 411 466 var td1=document.createElement('td'); 412 467 td1.setAttribute("style","border:1px solid white; color:#37DFB1; font-size:14px;text-align:center;"); 468 413 469 td1.appendChild( 414 470 measurementcbo= document.createElement('select'), … … 430 486 measurementcbo.setAttribute('id','measurement'+cnt) 431 487 ); 488 td1.appendChild( 489 button=document.createElement('input'), 490 button.setAttribute('type','button'), 491 button.setAttribute('value','[+]'), 492 button.setAttribute('id','btnAddTime'), 493 button.onclick=function(){ 494 495 if($('#Time'+cnt).val() != ""){ timeValue = $('#Time'+cnt).val(); meas = "hidden"; meas2 = true; split1(); }else{ alert("please enter value for time to add measurement"); } 496 497 498 } 499 ); 500 432 501 var td2=document.createElement('td'); 433 502 td2.setAttribute("style","border:1px solid white; color:#37DFB1; font-size:14px; text-align:center;"); … … 460 529 cnt--; 461 530 }); 462 td4.appendChild( 463 button=document.createElement('input'), 464 button.setAttribute('type','button'), 465 button.setAttribute('value','+Measurement'), 466 button.setAttribute('id','btnMeasurement'), 467 button.onclick=function(){ 468 if($('#Time'+cnt).val() != ""){ timeValue = $('#Time'+cnt).val(); meas = "disabled"; meas2 = true; split1(); }else{ alert("please enter value for time to add measurement"); } 469 470 471 } 472 ); 531 473 532 tr.appendChild(td3); 474 533 tr.appendChild(td1);
Note:
See TracChangeset
for help on using the changeset viewer.