LAMPIRAN – LAMPIRAN
136
Lampiran 1
Peneliti : Rudianto
Evaluator :
Pekerjaan :
Bidang Keahlian :
Tanggal Evaluasi :
Petujuk Evaluasi
1. Lembar evaluasi ini diisi oleh validator yang menilai aplikasi khusus
menyangkut aspek pemrograman.
2. Berilah tanda centang (√) pada skor 1,2,3,4 pada kolom skor sesuai
dengan hasil penilaian yang diberikan, dengan skala sebagai berikut:
1 = Kurang Baik
2 = Sedang
3 = Baik
4 = Sangat Baik
137
N
Komponen/Indikator Skor
o
1 2 3 4
B Praktis
C Efektif
D Buku Manual
Petunjuk:
Lampiran 2
Peneliti : Rudianto
Evaluator :
Pekerjaan :
Bidang Keahlian :
Tanggal Evaluasi :
Petujuk Evaluasi
6. Lembar evaluasi ini diisi oleh validator yang menilai tampilan aplikasi
khusus menyangkut aspek tampilan.
7. Berilah tanda centang (√) pada skor 1,2,3,4 pada kolom skor sesuai
dengan hasil penilaian yang diberikan, dengan skala sebagai berikut:
1 = Kurang Baik
2 = Sedang
3 = Baik
4 = Sangat Baik
142
No Komponen/Indikator Skor
1 2 3 4
A Keterbacaan Teks
B Kualitas Gambar
C Keserasian Warna
background/gambar latar
D Tombol
Petunjuk:
….
………………………………………………………………………
……..
………………………………………………………………………
………………………………………………………………………
………………………………………………………………………
144
………………………………………………………………………
………………………………………………………………………
………………………………………………………………………
………………………………
Lampiran 3
LEMBAR RESPONDEN
Peneliti : Rudianto
Evaluator :
Pekerjaan :
Bidang Keahlian :
Tanggal Evaluasi:
Petujuk Evaluasi
11. Lembar evaluasi ini diisi oleh validator yang menilai tampilan
aplikasi khusus menyangkut aspek tampilan.
12. Berilah tanda centang (√) pada skor 1,2,3,4 pada kolom skor sesuai
dengan hasil penilaian yang diberikan, dengan skala sebagai berikut:
1 = Kurang Baik
2 = Sedang
3 = Baik
146
4 = Sangat Baik
No Komponen/Indikator Skor
1 2 3 4
A Kualitas aplikasi
B Navigasi
Praktis
Efektif
148
C Kepuasan pengguna
Petunjuk:
….
…………………………………………………………………………
…..
…………………………………………………………………………
…………………………………………………………………………
…………………………………………………………………………
…………………………………………………………………………
…
Lampiran 4
LEMBAR VALIDASI
Responden :
Pekerjaan :
Petujuk Pengisian:
16. Lembar validasi ini diisi oleh responden yang menilai aplikasi khusus
menyangkut aspek penilaian pengguna.
17. Berilah tanda centang (√) pada skor 1,2,3,4 pada kolom skor sesuai
dengan hasil penilaian yang diberikan, dengan skala sebagai berikut:
1 = Kurang Baik
2 = Sedang
3 = Baik
4 = Sangat Baik
18. Peneliti mohon Saudara(i) membaca terlebih dahulu seluruh validasi
ini untuk mendapatkan gambaran tentang keseluruhan pernyataan,
apabila terdapat hal yang kurang jelas dapat ditanyakan kepada
peneliti.
Aspek penilaian pengguna
No Komponen/Indikator Skor
151
1 2 3 4
A Kualitas aplikasi
B Navigasi
Praktis
Efektif
C Kepuasan pengguna
Lampiran 5
Nomo Pekerja
Nama
r an
1 Dr. Mustari, M.T. Dosen
2 Dr. Hendra , M.T. Dosen
Responden 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
1 4 4 4 4 4 4 3 4 4 4 3 3 3 3 3 3 3.35 83.82
2 3 3 3 4 4 4 3 4 4 4 3 4 3 4 4 3 3.35 83.82
Jumlah 3.50 3.50 3.50 4.00 4.00 4.00 3.00 4.00 4.00 4.00 3.00 3.50 3.00 3.50 3.50 3.00 3.35 83.82
Hasil SB SB SB SB SB SB B SB SB SB B SB B SB SB B SB
154
Responden 1 2 3 4 5 6 7 8 9 10
1 3 3 3 3 3 4 3 3 3 3 1.82 45.59
2 4 4 4 4 3 3 4 4 4 4 2.24 55.88
Jumlah 3.50 3.50 3.50 3.50 3.00 3.50 3.50 3.50 3.50 3.50 2.03 50.74
Hasil SB SB SB SB B SB SB SB SB SB S
155
Lampiran 6
penggunaan aplikasi
Nomor Kepuasan Dampak bagi
Kualitas aplikasi Navigasi
pengguna Kampus Rata-rata %
Praktis Efektif
Responden 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
1 3 4 3 3 3 3 3 3 3 4 4 4 4 4 4 3 3 3 4 3 3 3 3 3.35 83.70
2 4 4 3 3 3 3 4 3 3 3 4 4 4 4 3 3 4 4 4 4 3 3 3 3.48 86.96
3 4 4 3 4 4 4 4 3 3 3 3 4 4 4 3 3 4 4 4 3 3 3 3 3.52 88.04
4 3 4 3 4 4 4 4 3 4 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3.43 85.87
5 4 3 4 4 4 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3.87 96.74
6 3 3 4 3 3 2 3 4 4 3 3 4 4 4 4 4 4 4 4 4 4 4 4 3.61 90.22
7 3 3 4 4 3 3 3 3 3 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3.13 78.26
Jumlah 3.43 3.57 3.43 3.57 3.43 3.14 3.43 3.29 3.43 3.57 3.57 3.86 3.86 3.71 3.43 3.29 3.57 3.57 3.71 3.43 3.83 3.83 3.83 3.56 88.90
Hasil SB SB SB SB SB B SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB
156
Lampiran 7
23 Nurhayati Mahasiswa
24 Hasnani Mahasiswa Pendidikan Fisika (S2)
25 Eka Sriwahyuni Mahasiswa
26 Reski Ramadani Mahasiswa
27 Ade Fitria Mahasiswa
Pendidikan Kimia (S2)
Puji Laila
28 Mahasiswa
Ramadhan
Sri
29 Kurniayawati Mahasiswa
AR Pendidikan Biologi (S2)
30 Etti Trimunarti Mahasiswa
31 Hasrawati Mahasiswa
32 Achmad Hakim Mahasiswa
Pendidikan Jasmani Dan
33 Dwi Wiratmoko Mahasiswa
Olahraga (S2)
34 Alfian Ariyanto Mahasiswa
35 Harmelia Tulak Mahasiswa
36 Hengki Wijaya Mahasiswa Ilmu Pendidikan (S3)
37 Sahrul Syahwal Mahasiswa
Andi
38 Mahasiswa
Nurhikmawati Bimbingan dan konseling
39 Ramli Mahasiswa (S2)
40 Nursyamsih Mahasiswa
Yusran Anri
41 Mahasiswa
Saputra
Hijrati Teknologi Pendidikan (S2)
42 Mahasiswa
Aminuddin
43 Basnariah Mahasiswa
44 Bahtiar Mahasiswa
Andi Putri Administrasi pendidikan
45 Mahasiswa
Mangkawani (S2)
46 Ismawati .M Mahasiswa
47 Minarti Usman Mahasiswa Penelitian dan evaluasi
48 Haerul Amri Mahasiswa pendidikan (S2)
49 Agnes Mahasiswa
Wulandari
158
Mangesak
50 Feranita Gustani Mahasiswa
51 Nur Fatna Kawa Mahasiswa Pendidikan Bahasa (S2)
52 Musriani Mahasiswa
Rafiwah
53 Mahasiswa
Burhanuddin Pendidikan Ilmu
54 Ria Anriani Mahasiswa Pengetahuan Sosial (S2)
55 Hilphya Chiry Mahasiswa
Seprian
56 Mahasiswa
Patandianan Pendidikan Kependudukan
57 Ashari Alam Mahasiswa dan Lingkungan Hidup
Yadiadwan (S2)
58 Mahasiswa
Sampebua
59 Wahyu Ningsih Mahasiswa
60 Lilis Suryani Mahasiswa
Pendidikan Bahasa (S3)
Andi
61 Mahasiswa
Muhammad Nur
Eka Prabawati
62 Mahasiswa
Rum
Magvirah El Pendidikan Bahasa Inggris
63 Mahasiswa
Walidayni Kau (S3)
Bahrun
64 Mahasiswa
Abubakar
A. Syarif
65 Mahasiswa
Hidayatullah
Pendidikan Seni Rupa
66 Sukardi Mahasiswa
67 Syafitra Rais Mahasiswa
Laode Syamsul
68 Mahasiswa Pendidikan Kependudukan
Nana
dan Lingkungan Hidup
69 Mustakim Mahasiswa
(S3)
70 Asnita Virlayani Mahasiswa
71 Ela Elliyana Mahasiswa
Syurwana
72 Farwita Mahasiswa Pendidikan Ekonomi
Samuddin
73 Syurwana Mahasiswa
159
Farwita
Samuddin
74 Abdul Rauf Mahasiswa
Pendidikan Bahasa Jerman
75 Nurbaya Mahasiswa
(S2)
76 Marwan Mahasiswa
Muhammad
77 Mahasiswa
Fadli
Rahmawati Pendidikan Geografi (S2)
78 Mahasiswa
nurkarima
79 Irwan Sukardi Mahasiswa
80 Sukmawati Mahasiswa
Antini Apriliana Pendidikan Bahasa Inggris
81 Mahasiswa
Nasrun (S2)
82 Musdalifah Mahasiswa
83 Kiki Staf
84 Nur Alam Staf Staf Loket
85 Elfiana Staf
160
47 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 3 4 3 3 3 3 2.74 68.48
48 4 4 3 3 3 3 3 3 3 3 3 4 4 4 3 3 3 4 4 3 3 3 3 2.91 72.83
49 4 3 3 3 3 3 3 3 3 3 4 4 4 3 4 4 4 4 3 4 4 3 3 3.00 75
50 4 4 3 3 4 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 3 3 2.96 73.91
51 4 3 3 3 4 3 3 3 4 4 3 4 4 4 4 3 4 3 3 3 3 3 3 3.00 75
52 4 3 3 3 4 3 3 3 4 4 4 4 3 3 3 3 3 3 3 3 3 3 3 2.87 71.74
53 4 4 3 3 4 3 3 3 4 3 3 4 3 3 3 3 3 3 3 3 3 3 3 2.83 70.65
54 4 3 3 3 4 3 3 3 3 3 3 4 3 3 3 3 4 4 3 3 3 3 3 2.83 70.65
55 4 4 3 3 4 3 3 4 4 4 4 3 3 3 3 4 4 4 3 3 3 3 3 3.04 76.09
56 4 3 3 3 4 3 3 3 4 3 4 3 3 3 3 3 3 3 3 3 3 3 3 2.78 69.57
57 4 3 3 3 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2.70 67.39
58 3 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2.65 66.3
59 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2.65 66.3
60 4 3 3 3 4 3 3 3 3 3 4 4 3 3 3 3 3 4 4 4 3 3 3 2.91 72.83
61 4 3 3 3 3 3 3 3 4 3 4 3 3 4 3 4 3 3 3 3 3 3 3 2.83 70.65
62 4 3 3 3 4 3 4 4 4 3 3 3 4 3 3 3 3 3 3 3 3 3 3 2.87 71.74
63 4 3 3 3 4 4 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2.78 69.57
64 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2.65 66.3
65 4 3 3 3 4 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 2.70 67.39
66 4 3 3 3 4 3 3 4 4 4 4 3 4 4 4 4 4 4 4 4 4 4 4 3.22 80.43
67 4 3 4 4 4 4 4 3 4 4 3 4 3 4 3 3 4 4 4 4 4 4 4 3.22 80.43
68 4 3 4 4 4 4 3 4 4 4 4 3 4 4 4 4 4 4 4 4 4 4 4 3.35 83.7
69 4 3 4 3 4 4 3 3 3 3 4 3 3 3 4 4 2 4 3 4 3 4 4 2.96 73.91
70 4 3 4 4 4 4 3 4 3 4 4 3 3 3 4 4 4 4 4 4 4 4 4 3.22 80.43
71 4 4 4 2 4 4 3 4 4 3 4 3 4 4 3 4 4 4 4 4 4 4 4 3.22 80.43
72 4 4 4 4 3 4 3 4 4 4 4 3 4 3 4 4 3 4 4 4 4 4 4 3.26 81.52
73 4 4 4 4 3 4 3 4 4 4 4 3 4 4 4 4 4 3 4 4 4 4 4 3.30 82.61
74 4 4 4 4 3 4 3 4 4 4 4 3 4 3 4 3 4 3 4 4 3 4 4 3.22 80.43
75 4 4 4 4 3 4 3 4 4 4 4 3 4 4 4 4 4 4 4 4 4 4 4 3.35 83.7
76 3 4 4 4 3 4 3 4 4 4 4 3 4 3 4 4 4 4 4 4 3 4 4 3.26 81.52
77 4 4 4 4 3 4 3 4 4 4 4 3 4 4 4 4 4 4 4 4 4 4 4 3.35 83.7
78 4 4 4 4 3 4 3 4 4 4 4 3 4 4 4 4 3 3 4 4 4 4 4 3.26 81.52
79 4 4 4 4 3 3 3 4 4 4 4 3 4 4 4 4 4 4 4 4 4 4 4 3.30 82.61
80 4 4 4 4 3 4 3 4 4 4 4 3 4 3 4 4 4 4 4 4 4 4 4 3.30 82.61
81 4 4 4 3 4 3 3 4 4 3 4 4 4 4 4 4 4 4 4 4 4 4 4 3.30 82.61
82 4 4 4 4 4 3 4 4 4 3 3 4 4 4 4 4 4 4 4 3 4 4 4 3.30 82.61
83 4 4 4 3 4 4 4 4 4 3 4 4 4 4 4 4 4 4 4 4 4 4 4 3.39 84.78
84 4 4 4 3 4 3 4 4 4 4 4 3 4 3 4 4 4 4 3 4 4 4 4 3.26 81.52
85 4 4 4 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 3.43 85.87
Jumlah 3.86 3.48 3.44 3.39 3.55 3.42 3.35 3.48 3.47 3.40 3.46 3.35 3.46 3.41 3.47 3.54 3.49 3.51 3.48 3.46 3.38 3.41 3.38 3.46 86.57
Hasil SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB SB
162
Lampiran 8 Dokumentasi
163
Lampiran 9
164
A. Index
<?php
/**
* CodeIgniter
*
* An open source application development framework for PHP
*
* This content is released under the MIT License (MIT)
*
* Copyright (c) 2014 - 2017, British Columbia Institute of
Technology
*
* Permission is hereby granted, free of charge, to any person
obtaining a copy
* of this software and associated documentation files (the
"Software"), to deal
* in the Software without restriction, including without limitation the
rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell
* copies of the Software, and to permit persons to whom the Software
is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be
included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT
WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE
WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE
165
/*
*---------------------------------------------------------------
* APPLICATION ENVIRONMENT
*---------------------------------------------------------------
*
* You can load different configurations depending on your
* current environment. Setting the environment also influences
* things like logging and error reporting.
*
* This can be set to anything, but default usage is:
*
* development
* testing
* production
*
* NOTE: If you change these, also change the error_reporting() code
below
166
*/
define('ENVIRONMENT', isset($_SERVER['CI_ENV']) ?
$_SERVER['CI_ENV'] : 'development');
/*
*---------------------------------------------------------------
* ERROR REPORTING
*---------------------------------------------------------------
*
* Different environments will require different levels of error
reporting.
* By default development will show errors but testing and live will
hide them.
*/
switch (ENVIRONMENT)
{
case 'development':
error_reporting(-1);
ini_set('display_errors',
1);
break;
case 'testing':
case 'production':
ini_set('display_errors',
0);
if
(version_compare(PHP_VERSION, '5.3', '>='))
{
error_reporting(E_ALL
& ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT &
~E_USER_NOTICE & ~E_USER_DEPRECATED);
}
else
{
error_reporting(E_ALL
& ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE);
167
}
break;
default:
header('HTTP/1.1 503
Service Unavailable.', TRUE, 503);
echo 'The application
environment is not set correctly.';
exit(1); // EXIT_ERROR
}
/*
*---------------------------------------------------------------
* SYSTEM DIRECTORY NAME
*---------------------------------------------------------------
*
* This variable must contain the name of your "system" directory.
* Set the path if it is not in the same directory as this file.
*/
$system_path = 'system';
/*
*---------------------------------------------------------------
* APPLICATION DIRECTORY NAME
*---------------------------------------------------------------
*
* If you want this front controller to use a different "application"
* directory than the default one you can set its name here. The
directory
* can also be renamed or relocated anywhere on your server. If you
do,
* use an absolute (full) server path.
* For more info please see the user guide:
*
* https://codeigniter.com/user_guide/general/managing_apps.html
*
* NO TRAILING SLASH!
*/
168
$application_folder =
'application';
/*
*---------------------------------------------------------------
* VIEW DIRECTORY NAME
*---------------------------------------------------------------
*
* If you want to move the view directory out of the application
* directory, set the path to it here. The directory can be renamed
* and relocated anywhere on your server. If blank, it will default
* to the standard location inside your application directory.
* If you do move this, use an absolute (full) server path.
*
* NO TRAILING SLASH!
*/
$view_folder = '';
/*
* --------------------------------------------------------------------
* DEFAULT CONTROLLER
* --------------------------------------------------------------------
*
* Normally you will set your default controller in the routes.php file.
* You can, however, force a custom routing by hard-coding a
* specific controller class/function here. For most applications, you
* WILL NOT set your routing here, but it's an option for those
* special instances where you might want to override the standard
* routing in a specific front controller that shares a common CI
installation.
*
* IMPORTANT: If you set the routing here, NO OTHER controller
will be
* callable. In essence, this preference limits your application to ONE
* specific controller. Leave the function name blank if you need
* to call functions dynamically via the URI.
*
* Un-comment the $routing array below to use this feature
169
*/
// The directory name,
relative to the "controllers" directory. Leave blank
// if your controller is not
in a sub-directory within the "controllers" one
// $routing['directory'] =
'';
/*
* -------------------------------------------------------------------
* CUSTOM CONFIG VALUES
* -------------------------------------------------------------------
*
* The $assign_to_config array below will be passed dynamically to
the
* config class when initialized. This allows you to set custom config
* items or override any default config values found in the config.php
file.
* This can be handy as it permits you to share one application
between
* multiple front controller files, with each file containing different
* config values.
*
* Un-comment the $assign_to_config array below to use this feature
*/
//
$assign_to_config['name_of_config_item'] = 'value of config item';
170
// --------------------------------------------------------------------
// END OF USER CONFIGURABLE SETTINGS. DO NOT EDIT
BELOW THIS LINE
// --------------------------------------------------------------------
/*
* ---------------------------------------------------------------
* Resolve the system path for increased reliability
* ---------------------------------------------------------------
*/
chdir(dirname(__FILE__));
}
if (($_temp =
realpath($system_path)) !== FALSE)
{
$system_path =
$_temp.DIRECTORY_SEPARATOR;
}
else
{
// Ensure there's a trailing
slash
$system_path = strtr(
rtrim($system_path, '/\\'),
'/\\',
DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
171
).DIRECTORY_SEPAR
ATOR;
}
/*
* -------------------------------------------------------------------
* Now that we know the path, set the main path constants
* -------------------------------------------------------------------
*/
// The name of THIS file
define('SELF',
pathinfo(__FILE__, PATHINFO_BASENAME));
define('SYSDIR',
basename(BASEPATH));
$application_folder =
$_temp;
}
else
{
$application_folder =
strtr(
rtrim($application_folder,
'/\\'),
'/\\',
DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
);
}
}
elseif
(is_dir(BASEPATH.
$application_folder.DIRECTORY_SEPARATOR))
{
$application_folder =
BASEPATH.strtr(
trim($application_folder,
'/\\'),
'/\\',
173
DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
);
}
else
{
header('HTTP/1.1 503
Service Unavailable.', TRUE, 503);
echo 'Your application
folder path does not appear to be set correctly. Please open the
following file and correct this: '.SELF;
exit(3); //
EXIT_CONFIG
}
define('APPPATH',
$application_folder.DIRECTORY_SEPARATOR);
$view_folder =
strtr(
rtrim($view_folder, '/\\'),
'/\\',
DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
);
}
}
elseif (is_dir(APPPATH.
$view_folder.DIRECTORY_SEPARATOR))
{
$view_folder =
APPPATH.strtr(
trim($view_folder,
'/\\'),
'/\\',
DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
);
}
else
{
header('HTTP/1.1 503
Service Unavailable.', TRUE, 503);
echo 'Your view folder
path does not appear to be set correctly. Please open the following file
and correct this: '.SELF;
exit(3); //
EXIT_CONFIG
}
define('VIEWPATH',
$view_folder.DIRECTORY_SEPARATOR);
/*
* --------------------------------------------------------------------
175
B. Controller Login
}
function reset_password(){
$a['xHr'] = $this->input->get('xHr',true);
$this->load->view('reset-password',$a);
}
function do_login()
{
$username = $_POST["username"];
$password = $_POST["password"];
$cek = $this->M_login-
>cek_user($username,md5($password)); //melakukan persamaan
data dengan database
if(count($cek) == 1){ //cek data berdasarkan username &
pass
$_SESSION['error'] = true;
$_SESSION['pesan'] = 'Email sudah terdaftar';
redirect("login");
}else{
$enc = $this->M_login->enc('encrypt',$pk);
$data = array(
"id" => $enc,
"titel" => "Malltronik - Registrasi Suplier",
"email" => $pk,
"kalimat" => "Terimakasih telah melakukan
pendaftaran menjadi suplier di malltronik. Silahkan klik tautan
berikut untuk mengkonfirmasi akun anda.",
"powered" => "© Copyright by booble
app all right reserve by Malltronik",
);
/* $message = $this->load->view('email/registrasi',
$data, true);
$config['protocol'] = 'smtp';
$config['smtp_host'] =
'ssl://mail.makassarimportir.com';
$config['smtp_port'] = '465';
$config['smtp_timeout'] = '7';
$config['smtp_user'] =
'admin@makassarimportir.com';
$config['smtp_pass'] = 'ar123456789';
$config['charset'] = 'iso-8859-1';
$config['newline'] = "\r\n";
$config['mailtype'] = 'html';
$config['validation'] = TRUE;
$this->email->initialize($config);
$this->load->library('email');
$this->email->clear();
180
$this->email-
>from('admin@makassarimportir.com', 'Admin Indonesia
Importir');
$this->email->to($pk);
date_default_timezone_set("Asia/Makassar");
$lupdate = date("Y-m-d H:i:s");
$this->email->subject('Pendaftaran Member
IndonesiaImportir.com');
$this->email->message($message);
if ($this->email->send() == TRUE){ */
$status = 'tambah';
$table = 'registrasi';
$data = array(
"nama" => $this->input-
>post("nm_lengkap",true),
"email" => $pk,
"nim" => $this->input-
>post("nim",true),
"jurusan" => $this->input-
>post("jurusan",true),
"kekhususan" => $this->input-
>post("kekhususan",true),
"hp" => $this->input->post("hp",true),
"password" => $this->input-
>post("password",true),
"last_update" => $time,
"created_at" => $time,
);
$duses = array(
"username" => $this->input-
>post("email",true),
"jurusan" => $this->input-
>post("jurusan",true),
181
function verifikasi(){
$id = $this->M_login->enc('decrypt',$this->input-
>get('xHr',true));
182
function lupa_password(){
183
$this->load->library('email');
$this->email->clear();
$this->email-
>from('admin@makassarimportir.com', 'Reset password');
$this->email->to($pk);
date_default_timezone_set("Asia/Makassar");
$lupdate = date("Y-m-d H:i:s");
$this->email->subject('Reset Password');
$this->email->message($message);
//echo $this->email->send().'/1';
if ($this->email->send()){
$id_reset = round(microtime(true));
$data = array(
"id_reset" => $id_reset,
);
$sql = $this->model->simpan('user','email',
$data,$pk,'update');
$_SESSION['idreset'] = $id_reset;
$_SESSION['error'] = false;
$_SESSION['pesan'] = 'Berhasil
mengkonfirmasi, silahkan cek email untuk reset password';
redirect('login');
}else{
$_SESSION['error'] = true;
$_SESSION['pesan'] = 'Terjadi kesalahan
server, ulangi lagi';
redirect('login');
}
//
}
}
function logout()
{
$username = $this->session->userdata('uname');
185
C. Controller Master
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
$a['page'] = "content/suplier/master/landing-page";
$this->load->view('index',$a);
}
function getKode(){
$tabel = $this->input->post('tabel');
$field = $this->input->post('field');
$uname = $this->session->userdata('id_user');
$as = $this->input->post('as');
$sql = $this->db->query("select
concat('$uname','-','$as',ifnull(lpad(max(right($field,5))
+1,5,0),'00001')) as max_kode from $tabel");
$result = array();
$a = 0;
foreach ($sql->result_array() as $resulte){
$result = array(
'id' => $a,
'kode' => $resulte['max_kode']
);
$a++;
}
echo json_encode($result);
}
function getKodeSurat(){
$tabel = $this->input->post('tabel');
$field = $this->input->post('field');
$uname = $this->session->userdata('id_user');
$jurusan = $this->session->userdata('jurusan');
$as = $this->input->post('as');
$sql = $this->db->query("select
ifnull(lpad(max(left($field,5))+1,5,0),'00001') as max_kode from
$tabel where prodi='$jurusan'");
$result = array();
$a = 0;
foreach ($sql->result_array() as $resulte){
$result = array(
'id' => $a,
'kode' => $resulte['max_kode']
);
$a++;
187
}
echo json_encode($result);
}
function getFormatSurat(){
$tabel = $this->input->post('tabel');
$field = $this->input->post('field');
$uname = $this->session->userdata('id_user');
$jurusan = $this->session->userdata('jurusan');
$as = $this->input->post('as');
$sql = $this->db->query("select format from $tabel
where prodi='$jurusan'");
$result = array();
$a = 0;
foreach ($sql->result_array() as $resulte){
$result = array(
'id' => $a,
'format' => $resulte['format']
);
$a++;
}
echo json_encode($result);
}
function hapus(){
$tabel = $this->input->post('tabel');
$kode = $this->input->post('kd_form');
$where = $this->input->post('where');
$sql = $this->db->query("delete from $tabel where
$where='$kode'");
echo '1';
}
function upd_kategori(){
$name = $this->input->post('name',true);
$value = $this->input->post('value',true);
$pk = $this->input->post('pk',true);
$tabel = $this->input->get('tabel',true);
$upd = $this->db->query("update $tabel set
$name='$value' where kd_form='$pk'");
if($upd){
echo 'Berhasil';
188
}
}
function get_data(){
$tabel = $this->input->post('tabel',true);
$kd_form = $this->input->post('val',true);
switch($tabel){
case 'tbl_data_judul':
$get_que = $this->model->getDataWhere5($tabel,
$kd_form,'kd_form');
foreach($get_que->result() as $a){
$data = array(
"nm_mahasiswa" => $a-
>nm_mahasiswa,
"nim_mahasiswa" => $a-
>nim_mahasiswa,
"jurusan" => $a->jurusan,
"nm_judul1" => $a-
>nm_judul1,
"latbel_judul1" => $a-
>latbel_judul1,
"nm_judul2" => $a-
>nm_judul2,
"latbel_judul2" => $a-
>latbel_judul2,
"nm_judul3" => $a-
>nm_judul3,
"latbel_judul3" => $a-
>latbel_judul3,
);
}
echo json_encode($data);
break;
}
}
function master_rekening(){
$a['titel'] = 'Input Master Rekening';
$a['footer'] = "2017 © Master by b00ble app";
$a['page'] = "content/suplier/master/rekening";
$this->load->view('index',$a); } }
189
<h6>Judul Satu</h6>
<section>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="judul1"> Masukan judul : <span
class="danger">*</span> </label>
<input type="text"
onchange='get_progress(this.value)' class="form-control required"
id="judul1" name="judul1"/>
<input type="hidden" id="gpxj1"
name="gpxj1"> </div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id='show_progress_one'></div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="wemailAddress2"> Masukan
Latar Belakang: <span class="danger">*</span> </label>
<textarea id="latar_belakang1"
name="latar_belakang1"></textarea>
</div>
</div>
</section>
<!-- Step 2 -->
<h6>Judul Dua</h6>
<section>
192
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="judul2"> Masukan judul : <span
class="danger">*</span> </label>
<input type="text"
onchange='get_progress2(this.value)' class="form-control
required" id="judul2" name="judul2">
<input type="hidden" id="gpxj2"
name="gpxj2"></div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div id='show_progress_two'></div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="form-group">
<label for="latar_belakang2"> Masukan
Latar Belakang: <span class="danger">*</span> </label>
<textarea id="latar_belakang2"
name="latar_belakang2"></textarea>
</div>
</div>
</section>
<!-- Step 3 -->
<h6>Judul Tiga</h6>
<section>
<div class="row">
<div class="col-md-12">
<div class="form-group">
193
<footer class="footer">
<?=$footer;?>
</footer>
</div>
<script src="assets/sweet-alert/sweetalert2.min.js"></script>
<script
src="assets/assets/plugins/wizard/jquery.steps.min.js"></script>
<script
src="assets/assets/plugins/wizard/jquery.validate.min.js"></script
>
<script src="assets/assets/plugins/wizard/steps.js"></script>
<script
src="assets/assets/plugins/tinymce/tinymce.min.js"></script>
<script src="assets/js-tr/input-judul.js"></script>
<script>
$(document).ready(function(data){
status = "<?=$datacek;?>";
if(status>0){
$('#sess_tabel').show();
$('#sess_form').hide();
status = 'edit';
}else{
$('#sess_tabel').hide();
$('#sess_form').show();
status = 'tambah';
}
})
function tabel(){
$('#datable_2').DataTable({
"processing": true,
"serverSide": true,
"ajax":{
"url": "list-judul-mahasiswa",
"dataType": "json",
196
"type": "POST",
"data":{ '<?php echo $this->security-
>get_csrf_token_name(); ?>' : '<?php echo $this->security-
>get_csrf_hash(); ?>' }
},
"columns": [
{ "data": "no", "className": "text-center"},
{ "data": "nim" , "className": "text-left"},
{ "data": "nm_mahasiswa" , "className": "text-
center"},
{ "data": "judul1" , "className": "text-center"},
{ "data": "judul2" , "className": "text-right"},
{ "data": "judul3" , "className": "text-center"},
{ "data": "status" , "className": "text-center"},
{ "data": "aksi" , "className": "text-center"},
]
});
var table = $('#datable_2').DataTable();
$('#datable_2 tbody').on( 'click', 'tr', function () {
if ( $(this).hasClass('selected') ) {
$(this).removeClass('selected');
}
else {
table.$('tr.selected').removeClass('selected');
$(this).addClass('selected');
var idx = table.cell('.selected', 0).index();
var data = table.row( idx.row ).data();
kd_form = data.kd_form;
}
} );}</script>
197
Lampiran 10
Dokumen – Dokumen
Lampiran 11
Story Board
StoryboardMenu Judul
Lampiran 12