Code Duplication    Length = 5-5 lines in 2 locations

programs/utilit/planningincl.php 2 locations

@@ 373-377 (lines=5) @@
370
	    $W = bab_Widgets();
371
	    
372
	    switch (bab_rp('searchtype')) {
373
	        case '2':
374
    	       $dateb = bab_rp('dateb');
375
    	       $datee = bab_rp('datee');
376
    	       $_date = null;
377
    	       break;
378
    	      
379
	        default:
380
	        case '1':
@@ 380-384 (lines=5) @@
377
    	       break;
378
    	      
379
	        default:
380
	        case '1':
381
	           $dateb = null;
382
	           $datee = null;
383
	           $_date = bab_rp('date');
384
	           break;
385
	    }
386
	    
387
	    $periodpicker = $W->PeriodPicker()->setNames('dateb', 'datee')->setValues($dateb, $datee);