registrasidokter.phtml 6.88 KB
Newer Older
Indra Raja's avatar
Indra Raja committed
1 2 3 4 5 6

    
<div class="container-fluid">
  <div class="col-xl-12 col-lg-12 col-md-12">
      <div class="card o-hidden border-0 shadow-lg my-5">
        <div class="card-body ">
Azy Mushofy Anwary's avatar
Azy Mushofy Anwary committed
7
            <h1 class="h4 text-center text-gray-900 mb-4" style="font-size: 50px;font-weight: bold">Kelola Jadwal Dokter</h1>
Indra Raja's avatar
Indra Raja committed
8
            <button type="button" class="btn btn-primary fa fa-plus btn-lg" data-toggle="modal" data-target="#addData" id="tambahmodal"> Tambah</button>
Azy Mushofy Anwary's avatar
Azy Mushofy Anwary committed
9
            <a type="button" class="btn btn-dark fa  btn-lg"  href="<?php echo $this->basePath('admin/registrasialldok') ?>"> Lihat Seluruh Antrian</a>
Indra Raja's avatar
Indra Raja committed
10 11 12 13 14 15
              <br>
              <br>
              <table class="table table-bordered" id="dataTable">
                <thead>
                  <tr class="table-infos">
                        <th style="">NO</th>
Azy Mushofy Anwary's avatar
Azy Mushofy Anwary committed
16 17 18 19 20 21 22 23
                        <th >Nama Poli</th>
                        <th >Nama Dokter</th>
                        <th>Ruangan</th>
                        <th >Antrian Seluruh</th>
                        <th>Jam Mulai</th>
                        <th >Waktu Antrian</th>
                        <th >Tanggal Antrian</th>
                        <th >Action</th>
Indra Raja's avatar
Indra Raja committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
                  </tr>
                </thead>
                      <tbody id="tableregisterdokter" >
                      </tbody>
                  </table>
            
        </div>
      </div>
  </div>
</div>

<!-- Trigger the modal with a button -->

<!-- Modal -->
<div id="addData" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
Azy Mushofy Anwary's avatar
Azy Mushofy Anwary committed
44
        <h4 class="modal-title">Tambah Jadwal Dokter</h4>
Indra Raja's avatar
Indra Raja committed
45 46 47 48 49 50 51
        <button type="button" class="close" data-dismiss="modal">&times;</button>
        
      </div>
      <div class="modal-body">
      <form id="myForm" >
           
            <div class="form-group">
Azy Mushofy Anwary's avatar
Azy Mushofy Anwary committed
52
                <label>Nama Poli</label>
Indra Raja's avatar
Indra Raja committed
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113
                <select name="nama_poli" id="poli"  class="form-control" require>
                    <option disable selected> Pilih </option>

                </select> 
            </div>
            <div class="form-group">
                <label>Nama Dokter</label>
                <select name="nama_dokter" id="dokter"  class="form-control" require>
                <option disable selected> Pilih </option>

                </select> 
            </div>

            <div class="form-group">
                <label>No. Ruang</label>
                <select name="nama_ruang" id="ruang" class="form-control form-control-sm" type="text" placeholder=".form-control-sm" require >
                <option disabled selected> Pilih </option>
                </select>
            </div>  
            <div class="form-group">
                        <label>Antrian Seluruh</label>
                        <input type="number" id="antrian_all" name="antrian_all" class="form-control" required /></input>
                  </div>

                <div class="row col-lg-12">
                      <div class="form-group">
                          <label>Waktu Mulai Antrian</label>
                            <p></p>
                          <input style="width: 221px;" type="text" id="jam_mulai"   name="jam_mulai" class="form-control" value=""></input>
                      </div>

                    <div class="col-lg-6 sm-7">
                      <div class="form-group">
                          <label>Lama Antrian</label>
                          <p></p>
                          <input style="width: 230px;" type="text" id="waktu_antrian"   name="waktu_antrian" class="form-control" value=""></input>
                      </div>
                    </div>
                </div>
            <div class="modal-footer">
         <button  button type="button" class="btn btn-primary" id="tambah">Add</button>
         <button  button type="button" class="btn btn-danger" onclick="reset()">Reset</button>
        <button type="submit" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </form>
    </div>
    </div>



  </div>
</div>


<!-- Modal -->
<div id="editData" class="modal fade" role="dialog">
  <div class="modal-dialog">

    <!-- Modal content-->
    <div class="modal-content">
      <div class="modal-header">
Azy Mushofy Anwary's avatar
Azy Mushofy Anwary committed
114
        <h4 class="modal-title">Edit Jadwal Dokter</h4>
Indra Raja's avatar
Indra Raja committed
115 116 117 118 119
        <button type="button" class="close" data-dismiss="modal">&times;</button>    
      </div>
      <div class="modal-body">
      <form id="myForm" >
           
Azy Mushofy Anwary's avatar
Azy Mushofy Anwary committed
120
      <input type="hidden" id="id_register"  class="form-control" /></input>
Indra Raja's avatar
Indra Raja committed
121 122

                  <div class="form-group">
Azy Mushofy Anwary's avatar
Azy Mushofy Anwary committed
123
                      <label>Nama Poli</label>
Indra Raja's avatar
Indra Raja committed
124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150
                          <div class="card" >
                            <div  class="card-body" style="padding: 0.5rem;" id="poliedt" >
                            </div>
                          </div> 
                      </select> 
                  </div>
                  <div class="form-group">
                      <label>Nama Dokter</label>
                      <div class="card" >
                        <div  class="card-body" style="padding: 0.5rem;" id="dokteredt" >
                        </div>
                      </div> 
                  </div>

                  <div class="form-group">
                      <label>No. Ruang</label>
                      <div class="card" >
                        <div  class="card-body" style="padding: 0.5rem;" id="ruangedt" >
                        </div>
                      </div> 
                      </select>
                  </div>
                  <div class="form-group">
                        <label>Antrian Seluruh</label>
                        <input type="number" id="antrian_alledt" name="antrian_all" class="form-control" required /></input>
                  </div>

Azy Mushofy Anwary's avatar
Azy Mushofy Anwary committed
151
                  
Indra Raja's avatar
Indra Raja committed
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179
                <div class="row col-lg-12">
                      <div class="form-group">
                          <label>Waktu Mulai Antrian</label>
                            <p></p>
                          <input style="width: 221px;" type="text" id="jam_mulaiedt"   name="jam_mulai" class="form-control" value=""></input>
                      </div>

                    <div class="col-lg-6 sm-7">
                      <div class="form-group">
                          <label>Lama Antrian</label>
                          <p></p>
                          <input style="width: 230px;" type="text" id="waktu_antrianedt"   name="waktu_antrian" class="form-control" value=""></input>
                      </div>
                    </div>
                </div>
           
            <div class="modal-footer">
         <button  button type="button" class="btn btn-primary" id="edit">Edit</button>
         <button  button type="button" class="btn btn-danger" onclick="reset()">Reset</button>
        <button type="submit" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </form>
    </div>
    </div>

  </div>
</div>