本文整理汇总了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 " <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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}