本文整理匯總了PHP中CommonDropdown::showMassiveActionsSubForm方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonDropdown::showMassiveActionsSubForm方法的具體用法?PHP CommonDropdown::showMassiveActionsSubForm怎麽用?PHP CommonDropdown::showMassiveActionsSubForm使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CommonDropdown
的用法示例。
在下文中一共展示了CommonDropdown::showMassiveActionsSubForm方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: showMassiveActionsSubForm
/**
* @since version 0.85
*
* @see CommonDBTM::showMassiveActionsSubForm()
**/
static function showMassiveActionsSubForm(MassiveAction $ma)
{
switch ($ma->getAction()) {
case 'duplicate':
Entity::dropdown();
echo "<br><br>";
echo Html::submit(_x('button', 'Duplicate'), array('name' => 'massiveaction')) . "</span>";
return true;
}
return parent::showMassiveActionsSubForm($ma);
}
示例2: showMassiveActionsSubForm
/**
* @since version 0.85
*
* @see CommonDBTM::showMassiveActionsSubForm()
* @param MassiveAction $ma
* @return bool|false
*/
static function showMassiveActionsSubForm(MassiveAction $ma)
{
switch ($ma->getAction()) {
case 'plugin_ocsinventoryng_import':
Entity::dropdown(array('name' => 'entity'));
echo " " . Html::submit(_x('button', 'Post'), array('name' => 'massiveaction'));
return true;
/*case 'plugin_ocsinventoryng_link':
Computer::dropdown(array('name' => 'computers_id'));
echo " ".
Html::submit(_x('button','Post'), array('name' => 'massiveaction'));
return true;*/
/*case 'plugin_ocsinventoryng_link':
Computer::dropdown(array('name' => 'computers_id'));
echo " ".
Html::submit(_x('button','Post'), array('name' => 'massiveaction'));
return true;*/
case 'plugin_ocsinventoryng_replayrules':
case 'plugin_ocsinventoryng_delete':
echo " " . Html::submit(_x('button', 'Post'), array('name' => 'massiveaction'));
return true;
}
return parent::showMassiveActionsSubForm($ma);
}
示例3: showMassiveActionsSubForm
/**
* @since version 0.90
*
* @see CommonDBTM::showMassiveActionsSubForm()
**/
static function showMassiveActionsSubForm(MassiveAction $ma)
{
switch ($ma->getAction()) {
case 'merge':
echo " " . $_SESSION['glpiactive_entity_shortname'];
echo "<br><br>" . Html::submit(_x('button', 'Merge'), array('name' => 'massiveaction'));
return true;
}
return parent::showMassiveActionsSubForm($ma);
}
示例4: showMassiveActionsSubForm
/**
* @since version 0.85
*
* @see CommonDBTM::showMassiveActionsSubForm()
**/
static function showMassiveActionsSubForm(MassiveAction $ma)
{
global $CFG_GLPI;
switch ($ma->getAction()) {
case 'move_under':
$itemtype = $ma->getItemType(true);
_e('As child of');
Dropdown::show($itemtype, array('name' => 'parent', 'comments' => 0, 'entity' => $_SESSION['glpiactive_entity']));
echo "<br><br><input type='submit' name='massiveaction' class='submit' value='" . _sx('button', 'Move') . "'>\n";
return true;
}
return parent::showMassiveActionsSubForm($ma);
}