| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | ini_set('error_reporting', E_ALL | E_STRICT);
|
|---|
| 4 | ini_set('display_errors', 'Off');
|
|---|
| 5 | ini_set('log_errors', 'On');
|
|---|
| 6 | ini_set('error_log', 'errors.log');
|
|---|
| 7 | ?>
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
|---|
| 12 | <html xmlns="http://www.w3.org/1999/xhtml">
|
|---|
| 13 | <head>
|
|---|
| 14 | <meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|---|
| 15 | <title>FACT project</title>
|
|---|
| 16 | <meta name="keywords" content="" />
|
|---|
| 17 | <meta name="description" content="" />
|
|---|
| 18 | <link href="css/styles.css" rel="stylesheet" type="text/css" media="screen" />
|
|---|
| 19 | </head>
|
|---|
| 20 | <body style="background-color: #000;">
|
|---|
| 21 | <div id="bg2"></div>
|
|---|
| 22 | <div id="wrapper1">
|
|---|
| 23 | <div id="header2">
|
|---|
| 24 | <ul>
|
|---|
| 25 | <li><a href="http://www.fact-project.org">FACT <li2>OBSERVATION SCHEDULING</li2></a></li>
|
|---|
| 26 | </ul>
|
|---|
| 27 | <div class="clear"></div>
|
|---|
| 28 | </div>
|
|---|
| 29 | <div id="content_bg_top"></div>
|
|---|
| 30 | <div id="content_box">
|
|---|
| 31 |
|
|---|
| 32 | <br />
|
|---|
| 33 | <div id="column_box">
|
|---|
| 34 | <div id="column1">
|
|---|
| 35 |
|
|---|
| 36 | <div id="calendar" align="center">
|
|---|
| 37 |
|
|---|
| 38 | <?php require_once 'module/calendar.php'; ?>
|
|---|
| 39 | </div>
|
|---|
| 40 | <br/>
|
|---|
| 41 | <div width="100px">
|
|---|
| 42 | <label style=" color:#37DFB1; font-size:14px;"> Search : </label><input type="search" id="textbox" size="26" style="font-weight:normal" />
|
|---|
| 43 |
|
|---|
| 44 | <script type="text/javascript">
|
|---|
| 45 | jQuery.fn.filterByText = function(textbox, selectSingleMatch) {
|
|---|
| 46 | return this.each(function() {
|
|---|
| 47 | var select = this;
|
|---|
| 48 | var options = [];
|
|---|
| 49 |
|
|---|
| 50 | $(select).find('option').each(function() {
|
|---|
| 51 | options.push({value: $(this).val(), text: $(this).text()});
|
|---|
| 52 | });
|
|---|
| 53 | $(select).data('options', options);
|
|---|
| 54 | $(textbox).bind('change keyup', function() {
|
|---|
| 55 | var options = $(select).empty().scrollTop(0).data('options');
|
|---|
| 56 | var search = $.trim($(this).val());
|
|---|
| 57 | var regex = new RegExp(search,'gi');
|
|---|
| 58 |
|
|---|
| 59 | $.each(options, function(i) {
|
|---|
| 60 | var option = options[i];
|
|---|
| 61 | if(option.text.match(regex) !== null) {
|
|---|
| 62 | $(select).append(
|
|---|
| 63 | $('<option>').text(option.text).val(option.value)
|
|---|
| 64 | );
|
|---|
| 65 | }
|
|---|
| 66 |
|
|---|
| 67 |
|
|---|
| 68 | });
|
|---|
| 69 | if (selectSingleMatch === true &&
|
|---|
| 70 | $(select).children().length === 1) {
|
|---|
| 71 | $(select).children().get(0).selected = true;
|
|---|
| 72 | }
|
|---|
| 73 | });
|
|---|
| 74 | });
|
|---|
| 75 | };
|
|---|
| 76 |
|
|---|
| 77 | $(function() {
|
|---|
| 78 |
|
|---|
| 79 | $('#source').filterByText($('#textbox'), true);
|
|---|
| 80 |
|
|---|
| 81 |
|
|---|
| 82 | });
|
|---|
| 83 | </script>
|
|---|
| 84 | <script>
|
|---|
| 85 | $(document).ready(function() {
|
|---|
| 86 | $("#source").blur(function() {
|
|---|
| 87 | if ($(this).val() != ''){
|
|---|
| 88 | $("#textbox").attr("disabled", "disabled");
|
|---|
| 89 | }else{
|
|---|
| 90 | $("#textbox").removeAttr("disabled");
|
|---|
| 91 | }
|
|---|
| 92 | });
|
|---|
| 93 |
|
|---|
| 94 | $("#remove").click(function(){
|
|---|
| 95 |
|
|---|
| 96 | $("#textbox").removeAttr("disabled");
|
|---|
| 97 |
|
|---|
| 98 |
|
|---|
| 99 | });
|
|---|
| 100 |
|
|---|
| 101 |
|
|---|
| 102 | });
|
|---|
| 103 | </script>
|
|---|
| 104 |
|
|---|
| 105 |
|
|---|
| 106 | <br />
|
|---|
| 107 | </div>
|
|---|
| 108 |
|
|---|
| 109 |
|
|---|
| 110 | <table width="50%">
|
|---|
| 111 | <tr>
|
|---|
| 112 | <td style=" color:#37DFB1; font-size:14px;" align="center">
|
|---|
| 113 | Source List
|
|---|
| 114 | <br/>
|
|---|
| 115 | <select name="source" id="source" multiple="multiple" style="width:100%; min-width:110px; heigth:150%;" size="10">
|
|---|
| 116 | </select>
|
|---|
| 117 |
|
|---|
| 118 | </td>
|
|---|
| 119 | <td>
|
|---|
| 120 | <br/>
|
|---|
| 121 | <input type="button" id="add" value=">>">
|
|---|
| 122 | <br/>
|
|---|
| 123 | <input type="button" id="remove" value="<<">
|
|---|
| 124 | </td>
|
|---|
| 125 | <td style=" color:#37DFB1; font-size:14px;" align="center">
|
|---|
| 126 | display<br/>
|
|---|
| 127 | <select id="sourcedisplay" name="sourcedisplay" multiple="multiple" style="width:100%; min-width:110px; heigth:150%;" size="10"></select>
|
|---|
| 128 | </td>
|
|---|
| 129 | </tr>
|
|---|
| 130 | </table>
|
|---|
| 131 | </div>
|
|---|
| 132 | <div id="column3">
|
|---|
| 133 | <div id="Graph" style="height: 300px"></div>
|
|---|
| 134 | <button id="update">Update chart</button>
|
|---|
| 135 |
|
|---|
| 136 | </div>
|
|---|
| 137 | <div class="clear">
|
|---|
| 138 | </div>
|
|---|
| 139 | </div>
|
|---|
| 140 | <div style="width:100%;" align="right">
|
|---|
| 141 | <input type="button" id="save" value="SAVE" class="button" title="Click to save"> <input type="button" id="LoadPrev" value="Load Previous Night" class="button" title="Click to load previous night">
|
|---|
| 142 | </div>
|
|---|
| 143 | <div style="border:2px solid white; width:100%;">
|
|---|
| 144 | <table width="100%" id="TableHolder" >
|
|---|
| 145 | <tr>
|
|---|
| 146 | <td style="border:1px solid white; color:#37DFB1; font-size:14px;" >Time</td>
|
|---|
| 147 | <td style="border:1px solid white; color:#37DFB1; font-size:14px;" >Source list</td>
|
|---|
| 148 | <td style="border:1px solid white; color:#37DFB1; font-size:14px;" >Measurement</td>
|
|---|
| 149 | <td style="border:1px solid white; color:#37DFB1; font-size:14px;" >Value</td>
|
|---|
| 150 | <td style="border:1px solid white; color:#37DFB1; font-size:14px;" >Transaction</td>
|
|---|
| 151 | </tr>
|
|---|
| 152 | <tr>
|
|---|
| 153 | <td style="border:0px solid white; color:#37DFB1; font-size:14px;" align="center" >
|
|---|
| 154 | <input type="time" value="19:00" >
|
|---|
| 155 | </td>
|
|---|
| 156 |
|
|---|
| 157 | <td style="border:0px solid white; color:#37DFB1; font-size:14px;" align="center" colspan="4">
|
|---|
| 158 | <strong>Start Time</strong>
|
|---|
| 159 | </td>
|
|---|
| 160 | </tr>
|
|---|
| 161 |
|
|---|
| 162 | </table>
|
|---|
| 163 | <table width="100%" id="TableH">
|
|---|
| 164 | </table>
|
|---|
| 165 | <table width="100%" id="TableH1">
|
|---|
| 166 | </table>
|
|---|
| 167 |
|
|---|
| 168 | <table width="100%">
|
|---|
| 169 | <tr>
|
|---|
| 170 | <td> </td>
|
|---|
| 171 | <td> </td>
|
|---|
| 172 | <td> </td>
|
|---|
| 173 | <td style="border:0px solid white; color:#37DFB1; font-size:14px;" align="center"><input type="time" value="07:00"></td>
|
|---|
| 174 | <td style="border:0px solid white; color:#37DFB1; font-size:14px;" width="100%" align="center">
|
|---|
| 175 | <strong>End Time</strong>
|
|---|
| 176 | </td>
|
|---|
| 177 |
|
|---|
| 178 | </tr>
|
|---|
| 179 | </table>
|
|---|
| 180 |
|
|---|
| 181 | </div>
|
|---|
| 182 | <div style="border:2px solid white; width:100%;" align="center" id="SchedulingAppend">
|
|---|
| 183 | </div>
|
|---|
| 184 | <div style="border:2px solid white; width:100%;" align="center">
|
|---|
| 185 | </div>
|
|---|
| 186 |
|
|---|
| 187 | <div id="footer_bot">
|
|---|
| 188 | <p>© 2012 FACT Project Design by i-SoftTech <a href='logout.php' >Logout</a></p>
|
|---|
| 189 | <p>Western Mindanao State University (<strong><a href="http://www.wmsu.edu.ph">WMSU</a>,Philippines</strong>)</p>
|
|---|
| 190 | </div>
|
|---|
| 191 | </div>
|
|---|
| 192 |
|
|---|
| 193 |
|
|---|
| 194 |
|
|---|
| 195 | </div>
|
|---|
| 196 |
|
|---|
| 197 | </body>
|
|---|
| 198 | </html>
|
|---|