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


PHP divs函数代码示例

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


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

示例1: pane_art

function pane_art($id)
{
    $im = best_img(sql('img', 'qda', 'v', 'id=' . $id));
    $suj = suj_of_id($id);
    //spe
    return divs('background:url(/img/' . $im . ') center; background-size:cover; height:180px;', divs('position:relative; background:rgba(0,0,0,0.4); color:rgba(255,255,255,0.8); font-shadow:1px 1px 2px rgba(0,0,0,0.8); font-size:22px; top:50%;', $suj));
}
开发者ID:philum,项目名称:cms,代码行数:7,代码来源:panart.php

示例2: ascii_j

function ascii_j($p, $o, $res = '')
{
    list($p, $o) = ajxp($res, $p, $o);
    //build
    if ($o) {
        $ret = ascii_arr($o);
        $r = explode(' ', $o);
    } else {
        if ($p) {
            list($start, $length) = split("-", $p);
        } else {
            $start = 128;
            $length = 1000;
        }
        for ($i = $start; $i <= $start + $length; $i++) {
            $r[] = $i;
        }
        $ret .= ascii_menu($start, $length);
    }
    //signs
    foreach ($r as $k => $v) {
        if ($v) {
            $bt .= ljb('', 'insert', $v . ' ', chr_b($v)) . ' ';
        }
    }
    $ret .= divs('font-size:medium; line-height:140%;', $bt);
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:28,代码来源:ascii.php

示例3: udc_imz

function udc_imz($f, $n = '2')
{
    list($w, $hb) = fwidth($f);
    $w = round($w / $n);
    $h = round($h / $n);
    return divs('width:' . $w . 'px;', image('/' . $f, $w, $h));
}
开发者ID:philum,项目名称:cms,代码行数:7,代码来源:umdico.php

示例4: plug_cubes

function plug_cubes($d)
{
    req('pop');
    $w = currentwidth();
    $r = $_SESSION['rqt'];
    $cols = 4;
    $c = $cols * 3;
    $n = count($r);
    $nl = ceil($n / $c);
    $l = $w / $c;
    $cats = array_keys_r($r, 1, 'k');
    $clr = cub_clr($cats);
    foreach ($r as $k => $v) {
        if ($v[11] > 1 && $v[3]) {
            $lx = $l * ($v[11] - 1);
            //$pub=minimg($v[3],"h").lka(htac($k),$v[2]);
            //$pub=make_thumb_d($v[3],round($lx).'/'.round($lx));//
            $pub = image('/imgc/' . $v[3], round($lx), round($lx));
            $pub = lka(htac($k) . '" title="' . $v[2], $pub);
            $ret .= divs(cub_sz($lx, $clr[$v[1]]), $pub);
        }
    }
    //for($ic=0;$ic<$c;$ic++){}
    //for($ib=0;$ib<$nl;$ib++){$i++;}
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:26,代码来源:cubes.php

示例5: exc_fast

function exc_fast()
{
    $ref = array('{}', '[]', 'if()', 'foreach($r as $k=>$v)', '$ret=;', 'strpos($d,\'x\')!==false', 'return $ret;', '.br()', 'echo \'ee\';', "\r");
    foreach ($ref as $k => $v) {
        $ret .= ljb('txtx', 'insert', $v, $v) . br();
    }
    return divs('width:180px; overflow:auto; height:240px;', $ret);
}
开发者ID:philum,项目名称:cms,代码行数:8,代码来源:exec.php

示例6: color_j

function color_j($p, $o, $res = '')
{
    $r = msql_read('system', 'edition_colors', '', '1');
    foreach ($r as $k => $v) {
        $ret .= divs('background-color:#' . $v, $k);
    }
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:8,代码来源:color.php

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

示例8: plug_ifr

function plug_ifr($d, $o = '')
{
    $rid = randid();
    if ($o) {
        echo ifrgz('users/public/ifram/');
    }
    $bt = lj('txtbox', 'ifru' . $rid . '_plug___ifr_ifrget___furl' . $rid, "&#9658;");
    $ret = divs('', autoclic('furl' . $rid, 'Url', '64', '1000" id="furl', '') . $bt) . br();
    $ret .= divd('ifru' . $rid, '');
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:11,代码来源:ifr.php

示例9: plug_sticky

function plug_sticky($d)
{
    $d = $d != '' ? $d : 1;
    $id = 'np' . randid();
    $ret = hidden('', 'cka', 'm' . $d);
    $ret .= ljb('poph" id="ckb', 'mem_storage', $id . '_m' . $d . '_1_1_ckb' . $d, picto('reload'));
    //$ret.=ljb('popbt" id="ckc','mem_storage',$id.'_m'.$d.'__1_ckc','save');
    //$ret.=ljb('popbt" id="ckb'.$d,'mem_storage',$id.'_m'.$d.'_1_1_ckb'.$d.'_memnu','restore');
    $ret .= ljb('poph" id="ckc', 'mem_storage', $id . '_cka__1_ckc', pictit('save', 'save'));
    $ret = divs('float:right;', $ret);
    $ret .= divedit($id, '', 'height:240px; overflow:auto; padding:10px;', $j, $txt);
    $ret .= js_code('document.getElementById(\'' . $id . '\').innerHTML=localStorage[\'m' . $d . '\']');
    return popup_stick($ret);
}
开发者ID:philum,项目名称:cms,代码行数:14,代码来源:sticky.php

示例10: photovr_batch

function photovr_batch($r, $dr, $wa, $ha, $wab = '', $hab = '')
{
    foreach ($r as $k => $v) {
        $f = $dr . '/' . $v;
        list($w, $h) = getimagesize($f);
        //if($w>$h){$wb=$wa; $hb=$ha;} else{$wb=$ha; $hb=$wa;}
        //else{$wb=$wab; $hb=$hab;} //echo $w.'/'.$h.' '; echo br();
        $wb = $hb = $wa;
        $img = kmini($f, $wb, $hb);
        $t = $o ? $v : '';
        $l = 'SaveBf(\'photo_' . str_replace("_", "*", $f) . '_' . $w . '_' . $h . '\')';
        $rb[] = divs('display:inline-block;', overpop($t, $l, 'ffffff', '', 0.2, $wb, $hb) . $img);
    }
    return $rb;
}
开发者ID:philum,项目名称:cms,代码行数:15,代码来源:photovr.php

示例11: spi_atom

function spi_atom($r, $n, $max)
{
    if (!$r) {
        $r = array(1 => '-', 11 => $n);
    }
    $clr = spi_classes();
    //color:#'.invert_color($clr[$r[2]],1).';
    $sty = 'padding:2px; background-color:#' . $clr[$r[2]] . '; border:1px solid black;';
    if ($r[11] > $max) {
        $sty .= ' opacity:0.4;';
    }
    //$nb=divs('text-align:right',lj('','spi_plug___spi_spi*table_'.$r[11],$r[11]));
    return lj('" title="' . $r[0] . ' (' . $r[11] . ')', 'popup_plup___spi_spi*infos_' . $r[11], divs($sty, $r[11] . br() . $r[1]));
    //return divs($sty,$r[11].br().lkc('','https://fr.wikipedia.org/wiki/'.$r[0],$r[1]));
    //return divs($sty,$r[11].br().'[[https://fr.wikipedia.org/wiki/'.urlencode($r[0]).' '.$r[1].']]');
}
开发者ID:philum,项目名称:cms,代码行数:16,代码来源:spi.php

示例12: sun_build

function sun_build($p, $o)
{
    $ret = $p . '-' . $o;
    if ($p) {
        $t = strtotime($p);
    } else {
        $t = time();
    }
    $d = date('ymdHis', $t);
    $r = sunstim($d);
    list($dy, $dm, $dd, $dh, $di, $ds) = $r;
    //p($r);
    $posx = $dh * (100 / 24) . '%';
    if ($dm > 6) {
        $dm = 12 - $dm;
    }
    $posy = $dm * (90 / 6) . '%';
    $ret = divs('position:absolute; width:20px; height:20px; border-radius:20px; box-shadow:0 0 4px silver; left:' . $posx . '; top:' . $posy . '; background:orange; border:1px solid white;', '');
    return divs('width:100%; height:auto; background:linear-gradient(to bottom, blue, pink) no-repeat fixed 0 0;', $ret);
}
开发者ID:philum,项目名称:cms,代码行数:20,代码来源:sun.php

示例13: plug_rollovertopop

function plug_rollovertopop($doc, $t)
{
    $id = 'curtain' . randid();
    //return imgico($a.'" onmouseover="this.src=\''.$b.'\'" onmouseout="this.src=\''.$a.'\'');
    list($v, $p) = split_one('�', $doc, 1);
    $img = make_thumb_d($v, $p);
    //
    $im = goodroot($v);
    list($l, $h) = getimagesize($im);
    $send = 'photo_' . str_replace("_", "*", $im) . '_' . $l . '_' . $h;
    if ($_SESSION['nl']) {
        $thumb = image($im, currentwidth(), '');
    }
    //$ret=ljb("","SaveBf",$send,$img);
    $oc = 'SaveBf(\'' . $send . '\')';
    $ov = 'getbyid(\'' . $id . '\').style.background-color:rgba(0,0,0,0);';
    $ret = lkh($oc, $ov, $thumb);
    $sty = 'position:absolute; width:340px; height:240px; background-color:rgba(0,0,0,0.5); text-align-center; vertical-align:center;';
    $title = divs('width:140px; height:40px; background-color:#;', $t);
    $ret .= div(' style="' . $sty . '" id="' . $id . '"', '');
    //return imgico($a.'" onmouseover="this.src=\''.$b.'\'" onmouseout="this.src=\''.$a.'\'');
    return $ret;
}
开发者ID:philum,项目名称:cms,代码行数:23,代码来源:rollover2pop.php

示例14: save_art_batch

function save_art_batch()
{
    $r = $_SESSION['vacuum'];
    //array_reverse
    if ($r) {
        foreach ($r as $k => $v) {
            $rb[] = saveart_url($k);
            unset($_SESSION['vacuum'][$k]);
            $_SESSION['vacsuj'][$k] = '';
            $_SESSION['vaccat'][$k] = '';
            $_SESSION['dayx'] == time();
        }
    }
    if ($rb) {
        req('pop,spe,art,tri,mod');
        $n = count($rb);
        $ret .= lkc('poph', '/module/recents/all/Batch/articles/' . $n, nbof($n, 1)) . ' ';
        $t = pictxt('view', nms(45) . ' ' . nms(100));
        $ret .= lj('poph', 'popup_modpop___all/Batch/articles/' . $n . ':recents', $t);
    } else {
        $ret = nms(11) . ' ' . nms(16);
    }
    //$ret.=build_mod_r('all/Batch/multi/'.$n.':recents');
    return divs('width:140px;', $ret);
}
开发者ID:philum,项目名称:cms,代码行数:25,代码来源:sav.php

示例15: css_fontface


//.........这里部分代码省略.........
        $ret .= lkc('txtyl', '?admin=fonts', 'update server_table') . br() . br();
    }
    //rb//rd
    $ard = array('', 'fontsquirrel', 'fontspring', 'myfonts');
    if ($r) {
        foreach ($r as $k => $v) {
            if ($v[1]) {
                $rb[$v[1]] = 1;
            }
            if (is_numeric($v[4])) {
                $rd[$v[4]] = $ard[$v[4]];
            }
        }
    }
    // else $rd[$v[4]]=$v[4];
    $rb['unclassed'] = 1;
    ksort($rb);
    $_SESSION['fntcat'] = $rb;
    //cat
    if ($b && $b != 'unclassed' && $b != 'all') {
        $hlp = divc('panel', helps($b, 'typos')) . br();
    }
    foreach ($rb as $k => $v) {
        $mnu .= lj($k == $b ? $csb : $csa, $jx . $gf . '1_' . ajx($k) . '_' . $c . '_' . $o, $k) . ' ';
    }
    $mnu .= br();
    $b = $b == 'unclassed' ? '' : $b;
    $pk = substr($o, 0, 3);
    $pv = substr($o, 3);
    if ($pv) {
        $pp[$pk] = $pv;
    }
    //rech
    $srch .= input2('text', 'srch" size="8" id="srchfnt', $pp['rch'] ? $pp['rch'] : 'search', '');
    $srch .= ' ' . lj('popbt', $jx . $gf . '1_' . $b . '_' . $c . '_' . $o . '_srchfnt', 'ok') . ' ';
    $srch .= lj('popbt', $jx . $gf . '1_all', 'x');
    //tri
    foreach ($r as $k => $v) {
        if (!$pv or ($pp['acc'] && $pp['acc'] == $v[2] or $pp['fav'] && $pp['fav'] == $v[3] or $pp['fam'] && $pp['fam'] == $v[4] or $pp['rch'] && stristr($v[0], $pp['rch']) !== false)) {
            //if(!$s or ($s && stristr($v[0],$s)!==false)){}
            if ($v[1] == $b or $b == 'all') {
                $rc[$k] = $v;
            }
        }
    }
    $n = count($rc);
    //pages
    $no = 20;
    $np = 10;
    $min = $p - $np;
    $max = $p + $np;
    $nb = ceil($n / $no);
    $bb = ajx($b);
    for ($i = 1; $i <= $nb; $i++) {
        if ($i == 1 or $i == $nb or $i > $min && $i < $max) {
            //$rtp.=lj(($i==$p?'active':''),$jx.$gf.$i.'_'.$bb.'_'.$c.'_'.$o,$i);
            $rtp .= lj($i == $p ? 'active' : '', $jx . $gf . $i . '_' . $bb . '_' . $c . '_' . $o, $i) . ' ';
        }
        if ($i == 2 && $min > 2 or $i == $nb - 1 && $max < $nb - 1) {
            $rtp .= '... ';
        }
    }
    $nbp = divc('nb_pages', $rtp);
    $c = is_numeric($c) ? $cb = $c : 48;
    $arz = array(12, 24, 36, 48, 72);
    foreach ($arz as $k => $v) {
        //size
        $siz .= lj($v == $c ? $csb : $csa, $jx . $gf . $p . '_' . $b . '_' . $v . '_' . $o, $v) . ' ';
    }
    //label
    $go = $gf . $p . '_' . $bb . '__';
    if ($rd) {
        foreach ($rd as $k => $v) {
            $prp .= lj($pp['fam'] == $k ? $csb : $csa, $jx . $go . 'fam' . ($pp['fam'] == $k ? '' : $k), $v) . ' ';
        }
    }
    $prp .= lj($pp['acc'] ? $csb : $csa, $jx . $go . 'acc' . ($pp['acc'] ? '' : 1), 'accents') . ' ';
    $prp .= lj($pp['fav'] ? $csb : $csa, $jx . $go . 'fav' . ($pp['fav'] ? '' : 1), 'favs') . ' ';
    //render
    $max = $p * $no;
    $min = $max - $no;
    if ($rc) {
        foreach ($rc as $k => $v) {
            $ia++;
            if ($ia >= $min && $ia < $max && $v[0]) {
                $rta .= '@font-face {' . css_ff($v[0]) . '}' . "\n";
                $rtb .= preview_ff($k, $v, $c);
            }
        }
    }
    $ret .= css_code($rta) . $mnu . $hlp . $siz . $prp . $srch . br() . br();
    $ret .= input(1, 'ffwr', $_SESSION['ffstr'] ? $_SESSION['ffstr'] : 'AaBbCcDdEe0123יא', '" size="44');
    $ret .= lj('txtx', 'ffwr_sesmake_ffwr__ffstr', 'set');
    $ret .= divd('scroll', divd('pop', $nbp . br() . $rtb . $nbp)) . br();
    if ($u) {
        return popup('create font-face', divs('width:640px;', $ret));
    } else {
        return css_code($rta) . $nbp . br() . $rtb . $nbp;
    }
}
开发者ID:philum,项目名称:cms,代码行数:101,代码来源:styl.php


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