$puppetgetlist_parameter = "user,{$cloud_user},{$cloud_password}"; $puppet_list = $client->PuppetGetList($puppetgetlist_parameter); echo 'Puppet</td><td><select name="cr_puppet" size="1">'; echo "<option value=\"\">none</option>"; foreach ($puppet_list as $puppet) { echo "<option value=\"{$puppet}\">{$puppet}</option>"; } echo '</select></td></tr><tr><td>'; } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "<br>"; } // ######################### Cloud products (cloudselector) #################### // select how many systems to deploy try { $quantity_product_list_parameter = "user,{$cloud_user},{$cloud_password},quantity"; $quantity_product_list = $client->ProductGetList($quantity_product_list_parameter); echo 'Quantity</td><td><select name="cr_resource_quantity" size="1">'; foreach ($quantity_product_list as $product_id) { $quantity_product_details_parameter = "user,{$cloud_user},{$cloud_password},{$product_id}"; $quantity_product_details = $client->ProductGetDetails($quantity_product_details_parameter); $product_quantity_parameter = $quantity_product_details['quantity']; if (strlen($product_quantity_parameter)) { echo "<option value=\"{$product_quantity_parameter}\">{$product_quantity_parameter}</option>"; } } echo '</select></td></tr><tr><td>'; } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "<br>"; } // select how much memory try {