本文整理汇总了PHP中TicketValidation::showFormMassiveAction方法的典型用法代码示例。如果您正苦于以下问题:PHP TicketValidation::showFormMassiveAction方法的具体用法?PHP TicketValidation::showFormMassiveAction怎么用?PHP TicketValidation::showFormMassiveAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TicketValidation
的用法示例。
在下文中一共展示了TicketValidation::showFormMassiveAction方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showSpecificMassiveActionsParameters
/**
* @see CommonDBTM::showSpecificMassiveActionsParameters()
**/
function showSpecificMassiveActionsParameters($input = array())
{
switch ($input['action']) {
case "add_followup":
TicketFollowup::showFormMassiveAction();
return true;
case "link_ticket":
$rand = Ticket_Ticket::dropdownLinks('link');
printf(__('%1$s: %2$s'), __('Ticket'), __('ID'));
echo " <input type='text' name='tickets_id_1' value='' size='10'>\n";
echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Post') . "'>";
return true;
case "submit_validation":
TicketValidation::showFormMassiveAction();
return true;
default:
return parent::showSpecificMassiveActionsParameters($input);
}
return false;
}
示例2: array
break;
case "add_actor":
$types = array(0 => DROPDOWN_EMPTY_VALUE, Ticket::REQUESTER => $LANG['job'][4], Ticket::OBSERVER => $LANG['common'][104], Ticket::ASSIGN => $LANG['job'][5]);
$rand = Dropdown::showFromArray('actortype', $types);
$paramsmassaction = array('actortype' => '__VALUE__');
ajaxUpdateItemOnSelectEvent("dropdown_actortype{$rand}", "show_massiveaction_field", $CFG_GLPI["root_doc"] . "/ajax/dropdownMassiveActionAddActor.php", $paramsmassaction);
echo "<span id='show_massiveaction_field'> </span>\n";
break;
case "link_ticket":
$rand = Ticket_Ticket::dropdownLinks('link');
echo " " . $LANG['job'][38] . " " . $LANG['common'][2] . " : ";
echo "<input type='text' name='tickets_id_1' value='' size='10'>\n";
echo "<input type='submit' name='massiveaction' class='submit' value='" . $LANG['buttons'][2] . "'>";
break;
case "submit_validation":
TicketValidation::showFormMassiveAction();
break;
case "change_authtype":
$rand = Auth::dropdown(array('name' => 'authtype'));
$paramsmassaction = array('authtype' => '__VALUE__');
ajaxUpdateItemOnSelectEvent("dropdown_authtype{$rand}", "show_massiveaction_field", $CFG_GLPI["root_doc"] . "/ajax/dropdownMassiveActionAuthMethods.php", $paramsmassaction);
echo "<span id='show_massiveaction_field'>";
echo " <input type='submit' name='massiveaction' class='submit' value='" . $LANG['buttons'][2] . "'></span>\n";
break;
case "compute_software_category":
case "replay_dictionnary":
case "force_ocsng_update":
case "force_user_ldap_update":
case "delete":
case "purge":
case "restore":