<commit_before>
<!-- page content -->
<div class="right_col" role="main">

  <br />
  
    <div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
      <div class="x_panel">
        <div class="x_title">
          <h2><strong><?php echo $subtitle2; ?></strong></h2>
          <ul class="nav navbar-right panel_toolbox">
            <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
          </ul>
          <div class="clearfix"></div>
        </div>
        <div class="x_content">
          <table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
            <thead>
              <tr>
                <th>Company Email</th>
                <th>Agency Name</th>
                <th>C.L.A No</th>
                <th>Office Address</th>
                <th>Authorized Person</th>
                <th>Status</th>
                <th>Action</th>
              </tr>
            </thead>
            <tbody>
            <?php foreach($list as $row): ?>
              <tr data-agrid="<?php echo $row->agrid ?>" data-namacn="<?php echo $row->agrnamacn ?>" data-almtcn="<?php echo $row->agralmtkantorcn ?>" data-pngcn="<?php echo $row->agrpngjwbcn ?>" data-telp="<?php echo $row->agrtelp ?>" data-fax="<?php echo $row->agrfax ?>" data-file="<?php echo $row->filename ?>">
                <td class="email"><?php echo $row->agremail ?></td>
                <td class="nama"><?php echo $row->agrnama ?></td>
                <td class="cla"><?php echo $row->agrnoijincla ?></td>
                <td class="almt"><?php echo $row->agralmtkantor ?></td>
                <td class="pngjwb"><?php echo $row->agrpngjwb ?></td>
                <td class="status"><?php echo ($row->agrstatus === NULL ? "Waiting" : $row->agrstatus ) ?></td>
                <td>
                  <div class="center-button"><button class="btn btn-info togglebtn" type="button" data-toggle="modal" data-target=".bs-example-modal-lg">Lihat Data</button></div>
                </td>
              </tr>
            <?php endforeach; ?>

            </tbody>
          </table>

        </div>
        <div class="clearfix"></div>
      </div>
      <div>
        <br><br>
      </div>
  </div>
  </div>




</div>

<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true">
                    <div class="modal-dialog modal-lg">
                      <div class="modal-content">

                        <div class="modal-header">
                          <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                          </button>
                          <h4 class="modal-title" id="myModalLabel">Detail Data</h4>
                        </div>
                        <div class="modal-body">
                          <div class="row">
                            <div class="col-md-3"></div>
                            <div class="col-md-6">
                              <div id="agensiRID" style="display: none;"></div>
                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Official Company Email</label>
                                <div id="companyEmail" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Agency Name</label>
                                <div id="agensiName" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Other Agency Name</label>
                                <div id="otherAgensiName" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Agency License No</label>
                                <div id="agensiNo" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Office Address</label>
                                <div id="officeAddress" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Other Office Address</label>
                                <div id="otherOfficeAddress" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Authorized Person Name</label>
                                <div id="authorizedPerson" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Other Authorized Person Name</label>
                                <div id="otherAuthorizedPerson" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Phone</label>
                                <div id="phone" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Faximile</label>
                                <div id="fax" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">C.L.A Private Employment Service Agency License Letter</label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                  <button type="button" class="btn btn-default btn-sm" id="btnDL">Download</button>
                                </div>
                              </div><br /><br />

                            </div>
                          </div>
                        </div>
                        <div class="modal-footer">
                          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                          <button type="button" class="btn btn-success" id="btnSend">Accept</button>
                        </div>

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


<script type="text/javascript">
  function generateUserPass(agnama, cla) {
    var userpass = agnama.substr(agnama.length - 4) + cla;
    var passmd5 = md5(userpass);
    return {
      "userpass":userpass,
      "md5":pass<PASSWORD>
    }
  }

  $(document).ready(function () {
    var json = null;
    var agid = null;
    var userpass = null;
    var filename = null;
    var tr = null;
    var table = $('#datatable-responsive').DataTable();

    $(".togglebtn").click(function() {
      $("#agensiRID").text($(this).closest("tr").data("agrid"));
      $("#companyEmail").text($(this).closest("tr").find("td.email").text());
      $("#agensiName").text($(this).closest("tr").find("td.nama").text());
      $("#otherAgensiName").text($(this).closest("tr").data("namacn"));<commit_msg>Update username reg agensi<commit_after>
<!-- page content -->
<div class="right_col" role="main">

  <br />
  
    <div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
      <div class="x_panel">
        <div class="x_title">
          <h2><strong><?php echo $subtitle2; ?></strong></h2>
          <ul class="nav navbar-right panel_toolbox">
            <li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
          </ul>
          <div class="clearfix"></div>
        </div>
        <div class="x_content">
          <table id="datatable-responsive" class="table table-striped table-bordered dt-responsive nowrap" cellspacing="0" width="100%">
            <thead>
              <tr>
                <th>Company Email</th>
                <th>Agency Name</th>
                <th>C.L.A No</th>
                <th>Office Address</th>
                <th>Authorized Person</th>
                <th>Status</th>
                <th>Action</th>
              </tr>
            </thead>
            <tbody>
            <?php foreach($list as $row): ?>
              <tr data-agrid="<?php echo $row->agrid ?>" data-namacn="<?php echo $row->agrnamacn ?>" data-almtcn="<?php echo $row->agralmtkantorcn ?>" data-pngcn="<?php echo $row->agrpngjwbcn ?>" data-telp="<?php echo $row->agrtelp ?>" data-fax="<?php echo $row->agrfax ?>" data-file="<?php echo $row->filename ?>">
                <td class="email"><?php echo $row->agremail ?></td>
                <td class="nama"><?php echo $row->agrnama ?></td>
                <td class="cla"><?php echo $row->agrnoijincla ?></td>
                <td class="almt"><?php echo $row->agralmtkantor ?></td>
                <td class="pngjwb"><?php echo $row->agrpngjwb ?></td>
                <td class="status"><?php echo ($row->agrstatus === NULL ? "Waiting" : $row->agrstatus ) ?></td>
                <td>
                  <div class="center-button"><button class="btn btn-info togglebtn" type="button" data-toggle="modal" data-target=".bs-example-modal-lg">Lihat Data</button></div>
                </td>
              </tr>
            <?php endforeach; ?>

            </tbody>
          </table>

        </div>
        <div class="clearfix"></div>
      </div>
      <div>
        <br><br>
      </div>
  </div>
  </div>




</div>

<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-hidden="true">
                    <div class="modal-dialog modal-lg">
                      <div class="modal-content">

                        <div class="modal-header">
                          <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
                          </button>
                          <h4 class="modal-title" id="myModalLabel">Detail Data</h4>
                        </div>
                        <div class="modal-body">
                          <div class="row">
                            <div class="col-md-3"></div>
                            <div class="col-md-6">
                              <div id="agensiRID" style="display: none;"></div>
                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Official Company Email</label>
                                <div id="companyEmail" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Agency Name</label>
                                <div id="agensiName" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Other Agency Name</label>
                                <div id="otherAgensiName" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Agency License No</label>
                                <div id="agensiNo" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Office Address</label>
                                <div id="officeAddress" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Other Office Address</label>
                                <div id="otherOfficeAddress" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Authorized Person Name</label>
                                <div id="authorizedPerson" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Other Authorized Person Name</label>
                                <div id="otherAuthorizedPerson" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Phone</label>
                                <div id="phone" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">Faximile</label>
                                <div id="fax" class="col-md-6 col-sm-6 col-xs-12"></div>
                              </div><br /><br />

                              <div class="form-group">
                                <label class="control-label col-md-6 col-sm-6 col-xs-12">C.L.A Private Employment Service Agency License Letter</label>
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                  <button type="button" class="btn btn-default btn-sm" id="btnDL">Download</button>
                                </div>
                              </div><br /><br />

                            </div>
                          </div>
                        </div>
                        <div class="modal-footer">
                          <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                          <button type="button" class="btn btn-success" id="btnSend">Accept</button>
                        </div>

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


<script type="text/javascript">
  function generateUserPass(agnama, cla) {
    var userpass = agnama.substr(0, 4) + cla;
    var passmd5 = <PASSWORD>(userpass);
    return {
      "userpass":userpass,
      "<PASSWORD>":<PASSWORD>
    }
  }

  $(document).ready(function () {
    var json = null;
    var agid = null;
    var userpass = null;
    var filename = null;
    var tr = null;
    var table = $('#datatable-responsive').DataTable();

    $(".togglebtn").click(function() {
      $("#agensiRID").text($(this).closest("tr").data("agrid"));
      $("#companyEmail").text($(this).closest("tr").find("td.email").text());
      $("#agensiName").text($(this).closest("tr").find("td.nama").text());
      $("#otherAgensiName").text($(this).closest("tr").data("namacn"));
{'fraction_non_alphanumeric': 0.16695815115552778, 'fraction_numerical': 0.0136789506558401, 'mean_word_length': 1.3160711702589325, 'pattern_counts': {'":': 4, '<': 431, '<?xml version=': 0, '>': 459, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7585507', 'n_tokens_mistral': 4732, 'n_tokens_neox': 4532, 'n_words': 848}