This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Trigger the modal with a button --> | |
<button type="button" class="btn btn-info btn-lg" data-toggle="modal" data-target="#myModal">Open Modal</button> | |
<!-- Modal --> | |
<div id="myModal" class="modal fade" role="dialog"> | |
<div class="modal-dialog"> | |
<!-- Modal content--> | |
<div class="modal-content"> | |
<div class="modal-header"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form class="form-horizontal"> | |
<div class="form-group"> | |
<label class="control-label col-sm-2" for="email">Email:</label> | |
<div class="col-sm-10"> | |
<input type="email" class="form-control" id="email" placeholder="Enter email"> | |
</div> | |
</div> | |
<div class="form-group"> | |
<label class="control-label col-sm-2" for="pwd">Password:</label> | |
<div class="col-sm-10"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function index() | |
{ | |
$google_redirect_uri = 'your url callback'; | |
//setup new google client | |
$client = new Google_Client(); | |
$client -> setApplicationName('My application name'); | |
$client->setAuthConfigFile("./client_secret.json"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- List group --> | |
<ul class="list-group"> | |
<li class="list-group-item"> | |
Bootstrap Switch Default | |
<div class="material-switch pull-right"> | |
<input id="someSwitchOptionDefault" name="someSwitchOption001" type="checkbox"/> | |
<label for="someSwitchOptionDefault" class="label-default"></label> | |
</div> | |
</li> | |
<li class="list-group-item"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# sample 1 | |
function isValidEmail($email){ | |
return filter_var($email, FILTER_VALIDATE_EMAIL) !== false; | |
} | |
# sample2 | |
function isValidEmail($email) { | |
return filter_var($email, FILTER_VALIDATE_EMAIL) | |
&& preg_match('/@.+\./', $email); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
swal({title:"Sukses", text :"Setting berhasil dihapus", type : "success", showCancelButton : true}).then((result)=>{ | |
if (result.value) { | |
location.reload(); | |
} | |
}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// File json yang akan dibaca | |
$file = "anggota.json"; | |
// Mendapatkan file json | |
$anggota = file_get_contents($file); | |
// Mendecode anggota.json | |
$data = json_decode($anggota, true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// File json yang akan dibaca | |
$file = "anggota.json"; | |
// Mendapatkan file json | |
$anggota = file_get_contents($file); | |
// Mendecode anggota.json | |
$data = json_decode($anggota, true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// File json yang akan dibaca | |
$file = "anggota.json"; | |
// Mendapatkan file json | |
$anggota = file_get_contents($file); | |
// Mendecode anggota.json | |
$data = json_decode($anggota, true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// File json yang akan dibaca (full path file) | |
$file = "anggota.json"; | |
// Mendapatkan file json | |
$anggota = file_get_contents($file); | |
// Mendecode anggota.json | |
$data = json_decode($anggota, true); |