static public showSimpleForm ( $action, $btname, $btlabel, array $fields = [], $btimage = '', $btoption = '', $confirm = '' ) | ||
$action | String URL to call on submit | |
$btname | String button name | |
$btlabel | String button label | |
$fields | array | Array field name => field value |
$btimage | String button image uri (optional) (default '') | |
$btoption | String optional button option (default '') | |
$confirm | String optional confirm message (default '') |
static function showSimpleForm($action, $btname, $btlabel, array $fields = array(), $btimage = '', $btoption = '', $confirm = '')
{
echo self::getSimpleForm($action, $btname, $btlabel, $fields, $btimage, $btoption, $confirm);
}
function displaySpecificTypeField($ID, $field = array()) { global $CFG_GLPI; switch ($field['type']) { case 'groups': $groups = json_decode($this->fields[$field['name']], true); if (!empty($groups)) { echo "<table class='tab_cadrehov' cellpadding='5'>"; foreach ($groups as $key => $val) { echo "<tr class='tab_bg_1 center'>"; echo "<td>"; echo Dropdown::getDropdownName("glpi_groups", $val); echo "</td>"; echo "<td>"; Html::showSimpleForm(Toolbox::getItemTypeFormURL('PluginTimelineticketConfig'), 'delete_groups', _x('button', 'Delete permanently'), array('delete_groups' => 'delete_groups', 'id' => $ID, '_groups_id_assign' => $val), $CFG_GLPI["root_doc"] . "/pics/delete.png"); echo " </td>"; echo "</tr>"; } echo "</table>"; } else { _e('None'); } break; } }