-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpslicer.php
159 lines (132 loc) · 4.32 KB
/
pslicer.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
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
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="public/images/temp2.png" rel="shortcut icon">
<title>MAT</title>
<link rel="stylesheet" href="public/css/bootstrap.min.css">
<link rel="stylesheet" href="public/css/ladda.min.css">
<script src="public/scripts/jquery-3.1.1.min.js" type="text/javascript"></script>
<script src="public/scripts/bootstrap.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="public/fonts/glyphicons-halflings-regular.eot">
<link rel="stylesheet" href="public/fonts/glyphicons-halflings-regular.woff">
<link rel="stylesheet" href="public/fonts/glyphicons-halflings-regular.woff2">
<link rel="stylesheet" href="public/fonts/glyphicons-halflings-regular.ttf">
<link rel="stylesheet" href="public/fonts/glyphicons-halflings-regular.svg">
<style>
pre {
display: block;
font-size:14px;
font-family: monospace;
white-space: pre;
margin: 1em 0;
}
</style>
</head>
<body>
<div id="navbar">
<nav class="navbar navbar-inverse navbar-static-top" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html"><b>Home</b></a>
</div>
<div class="collapse navbar-collapse" id="navbar-collapse-1">
<ul class="nav navbar-nav">
<li ><a class="navbar-brand" href="input.php" >MAT </a> </li>
<li ><a class="navbar-brand" href="science.html">Motivation</a></li>
<li ><a class="navbar-brand" href="documentation.html">Documentation</a></li>
<li><a class="navbar-brand" href="downloads.html">Downloads</a></li>
<li><a class="navbar-brand" href="publication.html">Publication</a></li>
<li><a class="navbar-brand" href="contact.html">About Us</a></li>
<li><a class="navbar-brand" href="links.html">Links</a></li>
</ul>
</div>
</div>
<!-- /.navbar-collapse -->
</nav>
</div>
<div class="container">
<div class="well well-sm">
<h2>Protein Slicer</h2>
<?php
$myfile = fopen("ffile.fasta", "w+") or die("Unable to open file!");
fwrite($myfile, $_POST["fasta_pb"]);
fclose($myfile);
$session = session_id();
echo $session;
?>
</div>
<hr>
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#home">ArgC</a></li>
<li><a data-toggle="tab" href="#menu1">AspN</a></li>
<li><a data-toggle="tab" href="#menu2">LysC</a></li>
<li><a data-toggle="tab" href="#menu3">LysN</a></li>
<li><a data-toggle="tab" href="#menu4">Trypsin</a></li>
<li><a data-toggle="tab" href="#menu5">Chymotrypsin</a></li>
</ul>
<?php
$f_file = "ffile.fasta";
mkdir('uploads/'.$session,0777);
$dir_path='uploads/'.$session.'/'.$f_file;
if ( $_FILES['f_file']['name'])
{
move_uploaded_file($_FILES['f_file']['tmp_name'], $dir_path);
}
?>
<div class="tab-content">
<div id="home" class="tab-pane fade in active">
<?php
$option = "ArgC";
include ('slicer.php');
?>
</div>
<div id="menu1" class="tab-pane fade">
<?php
$option = "AspN";
include ('slicer.php');
?>
</div>
<div id="menu2" class="tab-pane fade">
<?php
$option = "LysC";
include ('slicer.php');
?>
</div>
<div id="menu3" class="tab-pane fade">
<?php
$option = "LysN";
include ('slicer.php');
?>
</div>
<div id="menu4" class="tab-pane fade">
<?php
$option = "Trypsin";
include ('slicer.php');
?>
</div>
<div id="menu5" class="tab-pane fade">
<?php
$option = "Chymotrypsin";
include ('slicer.php');
?>
</div>
</div>
</div>
<footer style="background-color:black;position:fixed;bottom:0;width:100%;">
<p style="color:gray;text-align:center;font-size:12px;">© Copyright 2015-2016, The MAT Project, Hazra Lab.</p>
</footer>
</body>
</html>
<?php
session_unset();
session_destroy();
?>