コード例 #1
0
	}
	$strSQL2 = "INSERT INTO SELL_DETAIL (LOC_ID,BARCODE,UNIT,DATE_SELL) ";
			$strSQL2 .="VALUES ";
			$strSQL2 .="('1','".$row["BARCODE"]."', ";
			$strSQL2 .="'".$_POST["unit_set$i"]."', ";
			$strSQL2 .="'".date("Y-m-d")."')";
			
			echo $strSQL2;
			*/
			

?>

<p>
  <?
addall();
include("./include/config.inc.php");
	$connect = OCILogon($dbuser,$dbpass,$db);
	$strSQL = "select L.LOC_NAME,B.BARCODE,I.DESCP,I.PRICE,S.UNIT,S.DATE_SELL,S.TIME_SELL 
from BIN_SELL B Left JOIN SELL_DETAIL S  ON(B.BARCODE=S.BARCODE)  left JOIN ITEM I ON(I.BARCODE=S.BARCODE) left JOIN LOCATION L ON(B.LOC_ID=L.LOC_ID) WHERE   S.LOC_ID = '".$_SESSION['LOC_ID']."' and S.TIME_SELL= '".date("H:i:s")."'";
	
	
	$objParse = oci_parse ($connect, $strSQL);
	oci_execute ($objParse,OCI_DEFAULT);
	?>   
</p>
<table width="690" border="0">
  <tr>
  <? 
  
  ?>
コード例 #2
0
ファイル: peers.php プロジェクト: Kimax89/Web-Node
<?php

$x = 0;
echo addall($getpeerinfo, $getaddednodeinfo);
echo '<table class="sortable" id="content">';
echo '<tr><th id="blank"></th><th>Address:</th><th>Port:</th><th>Ping (ms):</th><th>Version:</th><th>Protocol:</th><th>Last seen:</th><th>Add to node:</th></tr>';
foreach ($getpeerinfo as $peers) {
    $x++;
    echo '<tr><td>' . $x . '</td>';
    $addr = explode(':', $peers['addr']);
    echo '<td><a href="https://blockchain.info/ip-address/' . $addr[0] . '" target="_blank">' . $addr[0] . '</a></td>';
    echo '<td>' . $addr[1] . '</td>';
    echo '<td>' . number_format($peers['pingtime'] * 1000, 0) . '</td>';
    echo '<td>' . str_replace('/', '', $peers['subver']) . '</td>';
    echo '<td>' . $peers['version'] . '</td>';
    echo '<td>' . date('Y-m-d H:i:s O', $peers['lastrecv']) . ' GMT</td>';
    echo addnode($addr[0], $getaddednodeinfo);
}