Skip to content
Snippets Groups Projects
Commit 71f1e32c authored by Mikhael Artur Darmakesuma's avatar Mikhael Artur Darmakesuma
Browse files

Added pref loc in database, minor fix pref loc

parent 2a8ee898
1 merge request!42Projekers - 13515051 - Girvandi Ilyas
......@@ -12,6 +12,9 @@ th{
text-align: center;
}
td{
height: 30;
}
th, td, tr{
padding: 2;
}
......@@ -36,7 +39,7 @@ table, th, td, tr{
#locationinput{
display: none;
width: 100%;
height: 30;
height: 100%;
}
button{
......@@ -47,7 +50,7 @@ button{
padding: 0;
}
.editbutton{
.editsavebutton{
height: 25;
width: 25;
}
......
.kotak{
.container{
background-color: #8BBD3C;
border-color: #02702C;
border-width: 10px;
border-style: solid;
border-radius: 50px;
width: 30%;
margin: 20 35% 0 35%;
padding: 10 10 10 10;
}
.horizontal{
......
-- MySQL dump 10.13 Distrib 5.7.14, for Win64 (x86_64)
-- MySQL dump 10.16 Distrib 10.1.21-MariaDB, for Win32 (AMD64)
--
-- Host: localhost Database: projekers
-- Host: localhost Database: localhost
-- ------------------------------------------------------
-- Server version 5.5.5-10.1.25-MariaDB
-- Server version 10.1.21-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
......@@ -15,6 +15,31 @@
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Table structure for table `pref_loc`
--
DROP TABLE IF EXISTS `pref_loc`;
/*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `pref_loc` (
`id` int(11) NOT NULL,
`location` varchar(50) NOT NULL,
KEY `id` (`id`),
CONSTRAINT `pref_loc_ibfk_1` FOREIGN KEY (`id`) REFERENCES `user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
--
-- Dumping data for table `pref_loc`
--
LOCK TABLES `pref_loc` WRITE;
/*!40000 ALTER TABLE `pref_loc` DISABLE KEYS */;
INSERT INTO `pref_loc` VALUES (1,'Tubagus Ismail'),(1,'Dago Asri'),(1,'Kopo');
/*!40000 ALTER TABLE `pref_loc` ENABLE KEYS */;
UNLOCK TABLES;
--
-- Table structure for table `user`
--
......@@ -54,4 +79,4 @@ UNLOCK TABLES;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed on 2017-09-30 0:24:39
-- Dump completed on 2017-09-30 10:55:55
var textHidden = false;
function hideMe(){
textHidden = !textHidden;
var textBox = document.getElementById("locationtext");
var inputBox = document.getElementById("locationinput");
var image = document.getElementById("imageeditsave");
if(textHidden){
textBox.setAttribute("style","display:none");
inputBox.setAttribute("style","display:block");
inputBox.value = textBox.innerHTML;
image.src = "../img/floppy.png";
}
else{
textBox.setAttribute("style","display:block");
inputBox.setAttribute("style","display:none");
textBox.innerHTML = inputBox.value;
image.src = "../img/pencil.png";
}
}
\ No newline at end of file
<html>
<head>
<title>Projekers - Login</title>
<link rel = "stylesheet" href = "../css/login.css">
<link rel = "stylesheet" href = "../css/primary.css">
<link rel = "stylesheet" href = "../css/login.css">
</head>
<body>
<div class = "kotak">
<div class = "container">
<div>
<div class = "horizontal"></div>
<div class = "judul">LOGIN</div>
......
<html>
<head>
<title>Projekers - Login</title>
<title>Projekers - Edit Prefered Location</title>
<link rel = "stylesheet" href = "../css/edit-prefered-location.css">
<link rel = "stylesheet" href = "../css/primary.css">
<script src = "../js/edit-prefered-location.js"></script>
</head>
<body>
<div class = "kotak">
<div class = "container">
<h1>EDIT PREFERED LOCATION</h1>
<table class="tab">
<tr>
......@@ -16,14 +17,14 @@
<tr>
<td class="tabno">1</td>
<td class="tabloc">
<div id="locationtext">2</div>
<div id="locationtext">Bandung</div>
<input id="locationinput" type="text">
</td>
<td class="tabact">
<div class="addset" align="center">
<div margin-right=50>
<div class="editsavebox">
<button onClick=hideMe() class="editsave">
<img src="../img/pencil.png" class="editbutton" id="imageeditsave">
<img src="../img/pencil.png" class="editsavebutton" id="imageeditsave">
</button>
</div>
<div>
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment