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


PHP btn函数代码示例

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


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

示例1: st_paste

function st_paste($d)
{
    $ret = hidden('', 'cka', 'm' . $d);
    $ret .= ljb('" title="copy" id="cka1', 'mem_storage', '_m1___cka0', picto('copy')) . ' ';
    $ret .= ljb('" title="paste" id="ckb1', 'mem_storage', '_m1_1__ckb0', picto('paste'));
    return btn('nbp', $ret) . ' ';
}
开发者ID:philum,项目名称:cms,代码行数:7,代码来源:stext.php

示例2: render

    public function render($label_template = '{title}', $back_url = NULL)
    {
        if (empty($this->mItems)) {
            return '<p>No records are found.</p>';
        } else {
            $html = box_open('Sort Order', 'primary');
            // Render form with alert message
            $html .= '<form action="' . current_url() . '" method="POST">';
            $html .= $this->CI->system_message->render();
            $html .= '<p>Drag and drop below items to sort them in ascending order:</p>';
            // Generate item list by CodeIgniter Template Parser
            $template = '<ul class="sortable list-group">
				{items}
				<li class="list-group-item">
					<strong>' . $label_template . '</strong>
					<input type="hidden" name="' . $this->mPostName . '[]" value="{id}" />
				</li>
				{/items}
			</ul>';
            $data = array('items' => $this->mItems);
            $html .= $this->CI->parser->parse_string($template, $data);
            if ($back_url != NULL) {
                $html .= btn('Back', $back_url, 'reply', 'bg-purple') . ' ';
            }
            $html .= btn_submit('Save');
            $html .= '</form>';
            $html .= box_close();
            return $html;
        }
    }
开发者ID:Chidaverz,项目名称:ci_bootstrap_3,代码行数:30,代码来源:Sortable.php

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

示例4: output_pages_from_cache

function output_pages_from_cache($http, $otp)
{
    $npg = $_SESSION['prmb'][6];
    $page = $_SESSION['page'];
    $min = ($page - 1) * $npg;
    $max = $page * $npg;
    if (is_array($otp)) {
        foreach ($otp as $id => $nb) {
            if (is_numeric($id)) {
                $i++;
                if ($i >= $min && $i < $max) {
                    $mg = $http . '/imgc/' . first_img($nb[3]);
                    if (is_link($mg)) {
                        $ret .= btn('imgl', image($mg, '', 50));
                    }
                    $ret .= bal('h2', lka($http . '/' . $id, $nb[2]));
                    $ret .= btn('txtx', $nb[1]) . ' ';
                    if (rstr(27)) {
                        $ret .= btn('txtsmall', mkday($nb[0], 1)) . ' ' . pub_link($nb[9]) . ' ';
                    }
                    if (rstr(25)) {
                        $ret .= btn('txtsmall', art_length($nb[8]));
                    }
                    $ret .= br() . br();
                }
            }
        }
    }
    $n_pages = nb_page($i, $npg, $page);
    return $n_pages . $ret . $n_pages;
}
开发者ID:philum,项目名称:cms,代码行数:31,代码来源:channel.php

示例5: taxonav_read

function taxonav_read($p)
{
    req('spe');
    list($h, $i, $o) = explode('|', $p);
    $r = collect_hierarchie_d("reverse");
    $r = tri_hierarchic($r, $h);
    //p($r);
    if (substr($i, 0, 1) == 'x') {
        $i = substr($i, 1);
    } else {
        $i = 'x' . $i;
        $op = 'x';
    }
    if ($op) {
        $p = '&#9660;';
    } else {
        $p = '&#9658;';
    }
    //down-right //
    $nb = btn('txtsmall2', '(' . count($r) . ')');
    $ret = balc("li", '" style="list-style-type:none;', '&#9500;&#150;' . good_gb($h, $i, $p) . ' ' . $nb);
    if ($r) {
        return $ret . balc("ul", "taxonomy", make_menus_rb($r, $h, $op, $o));
    }
}
开发者ID:philum,项目名称:cms,代码行数:25,代码来源:taxonav.php

示例6: radio_edit

function radio_edit($nod, $dr, $md, $id = '')
{
    $id = $id ? $id : $_SESSION['read'];
    $nd = 'radio' . $id;
    if (!$nod) {
        $nod = $_SESSION['qb'] . '_' . $nd;
    }
    $nodb = str_replace('_', '*', $nod);
    if ($dr) {
        $ret .= radio_build($dr, $nod);
    }
    $r = msql_read('radio', $nod, '');
    $ret .= msqlink('radio', $_SESSION['qb'] . '_' . $nd);
    if ($r[$md]) {
        foreach ($r[$md] as $k => $v) {
            $ky .= $md . '.' . $k . '|';
            $edit .= input2('text', '"id="' . $md . '.' . $k, $v) . btn('txtsmall', $r['_menus_'][$k]) . br();
        }
        $edit .= ljb('popbt', 'SaveR', 'popup_radiosav_' . $nodb . '__' . $k . '\',\'' . $ky, 'save');
    }
    $ret .= divc('edit', $edit);
    if ($r) {
        foreach ($r as $k => $v) {
            foreach ($v as $ka => $va) {
                $datas[$k][] = $va;
            }
            if ($k != '_menus_' && $k != $md) {
                $datas[$k][] = ljb('popbt', 'SaveJ', 'popup_radioedit___' . $nodb . '__' . $k, 'edit');
            }
        }
    }
    $ret .= make_divtable($datas);
    return popup('build_playlist', $ret);
}
开发者ID:philum,项目名称:cms,代码行数:34,代码来源:radio.php

示例7: st_paste

function st_paste($d)
{
    $ret = hidden('', 'cka', 'm' . $d);
    $ret .= ljb('" title="' . nms(57) . '" id="cka1', 'mem_storage', '_m1___cka0', picto('save')) . ' ';
    $ret .= ljb('" title="' . nms(95) . '" id="ckb1', 'mem_storage', '_m1_1__ckb0', picto('refresh')) . ' ';
    $ret .= hlpbt('memstorage');
    return btn('nbp', $ret) . ' ';
}
开发者ID:philum,项目名称:cms,代码行数:8,代码来源:txt.php

示例8: ftext_j

function ftext_j($n, $b, $res)
{
    $nd = stext_log();
    $rb = ajxr($res);
    $ra = array(mkday(), html_entity_decode_b($rb[0]));
    //p($ra);
    msql_modif('users', $nd . '_txt_' . $n, $ra, '', 'one', 1);
    return btn('txtyl', 'ok');
}
开发者ID:philum,项目名称:cms,代码行数:9,代码来源:ftext.php

示例9: blog_category

 public function blog_category()
 {
     $crud = $this->crud->generate_crud('demo_blog_categories');
     $crud->columns('title');
     $this->mTitle .= 'Blog Categories';
     $this->mViewData['crud_note'] = btn('Sort Order', 'demo/blog_category_sortable');
     $this->mViewData['crud_data'] = $this->crud->render();
     $this->render('crud');
 }
开发者ID:NaszvadiG,项目名称:ci_bootstrap_3,代码行数:9,代码来源:Demo.php

示例10: plug_reset

function plug_reset()
{
    //session_destroy(); $_SESSION=''; $_SESSION['dev']='dev';
    $r = array('qd', 'qb', 'USE', 'iq', 'dev');
    foreach ($r as $v) {
        $ret[$v] = $_SESSION[$v];
    }
    $_SESSION = $ret;
    return btn('txtyl', 'all sessions were killed');
}
开发者ID:philum,项目名称:cms,代码行数:10,代码来源:reset.php

示例11: pictos_edit

function pictos_edit($k)
{
    //echo $k;
    $d = msql_read('system', 'program_pictos', $k);
    $ret = btn('txtsmall', $k) . ' ' . input(1, 'edit' . $k . '" size="30', $d);
    $ret .= lj('txtbox', 'ico' . $k . '_plug__x_pictos_pictos*save_' . $k . '__edit' . $k, 'save') . ' ';
    $ret .= lj('txtyl', 'ico' . $k . '_plug__x_pictos_pictos*save_' . $k, 'del') . br() . br();
    //$ret.=sesmk('pictos_see','edit'.$k,0);
    return popup('edit_picto', $ret);
}
开发者ID:philum,项目名称:cms,代码行数:10,代码来源:pictos.php

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

示例13: ftp_ops

function ftp_ops($p, $f)
{
    $rid = 'inp' . randid();
    $j = 'ops' . $rid . '_plug__2_ftp_ftp*act_' . ajx($p) . '_' . ajx($f) . '_' . $rid;
    if ($p == 'rename' or $p == 'copy') {
        $ret = input(1, $rid, $f, '', '', 16) . ' ';
    } else {
        $ret = hidden('', $rid, $f) . btn('txtx', $f) . ' ';
    }
    $ret .= lj('popbt', $j, pictxt('reload', $p));
    return $ret . divd('ops' . $rid, '');
}
开发者ID:philum,项目名称:cms,代码行数:12,代码来源:ftp.php

示例14: plug_flashgallery

function plug_flashgallery($f, $id)
{
    //list($r,$f)=decide_source($f,$id); p($f);
    if ($_SESSION['read'] or rstr(41)) {
        $ret = embed_gallery($f, $id) . $add;
    } else {
        $ret = btn('txtx', "PhotoGallery");
    }
    if (!$_SESSION['nl']) {
        return $ret;
    }
}
开发者ID:philum,项目名称:cms,代码行数:12,代码来源:flashgallery.php

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


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