Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Websites
/
SlimSpots Wiki
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit b2d60071
authored
2015-01-28 16:27:22 +0000
by
Aleksandar Hristov
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Concept changed
1 parent
e98438db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
204 deletions
html/edit.php
html/edit.php
deleted
100644 → 0
View file @
e98438d
<!DOCTYPE html>
<html
lang=
"en"
>
<?php
$db
=
new
SQLite3
(
'wiki.db'
);
?>
<head>
<meta
charset=
"utf-8"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
>
<meta
name=
"description"
content=
""
>
<meta
name=
"author"
content=
""
>
<title>
Slimspots Wiki
</title>
<!-- Bootstrap Core CSS -->
<link
href=
"static/bootstrap/css/bootstrap.min.css"
rel=
"stylesheet"
>
<!-- Custom CSS -->
<link
href=
"static/css/slimspots-wiki.css"
rel=
"stylesheet"
>
<link
href=
"static/css/styles.css"
rel=
"stylesheet"
>
<link
href=
'http://fonts.googleapis.com/css?family=Open+Sans'
rel=
'stylesheet'
type=
'text/css'
>
<!-- FontAwesome -->
<link
rel=
"stylesheet"
href=
"static/font-awesome/css/font-awesome.min.css"
>
<script
src=
"static/bootstrap/js/jquery-1.11.0.js"
></script>
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div
id=
"wrapper"
>
<!----------------------------------------------------- Sidebar ---------------------------------------------------->
<div
id=
"sidebar-wrapper"
>
<ul
class=
"sidebar-nav"
>
<li
class=
"sidebar-brand"
>
<a
href=
"#"
>
<img
src=
"static/gfx/logo.svg"
class=
"img-responsive"
/>
</a>
</li>
<li>
<a
href=
"#"
>
Add
<i
class=
"fa fa-chevron-right fa pull-right chevron-margin"
id=
"valign-icon"
></i></a>
</li>
<li
id=
"active"
>
<a
href=
"edit.php"
>
Edit
<i
class=
"fa fa-chevron-right fa pull-right chevron-margin"
id=
"valign-icon"
></i></a>
</li>
<li>
<a
href=
"#"
>
Remove
<i
class=
"fa fa-chevron-right fa pull-right chevron-margin"
id=
"valign-icon"
></i></a>
</li>
</ul>
</div>
<!-- /#sidebar-wrapper -->
<!---------------------------------------------------------------------------------------------------------------->
<div
class=
"container-fluid"
id=
"menu-tray"
>
<div
class=
"col-xs-6"
>
<a
href=
"#menu-toggle"
id=
"menu-toggle"
><i
class=
"fa fa-bars fa-2x icon pull-left"
></i></a>
</div>
<div
class=
"col-xs-6"
id=
"search-container"
>
<form
name=
"#"
method=
"#"
action=
"#"
class=
"form-search"
>
<input
type=
"text"
class=
"pull-right"
name=
"#"
id=
"search-rounded"
placeholder=
"Suche"
>
</form>
</div>
</div>
<div
id=
"page-content-wrapper"
>
<div
class=
"pull-right"
>
<!-- In this table we display the date and time (desktop devices only) -->
<table
id=
"datetime"
>
<tr>
<td
id=
"date-container"
>
<span
id=
"day"
></span>
<br>
<span
id=
"datetime-number"
>
<span
id=
"datum"
>
</span>
</span><span
id=
"month"
>
</span>
</td>
<td
id=
"time-container"
>
<span
id=
"hour"
>
</span>
:
<span
id=
"minute"
>
</span>
</td>
</tr>
</table>
</div>
<!-------------------------------------------------------------------->
<div
id=
"container2"
>
<h1
id=
"container2-header"
>
Edit Wiki
</h1>
</div>
<div
class=
"row"
>
<div
class=
"col-lg-12"
>
<form
class=
"form-horizontal"
method=
"post"
action=
"editr.php"
>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
Edit:
</div>
<div
class=
"panel-body"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
Edit:
</label>
<div
class=
"col-sm-8"
>
<select
id=
"select_option"
class=
"form-control"
name=
"select_option"
>
<option
disabled
selected
>
Choose what to edit...
</option>
<option
value=
"page"
>
Page
</option>
<option
value=
"section"
>
Section
</option>
<option
value=
"sub-section"
>
Sub-section
</option>
</select>
</div>
</div>
<div
class=
"methode display-none"
id=
"page"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
Page to edit:
</label>
<div
class=
"col-sm-8"
>
<select
class=
"form-control"
name=
"page_to_edit"
id=
"page_to_edit"
>
<?php
$pages
=
$db
->
query
(
"SELECT * FROM page"
);
for
(
$i
=
0
;
$i
<
count
(
$pages
);
$i
++
)
{
while
(
$row
=
$pages
->
fetchArray
())
{
echo
"<option value='"
.
$row
[
0
]
.
"'>"
.
$row
[
1
]
.
"</option>"
;
}
}
?>
</select>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
New page title:
</label>
<div
class=
"col-sm-8"
>
<input
type=
"text"
class=
"form-control"
name=
"new_page_title"
/>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-4 control-label"
>
New page text:
</label>
<div
class=
"col-sm-8"
>
<textarea
class=
"form-control muted"
name=
"new_page_text"
id=
"textarea"
placeholder=
"Page Text"
></textarea>
<div
style=
"color:#66a3c7 !important;"
class=
"text-center"
>
<i
class=
"fa fa-bold fa editor-icon"
id=
"bold"
title=
"Bold"
></i>
<i
class=
"fa fa-italic fa editor-icon"
id=
"italic"
title=
"Italic"
></i>
<i
class=
"fa fa-underline fa editor-icon"
id=
"underline"
title=
"Underline"
></i>
<i
class=
"fa fa-strikethrough fa editor-icon"
id=
"strikethrough"
title=
"Strikethrough"
></i>
<i
class=
"fa fa-text-height fa editor-icon"
id=
"small"
title=
"Small"
></i>
<i
class=
"fa fa-bookmark fa editor-icon"
id=
"mark"
title=
"Mark"
></i>
<i
class=
"fa fa-code fa editor-icon"
id=
"code"
title=
"Code"
></i>
</div>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"col-sm-8 col-sm-offset-4"
>
<button
class=
"btn dark-blue"
type=
"submit"
>
Submit
</button>
</div>
</div>
<input
type=
"hidden"
name=
"type_of_change"
value=
"edit_page"
>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- /#page-content-wrapper -->
</div>
<!-- /#wrapper -->
<!-- Bootstrap Core JavaScript -->
<script
src=
"static/bootstrap/js/bootstrap.min.js"
></script>
<!-- Update time JavaScript -->
<script
src=
"static/js/main.js"
></script>
<script
src=
"static/js/updatetime.js"
></script>
<script
src=
"static/js/new_fields.js"
></script>
<script>
$
(
function
()
{
$
(
'.editor-icon'
).
on
(
'click'
,
function
()
{
if
(
this
.
id
==
'bold'
){
var
txt
=
"<strong></strong>"
;}
else
if
(
this
.
id
==
'italic'
){
var
txt
=
"<em></em>"
;}
else
if
(
this
.
id
==
'underline'
){
var
txt
=
"<u></u>"
;}
else
if
(
this
.
id
==
'strikethrough'
){
var
txt
=
"<s></s>"
;}
else
if
(
this
.
id
==
'small'
){
var
txt
=
"<small></small>"
;}
else
if
(
this
.
id
==
'mark'
){
var
txt
=
"<mark></mark>"
;}
else
if
(
this
.
id
==
'code'
){
var
txt
=
"<pre></pre>"
;}
var
box
=
$
(
"#textarea"
);
box
.
val
(
box
.
val
()
+
txt
);
});
});
</script>
</body>
</html>
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment