-
Notifications
You must be signed in to change notification settings - Fork 0
/
index_default_content-bak.php
86 lines (70 loc) · 2.78 KB
/
index_default_content-bak.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
<center>
<br>
<h2>Welcome to Calc DB.</h2>
<? include("1production.php"); ?>
<ul>
<li class="block_float">Select Course:
</li>
<li class="block_float">
<span id="list_of_current_course_options_top">
<span id="current_selected_course">
<a class="boxed_link" href="javascript:close_everything_but('list_of_current_course_options');visibility_toggle('list_of_current_course_options')">
<?
$person_prefs=mysql_fetch_array(mysql_query("SELECT * FROM user_data WHERE username='$username'"));
if(!$person_prefs['current_course']) {
echo "none.";
} else {
echo $person_prefs['current_course'];
}
?>
</a>
</span>
</span>
<div class="courses_pop_down" id="list_of_current_course_options" style="display:none;">
<ul>
<li class="block"><a class="boxed_link" href="javascript:change_current_course('Math 1210')">Math 1210</a></li>
<li class="block"><a class="boxed_link" href="javascript:change_current_course('Math 1220')">Math 1220</a></li>
<li class="block"><a class="boxed_link" href="javascript:change_current_course('Math 1310')">Math 1310</a></li>
<li class="block"><a class="boxed_link" href="javascript:change_current_course('Math 1320')">Math 1320</a></li>
<li class="block"><a class="boxed_link" href="javascript:change_current_course('Custom');list_tags();">Custom</a></li>
<li class="block"><a class="boxed_link" href="javascript:change_current_course('')">none.</a></li>
</ul>
</div>
</li>
</ul>
<?
if(!function_exists(tag_list)) {
include("connect.php");
include("functions.php");
}
$username=$_COOKIE['username'];
if($username=="tre8a" || $username=="svd5d") $experimental=true;
// if(!$experimental) $a_types = type_list(); This was when we were displaying the types. BLEH!
$a_tags = fast_tags();
// Get rid of unwanted tags.
$user_data=mysql_fetch_array(mysql_query("SELECT * FROM user_data WHERE username='$username'"));
$unwanted_tags=explode("%",$user_data['bad_tags']);
foreach($unwanted_tags as $tag) {
$tag=trim(str_replace("not:","",$tag));
unset($a_tags[$tag]);
}
?>
<p>
</center>
<table width=100% cellpadding="20px">
<tr>
<td width="50%">
<!--<center><h3>Screencast to go here</h3></center>-->
<center><iframe width="560" height="349" src="http://www.youtube.com/embed/eWqLpzkAB9I?wmode=Opaque" frameborder="0" allowfullscreen></iframe></center>
</td>
<td valign="top">
<center>
<h3>Popular Tags</h3>
<? print_tag_cloud($a_tags,"tags"); ?></center>
</td>
</tr>
</table>
<a href="javascript:close_everything_but();help_out();" class="help_out">
<div role="button" class="help_out">Help out</div>
</a>
<center><p><font size=+1 color=red>Firefox:</font> Some versions of Firefox seem to render text in a very ugly way. Try using <a href="http://www.google.com/chrome">Google Chrome</a> instead.</center>