forked from ZevanRosser/ztxt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·154 lines (128 loc) · 4.8 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php require_once("header.php"); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>ztxt 2.1</title>
<link rel="stylesheet" href="css/icons.css" />
<link rel="stylesheet" href="css/modal.css" />
<link rel="stylesheet" href="css/colorpicker.css" />
<script src="codemirror/js/codemirror.js" ></script>
<script src="codemirror/js/mirrorframe.js" ></script>
<script src="custom-zen.js"></script>
<script src="js/zen_codemirror.js"></script>
<script src="js/beautify.js" ></script>
<script src="js/jquery.min.js"></script>
<script src="js/colorpicker.js"></script>
<script src="js/z.js"></script>
<script src="js/dragcols.js"></script>
<script src="js/filelist.js"></script>
<script src="js/modals.js"></script>
<script src="js/codewin.js"></script>
<script src="js/main.js"></script>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/theme.css">
</head>
<body>
<div id="files">
<div class="content">
<a id="refresh" href="#">Refresh List</a>
<select id="topFolder">loading...</select>
<div id="fileList" class="noSelect">
</div>
</div>
</div>
<div id="codeCol">
<div id="codeUI" class="noSelect">
<div class="content" id="uiContent">
<div class="left" id="left-controls" style="width:438px">
<a id="newBtn" href="#">New</a>
<a id="autoFormat" href="#">Auto Format</a>
<a id="findReplaceBtn" href="#">Find and Replace</a>
<select id="fontSize">
<option>10px</option>
<option>12px</option>
<option selected>13px</option>
<option>14px</option>
<option>18px</option>
<option>20px</option>
<option>24px</option>
<option>28px</option>
</select>
<div id="color" style="display:inline"><div style="background-color: #000000"></div></div>
<a id="customColors" href="#">◉</a>
</div>
<div class="right">
<a href="#" id="test">Test</a>
<a href="#" id="testInTab">Test in Tab</a>
<input id="autoTest" type="checkbox" checked/> Auto Test
</div>
</div>
<div id="fileName">
--
</div>
</div>
<div id="codeBorder">
<textarea id="code"></textarea>
</div>
</div>
<div id="preview"><iframe id="previewFrame" src="splash.html" ></iframe></div>
<div id="docMenu" class="noSelect">
<ul>
<li>New Document</li>
<li>Rename</li>
<!--<li>Duplicate</li>-->
<li>Delete</li>
</ul>
</div>
<div id="modal">
<div id="modalTitle">New File or Folder</div>
<div id="modalContent">
<div id="find" class="modalUI">
<div class="left findReplace">
<form id="findIt">
Find: <br/><textarea name="search" id="search" ></textarea><br/><br/>
Replace: <br/><textarea name="replace" id="replace"></textarea><br/>
</form>
</div>
<div class="right" id="findReplaceBtns">
<br/>
<button id="findBtn" >Find</button><br/><br/>
<button id="replaceBtn">Replace All</button><br/><br/>
<button id="okBtn">ok</button>
</div>
</div>
<div id="rename" class="modalUI">
<b>Rename:</b>
<span>...</span><br/><br/>
<form id="renameIt">
New Name: <input type = "text" name="renameName" id="renameName" />
</form>
<div id="renameBtns">
<button id="renameBtn" class="defaultBtn">Rename</button>
<button class="cancel">Cancel</button>
</div>
</div>
<div id="newDialogue" class="modalUI">
<b>Creating Files and Folders</b><br/><br/>
Right + click or control + click a file or folder and select "New Document" from the dropdown.
<button id="ok" class="defaultBtn">ok</button>
</div>
<div id="newDocument" class="modalUI">
Path : <span>path</span>
<div class="smallbr"><br/><br/></div>
<form id="create">
<div class="left">
File/Folder Name <br/>
<input type="text" name="filename" id="filename"/>
</div>
</form>
<div class="saveCancel">
<button class="cancel">Cancel</button>
<button id="save" class="defaultBtn">Save</button>
</div>
</div>
</div>
</div>
</body>
</html>