-
Notifications
You must be signed in to change notification settings - Fork 2
/
re.php
60 lines (48 loc) · 1.37 KB
/
re.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
<?php
session_start();
include 'common.php';
//exit if username not verified
for($i=0;$i<1000;$i++)
{
if(!login_varify())
{
exit();
}
}
//set current sample id
if(!isset($_POST['action']))
{
$sample_id=1;
}
else
{
if($_POST['action']=='next')
{
$sample_id=$_POST['sample_id']+1;
}
else if($_POST['action']=='prev')
{
$sample_id=$_POST['sample_id']-1;
}
else
{
$sample_id=$_POST['sample_id'];
}
}
echo '<form method=post id=get_sample_id_form>';
echo '<button id=view class=submit_button type=submit tabindex="1" value=view name=action >View</button>';
echo '<input id=prev tabindex="2" class=submit_button type=submit value=prev name=action>';
echo '<input type=text name=sample_id id=sample_id value=\''.$sample_id.'\'>';
echo '<input id=next class=submit_button type=submit value=next name=action >';
if(get_sample_status($sample_id)=='released')
{
echo '<button id=release class=submit_button name=action value=unrelease>Un-Release</button>';
}
else
{
echo '<button formtarget=_blank id=release class=submit_button name=action value=edit>Edit</button>';
echo '<button id=release class=submit_button name=action value=autoverify>Autoverify</button>';
echo '<button id=release class=submit_button name=action value=release>Release</button>';
}
echo '</form>';
?>