Skip to content

Commit

Permalink
Use of Dropdown::showInteger() instead of dropdownInteger(). See rele…
Browse files Browse the repository at this point in the history
  • Loading branch information
Vincent MAZZONI committed Apr 28, 2010
1 parent 29fcebc commit 3cdc245
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 17 deletions.
12 changes: 6 additions & 6 deletions hook.php
Original file line number Diff line number Diff line change
Expand Up @@ -1696,12 +1696,12 @@ function plugin_fusioninventory_MassiveActionsFieldsDisplay($type,$table,$field,
break;

case 'glpi_plugin_fusioninventory_agents.nb_process_query' :
dropdownInteger("nb_process_query", $linkfield,1,200);
Dropdown::showInteger("nb_process_query", $linkfield,1,200);
return true;
break;

case 'glpi_plugin_fusioninventory_agents.nb_process_discovery' :
dropdownInteger("nb_process_discovery", $linkfield,1,400);
Dropdown::showInteger("nb_process_discovery", $linkfield,1,400);
return true;
break;

Expand All @@ -1714,22 +1714,22 @@ function plugin_fusioninventory_MassiveActionsFieldsDisplay($type,$table,$field,
break;

case 'glpi_plugin_fusioninventory_agents.core_discovery' :
dropdownInteger("core_discovery", $linkfield,1,32);
Dropdown::showInteger("core_discovery", $linkfield,1,32);
return true;
break;

case 'glpi_plugin_fusioninventory_agents.core_query' :
dropdownInteger("core_query", $linkfield,1,32);
Dropdown::showInteger("core_query", $linkfield,1,32);
return true;
break;

case 'glpi_plugin_fusioninventory_agents.threads_discovery' :
dropdownInteger("threads_discovery", $linkfield,1,400);
Dropdown::showInteger("threads_discovery", $linkfield,1,400);
return true;
break;

case 'glpi_plugin_fusioninventory_agents.threads_query' :
dropdownInteger("threads_query", $linkfield,1,400);
Dropdown::showInteger("threads_query", $linkfield,1,400);
return true;
break;

Expand Down
8 changes: 4 additions & 4 deletions inc/agents.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,28 +218,28 @@ function showFormAdvancedOptions($target, $ID = '') {
echo "<tr class='tab_bg_1'>";
echo "<td align='center' width='200'>" . $LANG['plugin_fusioninventory']["agents"][11] . "</td>";
echo "<td align='center' width='200'>";
dropdownInteger("core_discovery", $this->fields["core_discovery"],1,32);
Dropdown::showInteger("core_discovery", $this->fields["core_discovery"],1,32);
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1'>";
echo "<td align='center'>".$LANG['plugin_fusioninventory']["agents"][3]."</td>";
echo "<td align='center'>";
dropdownInteger("threads_discovery", $this->fields["threads_discovery"],1,400);
Dropdown::showInteger("threads_discovery", $this->fields["threads_discovery"],1,400);
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1'>";
echo "<td align='center'>".$LANG['plugin_fusioninventory']["agents"][10]."</td>";
echo "<td align='center'>";
dropdownInteger("core_query", $this->fields["core_query"],1,32);
Dropdown::showInteger("core_query", $this->fields["core_query"],1,32);
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1'>";
echo "<td align='center'>" . $LANG['plugin_fusioninventory']["agents"][2] . "</td>";
echo "<td align='center'>";
dropdownInteger("threads_query", $this->fields["threads_query"],1,200);
Dropdown::showInteger("threads_query", $this->fields["threads_query"],1,200);
echo "</td>";
echo "</tr>";

Expand Down
4 changes: 2 additions & 2 deletions inc/config.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ function showForm($target,$ID) {
echo "<tr class='tab_bg_1'>";
echo "<td>".$LANG['plugin_fusioninventory']['config'][0]."&nbsp;:</td>";
echo "<td>";
dropdownInteger("inventory_frequence",$this->getValue('inventory_frequence'),1,240);
Dropdown::showInteger("inventory_frequence",$this->getValue('inventory_frequence'),1,240);
echo "</td>";
echo "<td>".$LANG['plugin_fusioninventory']["functionalities"][32]."</td>";
echo "<td>";
dropdownInteger("delete_agent_process",$this->getValue('delete_agent_process'),1,240);
Dropdown::showInteger("delete_agent_process",$this->getValue('delete_agent_process'),1,240);
echo " ".$LANG['gmt'][1];
echo "</td>";
echo "</tr>";
Expand Down
10 changes: 5 additions & 5 deletions inc/configsnmpnetworking.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,35 +107,35 @@ function showForm($target,$ID) {
echo "<tr class='tab_bg_1'>";
echo "<td>".$LANG['plugin_fusioninventory']["functionalities"][21]."</td>";
echo "<td>";
dropdownInteger("history_wire", $this->getValue('history_wire'),0,100);
Dropdown::showInteger("history_wire", $this->getValue('history_wire'),0,100);
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1'>";
echo "<td>".$LANG['plugin_fusioninventory']["functionalities"][22]."</td>";
echo "<td>";
dropdownInteger("history_ports_state", $this->getValue('history_ports_state'),0,100);
Dropdown::showInteger("history_ports_state", $this->getValue('history_ports_state'),0,100);
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1'>";
echo "<td>".$LANG['plugin_fusioninventory']["functionalities"][23]."</td>";
echo "<td>";
dropdownInteger("history_unknown_mac", $this->getValue('history_unknown_mac'),0,100);
Dropdown::showInteger("history_unknown_mac", $this->getValue('history_unknown_mac'),0,100);
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1'>";
echo "<td>".$LANG['plugin_fusioninventory']["functionalities"][24]."</td>";
echo "<td>";
dropdownInteger("history_snmp_errors", $this->getValue('history_snmp_errors'),0,100);
Dropdown::showInteger("history_snmp_errors", $this->getValue('history_snmp_errors'),0,100);
echo "</td>";
echo "</tr>";

echo "<tr class='tab_bg_1'>";
echo "<td>".$LANG['plugin_fusioninventory']["functionalities"][25]."</td>";
echo "<td>";
dropdownInteger("history_process", $this->getValue('history_process'),0,100);
Dropdown::showInteger("history_process", $this->getValue('history_process'),0,100);
echo "</td>";
echo "</tr>";

Expand Down

0 comments on commit 3cdc245

Please sign in to comment.