Current Path : /var/www/html/clients/wodo.e-nk.ru/bitrix/activities/bitrix/approveactivity/ |
Current File : /var/www/html/clients/wodo.e-nk.ru/bitrix/activities/bitrix/approveactivity/properties_dialog.php |
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); ?> <? ?> <tr> <td align="right" width="40%"><span style="color:#FF0000;">*</span> <?= GetMessage("BPAA_PD_APPROVERS") ?>:</td> <td width="60%"> <?=CBPDocument::ShowParameterField("user", 'approve_users', $arCurrentValues['approve_users'], Array('rows'=>'2'))?> </td> </tr> <tr> <td align="right" width="40%"><span style="color:#FF0000;">*</span> <?= GetMessage("BPAA_PD_TYPE") ?>:</td> <td width="60%"> <script> function __BPAppTCh(v) { if(v=='vote') { try{ document.getElementById("appvprc1").style.display = 'table-row'; }catch(e){ document.getElementById("appvprc1").style.display = 'block'; } try{ document.getElementById("appvprc2").style.display = 'table-row'; }catch(e){ document.getElementById("appvprc2").style.display = 'block'; } } else { document.getElementById("appvprc1").style.display = 'none'; document.getElementById("appvprc2").style.display = 'none'; } } </script> <select name="approve_type" onchange="__BPAppTCh(this.value)"> <option value="all"<?= $arCurrentValues["approve_type"] == "all" ? " selected" : "" ?>><?= GetMessage("BPAA_PD_TYPE_ALL") ?></option> <option value="any"<?= $arCurrentValues["approve_type"] == "any" ? " selected" : "" ?>><?= GetMessage("BPAA_PD_TYPE_ANY") ?></option> <option value="vote"<?= $arCurrentValues["approve_type"] == "vote" ? " selected" : "" ?>><?= GetMessage("BPAA_PD_TYPE_VOTE") ?></option> </select> </td> </tr> <tr id="appvprc1" <?=($arCurrentValues["approve_type"]!="vote"?" style='display:none'":"")?>> <td align="right" width="40%"><?= GetMessage("BPAA_PD_PERCENT") ?>:</td> <td width="60%"> <?=CBPDocument::ShowParameterField("int", 'approve_percent', $arCurrentValues['approve_percent'], array("size"=>"5"))?> </td> </tr> <tr id="appvprc2" <?=($arCurrentValues["approve_type"]!="vote"?" style='display:none'":"")?>> <td align="right" width="40%"><?= GetMessage("BPAA_PD_WAIT") ?>:</td> <td width="60%"> <?=CBPDocument::ShowParameterField("bool", 'approve_wait', $arCurrentValues['approve_wait'])?> </td> </tr> <tr> <td align="right" width="40%"><span style="color:#FF0000;">*</span> <?= GetMessage("BPAA_PD_NAME") ?>:</td> <td width="60%"> <?=CBPDocument::ShowParameterField("string", 'approve_name', $arCurrentValues['approve_name'], Array('size'=>'50'))?> </td> </tr> <tr> <td align="right" width="40%" valign="top"><?= GetMessage("BPAA_PD_DESCR") ?>:</td> <td width="60%" valign="top"> <?=CBPDocument::ShowParameterField("text", 'approve_description', $arCurrentValues['approve_description'], Array('rows'=>'7'))?> </td> </tr> <tr> <td align="right"><?= GetMessage("BPAA_PD_SET_STATUS_MESSAGE") ?>:</td> <td> <select name="set_status_message"> <option value="Y"<?= $arCurrentValues["set_status_message"] == "Y" ? " selected" : "" ?>><?= GetMessage("BPAA_PD_YES") ?></option> <option value="N"<?= $arCurrentValues["set_status_message"] == "N" ? " selected" : "" ?>><?= GetMessage("BPAA_PD_NO") ?></option> </select> </td> </tr> <tr> <td align="right"><?= GetMessage("BPAA_PD_STATUS_MESSAGE") ?>:<br/><?= GetMessage("BPAA_PD_STATUS_MESSAGE_HINT") ?></td> <td><?=CBPDocument::ShowParameterField("string", 'status_message', $arCurrentValues['status_message'], Array('size'=>'50'))?></td> </tr> <tr> <td align="right"><?= GetMessage("BPAA_PD_TIMEOUT_DURATION") ?>:<br/><?= GetMessage("BPAA_PD_TIMEOUT_DURATION_HINT") ?></td> <td> <input type="text" name="timeout_duration" id="id_timeout_duration" value="<?= htmlspecialchars($arCurrentValues["timeout_duration"]) ?>" size="20" /> <input type="button" value="..." onclick="BPAShowSelector('id_timeout_duration', 'int');" /> <select name="timeout_duration_type"> <option value="s"<?= ($arCurrentValues["timeout_duration_type"] == "s") ? " selected" : "" ?>><?= GetMessage("BPAA_PD_TIME_S") ?></option> <option value="m"<?= ($arCurrentValues["timeout_duration_type"] == "m") ? " selected" : "" ?>><?= GetMessage("BPAA_PD_TIME_M") ?></option> <option value="h"<?= ($arCurrentValues["timeout_duration_type"] == "h") ? " selected" : "" ?>><?= GetMessage("BPAA_PD_TIME_H") ?></option> <option value="d"<?= ($arCurrentValues["timeout_duration_type"] == "d") ? " selected" : "" ?>><?= GetMessage("BPAA_PD_TIME_D") ?></option> </select> </td> </tr>