/** * Display contractnature's list depending on resourcesituation * * @static * @param $options */ static function showContractnature($options) { $resourceSituationId = $options['plugin_resources_resourcesituations_id']; $entity = $options['entity']; $rand = $options['rand']; if ($resourceSituationId > 0) { $resourceSituation = new PluginResourcesResourceSituation(); $resourceSituation->getFromDB($resourceSituationId); if ($isContractLinked = $resourceSituation->fields["is_contract_linked"]) { if ($isContractLinked == 1) { Dropdown::show('PluginResourcesContractnature', array('entity' => $entity)); } } else { echo "<select name='plugin_resources_contractnatures_id'\n id='dropdown_plugin_resources_contractnatures_id{$rand}'>"; echo "<option value='0'>" . Dropdown::EMPTY_VALUE . "</option></select>"; } } else { echo "<select name='plugin_resources_contractnatures_id'\n id='dropdown_plugin_resources_contractnatures_id{$rand}'>"; echo "<option value='0'>" . Dropdown::EMPTY_VALUE . "</option></select>"; } }