當前位置: 首頁>>代碼示例>>PHP>>正文


PHP TicketValidation::showFormMassiveAction方法代碼示例

本文整理匯總了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 "&nbsp;<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;
 }
開發者ID:gaforeror,項目名稱:glpi,代碼行數:23,代碼來源:ticket.class.php

示例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'>&nbsp;</span>\n";
     break;
 case "link_ticket":
     $rand = Ticket_Ticket::dropdownLinks('link');
     echo "&nbsp;" . $LANG['job'][38] . "&nbsp;" . $LANG['common'][2] . "&nbsp;:&nbsp;";
     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 "&nbsp;<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":
開發者ID:ryukansent,項目名稱:Thesis-SideB,代碼行數:31,代碼來源:dropdownMassiveAction.php


注:本文中的TicketValidation::showFormMassiveAction方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。