-
Notifications
You must be signed in to change notification settings - Fork 0
/
TCS_edit.html
85 lines (56 loc) · 2.89 KB
/
TCS_edit.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title>TCS Edit</title>
<link rel="stylesheet" href="./css/TCS_postStyle.css" type="text/css" />
</head>
<body style="display:flex; background-color: rgb(96, 131, 89); color: white" ;>
<div>
<h1>DEL /Edit DB post -- doesn't change .html</h1>
<div id="tcs_credentials"></div>
<BR>
<BR>
<form action="./php/TCS_edit.php" method="post">
<!-- -----------------------------
PUT DB LOGIN CREDENTIALS HERE
----------------------------- -->
<input type="hidden" id="tcs_db_url" name="db_url" value="XXX.XXX.XXX.XXX">
<input type="hidden" id="tcs_db_name" name="db_name" value="XXXXXXXX">
<input type="hidden" id="tcs_db_user" name="db_user" value="XXXXXX">
<input type="hidden" id="tcs_db_pwd" name="db_pwd" value="XXXXXXXXXX">
<div class="row">
<div class="column _3">URL ID: <input id="tcs_urlID" type="text" name="ID"/></div>
<div class="column _auto"></div>
</div>
<br />
<p>TAGS: <br /><input class="tcs_txtInput" type="text" name="tags" /></p>
<br />
<!-- DELETE OR UPDATE -->
<div class="row">
<div class="column _auto"> </div>
<div class="column _15"><input id="tcs_submit" type="submit" name="edit" value="EDIT" /></div>
<div class="column _auto"> </div>
<div class="column _15"><input id="tcs_submit" type="submit" name="delete" value="DELETE" /></div>
<div class="column _auto"> </div>
</div>
</form>
<br />
</div>
<script>
/*
* SHOW login credentials
*/
let theDiv = document.getElementById("tcs_credentials");
let db_url = document.getElementById("tcs_db_url");
theDiv.innerHTML += ( db_url.name + ": " + db_url.value + "<BR>");
let db_name = document.getElementById("tcs_db_name");
theDiv.innerHTML += ( db_name.name + ": " + db_name.value + "<BR>");
let db_user = document.getElementById("tcs_db_user");
theDiv.innerHTML += ( db_user.name + ": " + db_user.value + "<BR>");
let db_pwd = document.getElementById("tcs_db_pwd");
theDiv.innerHTML += ( db_pwd.name + ": " + db_pwd.value + "<BR>");
</script>
</body>
</html>