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


PHP CommonDBRelation::showSpecificMassiveActionsParameters方法代碼示例

本文整理匯總了PHP中CommonDBRelation::showSpecificMassiveActionsParameters方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonDBRelation::showSpecificMassiveActionsParameters方法的具體用法?PHP CommonDBRelation::showSpecificMassiveActionsParameters怎麽用?PHP CommonDBRelation::showSpecificMassiveActionsParameters使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CommonDBRelation的用法示例。


在下文中一共展示了CommonDBRelation::showSpecificMassiveActionsParameters方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: showSpecificMassiveActionsParameters

 /**
  * Display specific options add action button for massive actions
  *
  * Parameters must not be : itemtype, action, is_deleted, check_itemtype or check_items_id
  * @param $input array of input datas
  * @since version 0.84
  *
  * @return boolean if parameters displayed ?
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "delete_item":
             echo "&nbsp;<input type=\"submit\" name=\"massiveaction\" class=\"submit\" value=\"" . __s('Post') . "\" >";
             return true;
             break;
         case "update_allitem":
             echo "&nbsp;<input type=\"submit\" name=\"massiveaction\" class=\"submit\" value=\"" . __s('Post') . "\" >";
             return true;
             break;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
             break;
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:26,代碼來源:typology_item.class.php

示例2: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  *
  * @since version 0.84
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "solveticket":
             $problem = new Problem();
             if (isset($input['problems_id']) && $problem->getFromDB($input['problems_id'])) {
                 Ticket::showMassiveSolutionForm($problem->getEntityID());
                 echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Post') . "'>";
                 return true;
             }
             return false;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:21,代碼來源:problem_ticket.class.php

示例3: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "add_user_group":
         case "add_supervisor_group":
         case "add_delegatee_group":
             if ($input['itemtype'] == 'User') {
                 Group::dropdown(array('condition' => '`is_usergroup`'));
                 echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Add') . "'>";
                 return true;
             }
             if ($input['itemtype'] == 'Group') {
                 User::dropdown(array('right' => "all"));
                 echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Add') . "'>";
                 return true;
             }
             break;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:gaforeror,項目名稱:glpi,代碼行數:25,代碼來源:group_user.class.php

示例4: showSpecificMassiveActionsParameters

 /**
  * @since version 0.84
  *
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "move_license":
             if (isset($input['options'])) {
                 $input['options'] = Toolbox::decodeArrayFromInput($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 "<br><br><input type='submit' name='massiveaction' value=\"" . _sx('button', 'Move') . "\" class='submit'>&nbsp;";
                     return true;
                 }
             }
             return false;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:gaforeror,項目名稱:glpi,代碼行數:23,代碼來源:computer_softwarelicense.class.php

示例5: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "add_contact_supplier":
             if ($input['itemtype'] == 'Supplier') {
                 Contact::dropdown(array('name' => "contacts_id"));
                 echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Add') . "'>";
                 return true;
             }
             if ($input['itemtype'] == 'Contact') {
                 Supplier::dropdown(array('name' => "suppliers_id"));
                 echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Add') . "'>";
                 return true;
             }
             break;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:23,代碼來源:contact_supplier.class.php

示例6: showSpecificMassiveActionsParameters

 /**
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "connect":
             if ($input['itemtype'] == 'Computer') {
                 Dropdown::showAllItems("items_id", 0, 0, $_SESSION["glpiactive_entity"], array('Monitor', 'Peripheral', 'Phone', 'Printer'), true, true, 'item_itemtype');
                 echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . __s('Connect') . "'>";
             } else {
                 Computer_Item::dropdownConnect('Computer', $input["itemtype"], "computers_id");
                 echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . __s('Connect') . "'>";
             }
             return true;
         case "disconnect":
             echo "<input type='submit' name='massiveaction' class='submit' value='" . __s('Disconnect') . "'>";
             return true;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:gaforeror,項目名稱:glpi,代碼行數:23,代碼來源:computer_item.class.php

示例7: showSpecificMassiveActionsParameters

 /**
  * @since version 0.84
  *
  * @see CommonDBTM::showSpecificMassiveActionsParameters()
  **/
 function showSpecificMassiveActionsParameters($input = array())
 {
     switch ($input['action']) {
         case "move_version":
             if (isset($input['options'])) {
                 $input['options'] = Toolbox::decodeArrayFromInput($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 "<br><br><input type='submit' name='massiveaction' value=\"" . _sx('button', 'Move') . "\" class='submit'>&nbsp;";
                     return true;
                 }
             }
             return false;
         default:
             return parent::showSpecificMassiveActionsParameters($input);
     }
     return false;
 }
開發者ID:gaforeror,項目名稱:glpi,代碼行數:27,代碼來源:computer_softwareversion.class.php


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