} elseif ($action == 'save_sticker') { if (isset($_POST['marker']['adjust'])) { $markerAdjust = serialize($_POST['marker']['adjust']); } else { $markerAdjust = ""; } $ID = CSticker::Edit(array('arFields' => array('ID' => intVal($_POST['id']), 'PAGE_URL' => $_POST['page_url'], 'PAGE_TITLE' => $_POST['page_title'], 'SITE_ID' => $_REQUEST['site_id'], 'PERSONAL' => $_POST['personal'] == 'Y' ? 'Y' : 'N', 'CONTENT' => $_POST['content'], 'POS_TOP' => intVal($_POST['top']), 'POS_LEFT' => intVal($_POST['left']), 'WIDTH' => intVal($_POST['width']), 'HEIGHT' => intVal($_POST['height']), 'COLOR' => intVal($_POST['color']), 'COLLAPSED' => $_POST['collapsed'] == 'Y' ? 'Y' : 'N', 'COMPLETED' => $_POST['completed'] == 'Y' ? 'Y' : 'N', 'CLOSED' => $_POST['closed'] == 'Y' ? 'Y' : 'N', 'DELETED' => $_POST['deleted'] == 'Y' ? 'Y' : 'N', 'MARKER_TOP' => isset($_POST['marker']['top']) ? intVal($_POST['marker']['top']) : 0, 'MARKER_LEFT' => isset($_POST['marker']['left']) ? intVal($_POST['marker']['left']) : 0, 'MARKER_WIDTH' => isset($_POST['marker']['width']) ? intVal($_POST['marker']['width']) : 0, 'MARKER_HEIGHT' => isset($_POST['marker']['height']) ? intVal($_POST['marker']['height']) : 0, 'MARKER_ADJUST' => $markerAdjust))); CUserOptions::SetOption('fileman', "stickers_last_color", intVal($_POST['color'])); if ($ID > 0) { ?> <script> window.__bxst_result['<?php echo intVal($_POST['reqid']); ?> '] = <?php echo CUtil::PhpToJSObject(CSticker::GetById($ID)); ?> ; </script> <?php } else { } } elseif ($action == 'show_list') { if (isset($_REQUEST['list_action']) && in_array($_REQUEST['list_action'], array('del', 'restore', 'hide'))) { $arIds = array(); for ($i = 0; $i < count($_REQUEST['list_ids']); $i++) { if (intVal($_REQUEST['list_ids'][$i]) > 0) { $arIds[] = intVal($_REQUEST['list_ids'][$i]); } } if ($_REQUEST['list_action'] == 'del') {