Code Duplication    Length = 5-5 lines in 2 locations

web_interface/astpp/application/libraries/astpp/form.php 2 locations

@@ 421-425 (lines=5) @@
418
					$form_contents.= '<li class="col-md-12">';
419
				}
420
				$form_contents.= '<div class="col-md-3 no-padding">';
421
				if ($fieldvalue[1] == 'HIDDEN') {
422
					$form_contents.= form_hidden($fieldvalue[2], $fieldvalue[3]);
423
				} else {
424
					$form_contents.= form_label(gettext($fieldvalue[0]), "", array("class" => "search_label col-md-12 no-padding"));
425
				}
426
				if ($fieldvalue[1] == 'INPUT') {
427
					$form_contents.= form_input($fieldvalue[2]);
428
				}
@@ 513-517 (lines=5) @@
510
					$form_contents.= '<li>';
511
				}
512
				$form_contents.= '<div class="col-md-4 no-padding">';
513
				if ($fieldvalue[1] == 'HIDDEN') {
514
					$form_contents.= form_hidden($fieldvalue[2], $fieldvalue[3]);
515
				} else {
516
					$form_contents.= form_label(gettext($fieldvalue[0]), "", array("class" => "search_label col-md-12 no-padding"));
517
				}
518
				if ($fieldvalue[2] == 'SELECT' || $fieldvalue[5] == '1') {
519
					if ($fieldvalue[7] != '' && $fieldvalue[8] != '') {
520
						$str = $fieldvalue[7] . "," . $fieldvalue[8];