本文整理匯總了PHP中CommonDBChild::showMassiveActionsSubForm方法的典型用法代碼示例。如果您正苦於以下問題:PHP CommonDBChild::showMassiveActionsSubForm方法的具體用法?PHP CommonDBChild::showMassiveActionsSubForm怎麽用?PHP CommonDBChild::showMassiveActionsSubForm使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類CommonDBChild
的用法示例。
在下文中一共展示了CommonDBChild::showMassiveActionsSubForm方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: showMassiveActionsSubForm
/**
* @since version 0.85
*
* @see CommonDBTM::showMassiveActionsSubForm()
**/
static function showMassiveActionsSubForm(MassiveAction $ma)
{
switch ($ma->getAction()) {
case 'updatepages':
$input = $ma->getInput();
if (!isset($input['maxpages'])) {
$input['maxpages'] = '';
}
echo "<input type='text' name='pages' value=\"" . $input['maxpages'] . "\" size='6'>";
echo "<br><br>" . Html::submit(_x('button', 'Update'), array('name' => 'massiveaction'));
return true;
}
return parent::showMassiveActionsSubForm($ma);
}
示例2: showMassiveActionsSubForm
/**
* @since version 0.85
*
* @see CommonDBTM::showMassiveActionsSubForm()
**/
static function showMassiveActionsSubForm(MassiveAction $ma)
{
global $CFG_GLPI;
switch ($ma->getAction()) {
case 'transform_to':
Dropdown::showItemTypes('transform_to', NetworkPort::getNetworkPortInstantiations(), array('value' => 'NetworkPortEthernet'));
echo "<br><br>";
echo Html::submit(_x('button', 'Post'), array('name' => 'massiveaction')) . "</span>";
return true;
}
return parent::showMassiveActionsSubForm($ma);
}
示例3: showMassiveActionsSubForm
/**
* @since version 0.85
*
* @see CommonDBTM::showMassiveActionsSubForm()
**/
static function showMassiveActionsSubForm(MassiveAction $ma)
{
global $CFG_GLPI;
$input = $ma->getInput();
switch ($ma->getAction()) {
case 'give':
if (isset($input["entities_id"])) {
Dropdown::showSelectItemFromItemtypes(array('itemtype_name' => 'give_itemtype', 'items_id_name' => 'give_items_id', 'entity_restrict' => $input["entities_id"], 'itemtypes' => $CFG_GLPI["consumables_types"]));
echo "<br><br>" . Html::submit(_x('button', 'Give'), array('name' => 'massiveaction'));
return true;
}
}
return parent::showMassiveActionsSubForm($ma);
}
示例4: showMassiveActionsSubForm
/**
* @since version 0.85
*
* @see CommonDBTM::showMassiveActionsSubForm()
**/
static function showMassiveActionsSubForm(MassiveAction $ma)
{
switch ($ma->getAction()) {
case 'submit_validation':
static::showFormMassiveAction();
return true;
}
return parent::showMassiveActionsSubForm($ma);
}