-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
98 lines (89 loc) · 2.5 KB
/
index.php
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
86
87
88
89
90
91
92
93
94
95
96
97
98
<?php include "process.php";?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>7Learn Exporter</title>
<style>
html,
body {
height: 100%;
}
body {
background: #007bec;
color: #fff;
font-size: 1.5em;
font-weight: 400;
text-align: right;
display: flex;
align-items: center;
flex-direction: column;
justify-content: center;
}
.main {
position: relative;
background: #ffffff;
color: #0e5698;
display: inline-block;
padding: 15px 30px;
margin: 0 auto;
border-radius: 7px;
box-shadow: 0 50px 50px rgba(0, 0, 0, 0.2);
min-height: 250px;
min-width: 400px;
}
h1 {
font: 30px sans-serif;
text-align: center;
margin: 25px 10px;
font-weight: bold;
color: #4a96db;
}
input,
button,
select,
textarea {
display: block;
border: 1px solid #ccc;
border-radius: 3px;
margin-top: 10px;
line-height: 28px;
height: 30px;
padding: 0 10px;
width: 100%;
box-sizing: border-box;
font-family: sans-serif;
font-size: 15px;
}
button {
background: #007bec;
color: #fff;
line-height: 40px;
height: 40px;
font-size: 18px;
border: 0;
}
button:hover {
opacity: 0.7;
cursor: pointer;
}
</style>
</head>
<body>
<div class='main'>
<h1>File Exporter</h1>
<form action="" method="post">
<input type="text" name="title" placeholder="Title Here">
<textarea name="content" placeholder="Content Here" style="height: 100px"></textarea>
<select name="format">
<option value="Text">Text File</option>
<option value="Pdf">Pdf Format</option>
<option value="Json">Json File</option>
<option value="Csv">Csv File</option>
</select>
<button type='submit'>Export to File</button>
</form>
</div>
</body>
</html>