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


PHP txarea函数代码示例

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


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

示例1: admin_art_edit

function admin_art_edit($id)
{
    $msg = sql('msg', 'qdm', 'v', 'id=' . $id);
    $ath = data_val('msg', $id, 'authlevel');
    if ($ath > $_SESSION['auth']) {
        return popup('article ' . $id, nms(55));
    }
    //$msg=str_replace('['.ses('qb').'/','['.host().'/users/'.ses('qb').'/',$msg);
    //$msg=str_replace('['.ses('qb'),'['.host().'/img/'.ses('qb'),$msg);
    $j = 'popup_editbrut_edit' . $id . '_x_' . $id;
    if (auth(5)) {
        $ret = btn('', btd('bts', lj('popsav', $j, 'save'))) . ' ';
    }
    $ret .= lj('txtbox', 'pop_editbrut___' . $id, 'connectors') . ' ';
    $ret .= lj('txtbox', 'edit' . $id . '_delconn__4_' . $id, 'text') . ' ';
    $ret .= lj('txtbox', 'edit' . $id . '_conn2__4_' . $id, 'html') . ' ';
    $ret .= hlpbt('conn_pub') . br();
    $ret .= txarea('edit' . $id, $msg, 64, 20, 'console');
    return popup('article ' . $id, $ret);
}
开发者ID:philum,项目名称:cms,代码行数:20,代码来源:admin.php

示例2: table2array_menu

function table2array_menu($p, $o, $rid)
{
    //$ret.=input(1,'inp',$p,'').' ';
    $ret .= lj('', $rid . '_plug__2_table2array_table2array*j___inp', picto('reload')) . br();
    $ret .= txarea('inp', $p, 64, 24);
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:7,代码来源:buildtable.php

示例3: cnvs_edit

function cnvs_edit($d, $id)
{
    $d = str_replace(' ', "\n", $d);
    //$d=utf8_decode($d);
    $ret .= lj('popbt', 'graph' . $id . '_plug___canvas_cnvs*iframe_' . $id . '__graphjs', 'see') . br();
    $ret .= txarea('" id="graphjs', $d, 50, 16);
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:8,代码来源:canvas.php

示例4: html_menu

function html_menu($p, $o, $rid)
{
    $j = $rid . '_plug__2_html_html*j___inp';
    $sj = 'SaveJ(\'' . $j . '\')';
    $ret = divc('" onkeyup="' . $sj . '" onclick="' . $sj, txarea('inp', $p, 60, 10, atc('console'))) . ' ';
    //$ret.=lj('',$j,picto('reload'));
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:8,代码来源:html.php

示例5: connectors_menu

function connectors_menu($p, $o, $rid)
{
    $j = $rid . '_plug__2_connectors_connectors*j___inpconn1';
    $js = 'onkeyup="' . sj($j) . '" onclick="' . sj($j) . '"';
    $ret = txarea('inpconn1', $p, 54, 8, '' . $js) . ' ';
    //$ret.=lj('',$j,picto('reload')).' ';
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:8,代码来源:connectors.php

示例6: plug_imtx

function plug_imtx($p, $o)
{
    $rid = 'plg' . randid();
    ses('out', '/plug/_data/imtx.png');
    $j = $rid . '_plug__2_imtx_imt*j_' . $w . '_' . $h . '_txtarec';
    $sj = 'SaveJ(\'' . $j . '\')';
    $ret .= txarea('txtarec', $p, 44, 14, atc('console') . atb('onkeyup', $sj) . atb('onclick', $sj));
    $ret .= lj('', $j, picto('reload')) . ' ';
    return $ret . divd($rid, image(root() . ses('out')));
}
开发者ID:philum,项目名称:cms,代码行数:10,代码来源:imtx.php

示例7: comp_menu

function comp_menu($p, $o, $rid)
{
    $ret .= lj('txtx', $rid . '_plug__2_comparetxt_comptxt*j_sentences__inp1', 'sentences') . ' ';
    $ret .= lj('txtx', $rid . '_plug__2_comparetxt_comptxt*j_lines__inp1', 'lines') . ' ';
    $ret .= lj('txtx', $rid . '_plug__2_comparetxt_comptxt*j_words__inp1', 'words') . br();
    $ex1 = "version.\nversion\nversion v f d";
    $ex2 = "version.\nversion\nversion v f b";
    $ret .= txarea('inp1', $ex1, 54, 8) . ' ';
    $ret .= txarea('inp2', $ex2, 54, 8) . ' ';
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:11,代码来源:comparetxt.php

示例8: plug_ifrm

function plug_ifrm($d, $o = '')
{
    $rid = randid();
    if ($o) {
        echo ifrgz('users/public/ifrm/');
    }
    $ret = txarea('ifru' . $rid, '', 60, 10);
    $ret .= lj('txtbox', $rid . '_plug___ifrm_ifrget___ifru' . $rid, "►") . br();
    $ret .= divd($rid, '');
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:11,代码来源:ifrm.php

示例9: plug_deploy

function plug_deploy($deploy)
{
    $qb = $_SESSION['qb'];
    $USE = $_SESSION['USE'];
    $raed = suj_of_id($deploy);
    $nl = $_GET['nl'] ? $_GET['nl'] : "nl";
    if ($deploy && $USE) {
        //prep
        list($qauth, $subj) = sql('name,suj', 'qda', 'r', 'id="' . $deploy . '"');
        $msg = sql('msg', 'qdm', 'v', 'id="' . $deploy . '"');
        if ($USE == $qauth or auth(5)) {
            $http = host();
            if (!$_POST['dpl']) {
                reqp('mail');
                $qmail = mail_list_tosend();
                $ret .= form("/?read={$deploy}&deploy={$deploy}&nl=nlb", txarea('dpl" maxlength="1000', $qmail, 40, 10) . br() . checkbox("dpf", "ok", "html", 1) . checkbox("multiple", "ok", "each_one", 1) . input2('submit', "send", nms(50), 'popbt'));
            } else {
                $htacc = urlread($deploy);
                $_SESSION['nl'] = $nl;
                //deploy
                if ($_POST['dpf'] == "ok") {
                    $mail_format = "html";
                    $txt = format_txt($msg, $nl, $deploy);
                    $txt = html_entity_decode($txt);
                    $txt = str_replace('href="/', 'href="' . $http . '/', $txt);
                    $msg = lkc("", $http . $htacc, bal("h2", $subj));
                    $msg .= divc("panel justy", $txt);
                } else {
                    $mail_format = "txt";
                    $msg = clean_internaltag($msg);
                    $msg = html_entity_decode($msg);
                }
                $_SESSION['nl'] = "";
                //send
                $sender = sql('mail', 'qdu', 'v', 'name="' . $USE . '"');
                $lstm = str_replace("\n", ",", $_POST['dpl']);
                $lstm = str_replace("\r", ",", $lstm);
                $listmail = explode(",", trim($lstm));
                if ($_POST['multiple'] == "ok" && is_array($listmail)) {
                    $sentto = send_mail_r($listmail, $mail_format, $qb . ' :: ' . $raed, $msg, $sender, $htacc);
                } else {
                    $sentto = $_POST['dpl'];
                    $vm = str_replace(array(",", ";", "\n", " "), ",", $sentto);
                    send_mail($mail_format, $vm, $qb . ' :: ' . $raed, $msg, $sender, $htacc);
                }
                $ret .= lkc("popbt", '/?read=' . $deploy, 'article ' . $deploy . ' sent to: ' . $sentto);
            }
        } else {
            $ret .= btn("popdel", "forbidden");
        }
    }
    //if($_POST['dpl'])return $ret;
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:54,代码来源:deploy.php

示例10: plug_social

function plug_social($p, $o)
{
    $rid = 'plg' . randid();
    $j = $rid . '_plug__2_social_social*j___txtareb';
    $sj = 'SaveJ(\'' . $j . '\')';
    $ret .= input(1, 'search', $p, '') . ' ';
    $ret .= txarea('txtareb', $p, 61, 18, atc('console') . atb('onkeyup', $sj) . atb('onclick', $sj));
    $ret .= lj('', $j, picto('reload')) . ' ';
    //$ret.=msqlink('clients',ses('qb').'_social').' ';
    return $ret . divd($rid, social_j($p, $o));
}
开发者ID:philum,项目名称:cms,代码行数:11,代码来源:social.php

示例11: 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

示例12: plug_msqads

function plug_msqads($p, $o)
{
    $rid = 'plg' . randid();
    $p = $p ? $p : 'msqads';
    reqp('msql');
    $msq = new msql('', $p);
    //table
    $rb = array('day', 'quest', 'resp');
    $msq->create($rb);
    $ret .= input(1, $rb[0], $rb[0], '', 1) . br() . txarea($rb[1], '', 40, 4) . txarea($rb[2], '', 40, 4);
    $ret .= lj('txtbox', $rid . '_plug___msqads_msqads*j_' . $p . '__' . implode('|', $rb), 'save') . ' ';
    $ret .= msqlink('users', ses('qb') . '_' . $p);
    $msq->read('i');
    return $ret . divd($rid, make_table($msq->ret, 'txtblc', 'txtx'));
}
开发者ID:philum,项目名称:cms,代码行数:15,代码来源:msqads.php

示例13: plug_ftext

function plug_ftext($d, $tx)
{
    $nd = stext_log();
    $ra = msql_read('', $nd . '_txt_ftxt', '1');
    $msg = stripslashes($ra[1]);
    $msg = html_entity_decode_b($msg);
    if (!$ra && $nd) {
        msql_modif('users', $nd . '_txt_ftxt', array('day', 'text'), '', 'one', 1);
    }
    $ret .= btd('bts', lj('', 'bck_plug__xd_ftext_ftext*j_ftxt__ftxt', picto(save))) . ' ';
    $ret .= btd('bck', '') . hlpbt('ftext') . br();
    if (!$tx) {
        $ret .= txarea('ftxt', $msg, 54, 12);
    }
    return btd('plgtxt', $ret);
}
开发者ID:philum,项目名称:cms,代码行数:16,代码来源:ftext.php

示例14: plug_model

function plug_model($p, $o)
{
    $rid = 'plg' . randid();
    $p = $p ? $p : 'model';
    reqp('msql');
    $msq = new msql('', $p);
    //table
    $rb = array('title', 'text');
    $msq->create($rb);
    //cols
    $ret .= input(1, $rb[0], '', '', 20);
    $ret .= lj('txtbox', $rid . '_plug___model_model*j_' . $p . '__' . implode('|', $rb), 'save') . br();
    $ret .= txarea($rb[1], '', 40, 4);
    $ret .= msqlink('users', ses('qb') . '_' . $p);
    $msq->read('i');
    return $ret . divd($rid, make_table($msq->ret, 'txtblc', 'txtx'));
}
开发者ID:philum,项目名称:cms,代码行数:17,代码来源:model.php

示例15: plug_gallery

function plug_gallery($q)
{
    if ($q == "gl") {
        $q = "";
    }
    $img_d = sql('img', 'qda', 'v', 'id="' . $_SESSION['read'] . '"');
    $img_d = substr($img_d, 0, 1) == '/' ? substr($img_d, 1) : $img_d;
    $img_d = str_replace("/", ",", $img_d);
    if ($q == "auto") {
        $s = "";
    } elseif ($q == "manual") {
        $s = $q;
        $imgs = str_replace(",", ",\n", $img_d);
    } elseif ($q == "dir") {
        $s = $q;
        $dirs = br() . plugin('dsnav', 'gl', 'users/' . $_SESSION['qb']);
    } else {
        $s = $q;
    }
    $ret .= bal("b", "source:") . ' ';
    if (!$q) {
        //gallerygl
        if ($img_d) {
            $ret .= lj('popbt', 'popup_gallery__x_auto', "auto") . ' ';
            $ret .= lj('popbt', 'popup_gallery__x_manual', "manual") . ' ';
        }
        $ret .= lj('popbt', 'popup_gallery__x_dir', "user/directory");
    } else {
        $ret .= lj("popbt", 'popup_gallery', $q == "dir" ? "user_directory" : $q);
    }
    if ($imgs) {
        $ret .= br() . txarea('dpl', $imgs, 40, 10, atd('source') . atc('popw') . ats('border:1px solid black'));
    }
    //pb name=src
    if ($dirs) {
        $ret .= $dirs;
    }
    if ($q != "dir" && $q) {
        $ret .= br() . bal("b", "type:") . ' ';
        $ret .= ljb("popbt", "insert_photo", $s . '\',\'', "Thumbnails") . ' ';
        $ret .= ljb("popbt", "insert_photo", $s . '\',\'2', "Ajax") . ' ';
        $ret .= ljb("popbt", "insert_photo", $s . '\',\'1', "Flash") . ' ';
        $ret .= lj("popbt", 'popup_slider_' . ($s == 'manual' ? 'source' : '') . '_3x_' . $s . '_' . $_SESSION['read'], "Slider") . ' ';
    }
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:46,代码来源:gallery.php


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