| 42 |
|
|
| 43 |
$header = empty($account_id) ? $headerAllAccounts : $headerOneAccount ; |
$header = empty($account_id) ? $headerAllAccounts : $headerOneAccount ; |
| 44 |
|
|
| 45 |
$account_map = new AccountMap() ; $account_map->init(); |
$account_map = new CarbonAccountMap() ; $account_map->init(); |
| 46 |
|
|
| 47 |
// the nid's below correspond to carbon accounts |
// the nid's below correspond to carbon accounts |
| 48 |
|
|
| 209 |
function carbon_transfer_form(&$node, &$param) { |
function carbon_transfer_form(&$node, &$param) { |
| 210 |
global $user ; |
global $user ; |
| 211 |
|
|
| 212 |
$account_map = new AccountMap(); $account_map->init(); |
$account_map = new CarbonAccountMap(); $account_map->init(); |
| 213 |
$form = array(); |
$form = array(); |
| 214 |
|
|
| 215 |
$form["title"] = array( |
$form["title"] = array( |
| 327 |
|
|
| 328 |
function carbon_transfer_submit(&$node) |
function carbon_transfer_submit(&$node) |
| 329 |
{ |
{ |
| 330 |
$account_map = new AccountMap(); $account_map->init(); |
$account_map = new CarbonAccountMap(); $account_map->init(); |
| 331 |
|
|
| 332 |
$node->seller = $account_map->getNid($node->seller_index); |
$node->seller = $account_map->getNid($node->seller_index); |
| 333 |
$node->buyer = $account_map->getNid($node->buyer_index); |
$node->buyer = $account_map->getNid($node->buyer_index); |
| 402 |
// content variable that will be returned for display |
// content variable that will be returned for display |
| 403 |
$header = array("valuedate", "description", "seller", "buyer", "carbon", "cost", "published"); |
$header = array("valuedate", "description", "seller", "buyer", "carbon", "cost", "published"); |
| 404 |
|
|
| 405 |
$account_map = new AccountMap() ; $account_map->init(); |
$account_map = new CarbonAccountMap() ; $account_map->init(); |
| 406 |
|
|
| 407 |
$rows = array(); |
$rows = array(); |
| 408 |
|
|