-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
75 lines (68 loc) · 1.78 KB
/
index.php
File metadata and controls
75 lines (68 loc) · 1.78 KB
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
<html>
<head>
<title>bookmarks</title>
<style type="text/css">
<!--
body {
font-family:myriad,arial,sans-serif;
background-color:#FFFFFF;
}
#tagscol {
width:25%;
//background-color:#DDDDFF;
float:left;
font-size:90%;
}
#tagscol input{
height:11px;
}
#sitescol {
width:75%;
float:right;
//background-color:#DDFFDD;
}
//-->
</style>
<script type="text/javascript" src="desk.js"></script>
</head>
<body>
<h1>TAG-ORGANIZED BOOKMARKS</h1>
<form>
<a onclick="showaddmark()">add new bookmark<a/><br />
<div id="addnewmark" style="display:none;">
name: <input type="text" /><br />
link: <input type="text" /><br />
descr: <input type="text" /><br />
</div>
</form>
<hr width="90%" />
<?php
$xml = simplexml_load_file('locations.xml');
$tags = $xml->tags->tag;
//$locs = $xml->locations->loc;
echo '<div id="sitescol">';
echo '<div id="statusbar">status over here<hr width="50%" align="left" /></div>';
echo '<div id="sites">sites go here</div>';
echo '</div>';
echo '<div id="tagscol">';
echo "<span>TAGS</span><br />\n";
echo '<button onclick="check_all(true)">all</button> ';
echo '<button onclick="check_all(false)">none</button><br />';
echo '<button onclick="check_all(false, \'all=true\')">all bookmarks</button><br />';
echo '<button onclick="check_all(false, \'all=untrue\')">all unmarked</button>';
echo '<div id="tags">';
$alltags = Array();
foreach($tags as $tag){
$alltags[] = $tag.'';
}
natcasesort($alltags);
foreach($alltags as $tag){
echo '<input type="checkbox" onclick="pony()" id="'.$tag.'" /> ' . str_replace('_', ' ', $tag) . "<br />\n";
}
echo '</div>';
echo '<button onclick="check_all(true)">all</button> ';
echo '<button onclick="check_all(false)">none</button>';
echo '<br /><br /></div><br /><br />';
?>
</body>
</html>