Exemple #1
0
     $authorflag->addOption('0', $jieqiLang['obook']['not_auth_author']);
     $obook_form->addElement($authorflag);
 }
 $agent = new JieqiFormText($jieqiLang['obook']['table_obook_agent'], 'agent', 30, 30, $obook->getVar('agent', 'e'));
 $agent->setDescription($jieqiLang['obook']['author_note']);
 $obook_form->addElement($agent);
 $fullflag = new JieqiFormRadio($jieqiLang['obook']['table_obook_fullflag'], 'fullflag', $obook->getVar('fullflag', 'e'));
 $fullflag->addOption('0', $jieqiLang['obook']['obook_not_full']);
 $fullflag->addOption('1', $jieqiLang['obook']['obook_is_full']);
 $obook_form->addElement($fullflag);
 if ($obook->getVar('articleid', 'n') > 0) {
     $freechapter = 1;
 } else {
     $freechapter = 0;
 }
 $freecheck = new JieqiFormCheckBox($jieqiLang['obook']['article_link'], 'freechapter', $freechapter);
 $freecheck->addOption(1, $jieqiLang['obook']['link_to_article']);
 $obook_form->addElement($freecheck);
 $obook_form->addElement(new JieqiFormTextArea($jieqiLang['obook']['table_obook_intro'], 'intro', $obook->getVar('intro', 'e'), 6, 60));
 $obook_form->addElement(new JieqiFormTextArea($jieqiLang['obook']['table_obook_notice'], 'notice', $obook->getVar('notice', 'e'), 6, 60));
 $spic = new JieqiFormFile($jieqiLang['obook']['obook_small_image'], 'obookspic', 30);
 $spic->setDescription(sprintf($jieqiLang['obook']['obook_image_type'], $jieqiConfigs['obook']['imagetype']));
 $obook_form->addElement($spic);
 $lpic = new JieqiFormFile($jieqiLang['obook']['obook_large_image'], 'obooklpic', 30);
 $lpic->setDescription(sprintf($jieqiLang['obook']['obook_image_type'], $jieqiConfigs['obook']['imagetype']));
 $obook_form->addElement($lpic);
 $obook_form->addElement(new JieqiFormHidden('action', 'update'));
 $obook_form->addElement(new JieqiFormHidden('id', $_REQUEST['id']));
 $obook_form->addElement(new JieqiFormButton(' ', 'submit', LANG_SUBMIT, 'submit'));
 $jieqiTpl->assign('jieqi_contents', '<br />' . $obook_form->render(JIEQI_FORM_MIDDLE) . '<br />');
 include_once JIEQI_ROOT_PATH . '/footer.php';
Exemple #2
0
    $checkbox->addOption('makezip', $jieqiLang['article']['repack_zip']);
    $checkbox->addOption('makefull', $jieqiLang['article']['repack_fullpage']);
    $checkbox->addOption('maketxtfull', $jieqiLang['article']['repack_txtfullpage']);
    $checkbox->addOption('makeumd', $jieqiLang['article']['repack_umdpage']);
    $checkbox->addOption('makejar', $jieqiLang['article']['repack_jarpage']);
    $repack_form->addElement($checkbox, false);
    $repack_form->addElement(new JieqiFormHidden('action', 'packwithid'));
    $repack_form->addElement(new JieqiFormButton('&nbsp;', 'submit', $jieqiLang['article']['repack_start_button'], 'submit'));
    $timepack_form = new JieqiThemeForm($jieqiLang['article']['repack_use_time'], 'timerepack', $article_static_url . '/admin/batchrepack.php');
    $starttime = new JieqiFormText($jieqiLang['article']['repack_start_time'], 'starttime', 20, 20, date('Y-m-d 00:00:00'));
    $starttime->setDescription($jieqiLang['article']['repack_time_format']);
    $timepack_form->addElement($starttime, true);
    $stoptime = new JieqiFormText($jieqiLang['article']['repack_end_time'], 'stoptime', 20, 20, date('Y-m-d H:i:s'));
    $stoptime->setDescription($jieqiLang['article']['repack_time_format']);
    $timepack_form->addElement($stoptime);
    $checkbox1 = new JieqiFormCheckBox($jieqiLang['article']['repack_select'], 'packflag');
    $checkbox1->addOption('makeopf', $jieqiLang['article']['repack_opf']);
    $checkbox1->addOption('makehtml', $jieqiLang['article']['repack_html']);
    $checkbox1->addOption('makezip', $jieqiLang['article']['repack_zip']);
    $checkbox1->addOption('makefull', $jieqiLang['article']['repack_fullpage']);
    $checkbox1->addOption('maketxtfull', $jieqiLang['article']['repack_txtfullpage']);
    $checkbox1->addOption('makeumd', $jieqiLang['article']['repack_umdpage']);
    $checkbox1->addOption('makejar', $jieqiLang['article']['repack_jarpage']);
    $timepack_form->addElement($checkbox1, false);
    $timepack_form->addElement(new JieqiFormHidden('action', 'packwithtime'));
    $timepack_form->addElement(new JieqiFormButton('&nbsp;', 'submit', $jieqiLang['article']['repack_start_button'], 'submit'));
    $jieqiTpl->assign('repack_form', $repack_form->render(JIEQI_FORM_MIDDLE) . '<br /><br />' . $timepack_form->render(JIEQI_FORM_MIDDLE));
    $jieqiTpl->setCaching(0);
    $jieqiTset['jieqi_contents_template'] = $jieqiModules['article']['path'] . '/templates/admin/batchrepack.html';
    include_once JIEQI_ROOT_PATH . '/admin/footer.php';
}
Exemple #3
0
 $replace_form->addElement(new JieqiFormHidden('action', 'replacewithid'));
 $replace_form->addElement(new JieqiFormButton('&nbsp;', 'submit', $jieqiLang['article']['replace_start_button'], 'submit'));
 $timereplace_form = new JieqiThemeForm($jieqiLang['article']['replace_use_time'], 'timereplace', $article_static_url . '/admin/batchreplace.php');
 $starttime = new JieqiFormText($jieqiLang['article']['replace_start_time'], 'starttime', 20, 20, date('Y-m-d 00:00:00'));
 $starttime->setDescription($jieqiLang['article']['replace_time_format']);
 $timereplace_form->addElement($starttime, true);
 $stoptime = new JieqiFormText($jieqiLang['article']['replace_end_time'], 'stoptime', 20, 20, date('Y-m-d H:i:s'));
 $stoptime->setDescription($jieqiLang['article']['replace_time_format']);
 $timereplace_form->addElement($stoptime);
 $timereplace_form->addElement(new JieqiFormTextArea($jieqiLang['article']['replace_search_string'], 'txtsearch', '', 5, 60), true);
 $timereplace_form->addElement(new JieqiFormTextArea($jieqiLang['article']['replace_to'], 'txtreplace', '', 5, 60), false);
 $radio = new JieqiFormRadio($jieqiLang['article']['replace_type'], 'replacetype', 0);
 $radio->addOption('0', $jieqiLang['article']['replace_as_block']);
 $radio->addOption('1', $jieqiLang['article']['replace_as_line']);
 $timereplace_form->addElement($radio, false);
 $checkbox = new JieqiFormCheckBox($jieqiLang['article']['replace_filetype'], 'replaceflag');
 $checkbox->addOption('filetxt', $jieqiLang['article']['replace_file_txt']);
 $checkbox->addOption('filehtml', $jieqiLang['article']['replace_file_html']);
 $checkbox->addOption('filefull', $jieqiLang['article']['replace_file_full']);
 $timereplace_form->addElement($checkbox, false);
 $sizebox = new JieqiFormSelect($jieqiLang['article']['replace_filesize'], 'filesize');
 $sizebox->addOption('sizeunlimit', $jieqiLang['article']['replace_size_nolimit']);
 $sizebox->addOption('sizeless', $jieqiLang['article']['replace_size_less']);
 $sizebox->addOption('sizemore', $jieqiLang['article']['replace_size_more']);
 $timereplace_form->addElement($sizebox, false);
 $timereplace_form->addElement(new JieqiFormHidden('action', 'replacewithtime'));
 $timereplace_form->addElement(new JieqiFormButton('&nbsp;', 'submit', $jieqiLang['article']['replace_start_button'], 'submit'));
 $jieqiTpl->assign('replace_form', $replace_form->render(JIEQI_FORM_MIDDLE) . '<br /><br />' . $timereplace_form->render(JIEQI_FORM_MIDDLE));
 $jieqiTpl->setCaching(0);
 $jieqiTset['jieqi_contents_template'] = $jieqiModules['article']['path'] . '/templates/admin/batchreplace.html';
 include_once JIEQI_ROOT_PATH . '/admin/footer.php';