diff --git a/app/Views/editrequisitionform.php b/app/Views/editrequisitionform.php index a2ad78a8..9f02ab4d 100644 --- a/app/Views/editrequisitionform.php +++ b/app/Views/editrequisitionform.php @@ -38,24 +38,9 @@ if (!empty($ReqPOType)) { window.onload = function() { var serviceScheduleType = ''; if (serviceScheduleType != '') { - if (serviceScheduleType != 'Recurring') { - $('#DisplayScheduleDiv').show(); - $('#ServicePeriodOption').hide(); - $('#NoServices').hide(); - - } else { - $('#DisplayScheduleDiv').show(); - $('#ServicePeriodOption').hide(); - $('#NoServices').hide(); - } - - - + $('#DisplayScheduleDiv').show(); } else { - document.getElementById('DisplayScheduleDiv').style.display = 'none'; - $('#ServicePeriodOption').hide(); - $('#NoServices').hide(); - + $('#DisplayScheduleDiv').hide(); } } @@ -97,7 +82,6 @@ if (!empty($ReqPOType)) { $data = array('name' => 'RequestType', 'value' => set_value('RequestType', $ReqType), 'id' => 'RequestType', 'class' => 'form-control', 'readonly' => 'true'); echo form_input($data); ?> -
@@ -130,55 +114,17 @@ if (!empty($ReqPOType)) { ?>
- - - @@ -240,27 +186,50 @@ if (!empty($ReqPOType)) { - + + 'ServiceNo', 'value' => set_value('ServiceNo', $noOfService), 'id' => 'ServiceNo', 'class' => 'form-control', 'onkeypress' => 'return isNumberKey(event);'); + echo form_hidden($data); + ?> +
+ + ConfigValue) { + + $ServiceOptions[$SerOptionsel->ConfigValue] = $SerOptionsel->ConfigValue; + } + endforeach; + + foreach ($ServiceOption as $SerOption) : + if ($servicePeriod != $SerOption->ConfigValue) { + $ServiceOptions[$SerOption->ConfigValue] = $SerOption->ConfigValue; + } + endforeach; + } + echo form_dropdown('ServiceOptions', $ServiceOptions, set_value('ServiceOptions'), 'id="ServiceOptions"', 'class = "form-control"'); + ?> +
   -   Save As Draft -   Submit -   Approve +    +    +       -   Submit -   Approve +    +   
- - - + - - + +
@@ -146,15 +130,28 @@ if (!empty($Emp)) { Action - +
- - + 'ServiceNo', 'value' => set_value('ServiceNo'), 'id' => 'ServiceNo', 'class' => 'form-control num', 'onkeypress' => 'return isNumberKey(event);'); + echo form_hidden($data); + ?> +
+ + ConfigValue] = $SerOption->ConfigValue; + endforeach; + } + echo form_dropdown('ServiceOptions', $ServiceOptions, set_value('ServiceOptions'), 'id="ServiceOptions"', 'class = "form-control searchabledropdown"', 'data-toggle="select2"'); + ?> +
   @@ -320,6 +317,7 @@ if (!empty($Emp)) {