-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtemplate-echo.php
More file actions
133 lines (129 loc) · 4.77 KB
/
Copy pathtemplate-echo.php
File metadata and controls
133 lines (129 loc) · 4.77 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
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
<?php
include 'jargonLibrary.php';
echo "<!DOCTYPE html>\n";
echo "\n";
echo "<!--For voting, example \"http://net.tutsplus.com/tutorials/html-css-techniques/building-a-5-star-rating-system-with-jquery-ajax-and-php/\"-->\n";
echo "\n";
echo "\n";
echo "\n";
echo "<html>\n";
echo "\n";
echo "<head>\n";
echo "<meta name=\"viewport\" content=\"width=device-width, minimum-scale=1, maximum-scale=1\">\n";
echo "<title>Mobile Jargon File</title>\n";
echo "\n";
echo "<style>\n";
echo " .imDiv\n";
echo " {\n";
echo " float: left;\n";
echo " padding-right: 1em;\n";
echo " padding-bottom: 1em;\n";
echo " }\n";
echo "\n";
echo " .black\n";
echo " {\n";
echo " color:black\n";
echo " }\n";
echo "</style>\n";
echo "\n";
echo "<!--3 Files to include: 1 css and 2 js files-->\n";
echo "<link rel=\"stylesheet\" href=\"http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css\"></link>\n";
echo "<script src=\"http://code.jquery.com/jquery-1.6.4.min.js\"></script>\n";
echo "<script src=\"http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js\"></script>\n";
echo "\n";
echo "</head>\n";
echo "\n";
echo "<body width = \"100%\" class = \"bodyclass\">\n";
echo "\n";
echo "<section id = \"MainPage\" data-role = \"page\">\n";
echo " <header data-role = \"header\">\n";
echo " <h1>THE JARGON FILE</h1> \n";
echo " </header>\n";
echo "\n";
echo " <div style=\"margin:20px auto; text-align: left;\">\n";
echo " <h2>The Hacker Dictionary</h2>\n";
echo " </div>\n";
echo "\n";
echo " <div data-role = \"listview\">\n";
echo " <div class =\"black\">\n";
echo " <ul data-role = \"listview\">\n";
echo " <li><a href = \"#NewSearch\" data-transition=\"fade\">NEW SEARCH</a></li>\n";
echo " <li></br></li>\n";
echo " <li><a href = \"#TopRated\" data-transition=\"fade\">TOP RATED</a></li>\n";
echo " <li></br></li>\n";
echo " <li><a href = \"random.php\" data-transition=\"fade\">RANDOM</a></li>\n";
echo " </ul>\n";
echo " </div>\n";
echo " \n";
echo " </div> \n";
echo "\n";
echo " <footer data-role = \"footer\" data-position=\"fixed\">\n";
echo " <h1>Main Page</h1>\n";
echo " </footer>\n";
echo "</section>\n";
echo "\n";
echo "<section id = \"NewSearch\" data-role = \"page\">\n";
echo " <header data-role = \"header\">\n";
echo " \n";
echo " <h1>The Hacker Dictionary</h1>\n";
echo " </header>\n";
echo " <div class = \"ui-btn-active\" data-role = \"navbar\">\n";
echo "\n";
echo " <ul data-role = \"navbar\">\n";
echo " <li><a href = \"#NewSearch\" data-transition=\"fade\">NEW SEARCH</a></li>\n";
echo " <li><a href = \"#TopRated\" data-transition=\"fade\">TOP RATED</a></li>\n";
echo " <li><a href = \"random.php\" data-transition=\"fade\">RANDOM</a></li>\n";
echo " </ul>\n";
echo "\n";
echo " \n";
echo " </div> \n";
echo "\n";
echo " <h1>SEARCH</h1> \n";
echo " \n";
echo "<p><i>Search for a term:</i></p>\n";
echo "<form method=\"post\" action=\"search.php\">\n";
echo "<input type=\"text\" name=\"searchtext\" value=\"\" >\n";
echo "<input type=\"submit\" name=\"Submit\" value=\"Go\">\n";
echo "</form>";
echo " <footer data-role = \"footer\" data-position=\"fixed\">\n";
echo " <div class = \"ui-btn-active\" data-role = \"navbar\">\n";
echo " <ul data-role = \"navbar\">\n";
echo " <li><a href=\"#MainPage\" data-role=\"navbar\" data-transition=\"fade\">Back to Main Page</a></li>\n";
echo " </ul>\n";
echo " </div>\n";
echo " </footer>\n";
echo "</section>\n";
echo "\n";
echo "<section id = \"TopRated\" data-role = \"page\">\n";
echo " \n";
echo " <header data-role = \"header\">\n";
echo " <h1>Top Rated</h1>\n";
echo " </header>\n";
echo " \n";
echo " <div class = \"ui-btn-active\" data-role = \"navbar\">\n";
echo " <ul data-role = \"navbar\">\n";
echo " <li><a href = \"#NewSearch\" data-transition=\"fade\">NEW SEARCH</a></li>\n";
echo " <li><a href = \"#TopRated\" data-transition=\"fade\">TOP RATED</a></li>\n";
echo " <li><a href = \"random.php\" data-transition=\"fade\">RANDOM</a></li>\n";
echo " </ul>\n";
echo " </div> \n";
$a_top = getTopRate();
for($i = 0; $i < 3; $i++){
$a_jarWordData = getJargon($a_top['name'][$i]);
echo " <h2>" . ($i+1) . " : " . $a_jarWordData['name'] . "</h2>\n";
foreach($a_jarWordData['def'] as $item){
echo " <blockquote>" . $item . "</blockquote></br>\n";
}
echo " <hr>\n";
}
echo " <footer data-role = \"footer\" data-position=\"fixed\">\n";
echo " <div class = \"ui-btn-active\" data-role = \"navbar\">\n";
echo " <ul data-role = \"navbar\">\n";
echo " <li><a href=\"#MainPage\" data-role=\"navbar\" data-transition=\"fade\">Back to Main Page</a></li>\n";
echo " </ul>\n";
echo " </div>\n";
echo " </footer>\n";
echo "</section>\n";
echo "</body>\n";
echo "</html>\n";
?>