-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
142 lines (122 loc) · 4.84 KB
/
index.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
<?php
require('texts/projects/Opizer/sumarios/index.php');
require('includes/projects/Opizer/sumarios/tmp.php');
?>
<div class="masthead">
<a style="text-decoration:None;" href="index.php"><h1 class="text-muted"><?php echo $title; ?></h1></a>
<div class="bs-example bs-example-tabs">
<ul id="myTab" class="nav nav-tabs" style="margin-bottom:5px;">
<li rel="tooltip" title="<?php echo $tooltip_menu_ferramenta;?>" class="active"><a href="#ferramenta" data-toggle="tab"><?php echo $ferramenta; ?></a></li>
<!-- <li rel="tooltip" title="<?php echo $tooltip_menu_sobre;?>" class=""><a href="#sobre" data-toggle="tab"><?php echo $sobre; ?></a></li> -->
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade" id="sobre">
<br/>
<?php echo $introducao1; ?>
<?php echo $introducao2; ?>
<div class="page-header">
<h3><?php echo $referencias;?></h3>
</div>
</div>
<div class="tab-pane fade active in" id="ferramenta">
<div class="well">
<div class="list-group-item">
<span class="label label-default"><?php echo $input_sentence;?></span>
<div class="list-group-item">
<?php echo $select_item;?>:
<select id="items">
<option value="0">Samsung Galaxy S-III</option>
<option value="1">Samsung Smart TV</option>
<option value="2">LG Smart TV</option>
<option value="3">Iphone 5</option>
<option value="4"> Capitães da Areia</option>
<option value="5"> Crepúsculo</option>
<option value="6"> Ensaio sobre a Cegueira</option>
<option value="7"> Fala sério, Amiga!</option>
<option value="8"> Fala sério, Amor!</option>
<option value="9"> Fala sério, Mãe!</option>
<option value="10"> Fala sério, Pai!</option>
<option value="11"> Fala sério, Professor!</option>
<option value="12"> O Apanhador nos Campos de Centeio</option>
<option value="13"> O Outro lado da meia noite</option>
<option value="14"> O Reverso da Medalha</option>
<option value="15"> Se houver Amanhã</option>
<option value="16"> 1984</option>
</select>
<br><br>
<table>
<col width="160">
<col width="160">
<tr>
<td><?php echo $extractive_method;?></td>
<td><?php echo $abstractive_method;?></td>
</tr>
<tr>
<td><input type="radio" name="summarizer" value="opizere" checked>Opizer-E</td>
<td><input type="radio" name="summarizer" value="opizera">Opizer-A</td>
</tr>
<tr>
<td><input type="radio" name="summarizer" value="huliu">Hu Liu</td>
<td><input type="radio" name="summarizer" value="ganesan">Ganesan</td>
</tr>
<tr>
<td><input type="radio" name="summarizer" value="tadano">Tadano</td>
<td><input type="radio" name="summarizer" value="gerani">Gerani</td>
</tr>
</table>
<br>
<?php echo $num_aspects;?>: <input id="aspects" size=2 maxlength=2 onKeyPress="return numbersonly(this, event)">
</div>
<div class="row">
<div class="text-center">
<br/>
<div id="submit-simple">
<button id="button_normalizar" class="btn btn-default" onclick="Opizer.call_python('button_normalizar');"><?php echo $normalize;?></button>
</div>
</div>
</div>
<span class="label label-success"><?php echo $normalized_sentence;?></span>
<div contenteditable="false" id="output_sentence" class="form-control uneditable-input" rows=3 disabled style="background-color: white; color:black; height:auto; overflow:visible; min-height:70px;"></div>
<div class="text-center">
<br/>
<button type="button" class="btn btn-default btn-mini" onclick="Opizer.clean();"><?php echo $clean;?></button>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
<!--
// copyright 1999 Idocs, Inc. http://www.idocs.com
// Distribute this script freely but keep this notice in place
function numbersonly(myfield, e, dec)
{
var key;
var keychar;
if (window.event)
key = window.event.keyCode;
else if (e)
key = e.which;
else
return true;
keychar = String.fromCharCode(key);
// control keys
if ((key==null) || (key==0) || (key==8) ||
(key==9) || (key==13) || (key==27) )
return true;
// numbers
else if ((("0123456789").indexOf(keychar) > -1))
return true;
// decimal point jump
else if (dec && (keychar == "."))
{
myfield.form.elements[dec].focus();
return false;
}
else
return false;
}
//-->
</script>
<script src="dist/js/projects/Opizer/my_app.js"></script>