1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2"http://www.w3.org/TR/html4/loose.dtd">
3<html>
4<head>
5<title>amule-frame-bottom</title>
6<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
7<link href="style.css" rel="stylesheet" type="text/css"><style type="text/css">
8<!--
9caption {
10	font-family: Helvetica;
11	font-size: 18px;
12	font-weight: bold;
13	color: #003161;
14}
15th {
16	font-family: Helvetica;
17	font-size: 14px;
18	font-height: 22px;
19	font-weight: bold;
20	color: #003161;
21}
22a:link {
23	color: #003161;
24	text-decoration: none;
25}
26a:active {
27	color: #003161;
28	text-decoration: none;
29}
30a:visited {
31	color: #003161;
32	text-decoration: none;
33}
34a:hover {
35	color: #c0c0c0;
36	text-decoration: underline;
37}
38td {
39	font-family: Helvetica;
40	font-size: 12px;
41	font-weight: normal;
42}
43label {
44	font-family: Helvetica;
45	font-size: 14px;
46	font-weight: bold;
47}
48.texte {
49	font-family: Helvetica;
50	font-size: 12px;
51	font-weight: normal;
52}
53label {
54font-family:"trebuchet ms",sans-serif;
55font-size: 12px;
56font-weight:bold
57}
58input {
59border:1px solid #003161;
60background-color:  white;
61font-family:"trebuchet ms",sans-serif;
62font-size: 12px;
63color: #003161;
64}
65select, option {
66background-color:  white;
67font-size: 12px;
68color: #003161;
69}
70textarea {
71border:1px solid #003161;
72background-color: #90B6DB;
73font-family:"trebuchet ms",sans-serif;
74font-size: 12px;
75color: white;
76}
77-->
78</style>
79</head>
80<script language="JavaScript" type="text/JavaScript">
81
82function refreshFrames()
83{
84	location = "amuleweb-main-dload.php"
85	location.reload();
86}
87
88</script>
89
90<body>
91
92<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
93  <tr>
94    <td width="50%" align="center" valign="bottom">
95      <form name="formlink" method="post" action="footer.php">
96        <input name="ed2klink" type="text" id="ed2klink" size="50">
97        <select name="selectcat" id="selectcat">
98        <?php
99		$cats = amule_get_categories();
100		if ( $HTTP_GET_VARS["Submit"] != "" ) {
101			$link = $HTTP_GET_VARS["ed2klink"];
102			$target_cat = $HTTP_GET_VARS["selectcat"];
103			$target_cat_idx = 0;
104
105			foreach($cats as $i => $c) {
106				if ( $target_cat == $c) $target_cat_idx = $i;
107			}
108
109			if ( strlen($link) > 0 ) {
110				$links = split("ed2k://", $link);
111				foreach($links as $linkn) {
112				    amule_do_ed2k_download_cmd("ed2k://" . $linkn, $target_cat_idx);
113				}
114			}
115		}
116
117		foreach($cats as $c) {
118			echo  '<option>", $c, '</option>";
119		}
120	?>
121        </select>
122        <input type="submit" name="Submit" value="Download link" onClick="refreshFrames()">
123      </form></td>
124</table>
125</body>
126</html>
127