%PDF- %PDF-
Direktori : /home/bitrix/www/bitrix/components/bitrix/bizproc.wizards.view/templates/flat/ |
Current File : //home/bitrix/www/bitrix/components/bitrix/bizproc.wizards.view/templates/flat/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 /> <? } $arButtons = array( array( "TEXT"=>GetMessage("BPWC_WNCT_2LIST"), "TITLE"=>GetMessage("BPWC_WNCT_2LIST"), "LINK"=>$arResult["PATH_TO_LIST"], "ICON"=>"btn-list", ), ); $APPLICATION->IncludeComponent( "bitrix:main.interface.toolbar", "", array( "BUTTONS" => $arButtons ), $component ); ?> <br> <table class="bpwiz1-view-form data-table" cellpadding="0" cellpadding="0" border="0"> <tr> <th colspan="2"><?= $arResult["BP"]["NAME"] ?></th> </tr> <tr> <td valign="top" align="right"><?= GetMessage("BPWC_WNCT_STATE") ?>:</td> <td valign="top"><a href="<?= $arResult["PATH_TO_LOG"] ?>"><?= $arResult["BP"]["DOCUMENT_STATE"]["STATE_TITLE"] ?></a></td> </tr> <? if (count($arResult["BP"]["DOCUMENT_STATE_TASKS"]) > 0) { ?> <tr> <td valign="top" align="right"><?= GetMessage("BPWC_WNCT_TASKS") ?>:</td> <td valign="top"><? foreach ($arResult["BP"]["DOCUMENT_STATE_TASKS"] as $arTask) echo '<a href="'.$arTask["URL"].'" onclick="" title="'.strip_tags($arTask["DESCRIPTION"]).'">'.$arTask["NAME"].'</a><br />'; ?></td> </tr> <? } ?> <? if (count($arResult["BP"]["DOCUMENT_STATE_EVENTS"]) > 0) { ?> <tr> <td valign="top" align="right"><?= GetMessage("BPWC_WNCT_EVENTS") ?>:</td> <td valign="top"><? foreach ($arResult["BP"]["DOCUMENT_STATE_EVENTS"] as $e) echo '<a href="'.$e["URL"].'">'.$e["TITLE"].'</a><br />'; ?></td> </tr> <? } ?> <? if (count($arResult["Block"]["VISIBLE_FIELDS"]) <= 0 || in_array("NAME", $arResult["Block"]["VISIBLE_FIELDS"])) { ?> <tr> <td valign="top" align="right"><?= GetMessage("BPWC_WNCT_NAME") ?>:</td> <td valign="top"><?= $arResult["BP"]["NAME"] ?></td> </tr> <? } ?> <? foreach ($arResult["DocumentFields"] as $key => $value) { if (count($arResult["Block"]["VISIBLE_FIELDS"]) > 0 && !in_array($key, $arResult["Block"]["VISIBLE_FIELDS"])) continue; if ($key == "NAME") continue; ?> <tr> <td valign="top" align="right"><?= $value["Name"] ?>:</td> <td valign="top"><?= $arResult["BP"][$key] ?></td> </tr> <? } ?> </table> <? } ?>