</tr> <?php for ($i = 0; $i < count($game_list); $i++) { echo "<tr>"; echo "<td>" . $game_list[$i]->id . "</td>"; echo "<td>" . $game_list[$i]->name . "</td>"; echo "<td><a href='?add_result=" . $game_list[$i]->id . "&baskets=" . $game_list[$i]->baskets . "'>lisa tulemus</a></td>"; echo "<td><a href='?delete=" . $game_list[$i]->id . "'>kustuta mäng</a></td>"; echo "</tr>"; } ?> </table> <?php if (isset($_GET["add_result"])) { // KÜSIDA TULEMUSED MIS ON OLEMAS! $results = getResultData($_GET["add_result"]); ?> <h2>Tulemuse lisamine</h2> <table border=1> <tr> <th>Korv</th> <th>Par</th> <th>Tulemus</th> <th>Edit</th> </tr> <?php
* LICENSE: This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version. * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://opensource.org/licenses/gpl-license.php>;. * * @package OpenEMR * @author Garden State Health Systems <http://www.gshsys.com/> * @link http://www.open-emr.org */ $result = getResultData(); $row = sqlFetchArray($result); do { $e_Result = $ccr->createElement('Result'); $e_Results->appendChild($e_Result); $e_CCRDataObjectID = $ccr->createElement('CCRDataObjectID', getUuid()); //, $row['immunization_id']); $e_Result->appendChild($e_CCRDataObjectID); $e_DateTime = $ccr->createElement('DateTime'); $e_Result->appendChild($e_DateTime); $date = date_create($row['date']); $e_ExactDateTime = $ccr->createElement('ExactDateTime', $date->format('Y-m-d\\TH:i:s\\Z')); $e_DateTime->appendChild($e_ExactDateTime); $e_IDs = $ccr->createElement('IDs'); $e_Result->appendChild($e_IDs); $e_ID = $ccr->createElement('ID');
function t_bphtb_registration_list_ds_AfterExecuteSelect(&$sender) { $t_bphtb_registration_list_ds_AfterExecuteSelect = true; $Component =& $sender; $Container =& CCGetParentContainer($sender); global $t_bphtb_registration_list; //Compatibility //End t_bphtb_registration_list_ds_AfterExecuteSelect //Custom Code @705-2A29BDB7 // ------------------------- // Write your own code here. $ws_client = getNusoap(); $_POST['username'] = '******'; $_POST['password'] = '******'; /*$params = array('search' => '', 'getParams' => json_encode($_GET), 'controller' => json_encode(array('module' => 'base','class' => 'roles.dologin', 'method' => 'login', 'type' => 'json' )), 'postParams' => json_encode($_POST), 'jsonItems' => '', 'start' => $start, 'limit' => $limit); $ws_data = getResultData($ws_client, $params); $params = array('search' => '', 'getParams' => json_encode($_GET), 'controller' => json_encode(array('module' => 'bds','class' => 'bphtb_registration', 'method' => 'read', 'type' => 'json' )), 'postParams' => json_encode($_POST), 'jsonItems' => '', 'start' => 0, 'limit' => 50);*/ $params = array('search' => '', 'getParams' => json_encode($_GET), 'controller' => json_encode(array('module' => 'base', 'class' => 'roles.dologin', 'method' => 'login', 'type' => 'json')), 'postParams' => json_encode($_POST), 'jsonItems' => '', 'start' => $start, 'limit' => $limit); $ws_data = getResultData($ws_client, $params, 'ws_proccess'); $params = array('search' => '', 'getParams' => json_encode($_GET), 'controller' => json_encode(array('module' => 'bds', 'class' => 't_payment_receipt_skpd', 'method' => 'syncPaymentReceipt', 'type' => 'json')), 'postParams' => json_encode(array("payment_date" => "2014-11-13", "p_vat_type_dtl_id" => 45, "payment_vat_amount" => "213123123")), 'jsonItems' => '', 'start' => 0, 'limit' => 50); $ws_data = getResultData($ws_client, $params, 'ws_proccess'); //================================================webservice bppt=============================== /*$params = array('key' => '3273250001002014902014'); //NOP+tahun $items = array(); //$params = array('key' => '2014-09-09'); $items['items_bphtb']= getResultData($ws_client, $params,'search'); $params = array('key' => '2014-09-09'); $items['realisasi'] = getResultData($ws_client, $params,'realisasi');*/ echo '<pre>'; print_r($ws_data); exit; if ($ws_data['success']) { } $t_bphtb_registration_list->DataSource->Record = $ws_data['data']; // ------------------------- //End Custom Code //Close t_bphtb_registration_list_ds_AfterExecuteSelect @2-86BDF331 return $t_bphtb_registration_list_ds_AfterExecuteSelect; }
<?php //laen funktsiooni faili require_once "../functions.php"; require_once "../header.php"; //kontrollin, kas kasutaja ei ole sisseloginud if (!isset($_SESSION["id_from_db"])) { header("Location: login.php"); } //login välja if (isset($_GET["logout"])) { session_destroy(); header("Location: login.php"); } $results_php = getResultData(); ?> <table class="center" border=1 > <tr> <th>Basket</th> <th>Result</th> </tr> <?php for ($i = 0; $i < count($results_php); $i++) { echo "<tr>"; echo "<td>" . $results_php[$i]->basket_nr . "</td>"; echo "<td>" . $results_php[$i]->result . "</td>"; echo "</tr>"; }
<?php require './config.php'; require_once 'convert.php'; $sclogDir = Pfc_Config::storageDir() . "/" . "sclog"; $dataFile = $_GET['dataFile']; $dataFile = str_replace('pfc.out', 'pfc.sclog', $dataFile); $realPaht = $sclogDir . "/" . $dataFile; $rawData = file_get_contents($realPaht); $barData = getResultData($rawData, 600); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <link rel="stylesheet" type="text/css" href="styles/d3drawarea.css"> <script src="js/d3.v3.min.js"></script> </head> <body> <script type="text/javascript" charset="utf-8"> var margin = {top: 20, right: 20, bottom: 30, left: 50}, width = 800 - margin.left - margin.right, height = 8000 - margin.top - margin.bottom; var svg = d3.select("body").append("svg") .attr("class", "chart") .attr("width", width + margin.left + margin.right) .attr("height", height + margin.top + margin.bottom) .append("g") .attr("transform", "translate(" + margin.left + "," + margin.top + ")");
<?php //table.php require_once "function.php"; //kas kasutaja tahab kustutada //kas aadressireal on ?delete=??? if (isset($_GET["delete"])) { //saadan kaasa id, mida kustutada deleteResult($_GET["delete"]); } $result_list = getResultData(); //var_dump($array); ?> <table border=1 > <tr> <th>id</th> <th>kasutaja id</th> <th>color</th> <th>Nr. märk</th> <th>Kuupäev</th> <th>Auto mark</th> </tr> <?php for ($i = 0; $i < count($result_list); $i++) { //kui on see rida, mida kasutaja tahab muuta, siis kuvan input v'ljad if (isset($_GET["edit"]) && $result_list[$i]->id == $_GET["edit"]) { echo "<tr>"; echo "<form>"; echo "<td><input name='date' value='" . $result_list[$i]->date . "'></td>"; echo "<td><input name='car' value='" . $result_list[$i]->car . "'></td>";