<?php (!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission'); if (empty($commu['uconfig'])) { if ($action == 'commudetail') { if (empty($submitmode)) { trbasic(lang('operate_permi_set'), 'communew[setting][apmid]', makeoption(pmidsarr('cuadd'), empty($commu['setting']['apmid']) ? 0 : $commu['setting']['apmid']), 'select'); trbasic(lang('nouservote'), 'communew[setting][nouservote]', isset($commu['setting']['nouservote']) ? $commu['setting']['nouservote'] : 0, 'radio'); trbasic(lang('repeatvote'), 'communew[setting][repeatvote]', isset($commu['setting']['repeatvote']) ? $commu['setting']['repeatvote'] : 0, 'radio'); trbasic(lang('answer_minlength'), 'communew[setting][minlength]', isset($commu['setting']['minlength']) ? $commu['setting']['minlength'] : 0); trbasic(lang('answer_maxlength'), 'communew[setting][maxlength]', isset($commu['setting']['maxlength']) ? $commu['setting']['maxlength'] : 0); trbasic(lang('item_ava_days'), 'communew[setting][vdays]', isset($commu['setting']['vdays']) ? $commu['setting']['vdays'] : 0); trbasic(lang('reward_currency_type'), 'communew[setting][crid]', makeoption(cridsarr(), isset($commu['setting']['crid']) ? $commu['setting']['crid'] : 0), 'select'); trbasic(lang('allow_reward_mini_cu'), 'communew[setting][mini]', isset($commu['setting']['mini']) ? $commu['setting']['mini'] : 0); trbasic(lang('allow_reward_max_cu'), 'communew[setting][max]', isset($commu['setting']['max']) ? $commu['setting']['max'] : 0); trbasic(lang('credit_val_reward_cu'), 'communew[setting][credit]', isset($commu['setting']['credit']) ? $commu['setting']['credit'] : 0); tabfooter(); tabheader(lang('advsetting') . " <input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail2\" value=\"1\" onclick=\"alterview('advsetting')\">" . lang('view')); echo "<tbody id=\"advsetting\" style=\"display: none;\">"; trbasic(lang('custom_ucadd'), 'communew[ucadd]', empty($commu['ucadd']) ? '' : $commu['ucadd'], 'text', lang('agmucustom')); trbasic(lang('custom_ucvote'), 'communew[ucvote]', empty($commu['ucvote']) ? '' : $commu['ucvote'], 'text', lang('agmucustom')); trbasic(lang('custom_uadetail'), 'communew[uadetail]', empty($commu['uadetail']) ? '' : $commu['uadetail'], 'text', lang('agmucustom')); trbasic(lang('custom_umdetail'), 'communew[umdetail]', empty($commu['umdetail']) ? '' : $commu['umdetail'], 'text', lang('agmucustom')); trbasic(lang('customsetting'), 'communew[usetting]', empty($commu['usetting']) ? '' : $commu['usetting'], 'btextarea', lang('agcustomsetting')); echo "</tbody>"; } else { if (empty($communew['setting']['crid'])) { amessage('choose_reward_cutype', axaction(2, M_REFERER)); } $communew['setting']['minlength'] = max(0, intval($communew['setting']['minlength'])); $communew['setting']['maxlength'] = max(0, intval($communew['setting']['maxlength']));
<?php (!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission'); if (empty($commu['uconfig'])) { if ($action == 'commudetail') { if (empty($submitmode)) { tabfooter(); tabheader(lang('spread_idx')); trbasic(lang('choose_cutype'), 'communew[setting][0][crid]', makeoption(cridsarr(), isset($commu['setting'][0]['crid']) ? $commu['setting'][0]['crid'] : 0), 'select'); trbasic(lang('awardcurrency'), 'communew[setting][0][value]', isset($commu['setting'][0]['value']) ? $commu['setting'][0]['value'] : 0); trbasic(lang('spread_maxlimit'), 'communew[setting][0][max]', isset($commu['setting'][0]['max']) ? $commu['setting'][0]['max'] : 0, 'text', lang('use_record_limit')); tabfooter(); tabheader(lang('spread_reg')); trbasic(lang('choose_cutype'), 'communew[setting][1][crid]', makeoption(cridsarr(), isset($commu['setting'][1]['crid']) ? $commu['setting'][1]['crid'] : 0), 'select'); trbasic(lang('awardcurrency'), 'communew[setting][1][value]', isset($commu['setting'][1]['value']) ? $commu['setting'][1]['value'] : 0); trbasic(lang('spread_maxlimit'), 'communew[setting][1][max]', isset($commu['setting'][1]['max']) ? $commu['setting'][1]['max'] : 0, 'text', lang('use_record_limit')); /* tabfooter(); tabheader(lang('advsetting')." <input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail2\" value=\"1\" onclick=\"alterview('advsetting')\">".lang('view')); echo "<tbody id=\"advsetting\" style=\"display: none;\">"; trbasic(lang('custom_ucadd'),'communew[ucadd]',empty($commu['ucadd']) ? '' : $commu['ucadd'],'text',lang('agmucustom')); trbasic(lang('custom_umdetail'),'communew[umdetail]',empty($commu['umdetail']) ? '' : $commu['umdetail'],'text',lang('agmucustom')); trbasic(lang('customsetting'),'communew[usetting]',empty($commu['usetting']) ? '' : $commu['usetting'],'btextarea',lang('agcustomsetting')); echo "</tbody>";*/ } else { (empty($communew['setting'][0]['crid']) || empty($communew['setting'][1]['crid'])) && amessage('choose_cutype', axaction(2, M_REFERER)); $communew['setting'][0]['value'] = max(0, intval($communew['setting'][0]['value'])); $communew['setting'][0]['max'] = max(0, intval($communew['setting'][0]['max'])); $communew['setting'][0]['count'] = $communew['setting'][0]['value'] ? intval($communew['setting'][0]['max'] / $communew['setting'][0]['value']) : 0; $communew['setting'][1]['value'] = max(0, intval($communew['setting'][1]['value'])); $communew['setting'][1]['max'] = max(0, intval($communew['setting'][1]['max']));
if ($grouptype['cname'] != $grouptypes[$gtid]['cname']) { $db->query("UPDATE {$tblprefix}grouptypes SET \n\t\t\t\t\t\t\t\t\tcname='{$grouptype['cname']}'\n\t\t\t\t\t\t\t\t\tWHERE gtid='{$gtid}'"); } } } } adminlog(lang('edit_grouptype_mlist')); updatecache('grouptypes'); amessage('grouedifin', "?entry=grouptypes&action=grouptypesedit"); } } elseif ($action == 'grouptypedetail' && $gtid) { $grouptype = $grouptypes[$gtid]; if (!submitcheck('bgrouptypedetail')) { tabheader(lang('edit_grouptype'), 'grouptypedetail', "?entry=grouptypes&action=grouptypedetail>id={$gtid}"); $modearr = array('0' => lang('user_handwork'), '1' => lang('admin_handwork'), '2' => lang('crbase'), '3' => lang('crex')); $cridsarr = array(0 => $grouptype['mode'] == 3 ? lang('cash') : lang('noset')) + cridsarr(); trbasic(lang('grouptype_name'), 'grouptypenew[cname]', $grouptype['cname']); if ($grouptype['issystem']) { trbasic(lang('deal_mode'), '', $modearr[$grouptype['mode']], ''); trbasic(lang('related_cutype'), '', $cridsarr[$grouptype['crid']], ''); } else { trbasic(lang('deal_mode'), 'grouptypenew[mode]', makeoption($modearr, $grouptype['mode']), 'select'); trbasic(lang('related_cutype'), 'grouptypenew[crid]', makeoption($cridsarr, $grouptype['crid']), 'select'); trbasic(lang('usergroup_alter_reset'), 'grouptypenew[allowance]', $grouptype['allowance'], 'radio'); } trbasic(lang('inchids_forbid_use'), '', makecheckbox('grouptypenew[mchids][]', mchidsarr(), !empty($grouptype['mchids']) ? explode(',', $grouptype['mchids']) : array(), 5), ''); tabfooter('bgrouptypedetail', lang('modify')); a_guide('grouptypedetail'); } else { $grouptypenew['mode'] = empty($grouptypenew['mode']) ? 0 : $grouptypenew['mode']; $grouptypenew['crid'] = empty($grouptypenew['crid']) ? 0 : $grouptypenew['crid'];
backallow('save') || amessage('no_apermission'); $url_type = 'cysave'; include 'urlsarr.inc.php'; url_nav(lang('member_inout'), $urlsarr, 'record'); $page = empty($page) ? 1 : $page; $page = max(1, intval($page)); $viewdetail = empty($viewdetail) ? '' : $viewdetail; $crid = !isset($crid) ? '-1' : $crid; $dealmode = empty($dealmode) ? '' : $dealmode; $mode = empty($mode) ? '' : $mode; $mnames = empty($mnames) ? '' : $mnames; $frommnames = empty($frommnames) ? '' : $frommnames; $startdate = empty($startdate) ? '' : strtotime($startdate); $enddate = empty($enddate) ? '' : strtotime($enddate); $filterstr = "&viewdetail={$viewdetail}&crid={$crid}&dealmode={$dealmode}&mode={$mode}&mnames={$mnames}&frommnames={$frommnames}&startdate={$startdate}&enddate={$enddate}"; $currencyarr = array('-1' => lang('nolimit')) + cridsarr(1); $modearr = array('0' => lang('nolimit'), 'add' => lang('add_val'), 'reduce' => lang('reduce_val')); $dealmodearr = array('0' => lang('nolimit'), 'saving' => lang('savingmode'), 'award' => lang('addreduce')); tabheader(lang('filter_record') . " <input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail\" value=\"1\" onclick=\"alterview('tbodyfilter')\"" . (empty($viewdetail) ? '' : ' checked') . ">" . lang('viewdetail'), 'cradminlogs', "?entry=currencys&action=cradminlogs"); trbasic(lang('currencytype'), 'crid', makeoption($currencyarr, $crid), 'select'); trbasic(lang('operate_mode'), 'dealmode', makeoption($dealmodearr, $dealmode), 'select'); echo "<tbody id=\"tbodyfilter\" style=\"display: " . (empty($viewdetail) ? 'none' : '') . "\">"; trbasic(lang('crmode'), 'mode', makeoption($modearr, $mode), 'select'); trbasic(lang('crrecordmname'), 'mnames', $mnames); trbasic(lang('crrecordfrommname'), 'frommnames', $frommnames); trbasic(lang('startdate'), 'startdate', empty($startdate) ? '' : date('Y-n-j', $startdate), 'calendar'); trbasic(lang('enddate'), 'enddate', empty($enddate) ? '' : date('Y-n-j', $enddate), 'calendar'); echo "</tbody>"; tabfooter(); echo "<input class=\"button\" type=\"submit\" name=\"bcradminlogs\" value=\"" . lang('filter0') . "\"></form>"; $wheresql = '';
ocache2file($stepeds, 'stepeds'); amessage('undo succeed', '?entry=subsetup&action=subsites'); } } elseif ($action == 'currencys') { load_cache('currencys'); $ocurrencys = oread_cache('currencys', '', '', 'cache'); $n_operated = isset($stepeds['currencys']); $do_enable = $n_operated || !isset($stepeds['subsites']) ? false : true; //如果上一步没有完成,这一步不能开始 $undo_enable = !$n_operated || isset($stepeds['mchannels']) ? false : true; //如果上一步没有撤消,这一步不能撤消 if (!submitcheck('bdo') && !submitcheck('bundo')) { tabheader(lang('currtypetran') . ' - ' . ($n_operated ? ' Y' : ' N'), 'currencys', '?entry=subsetup&action=currencys', '3'); trcategory(array(lang('sourceid'), lang('sourcecurrencycname'), lang('tranurrentsys'))); foreach ($ocurrencys as $k => $v) { echo "<tr class=\"txt\"><td class=\"txtL\">{$k}</td>\n" . "<td class=\"txtL\">{$v['cname']}</td>\n" . "<td class=\"txtL\"><select style=\"vertical-align: middle;\" name=\"currencysnew[{$k}]\">" . makeoption(array(0 => lang('add')) + cridsarr(), empty($idsmap['crids'][$k]) ? 0 : $idsmap['crids'][$k]) . "</select></td></tr>\n"; } tabfooter(); echo "<input class=\"button\" type=\"submit\" name=\"bdo\" value=\"" . lang('nextstep') . "\"" . ($do_enable ? '' : ' disabled') . "> "; echo "<input class=\"button\" type=\"submit\" name=\"bundo\" value=\"" . lang('undosetting') . "\"" . ($undo_enable ? '' : ' disabled') . "> "; echo "</form>\n"; } elseif (submitcheck('bdo')) { if (!$do_enable) { amessage('donrepoper'); } if (!empty($currencysnew)) { foreach ($currencysnew as $k => $v) { if (empty($v)) { //新增id $sqlstr = ''; foreach ($ocurrencys[$k] as $key => $val) {
<?php !defined('M_COM') && exit('No Permission'); load_cache('crprojects,currencys'); if ($enable_uc) { $outextcredits = unserialize($outextcredits); } if (!submitcheck('bcrexchange')) { $cridsarr = cridsarr(1); foreach ($crprojects as $crpid => $crproject) { tabheader($cridsarr[$crproject['scrid']] . lang('exchangeto') . $cridsarr[$crproject['ecrid']], 'crexchagne' . $crpid, "?action=crexchange"); trbasic(lang('membercurrent', $cridsarr[$crproject['scrid']]), '', $curuser->info['currency' . $crproject['scrid']], ''); trbasic(lang('membercurrent', $cridsarr[$crproject['ecrid']]), '', $curuser->info['currency' . $crproject['ecrid']], ''); trbasic(lang('exchangescale'), '', $crproject['scurrency'] . ' ' . $cridsarr[$crproject['scrid']] . ' : ' . $crproject['ecurrency'] . ' ' . $cridsarr[$crproject['ecrid']], ''); trbasic(lang('exchangeamount') . '(' . $cridsarr[$crproject['scrid']] . ')', 'exchangesource'); echo "<input type=\"hidden\" name=\"crpid\" value=\"{$crpid}\">"; tabfooter('bcrexchange', lang('exchange')); } if ($enable_uc) { foreach ($outextcredits as $k => $v) { tabheader($cridsarr[$v['creditsrc']] . lang('exchangeto') . $v['title'], 'ocrexchagne' . $k, "?action=crexchange"); trbasic(lang('membercurrent', $cridsarr[$v['creditsrc']]), '', $curuser->info['currency' . $v['creditsrc']], ''); trbasic(lang('exchangescale'), '', $v['ratiosrc'] . ' : ' . $v['ratiodesc'], ''); trbasic(lang('exchangeamount') . '(' . $cridsarr[$v['creditsrc']] . ')', 'exchangesource'); echo "<input type=\"hidden\" name=\"ocrpid\" value=\"{$k}\">"; echo "<input type=\"hidden\" name=\"isout\" value=\"1\">"; tabfooter('bcrexchange', lang('exchange')); } } } else { if (empty($isout)) {