當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。