-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheditor.php
112 lines (98 loc) · 4.07 KB
/
editor.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
/*
# ------------------------------------------------------
# eBayLister - An eBay Listing Creator
# Copyright © 2021 David Rodgers
# Released under the terms of the MIT License
# ------------------------------------------------------
*/
require "dbconnect.php";
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php include 'meta.php' ?>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-12" style="margin-top: 25px;">
<div class="col-md-3">
<a href="index.php"><img src='images/eBayListerLogo.png'></a>
</div>
<div class="col-md-3" style="margin-top: 40px;">
<a href="index.php"><i class="headerMenuIcon fa fa-home fa-lg" title="Home"></i></a>
<a href="search.php"><i class="headerMenuIcon fa fa-search fa-lg" title="Search"></i></a>
<a href="config.php"><i style="color:black;" class="headerMenuIcon fa fa-cog fa-lg" title="Configuration"></i></a>
<?php
if (testConnect() == FALSE) {
echo "<i style='color:red;' class='headerMenuIcon fa fa-database fa-lg' title='Database Connection Error!'></i>";
}
?>
</div>
<div class="col-md-6"></div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<br />
<form action="processform.php" method="post">
<div class="row">
<div class="col-md-12">
<div class="form-group">
<textarea class="summernote form-control" name="editor" id="editor" rows="8" cols="80"></textarea>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- jQuery 3.6.0 -->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"
integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<!-- Bootstrap 3.3.7 -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"
integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous">
</script>
<!-- SummerNote 0.8.18 -->
<script src="summernote/summernote.min.js"></script>
<!-- Color Picker -->
<script src="js/colorpicker.js"></script>
<script>
$(document).ready(function () {
$('.summernote').summernote({
lineHeights: ['0.2', '0.3', '0.4', '0.5', '0.6', '0.8', '1.0', '1.2', '1.4', '1.5', '2.0', '3.0'],
fontSizes: ["8", "9", "10", "11", "12", "13", "14", "15", "16", "18", "20", "22", "24", "36", "48"],
toolbar: [
['style', ['style']],
['font', ['bold', 'underline', 'clear']],
['fontname', ['fontname']],
['fontsize', ['fontsize']],
['height', ['height']],
['color', ['color']],
/* START MOD - Add buttons to toolbar - summernote.js (line 7724) */
['insert', ['picture']],
['para', ['justifyCenter']],
['para', ['justifyLeft', 'justifyCenter', 'justifyRight', 'justifyFull', 'indent', 'outdent', 'ul', 'ol']],
/* END MOD - Add buttons to toolbar - summernote.js (line 7724) */
['table', ['table']],
['insert', ['link', 'picture', 'video']],
['view', ['fullscreen', 'codeview', 'help']],
],
});
});
$('#headerColor, #titleColor').ColorPicker({
onSubmit: function (hsb, hex, rgb, el) {
$(el).val('#' + hex);
$(el).ColorPickerHide();
},
onBeforeShow: function () {
$(this).ColorPickerSetColor(this.value);
}
}).bind('keyup', function () {
$(this).ColorPickerSetColor(this.value);
});
</script>
</body>
</html>