Menggunakan SSP::complex

    require( 'ssp.class.php' );
    $where = 'STATUSUJIAN <> "History"';

    echo json_encode(
    SSP::complex( $_GET, $sql_details, $table, $primaryKey, $columns, $where)
    );

     

    Menggunakan SSP::complex

    require( 'ssp.class.php' );

    echo json_encode(
    SSP::simple( $_GET, $sql_details, $table, $primaryKey, $columns, $where)
    );

    Contoh 1


    <select class="form-control">
      <option selected="selected">orange</option>
      <option>white</option>
      <option>purple</option>
    </select>

    $(".js-example-tags").select2({
      tags: true
    })

     



    Contoh 2


    <html>

    <head>
      <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
      <link href="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1-rc.1/css/select2.min.css" rel="stylesheet" />
      <script src="//cdnjs.cloudflare.com/ajax/libs/select2/4.0.1-rc.1/js/select2.min.js"></script>
    </head>

    <body>

      <select id="js-example-tags" multiple="multiple" style="width:300px">
        <option selected="selected">orange</option>
        <option>white</option>
        <option selected="selected">purple</option>
      </select>

      <script>
        // Populate dummy data
          var select = document.getElementById('js-example-tags');
          for (var i = 0; i < 5000; i++) {
            var option = document.createElement('option');
            option.text = 'tag' + i + 'tag';
            select.add(option, null);
          }
          
          // Transform field
          $('#js-example-tags').select2({
             tags: true
          });
      </script>

    </body>

    </html>




    Contoh 3



    <script type="text/javascript">
    $(document).ready(function() {
      $(".js-example-basic-single").select2();
    });
    </script>

    <select class="js-example-basic-single">
      <option value="AL">Alabama</option>
        ...
      <option value="WY">Wyoming</option>
    </select>

     

    Contoh 4

    script type="text/javascript">
    $(document).ready(function() {
      $(".js-example-basic-single").select2();
    });
    </script>

    <select class="js-example-basic-single">
      <option value="AL">Alabama</option>
        ...
      <option value="WY">Wyoming</option>
    </select>

    © 2015 Bank Ifoel. All Rights Reserved. Designed By Web-Komp

    Please publish modules in offcanvas position.