
<!DOCTYPE html>
 <html lang="en">

 <head>

   <meta charset="UTF-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no">
   <meta name="description" content="">
   <meta name="author" content="">
   <!--<link rel="shortcut icon" type="image/x-icon" href="<?php echo $GLOBALS['approot']?>/eoDACSCommon/pics/eodacs.png" />-->

   <title>eoDACS</title>
	

  <style>
  </style>
  </head>
  <body class="vh-100">
	
<div id="IdcDivSettingsAlert"  class="w-100 h-100 p-0 m-0 ximeo_bg-light" style="display: block !important">

	<div id="IdcDivSettingsAlertPanel" class="w-100 h-100 m-0 p-0 bg-light">
		<div class="container-fluid w-100 h-100 m-0 p-0">

			<div class="d-flex w-100 h-100 m-0 p-0 ps-3 ximeo_bg-light">
			
				<div class="col-auto h-100 border-start border-top border-bottom">
					<div class="nav flex-column nav-pills h-100 w-100 m-0 p-0 ps-2 pt-4 pe-0 ximeo_bg-light" id="v-pills-tab" role="tablist" aria-orientation="vertical" style="min-width: 200px;">

           				<button class="nav-link active mb-3" id="IdcSAPatientTab" data-bs-toggle="pill" data-bs-target="#IdcSAPatientPanel" type="button" role="tab" aria-controls="v-pills-home" aria-selected="true" data-langkey="Patient alert">Patient alert</button>
            		
           				<button class="nav-link mb-3" id="IdcSANRDTab" data-bs-toggle="pill" data-bs-target="#IdcSANRDPanel" type="button" role="tab" aria-controls="v-pills-home" aria-selected="true" data-langkey="Diagnostic reference levels">DRL</button>

           				<button class="nav-link mb-3" id="IdcSANewModalityTab" data-bs-toggle="pill" data-bs-target="#IdcSANewModalityPanel" type="button" role="tab" aria-controls="v-pills-home" aria-selected="true" data-langkey="New modality">DRL</button>

           				<button class="nav-link mb-3" id="IdcSARefreshStudyAlertTab" data-bs-toggle="pill" data-bs-target="#IdcSARefreshStudyAlertPanel" type="button" role="tab" aria-controls="v-pills-home" aria-selected="true" data-langkey="Refresh study alert"></button>

           			</div>
				</div>

				<div class="col flex-grow-1 h-100" style="min-width:0;">
					<div class="tab-content w-100 h-100 m-0 p-0 ps-2 pe-2 pt-2 pb-2 ximeo_app-color" id="v-pills-tabContent" style="transition: opacity 2.3s ease !important;">

						<!-- Patient Panel -->
               			<div class="tab-pane show active w-100 h-100 m-0 p-0 ps-2 pt-2 pe-2 pb-2 bg-light" id="IdcSAPatientPanel" role="tabpanel" aria-labelledby="IdcSAPatientTab" >
							<div class="d-flex flex-column w-100 h-100 m-0 p-0">
  								<div class="d-flex flex-column flex-grow-1 w-100 m-0 p-0 ps-1 pe-1 pt-2 bg-light">
    								<div class="ximeo_app-color rounded-top w-100 text-white ps-2 pe-2 pt-2 pb-2">
      									<div class="d-flex justify-content-between align-items-center">
        									<span data-langkey="Patient alert management"></span>
        									<img src="SubFW/bmp/save_white.png" data-langkey_title="Save" class="imgclickable ximeo_bmp" onclick="SAPSave ()">
      									</div>
    								</div>

    								<div class="d-flex flex-column flex-grow-1 w-100 border">
      									<!-- <div class="d-flex ps-3 pt-2"> -->
      									<div class="row m-0 p-0 ps-3 pt-2">
        									<div class="form-check form-check-inline">
												<input class="form-check-input" type="checkbox" name="SAPatientEnable" id="IdcSAPPatientEnable">
												<label class="form-check-label" for="SAPatientEnable" data-langkey="Service activated"></label>
											</div>
      									</div>

      									<div class="row flex-grow-1 w-100 m-0 p-0 ps-2 pe-2 pb-2 pt-2">

      										<fieldset class="ximeo_fieldset h-100 w-100" style="min-width:0 !important;">
												<legend class="ximeo_fieldset" data-langkey="Alert recipients"></legend>
												<div class="container w-100 h-100 m-0 p-0">
													<div class="d-flex flex-column h-100 m-0 p-0">
														<div class="row flex-grow-1 bg-light w-100 m-0 p-0" style="min-height: 0px; max-width: 100% !important;">

      														<div class="col w-100 h-100 m-0 p-0" id="IdcSAPRecipientDTContainer" style="min-width: 0 !important;">
      														</div>

      													</div>
      												</div>
      											</div>
      										</fieldset>
      									</div>

    								</div>
  								</div>
							</div>
               			</div>

               			
               			<!-- NRD Panel -->
               			<div class="tab-pane w-100 h-100 m-0 p-0 ps-2 pt-2 pe-2 pb-2 bg-light" id="IdcSANRDPanel" role="tabpanel" aria-labelledby="IdcSANRDTab" >
               				<div class="d-flex flex-column w-100 h-100 m-0 p-0">
  								<div class="d-flex flex-column flex-grow-1 w-100 m-0 p-0 ps-1 pe-1 pt-2 bg-light">
    								<div class="ximeo_app-color rounded-top w-100 text-white ps-2 pe-2 pt-2 pb-2">
      									<div class="d-flex justify-content-between align-items-center">
        									<span data-langkey="DRL alert management"></span>
        									<img src="SubFW/bmp/save_white.png" data-langkey_title="Save" class="imgclickable ximeo_bmp" onclick="SANRDSave ()">
      									</div>
    								</div>

    								<div class="d-flex flex-column flex-grow-1 w-100 border">
										<div class="row m-0 p-0 ps-3 pt-2">
											<div class="form-check form-check-inline">
												<input class="form-check-input" type="checkbox" name="SANRDEnable" id="IdcSANRDEnable">
												<label class="form-check-label" for="SANRDEnable" data-langkey="Service activated"></label>
											</div>
										</div>

										<div class="row m-0 p-0 ps-3 pt-1">
											<div class="col-auto m-0 p-0">
												<div class="row m-0 p-0">
													<div class="m-0 p-0 pt-1 ps-0 pe-1 mb-2" data-langkey="Alert threshold (%) :" ></div>
												</div>
												<div class="row m-0 p-0">
													<div class="m-0 p-0 pt-1 ps-0 pe-1 mb-2" data-langkey="Start date :" ></div>
												</div>
												<div class="row m-0 p-0">
													<div class="m-0 p-0 pt-1 ps-0 pe-1 mb-2" data-langkey="Sending emails :" ></div>
												</div>
											</div>

											<div class="col-auto m-0 p-0 ps-2">
												<div class="row m-0 p-0">
													<input type="text" id="IdcSANRDThreshold" maxlength="3" size="3" class="form-control form-control-sm w-auto m-0 p-0 ps-2 pe-2 mb-1 text-end" autocomplete="off" />
												</div>
												<div class="row m-0 p-0">
													<input type="date" id="IdcSANRDStartDate" class="form-control form-control-sm w-auto m-0 p-0 ps-2 pe-2 mb-1 text-end" autocomplete="off" style="max-width: 90px !important;"/>
												</div>
												<div class="row m-0 p-0">
													<select id="IdcSANRDSendEmails" class="form-select m-0 p-0 ps-2 mb-1 mt-1 w-auto" style="min-width: 180px;">
      													<option value="everyday" data-langkey="Every day"></option>
      													<option value="everyweek" data-langkey="Every week"></option>
      													<option value="everymonth" data-langkey="Every month"></option>
													</select>
												</div>
											</div>
										</div>


      									<div class="w-100 flex-grow-1 m-0 p-0 ps-2 pe-2 pb-2 pt-2">

      										<fieldset class="ximeo_fieldset h-100 w-100" style="min-width:0 !important;">
												<legend class="ximeo_fieldset" data-langkey="Alert recipients"></legend>
												<div class="container w-100 h-100 m-0 p-0">
													<div class="d-flex flex-column h-100 m-0 p-0">
														<div class="row flex-grow-1 bg-light w-100 m-0 p-0" style="min-height: 0px; max-width: 100% !important;">

      														<div class="col w-100 h-100 m-0 p-0" id="IdcSANRDRecipientDTContainer" style="min-width: 0 !important;">
      														</div>

      													</div>
      												</div>
      											</div>
      										</fieldset>
      									</div>

    								</div>
  								</div>
							</div>
               			</div>


               			<!-- New modality Panel -->
               			<div class="tab-pane w-100 h-100 m-0 p-0 ps-2 pt-2 pe-2 pb-2 bg-light" id="IdcSANewModalityPanel" role="tabpanel" aria-labelledby="IdcSANewModalityTab" >
               				<div class="d-flex flex-column w-100 h-100 m-0 p-0">
  								<div class="d-flex flex-column flex-grow-1 w-100 m-0 p-0 ps-1 pe-1 pt-2 bg-light">
    								<div class="ximeo_app-color rounded-top w-100 text-white ps-2 pe-2 pt-2 pb-2">
      									<div class="d-flex justify-content-between align-items-center">
        									<span data-langkey="New modality"></span>
        									<img src="SubFW/bmp/save_white.png" data-langkey_title="Save" class="imgclickable ximeo_bmp" onclick="SANewModalitySave ()">
      									</div>
    								</div>

    								<div class="d-flex flex-column flex-grow-1 w-100 border">
      									<!-- <div class="d-flex ps-3 pt-2"> -->
      									<div class="row m-0 p-0 ps-3 pt-2">
        									<div class="form-check form-check-inline">
												<input class="form-check-input" type="checkbox" name="SANewModalityEnable" id="IdcSANewModalityEnable">
												<label class="form-check-label" for="SANewModalityEnable" data-langkey="Service activated"></label>
											</div>
      									</div>

      									<div class="row flex-grow-1 w-100 m-0 p-0 ps-2 pe-2 pb-2 pt-2">

      										<fieldset class="ximeo_fieldset h-100 w-100" style="min-width:0 !important;">
												<legend class="ximeo_fieldset" data-langkey="Alert recipients"></legend>
												<div class="container w-100 h-100 m-0 p-0">
													<div class="d-flex flex-column h-100 m-0 p-0">
														<div class="row flex-grow-1 bg-light w-100 m-0 p-0" style="min-height: 0px; max-width: 100% !important;">
      														<div class="col w-100 h-100 m-0 p-0" id="IdcSANewModalityRecipientDTContainer" style="min-width: 0 !important;">
      														</div>

      													</div>
      												</div>
      											</div>
      										</fieldset>
      									</div>

    								</div>
  								</div>
							</div>
               			</div>

               			<!-- Refresh Study Panel -->
               			<div class="tab-pane w-100 h-100 m-0 p-0 ps-2 pt-2 pe-2 pb-2 bg-light" id="IdcSARefreshStudyAlertPanel" role="tabpanel" aria-labelledby="IdcSARefreshStudyAlertTab" >

							<div class="d-flex flex-column w-100 h-100 m-0 p-0">
  								<div class="d-flex flex-column flex-grow-1 w-100 m-0 p-0 ps-1 pe-1 pt-2 bg-light">
    								<div class="ximeo_app-color rounded-top w-100 text-white ps-2 pe-2 pt-2 pb-2">
      									<div class="d-flex justify-content-between align-items-center">
        									<span data-langkey="Managing alert refresh :"></span>
      									</div>
    								</div>

    								<div class="d-flex flex-column flex-grow-1 w-100 border">

    									<div class="row m-0 p-0 ps-2 pt-2">
    										<span class="m-0 p-0" data-langkey="Alert update application period :"></span>
    									</div>
										<div class="row m-0 p-0 ps-3 pt-2">
											<div class="col-auto m-0 p-0">
												<div class="row m-0 p-0">
													<div class="m-0 p-0 pt-1 ps-0 pe-1 mb-2" data-langkey="From :" ></div>
												</div>
												<div class="row m-0 p-0">
													<div class="m-0 p-0 pt-1 ps-0 pe-1 mb-2" data-langkey="To :" ></div>
												</div>
											</div>

											<div class="col-auto m-0 p-0 ps-2">
												<div class="row m-0 p-0">
													<input type="date" id="IdcSARefreshFromDate" class="form-control form-control-sm w-auto m-0 p-0 ps-2 pe-2 mb-1 text-end" value="<?php 
           												$date = new DateTime(); 
           												echo $date->modify("-{$GLOBALS['dashboard_alert_periodday']} day")->format("Y-m-d"); 
       													?>" autocomplete="off" style="max-width: 90px !important;"/>
												</div>
												<div class="row m-0 p-0">
													<input type="date" id="IdcSARefreshToDate" class="form-control form-control-sm w-auto m-0 p-0 ps-2 pe-2 mb-1 text-end" value="<?php echo date('Y-m-d'); ?>" autocomplete="off" style="max-width: 90px !important;"/>
												</div>
											</div>
										</div>
										<div class="row w-100 m-0 p-0 pt-3 border-top">
        									<div class="col-md-6">
            									<button id="submitbtn" class="ximeo_button ximeo_app-color" data-langkey="Apply" onclick="SARefreshStudyApply();">
                									
        									</div>
    									</div>
									</div>
								</div>
							</div>
               			</div>
					
               		</div>
					
				</div>

			</div>

		</div>

	</div>
		
</div>
	<script>
							console.log("test");InitSettingsAlertPage();
						</script>
</body>
</html>