%PDF- %PDF-
Direktori : /home/bitrix/www/bitrix/components/bitrix/bizproc.workflow.setvar/templates/.default/ |
Current File : //home/bitrix/www/bitrix/components/bitrix/bizproc.workflow.setvar/templates/.default/template.php |
<?if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?> <? if (strlen($arResult["FatalErrorMessage"]) > 0) { ?> <span class='errortext'><?= $arResult["FatalErrorMessage"] ?></span><br /><br /> <? } else { if (strlen($arResult["ErrorMessage"]) > 0) { ?> <span class='errortext'><?= $arResult["ErrorMessage"] ?></span><br /><br /> <? } if(empty($arParams["SHOW_TOOLBAR"])) $arParams["SHOW_TOOLBAR"] == "Y"; if($arParams["SHOW_TOOLBAR"] == "Y") { $arButtons = array( array( "TEXT"=>GetMessage("BPWC_WVCT_2LIST"), "TITLE"=>GetMessage("BPWC_WVCT_2LIST"), "LINK"=>$arResult["LIST_PAGE_URL"], "ICON"=>"btn-list", ), ); $APPLICATION->IncludeComponent( "bitrix:main.interface.toolbar", "", array( "BUTTONS" => $arButtons ), $component ); } ?> <br> <form name="bizprocform" method="post" 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_WVCT_SUBTITLE") ?></th> </tr> <? foreach ($arResult["VARIABLES"] as $parameterKey => $arParameter) { ?> <tr> <td align="right" width="40%" valign="top"><?= htmlspecialcharsbx($arParameter["Name"]) ?>:<?if (strlen($arParameter["Description"]) > 0) echo "<br /><small>".htmlspecialcharsbx($arParameter["Description"])."</small><br />";?></td> <td width="60%" valign="top"><? echo $arResult["DocumentService"]->GetFieldInputControl( $arResult["DOCUMENT_TYPE"], $arParameter, array("Form" => "bizprocform", "Field" => $parameterKey), $arParameter["Default"], false, true ); ?></td> </tr> <? } if (count($arResult["VARIABLES"]) <= 0) { ?> <tr><td><?= GetMessage("BPWC_WVCT_EMPTY") ?></td></tr> <? } ?> </table> <br><br> <input type="submit" name="save_variables" value="<?= GetMessage("BPWC_WVCT_SAVE") ?>"> <input type="submit" name="apply_variables" value="<?= GetMessage("BPWC_WVCT_APPLY") ?>"> <input type="submit" name="cancel_variables" value="<?= GetMessage("BPWC_WVCT_CANCEL") ?>"> </form> <? } ?>