public function actionStoreValue() { $id = $_GET['id']; $asset = CorpAssets::Model()->findByPk($id); $this->storeSingleAssetValue($asset->typeID); $this->renderPartial('storeValue'); }
public function storeData($walletID) { $assets = $this->getEVEData($walletID); $character = Characters::model()->findByPk($walletID); CorpAssets::Model()->deleteAll('characterID=:characterID', array(':characterID' => $character->characterID)); $this->parseAssets($assets->result->rowset->row, $character->characterID, 0); }
'><?php echo $baseAsset->typeName; ?> </td> <td style="text-align: right;"><?php echo number_format($baseAsset->quantity, 0); ?> </td> <td style="text-align: right"><?php echo number_format($baseAsset->values->value * $baseAsset->quantity / 1000000, 2); ?> M</td> </tr> <?php //Check the base assets for containership $contents = CorpAssets::Model()->with('values')->findAll('containerID=:containerID', array(':containerID' => $baseAsset->itemID)); if ($contents) { $idx = 1; foreach ($contents as $content) { ?> <?php $icon = $this->getIcon($content->typeID); $idx++; ?> <tr id="node-<?php echo $assetLocation->locationID; ?> -<?php echo $baseAsset->itemID; ?>