This repository has been archived by the owner on Oct 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform-upravit-inc.php
71 lines (70 loc) · 4.54 KB
/
form-upravit-inc.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
<script>
function fill_version() {
const urlid = document.getElementById('urlid').value;
const version = document.getElementById('verzia').value;
if (urlid == 'seamonkey') {
document.getElementById('changelog').value = 'https://www.seamonkey-project.org/releases/' + urlid + version + '/';
document.getElementById('download_win').value = 'https://archive.mozilla.org/pub/' + urlid + '/releases/' + version + '/win64/sk/' + urlid + '-' + version + '.sk.win64.installer.exe';
document.getElementById('download_lin').value = 'https://archive.mozilla.org/pub/' + urlid + '/releases/' + version + '/linux-x86_64/sk/' + urlid + '-' + version + '.sk.linux-x86_64.tar.bz2';
document.getElementById('download_mac').value = 'https://archive.mozilla.org/pub/' + urlid + '/releases/' + version + '/mac/sk/' + urlid + '-' + version + '.sk.mac.dmg';
} else {
document.getElementById('changelog').value = 'https://www.mozilla.com/sk/' + urlid + '/' + version + '/releasenotes/';
document.getElementById('download_win').value = 'https://download.mozilla.org/?product=' + urlid + '-' + version + '&os=win64&lang=sk';
document.getElementById('download_lin').value = 'https://download.mozilla.org/?product=' + urlid + '-' + version + '&os=linux64&lang=sk';
document.getElementById('download_mac').value = 'https://download.mozilla.org/?product=' + urlid + '-' + version + '&os=osx&lang=sk';
}
}
</script>
<table cellpadding="2" cellspacing="2" border="0" style="text-align: left; width: 95%;">
<tbody>
<tr>
<td style="width:15%"><label for="nazov">Názov</label></td>
<td><input type="text" id="nazov" name="nazov" size="50" value="<?php echo $nazov; ?>" /> </td>
</tr>
<tr>
<td><label for="urlid">Úderník</label></td>
<td><input type="text" id="urlid" name="urlid" size="50" value="<?php echo $urlid; ?>" /> (iba písmená, čísla, mínus)</td>
</tr>
<tr>
<td><label for="datum">Dátum</label></td>
<td><input id="datum" name="datum" type="text" value="<?php echo $datum; ?>" size="10"/> (formát RRRR-MM-DD)</td>
</tr>
<tr>
<td><label for="verzia">Verzia</label></td>
<td><input id="verzia" name="verzia" type="text" size="20" value="<?php echo $verzia; ?>" /></td>
</tr>
<tr>
<td colspan="2"><h3>Download</h3></td>
</tr>
<tr>
<td></td><td><input type="button" class="button" onclick="fill_version()" value="Vyplň" /> (musí byť vyplnené pole Verzia !!)
</tr>
<tr>
<td><label for="changelog">Changelog</label></td>
<td><input id="changelog" name="changelog" type="text" size="82" value="<?php echo $changelog; ?>" /> <img onclick="document.getElementById('changelog').value=''" src="/wp-content/plugins/mozsk-cms/zmaz.png" alt="zmazat" /></td>
</tr>
<tr>
<td><label for="download_win">Windows</label></td>
<td><input name="download_win" type="text" id="download_win" size="82" value="<?php echo $download_win; ?>" /> <img onclick="document.getElementById('download_win').value=''" src="/wp-content/plugins/mozsk-cms/zmaz.png" alt="zmazat" /> <input id="velkwin" name="velkwin" type="text" size="4" value="<?php echo $velkwin; ?>" /> MB</td>
</tr>
<tr>
<td><label for="download_lin">Linux</label></td>
<td><input name="download_lin" type="text" id="download_lin" size="82" value="<?php echo $download_lin; ?>" /> <img onclick="document.getElementById('download_lin').value=''" src="/wp-content/plugins/mozsk-cms/zmaz.png" alt="zmazat" /> <input id="velklin" name="velklin" type="text" size="4" value="<?php echo $velklin; ?>" /> MB</td>
</tr>
<tr>
<td><label for="download_mac">Mac OS</label></td>
<td><input name="download_mac" type="text" id="download_mac" size="82" value="<?php echo $download_mac; ?>" /> <img onclick="document.getElementById('download_mac').value=''" src="/wp-content/plugins/mozsk-cms/zmaz.png" alt="zmazat" /> <input id="velkmac" name="velkmac" type="text" size="4" value="<?php echo $velkmac; ?>" /> MB</td>
</tr>
<tr>
<td><label for="download_port">Portable</label></td>
<td><input name="download_port" type="text" id="download_port" size="82" value="<?php echo $download_port; ?>" /> <img onclick="document.getElementById('download_port').value=''" src="/wp-content/plugins/mozsk-cms/zmaz.png" alt="zmazat" /> <input id="velkport" name="velkport" type="text" size="4" value="<?php echo $velkport; ?>" /> MB</td>
</tr>
<tr>
<td colspan="2"><h3>Iné</h3></td>
</tr>
<tr>
<td><label for="poznamka">Poznámka</label></td>
<td><textarea id="poznamka" name="poznamka" cols="80" rows="4"><?php echo $poznamka; ?></textarea></td>
</tr>
</tbody>
</table>