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