function Editor_Scripts() { global $act; if ($act == 'save') { $this->settings['script'] = manage_template_receive_from_selector('display'); $this->SaveSettings(); } $full = content_url_get_full(); formo('title=Настройка скриптов'); settings_formo($full . '&act=save'); println('Скрипт отображения статьи:'); manage_template_draw_selector_for_script('display', $this->settings['script']); settings_formc(''); formc(); }
} </script> <form action=".?section=<?php echo $section; ?> &action=save_name&id=<?php echo $id; ?> " method="post" onsubmit="check (this); return false;"> Секция: <input type="text" id="section" name="section" value="<?php echo $d['section']; ?> " class="txt block"><div id="hr"></div> Имя опции данных: <input type="text" id="name" name="name" value="<?php echo $d['name']; ?> " class="txt block"> <div class="formPast"> <button class="submitBtn" type="button" onclick="nav ('.?section=<?php echo $section; ?> ');">Назад</button> <button class="submitBtn" type="submit">Сохранить</button> </div> </form> <?php formc();
function Editor_ManageScripts() { global $act; formo('title=Управление скрптами отображения списка публикаций;'); if ($act == 'save') { $this->settings['script'] = manage_template_receive_from_selector($this->GetClassName() . '_list'); $this->settings['itemScript'] = manage_template_receive_from_selector($this->GetClassName() . '_short'); $this->settings['fullScript'] = manage_template_receive_from_selector($this->GetClassName() . '_full'); $this->SaveSettings(); } settings_formo(content_url_get_full() . '&act=save'); println('Скрипт отображения списка публикаций:'); manage_template_draw_selector_for_script($this->GetClassName() . '_list', $this->settings['script']); println('<div id="hr"></div>'); println('Скрипт отображения публикации:'); manage_template_draw_selector_for_script($this->GetClassName() . '_short', $this->settings['itemScript']); println('<div id="hr"></div>'); if ($this->settings['detailed']) { println('Скрипт отображения подробной публикации:'); manage_template_draw_selector_for_script($this->GetClassName() . '_full', $this->settings['fullScript']); println('<div id="hr"></div>'); } settings_formc(); formc(); }
function Editor_ContentManage() { global $act; $list = wiki_content_get_list(); if ($act == 'save') { $this->UpdateContentsLookup($list); } formo('title=Следить за разделами;'); println('<form action="' . content_url_get_full() . '&act=save" method="post">'); $this->PrintContents(1, $list); settings_form_buttons(); println('</form>'); formc(); }
function Editor_LogManage() { global $active, $act, $CORE; $CORE->AddStyle('log'); if (isset($active)) { if ($active == '0') { $this->settings['active'] = false; } else { $this->settings['active'] = true; } $this->UpdateSettings(); } if ($act == 'free') { $this->FreeLogs(); } redirector_add_skipvar('act', 'free'); $url = content_url_get_full(); $update_active = 'nav (\'' . $url . '&active=' . ($this->settings['active'] ? '0' : '1') . '\');'; $free_logs = 'cnav (\'Вы уверены что хотите очистить все файлы журналов?\', \'' . $url . '&act=free\');'; formo('title=Управление сервисом'); ?> <input type="checkbox" class="cb" onclick="<?php echo $update_active; ?> " value="1"<?php echo $this->settings['active'] ? ' checked' : ''; ?> > Вести журналирование <i>(если данная опция неактивна, то сервис журналирования продолжит существовать, однако все журналирование будет отключено)</i><div id="hr"></div> <button class="block" onclick="<?php echo $free_logs; ?> ">Очистить файлы журналов</button> <?php formc(); }
function Editor_ManageScripts() { global $act; formo('title=Управление скрптами отображения раздела;'); if ($act == 'save') { $this->settings['script'] = manage_template_receive_from_selector($this->GetClassName() . '_display'); $this->SaveSettings(); } settings_formo(content_url_get_full() . '&act=save'); println('Скрипт отображения статьи:'); manage_template_draw_selector_for_script($this->GetClassName() . '_display', $this->settings['script']); settings_formc(); formc(); }
function Draw() { global $CORE; if ($_GET['action'] != 'edit') { redirector_add_skipvar('file'); } $CORE->AddStyle('xpfs-browser'); $volumes = ''; for ($i = 0, $n = count($this->volumes); $i < $n; ++$i) { $volumes .= prepare_arg('<option value="' . htmlspecialchars($this->volumes[$i]) . '"' . ($this->volume == $this->volumes[$i] ? ' selected' : '') . '>' . htmlspecialchars($this->volumes[$i]) . '</option>'); } formo('title=<table width\\="100%"><tr><td>Браузер файловой системы' . '</td><td width\\="150px">Том:' . '<select style\\="margin-left: 6px\\; width: 100px" ' . 'onchange\\="nav (\'./?volume\\=\'+this.value)">' . $volumes . '</select></td></tr></table>'); if ($this->volume == '') { println('<i>Нет томов для просмотра</i>'); } else { if ($_GET['action'] == 'edit') { $this->drawEditForm($_GET['file']); } else { if ($_GET['action'] == 'save') { $this->XPFS->writeVolumeBlock($this->volume, $this->getFullPath($_GET['file']), stripslashes($_POST['xpfs_content'])); } } println('<table class="list xpfs_browser" width="100%">' . '<tr class="h"><th class="first">Путь: ' . htmlspecialchars($this->path) . '</th><th width="90">' . 'Время</th><th width="80">Доступ</th>' . '<th width="80" class="last">Атрибут</th></tr>' . "\n"); $listing = $this->XPFS->lsVolumeDir($this->volume, $this->path); $this->drawUpLink(count($listing) == 0); for ($i = 0, $n = count($listing); $i < $n; ++$i) { $this->drawNode($listing[$i], $i == $n - 1); } println('</table>'); println('<form action="' . $this->prepareURL() . '" method="post">'); println('<div class="xpfs_cmdline"><table class="clear" ' . 'width="100%"><tr><td width="120px"><b>Командная строка:</b>' . '</td><td><input type="text" class="txt block" ' . 'name="xpfs_command"></td><td width="80px">' . '<button style="margin-left: 8px; width: 24px" ' . 'type="submit">»</button></td></tr></table></div>'); println('</form>'); } formc(); }