-
Notifications
You must be signed in to change notification settings - Fork 6
/
hapmap.addTo.php
executable file
·58 lines (55 loc) · 2.04 KB
/
hapmap.addTo.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
<?php
session_start();
?>
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="css/normalize.css"> <!-- Normalizes cross-browser display differences. --!>
<link rel="stylesheet" href="css/style.css"> <!-- Normalizes cross-browser styling. --!>
<link rel="stylesheet" href="css/defaultTheme.css"> <!-- --!>
<style type="text/css">
.tab {
margin-left: 1cm;
}
</style>
<base target="_parent">
</head>
<BODY class="tab">
<!---------- Main section of User interface ----------!>
<div class="upload-wrapper">
<table><tr>
<!--- Button to add haplotype entry to hapmap ---!>
<button onclick="AddHaplotypeEntry();">Add haplotype entry...</button>
<script type="text/javascript">
// parent.show_hidden("Hidden_AddToHapmap");
// parent.reload_hidden("Hidden_AddToHapmap","hapmap..php");
AddHaplotypeEntry=function() {
var autoSubmitForm = document.createElement('form');
autoSubmitForm.setAttribute('method','post');
autoSubmitForm.setAttribute('action','hapmap.addTo_1.php');
var input1 = document.createElement('input');
input1.setAttribute('type','hidden');
input1.setAttribute('name','user');
input1.setAttribute('value',user);
autoSubmitForm.appendChild(input1);
var input2 = document.createElement('input');
input2.setAttribute('type','hidden');
input2.setAttribute('name','hapmap');
input2.setAttribute('value',hapmap);
autoSubmitForm.appendChild(input2);
var input3 = document.createElement('input');
input3.setAttribute('type','hidden');
input3.setAttribute('name','key');
input3.setAttribute('value',key);
autoSubmitForm.appendChild(input3);
document.body.appendChild(autoSubmitForm);
autoSubmitForm.submit();
}
</script>
</div>
</BODY>
</html>