diff --git a/data/db_dagojek.sql b/data/db_dagojek.sql index 9f466641213670885e860a6e767a2da705baa0cb..6c164f369f5b2c6a139447ff8f0abaf09d1b895a 100644 --- a/data/db_dagojek.sql +++ b/data/db_dagojek.sql @@ -3,7 +3,7 @@ -- http://www.phpmyadmin.net -- -- Host: localhost --- Generation Time: Oct 04, 2017 at 09:40 PM +-- Generation Time: Oct 06, 2017 at 10:54 AM -- Server version: 10.0.31-MariaDB-0ubuntu0.16.04.2 -- PHP Version: 7.0.22-0ubuntu0.16.04.1 @@ -67,6 +67,18 @@ CREATE TABLE `prefered_location` ( `location` varchar(20) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; +-- +-- Dumping data for table `prefered_location` +-- + +INSERT INTO `prefered_location` (`id_driver`, `location`) VALUES +(1, 'Cipaganti'), +(1, 'Dago Asri'), +(1, 'Dago Pojok'), +(1, 'Lembang'), +(1, 'Mantheos'), +(1, 'Tubagus'); + -- -------------------------------------------------------- -- @@ -89,7 +101,7 @@ CREATE TABLE `user` ( -- INSERT INTO `user` (`id`, `name`, `username`, `email`, `password`, `phone`, `photo`, `is_driver`) VALUES -(1, 'Fadhil Imam Kurnia', 'fadhilimamk', '13515146@std.stei.itb.ac.id', 'dtashfVATSaashdbgasdjy78123bahsVJSF72vsahsj', '085797490039', 'http://www.simian-risk.com/wp-content/themes/custom/images/empty-profile.png', 1); +(1, 'Fadhil Imam Kurnia', 'fadhilimamk', '13515146@std.stei.itb.ac.id', 'dtashfVATSaashdbgasdjy78123bahsVJSF72vsahsj', '085797490039', '/img/profile/VGdWZUZ2dlJlUkM5eWpjVDcyQXJoZz09', 1); -- -- Indexes for dumped tables diff --git a/public/img/ic_close.png b/public/img/ic_close.png new file mode 100644 index 0000000000000000000000000000000000000000..1dcddb8efb6c103425d3308c8e166d22d013a152 Binary files /dev/null and b/public/img/ic_close.png differ diff --git a/public/style.css b/public/style.css index e6d80d37def0f2bce18f755a1185cbcc5ce6012d..276cf0a38ade66e6854c52c0d28f51333ff9e956 100644 --- a/public/style.css +++ b/public/style.css @@ -189,4 +189,31 @@ body { a.edit:after { margin: 15px; +} + +table { + border-collapse: collapse; +} + +table, th, td { + border: 1px solid #c2c2c2; +} + +.action-edit { + background-image: url('/img/ic_edit.jpg'); + background-size: 25px 25px; + display: inline-block; + width: 25px; + height: 20px; + content: ""; + margin-right: 10px; +} + +.action-delete { + background-image: url('/img/ic_close.png'); + background-size: 17px 17px; + display: inline-block; + width: 17px; + height: 17px; + content: ""; } \ No newline at end of file diff --git a/src/view/profil_edit_location.php b/src/view/profil_edit_location.php index 4d4cea30e692af62b532a6751d88965b05088caa..c7038f276fd0a2177e85f7f19387bd4d1ca6a79c 100644 --- a/src/view/profil_edit_location.php +++ b/src/view/profil_edit_location.php @@ -29,17 +29,17 @@ <table width="100%" border="1"> <tr> <th width="10%">No</th> - <th width="60%">Location</th> - <th width="25%">Actions</th> + <th width="65%">Location</th> + <th width="20%">Actions</th> </tr> <?php $no = 1;?> <?php foreach ($location as $data) : ?> <tr> - <td><?=$no++?></td> - <td><?=$data['location']?></td> + <td><b><?=$no++?></b></td> + <td><b><?=$data['location']?></b></td> <td style="text-align: center"> - <a href="#">Edit</a> - <a href="/main/profil/location/delete?u=<?=$id?>&name=<?=$data['location']?>">Delete</a> + <a class="action-edit" href="#"></a> + <a class="action-delete" href="/main/profil/location/delete?u=<?=$id?>&name=<?=$data['location']?>"></a> </td> </tr> <?php endforeach;?> @@ -59,8 +59,8 @@ <div class="col-1"></div> <div class="col-4"> <form action="/main/profil/location/add?u=<?=$id?>" method="post"> - <input type="text" name="location" style="width:83%;"> - <input type="submit" value="ADD" style="width:15%;"> + <input type="text" name="location" style="width:76%;height: 30px; font-size: medium"> + <input class="btn green" type="submit" value="ADD" style="width:20%;margin-left: 10px"> </form> </div> <div class="col-1"></div> @@ -69,7 +69,7 @@ <div class="row"> <div class="col-1"></div> <div class="col-4"> - <a href="/main/profil?u=<?=$id?>"><button type="button">BACK</button></a> + <a class="btn red" href="/main/profil?u=<?=$id?>">BACK</a> </div> <div class="col-1"></div> </div>