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