Beispiel #1
0
function m_sites($urlpre = '', $num = 5)
{
    global $sid, $infloat, $handlekey;
    $sidsarr = array(0 => lang('msite')) + sidsarr(1);
    $i = 0;
    tabheader(lang('selectsite'), '', '', $num);
    foreach ($sidsarr as $k => $v) {
        if (!($i % $num)) {
            echo "<tr>";
        }
        echo "<td class=\"item2\" width=\"" . intval(100 / $num) . "%\">>>" . ($sid == $k ? "<b>{$v}</b>" : "<a href=\"{$urlpre}" . ($k ? "&sid={$k}" : '') . "\"" . ($infloat ? " onclick=\"floatwin('open_{$handlekey}',this)\"" : '') . ">{$v}</a>") . "</td>\n";
        $i++;
        if (!($i % $num)) {
            echo "</tr>\n";
        }
    }
    if ($i % $num) {
        while ($i % $num) {
            echo "<td class=\"item2\" width=\"" . intval(100 / $num) . "%\"></td>\n";
            $i++;
        }
        echo "</tr>\n";
    }
    tabfooter();
}
function view_cucatalogurls()
{
    global $action;
    tabheader(lang('co_class_manager'), '', '', 4);
    echo "<tr class=\"txt\">\n";
    echo "<td class=\"txtL w25B\">" . (in_str('rcatalog', $action) ? "<b>" . lang('reply_class_manager') . "</b>" : "<a href=\"?entry=cucatalogs&action=rcatalogsedit\">" . lang('reply_class_manager') . "</a>") . "</td>\n";
    echo "<td class=\"txtL w25B\"></td>\n";
    echo "<td class=\"txtL w25B\"></td>\n";
    echo "<td class=\"txtL w25B\"></td>\n";
    echo "</tr>\n";
    tabfooter();
}
Beispiel #3
0
         $itemstr .= "<td class=\"item\">{$enddatestr}</td>\n";
     }
     if (in_array('storage', $u_lists)) {
         $itemstr .= "<td class=\"item\">{$storagestr}</td>\n";
     }
     $itemstr .= "<td class=\"item\">{$opricestr}</td>\n";
     $itemstr .= "<td class=\"item\">{$adminstr}</td>\n";
     $itemstr .= "</tr>\n";
 }
 $counts = $db->result_one("SELECT count(*) {$fromsql} {$wheresql}");
 $multi = multi($counts, $mrowpp, $page, "?action=offers{$filterstr}");
 echo $itemstr;
 tabfooter();
 echo $multi;
 //操作区
 tabheader(lang('operateitem'));
 $s_arr = array();
 if (empty($u_operates) || in_array('readd', $u_operates)) {
     $s_arr['readd'] = lang('readd');
 }
 if (empty($u_operates) || in_array('delete', $u_operates)) {
     $s_arr['delete'] = lang('delete');
 }
 if ($s_arr) {
     $soperatestr = '';
     foreach ($s_arr as $k => $v) {
         $soperatestr .= "<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[{$k}]\" value=\"1\">{$v} &nbsp;";
     }
     trbasic(lang('choose_item'), '', $soperatestr, '');
 }
 if (empty($u_operates) || in_array('uclass', $u_operates)) {
Beispiel #4
0
(!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') . "&nbsp;&nbsp;&nbsp;&nbsp;<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']));
            $communew['setting']['vdays'] = max(0, intval($communew['setting']['vdays']));
            $communew['setting']['mini'] = max(0, intval($communew['setting']['mini']));
Beispiel #5
0
        check_submit_func($submitstr);
        a_guide('memberdetail');
    } else {
        foreach ($grouptypes as $gtid => $grouptype) {
            if ($grouptype['mode'] < 2 && !in_array($mchid, explode(',', $grouptype['mchids'])) && ($gtid != 2 || $backamember)) {
                $minfosnew['grouptype' . $gtid . 'date'] = !$minfosnew['grouptype' . $gtid] || !isdate($minfosnew['grouptype' . $gtid . 'date']) ? '0' : strtotime($minfosnew['grouptype' . $gtid . 'date']);
                $actuser->handgrouptype($gtid, $minfosnew['grouptype' . $gtid], $minfosnew['grouptype' . $gtid . 'date']);
            }
        }
        $actuser->updatedb();
        adminlog(lang('detail_edit_member'));
        amessage('membermodifyfinish', M_REFERER);
    }
} elseif ($action == 'allowance' && $mid) {
    if (!submitcheck('bmemberdetail')) {
        $a_field = new cls_field();
        $submitstr = '';
        tabheader(lang('issue_allowance_manager') . '&nbsp;:&nbsp;[' . $mchannel['cname'] . ']' . $actuser->info['mname'], 'memberdetail', "?entry=member&action=allowance&mid={$mid}", 2, 1, 1);
        trbasic(lang('aw_arc_issue_limit'), 'minfosnew[arcallowance]', $actuser->info['arcallowance']);
        trbasic(lang('aw_commu_issue_limit'), 'minfosnew[cuallowance]', $actuser->info['cuallowance']);
        tabfooter('bmemberdetail');
        check_submit_func($submitstr);
        a_guide('memberdetail');
    } else {
        $actuser->updatefield('arcallowance', empty($minfosnew['arcallowance']) ? 0 : max(0, intval($minfosnew['arcallowance'])), 'main');
        $actuser->updatefield('cuallowance', empty($minfosnew['cuallowance']) ? 0 : max(0, intval($minfosnew['cuallowance'])), 'main');
        $actuser->updatedb();
        adminlog(lang('detail_edit_member'));
        amessage('membermodifyfinish', M_REFERER);
    }
}
Beispiel #6
0
<?php

!defined('M_COM') && exit('No Permission');
if (!submitcheck('bmemberpwd')) {
    tabheader(lang('memberpwdsetting'), 'memberpwd', '?action=memberpwd', 2, 0, 1);
    trbasic(lang('membercname'), '', $curuser->info['mname'], '');
    trbasic(lang('oldpwd'), 'opassword', '', 'password');
    trbasic(lang('newpwd'), 'npassword', '', 'password');
    trbasic(lang('repwd'), 'npassword2', '', 'password');
    $submitstr = '';
    $submitstr .= makesubmitstr('opassword', 1, 0, 0, 15);
    $submitstr .= makesubmitstr('npassword', 1, 0, 0, 15);
    $submitstr .= makesubmitstr('npassword2', 1, 0, 0, 15);
    $submitstr .= tr_regcode('login');
    tabfooter('bmemberpwd');
    check_submit_func($submitstr);
} else {
    if (!regcode_pass('login', empty($regcode) ? '' : trim($regcode))) {
        mcmessage('regcodeerror', '?action=memberpwd');
    }
    $opassword = trim($opassword);
    $npassword = trim($npassword);
    $npassword2 = trim($npassword2);
    if (md5(md5($opassword)) != $curuser->info['password']) {
        mcmessage('oldpasserror', '?action=memberpwd');
    }
    if ($npassword != $npassword2) {
        mcmessage('notsamepwd', '?action=memberpwd');
    }
    if (!$npassword || strlen($npassword) > 15 || $npassword != addslashes($npassword)) {
        mcmessage('memberpwdillegal', '?action=memberpwd');
Beispiel #7
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
if (!submitcheck('bmtagadd') && !submitcheck('bmtagsdetail') && !submitcheck('bmtagcode')) {
    templatebox(lang('tagtemplate'), 'mtagnew[template]', empty($mtag['template']) ? '' : $mtag['template'], 10, 110);
    trbasic(lang('arr_pre'), 'mtagnew[setting][val]', empty($mtag['setting']['val']) ? 'v' : $mtag['setting']['val'], 'text', lang('agarr_pre'));
    trbasic(lang('list_result'), 'mtagnew[setting][limits]', empty($mtag['setting']['limits']) ? 10 : $mtag['setting']['limits']);
    tabfooter();
    tabheader(lang('filter0_set'));
    $matidsarr = array();
    foreach ($matypes as $k => $v) {
        $matidsarr[$k] = $v['cname'];
        $imatid = $k;
    }
    trbasic(lang('pointmatype'), 'mtagnew[setting][matid]', makeoption($matidsarr, empty($mtag['setting']['matid']) ? '0' : $mtag['setting']['matid']), 'select');
    $orderbyarr = array('' => lang('nosetting'), 'createdate_desc' => lang('createdate_desc'), 'createdate_asc' => lang('createdate_asc'), 'refreshdate_desc' => lang('refreshdate_desc'));
    trbasic(lang('order'), 'mtagnew[setting][orderby]', makeoption($orderbyarr, empty($mtag['setting']['orderby']) ? '' : $mtag['setting']['orderby']), 'select');
    $createurl = "&nbsp; >><a href=\"?entry=liststr&tclass=marchives_{$imatid}\" target=\"_blank\">" . lang('create_str') . "</a>";
    trbasic(lang('order_str') . $createurl, 'mtagnew[setting][orderstr]', empty($mtag['setting']['orderstr']) ? '' : stripslashes($mtag['setting']['orderstr']), 'textarea');
    trbasic(lang('startno'), 'mtagnew[setting][startno]', empty($mtag['setting']['startno']) ? '' : $mtag['setting']['startno'], 'text', lang('agstartno'));
    $isfuncstr = "<br><input class=\"checkbox\" type=\"checkbox\" id=\"mtagnew[setting][isfunc]\" name=\"mtagnew[setting][isfunc]\"" . (empty($mtag['setting']['isfunc']) ? '' : ' checked') . ">" . lang('fromfunc');
    trbasic(lang('filter_sql_str') . $createurl . $isfuncstr, 'mtagnew[setting][wherestr]', empty($mtag['setting']['wherestr']) ? '' : $mtag['setting']['wherestr'], 'textarea');
    trbasic(lang('tagjspick'), 'mtagnew[setting][js]', empty($mtag['setting']['js']) ? 0 : $mtag['setting']['js'], 'radio');
    tabfooter();
} else {
    if (empty($mtagnew['template'])) {
        if (!submitcheck('bmtagcode')) {
            amessage('input_tag_tpl', M_REFERER);
        } else {
            $errormsg = lang('input_tag_tpl');
        }
Beispiel #8
0
<?php

(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
if (!submitcheck('bmtagadd') && !submitcheck('bmtagsdetail') && !submitcheck('bmtagcode')) {
    templatebox(lang('tagtemplate'), 'mtagnew[template]', empty($mtag['template']) ? '' : $mtag['template'], 10, 110);
    trbasic(lang('arr_pre'), 'mtagnew[setting][val]', empty($mtag['setting']['val']) ? 'v' : $mtag['setting']['val'], 'text', lang('agarr_pre'));
    trbasic(lang('list_result'), 'mtagnew[setting][limits]', empty($mtag['setting']['limits']) ? '10' : $mtag['setting']['limits']);
    trbasic(lang('tagjspick'), 'mtagnew[setting][js]', empty($mtag['setting']['js']) ? 0 : $mtag['setting']['js'], 'radio');
    tabfooter();
    tabheader(lang('setting_list_item'));
    $sourcearr = array('0' => lang('all_space0_catalog'), '1' => lang('handpoint'));
    sourcemodule(lang('space0catalog') . "&nbsp;&nbsp;&nbsp;<input class=\"radio\" type=\"radio\" name=\"mtagnew[setting][listby]\" value=\"ca\"" . (empty($mtag['setting']['listby']) || $mtag['setting']['listby'] == 'ca' ? " checked" : "") . ">" . lang('list_item'), 'mtagnew[setting][casource]', $sourcearr, empty($mtag['setting']['casource']) ? '0' : $mtag['setting']['casource'], '1', 'mtagnew[setting][caids][]', mcaidsarr(), !empty($mtag['setting']['caids']) ? explode(',', $mtag['setting']['caids']) : array());
    $sourcearr = array('0' => lang('catalog_all_coclass'));
    trbasic(lang('uclass') . "&nbsp;&nbsp;&nbsp;<input class=\"radio\" type=\"radio\" name=\"mtagnew[setting][listby]\" value=\"uc\"" . (!empty($mtag['setting']['listby']) && $mtag['setting']['listby'] == 'uc' ? " checked" : "") . ">" . lang('list_item'), 'mtagnew[setting][ucsource]', makeoption($sourcearr, isset($mtag['setting']['ucsource']) ? $mtag['setting']['ucsource'] : '0'), 'select');
    tabfooter();
} else {
    if (empty($mtagnew['template'])) {
        if (!submitcheck('bmtagcode')) {
            amessage('input_tag_tpl', M_REFERER);
        } else {
            $errormsg = lang('input_tag_tpl');
        }
        //生成代码出错的提示信息
    }
    $mtagnew['setting']['limits'] = empty($mtagnew['setting']['limits']) ? 10 : max(0, intval($mtagnew['setting']['limits']));
    //数组参数的处理
    $idvars = array('caids');
    foreach ($idvars as $k) {
        if (empty($mtagnew['setting'][$k])) {
            unset($mtagnew['setting'][$k]);
        } else {
Beispiel #9
0
        $cmsgnew['ename'] = strtolower(trim(strip_tags($cmsgnew['ename'])));
        if (in_array($cmsgnew['ename'], array_keys($cmsgs))) {
            amessage('enamerepeat', '?entry=cmsgs&action=cmsgsedit');
        }
        $cmsgnew['content'] = trim($cmsgnew['content']);
        $db->query("INSERT INTO {$tblprefix}cmsgs SET \n\t\t\t\t\tename='{$cmsgnew['ename']}', \n\t\t\t\t\tcontent='{$cmsgnew['content']}',\n\t\t\t\t\tcreatedate='{$timestamp}'\n\t\t\t\t\t");
        adminlog(lang('add_cmsg'));
        updatecache('cmsgs');
        amessage('cmsgaddfinish', "?entry=cmsgs&action=cmsgsedit");
    }
} elseif ($action == 'cmsgdetail' && $ename) {
    if (!($cmsg = $db->fetch_one("SELECT * FROM {$tblprefix}cmsgs WHERE ename='{$ename}'"))) {
        amessage('confirmchoosecmsg');
    }
    if (!submitcheck('bcmsgdetail')) {
        tabheader(lang('edit_cmsg'), 'cmsgdetail', "?entry=cmsgs&action=cmsgdetail&ename={$ename}");
        trbasic(lang('cmsg_ename'), '', $cmsg['ename'], '');
        trbasic(lang('cmsg_content'), 'cmsgnew[content]', $cmsg['content'], 'textarea');
        //trbasic(lang('cmsg_jump_url'),'cmsgnew[jump]',$cmsg['jump'],'btext');
        //trbasic(lang('cmsg_view_url'),'cmsgnew[urls]',$cmsg['urls'],'textarea');
        tabfooter('bcmsgdetail');
        a_guide('cmsgdetail');
    } else {
        $cmsgnew['content'] = trim($cmsgnew['content']);
        $sql = $cmsgnew['content'] != $cmsg['content'] ? ",createdate='{$timestamp}'" : '';
        $db->query("UPDATE {$tblprefix}cmsgs SET \n\t\t\t\t\tcontent='{$cmsgnew['content']}'\n\t\t\t\t\t{$sql}\n\t\t\t\t\tWHERE ename='{$ename}'");
        adminlog(lang('edit_cmsg_detail'));
        updatecache('cmsgs');
        amessage('cmsgmodifyfinish', "?entry=cmsgs&action=cmsgsedit");
    }
}
Beispiel #10
0
!defined('M_COM') && exit('No Permission');
$aid = empty($aid) ? 0 : max(0, intval($aid));
//关于文档的个人分类
$uclasses = loaduclasses($curuser->info['mid']);
$ucidsarr = array();
foreach ($uclasses as $k => $v) {
    if (!$v['cuid']) {
        $ucidsarr[$k] = $v['title'];
    }
}
$aedit = new cls_arcedit();
$aedit->set_aid($aid);
$aedit->detail_data();
$chid = $aedit->archive['chid'];
tabheader(lang('basemessage'));
trbasic(lang('archivetitle'), '', $aedit->archive['subject'], '');
trbasic(lang('membercname'), '', $aedit->archive['mname'], '');
trbasic(lang('addtime'), '', date("Y-m-d H:i:s", $aedit->archive['createdate']), '');
trbasic(lang('updatetime'), '', date("Y-m-d H:i:s", $aedit->archive['updatedate']), '');
trbasic(lang('retime'), '', date("Y-m-d H:i:s", $aedit->archive['refreshdate']), '');
trbasic(lang('endtime'), '', $aedit->archive['enddate'] ? date("Y-m-d H:i:s", $aedit->archive['enddate']) : '-', '');
trbasic(lang('checkstate'), '', ($aedit->archive['checked'] ? lang('check') : lang('uncheck')) . '&nbsp;&nbsp;/&nbsp;&nbsp;' . ($aedit->archive['editor'] ? $aedit->archive['editor'] : '-'), '');
trbasic(lang('clickcomment'), '', $aedit->archive['clicks'] . '&nbsp;&nbsp;/&nbsp;&nbsp;' . $aedit->archive['comments'], '');
tabfooter();
tabheader(lang('othermessage'));
trbasic(lang('channel'), '', $aedit->archive['chid'] ? $channels[$aedit->archive['chid']]['cname'] : '-', '');
//trbasic(lang('browse archive deductvalue'),'',empty($aedit->archive['tax_price']) ? '-' : $aedit->archive['tax_price'],'');
//trbasic(lang('browse archive saleprice'),'',empty($aedit->archive['sale_price']) ? '-' : $aedit->archive['sale_price'],'');
//trbasic(lang('attachment deductvalue').'/'.lang('piece'),'',empty($aedit->archive['f_tax_price']) ? '-' : $aedit->archive['f_tax_price'],'');
//trbasic(lang('attachment saleprice').'/'.lang('piece'),'',empty($aedit->archive['f_sale_price']) ? '-' : $aedit->archive['f_sale_price'],'');
tabfooter();
Beispiel #11
0
 if ($amode) {
     if ($uedit->info['mid'] != $memberid) {
         mcmessage('yntrap');
     }
 } else {
     if ($uedit->info['fromid'] != $memberid) {
         mcmessage('yntrap');
     }
 }
 foreach (array('mcommu', 'fields') as $var) {
     ${$var} =& $uedit->{$var};
 }
 $oldrow =& $uedit->info;
 $freeupdate = $curuser->check_allow('freeupdatecheck') || !$oldrow['checked'] || $amode;
 if (!submitcheck('newcommu')) {
     tabheader($mcommu['cname'] . '&nbsp; &nbsp; ' . "<a href=\"{$mspaceurl}index.php?mid=" . $oldrow[$amode ? 'fromid' : 'mid'] . "\" target=\"_blank\">>>&nbsp; " . $oldrow[$amode ? 'fromname' : 'mname'] . "</a>", 'commudetail', "?action=mreply&amode={$amode}&cid={$cid}", 2, 1, 1);
     $submitstr = '';
     $a_field = new cls_field();
     foreach ($fields as $k => $v) {
         if (empty($u_lists) || in_array($k, $u_lists)) {
             if (!$v['isfunc']) {
                 $a_field->init();
                 $a_field->field = $v;
                 $a_field->oldvalue = $oldrow[$k];
                 $noedit = noedit($k, !$amode && $v['isadmin'] || !$curuser->pmbypmids('field', $v['pmid']));
                 $a_field->trfield('communew', $noedit, '', 'mr');
                 !$noedit && ($submitstr .= $a_field->submitstr);
             }
         }
     }
     unset($a_field);
Beispiel #12
0
                $fromid = min($selectid);
                $transtr = '';
                $transtr .= "&select_all=1";
                $transtr .= "&pages={$pages}";
                $transtr .= "&npage={$npage}";
                $transtr .= "&barcsedit=1";
                $transtr .= "&fromid={$fromid}";
                amessage('operating', "?entry={$entry}&action={$action}&page={$page}{$filterstr}{$transtr}{$parastr}&dealstr={$dealstr}", $pages, $npage, "<a href=\"?entry={$entry}&action={$action}&page={$page}{$filterstr}\">", '</a>');
            }
        }
        adminlog(lang('member_admin'), lang('member_list_admin'));
        amessage('memberoperatefinish', "?entry={$entry}&action={$action}&page={$page}{$filterstr}");
    }
} elseif ($action == 'mreportsdetail' && !empty($cid)) {
    ($result = $db->fetch_one("SELECT * FROM {$tblprefix}mreports WHERE cid='{$cid}' LIMIT 0,1")) || amessage('selectoperateitem');
    load_cache('mbfields');
    tabheader(lang('memberreport') . ' - ' . $result['mname']);
    include_once M_ROOT . "./include/fields.cls.php";
    $a_field = new cls_field();
    foreach ($mbfields as $k => $v) {
        if (!$v['isadmin'] && !$v['isfunc']) {
            //			trbasic($v['cname'],'',$result[$k],'');
            $a_field->init();
            $a_field->field = $v;
            $a_field->oldvalue = $result[$k];
            $a_field->trfield('', '', 'mb');
        }
    }
    unset($a_field);
    tabfooter();
}
Beispiel #13
0
 if (!$curuser->allow_arcadd($chid, $pre_cns)) {
     mcmessage('noissuepermission', '', lang('cn_pointed'));
 }
 if (!empty($pre_cns['caid'])) {
     $nsid = $acatalogs[$pre_cns['caid']]['sid'];
 }
 if ($pid) {
     $nsid = $p_album['sid'];
 }
 if ($nsid == -1) {
     $catalogs =& $acatalogs;
 } else {
     load_cache('catalogs', $nsid);
 }
 $submitstr = '';
 tabheader($channel['cname'] . '&nbsp; -&nbsp; ' . lang('add_archive'), 'archiveadd', "?chid={$chid}{$forwardstr}", 2, 1, 1, 1);
 if ($pid) {
     //指定合辑内添加文档的信息提示
     trhidden('archiveadd[pid]', $pid);
     trbasic(lang('belong_album'), '', $p_channel['cname'] . "&nbsp; -&nbsp; <a href=\"" . view_arcurl($p_album) . "\" target=\"_blank\">" . mhtmlspecialchars($p_album['subject']) . "</a>", '');
     $volids = volidsarr($pid);
     $volids && trbasic(lang('set_volid'), 'archiveadd[volid]', makeoption(array('0' => lang('nosetting')) + $volids), 'select');
 }
 //栏目定义
 if (empty($pre_cns['caid'])) {
     tr_cns('*' . lang('be_catalog'), 'archiveadd[caid]', 0, $nsid, 0, $chid, lang('p_choose'));
 } else {
     trbasic('*' . lang('be_catalog'), '', @$acatalogs[$pre_cns['caid']]['title'], '');
     trhidden('archiveadd[caid]', $pre_cns['caid']);
 }
 $submitstr .= makesubmitstr('archiveadd[caid]', 1, 0, 0, 0, 'common');
Beispiel #14
0
     amessage('choosereport');
 }
 $commu = read_cache('commu', $report['cuid']);
 //$fieldsarr = empty($commu['setting']['fields']) ? array() : explode(',',$commu['setting']['fields']);
 $citems = empty($commu['setting']['citems']) ? array() : explode(',', $commu['setting']['citems']);
 $aedit = new cls_arcedit();
 $aedit->set_aid($report['aid']);
 $aedit->detail_data();
 if (!submitcheck('newcommu')) {
     tabheader($commu['cname'] . '&nbsp; -&nbsp; ' . lang('based_msg'), 'commudetail', "?entry=reports&action=reportdetail&cid={$cid}{$param_suffix}{$forwardstr}", 2, 1, 1);
     $archive = $db->fetch_one("SELECT * FROM {$tblprefix}archives WHERE aid='{$report['aid']}'");
     trbasic(lang('lookrelatedsource'), '', "<a href=\"" . view_arcurl($aedit->archive) . "\" target=\"_blank\">>>&nbsp; " . $aedit->archive['subject'] . "</a>", '');
     trbasic(lang('add_time'), '', date('Y-m-d H:i', $report['createdate']), '');
     tabfooter();
     $a_field = new cls_field();
     tabheader($commu['cname'] . '&nbsp; -&nbsp; ' . lang('submitmessage'));
     $submitstr = '';
     foreach ($ucotypes as $k => $v) {
         if (in_array('uccid' . $k, $citems) && $v['umode'] != 1) {
             trbasic($v['cname'], '', mu_cnselect("communew[uccid{$k}]", $report["uccid{$k}"], $k, lang('p_choose'), $v['emode'], "communew[uccid{$k}date]", @$report["uccid{$k}date"] ? date('Y-m-d', $report["uccid{$k}date"]) : ''), '');
             $submitstr .= makesubmitstr("communew[uccid{$k}]", $v['notblank'], 0, 0, 0, 'common');
             $v['emode'] == 2 && ($submitstr .= makesubmitstr("communew[uccid{$k}date]", 1, 0, 0, 0, 'date'));
         }
     }
     $a_field = new cls_field();
     foreach ($bfields as $k => $v) {
         if (!$v['isfunc'] && in_array($k, $citems)) {
             $a_field->init();
             $a_field->field = $v;
             $a_field->oldvalue = isset($report[$k]) ? $report[$k] : '';
             $a_field->trfield('communew', '', 'b');
Beispiel #15
0
 $wheresql = "WHERE " . (empty($no_list) ? $wheresql : '1=0');
 if (!submitcheck('barcsedit')) {
     if (empty($u_tplname)) {
         echo form_str($actionid . 'arcsedit', "?entry=inarchive&action=reports&aid={$aid}&page={$page}{$param_suffix}");
         //搜索区块
         tabheader_e();
         echo "<tr><td colspan=\"2\" class=\"txt txtleft\">";
         //关键词固定显示
         echo lang('keyword') . "&nbsp; <input class=\"text\" name=\"keyword\" type=\"text\" value=\"{$keyword}\" size=\"8\" style=\"vertical-align: middle;\">&nbsp; ";
         echo "<input class=\"btn\" type=\"submit\" name=\"bfilter\" id=\"bfilter\" value=\"" . lang('filter0') . "\">";
         echo "</td></tr>";
         //某些固定页面参数
         trhidden('niuid', $niuid);
         tabfooter();
         //列表区
         tabheader($aedit->archive['subject'] . '&nbsp; ' . lang('report_list'), '', '', 9);
         $cy_arr = array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('title'));
         if (in_array('mname', $u_lists)) {
             $cy_arr[] = lang('member');
         }
         if (in_array('adddate', $u_lists)) {
             $cy_arr[] = lang('add_date');
         }
         if (in_array('edit', $u_lists)) {
             $cy_arr[] = lang('edit');
         }
         trcategory($cy_arr);
         $pagetmp = $page;
         do {
             $query = $db->query("SELECT cu.*,cu.createdate AS ucreatedate,a.sid,a.createdate,a.caid,a.chid,a.customurl,a.subject AS asubject {$fromsql} {$wheresql} ORDER BY cu.cid DESC LIMIT " . ($pagetmp - 1) * $atpp . ",{$atpp}");
             $pagetmp--;
Beispiel #16
0
    tabfooter();
    $pagetmp = $page;
    do {
        $query = $db->query("SELECT s.*,a.* FROM {$tblprefix}subscribes s LEFT JOIN {$tblprefix}archives a ON a.aid=s.aid {$wheresql} ORDER BY s.id DESC LIMIT " . ($pagetmp - 1) * $mrowpp . ",{$mrowpp}");
        $pagetmp--;
    } while (!$db->num_rows($query) && $pagetmp);
    $itemstr = '';
    while ($item = $db->fetch_array($query)) {
        $id = $item['id'];
        $item['arcurl'] = view_arcurl($item);
        $item['createdate'] = date("{$dateformat}", $item['createdate']);
        $itemstr .= "<tr><td class=\"item\" width=\"40\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[{$id}]\" value=\"{$id}\"></td>\n" . "<td class=\"item2\"><a href=\"{$item['arcurl']}\" target=\"_blank\">" . mhtmlspecialchars($item['subject']) . "</a></td>\n" . "<td class=\"item\" width=\"80\">" . $catalogs[$item['caid']]['title'] . "</td>\n" . "<td class=\"item\" width=\"80\">" . ($item['isatm'] ? 'Y' : '-') . "</td>\n" . "<td class=\"item\" width=\"80\">{$item['cridstr']}</td>\n" . "<td class=\"item\" width=\"70\">{$item['createdate']}</td></tr>\n";
    }
    $itemcount = $db->result_one("SELECT COUNT(*) FROM {$tblprefix}subscribes s LEFT JOIN {$tblprefix}archives a ON a.aid=s.aid {$wheresql}");
    $multi = multi($itemcount, $mrowpp, $page, "?action=subscribes{$filterstr}");
    tabheader(lang('subscribelist') . "&nbsp;&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"select_all\" value=\"1\">&nbsp;" . lang('selectallpage'), '', '', 8);
    trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('title'), lang('catalog'), lang('attachment'), lang('currency'), lang('purchasedate')));
    echo $itemstr;
    tabfooter();
    echo $multi;
    echo "<input class=\"button\" type=\"submit\" name=\"barcsedit\" value=\"" . lang('del') . "\"></form>";
} else {
    if (empty($selectid) && empty($select_all)) {
        mcmessage('subscribecontent', $forward);
    }
    if (!empty($select_all)) {
        $selectid = array();
        $npage = empty($npage) ? 1 : $npage;
        if (empty($pages)) {
            $itemcount = $db->result_one("SELECT COUNT(*) FROM {$tblprefix}subscribes s LEFT JOIN {$tblprefix}archives a ON a.aid=s.aid {$wheresql}");
            $pages = @ceil($itemcount / $mrowpp);
Beispiel #17
0
     message('younoflinkpermis');
 }
 $fieldsarr = empty($mcommu['setting']['fields']) ? array() : explode(',', $mcommu['setting']['fields']);
 if (!submitcheck('newcommu')) {
     if (!empty($mcommu['setting']['norepeat']) && ($cid = $db->result_one("SELECT cid FROM {$tblprefix}mflinks WHERE mid='{$mid}' AND fromid='{$memberid}' ORDER BY cid"))) {
         message('dorepeataddflink');
     }
     if (empty($mcommu['addtpl']) || !($template = load_tpl($mcommu['addtpl']))) {
         load_cache('mlangs,mlfields');
         include_once M_ROOT . "./include/fields.cls.php";
         include_once M_ROOT . "./include/cheader.inc.php";
         _header();
         if (!($oldmsg = $db->fetch_one("SELECT * FROM {$tblprefix}mflinks WHERE fromid='{$memberid}' ORDER BY cid DESC LIMIT 0,1"))) {
             $oldmsg = array();
         }
         tabheader(lang('add') . $mcommu['cname'], 'flinkadd', "?mid={$mid}{$forwardstr}", 2, 1, 1);
         $submitstr = '';
         $a_field = new cls_field();
         foreach ($mlfields as $k => $v) {
             if (!$v['isadmin'] && !$v['isfunc'] && in_array($k, $fieldsarr)) {
                 $a_field->init();
                 $a_field->field = $v;
                 if (isset($oldmsg[$k])) {
                     $a_field->oldvalue = $oldmsg[$k];
                 } else {
                     $a_field->isadd = 1;
                 }
                 $a_field->trfield('communew', '', 'ml');
                 $submitstr .= $a_field->submitstr;
             }
         }
Beispiel #18
0
 trbasic(lang('mail_smtp'), 'mconfigsnew[mail_smtp]', $mconfigs['mail_smtp']);
 trbasic(lang('mail_port'), 'mconfigsnew[mail_port]', $mconfigs['mail_port']);
 echo "</tbody>";
 echo "<tbody id=\"mail_mod2\" style=\"display:" . ($mconfigs['mail_mode'] == 2 ? '' : 'none') . "\">";
 trbasic(lang('mail_auth'), 'mconfigsnew[mail_auth]', $mconfigs['mail_auth'], 'radio');
 trbasic(lang('mail_from'), 'mconfigsnew[mail_from]', $mconfigs['mail_from']);
 trbasic(lang('mail_user'), 'mconfigsnew[mail_user]', $mconfigs['mail_user']);
 trbasic(lang('mail_pwd'), 'mconfigsnew[mail_pwd]', $mconfigs['mail_pwd'], 'password');
 echo "</tbody>";
 trbasic(lang('mail_delimiter'), 'mconfigsnew[mail_delimiter]', makeoption($delimiterarr, $mconfigs['mail_delimiter']), 'select');
 trbasic(lang('mail_silent'), 'mconfigsnew[mail_silent]', $mconfigs['mail_silent'], 'radio');
 trbasic(lang('mail_to'), 'mconfigsnew[mail_to]');
 trbasic(lang('mail_sign'), 'mconfigsnew[mail_sign]');
 tabfooter();
 echo "<input class=\"button\" type=\"submit\" name=\"bmconfigs\" value=\"" . lang('submit') . "\">&nbsp; &nbsp;" . "<input class=\"button\" type=\"button\" name=\"mailcheck\" value=\"" . lang('mailtest') . "\" onclick=\"var url=this.form.action;this.form.action='?entry=checks&action=mailcheck';this.form.target='mailcheckiframe';this.form.submit();this.form.action=url;this.form.target='_self'\"><iframe name=\"mailcheckiframe\" style=\"display: none\"></iframe>" . "</form>";
 tabheader(lang('mobileset'), 'cfmobile', '?entry=mconfigs&action=cfmobmail');
 echo "<tr class=\"txt\"><td class=\"txt txtright fB borderright\">" . lang('msgcodemode') . "</td>\n" . "<td class=\"txtL\">\n" . "<input class=\"radio\" type=\"radio\" id=\"msgcode_mode2\" name=\"mconfigsnew[msgcode_mode]\" value=\"2\" onclick=\"\$id('msgcode1').style.display = 'none';\$id('msgcode2').style.display = '';\"" . (@$mconfigs['msgcode_mode'] == 2 ? ' checked="checked"' : '') . "><label for=\"msgcode_mode2\">" . lang('msgcode2') . "</label> " . "<input class=\"radio\" type=\"radio\" id=\"msgcode_mode1\" name=\"mconfigsnew[msgcode_mode]\" value=\"1\" onclick=\"\$id('msgcode1').style.display = '';\$id('msgcode2').style.display = 'none';\"" . (@$mconfigs['msgcode_mode'] == 1 ? ' checked="checked"' : '') . "><label for=\"msgcode_mode1\">" . lang('msgcode1') . "</label> " . "<input class=\"radio\" type=\"radio\" id=\"msgcode_mode0\" name=\"mconfigsnew[msgcode_mode]\" value=\"0\" onclick=\"\$id('msgcode1').style.display = 'none';\$id('msgcode2').style.display = 'none';\"" . (@(!$mconfigs['msgcode_mode']) ? ' checked="checked"' : '') . "><label for=\"msgcode_mode0\">" . lang('msgcode0') . "</label> " . "</td></tr>\n";
 echo "<tbody id=\"msgcode2\" style=\"display:" . (@$mconfigs['msgcode_mode'] == 2 ? '' : 'none') . "\">";
 trbasic(lang('msggate'), '', '<input class="radio" type="radio" id="msgcode_gate1" name="mconfigsnew[msgcode_gate]" value="1"' . (@$mconfigs['msgcode_gate'] == 1 ? ' checked="checked"' : '') . "><label for=\"msgcode_gate1\">" . lang('msggate1') . "</label>", '');
 trbasic(lang('msgcode_sp1'), 'mconfigsnew[msgcode_sp1]', @$mconfigs['msgcode_sp1']);
 trbasic(lang('msgcode_pw1'), 'mconfigsnew[msgcode_pw1]', @$mconfigs['msgcode_pw1']);
 trbasic(lang('msggate'), '', '<input class="radio" type="radio" id="msgcode_gate2" name="mconfigsnew[msgcode_gate]" value="2"' . (@$mconfigs['msgcode_gate'] != 1 ? ' checked="checked"' : '') . "><label for=\"msgcode_gate2\">" . lang('msggate2') . "</label>", '');
 trbasic(lang('msgcode_sp2'), 'mconfigsnew[msgcode_sp2]', @$mconfigs['msgcode_sp2']);
 trbasic(lang('msgcode_pw2'), 'mconfigsnew[msgcode_pw2]', @$mconfigs['msgcode_pw2']);
 trbasic(lang('msgcode_sms'), 'mconfigsnew[msgcode_sms]', @$mconfigs['msgcode_sms'], 'textarea', lang('msgcode_sms_tip'));
 echo "</tbody>";
 echo "<tbody id=\"msgcode1\" style=\"display:" . (@$mconfigs['msgcode_mode'] == 1 ? '' : 'none') . "\">";
 trbasic(lang('msgcode_msg'), 'mconfigsnew[msgcode_msg]', @$mconfigs['msgcode_msg'], 'textarea', lang('msgcode_msg_tip'));
 echo "</tbody>";
 tabfooter();
 echo '<input class="button" type="submit" name="bmconfigs" value="' . lang('submit') . '"/>&nbsp; &nbsp;' . '<input type="hidden" name="mobmode" value="1"/>' . '</form>';
Beispiel #19
0
                $transtr .= "&fromid={$fromid}";
                amessage('operating', "?entry={$entry}&action={$action}{$param_suffix}&page={$page}{$filterstr}{$transtr}{$parastr}&dealstr={$dealstr}", $pages, $npage, "<a href=\"?entry={$entry}&action={$action}{$param_suffix}&page={$page}{$filterstr}\">", '</a>');
            }
        }
        updatecache('cnodes', '', $sid);
        adminlog(lang('cnode_admin_operate'), lang('cnode_list_admin'));
        amessage('cnodeoperatefinish', "?entry={$entry}&action={$action}&page={$page}{$param_suffix}{$filterstr}");
    }
} elseif ($action == 'cnodedetail' && $cnid) {
    $forward = empty($forward) ? M_REFERER : $forward;
    $cnode = $db->fetch_one("SELECT * FROM {$tblprefix}cnodes WHERE cnid={$cnid}");
    foreach (array('tpls', 'wtpls', 'urls', 'statics', 'periods') as $var) {
        ${$var . 'arr'} = explode(',', $cnode[$var]);
    }
    if (!submitcheck('bcnodedetail')) {
        tabheader(lang('cnode_detail_set'), 'cnodedetail', "?entry={$entry}&action={$action}{$param_suffix}&cnid={$cnid}&forward=" . urlencode($forward));
        trbasic(lang('cnode_name'), '', cnode_cname($cnode['ename']), '');
        trbasic(lang('cnode_alias'), 'cnodenew[alias]', $cnode['alias']);
        trbasic(lang('cnode_url'), 'cnodenew[appurl]', $cnode['appurl'], 'btext', lang('agappurl'));
        for ($i = 0; $i <= $cnode['addnum']; $i++) {
            $pvar = $i ? lang('addp') . $i : lang('index');
            trbasic($pvar . lang('template'), 'tplsnew[]', makeoption(array('' => lang('noset')) + mtplsarr('cindex'), empty($tplsarr[$i]) ? '' : $tplsarr[$i]), 'select');
            trbasic($pvar . lang('wtemplate'), 'wtplsnew[]', makeoption(array('' => lang('noset')) + mtplsarr('wap'), empty($wtplsarr[$i]) ? '' : $wtplsarr[$i]), 'select');
            trbasic($pvar . lang('staticfomart'), 'urlsnew[]', empty($urlsarr[$i]) ? '' : $urlsarr[$i], 'btext', !$i ? lang('agcnstaticfomart') : '');
            trbasic($pvar . lang('ifstatic'), "staticsnew[{$i}]", makeoption(array(0 => lang('staticsys'), 1 => lang('keepdnc'), 2 => lang('create_static')), empty($staticsarr[$i]) ? 0 : $staticsarr[$i]), 'select');
            trbasic($pvar . lang('staticperiod'), 'periodsnew[]', empty($periodsarr[$i]) ? '' : $periodsarr[$i], 'text');
        }
        tabfooter('bcnodedetail');
        a_guide('cnodedetail');
    } else {
        $cnodenew['alias'] = trim(strip_tags($cnodenew['alias']));
Beispiel #20
0
        foreach ($mcommu as $k => $v) {
            if (!in_array($k, array('cuid', 'cname', 'issystem', 'uconfig'))) {
                $sqlstr .= ",{$k}='" . addslashes($v) . "'";
            }
        }
        $db->query("INSERT INTO {$tblprefix}mcommus SET {$sqlstr}");
        $cuid = $db->insert_id();
        updatecache('mcommus');
        adminlog(lang('copymcomitem'));
        amessage('mcommucopyfinish', "?entry=mcommus&action=mcommudetail&cuid={$cuid}");
    }
} elseif ($action == 'mcommudetail' && $cuid) {
    $mcommu = fetch_one($cuid);
    empty($mcommu) && amessage('chooseitem');
    if (!submitcheck('bmcommudetail')) {
        tabheader(lang('memcomitset'), 'mcommudetail', "?entry=mcommus&action=mcommudetail&cuid={$cuid}", 2, 0, 0, 1);
        trbasic(lang('item_type'), '', $cclassarr[$mcommu['cclass']], '');
        trbasic(lang('item_name'), 'mcommunew[cname]', $mcommu['cname']);
        if (!empty($mcommu['usetting'])) {
            $str = '';
            foreach ($mcommu['usetting'] as $k => $v) {
                $str .= $k . '=' . $v . "\n";
            }
            $mcommu['usetting'] = $str;
            unset($str);
        }
        include M_ROOT . './include/mcommus/' . $mcommu['cclass'] . '.php';
        tabfooter('bmcommudetail', lang('modify'));
        a_guide('mcommudetail');
    } else {
        $submitmode = true;
Beispiel #21
0
                $wheresql .= empty($ugids) ? "" : (empty($wheresql) ? "" : " AND ") . "{$fieldname} IN ({$ugids})";
            }
        }
        $wheresql = empty($wheresql) ? "" : "WHERE {$wheresql}";
        $query = $db->query("SELECT mid FROM {$tblprefix}members {$wheresql} ORDER BY mid");
        while ($user = $db->fetch_array($query)) {
            //收信数量限制分析
            $db->query("INSERT INTO {$tblprefix}pms SET\n\t\t\t\t\t\ttitle = '{$pmnew['title']}',\n\t\t\t\t\t\tcontent = '{$pmnew['content']}',\n\t\t\t\t\t\ttoid = '{$user['mid']}',\n\t\t\t\t\t\tfromid = '{$memberid}',\n\t\t\t\t\t\tfromuser = '******'mname'] . "',\n\t\t\t\t\t\tpmdate = '{$timestamp}'\n\t\t\t\t\t\t");
        }
        amessage('pmsendfin', '?entry=pms&action=batchpms');
    }
} elseif ($action == 'clearpms') {
    $enable_uc && amessage('goucpmadmin', '', "<a href=\"{$uc_api}\" target=\"_blank\">" . lang('gotopage') . '</a>');
    if (!submitcheck('bclearpms')) {
        url_nav(lang('insitepm'), $urlsarr, 'clear');
        tabheader(lang('pmclearfilter'), 'clearpms', '?entry=pms&action=clearpms');
        trbasic(lang('pmfromids'), 'pmnew[fromids]');
        trbasic(lang('mnamestxt'), 'pmnew[fromnames]');
        trbasic(lang('onlyclearreadpm'), 'pmnew[viewed]', '0', 'radio');
        trbasic(lang('indays'), 'pmnew[days]');
        tabfooter('bclearpms');
        a_guide('pmsclear');
    } else {
        $wheresql = '';
        if (!empty($pmnew['fromids'])) {
            $fromids = array_filter(explode(',', $pmnew['fromids']));
            $fromids = mimplode($fromids);
            $wheresql = empty($fromids) ? "" : "fromid IN ({$fromids})";
        }
        if (!empty($pmnew['fromnames'])) {
            $fromnames = array_filter(explode(',', $pmnew['fromnames']));
Beispiel #22
0
(!defined('M_COM') || !defined('M_ADMIN')) && exit('No Permission');
if (!submitcheck('bmtagadd') && !submitcheck('bmtagsdetail') && !submitcheck('bmtagcode')) {
    templatebox(lang('tagtemplate'), 'mtagnew[template]', empty($mtag['template']) ? '' : $mtag['template'], 10, 110);
    trbasic(lang('arr_pre'), 'mtagnew[setting][val]', empty($mtag['setting']['val']) ? 'v' : $mtag['setting']['val'], 'text', lang('agarr_pre'));
    tabfooter();
    tabheader(lang('filter0_set'));
    $sourcearr = array('0' => lang('nolimitcatas'), '1' => lang('handpoint'), '2' => lang('activecatas'), '3' => lang('nearofactive'));
    sourcemodule(lang('catalog_attr') . "&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"mtagnew[setting][caidson]\" value=\"1\"" . (empty($mtag['setting']['caidson']) ? "" : " checked") . ">" . lang('include_son'), 'mtagnew[setting][casource]', $sourcearr, empty($mtag['setting']['casource']) ? '0' : $mtag['setting']['casource'], '1', 'mtagnew[setting][caids][]', caidsarr($catalogs), empty($mtag['setting']['caids']) ? array() : explode(',', $mtag['setting']['caids']));
    foreach ($cotypes as $k => $cotype) {
        sourcemodule("{$cotype['cname']}" . lang('attr') . "&nbsp;&nbsp;&nbsp;<input class=\"checkbox\" type=\"checkbox\" name=\"mtagnew[setting][ccidson{$k}]\" value=\"1\"" . (empty($mtag['setting']['ccidson' . $k]) ? "" : " checked") . ">" . lang('include_son'), "mtagnew[setting][cosource{$k}]", $sourcearr, empty($mtag['setting']['cosource' . $k]) ? '0' : $mtag['setting']['cosource' . $k], '1', "mtagnew[setting][ccids{$k}][]", ccidsarr($k), empty($mtag['setting']['ccids' . $k]) ? array() : explode(',', $mtag['setting']['ccids' . $k]));
    }
    $chsourcearr = array('0' => lang('nolimitchannel'), '1' => lang('handpoint'));
    sourcemodule(lang('chid_attr'), 'mtagnew[setting][chsource]', $chsourcearr, empty($mtag['setting']['chsource']) ? '' : $mtag['setting']['chsource'], '1', 'mtagnew[setting][chids][]', chidsarr(1), !empty($mtag['setting']['chids']) ? explode(',', $mtag['setting']['chids']) : array());
    tabfooter();
    tabheader(lang('adv_options') . "&nbsp; <input class=\"checkbox\" type=\"checkbox\" name=\"viewdetail\" value=\"1\" onclick=\"alterview('advancedfilter')\">" . lang('view'));
    echo "<tbody id=\"advancedfilter\" style=\"display: none;\">";
    trbasic(lang('only_valid_period'), 'mtagnew[setting][validperiod]', empty($mtag['setting']['validperiod']) ? 0 : $mtag['setting']['validperiod'], 'radio');
    trbasic(lang('view_ch_field'), 'mtagnew[setting][detail]', empty($mtag['setting']['detail']) ? 0 : $mtag['setting']['detail'], 'radio', lang('agtagdetail_yes'));
    trbasic(lang('view_plus_stat'), 'mtagnew[setting][rec]', empty($mtag['setting']['rec']) ? 0 : $mtag['setting']['rec'], 'radio', lang('agtagrec'));
    trbasic(lang('nocp'), 'mtagnew[setting][nocp]', empty($mtag['setting']['nocp']) ? 0 : $mtag['setting']['nocp'], 'radio', lang('agnocp'));
    trbasic(lang('tagjspick'), 'mtagnew[setting][js]', empty($mtag['setting']['js']) ? 0 : $mtag['setting']['js'], 'radio');
    trbasic(lang('clicks_gt'), 'mtagnew[setting][clicks]', !isset($mtag['setting']['clicks']) ? '' : $mtag['setting']['clicks']);
    trbasic(lang('comments_gt'), 'mtagnew[setting][comments]', !isset($mtag['setting']['comments']) ? '' : $mtag['setting']['comments']);
    trbasic(lang('indays'), 'mtagnew[setting][indays]', !isset($mtag['setting']['indays']) ? '' : $mtag['setting']['indays']);
    trbasic(lang('outdays'), 'mtagnew[setting][outdays]', !isset($mtag['setting']['outdays']) ? '' : $mtag['setting']['outdays']);
    trbasic(lang('favorite_pics_gt'), 'mtagnew[setting][favorites]', !isset($mtag['setting']['favorites']) ? '' : $mtag['setting']['favorites']);
    trbasic(lang('praise_pics_gt'), 'mtagnew[setting][praises]', !isset($mtag['setting']['praises']) ? '' : $mtag['setting']['praises']);
    trbasic(lang('debase_pics_gt'), 'mtagnew[setting][debases]', !isset($mtag['setting']['debases']) ? '' : $mtag['setting']['debases']);
    trbasic(lang('goods_orders_amount_gt'), 'mtagnew[setting][orders]', !isset($mtag['setting']['orders']) ? '' : $mtag['setting']['orders']);
    trbasic(lang('goods_price_le'), 'mtagnew[setting][inprice]', empty($mtag['setting']['inprice']) ? '' : $mtag['setting']['inprice']);
Beispiel #23
0
url_nav(lang('originallogo'), $urlsarr, 'search');
$bclasses = array('common' => lang('common_message'), 'archive' => lang('archive_related'), 'cnode' => lang('catas_related'), 'freeinfo' => lang('freeinfo_related'), 'commu' => lang('commu_message'), 'member' => lang('member_related'), 'other' => lang('other'));
$datatypearr = array('text' => lang('text'), 'multitext' => lang('multitext'), 'htmltext' => lang('htmltext'), 'image' => lang('image_f'), 'images' => lang('images'), 'flash' => lang('flash'), 'flashs' => lang('flashs'), 'media' => lang('media'), 'medias' => lang('medias'), 'file' => lang('file_f'), 'files' => lang('files_f'), 'select' => lang('select'), 'mselect' => lang('mselect'), 'cacc' => lang('cacc'), 'date' => lang('date_f'), 'int' => lang('int'), 'float' => lang('float'), 'map' => lang('map'), 'vote' => lang('vote'));
tabheader(lang('search_initag'), 'btagsearch', '?entry=btagsearch');
trbasic(lang('tagid_inc_string'), 'bsearch[ename]', empty($bsearch['ename']) ? '' : $bsearch['ename']);
trbasic(lang('tagname_inc_string'), 'bsearch[cname]', empty($bsearch['cname']) ? '' : $bsearch['cname']);
trbasic(lang('tag_coclass'), 'bsearch[bclass]', makeoption(array('' => lang('nolimit')) + $bclasses, empty($bsearch['bclass']) ? '' : $bsearch['bclass']), 'select');
tabfooter('bbtagsearch', lang('search'));
if (submitcheck('bbtagsearch')) {
    $ename = trim(strtolower($bsearch['ename']));
    $cname = trim($bsearch['cname']);
    $bclass = trim($bsearch['bclass']);
    if (empty($ename) && empty($cname) && empty($bclass)) {
        amessage('inputsearchstring');
    }
    tabheader(lang('initag_search_result'), '', '', '8');
    trcategory(array(lang('sn'), lang('tagname'), array(lang('use_style') . '1', 'txtL'), array(lang('use_style') . '2', 'txtL'), array(lang('use_style') . '3', 'txtL'), lang('tagclass'), lang('detail_coclass'), lang('field_type')));
    $i = 1;
    foreach ($btagnames as $k => $v) {
        if ((!$ename || in_str($ename, $v['ename'])) && (!$cname || in_str($cname, $v['cname'])) && (!$bclass || $v['bclass'] == $bclass)) {
            $sclasses = array();
            if ($v['bclass'] == 'archive') {
                foreach ($channels as $chid => $channel) {
                    $sclasses[$chid] = $channel['cname'];
                }
            } elseif ($v['bclass'] == 'cnode') {
                $sclasses = array('catalog' => lang('catalog'), 'coclass' => lang('coclass'));
            } elseif ($v['bclass'] == 'freeinfo') {
                foreach ($fchannels as $chid => $channel) {
                    $sclasses[$chid] = $channel['cname'];
                }
Beispiel #24
0
    trbasic(lang('clicks_gt'), 'mtagnew[setting][clicks]', !isset($mtag['setting']['clicks']) ? '' : $mtag['setting']['clicks']);
    trbasic(lang('online_time'), 'mtagnew[setting][onlinetime]', !isset($mtag['setting']['onlinetime']) ? '' : $mtag['setting']['onlinetime']);
    trbasic(lang('msclicks1'), 'mtagnew[setting][msclicks]', !isset($mtag['setting']['msclicks']) ? '' : $mtag['setting']['msclicks']);
    trbasic(lang('issue_archive_amount'), 'mtagnew[setting][checks]', !isset($mtag['setting']['checks']) ? '' : $mtag['setting']['checks']);
    trbasic(lang('comments_gt'), 'mtagnew[setting][comments]', !isset($mtag['setting']['comments']) ? '' : $mtag['setting']['comments']);
    trbasic(lang('purchase_goods_amount'), 'mtagnew[setting][purchases]', !isset($mtag['setting']['purchases']) ? '' : $mtag['setting']['purchases']);
    trbasic(lang('answer_amount'), 'mtagnew[setting][answers]', !isset($mtag['setting']['answers']) ? '' : $mtag['setting']['answers']);
    trbasic(lang('answer_credit'), 'mtagnew[setting][credits]', !isset($mtag['setting']['credits']) ? '' : $mtag['setting']['credits']);
    trbasic(lang('indays'), 'mtagnew[setting][indays]', !isset($mtag['setting']['indays']) ? '' : $mtag['setting']['indays']);
    trbasic(lang('outdays'), 'mtagnew[setting][outdays]', !isset($mtag['setting']['outdays']) ? '' : $mtag['setting']['outdays']);
    $createurl = "&nbsp; >><a href=\"?entry=liststr&tclass=members\" target=\"_blank\">" . lang('create_str') . "</a>";
    $isfuncstr = "<br><input class=\"checkbox\" type=\"checkbox\" id=\"mtagnew[setting][isfunc]\" name=\"mtagnew[setting][isfunc]\"" . (empty($mtag['setting']['isfunc']) ? '' : ' checked') . ">" . lang('fromfunc');
    trbasic(lang('filter_sql_str') . $createurl . $isfuncstr, 'mtagnew[setting][wherestr]', empty($mtag['setting']['wherestr']) ? '' : $mtag['setting']['wherestr'], 'textarea');
    echo "</tbody>";
    tabfooter();
    tabheader(lang('ptnaviset'));
    trbasic(lang('nav_simple'), 'mtagnew[setting][simple]', empty($mtag['setting']['simple']) ? '0' : $mtag['setting']['simple'], 'radio');
    trbasic(lang('nav_length'), 'mtagnew[setting][length]', isset($mtag['setting']['length']) ? $mtag['setting']['length'] : '');
    tabfooter();
} else {
    if (empty($mtagnew['template'])) {
        if (!submitcheck('bmtagcode')) {
            amessage('input_tag_tpl', M_REFERER);
        } else {
            $errormsg = lang('pleinptatem');
        }
        //生成代码出错的提示信息
    }
    $mtagnew['setting']['length'] = $mtagnew['setting']['length'] ? $mtagnew['setting']['length'] : '10';
    $mtagnew['setting']['limits'] = max(0, intval($mtagnew['setting']['limits']));
    $mtagnew['setting']['limits'] = empty($mtagnew['setting']['limits']) ? 10 : $mtagnew['setting']['limits'];
Beispiel #25
0
$wheresql = "WHERE cu.mid={$memberid} AND cu.oid>0";
$keyword && ($wheresql .= " AND a.subject LIKE '%" . str_replace(array(' ', '*'), '%', addcslashes($keyword, '%_')) . "%'");
echo form_str($action . 'arcsedit', "?action={$action}&page={$page}");
tabheader_e();
echo "<tr><td class=\"item2\">";
echo lang('keyword') . "&nbsp; <input class=\"text\" name=\"keyword\" type=\"text\" value=\"{$keyword}\" style=\"vertical-align: middle;\">&nbsp; ";
echo strbutton('bfilter', 'filter0') . '</td></tr>';
tabfooter();
$pagetmp = $page;
do {
    $query = $db->query("SELECT cu.*,cu.createdate AS ucreatedate,a.sid,a.createdate,a.caid,a.chid,a.customurl,a.subject AS asubject FROM {$tblprefix}purchases cu LEFT JOIN {$tblprefix}archives a ON (a.aid=cu.aid) {$wheresql} ORDER BY cu.cid DESC LIMIT " . ($pagetmp - 1) * $mrowpp . ",{$mrowpp}");
    $pagetmp--;
} while (!$db->num_rows($query) && $pagetmp);
$itemstr = '';
$i = $pagetmp * $mrowpp;
while ($item = $db->fetch_array($query)) {
    $i++;
    $item['arcurl'] = view_arcurl($item);
    $item['catalog'] = empty($catalogs[$item['caid']]) ? lang('nocata') : $catalogs[$item['caid']]['title'];
    $item['createdate'] = date("{$dateformat}", $item['ucreatedate']);
    $item['checkedstr'] = $item['oid'] ? 'Y' : '-';
    $item['orderstr'] = $item['oid'] ? "<a href=\"?action=orders&oid={$item['oid']}\">" . lang('look') . "</a>" : '-';
    $itemstr .= "<tr><td class=\"item\" width=\"30\">{$i}</td>\n" . "<td class=\"item2\"><a href=\"{$item['arcurl']}\" target=\"_blank\">" . mhtmlspecialchars($item['asubject']) . "</a></td>\n" . "<td class=\"item\" width=\"80\">{$item['catalog']}</td>\n" . "<td class=\"item\" width=\"40\">{$item['nums']}</td>\n" . "<td class=\"item\" width=\"40\">{$item['price']}</td>\n" . "<td class=\"item\" width=\"40\">{$item['orderstr']}</td>\n" . "<td class=\"item\" width=\"100\">{$item['createdate']}</td></tr>\n";
}
$counts = $db->result_one("SELECT count(*) FROM {$tblprefix}purchases cu LEFT JOIN {$tblprefix}archives a ON (a.aid=cu.aid) {$wheresql}");
$multi = multi($counts, $mrowpp, $page, "?action=purchases{$filterstr}");
tabheader(lang('purchasedgoodslist'), '', '', 9);
trcategory(array(lang('sn'), array(lang('goodscname'), 'left'), lang('catalog'), lang('amount'), lang('price'), lang('orders'), lang('purchasedate')));
echo $itemstr;
tabfooter();
echo $multi;
Beispiel #26
0
$forwardstr = '&forward=' . rawurlencode($forward);
$maid = empty($maid) ? 0 : max(0, intval($maid));
$matid = empty($matid) ? 0 : max(0, intval($matid));
$aedit = new cls_marcedit();
$aedit->set_id($maid, $matid, 0);
if (!$aedit->maid) {
    mcmessage('choosemarchive');
}
if ($aedit->archive['mid'] != $memberid) {
    mcmessage('selectyoumarc');
}
$fields = read_cache('mafields', $matid);
if (!submitcheck('bmarchive')) {
    $a_field = new cls_field();
    $submitstr = '';
    tabheader($aedit->matype['cname'] . '&nbsp; -&nbsp; ' . lang('contentsetting'), 'marchive', "?matid={$matid}&maid={$maid}&action=marchive{$param_suffix}{$forwardstr}", 2, 1, 1, 1);
    foreach ($fields as $k => $field) {
        if ($field['available'] && !$field['isadmin'] && !$field['isfunc']) {
            $a_field->init();
            $a_field->field = $field;
            $a_field->oldvalue = isset($aedit->archive[$k]) ? $aedit->archive[$k] : '';
            $a_field->trfield('marchivenew', '', 'ma', $matid);
            $submitstr .= $a_field->submitstr;
        }
    }
    unset($a_field);
    tabfooter('bmarchive');
    check_submit_func($submitstr);
} else {
    $c_upload = new cls_upload();
    $fields = fields_order($fields);
Beispiel #27
0
 foreach ($commus as $k => $v) {
     if ($v['cclass'] == 'comment') {
         $cuidsarr[$k] = $v['cname'];
     }
 }
 trbasic(lang('arange') . lang('commuitem') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallcuids\" onclick=\"checkall(this.form,'cuidsnew','chkallcuids')\">" . lang('selectall'), '', makecheckbox('cuidsnew[]', $cuidsarr, empty($murl['setting']['cuids']) ? array() : explode(',', $murl['setting']['cuids']), 5), '', lang('agnoselect'));
 $checkedarr = array('-1' => lang('nolimit'), '0' => lang('nocheck'), '1' => lang('checked'));
 trbasic(lang('arange') . lang('check_state'), '', makeradio('murlnew[setting][checked]', $checkedarr, !isset($murl['setting']['checked']) ? '-1' : $murl['setting']['checked']), '');
 trbasic(lang('arange') . lang('achannel') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallchids\" onclick=\"checkall(this.form,'chidsnew','chkallchids')\">" . lang('selectall'), '', makecheckbox('chidsnew[]', chidsarr(1), empty($murl['setting']['chids']) ? array() : explode(',', $murl['setting']['chids']), 5), '', lang('agnoselect'));
 $caidsarr = array();
 foreach ($acatalogs as $k => $v) {
     $caidsarr[$k] = $v['title'] . '(' . $v['level'] . ')';
 }
 trbasic(lang('arange') . lang('catalog') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallcaids\" onclick=\"checkall(this.form,'caidsnew','chkallcaids')\">" . lang('selectall'), '', makecheckbox('caidsnew[]', $caidsarr, empty($murl['setting']['caids']) ? array() : explode(',', $murl['setting']['caids']), 5), '', lang('agnoselect'));
 tabfooter();
 tabheader(lang('pageresult'));
 $tnstr = "<input type=\"text\" size=\"25\" id=\"murlnew[tplname]\" name=\"murlnew[tplname]\" value=\"{$murl['tplname']}\">&nbsp; \n\t\t\t<input class=\"checkbox\" type=\"checkbox\" name=\"murlnew[onlyview]\" id=\"murlnew[onlyview]\" value=\"1\"" . (empty($murl['onlyview']) ? '' : ' checked') . ">" . lang('onlyview');
 trbasic(lang('customapage'), '', $tnstr, '', lang('agcustomapage'));
 $filtersarr = array('commu' => lang('commuitem'), 'channel' => lang('achannel'), 'check' => lang('check_state'));
 foreach ($ucotypes as $k => $v) {
     if ($v['cclass'] == 'comment') {
         $filtersarr['uccid' . $k] = $v['cname'];
     }
 }
 trbasic(lang('view_filters') . "<br><input class=\"checkbox\" type=\"checkbox\" name=\"chkallfilters\" onclick=\"checkall(this.form,'filtersnew','chkallfilters')\">" . lang('selectall'), '', makecheckbox('filtersnew[]', $filtersarr, empty($murl['setting']['filters']) ? array() : explode(',', $murl['setting']['filters']), 5), '', lang('agnoselect1'));
 $listsarr = array('catalog' => lang('catalog'), 'uclass' => lang('uclass'), 'channel' => lang('achannel'), 'commu' => lang('commuitem'), 'check' => lang('check_state'), 'adddate' => lang('add_time'), 'updatedate' => lang('update_time'), 'edit' => lang('edit'));
 foreach ($ucotypes as $k => $v) {
     if ($v['cclass'] == 'comment') {
         $listsarr['uccid' . $k] = $v['cname'];
     }
 }
Beispiel #28
0
        trcategory(array(lang('sn'), lang('splangcname'), lang('type'), lang('detail')));
        $sn = 0;
        foreach ($splangs as $slid => $splang) {
            if (empty($ftype) || $ftype == $splang['type']) {
                $sn++;
                echo "<tr class=\"txt\">" . "<td class=\"txtC w40\">{$sn}</td>\n" . "<td class=\"txtL\">" . $splang['cname'] . "</td>\n" . "<td class=\"txtC w120\">" . $types[$splang['type']] . "</td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=splangs&action=splangdetail&slid={$slid}\">" . lang('edit') . "</a></td></tr>\n";
            }
        }
        tabfooter();
        a_guide('splangsedit');
    }
} elseif ($action == 'splangdetail' && $slid) {
    $forward = empty($forward) ? M_REFERER : $forward;
    $splang = fetch_one($slid);
    if (!submitcheck('bsplangdetail')) {
        tabheader(lang('splangset'), 'splangsdetail', '?entry=splangs&action=splangdetail&slid=' . $slid . '&forward=' . urlencode($forward));
        trbasic(lang('splangcname'), '', $splang['cname'], '');
        trbasic(lang('splangtype'), '', $types[$splang['type']], '');
        trbasic(lang('splangcontent'), 'splangnew[content]', $splang['content'], 'btextarea');
        tabfooter('bsplangdetail');
        a_guide('splangdetail');
    } else {
        if (empty($splangnew['content'])) {
            amessage('datamissing', M_REFERER);
        }
        $db->query("UPDATE {$tblprefix}splangs SET content='{$splangnew['content']}' WHERE slid='{$slid}'");
        updatecache('splangs');
        adminlog(lang('detaimodifysplang'));
        amessage('splmodfin', $forward);
    }
}
Beispiel #29
0
            amessage('enameillegal', '?entry=alangs&action=alangsedit');
        }
        $alangnew['ename'] = strtolower(trim(strip_tags($alangnew['ename'])));
        if (in_array($alangnew['ename'], array_keys($alangs))) {
            amessage('enamerepeat', '?entry=alangs&action=alangsedit');
        }
        $alangnew['content'] = trim($alangnew['content']);
        $db->query("INSERT INTO {$tblprefix}alangs SET \n\t\t\t\t\tename='{$alangnew['ename']}', \n\t\t\t\t\tcontent='{$alangnew['content']}',\n\t\t\t\t\tcreatedate='{$timestamp}'\n\t\t\t\t\t");
        adminlog(lang('add_alang'));
        updatecache('alangs');
        amessage('alangaddfin', "?entry=alangs&action=alangsedit");
    }
} elseif ($action == 'alangdetail' && $ename) {
    if (!($alang = $db->fetch_one("SELECT * FROM {$tblprefix}alangs WHERE ename='{$ename}'"))) {
        amessage('chooseclang');
    }
    if (!submitcheck('balangdetail')) {
        tabheader(lang('edit_alang'), 'alangdetail', "?entry=alangs&action=alangdetail&ename={$ename}");
        trbasic(lang('alang_ename'), '', $alang['ename'], '');
        trbasic(lang('alang_content'), 'alangnew[content]', $alang['content'], 'textarea');
        tabfooter('balangdetail');
        a_guide('alangdetail');
    } else {
        $alangnew['content'] = trim($alangnew['content']);
        $sql = $alangnew['content'] != $alang['content'] ? ",createdate='{$timestamp}'" : '';
        $db->query("UPDATE {$tblprefix}alangs SET \n\t\t\t\t\tcontent='{$alangnew['content']}'\n\t\t\t\t\t{$sql}\n\t\t\t\t\tWHERE ename='{$ename}'");
        adminlog(lang('edit_alang_detail'));
        updatecache('alangs');
        amessage('alangmodfin', "?entry=alangs&action=alangsedit");
    }
}
Beispiel #30
0
     $cid = $item['cid'];
     $item['arcurl'] = view_arcurl($item);
     $item['catalog'] = empty($catalogs[$item['caid']]) ? lang('nocata') : $catalogs[$item['caid']]['title'];
     $item['channel'] = $channels[$item['chid']]['cname'];
     $item['createdate'] = date("{$dateformat}", $item['ucreatedate']);
     echo "<tr>" . "<td class=\"item2\"><a href=\"{$item['arcurl']}\" target=\"_blank\">" . mhtmlspecialchars($item['asubject']) . "</a></td>\n" . "<td class=\"item\">{$item['catalog']}</td>\n" . "<td class=\"item\">{$item['channel']}</td>\n" . "<td class=\"item\">{$item['price']}</td>\n" . "<td class=\"item\" width=\"70\">{$item['nums']}</td></tr>\n";
 }
 tabfooter();
 if ($order['state'] == 1 || !$order['state'] && @$cfg_ordermode) {
     tabheader(lang('paymode'));
     trbasic(lang('paymode'), 'paymodenew', makeradio('ordernew[paymode]', $pmodearr, -1), '');
     tabfooter();
     print '<input class="button" type="submit" name="borderpay" value="' . lang('confirm_pay') . '"/>';
 }
 echo '</form><div class="clear"></div>';
 tabheader(lang('ordersmessageset'), 'orderdetail', '?action=orders&oid=' . $oid . '&forward=' . urlencode($forward));
 $submitstr = '';
 if ($order['state'] && $order['state'] != 1) {
     foreach ($pfields as $k => $field) {
         trbasic($field['cname'], '', !isset($order[$k]) ? '' : htmlspecialchars($order[$k]), '');
     }
     $order['state'] < 0 ? tabfooter('borderdelete', lang('deleteorders')) : (print '</form>');
 } else {
     $a_field = new cls_field();
     foreach ($pfields as $k => $field) {
         $a_field->init();
         $a_field->field = $field;
         $a_field->oldvalue = !isset($order[$k]) ? '' : $order[$k];
         $a_field->trfield('cartnew', '', 'p');
         $submitstr .= $a_field->submitstr;
     }