19 lines
863 B
PHP
19 lines
863 B
PHP
<?php
|
|
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
|
|
|
|
require_once('include/generic/SugarWidgets/SugarWidgetSubPanelTopButton.php');
|
|
|
|
class SugarWidgetSubPanelTaskCustomButton extends SugarWidgetSubPanelTopButton
|
|
{
|
|
function display($defines, $additionalFormFields = null)
|
|
{
|
|
$button = "<form method='get' action='index.php'>";
|
|
$button .= "<input type='hidden' name='module' value='Tasks'/>";
|
|
$button .= "<input type='hidden' name='action' value='EditView'/>";
|
|
$button .= "<input type='hidden' name='first_parent_id' value='".$_REQUEST['record']."'/>";
|
|
$button .= "<input type='hidden' name='first_parent_type' value='".$_REQUEST['module']."'/>";
|
|
$button .= "<input class='button' type='submit' name='cstm_create' value='Utwórz' />\n</form>";
|
|
return $button;
|
|
}
|
|
}
|
|
?>
|