当前位置: 首页>>代码示例>>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;未经允许,请勿转载。