当前位置: 首页>>代码示例>>PHP>>正文


PHP CommonDBRelation::showMassiveActionsSubForm方法代码示例

本文整理汇总了PHP中CommonDBRelation::showMassiveActionsSubForm方法的典型用法代码示例。如果您正苦于以下问题:PHP CommonDBRelation::showMassiveActionsSubForm方法的具体用法?PHP CommonDBRelation::showMassiveActionsSubForm怎么用?PHP CommonDBRelation::showMassiveActionsSubForm使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CommonDBRelation的用法示例。


在下文中一共展示了CommonDBRelation::showMassiveActionsSubForm方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: showMassiveActionsSubForm

 /**
  * @since version 0.85
  *
  * @see CommonDBTM::showMassiveActionsSubForm()
  **/
 static function showMassiveActionsSubForm(MassiveAction $ma)
 {
     switch ($ma->getAction()) {
         case 'add':
             $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>";
             echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Post') . "'>";
             return true;
     }
     return parent::showMassiveActionsSubForm($ma);
 }
开发者ID:stweil,项目名称:glpi,代码行数:18,代码来源:ticket_ticket.class.php

示例2: showMassiveActionsSubForm

 /**
  * @since version 0.85
  *
  * @see CommonDBTM::showMassiveActionsSubForm()
  **/
 static function showMassiveActionsSubForm(MassiveAction $ma)
 {
     global $CFG_GLPI;
     switch ($ma->getAction()) {
         case "solveticket":
             $change = new Change();
             $input = $ma->getInput();
             if (isset($input['changes_id']) && $change->getFromDB($input['changes_id'])) {
                 Ticket::showMassiveSolutionForm($change->getEntityID());
                 echo "<br><br>";
                 echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction'));
                 return true;
             }
             return false;
     }
     return parent::showMassiveActionsSubForm($ma);
 }
开发者ID:remicollet,项目名称:glpi,代码行数:22,代码来源:change_ticket.class.php

示例3: showMassiveActionsSubForm

 /**
  * @since version 0.85
  *
  * @see CommonDBTM::showMassiveActionsSubForm()
  **/
 static function showMassiveActionsSubForm(MassiveAction $ma)
 {
     global $CFG_GLPI;
     $input = $ma->getInput();
     switch ($ma->getAction()) {
         case 'move_license':
             if (isset($input['options'])) {
                 if (isset($input['options']['move'])) {
                     SoftwareLicense::dropdown(array('condition' => "`glpi_softwarelicenses`.`softwares_id`\n                                                         = '" . $input['options']['move']['softwares_id'] . "'", 'used' => $input['options']['move']['used']));
                     echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction'));
                     return true;
                 }
             }
             return false;
     }
     return parent::showMassiveActionsSubForm($ma);
 }
开发者ID:pvasener,项目名称:glpi,代码行数:22,代码来源:computer_softwarelicense.class.php

示例4: showMassiveActionsSubForm

 /**
  * @since version 0.85
  *
  * @see CommonDBTM::showMassiveActionsSubForm()
  **/
 static function showMassiveActionsSubForm(MassiveAction $ma)
 {
     global $CFG_GLPI;
     switch ($ma->getAction()) {
         case 'add_task':
             $tasktype = 'TicketTask';
             if ($ttype = getItemForItemtype($tasktype)) {
                 $ttype->showFormMassiveAction();
                 return true;
             }
             return false;
         case "solveticket":
             $problem = new Problem();
             $input = $ma->getInput();
             if (isset($input['problems_id']) && $problem->getFromDB($input['problems_id'])) {
                 Ticket::showMassiveSolutionForm($problem->getEntityID());
                 echo "<br><br>";
                 echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction'));
                 return true;
             }
             return false;
     }
     return parent::showMassiveActionsSubForm($ma);
 }
开发者ID:glpi-project,项目名称:glpi,代码行数:29,代码来源:problem_ticket.class.php

示例5: showMassiveActionsSubForm

 /**
  * @since version 0.85
  *
  * @see CommonDBTM::showMassiveActionsSubForm()
  **/
 static function showMassiveActionsSubForm(MassiveAction $ma)
 {
     switch ($ma->getAction()) {
         case 'add_item':
             static::showFormMassiveAction($ma);
             return true;
         case 'delete_item':
             static::showFormMassiveAction($ma);
             return true;
     }
     return parent::showMassiveActionsSubForm($ma);
 }
开发者ID:korial29,项目名称:glpi,代码行数:17,代码来源:item_ticket.class.php

示例6: showMassiveActionsSubForm

 /**
  * @since version 0.85
  *
  * @see CommonDBTM::showMassiveActionsSubForm()
  **/
 static function showMassiveActionsSubForm(MassiveAction $ma)
 {
     global $CFG_GLPI;
     switch ($ma->getAction()) {
         case 'add':
             Software::dropdownSoftwareToInstall('peer_softwareversions_id', $_SESSION["glpiactive_entity"]);
             echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction')) . "</span>";
             return true;
         case 'move_version':
             $input = $ma->getInput();
             if (isset($input['options'])) {
                 if (isset($input['options']['move'])) {
                     $options = array('softwares_id' => $input['options']['move']['softwares_id']);
                     if (isset($input['options']['move']['used'])) {
                         $options['used'] = $input['options']['move']['used'];
                     }
                     SoftwareVersion::dropdown($options);
                     echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction'));
                     return true;
                 }
             }
             return false;
     }
     return parent::showMassiveActionsSubForm($ma);
 }
开发者ID:JULIO8,项目名称:respaldo_glpi,代码行数:30,代码来源:computer_softwareversion.class.php


注:本文中的CommonDBRelation::showMassiveActionsSubForm方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。