public function getMaterials($bpTypeID, $typeID, $pe = 0, $me = 0, $peSkill = 5) { //Get the blueprint details $blueprint = InvBlueprintTypes::Model()->findByPk($bpTypeID); //Get the invType material base requirements $requirements = InvTypeMaterials::Model()->findAll('typeID=:typeID', array(':typeID' => $typeID)); //Loop through each mineral or part foreach ($requirements as $requirement) { //Get the invType details for each material $invType = Invtypes::Model()->findByPk($requirement->materialTypeID); $adjustedRequirements[] = array('typeName' => $invType->typeName, 'typeID' => $requirement->materialTypeID, 'quantity' => round($requirement->quantity * (1 + $blueprint->wasteFactor / (1 + $me) + (0.25 - 0.05 * $peSkill)))); } return $adjustedRequirements; }
?> ) $('#shipselect').change(function() { self.location = './index.php?r=invention/index&id=' + $(this).val(); }); }); </script> <?php //Get a list of T2'able ships and display a dropdown select echo "Select Base Item: <select id='shipselect'>\n"; $ships = $this->getT2ShipParents(); foreach ($ships as $ship) { echo '<option value=' . $ship['typeID'] . '>' . $ship['typeName'] . '</option>\\n'; } echo "</select><br><br>\n"; $blueprint = InvBlueprintTypes::Model()->find('productTypeID=:productTypeID', array(':productTypeID' => $typeID)); $bp = $blueprint->blueprintTypeID; $itemInfo = $this->blueprintDetail($bp); $t1ItemName = $this->itemNameFromBlueprint($bp); // TECH1 WORK // echo "<div class='mainHalfLeft'>"; echo "<div class='currentstats'>"; echo "<img style='height: 64px; width: 64px;' src='http://image.eveonline.com/Type/" . $bp . "_64.png'>"; echo "<img style='height: 64px; width: 64px;' src='http://image.eveonline.com/Type/" . $itemInfo['productTypeID'] . "_64.png'><BR>"; echo "<a href='index.php?r=wallet/item&id=" . $itemInfo['productTypeID'] . "'>" . $t1ItemName['typeName'] . "</a><BR>"; echo "Production Time: " . $this->humanTime($itemInfo['productionTime'] / (1 + 5 * 0.05)) . "<BR>"; echo "ME Time: " . $this->humanTime($itemInfo['researchMaterialTime'] / (1 + 5 * 0.05)) . "<BR>"; echo "PE Time: " . $this->humanTime($itemInfo['researchProductivityTime']) . "<BR>"; echo "Copy Time: " . $this->humanTime($itemInfo['researchCopyTime'] * 2 / $itemInfo['maxProductionLimit'] / (1 + 5 * 0.05)) . "<BR>"; echo "Max Runs: " . $itemInfo['maxProductionLimit'] . "<BR>";
$bpcMELevel = $this->phdGetCache("BPCMECache"); $charPELevel = $this->phdGetCache("charPECache"); $characterID = $this->phdGetCache("characterIDCache"); $sellPrice = $this->phdGetCache("priceSellCache"); $bpcPrice = $this->phdGetCache("priceBPCCache"); $partsPrice = $this->phdGetCache("priceCapitalPartsCache"); $slotPrice = $this->phdGetCache("priceSlotCache"); if ($characterID == 0) { $groupMembers = $this->getTrackingGroupMembers($group->trackingGroupID); $walletID = $groupMembers[0]->characterID; $characterID = Characters::Model()->findByPk($walletID)->characterID; $this->phdSetCache("characterIDCache", $characterID); } $invType = Invtypes::Model()->findByPk($typeID); //Find the blueprint typeID $bpTypeID = InvBlueprintTypes::Model()->find("productTypeID = :typeID", array(':typeID' => $invType->typeID)); //Load the skill sheet $skillSheet = APICharacterSheet::load($characterID); ?> <script type="text/javascript"> jQuery(function($) { $('.bpcme').phdInlineInput({ 'label' : 'Select', 'getUrl' : 'capitalProduction/getbpcme', 'submitUrl' : 'capitalProduction/submitbpcme' }); $('.pricesell').phdInlineInput({ 'label' : 'Select', 'getUrl' : 'capitalProduction/getpricesell', 'submitUrl' : 'capitalProduction/submitpricesell'