This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* | |
* Trying to produce the following sql string | |
* | |
* SELECT * | |
* FROM (SELECT ROWNUM() OVER(ORDER BY GAACCT) as rn, GAACCT as id, GADESC as name, GATYPE as type FROM ACCTSMST) | |
* WHERE rn between ? and ? | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Sabel\Scrap\Loader; | |
class Autoloader | |
{ | |
private $_fileExtension = '.php'; | |
private $_namespace; | |
private $_includePath; | |
private $_namespaceSeparator = '\\'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Product | |
{ | |
protected $unitPrice; | |
protected $discount; | |
protected $finalPrice; | |
public function __construct($unitPrice, $discount) | |
{ | |
$this->setUnitPrice($unitPrice); | |
$this->setDiscount($discount); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax({ | |
url:'script.php', | |
dataType:'json', | |
type:'GET', | |
}).done(function(response){ | |
$('#name').val(response.name); | |
$('#address').val(response.address); | |
$('#city').val(response.city); | |
$('#state').val(response.state); | |
//...and so on... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return array( | |
'db' => array( | |
'driver' => 'IbmDb2', | |
'platform' => 'IbmDb2', | |
'platform_options' => array('quote_identifiers' => false), | |
'database' => '', // IBM i serial number or db directory entry name goes here | |
'username' => '', // user id goes here | |
'password' => '', // password goes here | |
'driver_options' => array( | |
'i5_naming' => DB2_I5_NAMING_ON, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'service_manager' => array ( | |
'invokables' => array ( | |
'AuthorizationIbmi' => 'authorization.php', | |
), | |
'factories' => array( | |
'dbadapter' => function($sm) { | |
// DB adapter config | |
}, | |
'tkconn' => function ($sm) { | |
$dbAdapter = $sm->get('dbadapter'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Instantiate toolkit object | |
try{ | |
$ToolkitServiceObj = ToolkitService::getInstance($db, $namingMode); | |
} | |
catch (Exception $e) { | |
echo $e->getMessage(), "\n"; | |
exit(); | |
} | |
$ToolkitServiceObj->setToolkitServiceParams(array('InternalKey'=>"/tmp/$user", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<body> | |
<!-- Can be any kind of input as long as id is "supplierId" --> | |
<input type="hidden" id="supplierId"> | |
<button class="btn btn-default" id="supplier_deleteButton">Delete Supplier</button> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-xs-12"> | |
<form class="form-horizontal" role="form" id="myForm"> | |
<div class="alert alert-danger hidden" id="formError"></div> | |
<div class="form-group" id="fieldContainer"> | |
<label for="field" class="col-sm-2 control-label">My Field</label> | |
<div class="col-sm-3"> | |
<input class="form-control" id="myField" name="myField" type="text" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<form name="real" id="real" method="POST" action="submit.php"> | |
<input type="submit" value="submit real form"> | |
</form> | |
OlderNewer