$dsuPaulsignSetting = $_G['cache']['plugin']['dsu_paulsign']; $extcreditsSetting = $_G['setting']['extcredits']; // 签到奖励基数设置 $signExtcreditBase = Appbyme::getDzPluginCache('sign_extcredit_base'); $signExtcreditBase == false && ($signExtcreditBase = 100); if (isset($extcreditsSetting[$dsuPaulsignSetting['nrcredit']])) { showsetting(Appbyme::lang('mobcent_operation_sign_extcredit_base') . ' ' . $_G['setting']['extcredits'][$dsuPaulsignSetting['nrcredit']]['title'], 'signextcreditbase_new', (int) $signExtcreditBase, 'text', '', 0, Appbyme::lang('mobcent_tips_extcredit_base'), '', '', true); } // 发回帖奖励基数设置 $forumExtcreditBase = Appbyme::getDzPluginCache('forum_extcredit_base'); !is_array($forumExtcreditBase) && ($forumExtcreditBase = array()); foreach ($extcreditsSetting as $id => $extcredit) { showsetting(Appbyme::lang('mobcent_operation_forum_extcredit_base') . ' ' . $extcredit['title'], sprintf('forumextcreditbase_new[%d]', $id), (int) (isset($forumExtcreditBase[$id]) ? $forumExtcreditBase[$id] : 100), 'text', '', 0, Appbyme::lang('mobcent_tips_extcredit_base'), '', '', true); } showtablefooter(); showsubmit('operation_submit', 'submit'); showformfooter(); showtagfooter('div'); } else { if (!empty($_POST['signextcreditbase_new'])) { Appbyme::setDzPluginCache('sign_extcredit_base', (int) $_POST['signextcreditbase_new']); } if (!empty($_POST['forumextcreditbase_new'])) { $bases = array(); foreach ($_POST['forumextcreditbase_new'] as $id => $base) { $bases[$id] = (int) $base; } Appbyme::setDzPluginCache('forum_extcredit_base', $bases); } cpmsg(Appbyme::lang('mobcent_operation_edit_succeed'), $baseUrl, 'succeed'); }
$groupList = DB::fetch_all(' SELECT * FROM %t WHERE type=%s AND status=%d ORDER BY displayorder ASC ', array('forum_forum', 'group', 1)); $forumColumnStyle = Appbyme::getDzPluginCache('forum_column_style'); foreach ($groupList as $group) { echo sprintf(' <tr> <td class="td27">%s</td> <td><input type="radio" name="forumcolumnstyle_new[%d]" value="2" %s />%s</td> <td><input type="radio" name="forumcolumnstyle_new[%d]" value="1" %s />%s</td> </tr> ', $group['name'], $group['fid'], !isset($forumColumnStyle[$group['fid']]) ? 'checked' : ($forumColumnStyle[$group['fid']] == '2' ? 'checked' : ''), Appbyme::lang('mobcent_forum_column_style_col2'), $group['fid'], isset($forumColumnStyle[$group['fid']]) && $forumColumnStyle[$group['fid']] == '1' ? 'checked' : '', Appbyme::lang('mobcent_forum_column_style_col1')); // showsetting( // $group['name'], sprintf('group_new[%d]', $group['fid']), // 1, 'radio', '', 0, '', '', '', true // ); } showtablefooter(); showtagfooter('div'); showsubmit('forum_submit', 'submit'); showformfooter(); showtagfooter('div'); } else { if (!empty($_POST['forumcolumnstyle_new'])) { Appbyme::setDzPluginCache('forum_column_style', $_POST['forumcolumnstyle_new']); } cpmsg(Appbyme::lang('mobcent_forum_edit_succeed'), $baseUrl, 'succeed'); }