-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.html.php
91 lines (82 loc) · 3.76 KB
/
form.html.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
<?php include_once 'includes/helpers.inc.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title><?php htmlout($pageTitle); ?> | <?php echo $site_title; ?></title>
<link rel="stylesheet" href="style.css">
<script type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode : "textareas",
//theme : "simple",
theme : "advanced",
plugins : "spellchecker, paste",
// Theme options - button# indicated the row# only
theme_advanced_buttons1 : "cut,copy,paste,|,bold,italic,|,sub,sup,|,formatselect,removeformat,|,undo,redo",
theme_advanced_buttons2 : "bullist,numlist,|,outdent,indent,|,link,unlink,anchor,image,|,spellchecker,|,charmap",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
theme_advanced_resizing : true,
theme_advanced_buttons2_add : ",|,pastetext,pasteword,selectall,|,code,preview",
paste_auto_cleanup_on_paste : true,
// paste_preprocess : function(pl, o) {
// // Content string containing the HTML from the clipboard
// alert(o.content);
// o.content = "-: CLEANED :-\n" + o.content;
// },
// paste_postprocess : function(pl, o) {
// // Content DOM node containing the DOM structure of the clipboard
// alert(o.node.innerHTML);
// o.node.innerHTML = o.node.innerHTML + "\n-: CLEANED :-";
// }
});
</script>
</head>
<body class="entry_form">
<div class="wrapper">
<h1><?php htmlout($pageTitle); ?></h1>
<form action="?<?php htmlout($action); ?>" method="post" class="group">
<fieldset>
<label for="entry_title"><span>Entry title </span>
<input id="entry_title" name="entry_title" value="<?php htmlout($entry_title); ?>"></label>
<?php if ($code_id == '') {
echo '<label for="code_id"><span>Short identifier <br />no spaces, please </span>
<input id="code_id" name="code_id" value="';
htmlout($code_id);
echo '" ></label>';
} else {
// if the entry already exists, don't allow the code_id to be edited
echo ' <input type="hidden" name="code_id" value="' . $code_id . '">';
} ?>
<!-- include in Scorecard glossary / or not-->
<?php
if ($sc_gloss == 1) {
$sc_checked = 'checked="checked"';
} else {
$sc_checked = '';
}
?>
<label for="sc_gloss"><span>Include in Scorecard Glossary </span>
<input type="checkbox" id="sc_gloss" name="sc_gloss" value="1" <?php echo $sc_checked; ?>></label>
<!-- include in Calculator glossary / or not-->
<?php
if ($calc_gloss == 1) {
$calc_checked = 'checked="checked"';
} else {
$calc_checked = '';
}
?>
<label for="calc_gloss"><span>Include in Calculator Glossary </span>
<input type="checkbox" id="calc_gloss" name="calc_gloss" value="1" <?php echo $calc_checked; ?>></label>
<label for="entry_text"><span>Entry text </span>
<textarea id="entry_text" name="entry_text" rows="10" cols="40" ><?php htmlout($entry_text); ?></textarea></label>
</fieldset>
<input type="hidden" name="id" value="<?php htmlout($id); ?>">
<input type="submit" class="submit" value="<?php htmlout($button); ?>">
</form>
<p><a href=".">Return to Search and Manage Entries</a></p>
</div>
</body>
</html>