当前位置: 首页>>代码示例>>PHP>>正文


PHP axaction函数代码示例

本文整理汇总了PHP中axaction函数的典型用法代码示例。如果您正苦于以下问题:PHP axaction函数的具体用法?PHP axaction怎么用?PHP axaction使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了axaction函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: unset

                }
            }
            unset($a_field);
            if (empty($fcatalog['nodurat'])) {
                foreach (array('startdate', 'enddate') as $var) {
                    $farchiveadd[$var] = trim($farchiveadd[$var]);
                    $farchiveadd[$var] = !isdate($farchiveadd[$var]) ? 0 : strtotime($farchiveadd[$var]);
                    $sqlcommon .= ",{$var}='" . max(0, intval($farchiveadd[$var])) . "'";
                }
            }
            $db->query("INSERT INTO {$tblprefix}farchives SET " . $sqlcommon);
            if (!($aid = $db->insert_id())) {
                $c_upload->closure(1);
                mcmessage('msgsaveerr', axaction(2, M_REFERER));
            } else {
                $c_upload->closure(1, $aid, 'farchives');
                $sqlcustom = "aid={$aid}" . ($sqlcustom ? ',' . $sqlcustom : '');
                $db->query("INSERT INTO {$tblprefix}farchives_{$chid} SET " . $sqlcustom);
                $aedit = new cls_farcedit();
                $aedit->set_aid($aid);
                $fcatalog['autocheck'] && $aedit->arc_check(1, 0);
                $aedit->updatedb();
                unset($aedit);
            }
            $c_upload->saveuptotal(1);
            mcmessage('freeinfoaddfinish', axaction(10, $forward));
        }
    } else {
        include M_ROOT . $fcatalog['ucadd'];
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:farchiveadd.inc.php

示例2: trbasic

        trbasic(lang('spacatcna'), 'mcatalogadd[title]');
        trbasic(lang('uclmaxaddamomem'), 'mcatalogadd[maxucid]', 0);
        trbasic(lang('catalogremark'), 'mcatalogadd[remark]', '', 'btext');
        tabfooter('bmcatalogadd');
        a_guide('mcatalogadd');
    } else {
        $mcatalogadd['title'] = trim(strip_tags($mcatalogadd['title']));
        $mcatalogadd['remark'] = trim(strip_tags($mcatalogadd['remark']));
        $mcatalogadd['maxucid'] = max(0, intval($mcatalogadd['maxucid']));
        if (empty($mcatalogadd['title'])) {
            amessage('inpspacatcnam', M_REFERER);
        }
        $db->query("INSERT INTO {$tblprefix}mcatalogs SET title='{$mcatalogadd['title']}',maxucid='{$mcatalogadd['maxucid']}',remark='{$mcatalogadd['remark']}'");
        updatecache('mcatalogs');
        adminlog(lang('addspaccata'));
        amessage('spacataddfin', axaction(6, '?entry=mtconfigs&action=mtconfigsedit'));
    }
} elseif ($action == 'mtconfigdetail' && !empty($mtcid)) {
    empty($mtconfigs[$mtcid]) && amessage('choosespatempro');
    $setting = $mtconfigs[$mtcid]['setting'];
    $url_type = 'mtdetail';
    include 'urlsarr.inc.php';
    url_nav($mtconfigs[$mtcid]['cname'], $urlsarr, 'base');
    if (!submitcheck('bmtconfigdetail')) {
        tabheader('[' . $mtconfigs[$mtcid]['cname'] . ']' . lang('spatemproset'), 'mtconfigdetail', '?entry=mtconfigs&action=mtconfigdetail&mtcid=' . $mtcid, 5);
        trcategory(array("<input class=\"checkbox\" type=\"checkbox\" name=\"chkall\" onclick=\"checkall(this.form, 'selectid', 'chkall')\">", lang('enable'), array(lang('spacatcna'), 'txtL'), lang('spaindtem'), lang('spalistemp')));
        echo "<tr class=\"txt\">\n" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"selectid[0]\" value=\"0\"></td>\n" . "<td class=\"txtC w40\">Y</td>\n" . "<td class=\"txtL\"><b>" . lang('index') . "</b></td>\n" . "<td class=\"txtC\">" . (empty($setting[0]['index']) ? '-' : (empty($mtpls[$setting[0]['index']]['cname']) ? $setting[0]['index'] : $mtpls[$setting[0]['index']]['cname'])) . "</td>\n" . "<td class=\"txtC\">-</td>\n" . "</tr>";
        foreach ($mcatalogs as $mcaid => $mcatalog) {
            $indexstr = empty($setting[$mcaid]['index']) ? '-' : (empty($mtpls[$setting[$mcaid]['index']]['cname']) ? $setting[$mcaid]['index'] : $mtpls[$setting[$mcaid]['index']]['cname']);
            $liststr = empty($setting[$mcaid]['list']) ? '-' : (empty($mtpls[$setting[$mcaid]['list']]['cname']) ? $setting[$mcaid]['list'] : $mtpls[$setting[$mcaid]['list']]['cname']);
            $titlestr = isset($setting[$mcaid]) ? '<b>' . $mcatalog['title'] . '</b>' : $mcatalog['title'];
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mtconfigs.inc.php

示例3: trbasic

        trbasic(lang('menuitemcname'), 'menunew[title]', $menu['title'], 'text');
        trbasic(lang('menuitemurl'), 'menunew[url]', $menu['url'], 'btext');
        trbasic(lang('meniteord'), 'menunew[vieworder]', $menu['vieworder'], 'text');
        tabfooter('bmenudetail');
        a_guide('menudetail');
    } else {
        $menunew['title'] = trim(strip_tags($menunew['title']));
        $menunew['url'] = trim(strip_tags($menunew['url']));
        $menunew['vieworder'] = max(0, intval($menunew['vieworder']));
        $menunew['mtid'] = empty($menunew['mtid']) ? 0 : max(0, intval($menunew['mtid']));
        (!$menunew['title'] || !$menunew['url']) && amessage('pleinpmetitandurl');
        !$menunew['mtid'] && amessage('pombecoc');
        $db->query("UPDATE {$tblprefix}menus SET \n\t\t\t\t\ttitle='{$menunew['title']}', \n\t\t\t\t\turl='{$menunew['url']}', \n\t\t\t\t\tmtid='{$menunew['mtid']}', \n\t\t\t\t\tvieworder='{$menunew['vieworder']}'\n\t\t\t\t\tWHERE mnid='{$mnid}'");
        adminlog(lang('edimenitdet'));
        updatecache('menus', $issub);
        amessage('menitemodfin', axaction(6, "?entry=menus&action=menusedit{$sub_suffix}"));
    }
} elseif ($action == 'mtypedel' && $mtid) {
    if ($db->result_one("SELECT COUNT(*) FROM {$tblprefix}menus WHERE mtid='{$mtid}'")) {
        amessage('mecocoutmetedel', "?entry=menus&action=menusedit{$sub_suffix}");
    }
    $db->query("DELETE FROM {$tblprefix}mtypes WHERE mtid='{$mtid}' AND fixed='0'");
    adminlog(lang('delmenucoc'));
    updatecache('menus', $issub);
    amessage('mecocdefi', "?entry=menus&action=menusedit{$sub_suffix}");
} elseif ($action == 'menudel' && $mnid) {
    $db->query("DELETE FROM {$tblprefix}menus WHERE mnid='{$mnid}' AND fixed='0'");
    adminlog(lang('delmenuitem'));
    updatecache('menus', $issub);
    amessage('menitedelfin', "?entry=menus&action=menusedit{$sub_suffix}");
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:menus.inc.php

示例4: isset

                        $a_field->init();
                        $a_field->field = $v;
                        if (!noedit($k, !$curuser->pmbypmids('field', $v['pmid']))) {
                            $a_field->oldvalue = isset($oldrow[$k]) ? $oldrow[$k] : '';
                            $a_field->deal('offernew');
                            if (!empty($a_field->error)) {
                                $c_upload->rollback();
                                mcmessage($a_field->error, M_REFERER);
                            }
                            $uedit->updatefield($k, $a_field->newvalue);
                            if ($arr = multi_val_arr($a_field->newvalue, $v)) {
                                foreach ($arr as $x => $y) {
                                    $uedit->updatefield($k . '_' . $x, $y);
                                }
                            }
                        }
                    }
                }
            }
            unset($a_field);
            $c_upload->closure(1, $cid, 'offers');
            $c_upload->saveuptotal(1);
            $uedit->updatedb();
            mcmessage('offerupdatesucce', axaction(6, M_REFERER));
        }
    } else {
        include M_ROOT . $u_tplname;
    }
} else {
    include M_ROOT . $commu['umdetail'];
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:offer.inc.php

示例5: elseif

} elseif ($action == 'gmodeldetail' && $gmid) {
    $gmodel = read_cache('gmodel', $gmid, '', $sid);
    empty($gmodel) && amessage('choosegatmod');
    empty($channels[$gmodel['chid']]) && amessage('modrelarcmodnoe');
    $gfields = empty($gmodel['gfields']) ? array() : $gmodel['gfields'];
    $fields = read_cache('fields', $gmodel['chid']);
    if (!submitcheck('bfieldsedit')) {
        $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($gmodel['cname'] . '-' . lang('gather_field_set'), 'gmodeldetail', "?entry=gmodels&action=gmodeldetail&gmid={$gmid}{$param_suffix}", '5');
        trcategory(array(lang('gather'), lang('onlylink'), array(lang('field_name'), 'txtL'), lang('field_ename'), lang('field_type')));
        foreach ($fields as $k => $field) {
            $islinkstr = $field['datatype'] != 'text' ? '-' : "<input class=\"checkbox\" type=\"checkbox\" name=\"fieldsnew[{$k}][islink]\" value=\"1\"" . (!empty($gfields[$k]) ? ' checked' : '') . ">";
            echo "<tr class=\"txt\">\n" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"fieldsnew[{$k}][available]\" value=\"1\"" . (isset($gfields[$k]) ? ' checked' : '') . "></td>\n" . "<td class=\"txtC w50\">{$islinkstr}</td>\n" . "<td class=\"txtL\">{$field['cname']}</td>\n" . "<td class=\"txtC\">{$k}</td>\n" . "<td class=\"txtC w80\">" . $datatypearr[$field['datatype']] . "</td>\n" . "</tr>";
        }
        tabfooter('bfieldsedit');
        a_guide('gmodeldetail');
    } else {
        foreach ($fields as $k => $v) {
            if (!empty($fieldsnew[$k]['available'])) {
                $islink = empty($fieldsnew[$k]['islink']) ? 0 : 1;
                in_array($v['datatype'], array('image', 'flash', 'file', 'media')) && ($islink = 1);
                $newgfields[$k] = $islink;
            }
        }
        $gfieldsnew = empty($newgfields) ? '' : addslashes(serialize($newgfields));
        $db->query("UPDATE {$tblprefix}gmodels SET gfields='{$gfieldsnew}' WHERE gmid='{$gmid}'");
        updatecache('gmodels', '', $sid);
        adminlog(lang('det_modify_gather_model'));
        amessage('gathmodedifin', axaction(6, "?entry=gmodels&action=gmodeledit{$param_suffix}"));
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:gmodels.inc.php

示例6: foreach

                $aedit->set_aid($aid);
                if (in_array('caid', $coidscp) && ($cpcaids = explode(',', $archiveadd['cpcaids']))) {
                    foreach ($cpcaids as $k1) {
                        $aedit->addcopy(0, $k1);
                    }
                }
                foreach ($cotypes as $k => $v) {
                    if (!$v['self_reg'] && empty($v['asmode']) && in_array($k, $coidscp) && (${"cpccids{$k}"} = array_filter(explode(',', $archiveadd["cpccids{$k}"])))) {
                        foreach (${"cpccids{$k}"} as $k1) {
                            $aedit->addcopy($k, $k1);
                        }
                    }
                }
            }
            unset($aedit);
            if ($channel['autostatic']) {
                include_once M_ROOT . "./include/arc_static.fun.php";
                arc_static($aid);
                unset($arc);
            }
        }
        $c_upload->saveuptotal(1);
        mcmessage('arcaddfinish', axaction(10, $forward));
    }
} else {
    include M_ROOT . $channel['ucadd'];
}
mexit();
?>

开发者ID:polarlight1989,项目名称:08cms,代码行数:29,代码来源:archiveadd.php

示例7: trbasic

         if (empty($u_operates) || in_array('sale', $u_operates)) {
             trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[salecp]\" value=\"1\">&nbsp;" . lang('arc_price'), 'arcsalecp', makeoption(array('' => lang('freesale')) + $vcps['sale']), 'select');
         }
         if (empty($u_operates) || in_array('fsale', $u_operates)) {
             trbasic("<input class=\"checkbox\" type=\"checkbox\" name=\"arcdeal[fsalecp]\" value=\"1\">&nbsp;" . lang('annex_price'), 'arcfsalecp', makeoption(array('' => lang('freesale')) + $vcps['fsale']), 'select');
         }
         tabfooter('barcsedit');
     } else {
         include M_ROOT . $u_tplname;
     }
 } else {
     if (empty($arcdeal) && empty($albumsnew)) {
         amessage('selectoperateitem', axaction(1, M_REFERER));
     }
     if (empty($selectid) && empty($albumsnew)) {
         amessage('selectarchive', axaction(1, M_REFERER));
     }
     $naid = $aid;
     if (!empty($albumsnew)) {
         foreach ($albumsnew as $k => $v) {
             $db->query("UPDATE {$tblprefix}albums SET vieworder='" . max(0, intval($v['vieworder'])) . "' WHERE abid='{$k}'");
         }
     }
     if (!empty($selectid)) {
         //合辑内的退出合辑,辑内审核,辑内解审
         if (!empty($arcdeal['inclear'])) {
             $db->query("DELETE FROM {$tblprefix}albums WHERE abid " . multi_str(array_keys($selectid)), 'UNBUFFERED');
         } elseif (!empty($arcdeal['incheck'])) {
             $db->query("UPDATE {$tblprefix}albums SET checked='1' WHERE abid " . multi_str(array_keys($selectid)));
         } elseif (!empty($arcdeal['inuncheck'])) {
             $db->query("UPDATE {$tblprefix}albums SET checked='0' WHERE abid " . multi_str(array_keys($selectid)));
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:inarchive.inc.php

示例8: mcmessage

        mcmessage('chooseanswer');
    }
    $aedit = new cls_arcedit();
    $aedit->set_aid($answer['aid']);
    $aedit->basic_data();
    if (!$aedit->aid) {
        mcmessage('choosearchive');
    }
    if ($memberid != ($amode ? $aedit->archive['mid'] : $answer['mid'])) {
        mcmessage('chooseanswer');
    }
    $forward = empty($forward) ? M_REFERER : $forward;
    $forwardstr = '&forward=' . rawurlencode($forward);
    if (!submitcheck('banswerdetail')) {
        tabheader(lang('editanswer'), 'answerdetail', "?action=answer&cid={$cid}{$forwardstr}");
        trbasic(lang('questiontitle'), '', $aedit->archive['subject'], '');
        trbasic(lang('answercontent'), 'answernew[answer]', br2nl($answer['answer']), 'btextarea');
        tabfooter($amode ? '' : 'banswerdetail');
    } else {
        $commu = read_cache('commu', $aedit->channel['cuid']);
        ($aedit->archive['closed'] || $aedit->archive['finishdate'] < $timestamp) && mcmessage('questionclose', axaction(2, M_REFERER));
        $answernew['answer'] = empty($answernew['answer']) ? '' : trim($answernew['answer']);
        empty($answernew['answer']) && mcmessage('inputanswer', axaction(2, M_REFERER));
        !empty($commu['setting']['minlength']) && strlen($answernew['answer']) < $commu['setting']['minlength'] && mcmessage('answerlength', axaction(2, M_REFERER));
        !empty($commu['setting']['maxlength']) && ($answernew['answer'] = cutstr($answernew['answer'], $commu['setting']['maxlength']));
        $db->query("UPDATE {$tblprefix}answers SET answer='{$answernew['answer']}' WHERE cid='{$cid}'");
        mcmessage('answereditfinish', axaction(6, $forward));
    }
} else {
    include M_ROOT . $commu['umdetail'];
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:answer.inc.php

示例9: trbasic

        trbasic(lang('usuorder'), 'usualurlnew[vieworder]', $usualurl['vieworder'], 'text');
        trspecial(lang('urlimage'), 'usualurlnew[logo]', $usualurl['logo'], 'image');
        trbasic(lang('newwin'), 'usualurlnew[newwin]', $usualurl['newwin'], 'radio');
        if (!$ismc) {
            $sidsarr = array('m' => lang('msite')) + sidsarr(1);
            trbasic(lang('belsitforuse'), '', makecheckbox('sidsnew[]', $sidsarr, $usualurl['sids'] === '' ? array() : explode(',', $usualurl['sids']), 5), '');
            trbasic(lang('inhitatt'), 'usualurlnew[actsid]', $usualurl['actsid'], 'radio');
        } else {
            trbasic(lang('onclick'), 'usualurlnew[onclick]', $usualurl['onclick'], 'btext');
        }
        trbasic(lang('u_permission_set'), 'usualurlnew[pmid]', makeoption(pmidsarr('menu'), $usualurl['pmid']), 'select');
        tabfooter('busualurldetail');
        a_guide('usualurldetail');
    } else {
        $usualurlnew['title'] = trim(strip_tags($usualurlnew['title']));
        $usualurlnew['url'] = trim(strip_tags($usualurlnew['url']));
        $usualurlnew['vieworder'] = max(0, intval($usualurlnew['vieworder']));
        $usualurlnew['title'] = empty($usualurlnew['title']) ? $usualurl['title'] : $usualurlnew['title'];
        $usualurlnew['url'] = empty($usualurlnew['url']) ? $usualurl['url'] : $usualurlnew['url'];
        $c_upload = new cls_upload();
        $usualurlnew['logo'] = upload_s($usualurlnew['logo'], $usualurl['logo'], 'image');
        $usualurlnew['sids'] = !empty($sidsnew) ? implode(',', $sidsnew) : '';
        $usualurlnew['actsid'] = empty($usualurlnew['actsid']) ? 0 : 1;
        $usualurlnew['onclick'] = empty($usualurlnew['onclick']) ? '' : trim($usualurlnew['onclick']);
        $db->query("UPDATE {$tblprefix}usualurls SET \n\t\t\t\t\ttitle='{$usualurlnew['title']}', \n\t\t\t\t\turl='{$usualurlnew['url']}', \n\t\t\t\t\tlogo='{$usualurlnew['logo']}', \n\t\t\t\t\tpmid='{$usualurlnew['pmid']}', \n\t\t\t\t\tsids='{$usualurlnew['sids']}', \n\t\t\t\t\tnewwin='{$usualurlnew['newwin']}',\n\t\t\t\t\tonclick='{$usualurlnew['onclick']}',\n\t\t\t\t\tactsid='{$usualurlnew['actsid']}',\n\t\t\t\t\tvieworder='{$usualurlnew['vieworder']}'\n\t\t\t\t\tWHERE uid='{$uid}'");
        $c_upload->closure(1, $uid, 'usualurls');
        adminlog(lang('edusudet'));
        updatecache('usualurls');
        amessage('usuamodifin', axaction(6, "?entry=usualurls&action=usualurlsedit{$mc_suffix}"));
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:usualurls.inc.php

示例10: cls_field

        $a_field = new cls_field();
        foreach ($mfields as $k => $v) {
            if ($v['available'] && !$v['issystem'] && !$v['isfunc'] && !$v['isadmin'] && in_array($k, $additems)) {
                $a_field->init();
                $a_field->field = $v;
                $a_field->oldvalue = !isset($minfos[$k]) ? '' : $minfos[$k];
                $a_field->deal('minfosnew');
                if (!empty($a_field->error)) {
                    $c_upload->rollback();
                    amessage($a_field->error, axaction(2, M_REFERER));
                }
                $minfosnew[$k] = $a_field->newvalue;
                //收集资料。
                if ($arr = multi_val_arr($a_field->newvalue, $v)) {
                    foreach ($arr as $x => $y) {
                        $minfosnew[$k . '_' . $x] = $y;
                    }
                }
            }
        }
        unset($a_field);
        $mtran['remark'] = trim($mtran['remark']);
        $mtran['reply'] = trim($mtran['reply']);
        $mtran['contentarr'] = empty($minfosnew) ? '' : addslashes(serialize($minfosnew));
        $db->query("UPDATE {$tblprefix}mtrans SET contentarr='{$mtran['contentarr']}',remark='{$mtran['remark']}',reply='{$mtran['reply']}' WHERE trid='{$trid}'");
        $c_upload->closure(1, $minfos['mid'], 'members');
        $c_upload->saveuptotal(1);
        adminlog(lang('modmemchanalt'), lang('memaltdetmodope'));
        amessage('memchaaltrecmodfin', axaction(6, M_REFERER));
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mtrans.inc.php

示例11: empty

        //先行分析入库规则
        empty($gather->oconfigs) && amessage('p_setrule');
        $query = $db->query("SELECT guid FROM {$tblprefix}gurls {$wheresql} AND guid>'{$fromid}' ORDER BY guid ASC LIMIT 0,{$atpp}");
        while ($row = $db->fetch_array($query)) {
            $gather->output_guid($row['guid']);
            $fromid = $row['guid'];
        }
        unset($gather);
        $npage++;
        if ($npage <= $pages) {
            amessage('operating', "?entry=gmissions&action=allauto&gsid={$gsid}&deal=output&pages={$pages}&npage={$npage}&fromid={$fromid}&confirm=1&use_push=1{$param_suffix}", $pages, $npage + 1, "<a href=\"?entry=gmissions&action=gmissionsedit{$param_suffix}\">", '</a>');
        }
        amessage('onekeyfinish');
    }
} elseif ($action == 'break') {
    amessage('breakfinish', axaction(2, "?entry=gmissions&action=gmissionsedit{$param_suffix}"));
}
function gmission_list()
{
    global $param_suffix, $gmission, $sid;
    $gsid = $gmission['gsid'];
    $gmodel = read_cache('gmodel', $gmission['gmid'], '', $sid);
    $levelstr = !empty($gmission['pid']) ? '&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ' : '';
    $addstr = !empty($gmission['pid']) ? 'Y' : (!empty($gmission['sonid']) ? '-' : "<a href=\"?entry=gmissions&action=gmissionadd&pid={$gsid}{$param_suffix}\" onclick=\"return floatwin('open_gmission',this)\">" . lang('add') . "</a>");
    $regularstr = "<a href=\"?entry=gmissions&action=gmissionurls&gsid={$gsid}{$param_suffix}\" onclick=\"return floatwin('open_gmission',this)\">" . lang('rule') . "</a>";
    $gatherstr = !empty($gmission['pid']) ? '&nbsp;' : "<a href=\"?entry=gmissions&action=allauto&gsid={$gsid}&use_push=1{$param_suffix}\" onclick=\"return floatwin('open_gmission_gather',this)\"><b>" . lang('autoall') . "</b></a>&nbsp;" . "<a href=\"?entry=gmissions&action=urlsauto&gsid={$gsid}&use_push=1{$param_suffix}\" onclick=\"return floatwin('open_gmission_gather',this)\">" . lang('netsite') . "</a>&nbsp;" . "<a href=\"?entry=gmissions&action=gatherauto&gsid={$gsid}&use_push=1{$param_suffix}\" onclick=\"return floatwin('open_gmission_gather',this)\">" . lang('content') . "</a>&nbsp;" . "<a href=\"?entry=gmissions&action=outputauto&gsid={$gsid}&use_push=1{$param_suffix}\" onclick=\"return floatwin('open_gmission_gather',this)\">" . lang('warehousing') . "</a>";
    echo "<tr class=\"txt\">" . "<td class=\"txtC w40\"><input class=\"checkbox\" type=\"checkbox\" name=\"delete[{$gsid}]\" value=\"{$gsid}\">\n" . "<td class=\"txtL\">{$levelstr}<input type=\"text\" size=\"20\" name=\"gmissionsnew[{$gsid}][cname]\" value=\"{$gmission['cname']}\"></td>\n" . "<td class=\"txtC\">{$addstr}</td>\n" . "<td class=\"txtC\">{$gmodel['cname']}</td>\n" . "<td class=\"txtC w70\">{$regularstr}</td>\n" . "<td class=\"txtC w120\">{$gatherstr}</td>\n" . "<td class=\"txtC w40\"><a href=\"?entry=gmissions&action=contentsoption&gsid={$gsid}{$param_suffix}\" onclick=\"return floatwin('open_gmission',this)\">" . lang('admin') . "</a></td>" . "<td class=\"txtC w60\"><a href=\"?entry=gmissions&action=gmissioncopy&gsid={$gsid}{$param_suffix}\" onclick=\"return floatwin('open_gmission',this)\">" . lang('copy') . "</a></td>" . "</tr>\n";
}
function missionfield($cname, $ename, $setting = array(), $datatype = 'text')
{
    global $rprojects;
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:gmissions.inc.php

示例12: a_guide

        a_guide('userurldetail');
    } else {
        $userurlnew['title'] = trim(strip_tags($userurlnew['title']));
        $userurlnew['url'] = trim(strip_tags($userurlnew['url']));
        $userurlnew['vieworder'] = max(0, intval($userurlnew['vieworder']));
        $userurlnew['utid'] = empty($userurlnew['utid']) ? 0 : max(0, intval($userurlnew['utid']));
        (!$userurlnew['title'] || !$userurlnew['url']) && amessage('inpusetiau');
        !$userurlnew['utid'] && amessage('please point userurl belong coclass !');
        #		$userurlnew['sids'] = !empty($sidsnew) ? implode(',',$sidsnew) : '';
        $userurlnew['onclick'] = empty($userurlnew['onclick']) ? '' : trim($userurlnew['onclick']);
        #					sids='$userurlnew[sids]',
        #					actsid='$userurlnew[actsid]',
        $db->query("UPDATE {$tblprefix}userurls SET \n\t\t\t\t\ttitle='{$userurlnew['title']}', \n\t\t\t\t\turl='{$userurlnew['url']}', \n\t\t\t\t\tutid='{$userurlnew['utid']}', \n\t\t\t\t\tpmid='{$userurlnew['pmid']}', \n\t\t\t\t\tnewwin='{$userurlnew['newwin']}',\n\t\t\t\t\tonclick='{$userurlnew['onclick']}',\n\n\t\t\t\t\tvieworder='{$userurlnew['vieworder']}'\n\t\t\t\t\tWHERE uid='{$uid}'");
        adminlog(lang('ediuserdetail'));
        updatecache('userurls');
        amessage('usermodfin', axaction(6, "?entry=userurls&action=userurlsedit{$mc_suffix}"));
    }
} elseif ($action == 'utypedel' && $utid) {
    if ($db->result_one("SELECT COUNT(*) FROM {$tblprefix}utypes WHERE pid='{$utid}'")) {
        amessage('usercocwitsoncoccandel', "?entry=userurls&action=userurlsedit{$mc_suffix}");
    }
    if ($db->result_one("SELECT COUNT(*) FROM {$tblprefix}userurls WHERE utid='{$utid}'")) {
        amessage('usercocwitusecandel', "?entry=userurls&action=userurlsedit{$mc_suffix}");
    }
    $db->query("DELETE FROM {$tblprefix}utypes WHERE utid='{$utid}'");
    adminlog(lang('delusercoc'));
    updatecache('userurls');
    amessage('usecocdelfin', "?entry=userurls&action=userurlsedit{$mc_suffix}");
} elseif ($action == 'userurldel' && $uid) {
    $db->query("DELETE FROM {$tblprefix}userurls WHERE uid='{$uid}'");
    adminlog(lang('deleteuserurl'));
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:userurls.inc.php

示例13: isset

             if ($curuser->pmbypmids('field', $a_field->field['pmid'])) {
                 //字段附加权限设置
                 $a_field->oldvalue = isset($aedit->archive[$k]) ? $aedit->archive[$k] : '';
                 $a_field->deal('archivenew');
                 if (!empty($a_field->error)) {
                     $c_upload->rollback();
                     amessage($a_field->error, axaction(2, M_REFERER));
                 }
                 $archivenew[$k] = $a_field->newvalue;
             }
         }
     }
 }
 unset($a_field);
 $cu_ret = cu_fields_deal($channel['cuid'], 'archivenew', $aedit->archive);
 !empty($cu_ret) && amessage($cu_ret, axaction(2, M_REFERER));
 $aedit->edit_cudata($archivenew, 1);
 if (isset($archivenew['keywords'])) {
     $archivenew['keywords'] = keywords($archivenew['keywords'], $aedit->archive['keywords']);
 }
 if ($fields['abstract']['available'] && $channel['autoabstract'] && empty($archivenew['abstract']) && isset($archivenew[$channel['autoabstract']])) {
     $archivenew['abstract'] = autoabstract($archivenew[$channel['autoabstract']]);
 }
 if ($fields['thumb']['available'] && $channel['autothumb'] && empty($archivenew['thumb']) && isset($archivenew[$channel['autothumb']])) {
     $archivenew['thumb'] = $c_upload->thumb_pick(stripslashes($archivenew[$channel['autothumb']]), $fields[$channel['autothumb']]['datatype'], $fields['thumb']['rpid']);
 }
 if ($channel['autosize'] && isset($archivenew[$channel['autosize']]) && $archivenew[$channel['autosize']] != addslashes($aedit->archive[$channel['autosize']])) {
     $archivenew['atmsize'] = atm_size(stripslashes($archivenew[$channel['autosize']]), $fields[$channel['autosize']]['datatype'], $channel['autosizemode']);
     $aedit->updatefield('atmsize', $archivenew['atmsize'], 'main');
 }
 if ($channel['autobyte'] && isset($archivenew[$channel['autobyte']])) {
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:arcs.php

示例14: tabfooter

            tabfooter('bmemcertmodify');
        } else {
            !empty($memcertnew['mobile']) && preg_match("/\\W/", $memcertnew['mobile']) && amessage('memcert_mode_fail', "?entry={$entry}&action={$action}&mcid={$mcid}");
            !empty($memcertnew['email']) && preg_match("/\\W/", $memcertnew['email']) && amessage('memcert_mode_fail', "?entry={$entry}&action={$action}&mcid={$mcid}");
            (empty($memcertnew['mobile']) && empty($memcertnew['email']) && empty($memcertnew['fields']) || !empty($memcertnew['fields']) && !preg_match("/^\\w+(?:,\\w+)*\$/", $memcertnew['fields'])) && amessage('memcert_fields_fail', "?entry={$entry}&action={$action}&mcid={$mcid}");
            include_once M_ROOT . "./include/upload.cls.php";
            $memcertnew['mchids'] = join(',', array_filter($memcertnew['mchids']));
            $db->query("UPDATE {$tblprefix}memcerts SET " . "icon='{$memcertnew['icon']}'," . "remark='{$memcertnew['remark']}'," . "mchids='{$memcertnew['mchids']}'," . "mobile='{$memcertnew['mobile']}'," . "email='{$memcertnew['email']}'," . "fields='{$memcertnew['fields']}'" . " WHERE mcid={$mcid}");
            if ($memcertnew['level'] != $memcert['level']) {
                $levels = array($mcid => $memcertnew['level']);
                $query = $db->query("SELECT mcid,level FROM {$tblprefix}memcerts WHERE mcid!='{$mcid}' ORDER BY level DESC");
                while ($row = $db->fetch_array($query)) {
                    $levels[$row['mcid']] = $row['level'];
                }
                memcertlevel($levels);
            }
            updatecache('memcerts');
            amessage('memcertfinish', axaction(6, "?entry={$entry}&action=memcerts"));
        }
        break;
}
function memcertlevel($levels)
{
    global $db, $tblprefix;
    natsort($levels);
    $i = 0;
    foreach ($levels as $k => $v) {
        $db->query("UPDATE {$tblprefix}memcerts SET level={$i} WHERE mcid='{$k}'");
        $i++;
    }
}
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:memcerts.inc.php

示例15: empty

                }
            }
        }
        $mtagnew['template'] = empty($mtagnew['template']) ? '' : stripslashes($mtagnew['template']);
        $mtagnew['disabled'] = empty($mtag['disabled']) ? 0 : 1;
        $mtag = array('cname' => stripslashes($mtagnew['cname']), 'ename' => $mtagnew['ename'], 'tclass' => $tclass, 'template' => $mtagnew['template'], 'setting' => $mtagnew['setting'], 'disabled' => $mtagnew['disabled']);
        $mtags[$mtagnew['ename']] = array('tclass' => $tclass, 'vieworder' => $mtags[$tname]['vieworder']);
        cache2file($mtag, cache_name($ttype, $mtagnew['ename']), $ttype, $sid);
        if ($mtagnew['ename'] != $tname) {
            del_cache($ttype, $tname, '', $sid);
            unset($mtags[$tname]);
        }
        mtags_order($mtags);
        cache2file($mtags, $ttype . 's', $ttype . 's', $sid);
        adminlog(lang('detamod' . $ttype));
        amessage('tagmodfin', axaction(6, $forward));
    }
}
function mtags_order(&$mtags)
{
    if (!is_array($mtags) || empty($mtags) || !function_exists('array_multisort')) {
        return;
    }
    foreach ($mtags as $k => $v) {
        $vorder[$k] = $v['vieworder'];
        $eorder[$k] = $k;
    }
    array_multisort($vorder, SORT_ASC, $eorder, SORT_ASC, $mtags);
}
function tag_style($ename)
{
开发者ID:polarlight1989,项目名称:08cms,代码行数:31,代码来源:mtags.inc.php


注:本文中的axaction函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。