$collect_form->addElement($indexelement); $fullelement = new JieqiFormTextArea($jieqiLang['article']['rule_article_full'], 'fullarticle', htmlspecialchars(jieqi_collectstop($jieqiCollect['fullarticle']), ENT_QUOTES), 5, 60); $fullelement->setIntro($jieqiLang['article']['rule_articlefull_note']); $collect_form->addElement($fullelement); $collect_form->addElement(new JieqiFormLabel('', $jieqiLang['article']['collect_rule_index'])); $collect_form->addElement(new JieqiFormText($jieqiLang['article']['rule_index_url'], 'urlindex', 60, 250, htmlspecialchars($jieqiCollect['urlindex'], ENT_QUOTES)), true); $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_volume_name'], 'volume', htmlspecialchars(jieqi_collectstop($jieqiCollect['volume']), ENT_QUOTES), 5, 60)); $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_chapter_name'], 'chapter', htmlspecialchars(jieqi_collectstop($jieqiCollect['chapter']), ENT_QUOTES), 5, 60), true); $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_chapter_id'], 'chapterid', htmlspecialchars(jieqi_collectstop($jieqiCollect['chapterid']), ENT_QUOTES), 5, 60), true); $collect_form->addElement(new JieqiFormLabel('', $jieqiLang['article']['collect_rule_chapter'])); $collect_form->addElement(new JieqiFormText($jieqiLang['article']['rule_chapter_url'], 'urlchapter', 60, 250, htmlspecialchars($jieqiCollect['urlchapter'], ENT_QUOTES)), true); $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_chapter_content'], 'content', htmlspecialchars(jieqi_collectstop($jieqiCollect['content']), ENT_QUOTES), 5, 60), true); $filterelement = new JieqiFormTextArea($jieqiLang['article']['rule_chapter_filter'], 'contentfilter', htmlspecialchars(jieqi_collectstop($jieqiCollect['contentfilter']), ENT_QUOTES), 5, 60); $filterelement->setIntro($jieqiLang['article']['rule_chapterfilter_note']); $collect_form->addElement($filterelement); $replaceelement = new JieqiFormTextArea($jieqiLang['article']['rule_chapter_replace'], 'contentreplace', htmlspecialchars(jieqi_collectstop($jieqiCollect['contentreplace']), ENT_QUOTES), 5, 60); $replaceelement->setIntro($jieqiLang['article']['rule_chapterreplace_note']); $collect_form->addElement($replaceelement); $collectimage = new JieqiFormRadio($jieqiLang['article']['rule_or_articleimage'], 'collectimage', $jieqiCollect['collectimage']); $collectimage->addOption('1', LANG_YES); $collectimage->addOption('0', LANG_NO); $collect_form->addElement($collectimage); //图片处理 $collect_form->addElement(new JieqiFormLabel('', $jieqiLang['article']['collect_rule_imagetranslate'])); $imagetranslate = new JieqiFormRadio($jieqiLang['article']['rule_or_imagetranslate'], 'imagetranslate', intval($jieqiCollect['imagetranslate'])); $imagetranslate->addOption('1', LANG_YES); $imagetranslate->addOption('0', LANG_NO); $imagetranslate->setDescription($jieqiLang['article']['rule_or_imagetranslatedec']); $collect_form->addElement($imagetranslate); $addimagewater = new JieqiFormRadio($jieqiLang['article']['rule_or_imagewater'], 'addimagewater', intval($jieqiCollect['addimagewater'])); $addimagewater->addOption('1', LANG_YES);
} break; } include_once JIEQI_ROOT_PATH . '/admin/header.php'; jieqi_getconfigs(JIEQI_MODULE_NAME, 'configs'); $article_static_url = empty($jieqiConfigs['article']['staticurl']) ? $jieqiModules['article']['url'] : $jieqiConfigs['article']['staticurl']; $article_dynamic_url = empty($jieqiConfigs['article']['dynamicurl']) ? $jieqiModules['article']['url'] : $jieqiConfigs['article']['dynamicurl']; $jieqiTpl->assign('article_static_url', $article_static_url); $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url); $jieqiTpl->assign('sitename', $jieqiCollect['sitename']); $jieqiTpl->assign('config', $_REQUEST['config']); $jieqiTpl->assign_by_ref('collectrows', $jieqiCollect['listcollect']); //增加规则的表 include_once JIEQI_ROOT_PATH . '/lib/html/formloader.php'; $collect_form = new JieqiThemeForm($jieqiLang['article']['add_batch_collectrule'], 'collectnew', $article_static_url . '/admin/collectpage.php'); $collect_form->addElement(new JieqiFormLabel($jieqiLang['article']['collect_rule_note'], $jieqiLang['article']['collect_rule_description'])); $collect_form->addElement(new JieqiFormText($jieqiLang['article']['collect_rule_name'], 'title', 60, 60, ''), true); $collect_form->addElement(new JieqiFormText($jieqiLang['article']['collect_rule_url'], 'urlpage', 60, 250, ''), true); $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['collect_rule_articleid'], 'articleid', '', 5, 60), true); $nextpageid = new JieqiFormTextArea($jieqiLang['article']['rule_next_pageid'], 'nextpageid', '', 5, 60); $nextpageid->setDescription($jieqiLang['article']['rule_nextpage_note']); $collect_form->addElement($nextpageid); $collect_form->addElement(new JieqiFormText($jieqiLang['article']['rule_start_pageid'], 'startpageid', 60, 60, '')); $collect_form->addElement(new JieqiFormText($jieqiLang['article']['rule_max_pagenum'], 'maxpagenum', 60, 10, '')); $collect_form->addElement(new JieqiFormHidden('config', htmlspecialchars($_REQUEST['config'], ENT_QUOTES))); $collect_form->addElement(new JieqiFormHidden('action', 'new')); $collect_form->addElement(new JieqiFormButton(' ', 'submit', $jieqiLang['article']['rule_add_new'], 'submit')); $jieqiTpl->assign('addnewtable', $collect_form->render(JIEQI_FORM_MIDDLE)); $jieqiTpl->setCaching(0); $jieqiTset['jieqi_contents_template'] = $jieqiModules['article']['path'] . '/templates/admin/collectpage.html'; include_once JIEQI_ROOT_PATH . '/admin/footer.php';