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
        $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)));
        $collect_form->addElement(new JieqiFormButton('&nbsp;', 'submit', $jieqiLang['article']['rule_save_edit'], 'submit'));
        $jieqiTpl->assign('jieqi_contents', '<br />' . $collect_form->render(JIEQI_FORM_MIDDLE) . '<br />');
        include_once JIEQI_ROOT_PATH . '/admin/footer.php';
        break;
}
Exemple #3
0
 case 'edit':
 default:
     //包含区块参数(定制区块)
     jieqi_getconfigs('obook', 'authorblocks', 'jieqiBlocks');
     include_once JIEQI_ROOT_PATH . '/header.php';
     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);
Exemple #4
0
 $checkbox = new JieqiFormCheckBox($jieqiLang['article']['repack_select'], 'packflag');
 $checkbox->addOption('makeopf', $jieqiLang['article']['repack_opf']);
 $checkbox->addOption('makehtml', $jieqiLang['article']['repack_html']);
 $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);
Exemple #5
0
    $blockfile = $block->getVar('filename') . '.php';
    $blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_filename'], $blockfile));
    if (isset($modules[$block->getVar('modname')])) {
        $blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_modname'], $modules[$block->getVar('modname')]));
    } else {
        $blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_modname'], LANG_UNKNOWN));
    }
    $blocks_form->addElement(new JieqiFormText($jieqiLang['system']['table_blocks_blockname'], 'blockname', 30, 50, $block->getVar('blockname', 'e')), true);
}
//显示位置
$sideary = $blocks_handler->getSideary();
$sideselect = new JieqiFormSelect($jieqiLang['system']['table_blocks_side'], 'side', $block->getVar('side', 'e'));
$sideselect->addOptionArray($sideary);
$blocks_form->addElement($sideselect);
//排列序号
$eleweight = new JieqiFormText($jieqiLang['system']['table_blocks_weight'], 'weight', 8, 8, $block->getVar('weight', 'e'));
$eleweight->setDescription($jieqiLang['system']['note_block_weight']);
$blocks_form->addElement($eleweight);
//是否显示
$showradio = new JieqiFormRadio($jieqiLang['system']['table_blocks_publish'], 'publish', $block->getVar('publish', 'e'));
$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'], 'title', $block->getVar('title', 'e'), 3, 60));
//内容类型
if ($block->getVar('custom') == 1) {
    $blocks_form->addElement(new JieqiFormLabel($jieqiLang['system']['table_blocks_contenttype'], 'HTML'));
} else {
Exemple #6
0
 $obook_form->addElement($_POST['obookname']);
 if (jieqi_checkpower($jieqiPower['obook']['transobook'], $jieqiUsersStatus, $jieqiUsersGroup, true)) {
     $authorname = new JieqiFormText($jieqiLang['obook']['table_obook_author'], 'author', 30, 30, $obook->getVar('author', 'e'));
     //$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));
Exemple #7
0
        include_once JIEQI_ROOT_PATH . '/class/honors.php';
        $honors_handler =& JieqiHonorsHandler::getInstance('JieqiHonorsHandler');
        $criteria = new CriteriaCompo();
        $criteria->setSort('minscore');
        $criteria->setOrder('ASC');
        $honors_handler->queryObjects($criteria);
        while ($v = $honors_handler->getObject()) {
            $tmpvar = $v->getVar('caption');
            $tmpary = explode(' ', $tmpvar);
            $honors[] = array('honorid' => $v->getVar('honorid'), 'caption' => $tmpary[0]);
        }
        unset($criteria);
        $right_form = new JieqiThemeForm($jieqiLang['system']['edit_right'], 'right', JIEQI_URL . '/admin/right.php');
        foreach ($jieqiRight[$_REQUEST['mod']] as $k => $v) {
            $tmpvar = '';
            foreach ($honors as $honor) {
                $right_text = new JieqiFormText($honor['caption'], $k . '[' . $honor['honorid'] . ']', 20, 60, $v['honors'][$honor['honorid']]);
                $tmpvar .= $right_text->getCaption() . ' ' . $right_text->render() . '<br />';
            }
            $right_form->addElement(new JieqiFormLabel($v['caption'], $tmpvar));
        }
        $right_form->addElement(new JieqiFormHidden('mod', $_REQUEST['mod']));
        $right_form->addElement(new JieqiFormHidden('action', 'update'));
        $right_form->addElement(new JieqiFormButton('&nbsp;', 'submit', $jieqiLang['system']['save_right'], 'submit'));
        $jieqiTpl->setCaching(0);
        $jieqiTpl->assign('jieqi_contents', '<br />' . $right_form->render(JIEQI_FORM_MIDDLE) . '<br />');
        include_once JIEQI_ROOT_PATH . '/admin/footer.php';
    }
} else {
    jieqi_msgwin(LANG_NOTICE, $jieqiLang['system']['no_usage_right']);
}
Exemple #8
0
                         }
                     }
                 }
             }
             //处理成功跳转
             jieqi_jumppage('dbmanage.php?option=import', LANG_DO_SUCCESS, $jieqiLang[JIEQI_MODULE_NAME]['import_mysql_success']);
         } else {
             jieqi_printfail($jieqiLang[JIEQI_MODULE_NAME]['import_file_error']);
         }
     } else {
         jieqi_printfail($errtext);
     }
 } else {
     $jieqiTpl->assign('option', 2);
     $import_form = new JieqiThemeForm($jieqiLang[JIEQI_MODULE_NAME]['db_import'], 'dbimport', $jieqiModules[JIEQI_MODULE_NAME]['url'] . '/admin/dbmanage.php');
     $import_file = new JieqiFormText($jieqiLang[JIEQI_MODULE_NAME]['import_file'], 'importfile', 20, 250);
     $import_file->setDescription($jieqiLang[JIEQI_MODULE_NAME]['import_file_format']);
     $import_form->addElement($import_file, TRUE);
     $import_form->addElement(new JieqiFormHidden('method', 'cover'));
     $import_form->addElement(new JieqiFormHidden('option', 'import'));
     $on_submit = new JieqiFormButton('&nbsp;', 'submit', LANG_SUBMIT, 'submit');
     $on_submit->setExtra('onclick=""');
     $import_form->addElement($on_submit);
     $jieqiTpl->assign('dbmanage_form', $import_form->render(JIEQI_FORM_MAX));
     //处理批量删除记录
     if (isset($_POST['checkaction']) && $_POST['checkaction'] == 1 && is_array($_POST['checkid']) && count($_POST['checkid']) > 0) {
         foreach ($_POST['checkid'] as $v) {
             jieqi_getconfigs(JIEQI_MODULE_NAME, 'backuplog');
             //删除原始文件
             $backfile = MYSQL_BACKUP_PATH . '/' . $jieqiBackuplog[$v]['name'];
             if (@file_exists($backfile)) {
Exemple #9
0
        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']);
        $trans_form->addElement($toname_text, true);
        $trans_form->addElement(new JieqiFormPassword($jieqiLang['pay']['trans_password'], 'password', 25, 30), true);
        $trans_form->addElement(new JieqiFormHidden('action', 'transfer'));
        $trans_form->addElement(new JieqiFormButton('&nbsp;', 'submit', LANG_SUBMIT, 'submit'));
        $jieqiTpl->setCaching(0);
        $jieqiTpl->assign('jieqi_contents', '<br />' . $trans_form->render(JIEQI_FORM_MIDDLE) . '<br />');
        include_once JIEQI_ROOT_PATH . '/footer.php';
        break;
}