function intr_SelectorTplShowSection($ID, $arSections, $arParams, $arResult) { if (0 == $ID) { $num = count($arSections[$ID]); if ($num <= 0) { return; } $num_per_column = ceil($num / $arParams['COLUMNS']); $width = floor(90 / ($num_per_column > 1 ? $arParams['COLUMNS'] : $num)); } if (is_array($arSections[$ID])) { echo '<ul' . ($ID <= 0 ? ' class="bx-users-sections" style="width: ' . $width . '%"' : '') . '>'; $cnt = 0; foreach ($arSections[$ID] as $key => $arSect) { $arClassName = array(); if ($ID <= 0) { $arClassName[] = 'bx-users-section-top'; } if ($arResult['FILTER_VALUES'][$arParams['FILTER_NAME'] . '_UF_DEPARTMENT'] == $arSect['ID']) { $arClassName[] = 'bx-users-section-current selected'; } echo '<li' . (count($arClassName) > 0 ? ' class="' . implode(' ', $arClassName) . '"' : '') . '>'; echo '<a href="' . $arParams['LIST_URL'] . '?set_filter_' . $arParams['FILTER_NAME'] . '=Y&' . $arParams['FILTER_NAME'] . '_UF_DEPARTMENT=' . intval($arSect['ID']) . GetFilterParams($arResult['FILTER_PARAMS']) . '"' . (count($arClassName) > 0 ? ' class="' . implode(' ', $arClassName) . '"' : '') . '>' . htmlspecialcharsbx($arSect['NAME']) . '</a>'; intr_SelectorTplShowSection($arSect['ID'], $arSections, $arParams, $arResult); echo '</li>'; if ($ID == 0 && ++$cnt >= $num_per_column) { echo '</ul>'; if ($key < $num - 1) { echo '<ul class="bx-users-sections" style="width: ' . $width . '%">'; } $cnt = 0; } } echo '</ul>'; } }
?><tr id="tr_COUPON" class="adm-detail-required-field"> <td width="40%"><? echo $tabControl->GetCustomLabelHTML(); ?></td> <td width="60%" id="td_COUPON_VALUE"> <input type="text" id="COUPON" name="COUPON" size="32" maxlength="32" value="<? echo htmlspecialcharsbx($arCoupon['COUPON']); ?>" /> <input type="button" value="<? echo GetMessage("DSC_CPN_GEN") ?>" id="COUPON_GENERATE"> </td> </tr><? $tabControl->EndCustomField('COUPON', '<input type="hidden" name="COUPON" value="'.htmlspecialcharsbx($arCoupon['COUPON']).'">' ); $tabControl->AddCalendarField('DATE_APPLY', GetMessage("DDSC_CPN_DATE").':', $arCoupon['DATE_APPLY']); $tabControl->AddTextField("DESCRIPTION", GetMessage("DSC_CPN_DESCRIPTION").':', htmlspecialcharsbx($arCoupon['DESCRIPTION']), array("cols" => 50, 'rows' => 6)); $arButtonsParams = array( "disabled" => $bReadOnly, "back_url" => "/bitrix/admin/cat_discount_coupon.php?lang=".LANGUAGE_ID.GetFilterParams("filter_", false) ); $tabControl->Buttons($arButtonsParams); $tabControl->Show(); $tabControl->ShowWarnings("tabControl", $obMessages); echo BeginNote(); ?><span class="required" style="vertical-align: super; font-size: smaller;">1</span> <? echo GetMessage('DSC_CPN_ONE_ORDER_NOTE'); echo EndNote(); ?><script type="text/javascript"> BX.ready(function(){ var obCouponValue = BX('COUPON'); var obCouponBtn = BX('COUPON_GENERATE'); if (!!obCouponValue && !!obCouponBtn)
} } if ($bContinue) { continue; } } $arReports[] = array("TEXT" => $rep_title, "ONCLICK" => "window.open('/bitrix/admin/sale_order_print_new.php?&ORDER_ID=" . $ID . "&doc=" . substr($file, 0, strlen($file) - 4) . "&" . bitrix_sessid_get() . "', '_blank');"); } } } closedir($handle); } } $aMenu[] = array("TEXT" => Loc::getMessage("SALE_OVIEW_TO_PRINT"), "TITLE" => Loc::getMessage("SALE_OVIEW_TO_PRINT_TITLE"), "LINK" => "/bitrix/admin/sale_order_print.php?ID=" . $ID . "&lang=" . LANGUAGE_ID . GetFilterParams("filter_"), "MENU" => $arReports); $aMenu[] = array("TEXT" => Loc::getMessage("SALE_OVIEW_ORDER_COPY"), "TITLE" => Loc::getMessage("SALE_OVIEW_ORDER_COPY_TITLE"), "LINK" => '/bitrix/admin/sale_order_create.php?lang=' . LANGUAGE_ID . "&SITE_ID=" . $saleOrder->getSiteId() . "&ID=" . $ID . "&" . bitrix_sessid_get() . GetFilterParams("filter_")); $aMenu[] = array("TEXT" => Loc::getMessage("SALE_OVIEW_DELETE"), "TITLE" => Loc::getMessage("SALE_OVIEW_DELETE_TITLE"), "LINK" => "javascript:if(confirm('" . GetMessageJS("SALE_OVIEW_DEL_MESSAGE") . "')) window.location='sale_order.php?ID=" . $ID . "&action=delete&lang=" . LANGUAGE_ID . "&" . bitrix_sessid_get() . urlencode(GetFilterParams("filter_")) . "'", "WARNING" => "Y"); $context = new CAdminContextMenu($aMenu); $context->Show(); //prepare blocks order $defaultBlocksOrder = array("statusorder", "buyer", "delivery", "financeinfo", "payment", "additional", "basket"); $formId = "sale_order_view"; $orderBasket = new Admin\Blocks\OrderBasket($saleOrder, "BX.Sale.Admin.OrderBasketObj", "sale_order_basket", true, Admin\Blocks\OrderBasket::VIEW_MODE); echo Admin\OrderEdit::getScripts($saleOrder, $formId); echo Admin\Blocks\OrderInfo::getScripts(); echo Admin\Blocks\OrderBuyer::getScripts(); echo Admin\Blocks\OrderPayment::getScripts(); echo Admin\Blocks\OrderStatus::getScripts($saleOrder, $USER->GetID()); echo Admin\Blocks\OrderAdditional::getScripts(); echo Admin\Blocks\OrderFinanceInfo::getScripts(); echo Admin\Blocks\OrderShipment::getScripts(); echo Admin\Blocks\OrderAnalysis::getScripts();
:</td> <td><?php echo CalendarPeriod("filter_active_from_from", htmlspecialcharsex($filter_active_from_from), "filter_active_from_to", htmlspecialcharsex($filter_active_from_to), "filter_active_from"); ?> </td> </tr> <tr> <td><?php echo GetMessage("LEARNING_ADMIN_GROUPS_ACTIVE_TO"); ?> :</td> <td><?php echo CalendarPeriod("filter_active_to_from", htmlspecialcharsex($filter_active_to_from), "filter_active_to_to", htmlspecialcharsex($filter_active_to_to), "filter_active_to"); ?> </td> </tr> <?php $filter->Buttons(array("table_id" => $sTableID, "url" => $APPLICATION->GetCurPage() . "?" . GetFilterParams("filter_"), "form" => "form1")); $filter->End(); ?> </form> <?php $lAdmin->DisplayList(); ?> <?php require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/epilog_admin.php";
} } else { for (i=0; ; i++) { var el = form.elements['ANSWER_n'+i+'_CORRECT']; if (el) { if (el.checked == true) return true; } else return false; } } return false; } </script> <?php } else { //!bBadCourse $aContext = array(array("ICON" => "btn_list", "TEXT" => GetMessage("MAIN_ADMIN_MENU_LIST"), "LINK" => "learn_unilesson_admin.php?lang=" . LANG . '&LESSON_PATH=' . $uriParentLessonPath . GetFilterParams("filter_"), "TITLE" => GetMessage("LEARNING_BACK_TO_ADMIN"))); $context = new CAdminContextMenu($aContext); $context->Show(); CAdminMessage::ShowMessage(GetMessage("LEARNING_BAD_COURSE")); } require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
$row->AddViewField("TIMESTAMP_X", $arDiscount['TIMESTAMP_X']); if ($bReadOnly) { $row->AddCheckField("ACTIVE", false); $row->AddViewField("COUPON", $f_COUPON); $row->AddCalendarField("DATE_APPLY", false); $row->AddViewField("ONE_TIME", $arCouponType[$arDiscount['ONE_TIME']]); $row->AddViewField("DESCRIPTION", $f_DESCRIPTION); } else { $row->AddCheckField("ACTIVE"); $row->AddInputField("COUPON", array("size" => "30")); $row->AddCalendarField("DATE_APPLY", array("size" => "10")); $row->AddSelectField("ONE_TIME", $arCouponType); $row->AddInputField("DESCRIPTION"); } $arActions = array(); $arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("DSC_UPDATE_ALT"), "ACTION" => $lAdmin->ActionRedirect("cat_discount_coupon_edit.php?ID=" . $f_ID . "&lang=" . LANG . GetFilterParams("filter_", false) . ""), "DEFAULT" => true); if (!$bReadOnly) { $arActions[] = array("SEPARATOR" => true); $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("DSC_DELETE_ALT"), "ACTION" => "if(confirm('" . GetMessage('DSC_DELETE_CONF') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete")); } $row->AddActions($arActions); } $lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0"))); if (!$bReadOnly) { $lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE"))); } if (!$bReadOnly) { $aContext = array(array("TEXT" => GetMessage("DSC_CPN_ADD"), "ICON" => "btn_new", "LINK" => "cat_discount_coupon_edit.php?lang=" . LANG, "TITLE" => GetMessage("DSC_CPN_ADD_ALT"))); $lAdmin->AddAdminContextMenu($aContext); } $lAdmin->CheckListMode();
if (is_array($find_events) && count($find_events) > 0) { $arrDays = CStatEventType::GetGraphArray($arFilter, $arrLegend); if (function_exists("ImageCreate")) { if (strlen($strError) <= 0 && count($arrLegend) > 0 && count($arrDays) > 1) { $width = COption::GetOptionString("statistic", "GRAPH_WEIGHT"); $height = COption::GetOptionString("statistic", "GRAPH_HEIGHT"); ?> <div class="graph"> <?php if ($summa == "Y") { echo GetMessage("STAT_SUMMARIZED"); } ?> <table cellpadding="0" cellspacing="0" border="0" class="graph" align="center"><tr><td> <img class="graph" src="event_graph.php?<?php echo GetFilterParams($FilterArr); ?> &width=<?php echo $width; ?> &height=<?php echo $height; ?> &lang=<?php echo LANG; ?> " width="<?php echo $width; ?> " height="<?php echo $height;
</td> </tr> <tr> <td><?php echo GetMessage("MURL_RULE"); ?> :</td> <td> <input type="text" name="RULE" size="50" maxlength="250" value="<?php echo $str_RULE; ?> "> </td> </tr> <?php $tabControl->EndTab(); ?> <?php $tabControl->Buttons(array("disabled" => !$isAdmin, "back_url" => "/bitrix/admin/urlrewrite_list.php?lang=" . LANG . "&filter_site_id=" . UrlEncode($site_id) . "&" . GetFilterParams("filter_", false))); $tabControl->End(); ?> </form> <?php $tabControl->ShowWarnings("form1", $message); ?> <?php require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
<?php } ?> <?php } ?> </table> </td> </tr> <?php $tabControl->EndCustomField("ANSWER"); ?> <?php $tabControl->Buttons(array("back_url" => "learn_test_result_admin.php?lang=" . LANG . "&ATTEMPT_ID=" . $ATTEMPT_ID . GetFilterParams("filter_", false))); $tabControl->arParams["FORM_ACTION"] = $APPLICATION->GetCurPage() . "?lang=" . LANG . "&ATTEMPT_ID=" . $ATTEMPT_ID . GetFilterParams("filter_"); $tabControl->Show(); ?> <script type="text/javascript"> function OnChangeAnswered(val) { document.forms["testResultTabControl_form"].elements['POINT'].disabled = !val; document.forms["testResultTabControl_form"].elements['CORRECT'].disabled = !val && !document.forms["testResultTabControl_form"].elements['ANSWERED'].checked; var r = document.forms["testResultTabControl_form"].elements['RESPONSE[]']; if (!r) return; for (i=0; i < r.length; i++)
<?php if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) { die; } $bChecked = false; if ($arResult['FILTER_VALUES'][$arParams['FILTER_NAME'] . '_IS_ONLINE']) { if ($key = array_search($arParams['FILTER_NAME'] . '_IS_ONLINE', $arResult['FILTER_PARAMS'], true)) { $bChecked = true; unset($arResult['FILTER_PARAMS'][$key]); } } $arParams['LIST_URL'] .= strpos($arParams['LIST_URL'], '?') === false ? '?' : '&'; $arExtraVars = array('current_view' => $arParams['CURRENT_VIEW'], 'current_filter' => $arParams['CURRENT_FILTER']); $extraUrl = 'set_filter_' . $arParams['FILTER_NAME'] . '=Y' . GetFilterParams($arResult['FILTER_PARAMS'], true, $arExtraVars); // ajax mode hack - especially for complex component if ($arParams['AJAX_MODE'] == 'Y') { $url = CAjax::AddSessionParam($arParams['LIST_URL'] . $extraUrl, $arParams['AJAX_ID']); $onclick = 'jsAjaxUtil.InsertDataToNode(\'' . CUtil::JSEscape($url) . '\' + (this.checked ? \'' . CUtil::JSEscape('&' . $arParams['FILTER_NAME'] . '_IS_ONLINE=Y') . '\' : \'\'), \'comp_' . $arParams['AJAX_ID'] . '\', ' . ($arParams['AJAX_OPTION_SHADOW'] == 'Y' ? 'true' : 'false') . ');'; } else { $onclick = 'window.location.href=\'' . CUtil::JSEscape($arParams['LIST_URL'] . $extraUrl) . '\' + (this.checked ? \'' . CUtil::JSEscape('&' . $arParams['FILTER_NAME'] . '_IS_ONLINE=Y') . '\' : \'\')'; } ?> <input type="checkbox" name="<?php echo $arParams['FILTER_NAME'] . '_IS_ONLINE'; ?> " value="Y" <?php echo $bChecked ? 'checked="checked"' : ''; ?> id="<?php echo $arParams['FILTER_NAME'] . '_IS_ONLINE';
$arActions[] = array("ICON" => "edit", "DEFAULT" => "Y", "TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"), "ACTION" => $lAdmin->ActionRedirect($editUrl)); /* $arActions[] = array( "ICON"=>"copy", "TEXT"=>GetMessage("MAIN_ADMIN_ADD_COPY"), "ACTION"=>$lAdmin->ActionRedirect("learn_course_edit.php?COPY_ID=".$f_ID)); */ $arActions[] = array("SEPARATOR" => true); $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"), "ACTION" => "if(confirm('" . GetMessageJS('LEARNING_CONFIRM_DEL_MESSAGE') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete", 'LESSON_PATH=' . $uriLessonPath)); $row->AddActions($arActions); } // list footer $lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0"))); // group actions buttons $lAdmin->AddGroupActionTable(array("self" => GetMessage("LEARNING_ACTION_SELF"), "deself" => GetMessage("LEARNING_ACTION_DESELF"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE"), "required" => GetMessage("MAIN_ADMIN_LIST_REQUIRED"), "derequired" => GetMessage("MAIN_ADMIN_LIST_NOT_REQUIRED"), "delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"))); $arContextPopup = array(array("TEXT" => GetMessage('LEARNING_SINGLE_CHOICE'), "LINK" => "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&QUESTION_TYPE=S" . GetFilterParams("filter_", false) . $str_from), array("TEXT" => GetMessage('LEARNING_MULTIPLE_CHOICE'), "LINK" => "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&QUESTION_TYPE=M" . GetFilterParams("filter_", false) . $str_from), array("TEXT" => GetMessage('LEARNING_SORTING'), "LINK" => "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&QUESTION_TYPE=R" . GetFilterParams("filter_", false) . $str_from), array("TEXT" => GetMessage('LEARNING_TEXT_ANSWER'), "LINK" => "learn_question_edit.php?lang=" . LANG . '&LESSON_PATH=' . $uriLessonPath . "&QUESTION_TYPE=T" . GetFilterParams("filter_", false) . $str_from)); $aContext = array(array("ICON" => "btn_new", "TEXT" => GetMessage("LEARNING_ADD"), "TITLE" => GetMessage("LEARNING_ADD_ALT"), "MENU" => $arContextPopup)); $lAdmin->AddAdminContextMenu($aContext); // list mode check (if AJAX then terminate the script) $lAdmin->CheckListMode(); $APPLICATION->SetTitle($arLesson['NAME'] . ': ' . GetMessage('LEARNING_QUESTION')); require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php"; $filter = new CAdminFilter($sTableID . "_filter", array(GetMessage("LEARNING_NAME"), GetMessage("LEARNING_F_SELF"), GetMessage("LEARNING_F_ACTIVE2"), GetMessage("LEARNING_F_CORRECT_REQUIRED"))); ?> <form method="GET" action="<?php echo $APPLICATION->GetCurPage(); ?> " name="find_form" onsubmit="return this.set_filter.onclick();"> <input type="hidden" name="LESSON_PATH" value="<?php echo htmlspecialcharsbx(urldecode($uriLessonPath)); ?>
$row->AddField("DESCR", $fieldValue); /* $arActions = Array(); $arActions[] = array("ICON"=>"edit", "TEXT"=>GetMessage("SAA_UPDATE_ALT"), "ACTION"=>$lAdmin->ActionRedirect("sale_account_edit.php?ID=".$f_ID."&lang=".LANG.GetFilterParams("filter_")."")); if ($saleModulePermissions >= "W") { $arActions[] = array("SEPARATOR" => true); $arActions[] = array("ICON"=>"delete", "TEXT"=>GetMessage("SAA_DELETE_ALT"), "ACTION"=>"if(confirm('".GetMessage('SAA_DELETE_CONFIRM')."')) ".$lAdmin->ActionDoGroup($f_ID, "delete")); } $row->AddActions($arActions); */ } $lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbTransactList->SelectedRowsCount()))); if ($saleModulePermissions >= "U") { $aContext = array(array("TEXT" => GetMessage("STAN_ADD_NEW"), "LINK" => "sale_transact_edit.php?lang=" . LANG . GetFilterParams("filter_"), "TITLE" => GetMessage("STAN_ADD_NEW_ALT"), "ICON" => "btn_new")); $lAdmin->AddAdminContextMenu($aContext); } $lAdmin->CheckListMode(); require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/prolog.php"; $APPLICATION->SetTitle(GetMessage("STA_TITLE")); require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php"; ?> <form name="find_form" method="GET" action="<?php echo $APPLICATION->GetCurPage(); ?> ?"> <?php $oFilter = new CAdminFilter($sTableID . "_filter", array(GetMessage("STA_USER_ID"), GetMessage("STA_USER_LOGIN"), GetMessage("STA_CURRENCY"), GetMessage("STA_TRANS_DATE"), GetMessage("STA_ORDER_ID"))); $oFilter->Begin(); ?>
?> ;"> <td width="40%"><?php echo GetMessage('BX_SALE_DISCOUNT_EDIT_FIELDS_COUPON_MAX_USE'); ?> </td> <td width="60%"><input type="text" name="COUPON[MAX_USE]" value="<?php echo $coupons['COUPON_MAX_USE'] > 0 ? $coupons['COUPON_MAX_USE'] : ''; ?> "></td> </tr><?php } $control->EndCustomField('COUPONS'); $control->BeginNextFormTab(); $control->AddEditField("XML_ID", GetMessage("BT_SALE_DISCOUNT_EDIT_FIELDS_XML_ID") . ":", false, array("size" => 50, "maxlength" => 255), htmlspecialcharsbx($arDiscount['XML_ID'])); $control->Buttons(array("disabled" => $saleModulePermissions < "W", "back_url" => "/bitrix/admin/sale_discount.php?lang=" . LANGUAGE_ID . GetFilterParams("filter_"))); $control->Show(); ?> <script type="text/javascript"> BX.ready(function(){ var obCouponAdd = BX('COUPON_ADD_Y'), obCouponType = BX('tr_COUPON_TYPE'), obCouponCount = BX('tr_COUPON_COUNT'), obCouponPeriod = BX('tr_COUPON_PERIOD'), obCouponMaxUse = BX('tr_COUPON_MAX_USE'); if (!!obCouponAdd && (!!obCouponType || !!obCouponCount || !!obCouponPeriod || !!obCouponMaxUse)) { BX.bind(obCouponAdd, 'click', function(){ if (!!obCouponType) BX.style(obCouponType, 'display', (obCouponAdd.checked ? 'table-row' : 'none'));
echo GetMessage("LDAP_EDIT_SYNC_PERIOD_H"); ?> </td> </tr> <tr> <td><?php echo GetMessage("LDAP_EDIT_SYNC_ATTR"); ?> </td> <td><input type="text" id="SYNC_ATTR" name="SYNC_ATTR" size="20" maxlength="255" value="<?php echo $str_SYNC_ATTR; ?> "></td> </tr> <?php $tabControl->Buttons(array("disabled" => $MOD_RIGHT < "W", "back_url" => "ldap_server_admin.php?lang=" . LANG . GetFilterParams("filter_", false))); $tabControl->End(); ?> </form> <?php $tabControl->ShowWarnings("form1", $message); ?> <a name="notes" ></a> <?php echo BeginNote(); ?> <span class="required">**</span> <?php echo GetMessage("LDAP_EDIT_SYNC_NOTES"); echo EndNote();
if (CModule::IncludeModule("mail")) { $arr["unmark_spam"] = GetMessage("SUP_UNMARK_SPAM"); $arr["maybe_spam"] = GetMessage("SUP_MAYBE_SPAM"); } } $lAdmin->AddGroupActionTable($arr); $aContext = array( array( "ICON" => "btn_new", "TEXT"=>GetMessage("MAIN_ADD"), "LINK"=>"ticket_edit.php?lang=".LANG.GetFilterParams("filter_"), "TITLE"=>GetMessage("MAIN_ADD") ), ); $lAdmin->AddAdminContextMenu($aContext); $lAdmin->CheckListMode(); $APPLICATION->SetTitle(GetMessage("SUP_TICKETS_TITLE")); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_after.php"); ?>
?> :</td> <td width="60%"> <input type="checkbox" name="ACTIVE" value="Y"<?php if ($str_ACTIVE == "Y") { echo " checked"; } ?> /> </td> </tr> <tr> <td width="40%"><?php echo GetMessage("CVAT_SORT"); ?> :</td> <td width="60%"> <input type="text" name="C_SORT" value="<?php echo $str_C_SORT; ?> " size="5" /> </td> </tr> <?php $tabControl->EndTab(); $tabControl->Buttons(array("disabled" => $bReadOnly, "back_url" => "/bitrix/admin/cat_vat_admin.php?lang=" . LANG . "&" . GetFilterParams("filter_", false))); $tabControl->End(); ?> </form> <?php require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
foreach ($arLang as $key => $val) { ?> <tr class="adm-detail-required-field"> <td><?php echo $val["NAME"]; ?> [<?php echo $key; ?> ]:</td> <td><input type="text" name="NAME_<?php echo $key; ?> " value="<?php echo $arSmile["LANG"][$key]["NAME"]; ?> " size="40" /></td> </tr> <?php } ?> <?php $tabControl->EndTab(); $tabControl->Buttons(array("disabled" => $forumPermissions < "W", "back_url" => "/bitrix/admin/forum_smile.php?lang=" . LANG . "&" . GetFilterParams("filter_", false))); ?> </form> <?php $tabControl->End(); $tabControl->ShowWarnings("fform", $message); require $DOCUMENT_ROOT . "/bitrix/modules/main/include/epilog_admin.php";
if (!in_array($val, $arSelectedFields)) { $arSelectedFields[] = $val; } } $dbResultList = CSupportTimetable::GetList(array($by => $order), $arFilter); $dbResultList = new CAdminResult($dbResultList, $sTableID); $dbResultList->NavStart(); $lAdmin->NavText($dbResultList->GetNavPrint(GetMessage("SUP_GROUP_NAV"))); while ($arBlog = $dbResultList->NavNext(true, "f_")) { $row =& $lAdmin->AddRow($f_ID, $arBlog, "/bitrix/admin/ticket_timetable_edit.php?ID=" . $f_ID . "&lang=" . LANGUAGE_ID, GetMessage("SUP_UPDATE_ALT")); $row->AddField("ID", '<a href="/bitrix/admin/ticket_timetable_edit.php?ID=' . $f_ID . '&lang=' . LANGUAGE_ID . '" title="' . GetMessage("SUP_UPDATE_ALT") . '">' . $f_ID . '</a>'); $row->AddField("NAME", '<a href="/bitrix/admin/ticket_timetable_edit.php?ID=' . $f_ID . '&lang=' . LANGUAGE_ID . '" title="' . GetMessage("SUP_UPDATE_ALT") . '">' . $f_NAME . '</a>'); $row->AddField("DESCRIPTION", $f_DESCRIPTION); //$USER_FIELD_MANAGER->AddUserFields("TIMETABLE", $arBlog, $row); $arActions = array(); $arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("SUP_UPDATE_ALT"), "ACTION" => $lAdmin->ActionRedirect("ticket_timetable_edit.php?ID=" . $f_ID . "&lang=" . LANG . "&" . GetFilterParams("filter_") . ""), "DEFAULT" => true); $arActions[] = array("SEPARATOR" => true); $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("SUP_DELETE_ALT"), "ACTION" => "if(confirm('" . GetMessage('SUP_DELETE_CONF') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete")); $row->AddActions($arActions); } $lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0"))); $lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"))); $aContext = array(array("TEXT" => GetMessage("SUP_ADD_NEW"), "ICON" => "btn_new", "LINK" => "ticket_timetable_edit.php?lang=" . LANG, "TITLE" => GetMessage("SUP_ADD_NEW_ALT"))); $lAdmin->AddAdminContextMenu($aContext); $lAdmin->CheckListMode(); /****************************************************************************/ /*********** MAIN PAGE ****************************************************/ /****************************************************************************/ $APPLICATION->SetTitle(GetMessage("SUP_TITLE")); require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php"; ?>
</table> </div> </td> </tr> </table> </td> </tr> <? $tabControl->EndCustomField("BASKET_CONTAINER"); if (!defined('BX_PUBLIC_MODE') || BX_PUBLIC_MODE != 1) { $tabControl->Buttons( array( "disabled" => ($boolLocked || !$bUserCanEditOrder), "back_url" => "/bitrix/admin/sale_order_new.php?lang=".LANGUAGE_ID."&ID=".$ID."&dontsave=Y&LID=".CUtil::JSEscape($LID).GetFilterParams("filter_")) ); } $tabControl->Show(); // order basket user by manager if (isset($_GET["user_id"]) && isset($_GET["LID"]) && !$bVarsFromForm) { $userId = intval($_GET["user_id"]); $LID = trim($_GET["LID"]); $arParams = array(); echo '<script type="text/javascript">'; echo 'window.onload = function () {'; echo 'fUserGetProfile(BX(\'user_id\'));';
); $adminList->AddGroupActionTable( array( 'delete' => Loc::getMessage('MAIN_ADMIN_LIST_DELETE'), 'activate' => Loc::getMessage('MAIN_ADMIN_LIST_ACTIVATE'), 'deactivate' => Loc::getMessage('MAIN_ADMIN_LIST_DEACTIVATE'), ) ); $contextMenu = array(); if (!$readOnly) { $contextMenu[] = array( 'ICON' => 'btn_new', 'TEXT' => Loc::getMessage('BT_SALE_DISCOUNT_COUPONT_LIST_MESS_NEW_COUPON'), 'TITLE' => Loc::getMessage('BT_SALE_DISCOUNT_COUPON_LIST_MESS_NEW_COUPON_TITLE'), 'LINK' => 'sale_discount_coupon_edit.php?lang='.LANGUAGE_ID.GetFilterParams('filter_'), ); } if (!empty($contextMenu)) $adminList->AddAdminContextMenu($contextMenu); $adminList->CheckListMode(); $APPLICATION->SetTitle(Loc::getMessage('BT_SALE_DISCOUNT_COUPON_LIST_TITLE')); require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/prolog_admin_after.php'); $adminList->DisplayList(); require($_SERVER['DOCUMENT_ROOT'].'/bitrix/modules/main/include/epilog_admin.php');
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => "ID", "sort" => "id", "default" => true), array("id" => "USER_ID", "content" => GetMessage("SCA_USER"), "sort" => "user_id", "default" => true), array("id" => "ACTIVE", "content" => GetMessage("SCA_ACT"), "sort" => "active", "default" => true), array("id" => "SORT", "content" => GetMessage("SCA_SORT"), "sort" => "sort", "default" => true), array("id" => "CURRENCY", "content" => GetMessage("SCA_CURRENCY"), "sort" => "currency", "default" => true), array("id" => "CARD_TYPE", "content" => GetMessage("SCA_TYPE"), "sort" => "card_type", "default" => true))); $arVisibleColumns = $lAdmin->GetVisibleHeaderColumns(); while ($arCCard = $dbResultList->NavNext(true, "f_")) { $row =& $lAdmin->AddRow($f_ID, $arCCard, "sale_ccards_edit.php?ID=" . $f_ID . "&lang=" . LANG . GetFilterParams("filter_"), GetMessage("SCA_UPDATE_ALT")); $row->AddField("ID", $f_ID); $fieldValue = "[<a href=\"/bitrix/admin/user_edit.php?ID=" . $f_USER_ID . "&lang=" . LANG . "\">" . $f_USER_ID . "</a>] "; $fieldValue .= htmlspecialcharsEx($arCCard["USER_NAME"] . (strlen($arCCard["USER_NAME"]) <= 0 || strlen($arCCard["USER_LAST_NAME"]) <= 0 ? "" : " ") . $arCCard["USER_LAST_NAME"]) . "<br>"; $fieldValue .= htmlspecialcharsEx($arCCard["USER_LOGIN"]) . " "; $fieldValue .= "<a href=\"mailto:" . htmlspecialcharsEx($arCCard["USER_EMAIL"]) . "\">" . htmlspecialcharsEx($arCCard["USER_EMAIL"]) . "</a>"; $row->AddField("USER_ID", $fieldValue); $row->AddCheckField("ACTIVE"); $row->AddInputField("SORT"); $row->AddField("CURRENCY", $f_CURRENCY); $row->AddField("CARD_TYPE", $f_CARD_TYPE); $arActions = array(); $arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("SCA_UPDATE_ALT"), "ACTION" => $lAdmin->ActionRedirect("sale_ccards_edit.php?ID=" . $f_ID . "&lang=" . LANG . GetFilterParams("filter_") . ""), "DEFAULT" => true); if ($saleModulePermissions >= "W") { $arActions[] = array("SEPARATOR" => true); $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("SCA_DELETE_ALT1"), "ACTION" => "if(confirm('" . GetMessage('SCA_DELETE_CONF') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete")); } $row->AddActions($arActions); } $lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0"))); $lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE"))); if ($saleModulePermissions == "W") { $aContext = array(array("TEXT" => GetMessage("SCAN_ADD_NEW"), "LINK" => "sale_ccards_edit.php?lang=" . LANG, "TITLE" => GetMessage("SCAN_ADD_NEW_ALT"), "ICON" => "btn_new")); $lAdmin->AddAdminContextMenu($aContext); } $lAdmin->CheckListMode(); /****************************************************************************/ /*********** MAIN PAGE ****************************************************/
while ($arSocNet = $dbResultList->NavNext(true, "f_")) { $row =& $lAdmin->AddRow($f_ID, $arSocNet); $row->AddField("ID", '<a href="/bitrix/admin/socnet_smile_edit.php?ID=' . $f_ID . '&lang=' . LANGUAGE_ID . '" title="' . GetMessage("SONET_EDIT_DESCR") . '">' . $f_ID . '</a>'); $row->AddField("SORT", $f_SORT); $row->AddField("SMILE_TYPE", $f_SMILE_TYPE == "I" ? GetMessage("SMILE_TYPE_ICON") : GetMessage("SMILE_TYPE_SMILE")); $fieldShow = ""; if (in_array("NAME", $arVisibleColumns)) { $arSmileLang = CSocNetSmile::GetLangByID($f_ID, LANG); $fieldShow .= htmlspecialcharsbx($arSmileLang["NAME"]); } $row->AddField("NAME", $fieldShow); $row->AddField("TYPING", $f_TYPING); $row->AddField("ICON", "<img src=\"/bitrix/images/socialnetwork/" . ($f_SMILE_TYPE == "I" ? "icon" : "smile") . "/" . $f_IMAGE . "\" border=\"0\" " . (IntVal($f_IMAGE_WIDTH) > 0 ? "width=\"" . $f_IMAGE_WIDTH . "\"" : "") . " " . (IntVal($f_IMAGE_WIDTH) > 0 ? "height=\"" . $f_IMAGE_HEIGHT . "\"" : "") . ">"); $arActions = array(); if ($sonetModulePermissions >= "R") { $arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("SONET_EDIT_DESCR"), "ACTION" => $lAdmin->ActionRedirect("socnet_smile_edit.php?ID=" . $f_ID . "&lang=" . LANG . "&" . GetFilterParams("filter_") . ""), "DEFAULT" => true); } if ($sonetModulePermissions >= "W") { $arActions[] = array("SEPARATOR" => true); $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("SONET_DELETE_DESCR"), "ACTION" => "if(confirm('" . GetMessage('SMILE_DEL_CONF') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete")); } $row->AddActions($arActions); } // "подвал" списка $lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0"))); // показ формы с кнопками добавления, ... $lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"))); if ($sonetModulePermissions >= "W") { $aContext = array(array("TEXT" => GetMessage("FSAN_ADD_NEW"), "LINK" => "socnet_smile_edit.php?lang=" . LANG, "TITLE" => GetMessage("FSAN_ADD_NEW_ALT"), "ICON" => "btn_new")); $lAdmin->AddAdminContextMenu($aContext); }
<tr> <td valign="top" align="right" colspan="2"> <script language="JavaScript"> <!-- ActionFileChange(<?php echo $arPersonType["ID"]; ?> ); //--> </script> <input type="hidden" name="PS_ACTION_FIELDS_LIST_<?php echo $arPersonType["ID"]; ?> " value=""> </td> </tr> </table> <?php } $tabControl1->End(); ?> </td></tr> <?php $tabControl->EndTab(); $tabControl->Buttons(array("disabled" => $saleModulePermissions < "W", "back_url" => "/bitrix/admin/sale_pay_system.php?lang=" . LANG . GetFilterParams("filter_"))); $tabControl->End(); ?> </form> <?php require $DOCUMENT_ROOT . "/bitrix/modules/main/include/epilog_admin.php";
</dd> HTML; } } $row->AddField("LAND", implode("<br />", $res)); $row->AddEditField("LAND", '<dl>' . implode("", $res2) . '</dl>'); $row->AddInputField("SORT", $bCanUpdateForum ? array("size" => "3") : false); $row->AddViewField("FORUM_GROUP_ID", $arForumGroups[$f_FORUM_GROUP_ID]["NAME"]); $row->AddSelectField("FORUM_GROUP_ID", $bCanUpdateForum ? $arForumGroupsTitle : false); $row->AddCheckField("MODERATION", $bCanUpdateForum ? array() : false); $row->AddCheckField("INDEXATION", $bCanUpdateForum ? array() : false); $row->AddSelectField("ORDER_BY", $bCanUpdateForum ? $arForumSort : false); $row->AddSelectField("ORDER_DIRECTION", $bCanUpdateForum ? $arForumSortDirection : false); $arActions = array(); if ($bCanUpdateForum) { $arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("FORUM_EDIT"), "ACTION" => $lAdmin->ActionRedirect("forum_edit.php?ID=" . $f_ID . "&lang=" . LANG . GetFilterParams("filter_", false) . ""), "DEFAULT" => true); } if ($bCanDeleteForum) { $arActions[] = array("SEPARATOR" => true); $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("FORUM_DELETE"), "ACTION" => "if(confirm('" . GetMessage('DELETE_CONFIRM') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete")); } $row->AddActions($arActions); } $lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $dbResultList->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0"))); $lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE"), "clear_html" => GetMessage("MAIN_ADMIN_LIST_CLEAR_HTML"))); if ($forumModulePermissions >= "W") { $aContext = array(array("TEXT" => GetMessage("FFAN_ADD_NEW"), "LINK" => "forum_edit.php?lang=" . LANG, "TITLE" => GetMessage("FFAN_ADD_NEW_ALT"), "ICON" => "btn_new")); $lAdmin->AddAdminContextMenu($aContext); } $lAdmin->CheckListMode(); /****************************************************************************/
static function Show() { global $USER_FIELD_MANAGER, $APPLICATION; if (self::ShowErrors()) { return; } self::ShowMenu(); self::$objCAdminForm->BeginEpilogContent(); echo bitrix_sessid_post(); GetFilterHiddens("filter_"); echo ' <input type="hidden" name="Update" value="Y"> <input type="hidden" name="ID" value="' . self::$holidaysFields->ID . '"> '; self::$objCAdminForm->EndEpilogContent(); self::$objCAdminForm->Begin(); self::$objCAdminForm->BeginNextFormTab(); Tab1(self::$objCAdminForm); if (self::SHOW_USER_FIELDS) { self::$objCAdminForm->BeginNextFormTab(); self::$objCAdminForm->BeginCustomField("USER_FIELDS", GetMessage("SUP_ADMIN_USER_FIELDS"), false); $USER_FIELD_MANAGER->EditFormShowTab("LEARN_ATTEMPT", self::$isErrors, self::$holidaysFields->ID); self::$objCAdminForm->EndCustomField("USER_FIELDS"); } self::$objCAdminForm->Buttons(array("back_url" => "ticket_holidays_list.php?lang=" . LANG . GetFilterParams("filter_", false))); self::$objCAdminForm->arParams["FORM_ACTION"] = $APPLICATION->GetCurPage() . "?lang=" . LANG . GetFilterParams("filter_"); self::$objCAdminForm->Show(); }
<td width="40%"><?php echo $control->GetCustomLabelHTML(); ?> </td> <td width="60%"><?php echo FindUserID($prefix . 'USER_ID', $coupon['USER_ID'] > 0 ? $coupon['USER_ID'] : '', '', $couponFormID); ?> </td> </tr><?php $control->EndCustomField($prefix . 'USER_ID'); $control->AddEditField($prefix . 'MAX_USE', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_MAX_USE'), false, array(), $coupon['MAX_USE'] > 0 ? $coupon['MAX_USE'] : ''); $control->AddTextField($prefix . 'DESCRIPTION', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_DESCRIPTION'), $coupon['DESCRIPTION'], array(), false); if ($subWindow) { $control->Buttons(false, ''); } else { $control->Buttons(array('disabled' => $readOnly, 'back_url' => "sale_discount_coupons.php?lang=" . LANGUAGE_ID . GetFilterParams('filter_'))); } $control->Show(); ?> <script type="text/javascript"> BX.ready(function(){ var obCouponValue = BX('COUPON'), obCouponBtn = BX('COUPON_GENERATE'); if (!!obCouponValue && !!obCouponBtn) { BX.bind(obCouponBtn, 'click', function(){ var url, data; BX.showWait(); url = '/bitrix/tools/sale/generate_coupon.php';
$arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"), "ACTION" => $lAdmin->ActionRedirect("message_edit.php?ID=" . $f_ID)); $arActions[] = array("ICON" => "copy", "TEXT" => GetMessage("MAIN_ADMIN_ADD_COPY"), "ACTION" => $lAdmin->ActionRedirect("message_edit.php?COPY_ID=" . $f_ID)); if ($isAdmin) { $arActions[] = array("SEPARATOR" => true); $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"), "ACTION" => "if(confirm('" . GetMessage('CONFIRM_DEL_MESSAGE') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete")); } $row->AddActions($arActions); } // Footer $lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0"))); // Form with buttons $lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"), "activate" => GetMessage("MAIN_ADMIN_LIST_ACTIVATE"), "deactivate" => GetMessage("MAIN_ADMIN_LIST_DEACTIVATE"))); // $arr = array("REFERENCE" => $event_type_ref, "REFERENCE_ID" => $event_type_ref_id); // echo SelectBoxFromArray("EVENT_NAME", $arr, htmlspecialcharsbx($find_type_id)); // contextual menu (add, go_to_list) $aContext = array(array("TEXT" => GetMessage("ADD_TEMPL"), "LINK" => "message_edit.php?lang=" . LANG . '&' . GetFilterParams("find_" . $type . "_"), "TITLE" => GetMessage("ADD_TEMPL_TITLE"), "ICON" => "btn_new")); $lAdmin->AddAdminContextMenu($aContext); // Check information before outing $lAdmin->CheckListMode(); $APPLICATION->SetTitle(GetMessage("TITLE")); require $_SERVER["DOCUMENT_ROOT"] . BX_ROOT . "/modules/main/include/prolog_admin_after.php"; ?> <form name="find_form" method="GET" action="<?php echo $APPLICATION->GetCurPage(); ?> ?"> <?php $oFilter = new CAdminFilter($sTableID . "_filter", array(GetMessage('F_ID'), GetMessage('F_TYPE'), GetMessage('F_D_MODIF'), GetMessage('F_SITE'), GetMessage('F_ACTIVE'), GetMessage('F_FROM'), GetMessage('F_TO'), GetMessage('F_BCC'), GetMessage('F_THEME'), GetMessage('F_BODY_TYPE'), GetMessage('F_CONTENT'))); $oFilter->Begin(); ?> <tr>
$fields['DATE_MODIFY'] = new \Bitrix\Main\Type\DateTime(); $fields['MODIFIED_BY'] = $USER->GetID(); $result = CompanyTable::update($id, $fields); } else { $fields['XML_ID'] = $request->getPost('XML_ID'); $fields['DATE_CREATE'] = new \Bitrix\Main\Type\DateTime(); $fields['CREATED_BY'] = $USER->GetID(); $result = CompanyTable::add($fields); } if ($result && $result->isSuccess()) { $conn->commitTransaction(); $id = $result->getId(); if (strlen($request->getPost("apply")) == 0) { LocalRedirect("/bitrix/admin/sale_company.php?lang=" . $lang . "&" . GetFilterParams("filter_", false)); } else { LocalRedirect("/bitrix/admin/sale_company_edit.php?lang=" . $lang . "&ID=" . $id . "&" . GetFilterParams("filter_", false)); } } else { $conn->rollbackTransaction(); $errorMessage .= join("\n", $result->getErrorMessages()); } } } if ($id > 0) { $APPLICATION->SetTitle(str_replace("#ID#", $id, GetMessage("COMPANY_TITLE_UPDATE"))); } else { $APPLICATION->SetTitle(GetMessage("COMPANY_TITLE_ADD")); } require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php"; if ($id > 0) { $select = array('*', 'CREATED', 'MODIFIED');
$row->AddCalendarField('DATE_RATE'); $row->AddInputField("RATE_CNT", array("size" => "5")); $row->AddInputField("RATE", array("size" => "8")); $arActions = array(); $arActions[] = array("ICON" => "edit", "TEXT" => GetMessage("MAIN_ADMIN_MENU_EDIT"), "DEFAULT" => "Y", "ACTION" => $lAdmin->ActionRedirect("/bitrix/admin/currency_rate_edit.php?ID=" . $f_ID . "&lang=" . LANGUAGE_ID . GetFilterParams("filter_"))); if ($CURRENCY_RIGHT == "W") { $arActions[] = array("SEPARATOR" => true); $arActions[] = array("ICON" => "delete", "TEXT" => GetMessage("MAIN_ADMIN_MENU_DELETE"), "ACTION" => "if(confirm('" . GetMessage('CONFIRM_DEL_MESSAGE') . "')) " . $lAdmin->ActionDoGroup($f_ID, "delete")); } $row->AddActions($arActions); } $lAdmin->AddFooter(array(array("title" => GetMessage("MAIN_ADMIN_LIST_SELECTED"), "value" => $rsData->SelectedRowsCount()), array("counter" => true, "title" => GetMessage("MAIN_ADMIN_LIST_CHECKED"), "value" => "0"))); if ($CURRENCY_RIGHT == "W") { $lAdmin->AddGroupActionTable(array("delete" => GetMessage("MAIN_ADMIN_LIST_DELETE"))); } $aContext = array(array("ICON" => "btn_new", "TEXT" => GetMessage("CURRENCY_NEW_TITLE"), "LINK" => "/bitrix/admin/currency_rate_edit.php?lang=" . LANGUAGE_ID . GetFilterParams("filter_"), "TITLE" => GetMessage("CURRENCY_NEW_TITLE"))); $lAdmin->AddAdminContextMenu($aContext); $lAdmin->CheckListMode(); $APPLICATION->SetTitle(GetMessage("CURRENCY_TITLE")); require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php"; ?> <form method="get" action="<?php echo $APPLICATION->GetCurPage(); ?> " name="find_form"> <?php $filter->Begin(); ?> <tr> <td><?php echo GetMessage("curr_rates_date1");
} elseif (!$crmMode && $arPaySys["PSA_HAVE_RESULT"] == "Y" || strlen($arPaySys["PSA_RESULT_FILE"]) > 0) { $tabControl->AddSection("ps_stat", GetMessage("P_ORDER_PS_STATUS")); $tabControl->BeginCustomField("ORDER_PS_STATUS_REC", GetMessage("P_ORDER_PS_STATUS")); ?> <tr> <td><?echo $tabControl->GetCustomLabelHTML()?>:</td> <td><? if (!$boolLocked) { ?><a href="/bitrix/admin/sale_order_detail.php?ID=<?php echo $ID; ?> &action=ps_update&lang=<? echo LANGUAGE_ID; ?><?php echo GetFilterParams("filter_"); ?> &<?php echo bitrix_sessid_get(); ?> "><?php echo GetMessage("P_ORDER_PS_STATUS_UPDATE"); ?> >></a><? } else { ?><span style="text-decoration: line-through;" title="<? echo $strLockUserExt; ?>"><? echo GetMessage("P_ORDER_PS_STATUS_UPDATE"); ?></span><? } ?></td> </tr>