// $stmt->bind_param('s', 'cisneros'); // // EXECUTE AND GET RESULTS $stmt->execute(); $stmt->bind_result($test); while ($stmt->fetch()) { printf("%s\n", $test); } // echo 'Fine! ' . $test . ' #'; // // CLOSE DATABASE $mysqli->close(); } else { echo 'Error!'; } ?> --> <!-- JavaScript Uploader Iframe --> <div id="iframeWrapper"> <iframe onload="onIFrameLoad();" style="overflow:hidden;" id="myIframe" src="uploader" height="520" width="1024" frameBorder="5" ></iframe> </div> <!-- END OF CONTENT --> <?php } // END LOGIN REQUIREMENT $CGE->Piwik(14); // Printing Piwik codes!! # Displays a standard footer; two parameters: # First a simple headline like: "Support" # then a list of emails like this: "('Scientific problems','foo','*****@*****.**'),('Technical problems','bar','*****@*****.**')" $CGE->standard_foot("Support", "('Technical problems','CGE Support','cgehelp')");
<a href='/tools_new/client/platform/get_all_data_as_tab.php'>Download all data in an Excel spreadsheet?</a><br> <a href='/tools_new/client/platform/get_all_data_as_tab.php?view=resistance'>Download the resistance data in a more detailed Excel spreadsheet format?</a><br> <br> <button onclick='analyse_selected();'>Analyse selected samples</button> <table id='isoview'> <tr><th> </th><th><input type='checkbox' onclick='selectallsamples(this);'></th><th>Name</th><th>Date</th><th>Country</th><th>City</th><th>Origin</th><th>Action</th></tr> </table> <button onclick='analyse_selected();'>Analyse selected samples</button> <br> <!-- GET USER ISOLATE DATA AND POPULATE ABOVE LIST --> <script type='text/javascript'> $(document).ready(function(){ window.isolates = get_isolate_data_all(); window.autoupdate = true; populate_isolate_table(window.isolates); update_isolate_data(window.isolates); window.setInterval(function(){ update_isolate_data(window.isolates); }, 20000); }) </script> <!-- END OF CONTENT --><?php } } $CGE->Piwik(15); // Printing Piwik codes!! # STANDARD FOOTER # First a simple headline like: "Support" # Then a list of emails like this: "('Scientific problems','foo','*****@*****.**'),('Technical problems','bar','*****@*****.**')" $CGE->standard_foot("Support", "('Technical problems','Martin Thomsen','*****@*****.**')");
function respond($status, $DATA, $EXIT = false, $template = false, $human = false) { /* Tools Paths */ //global $CGE; $domain = ''; $toolspath = '/tools_new/client/platform'; if ($template == true) { // Load the CGE Class :: ARGUMENTS=($title, $meta, $banner,$css,$js) $CGE = new CGE('CGE Server', '<base href="' . $domain . '">', '/images/cge_buttons/banner.gif', '', ''); // CGE MENU $CGE->std_header("CGE Server", "({$toolspath}/user_settings.php,'User Home'),(/services/,'Services'),({$toolspath}/isolate_manager.php,'Sample Overview'),({$toolspath}/map.php,'Map')"); // Print the Menu } if ($human == true) { /* PRINTING THE HUMAN RESPONSE */ // REQUIRE THE USER TO LOGIN if (isset($CGE)) { if ($CGE->user_is_logged_in()) { // Write Message echo "<br><table style='margin:auto;'><tr><th>Server Response</th><th>Message</th></tr><tr><td style='text-align:center;'>{$status}</td><td>" . str_replace("\n", "<br>", $DATA['MESSAGE']) . "</td></tr></table>"; } } else { echo "<br><table style='margin:auto;'><tr><th>Server Response</th><th>Message</th></tr><tr><td style='text-align:center;'>{$status}</td><td>" . str_replace("\n", "<br>", $DATA['MESSAGE']) . "</td></tr></table>"; } } else { /* PRINTING THE XML RESPONSE */ $xml = new SimpleXMLElement('<XML/>'); $xml->addChild('STATUS', $status); arr2xml($DATA, $xml); print $xml->asXML(); } if ($template == true) { // TRACK USER TRAFIC $CGE->Piwik(14); # STANDARD FOOTER $CGE->standard_foot("Support", "('Technical problems','CGE Support','cgehelp')"); } if ($EXIT == true) { exit; } }