<!-- ADD MODAL -->
<div class="modal fade flip" id="modalAdd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title" id="addTitle"></h4>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
						<!-- general form elements -->
                            <div class="box box-primary">
                                <div class="box-header">
                                </div><!-- /.box-header -->
                                <!-- form start -->
                                <form role="form" id="formAdd" name="formAdd" method="post">
                                    <div class="box-body">
                                        <div class="form-group">
                                            <div id="dataAdd"></div>
                                        </div>
                                    </div><!-- /.box-body -->
									<input type="submit" class="btn btn-primary" id="btnAdd" value="Submit"/>
									<button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button>
								</form>
                            </div><!-- /.box -->
	  </div>
    </div>
  </div>
</div>
<!-- ADD MODAL END-->
<!-- VIEW MODAL -->
<div class="modal fade flip" id="modalView" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title" id="viewTitle"></h4>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
						<!-- general form elements -->
                            <div class="box box-primary">
                                <div class="box-header"> </div><!-- /.box-header -->
                               
                                    <div class="box-body">
                                        <div class="form-group">
                                            <div id="dataView"></div>
										</div>
                                    </div><!-- /.box-body -->
									<button type="button" class="btn btn-primary" data-bs-dismiss="modal">Close</button>
                            </div><!-- /.box -->
	  </div>
    </div>
  </div>
</div>
<!-- VIEW MODAL END-->
<!-- DELETE MODAL -->
<div class="modal fade flip" id="modalDelete" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
       <div class="modal-header">
        <h4 class="modal-title" id="deleteTitle"></h4>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body text-center">
                        <lord-icon src="https://cdn.lordicon.com/gsqxdxog.json" trigger="loop" colors="primary:#405189,secondary:#f06548" style="width:90px;height:90px;">
                        </lord-icon>
						<!-- general form elements -->
                            <div class="box box-primary">
                                <div class="box-header"></div><!-- /.box-header -->
                                <!-- form start -->
                                <form role="form" id="formDelete" name="formDelete" class="formDelete">
                                    <div class="modal-body p-5 text-center">
                                        <div class="form-group">
                                            <div id="dataDelete"></div>
											<input type="hidden" name="deleteId" id="deleteId" required >
										</div>
                                    </div><!-- /.box-body -->
									<input type="submit" class="btn btn-primary" value="Submit" />
									<button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button>
								</form>
                            </div><!-- /.box -->
	  </div>
    </div>
  </div>
</div>



<!-- DELETE MODAL END-->
<!-- DELETE ALL MODAL -->
<div class="modal fade flip" id="modalDeleteAll" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
  <div class="modal-dialog">
    <div class="modal-content">
       <div class="modal-header">
        <h4 class="modal-title" id="deleteAllTitle"></h4>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body text-center">
                        <lord-icon src="https://cdn.lordicon.com/gsqxdxog.json" trigger="loop" colors="primary:#405189,secondary:#f06548" style="width:90px;height:90px;">
                        </lord-icon>
						<!-- general form elements -->
                            <div class="box box-primary">
                                <div class="box-header"></div><!-- /.box-header -->
                                <!-- form start -->
                                <form role="form" id="formDeleteAll" name="formDeleteAll" class="formDeleteAll">
                                    <div class="modal-body p-5 text-center">
                                        <div class="form-group">
                                            <div id="dataDeleteAll"></div>
										</div>
                                    </div><!-- /.box-body -->
									<input type="submit" class="btn btn-primary" value="Submit" />
									<button type="button" class="btn btn-default" data-bs-dismiss="modal">Close</button>
								</form>
                            </div><!-- /.box -->
	  </div>
    </div>
  </div>
</div>
<!-- DELETE ALL MODAL END -->
<!-- GENERAL MODAL -->
<div class="modal fade" id="modalGeneral" tabindex="1" role="dialog" aria-labelledby="mymodalLabel" aria-hidden="true" style="z-index:10000 !important">
  <div class="modal-dialog" >
    <div class="modal-content">
      <div class="modal-header">
	  <h4 class="modal-title" id="modalTitle"></h4>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
						<!-- general form elements -->
                            <div class="box box-primary">
                                <div class="box-header">
                                    <h3 class="box-title"></h3>
                                </div><!-- /.box-header -->
                                <!-- form start -->
                                    <div class="box-body">
                                        <div class="form-group text-center">
                                            <div id="modalData" ></div>
                                        </div>
                                    </div><!-- /.box-body -->
                            </div><!-- /.box -->
	  </div>
		<div class="modal-footer" style="text-align:center;">
        <?php /* URI SEGMENT*/
		helper('url');
		// Get the URI object
		$uri = current_url(true);
		if($uri->getSegment(2) == "consultationprocess"){?>
		<button type="button" class="btn btn-primary text-center" data-dismiss="modal"  onclick="redirect_consult();" >OK</button>
        <?php }else{?>
		<button type="button" class="btn btn-primary text-center" data-dismiss="modal"  onclick="redirect();" >OK</button>
	    <?php }?>
	  </div>
    </div>
  </div>
</div>
<!-- GENERAL MODAL END-->
<!-- Alert Pop up -->
<div class="modal fade" id="myModalsuccess" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="z-index: 9998">
  <div class="modal-dialog" >
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title edtdel" id="myModalLabel"></h4>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
						<!-- general form elements -->
                            <div class="box box-primary">
                                <div class="box-header">
                                    <h3 class="box-title"</h3>
                                </div><!-- /.box-header -->
                                <!-- form start -->
                                <form role="form">
                                    <div class="box-body">
										<div class="form-group text-center">
                                            <div id="pop_message" ></div>
                                        </div>
                                    </div><!-- /.box-body -->

                                </form>
                            </div><!-- /.box -->
							
	  </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary" data-bs-dismiss="modal" onclick="redirect();" style="width:120px;" >OK</button>
	  </div>
    </div>
  </div>
</div>
<!-- Alert Pop up End-->
<!-- Modal Password update Image-->
<div class="modal fade" id="myModalPass" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" >
  <div class="modal-dialog" >
    <div class="modal-content">
      <div class="modal-header">
        <h4 class="modal-title" id="myModalLabel">Change Password</h4>
        <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
      </div>
      <div class="modal-body">
						<!-- general form elements -->
                            <div class="box box-primary">
                                
                                <!-- form start -->
                                <form role="form" id="frm_changepass">
                                    <div class="box-body">
                                        <div class="form-group">
                                            <div class="col-xxl-6">
													<label>Enter New Password <span style="color:#ff0000;">*</span></label>
													<input type="password" name="password" id="password" class="form-control" required autocomplete="off" />											
											<br>
											</div>
											<div class="col-xxl-6">
													<label>Confirm New Password <span style="color:#ff0000;">*</span></label>
													<input type="password" name="confirm_password" id="confirm_password" class="form-control" required autocomplete="off" />											
											</div>		
										</div>
                                    </div><!-- /.box-body -->

                               
                            </div><!-- /.box -->
							
							<div class="box-body" id="alert_pass" ></div>
	  </div>
      <div class="modal-footer">
        <input type="submit" class="btn btn-primary" id="change_pwd" value="Submit" style="width:120px;"/>
        <button type="button" class="btn btn-default" data-bs-dismiss="modal" style="width:120px;">Close</button>
	  </div> </form>
    </div>
  </div>
</div>


