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 | |
namespace app\models; | |
use Yii; | |
use yii\base\Model; | |
use Esyst\Nusoap\NusoapClient; | |
/** | |
* Soap Module |
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 defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Alumni_model extends CI_Model | |
{ | |
/** | |
* @author Yusuf Ayuba | |
* @since 2016 | |
*/ | |
public function __construct() |
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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Welcome extends CI_Controller { | |
/** | |
* @author Yusuf Ayuba | |
* @since 2016 | |
*/ |
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
<script type="text/javascript" src="<?php echo base_url('assets/js/jquery.min.js');?>"></script> | |
<script type="text/javascript" src="<?php echo base_url('assets/js/bootstrap.min.js');?>"></script> | |
<script type="text/javascript"> | |
var top_url = '<?php echo base_url();?>'; | |
function showModal(id) { | |
var temp_url = top_url+'welcome/modal/'+id | |
$('#mod_title').html('Daftar Alumni'); | |
$('#isi').html('<center><i class="fa fa-circle-o-notch fa-spin fa-fw"></i> Loading data, please wait...</center>'); | |
$('#isi').load(temp_url); | |
$('#myModal').modal(); |
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
public function maps() | |
{ | |
$this->load->model('alumni_model','alumni'); | |
$config = array(); | |
$config['center'] = 'jakarta'; | |
$config['zoom'] = 'auto'; | |
$this->googlemaps->initialize($config); | |
$temp_result = $this->alumni->get_location()->result(); | |
$marker = array(); |
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
public function modal($id) | |
{ | |
$this->load->model('alumni_model','alumni'); | |
$temp_result = $this->alumni->get_location_by_id($id)->result(); | |
$temp_place = $this->alumni->get_location_by_id($id)->row(); | |
$temp_jml = count($temp_result); | |
echo "<div class=\"panel panel-primary\"> | |
<div class=\"panel-heading\"> | |
<div class=\"row\"> | |
<div class=\"col-xs-3\"> |
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
public function get_location_by_id($id) | |
{ | |
$this->db->select('al.nm_alumni,CONCAT(rd.name, \', \', rp.name) AS lokasi') | |
->from('modul_alumni AS al') | |
->join('villages AS rd','al.id_wil=rd.id') | |
->join('districts AS rk','rd.district_id=rk.id') | |
->join('regencies AS rb','rk.regency_id=rb.id') | |
->join('provinces AS rp','rb.province_id=rp.id') | |
->where('al.id_wil',$id); | |
return $this->db->get(); |
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
RewriteEngine On | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule ^(.*)$ index.php/$1 [L] |
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 defined('BASEPATH') OR exit('No direct script access allowed'); ?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Input Data</title> | |
<link href="<?php echo base_url('assets/css/bootstrap.min.css');?>" rel="stylesheet"> | |
<link href="<?php echo base_url('assets/css/select2.min.css');?>" rel="stylesheet"> | |
<link href="<?php echo base_url('assets/css/select2-bootstrap.css');?>" rel="stylesheet"> | |
</head> |
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 defined('BASEPATH') OR exit('No direct script access allowed'); ?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Peta Sebaran Alumni</title> | |
<link href="<?php echo base_url('assets/css/bootstrap.min.css');?>" rel="stylesheet"> | |
<?php echo $map['js']; ?> | |
</head> |