Exemple #1
0
        include_once JIEQI_ROOT_PATH . '/admin/header.php';
        $jieqiTpl->assign('article_static_url', $article_static_url);
        $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
        include_once JIEQI_ROOT_PATH . '/lib/html/formloader.php';
        $collect_form = new JieqiThemeForm($jieqiLang['article']['batch_collect_usepage'], 'frmcollect', $article_static_url . '/admin/pagecollect.php');
        $collect_form->addElement(new JieqiFormLabel($jieqiLang['article']['collect_siteid'], $jieqiCollect['sitename']));
        $collectname = new JieqiFormSelect($jieqiLang['article']['collect_name'], 'collectname', '0');
        if (is_array($jieqiCollect['listcollect'])) {
            foreach ($jieqiCollect['listcollect'] as $k => $v) {
                $collectname->addOption($k, $v['title']);
            }
        }
        $collect_form->addElement($collectname);
        $startpageid = new JieqiFormText($jieqiLang['article']['collect_start_pageid'], 'startpageid', 30, 11);
        $startpageid->setDescription($jieqiLang['article']['collect_page_emptynote']);
        $collect_form->addElement($startpageid);
        $maxpagenum = new JieqiFormText($jieqiLang['article']['collect_max_pagenum'], 'maxpagenum', 30, 11);
        $maxpagenum->setDescription($jieqiLang['article']['collect_page_note']);
        $collect_form->addElement($maxpagenum);
        $notaddnew = new JieqiFormRadio($jieqiLang['article']['collect_or_addnew'], 'notaddnew', 0);
        $notaddnew->addOption(0, $jieqiLang['article']['collect_is_addnew']);
        $notaddnew->addOption(1, $jieqiLang['article']['collect_not_addnew']);
        $collect_form->addElement($notaddnew);
        $collect_form->addElement(new JieqiFormLabel($jieqiLang['article']['collect_not_addnew'], $jieqiLang['article']['collect_page_note']));
        $collect_form->addElement(new JieqiFormHidden('siteid', $_REQUEST['siteid']));
        $collect_form->addElement(new JieqiFormHidden('action', 'collect'));
        $collect_form->addElement(new JieqiFormButton(' ', 'submit', $jieqiLang['article']['collect_start_button'], 'submit'));
        $jieqiTpl->assign('jieqi_contents', '<br />' . $collect_form->render(JIEQI_FORM_MIDDLE) . '<br />');
        include_once JIEQI_ROOT_PATH . '/admin/footer.php';
        break;
}
Exemple #2
0
 $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);
 $addimagewater->addOption('0', LANG_NO);
 $addimagewater->setDescription($jieqiLang['article']['rule_or_imagewaterdec']);
 $collect_form->addElement($addimagewater);
 $imagebgcolor = new JieqiFormText($jieqiLang['article']['rule_image_bgcolor'], 'imagebgcolor', 60, 20, htmlspecialchars($jieqiCollect['imagebgcolor'], ENT_QUOTES));
 $imagebgcolor->setDescription($jieqiLang['article']['rule_image_bgcolordec']);
 $collect_form->addElement($imagebgcolor);
 $imageareaclean = new JieqiFormText($jieqiLang['article']['rule_image_areaclean'], 'imageareaclean', 60, 1000, htmlspecialchars($jieqiCollect['imageareaclean'], ENT_QUOTES));
 $imageareaclean->setDescription($jieqiLang['article']['rule_image_areacleandec']);
 $collect_form->addElement($imageareaclean);
 $imagecolorclean = new JieqiFormText($jieqiLang['article']['rule_image_colorclean'], 'imagecolorclean', 60, 1000, htmlspecialchars($jieqiCollect['imagecolorclean'], ENT_QUOTES));
 $imagecolorclean->setDescription($jieqiLang['article']['rule_image_colorcleandec']);
 $collect_form->addElement($imagecolorclean);
 $collect_form->addElement(new JieqiFormHidden('action', 'edit'));
 $collect_form->addElement(new JieqiFormHidden('config', htmlspecialchars($_REQUEST['config'], ENT_QUOTES)));
Exemple #3
0
    case 'edit':
    default:
        //包含区块参数(定制区块)
        jieqi_getconfigs('article', 'authorblocks', 'jieqiBlocks');
        include_once JIEQI_ROOT_PATH . '/header.php';
        $jieqiTpl->assign('article_static_url', $article_static_url);
        $jieqiTpl->assign('article_dynamic_url', $article_dynamic_url);
        include_once JIEQI_ROOT_PATH . '/lib/html/formloader.php';
        $vote_form = new JieqiThemeForm($jieqiLang['article']['article_vote_edit'], 'editvote', $article_static_url . '/voteedit.php');
        $vote_form->addElement(new JieqiFormText($jieqiLang['article']['table_avote_title'], 'title', 50, 100, $avote->getVar('title', 'e')), true);
        for ($i = 1; $i <= $jieqiConfigs['article']['articlevote']; $i++) {
            $vote_form->addElement(new JieqiFormText(sprintf($jieqiLang['article']['article_vote_item'], $i), 'item' . $i, 50, 100, $avote->getVar('item' . $i, 'e')));
        }
        $mulselect = new JieqiFormRadio($jieqiLang['article']['article_vote_mulselect'], 'mulselect', $avote->getVar('mulselect', 'e'));
        $mulselect->addOption('0', $jieqiLang['article']['article_vote_single']);
        $mulselect->addOption('1', $jieqiLang['article']['article_vote_multiterm']);
        $vote_form->addElement($mulselect);
        $ispublish = new JieqiFormRadio($jieqiLang['article']['article_vote_publish'], 'ispublish', $avote->getVar('ispublish', 'e'));
        $ispublish->addOption('1', $jieqiLang['article']['article_votepub_yes']);
        $ispublish->addOption('0', $jieqiLang['article']['article_votepub_no']);
        $vote_form->addElement($ispublish);
        $vote_form->addElement(new JieqiFormHidden('action', 'update'));
        $vote_form->addElement(new JieqiFormHidden('id', $_REQUEST['id']));
        $vote_form->addElement(new JieqiFormHidden('aid', $_REQUEST['aid']));
        $vote_form->addElement(new JieqiFormButton('&nbsp;', 'submit', LANG_SUBMIT, 'submit'));
        $jieqiTpl->assign('authorarea', 1);
        $jieqiTpl->setCaching(1);
        $jieqiTpl->assign('jieqi_contents', $vote_form->render(JIEQI_FORM_MIDDLE));
        include_once JIEQI_ROOT_PATH . '/footer.php';
        break;
}
Exemple #4
0
 include_once JIEQI_ROOT_PATH . '/lib/html/formloader.php';
 $jieqiTpl->assign('obook_static_url', $obook_static_url);
 $jieqiTpl->assign('obook_dynamic_url', $obook_dynamic_url);
 $chapter_form = new JieqiThemeForm(sprintf($jieqiLang['obook']['chapter_edit'], $typename), 'chapteredit', $obook_static_url . '/chapteredit.php');
 $chapter_form->addElement(new JieqiFormLabel($jieqiLang['obook']['table_ochapter_obookname'], $obook->getVar('obookname')));
 $chapter_form->addElement(new JieqiFormText(sprintf($jieqiLang['obook']['chapter_volume_title'], $typename), 'chaptername', 50, 50, $chapter->getVar('chaptername', 'e')), true);
 if ($chapter->getVar('chaptertype') == 1) {
     $tmpvar = '1';
 } else {
     if (jieqi_checkpower($jieqiPower['obook']['customprice'], $jieqiUsersStatus, $jieqiUsersGroup, true)) {
         $priceobj = new JieqiFormText($jieqiLang['obook']['table_ochapter_saleprice'], 'saleprice', 20, 10, $chapter->getVar('saleprice', 'e'));
         $priceobj->setDescription(JIEQI_EGOLD_NAME . $jieqiLang['obook']['chapter_saleprice_note']);
         $chapter_form->addElement($priceobj, false);
     }
     if ($jieqiConfigs['obook']['authtypeset'] == 1) {
         $typeset = new JieqiFormRadio($jieqiLang['obook']['table_ochapter_typeset'], 'typeset', $jieqiConfigs['obook']['autotypeset']);
         $typeset->addOption('1', $jieqiLang['obook']['auto_typeset']);
         $typeset->addOption('0', $jieqiLang['obook']['no_typeset']);
         $chapter_form->addElement($typeset);
     }
     $tmpvar = '0';
     include_once $jieqiModules['obook']['path'] . '/class/ocontent.php';
     $content_handler =& JieqiOcontentHandler::getInstance('JieqiOcontentHandler');
     $criteria = new CriteriaCompo(new Criteria('ochapterid', $_REQUEST['id']));
     $criteria->setLimit(1);
     $content_handler->queryObjects($criteria);
     $content = $content_handler->getObject();
     if (is_object($content)) {
         $chapter_form->addElement(new JieqiFormTextArea($jieqiLang['obook']['table_ochapter_chaptercontent'], 'chaptercontent', $content->getVar('ocontent', 'e'), 15, 60));
     } else {
         $chapter_form->addElement(new JieqiFormTextArea($jieqiLang['obook']['table_ochapter_chaptercontent'], 'chaptercontent', '', 15, 60));
Exemple #5
0
     //$authorname->setDescription('发表自己作品请留空');
     $obook_form->addElement($authorname);
     if ($obook->getVar('authorid') > 0) {
         $tmpvar = '1';
     } else {
         $tmpvar = '0';
     }
     $authorflag = new JieqiFormRadio($jieqiLang['obook']['obook_author_flag'], 'authorflag', $tmpvar);
     $authorflag->addOption('1', $jieqiLang['obook']['auth_to_author']);
     $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']));
Exemple #6
0
        $blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_contenttype'], $tmpary[$block->getVar('contenttype')]));
    } else {
        $blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_contenttype'], LANG_UNKNOWN));
    }
}
//区块内容
if ($block->getVar('canedit') == 1) {
    $blocks_form->addElement(new JieqiFormTextArea($jieqiLang['system']['table_blocks_content'], 'content', $block->getVar('content', 'e'), 10, 60));
} else {
    //区块描述
    $blockdesc = trim($block->getVar('description', 'n'));
    if (!empty($blockdesc)) {
        $blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_description'], $blockdesc));
    }
}
//参数设置
if ($block->getVar('hasvars')) {
    $blocks_form->addElement(new JieqiFormTextArea($jieqiLang['system']['table_blocks_blockvars'], 'blockvars', $block->getVar('vars', 'e'), 3, 60));
    $blocks_form->addElement(new JieqiFormText($jieqiLang['system']['block_template_file'], 'blocktemplate', 30, 50, $block->getVar('template', 'e')));
    $saveradio = new JieqiFormRadio($jieqiLang['system']['block_save_type'], 'savetype', 0);
    $saveradio->addOptionArray(array('0' => $jieqiLang['system']['block_save_self'], '1' => $jieqiLang['system']['block_save_another']));
    $blocks_form->addElement($saveradio);
    if ($block->getVar('hasvars') == 2) {
        $blocks_form->addElement(new JieqiFormHidden('cacheupdate', '1'));
    }
}
$blocks_form->addElement(new JieqiFormHidden('action', 'update'));
$blocks_form->addElement(new JieqiFormHidden('id', $block->getVar('bid')));
$blocks_form->addElement(new JieqiFormButton('&nbsp;', 'submit', $jieqiLang['system']['save_block'], 'submit'));
$jieqiTpl->assign('jieqi_contents', '<br />' . $blocks_form->render(JIEQI_FORM_MIDDLE) . '<br />');
include_once JIEQI_ROOT_PATH . '/admin/footer.php';
Exemple #7
0
            $group_select = new JieqiFormSelect($jieqiLang['system']['table_users_groupid'], 'groupid', $user->getVar('groupid', 'e'));
            foreach ($jieqiGroups as $key => $val) {
                $group_select->addOption($key, $val);
            }
            $edit_form->addElement($group_select, true);
        }
        $edit_form->addElement(new JieqiFormText($jieqiLang['system']['table_users_experience'], 'experience', 25, 11, $user->getVar('experience', 'e')));
        $edit_form->addElement(new JieqiFormText($jieqiLang['system']['table_users_score'], 'score', 25, 11, $user->getVar('score', 'e')));
        if ($adminlevel >= 3) {
            $edit_form->addElement(new JieqiFormText(JIEQI_EGOLD_NAME, 'egold', 25, 11, $user->getVar('egold', 'e')));
            $edit_form->addElement(new JieqiFormText($jieqiLang['system']['table_users_esilver'], 'esilver', 25, 11, $user->getVar('esilver', 'e')));
            $isvip = new JieqiFormRadio($jieqiLang['system']['table_users_isvip'], 'isvip', $user->getVar('isvip', 'e'));
            $isvip->addOption(0, $jieqiLang['system']['user_no_vip']);
            $isvip->addOption(1, $jieqiLang['system']['user_is_vip']);
            $isvip->addOption(2, $jieqiLang['system']['user_super_vip']);
            $edit_form->addElement($isvip);
        }
        if ($adminlevel >= 4) {
            $yesno = new JieqiFormRadio($jieqiLang['system']['delete_user'], 'deluser', 0);
            $yesno->addOption(0, LANG_NO);
            $yesno->addOption(1, LANG_YES);
            $edit_form->addElement($yesno);
        }
        $edit_form->addElement(new JieqiFormTextArea($jieqiLang['system']['user_change_reason'], 'reason', '', 6, 60), true);
        $edit_form->addElement(new JieqiFormHidden('action', 'update'));
        $edit_form->addElement(new JieqiFormHidden('id', $_REQUEST['id']));
        $edit_form->addElement(new JieqiFormButton('&nbsp;', 'submit', $jieqiLang['system']['user_save_change'], 'submit'));
        $jieqiTpl->assign('jieqi_contents', '<br />' . $edit_form->render(JIEQI_FORM_MIDDLE) . '<br />');
        include_once JIEQI_ROOT_PATH . '/admin/footer.php';
        break;
}
Exemple #8
0
include_once JIEQI_ROOT_PATH . '/lib/html/formloader.php';
$blocks_form = new JieqiThemeForm($jieqiLang['system']['add_custom_block'], 'blocksnew', JIEQI_URL . '/admin/blocks.php');
$blocks_form->addElement(new JieqiFormText($jieqiLang['system']['table_blocks_blockname'], 'blockname', 30, 50, ''), true);
//模块选择
$modselect = new JieqiFormSelect($jieqiLang['system']['table_blocks_modname'], 'modname');
$modselect->addOptionArray($modules);
$blocks_form->addElement($modselect);
//显示位置
$sideary = $blocks_handler->getSideary();
$sideselect = new JieqiFormSelect($jieqiLang['system']['table_blocks_side'], 'side');
$sideselect->addOptionArray($sideary);
$blocks_form->addElement($sideselect);
//排列序号
$blocks_form->addElement(new JieqiFormText($jieqiLang['system']['table_blocks_weight'], 'weight', 8, 8, '0'));
//是否显示
$showradio = new JieqiFormRadio($jieqiLang['system']['table_blocks_publish'], 'publish', 3);
$showradio->addOption(0, $jieqiLang['system']['block_show_no']);
$showradio->addOption(1, $jieqiLang['system']['block_show_logout']);
$showradio->addOption(2, $jieqiLang['system']['block_show_login']);
$showradio->addOption(3, $jieqiLang['system']['block_show_both']);
$blocks_form->addElement($showradio);
//区块标题
$blocks_form->addElement(new JieqiFormTextArea($jieqiLang['system']['table_blocks_title'] . '(HTML)', 'title', '', 3, 60));
//区块内容
$blocks_form->addElement(new JieqiFormTextArea($jieqiLang['system']['table_blocks_content'] . '(HTML格式)', 'content', '', 10, 60));
$blocks_form->addElement(new JieqiFormHidden('action', 'new'));
$blocks_form->addElement(new JieqiFormButton('&nbsp;', 'submit', $jieqiLang['system']['add_block'], 'submit'));
$jieqiTpl->assign('form_addblock', '<br />' . $blocks_form->render(JIEQI_FORM_MIDDLE) . '<br />');
$jieqiTpl->setCaching(0);
$jieqiTset['jieqi_contents_template'] = JIEQI_ROOT_PATH . '/templates/admin/blocks.html';
include_once JIEQI_ROOT_PATH . '/admin/footer.php';
Exemple #9
0
 //建表语句格式
 $export_version = new JieqiFormRadio($jieqiLang[JIEQI_MODULE_NAME]['export_version'], 'exportversion', '');
 $export_version->setExtra("onClick=''");
 $export_version->addOption('', $jieqiLang[JIEQI_MODULE_NAME]['export_mysql_default']);
 $export_version->addOption('MYSQL40', $jieqiLang[JIEQI_MODULE_NAME]['export_mysql_low']);
 $export_version->addOption('MYSQL41', $jieqiLang[JIEQI_MODULE_NAME]['export_mysql_high']);
 $export_form->addElement($export_version);
 //强制字符集
 $export_charset = new JieqiFormRadio($jieqiLang[JIEQI_MODULE_NAME]['export_charset'], 'exportcharset', '');
 $export_charset->setExtra("onClick=''");
 $export_charset->addOption('', $jieqiLang[JIEQI_MODULE_NAME]['export_charset_default']);
 JIEQI_DB_CHARSET && MYSQL_SERVER_INFO > '4.1' ? $export_charset->addOption(JIEQI_DB_CHARSET, strtoupper(JIEQI_DB_CHARSET)) : '';
 JIEQI_DB_CHARSET != 'utf8' && MYSQL_SERVER_INFO > '4.1' ? $export_charset->addOption('utf8', 'UTF-8') : '';
 $export_form->addElement($export_charset);
 //十六进制方式
 $export_hexcode = new JieqiFormRadio($jieqiLang[JIEQI_MODULE_NAME]['export_hexcode'], 'exporthexcode', '1');
 $export_hexcode->setExtra("onClick=''");
 $export_hexcode->addOption('1', $jieqiLang[JIEQI_MODULE_NAME]['radio_checked_yes']);
 $export_hexcode->addOption('', $jieqiLang[JIEQI_MODULE_NAME]['radio_checked_no']);
 $export_form->addElement($export_hexcode);
 //压缩备份文件
 /*anchor:28
 		$export_compress=new JieqiFormRadio($jieqiLang[JIEQI_MODULE_NAME]['export_compress'], 'exportcompress', '0');
 		$export_compress->setExtra($zipdisabled);
 		$export_compress->addOption('1', $jieqiLang[JIEQI_MODULE_NAME]['export_zip_one']);
 		$export_compress->addOption('2', $jieqiLang[JIEQI_MODULE_NAME]['export_zip_all']);
 		$export_compress->addOption('0', $jieqiLang[JIEQI_MODULE_NAME]['export_zip_none']);
 		$export_form->addElement($export_compress);
 		*/
 //备份文件名
 $export_file = new JieqiFormText($jieqiLang[JIEQI_MODULE_NAME]['export_file'], 'exportfile', 20, 250, $defaultfilename);
Exemple #10
0
 $sizebox->addOption('sizeunlimit', $jieqiLang['article']['replace_size_nolimit']);
 $sizebox->addOption('sizeless', $jieqiLang['article']['replace_size_less']);
 $sizebox->addOption('sizemore', $jieqiLang['article']['replace_size_more']);
 $replace_form->addElement($sizebox, false);
 $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'));
Exemple #11
0
        include_once JIEQI_ROOT_PATH . '/lib/html/formloader.php';
        $draft_form = new JieqiThemeForm($jieqiLang['article']['draft_new'], 'newdraft', $article_dynamic_url . '/newdraft.php');
        $article_list = new JieqiFormSelect($jieqiLang['article']['table_draft_articleid'], 'articleid');
        $article_list->addOption(0, ' ');
        include_once $jieqiModules['article']['path'] . '/class/article.php';
        $article_handler =& JieqiArticleHandler::getInstance('JieqiArticleHandler');
        $criteria = new CriteriaCompo(new Criteria('authorid', $_SESSION['jieqiUserId']));
        //if(jieqi_checkpower($jieqiPower['article']['transarticle'], $jieqiUsersStatus, $jieqiUsersGroup, true)){
        //	$criteria->add(new Criteria('posterid', $_SESSION['jieqiUserId']), 'OR');
        //}
        $criteria->setLimit(100);
        $article_handler->queryObjects($criteria);
        while ($v = $article_handler->getObject()) {
            $article_list->addOption($v->getVar('articleid'), $v->getVar('articlename'));
        }
        $draft_form->addElement($article_list);
        $draft_form->addElement(new JieqiFormText($jieqiLang['article']['table_draft_chaptername'], 'draftname', 50, 50), true);
        if ($jieqiConfigs['article']['authtypeset'] == 1) {
            $typeset = new JieqiFormRadio($jieqiLang['article']['draft_typeset'], 'typeset', $jieqiConfigs['article']['autotypeset']);
            $typeset->addOption('1', $jieqiLang['article']['draft_auto_typeset']);
            $typeset->addOption('0', $jieqiLang['article']['draft_no_typeset']);
            $draft_form->addElement($typeset);
        }
        $draft_form->addElement(new JieqiFormTextArea($jieqiLang['article']['table_draft_chaptercontent'], 'draftcontent', '', 15, 60));
        $draft_form->addElement(new JieqiFormHidden('action', 'newdraft'));
        $draft_form->addElement(new JieqiFormButton('&nbsp;', 'submit', LANG_SUBMIT, 'submit'));
        $jieqiTpl->assign('authorarea', 1);
        $jieqiTpl->assign('jieqi_contents', $draft_form->render(JIEQI_FORM_MIDDLE));
        include_once JIEQI_ROOT_PATH . '/footer.php';
        break;
}
Exemple #12
0
 jieqi_getconfigs(JIEQI_MODULE_NAME, 'publisher');
 if (isset($jieqiPublisher) && count($jieqiPublisher) > 1) {
     $publisher_select = new JieqiFormSelect($jieqiLang['obook']['table_obook_publishid'], 'publishid');
     foreach ($jieqiPublisher as $key => $val) {
         $publisher_select->addOption($key, $val['name']);
     }
     $obook_form->addElement($publisher_select, false);
 }
 $keywords = new JieqiFormText($jieqiLang['obook']['table_obook_keywords'], 'keywords', 30, 50, $akeywords);
 $keywords->setDescription($jieqiLang['obook']['keywords_note']);
 $obook_form->addElement($keywords);
 if (jieqi_checkpower($jieqiPower['obook']['transobook'], $jieqiUsersStatus, $jieqiUsersGroup, true)) {
     $authorname = new JieqiFormText($jieqiLang['obook']['table_obook_author'], 'author', 30, 30, $aauthor);
     $authorname->setDescription($jieqiLang['obook']['author_note']);
     $obook_form->addElement($authorname);
     $authorflag = new JieqiFormRadio($jieqiLang['obook']['obook_author_flag'], 'authorflag', $aauthorflag);
     $authorflag->addOption('1', $jieqiLang['obook']['auth_to_author']);
     $authorflag->addOption('0', $jieqiLang['obook']['not_auth_author']);
     $obook_form->addElement($authorflag);
     $agentname = new JieqiFormText($jieqiLang['obook']['table_obook_agent'], 'agent', 30, 30, $aagent);
     $agentname->setDescription($jieqiLang['obook']['author_note']);
     $obook_form->addElement($agentname);
 }
 $obook_form->addElement(new JieqiFormTextArea($jieqiLang['obook']['table_obook_intro'], 'intro', $aintro, 6, 60));
 $obook_form->addElement(new JieqiFormTextArea($jieqiLang['obook']['table_obook_notice'], 'notice', $anotice, 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);
Exemple #13
0
     }
     $trans_form->addElement(new JieqiFormLabel(JIEQI_EGOLD_NAME, $jieqiUsers->getVar('egold') . sprintf($jieqiLang['pay']['trans_rate_note'], JIEQI_EGOLD_NAME, floor($jieqiUsers->getVar('egold') * $jieqiConfigs['system']['egoldtransrate'] / 100), $jieqiConfigs['system']['egoldtransrate'])));
 }
 if ($jieqiConfigs['system']['creditransrate'] > 0 && $jieqiConfigs['system']['creditransrate'] <= 100) {
     if (empty($defaulttype)) {
         $defaulttype = 2;
     }
     $trans_form->addElement(new JieqiFormLabel($jieqiLang['pay']['trans_credit'], $jieqiUsers->getVar('credit') . sprintf($jieqiLang['pay']['trans_rate_note'], JIEQI_EGOLD_NAME, floor($jieqiUsers->getVar('credit') * $jieqiConfigs['system']['creditransrate'] / 100), $jieqiConfigs['system']['creditransrate'])));
 }
 if ($jieqiConfigs['system']['scoretransrate'] > 0 && $jieqiConfigs['system']['scoretransrate'] <= 100) {
     if (empty($defaulttype)) {
         $defaulttype = 3;
     }
     $trans_form->addElement(new JieqiFormLabel($jieqiLang['pay']['trans_score'], $jieqiUsers->getVar('score') . sprintf($jieqiLang['pay']['trans_rate_note'], JIEQI_EGOLD_NAME, floor($jieqiUsers->getVar('score') * $jieqiConfigs['system']['scoretransrate'] / 100), $jieqiConfigs['system']['scoretransrate'])));
 }
 $trans_option = new JieqiFormRadio($jieqiLang['pay']['trans_type'], 'transtype', $defaulttype);
 if ($jieqiConfigs['system']['egoldtransrate'] > 0 && $jieqiConfigs['system']['egoldtransrate'] <= 100) {
     $trans_option->addOption(1, JIEQI_EGOLD_NAME);
 }
 if ($jieqiConfigs['system']['creditransrate'] > 0 && $jieqiConfigs['system']['creditransrate'] <= 100) {
     $trans_option->addOption(2, $jieqiLang['pay']['trans_credit']);
 }
 if ($jieqiConfigs['system']['scoretransrate'] > 0 && $jieqiConfigs['system']['scoretransrate'] <= 100) {
     $trans_option->addOption(3, $jieqiLang['pay']['trans_score']);
 }
 $trans_form->addElement($trans_option);
 $egold_text = new JieqiFormText($jieqiLang['pay']['trans_egold'], 'transegold', 25, 30);
 $egold_text->setDescription(JIEQI_EGOLD_NAME);
 $trans_form->addElement($egold_text, true);
 $toname_text = new JieqiFormText($jieqiLang['pay']['trans_toname'], 'toname', 25, 30);
 $toname_text->setDescription($jieqiLang['pay']['trans_toname_note']);