Example #1
0
}
if ($i > 0) {
    for ($j = $i; $j < $cols; $j++) {
        $obook_table .= '<td width="' . $tdwidth . '%" class="odd">&nbsp;</td>';
    }
    $obook_table .= '</tr>';
}
$obook_table .= '</table>';
$jieqiTpl->assign('obook_table', $obook_table);
//章节排序
include_once JIEQI_ROOT_PATH . '/lib/html/formloader.php';
$sort_form = new JieqiThemeForm($jieqiLang['obook']['chapter_sort'], 'chaptersort', $obook_static_url . '/chaptersort.php');
$from_select = new JieqiFormSelect($jieqiLang['obook']['choose_chapter'], 'fromid');
$to_select = new JieqiFormSelect($jieqiLang['obook']['chapter_move_to'], 'toid');
$to_select->addOption('0', $jieqiLang['obook']['chapter_top_sort']);
$to_select->setDescription($jieqiLang['obook']['chapter_after_sort']);
foreach ($chapterary as $k => $v) {
    $key = $k + 1;
    if ($v['chaptertype'] == 1) {
        $tmpstr = '';
    } else {
        $tmpstr = '|-';
    }
    $tmpstr .= htmlspecialchars($v['chaptername'], ENT_QUOTES);
    $from_select->addOption($v['chapterorder'], $tmpstr);
    $to_select->addOption($v['chapterorder'], $tmpstr);
}
$sort_form->addElement($from_select);
$sort_form->addElement($to_select);
$sort_form->addElement(new JieqiFormHidden('aid', $_REQUEST['id']));
$sort_form->addElement(new JieqiFormButton('&nbsp;', 'submit', $jieqiLang['obook']['sort_confirm'], 'submit'));
Example #2
0
 $defaultfull->addOption('1', LANG_YES);
 $defaultfull->addOption('0', LANG_NO);
 $collect_form->addElement($defaultfull);
 $referer = new JieqiFormRadio($jieqiLang['article']['rule_send_referer'], 'referer', $jieqiCollect['referer']);
 $referer->addOption('1', LANG_YES);
 $referer->addOption('0', LANG_NO);
 $collect_form->addElement($referer);
 if (empty($jieqiCollect['pagecharset'])) {
     $jieqiCollect['pagecharset'] = 'auto';
 }
 $pagecharset = new JieqiFormSelect($jieqiLang['article']['rule_page_charset'], 'pagecharset', $jieqiCollect['pagecharset']);
 $pagecharset->addOption('auto', $jieqiLang['article']['rule_charset_auto']);
 $pagecharset->addOption('gbk', $jieqiLang['article']['rule_charset_gb']);
 $pagecharset->addOption('utf8', $jieqiLang['article']['rule_charset_utf8']);
 $pagecharset->addOption('big5', $jieqiLang['article']['rule_charset_big5']);
 $pagecharset->setDescription($jieqiLang['article']['rule_charset_note']);
 $collect_form->addElement($pagecharset);
 $collect_form->addElement(new JieqiFormLabel('', $jieqiLang['article']['collect_rule_articleinfo']));
 $collect_form->addElement(new JieqiFormText($jieqiLang['article']['rule_articleinfo_url'], 'urlarticle', 60, 250, htmlspecialchars($jieqiCollect['urlarticle'], ENT_QUOTES)), true);
 $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_title'], 'articletitle', htmlspecialchars(jieqi_collectstop($jieqiCollect['articletitle']), ENT_QUOTES), 5, 60), true);
 $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_author'], 'author', htmlspecialchars(jieqi_collectstop($jieqiCollect['author']), ENT_QUOTES), 5, 60));
 $collect_form->addElement(new JieqiFormTextArea($jieqiLang['article']['rule_article_sort'], 'sort', htmlspecialchars(jieqi_collectstop($jieqiCollect['sort']), ENT_QUOTES), 5, 60));
 if (!is_array($jieqiCollect['sortid'])) {
     $jieqiCollect['sortid'] = array();
 }
 $tmpstr = '';
 foreach ($jieqiCollect['sortid'] as $k => $v) {
     if (!empty($tmpstr)) {
         $tmpstr .= '||';
     }
     $tmpstr .= $k . '=>' . $v;
Example #3
0
         $aauthor = $article->getVar('author', 'e');
         if ($article->getVar('authorid', 'n') > 0) {
             $aauthorflag = 1;
             $aagent = $aauthor;
         }
         $aintro = $article->getVar('intro', 'e');
         $anotice = $article->getVar('notice', 'e');
         $aimgflag = $article->getVar('imgflag', 'e');
     }
 }
 $obook_name = new JieqiFormText($jieqiLang['obook']['table_obook_obookname'], 'obookname', 30, 50, $abookname);
 $obook_name->setDescription($jieqiLang['obook']['obookname_note']);
 $obook_form->addElement($obook_name, true);
 $sort_select = new JieqiFormSelect($jieqiLang['obook']['table_obook_sortid'], 'sortid', $asortid);
 if (!empty($asort)) {
     $sort_select->setDescription($jieqiLang['obook']['sortid_note'] . $asort);
 }
 foreach ($jieqiSort['obook'] as $key => $val) {
     $tmpstr = '';
     if ($val['layer'] > 0) {
         for ($i = 0; $i < $val['layer']; $i++) {
             $tmpstr .= '&nbsp;&nbsp;';
         }
         $tmpstr .= '├';
     }
     $tmpstr .= $val['caption'];
     $sort_select->addOption($key, $tmpstr);
 }
 $obook_form->addElement($sort_select, true);
 jieqi_getconfigs(JIEQI_MODULE_NAME, 'publisher');
 if (isset($jieqiPublisher) && count($jieqiPublisher) > 1) {