-
Notifications
You must be signed in to change notification settings - Fork 0
/
addcards_form.php
50 lines (39 loc) · 1.61 KB
/
addcards_form.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
<?php require("inc/cookiecheck.inc"); ?>
<!DOCTYPE html>
<html>
<head>
<title> Welcome to Flashcards!</title>
<link type="text/css" rel="stylesheet" href="css/reset.css"/>
<link type="text/css" rel="stylesheet" href="css/main.css"/>
<script src="js/jquery-2.0.3.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/common.js"></script>
<script src="js/addcards_form.js"></script>
</head>
<body>
<?php require("header.php"); ?>
<div id="add-form-div">
Add flashcards:<br>
<form id="add-card-form" method="post" action="addcards.php" enctype="multipart/form-data">
<input type="radio" name="input-method" id="radio-upload" value="upload"/>
<span>File Upload</span>,
<input type="radio" name="input-method" id="radio-manual" value="manual" checked="checked"/>
<span>Manual entry</span><br>
<div id="file-upload">
Filename: <input type="file" name="input-file"/><br/>
</div>
<textarea id="card-input" name="card-input" cols="40" rows="10">
card 1 front, card 1 back
card 2 front, card 2 back
card 3 front, card 3 back
( and so on... )</textarea>
<?php $newDeckOption = true; require("inc/deckselect.inc"); ?>
<div id="new-deck-title">
New deck title: <input type="text" name="new-deck-title-input" />
</div>
<input type="submit" />
</form>
</div>
<?php require("footer.php"); ?>
</body>
</html>