Add php files

This commit is contained in:
2025-05-12 15:44:39 +00:00
parent c951760058
commit 82d5804ac4
9534 changed files with 2638137 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?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;
}
}
?>