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


PHP ajx函数代码示例

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


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

示例1: pane_base

function pane_base($url, $suj, $frm, $day, $img, $msg, $alx)
{
    static $id;
    $id++;
    //$msg=ereg_replace('width='."^[_a-zA-Z0-9.]+$","",$msg);//([[:digit:]]*)
    $ara = array("<![CDATA[", "]]>");
    $suj = str_replace($ara, " ", $suj);
    $url = str_replace($ara, " ", $url);
    $msg = str_replace($ara, " ", $msg);
    if ($img != "") {
        $gmi = '<img src="' . $img . '" class="imgl" border="0" height="72">';
    }
    $id_art = recognize_article($url, clean_title($suj), $alx);
    //already_exists
    if ($id_art) {
        $opt .= popart($id_art);
    } elseif ($_SESSION["USE"] == $_SESSION["qb"] or $_SESSION["auth"] > 3) {
        $purl = ajx($url, '');
        $opt .= ljb('txtx', 'SaveJ', 'popup_addArt___' . $purl . '_1', "save") . ' ';
        //$opt.=ljb('txtbox','SaveIf',$purl,'save').' ';
        $opt .= btd('btc' . $id, lj('txtx', 'btc' . $id . '_batch__xd_' . $purl . '_p', '+')) . ' ';
        $opt .= ljb('txtx', 'Close', 'art' . $id, 'x');
    }
    $panout = array('sty' => 'tab', 'id' => $id, 'suj' => $suj, 'date' => $day, 'tag' => " ", 'opt' => $opt, 'thumb' => $gmi, 'msg' => $msg, 'url' => $url);
    $ret = template_build(template_rss(), $panout);
    return divd('article', $ret);
}
开发者ID:philum,项目名称:cms,代码行数:27,代码来源:rssin.php

示例2: plug_microform

function plug_microform($p, $id)
{
    $rid = 'mfr' . randid();
    //echo $p.'-'.$id;
    $nod = ses('mform', ses('qb') . '_microform_' . $id);
    req('pop');
    ses('mformj', $rid . '_plug___microform_plug*microform_' . ajx($p) . '_' . $id);
    reqp('msql');
    $msq = new msql('', $nod);
    //table
    list($p, $tp) = explode('§', $p);
    $rb = mform_mr($p);
    //p($rb);
    $msq->create($rb);
    $ret .= make_form($p, 'mfr' . $id, '_plug___microform_mform*j_' . ajx($p, '') . '_' . $id . '_') . br();
    if (auth(4)) {
        $ret .= msqlink('users', ses('mform')) . ' ' . btn('txtsmall2', $nod) . ' ';
    }
    if ($tp == 1) {
        $ret .= mform_read($id);
    } elseif ($tp) {
        $ret .= plugin('msqtemplate', $nod, $tp);
    }
    return divd($rid, $ret . $bt);
}
开发者ID:philum,项目名称:cms,代码行数:25,代码来源:microform.php

示例3: udc_build

function udc_build($p)
{
    if ($p == '1' && auth(6)) {
        $r = udc_source();
    }
    $r = msql_read('users', 'ummo_umvoc_1', '', 1);
    if ($r) {
        foreach ($r as $k => $v) {
            $ra[$v[0]] = $v;
        }
    }
    ksort($ra);
    if ($ra) {
        foreach ($ra as $k => $v) {
            //if(strpos($v[3],'Eyaoloowa')!==false){}
            //$rb[$k][]=divc('title',$k);
            $rb[$k][] = lj('', 'popup_plup___umvoc_ud*glossary_' . ajx($k), $k) . ' ';
            $f = 'users/ummo/glyphes/' . strtoupper($k) . '.png';
            $rb[$k][] = is_file($f) ? udc_imz($f, 6) : '';
            //$rb[$k][]=is_file($f)?image('/'.$f,'',''):'';
            $rb[$k][] = stripslashes($v[1]);
            $rb[$k][] = lj('', 'popup_search___' . ajx($k), picto('search', 16));
            $rb[$k][] = $v[3];
        }
    }
    return make_table($rb);
}
开发者ID:philum,项目名称:cms,代码行数:27,代码来源:umdico.php

示例4: msqedit

function msqedit($p, $o)
{
    $bt = lj('', 'popup_plup___msqedit_msqdt*add_' . ajx($p) . '_' . $o, pictxt('add')) . ' ';
    $bt .= lj('', 'editmsql_plug__15_msqedit_msqdt*build_' . ajx($p) . '_' . $o, pictxt('refresh')) . ' ';
    //$bt.=lj('txtx','editmsql_plug___msqedit_msqdt*herit*overmenus_'.ajx($p),'herit overmenus');
    $bt .= msqlink('', ses('qb') . '_' . $p);
    $_SESSION['popm'] = $bt;
    return $bt . divd('editmsql', msqdt_build($p, $o));
}
开发者ID:philum,项目名称:cms,代码行数:9,代码来源:msqedit.php

示例5: book_cover

function book_cover($t)
{
    $t = str_replace(' ', "\n", $t);
    $w = $_SESSION['prma']['content'];
    $t = call_plug('', 'popup', 'book', ajx($_SESSION['book']) . '_' . $w, $t);
    //
    return div(' class="book" style="background-color:black; padding:10px; width:220px;"', divs('background-color:#222; border:1px solid #fff; padding:5px; margin:auto; color:white; font-size:16px; text-align:center; text-decoration:none;', $t));
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:9,代码来源:book.php

示例6: twit_reply

function twit_reply($q)
{
    if ($id = $q['in_reply_to_status_id']) {
        $name = utf8_decode($q['in_reply_to_screen_name']);
        $link = lkt('txtx', 'https://twitter.com/' . $name . '/status/' . $id, pictxt('url', $name)) . ' ';
        $thread = lj('txtx', 'popup_plup__3_twit_twit*thread_' . ajx($q['id']), pictxt('up', 'thread')) . ' ';
        $previous = lj('txtx', 'popup_plup__3_twit_twit*build_' . ajx($q['in_reply_to_status_id']), pictxt('back', 'last')) . ' ';
        return btn('txtsmall2', nms(91) . ' ' . nms(36)) . ' ' . $link . $thread . $previous;
    }
}
开发者ID:philum,项目名称:cms,代码行数:10,代码来源:twit.php

示例7: plug_msqadd

function plug_msqadd($p, $o)
{
    $p = $p ? $p : '1';
    $bt .= balise('input', atd('type', 'text') . atd('nod') . atv($p) . ats('padding:4px;'), '', 1) . ' ';
    $bt .= lj('txtbox', 'cbk_plug___msqadd_msqadd*j_' . ajx($p) . '__nod|txt', 'save') . ' ';
    $bt .= btd('cbk', '') . br();
    //callback
    $bt .= txarea('txt', '', 60, 10, ats('font-size:medium; padding:4px; width:340px; height:300px;')) . br();
    $ret = msqadd_read('msqadd_' . $p);
    return $bt . divd('plugmsqadd', $ret);
}
开发者ID:philum,项目名称:cms,代码行数:11,代码来源:msqadd.php

示例8: embed_li_dsnav

function embed_li_dsnav($d, $v, $isr)
{
    $_SESSION["nbsd"]++;
    $ds = $_SESSION["ds"];
    $qb = $_SESSION['qb'];
    $xt = substr($v, -4);
    if ($v) {
        $f = $d . '/' . $v;
    } else {
        $f = $d;
    }
    if ($xt == ".jpg" or $xt == ".png" or $xt == ".gif") {
        $img = make_thumb_c($f);
        if (is_file($f)) {
            list($w, $h) = getimagesize($f);
        }
        $ww = '_' . $w . '_' . $h;
    }
    $f = str_replace(array('users/', 'imgb/icons/'), '', $f);
    $fb = ajx($f, 0);
    if (is_numeric($ds)) {
        //bkg
        if ($isr) {
            $ret = lj("popbt", 'bkg' . $ds . '_dsnav___' . $fb . '_bkg', $v);
        } else {
            list($w, $h) = getimagesize($f);
            $tx = $v . ' (' . $w . ' * ' . $h . ')';
            //if(is_file($f))
            $ret = lj('', 'css' . $ds . '_stylsav___' . $fb . '_' . $ds . '_2', $img . $tx) . hr();
        }
    }
    if ($ds == "gl") {
        if ($isr) {
            $ret = lj("popbt", 'popup_gallery__3x_' . $fb, $v);
        }
    }
    //photo
    if ($ds == "dl") {
        $dlm = $_SESSION['qb'] . '/' . $_SESSION['dlmod'];
        //dwnl
        if ($isr) {
            $ret = lj("popbt", 'dsnavds_dsnav___' . $fb . '_users/' . $dlm, $v);
        } elseif ($img) {
            $ret = ljb("popw", 'SaveBf', 'photo_users/' . $fb . $ww, $img . $v);
        } else {
            $ret = lkt("popw", $d . '/' . $v, $img . $v);
        }
    }
    if ($ds == "ic" && !$isr) {
        return $ret;
    } elseif ($ret) {
        return '&#9500;' . $ret . br();
    }
}
开发者ID:philum,项目名称:cms,代码行数:54,代码来源:dsnav.php

示例9: mq_tables

function mq_tables($p, $o, $res = '')
{
    list($p, $o) = ajxp($res, $p, $o);
    $r = lstrc(rcptb($p));
    if ($r) {
        foreach ($r as $v) {
            $ret .= lj('', 'mqm_plug___mysqm_mq*cols_' . ajx($v) . '_' . ajx($p), $v);
        }
    }
    //$ret=walkeach($r,'mqt_w',$p);implode('',)
    return btn('list', $ret);
}
开发者ID:philum,项目名称:cms,代码行数:12,代码来源:mysqm.php

示例10: menu

 static function menu($p, $o, $rid)
 {
     $ret = inp('inp', $p ? $p : 1) . ' ';
     $ret .= lj('', $rid . '_app___slides_j__' . $rid . '_inp', picto('reload')) . ' ';
     if (auth(6)) {
         $ret .= lj('', 'popup_plupin___msqedit_slides*' . $p . '_val', picto('edit')) . ' ';
         $j = 'popup_msqledit___users_' . ajx(ses('nodslid')) . '_';
         $ret .= lj('', $j . $p . '_1', picto('editxt')) . ' ';
         $ret .= lj('', 'popup_plup___msqedit_msqdt*add_slides*' . $p . '_val', picto('add')) . ' ';
     }
     return divc('', $ret);
 }
开发者ID:philum,项目名称:cms,代码行数:12,代码来源:slides.php

示例11: plug_umglyphes

function plug_umglyphes($p, $o)
{
    if ($o == '1') {
        return ug_build($p);
    }
    $ret .= lj('', 'umglph___4', picto('del')) . ' ';
    $ret .= inp('umglph', $p, atz('44')) . ' ';
    $ret .= lj('popsav', 'umgl_plug___umglyphes_ug*build_' . ajx($p) . '__umglph', 'ok') . ' ';
    $ret .= divd('umgl', ug_build($p)) . br();
    $ret .= msqlink('', 'ummo_umvoc_1', '') . ' ';
    $ret .= lkt('', '/plug/umvoc', picto('link'));
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:13,代码来源:umglyphes.php

示例12: plug_msqtemplate

function plug_msqtemplate($nod, $tmp)
{
    //require_once('plug/msqads.php');
    $ret = lj('txtbox', 'msqt_plug___msqtemplate_plug*msqtemplate_' . ajx($nod) . '_' . ajx($tmp), picto('reload')) . br();
    if ($tmp) {
        $tpl = msql_read('users', $_SESSION['qb'] . '_template', $tmp);
        if (!$tpl) {
            $tpl = msql_read('users', 'public_template', $tmp);
        }
        $ret .= msqt_build_from_template($nod, $tpl);
    } elseif ($nod) {
        $ret .= msqt_read($nod, 0);
    }
    return divd('msqt', stripslashes($ret));
}
开发者ID:philum,项目名称:cms,代码行数:15,代码来源:msqtemplate.php

示例13: ftp_render

function ftp_render($r)
{
    $j = 'popup_plup___ftp_ftp*ops_';
    if ($r) {
        foreach ($r as $k => $v) {
            $f = $v[2];
            $t = $v[3];
            $rb[$k][] = lkc('txtbox', $f, $t);
            $rb[$k][] = lj('txtx', $j . 'rename_' . ajx($f), 'rename');
            $rb[$k][] = lj('txtx', $j . 'delete_' . ajx($f), 'del');
            $rb[$k][] = lj('txtx', $j . 'copy_' . ajx($f), 'copy to');
            $rb[$k][] = lj('txtx', $j . 'infos_' . ajx($f), 'infos');
        }
    }
    return make_divtable($rb);
}
开发者ID:philum,项目名称:cms,代码行数:16,代码来源:ftp.php

示例14: addfonts_j

function addfonts_j($var1, $var2, $res)
{
    $r = msql_read('', 'public_addfonts', '');
    if ($r) {
        $rk = array_keys_r($r, 0, 'k');
    }
    $res = ajx(substr($res, 0, -1), 1);
    $res = embed_detect($res, '{', '}', '');
    $res = str_replace(array('"', "'", ' ', "\n", "\r", "\t", "?#iefix", "?", "!"), '', $res);
    $ra = explode(';', $res);
    $nb = count($ra);
    for ($i = 0; $i < $nb; $i++) {
        list($attrb, $value) = split_right(':', $ra[$i], 0);
        if ($attrb == 'font-family') {
            $rb['name'] = $value;
        }
        $rab = explode(',', $ra[$i]);
        if ($rab) {
            foreach ($rab as $k => $va) {
                $rt = embed_detect($va, 'url(', ')', '');
                //echo $rt.br().br();
                if ($rt && !$rk[$rb['name']]) {
                    $rs = str_extract('#', $rt, 0, 0);
                    $xt = strrchr_b($rt, '.');
                    if ($xt && substr($rs, 0, 4) == 'http' && $xt != 'eot?') {
                        $rb[$xt] = $rs;
                    } else {
                        $noturl = 1;
                    }
                }
            }
        }
    }
    if ($rb[0]) {
        $rb = msq_reorder($rb);
    }
    //p($rb);
    $dfb['_menus_'] = array('name', 'eot', 'woff', 'svg', 'ttf');
    if (count($rb) > 1) {
        $r = msql_modif('users', 'public_addfonts', $rb, $dfb, 'push', '');
        //p($rb);
        return addf_read($r);
    } else {
        return btn('txtred', $noturl ? 'not absolte url' : 'already_exists');
    }
}
开发者ID:philum,项目名称:cms,代码行数:46,代码来源:addfonts.php

示例15: fav_com

function fav_com($p, $r = '')
{
    $ret = fac_com_add($p);
    if (!$r) {
        $r = msq_where('', ses('qb') . '_coms', 0, ses('iq'));
    }
    if ($r) {
        foreach ($r as $k => $v) {
            if ($v) {
                $del = lj('', 'plgfavs_plug___favs_fav*com*del_' . $k, picto('no')) . ' ';
                $edt = lj('', 'plgfavs_plug___favs_fav*com*edt_' . $k, picto('editxt')) . ' ';
                $exp = lj('', 'popup_plupin___api_' . ajx($v[2] . ',preview:full,file:' . $v[1]), pictxt('export')) . ' ';
                $re = lj('', 'popup_plupin___api_' . ajx($v[2] . ',t:' . $v[1]), pictxt('get', $v[1]));
                $ret .= divc('txtcadr', $del . $edt . $exp . $re);
            }
        }
    }
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:19,代码来源:favs.php


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