This repository has been archived by the owner on Apr 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
dialog.php
executable file
·75 lines (75 loc) · 2.67 KB
/
dialog.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
<!--
Copyright (c) Codiad & Andr3as, distributed
as-is and without warranty under the MIT License.
See http://opensource.org/licenses/MIT for more information.
This information must remain intact.
-->
<form>
<?php
if ($_GET['action'] == "ignore") {
?>
<div class="ignore_choose">
<label>Ignore</label>
<select class="ignore_range">
<option value="file" class="filePath">Ignore just this file/directory</option>
<option value="name" class="fileGeneral">Ignore this file/directory in every project</option>
<option value="type" class="fileType">Ignore every file with same extension</option>
</select>
<button onclick="codiad.Ignore.setIgnore(); return false;">Ignore</button>
<button onclick="codiad.modal.unload(); return false;">Close</button>
<script>
codiad.Ignore.isDir();
</script>
</div>
<?php
} else if ($_GET['action'] == "log") {
?>
<div class="ignore_display">
<label><span class="icon-target big-icon"></span>Ignore Settings</label>
<hr>
<table id="ignore_list">
<tr>
<td>Path/Name/Extension</td>
<td>Range</td>
<td></td>
</tr>
</table>
<br>
<button onclick="codiad.Ignore.addRule(); return false;">Add new rule</button>
<button onclick="codiad.Ignore.help(); return false;">Help</button>
<script>
codiad.Ignore.loadDialog();
</script>
</div>
<?php
} else if ($_GET['action'] == "help") {
?>
<div class="ignore_help">
<label>Ignore - Help</label>
<table>
<tr>
<td>Syntax</td>
<td></td>
</tr>
<tr>
<td>Just this file:</td>
<td>Path of the file in the workspace, f.e. Ignore/README.md</td>
</tr>
<tr>
<td>Files with the same name:</td>
<td>Name of the file, f.e. README.md</td>
</tr>
<tr>
<td>Files with the same extension:</td>
<td>Extension of files, f.e. *.php</td>
</tr>
<tr>
<th colspan="2">Same rules for directories.</th>
</tr>
</table>
<button onclick="codiad.Ignore.showDialog(); return false;">Close</button>
</div>
<?php
}
?>
</form>