-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReports_Control.htm
executable file
·98 lines (76 loc) · 3.54 KB
/
Reports_Control.htm
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
<html>
<head>
<title>Reports Session Controller</title>
<script type="text/javascript">
var Display=window.open('Main_Display.htm','Display','titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,height=600,width=800,top=0,left=1600');
var Preview=window.open('Main_Preview.htm','Preview','titlebar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,height=600,width=800,top=0,left=100');
</script>
<script src="jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="Main_CountDown_res.js"></script>
</head>
<body bgcolor="#206020">
<div id="deckContainer" style="overflow:display; position:absolute; display:block; top:20px; left: 20px; float:left; margin-right:30px;">
<style>
.thumb {
height: 75px;
border: 1px solid #000;
margin: 10px 5px 0 0;
}
</style>
<input type="file" id="files" name="files[]" multiple /><br/>
<output id="list"></output>
<script>
function handleFileSelect(evt) {
var files = evt.target.files; // FileList object
// Loop through the FileList and render image files as thumbnails.
for (var i = 0, f; f = files[i]; i++) {
var reader = new FileReader();
// Closure to capture the file information.
reader.onload = (function(theFile) {
return function(e) {
// Render thumbnail.
var spanner = document.createElement('span');
var theDeck=document.createElement('div');
theDeck.innerHTML = [e.target.result,' '].join();
var deckContent= [e.target.result,' '].join();
spanner.innerHTML = escape(theFile.name);
document.getElementById('list').innerHTML="";
document.getElementById('list').insertBefore(spanner, null);
document.getElementById('Deck').innerHTML=deckContent;
$('#Deck>section').click(function(){$('#resContent').val(this.innerHTML)});
};
})(f);
// Read in the image file as a data URL.
reader.readAsText(f);
$('#Deck').css('width','300px' );
//click('function(){alert("clicked2")}');{$("#resContent").html(this.innerHTML)}');
}
}
document.getElementById('files').addEventListener('change', handleFileSelect, false);
</script>
<div id="Deck" style="width:200px; height:500px; background-color:#282820; overflow:auto; background-color:#282820; margin-top:10px;">
</div>
</div>
<style>
div#Deck section h1,h3,ul,li,p,h4 {display:none}
div#Deck section {display:block; background-color:#dae4ff; padding:5px 10px; margin: 5px; border-radius:3px;}
div#Deck section h2 {color:black; font-size: 14px;}
div#Deck {display:block}
</style>
<div style="float:right;">
<table><tbody>
<tr><td colspan="2" style="text-align: center;">
<form name="res_Cont">
<input style="font-size:24px; padding:3px 9px; background-color:yellow" type="button" onclick="prev_text_disp(document.res_Cont.res_Content.value)" value="Preview Content" name="prev_Content_button" >        
<input style="font-size:30px; padding:5px 10px; background-color:red" type="button" onclick="res_text_disp(document.res_Cont.res_Content.value)" value="Post Content" name="res_Content_button" ><br/>
<textarea id="resContent" name="res_Content" style="border: inset: 3px inset #dddddd; font-family: courier; font-size: 14pt; text-align: left; vertical-align: top; width: 580px; padding: 10px; height: 270px">RESOLVED that </textarea>
</form>
</td>
</tr>
</tbody>
</table>
<form name="Content_Inserter">
</form>
</div>
</body>
</html>