File manager - Edit - /home/c14075/dragmet-ural.ru/www/bitrix/components/bitrix/bizproc.wizards.start/templates/.default/template.php
Back
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?> <? if ($arResult["FatalErrorMessage"] <> '') { ?> <span class='errortext'><?= $arResult["FatalErrorMessage"] ?></span><br /><br /> <? } else { if ($arResult["ErrorMessage"] <> '') { ?> <font class='errortext'><?= $arResult["ErrorMessage"] ?></font><br /><br /> <? } if ($arResult["ShowMode"] == "StartWorkflowSuccess") { ?> <?= GetMessage("BPWC_WRCT_SUCCESS") ?> <? } elseif ($arResult["ShowMode"] == "StartWorkflowError") { ?> <?= GetMessage("BPWC_WRCT_ERROR") ?> <? } elseif ($arResult["ShowMode"] == "WorkflowParameters") { $arButtons = array( array( "TEXT"=>GetMessage("BPWC_WRCT_2LIST"), "TITLE"=>GetMessage("BPWC_WRCT_2LIST"), "LINK"=>$arResult["PATH_TO_LIST"], "ICON"=>"btn-list", ), ); $APPLICATION->IncludeComponent( "bitrix:main.interface.toolbar", "", array( "BUTTONS" => $arButtons ), $component ); ?> <br> <form method="post" name="start_workflow_form1" action="<?= POST_FORM_ACTION_URI ?>" enctype="multipart/form-data"> <input type="hidden" name="back_url" value="<?= htmlspecialcharsbx($arResult["BackUrl"]) ?>"> <?= bitrix_sessid_post() ?> <table class="bpwiz1-view-form data-table" cellpadding="0" cellspacing="0"> <tr> <th colspan="2"><?= GetMessage("BPWC_WRCT_SUBTITLE") ?></th> </tr> <tr> <td align="right" width="40%"><?= GetMessage("BPWC_WRCT_NAME") ?>:</td> <td width="60%"> <?= $arResult["TEMPLATE"]["NAME"] ?> </td> </tr> <?if ($arResult["TEMPLATE"]["DESCRIPTION"] != ''):?> <tr> <td align="right" width="40%"><?= GetMessage("BPWC_WRCT_DESCR") ?>:</td> <td width="60%"> <?= $arResult["TEMPLATE"]["DESCRIPTION"] ?> </td> </tr> <?endif?> <? foreach ($arResult["TEMPLATE"]["PARAMETERS"] as $parameterKey => $arParameter) { if ($parameterKey == "TargetUser") continue; ?> <tr> <td align="right" width="40%" valign="top"><?= $arParameter["Required"] ? "<span style=\"color:red\">*</span> " : ""?><?= htmlspecialcharsbx($arParameter["Name"]) ?>:<?if ($arParameter["Description"] <> '') echo "<br /><small>".htmlspecialcharsbx($arParameter["Description"])."</small><br />";?></td> <td width="60%" valign="top"><? echo $arResult["DocumentService"]->GetFieldInputControl( array("bizproc", "CBPVirtualDocument", "type_".$arParams["BLOCK_ID"]), $arParameter, array("Form" => "start_workflow_form1", "Field" => $parameterKey), $arResult["ParametersValues"][$parameterKey], false, true ); ?></td> </tr> <? } ?> </table> <input type="submit" name="DoStartParamWorkflow" value="<?= $arResult["CreateTitle"] <> '' ? $arResult["CreateTitle"] : GetMessage("BPWC_WRCT_SAVE") ?>" /> <input type="submit" name="CancelStartParamWorkflow" value="<?= GetMessage("BPWC_WRCT_CANCEL") ?>" /> </form> <? } elseif ($arResult["ShowMode"] == "SelectWorkflow") { if (count($arResult["TEMPLATES"]) > 0) { foreach ($arResult["TEMPLATES"] as $workflowTemplateId => $arWorkflowTemplate) { ?> <tr> <td colspan="2"> <a href="<?= $arWorkflowTemplate["URL"] ?>"><?= $arWorkflowTemplate["NAME"] ?></a><?= $arWorkflowTemplate["DESCRIPTION"] <> '' ? ":" : "" ?> <?= $arWorkflowTemplate["DESCRIPTION"] ?> </td> </tr> <? } } else { ?> <tr> <td colspan="2"><?= GetMessage("BPABS_NO_TEMPLATES") ?></td> </tr> <? } } } ?>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0.25 |
proxy
|
phpinfo
|
Settings