Example #1
0
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));
}
Example #2
0
File: ascii.php Project: philum/cms
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;
}
Example #3
0
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));
}
Example #4
0
File: cubes.php Project: philum/cms
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;
}
Example #5
0
File: exec.php Project: philum/cms
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);
}
Example #6
0
File: color.php Project: philum/cms
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;
}
Example #7
0
File: book.php Project: philum/cms
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;
}
Example #8
0
File: ifr.php Project: philum/cms
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;
}
Example #9
0
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);
}
Example #10
0
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;
}
Example #11
0
File: spi.php Project: philum/cms
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].']]');
}
Example #12
0
File: sun.php Project: philum/cms
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);
}
Example #13
0
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;
}
Example #14
0
File: sav.php Project: philum/cms
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);
}
Example #15
0
File: styl.php Project: philum/cms
function css_fontface($p, $b, $c, $o, $s, $u)
{
    //page,cat,size,opt
    $csa = 'txtx';
    $csb = 'txtred';
    $jx = 'pop_';
    if (!$b) {
        $b = 'all';
    }
    $r = msql_read('server', 'edition_typos', '', 1);
    $n = count($r);
    asort($r);
    $rb['all'] = 1;
    $b = $b == '' ? 'unclassed' : $b;
    $gf = 'stylsff___';
    $s = substr($s, 0, -1);
    if ($s) {
        $o = 'rch' . $s;
    }
    if (!is_file('msql/server/edition_typos.php')) {
        $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;
    }
}
Example #16
0
<?php

$n = (int) trim(fgets(STDIN));
print divs($n) . "\n";
function divs($n)
{
    $i = 0;
    while ($n != 1) {
        if ($n % 2 == 0) {
            $n /= 2;
        } else {
            $n -= 1;
        }
        $i += 1;
    }
    return $i;
}
Example #17
0
File: pop.php Project: philum/cms
function paocols($msg, $n, $s = 0)
{
    $n = $n ? $n : 2;
    if (strpos($msg, "</p>")) {
        $sep = "</p>";
    } elseif (strpos($msg, "\n")) {
        $sep = "\n";
    } else {
        $sep = " ";
    }
    $r = explode($sep, $msg);
    if ($s) {
        for ($i = 0; $i < $s; $i++) {
            $ret .= $r[$i] . $sep;
            unset($r[$i]);
        }
    }
    $nb = count($r);
    $nbc = strlen(implode('', $r));
    for ($i = 0; $i <= $nb; $i++) {
        $c = strlen($r[$i]);
        $cc += $c;
        $ccb += $c;
        if ($cc > $nbc / $n) {
            $cc = 0;
            $o++;
        }
        if (trim($r[$i])) {
            $rb[$o] .= trim($r[$i]) . $sep;
        }
    }
    $ret .= colonize($rb, $n, '', '', 0, 1);
    $w = prma('content') + 1;
    return divs('width:' . $w . 'px;', $ret);
}
Example #18
0
File: styl.php Project: philum/cms
function mnu_line_t($clr, $t, $o = '')
{
    if ($clr) {
        $cb = invert_color($clr, 1);
    }
    if ($o) {
        $s = 'border:1px solid gray; ';
    }
    return divs($s . 'padding:2px 4px; color:#' . $cb . '; background-color:#' . $clr, $t);
}
Example #19
0
File: ajxf.php Project: philum/cms
function navs($op)
{
    if ($op == "ascii") {
        $r = msql_read('system', "edition_chars", "", 1);
        foreach ($r as $k => $v) {
            $ret .= ljb('', "insert", $v, $v) . ' ';
        }
        $ret .= lj('txtx', 'popup_plup___ascii', 'table');
    } elseif ($op == "pictos") {
        $r = msql_read('system', 'edition_pictos', '', 1);
        foreach ($r as $k => $v) {
            $ret .= ljb('', 'insert', '[' . $k . '§16:picto]', picto($k)) . ' ';
        }
    } elseif ($op == "uc") {
        $r = msql_read('', $_SESSION['qb'] . '_connectors', "", 1);
        if ($r) {
            $ret .= btn('txtx', $_SESSION['qb'] . ':') . ' ';
            foreach ($r as $k => $v) {
                $ret .= ljb('', "insert_mbd", '[\',\'\',\':' . $k . ']', $k) . ' ';
            }
        }
        $r = msql_read("", 'public_connectors', "", 1);
        if ($r) {
            $ret .= br() . btn('txtx', 'public:') . ' ';
            foreach ($r as $k => $v) {
                $ret .= ljb('', "insert_mbd", '[\',\'\',\':' . $k . ']', $k) . ' ';
            }
        }
        $ret = divs('min-width:440px;', $ret);
    } elseif ($op == "codeline") {
        $bt = '';
        $r = msql_read('system', 'connectors_codeline', "", 1);
        ksort($r);
        $rb = msql_read("lang", 'connectors_codeline', "", 1);
        if ($r) {
            foreach ($r as $k => $v) {
                $ret .= ljb('" title="' . $rb[$k], "insert", '[' . $v . ':' . $k . ']', $k) . ' ';
            }
        }
    } elseif ($op == "backup") {
        $id = $_SESSION["read"];
        $nod = $_SESSION['qb'] . '_backup_' . $id;
        $nodb = ajx($nod, '');
        if ($id) {
            $r = msql_read('', $nod, '', 1);
            if ($r) {
                foreach ($r as $k => $v) {
                    $rb[$k] = array('txarea_restore___users_' . $nodb . '_' . $k, 'bckp_backup___' . $nodb . '_' . $k . '_', 'bckp_backup___' . $nodb . '_del_' . $k);
                }
            }
            //txtarea
            if ($rb) {
                foreach ($rb as $k => $v) {
                    $ret .= lj('', $v[0], 'restore' . $k) . lj('', $v[1], 'backup' . $k) . lj('', $v[2], 'delete' . $k) . br();
                }
            }
            $ret .= lj('popbt', 'bckp_backup___' . $nodb . '_' . ($k + 1), 'new') . ' ';
            //txtarea
            $ret .= lj('popbt', 'txarea_filters___revert', 'revert') . ' ';
        }
        if ($ret) {
            $ret = divb('|bckp', $ret);
        } else {
            'availale only while editing';
        }
    } elseif ($op == 'disk') {
        $ret = call_finder(ses('qb'), 'disk///disk/conn//mini');
    } elseif ($op == 'icons') {
        $ret = call_finder('', 'disk///icon/conn//mini');
    } else {
        $ret = conn_props_b($op);
    }
    return divs('min-width:300px;', $ret);
}
Example #20
0
File: admin.php Project: philum/cms
function adm_messages()
{
    require_once 'art.php';
    require_once 'spe.php';
    if ($_SESSION['auth'] < 1) {
        return contact(nms(84), 'txtcadr');
    } elseif ($_SESSION['auth'] > 6) {
        $ml = ses('qb');
    } else {
        $ml = ses('USE');
    }
    $r = read_idy($ml, 'DESC');
    return divs('width:550px;', output_trk($r));
}
Example #21
0
function sliderJ_img($f, $n)
{
    $w = currentwidth();
    list($n, $na) = split('-', $n);
    $sdj = 'sdjp' . $na;
    if (is_numeric($n)) {
        $_SESSION[$sdj] = $n;
    } elseif ($n == 'next') {
        $_SESSION[$sdj]++;
    } elseif ($n == 'prev') {
        $_SESSION[$sdj]--;
    }
    $ra = msql_read('gallery', $f, '');
    if ($ra) {
        unset($ra['_menus_']);
        $ra = msq_reorder($ra);
        $nb = max(array_keys($ra));
    }
    if ($_SESSION[$sdj] > $nb) {
        $_SESSION[$sdj] = 1;
    }
    if ($_SESSION[$sdj] < 1) {
        $_SESSION[$sdj] = $nb;
    }
    $r = $ra[$_SESSION[$sdj]];
    //p($r);
    if (!is_file($r[2])) {
        return btn('txtsmall', 'no_file: ' . $r[2]);
    }
    $h = round($r[4] * ($w / $r[3]));
    $r[7] = stripslashes($r[7]);
    if ($h >= $r[4]) {
        $wb = ($w - $r[3]) / 2;
        $wa = $r[3];
        $ha = $r[4];
    } else {
        $wa = $w;
        $ha = $h;
    }
    $im = image($r[2], $wa, $ha);
    if ($r[3] > $wa) {
        $im = ljb('', 'SaveBf', 'photo_' . ajx($r[2], '') . '_' . $r[3] . '_' . $r[4], $im);
    }
    $sty = 'padding:4px; width:' . ($w - 8) . 'px; ';
    // margin:0 auto;
    if ($r[8]) {
        $font = 'font-size:' . $r[8] . 'px; ';
    }
    if ($r[9]) {
        $color = 'color:#' . $r[9] . '; ';
    }
    if ($r[10]) {
        $align = 'text-align:' . $r[10] . '; ';
    }
    $alp = $r[12] < 33 ? 20 : ($r[12] < 66 ? 50 : ($r[12] < 90 ? 75 : 90));
    if ($r[12] !== false) {
        $alpha = 'background-image:url(bkg/shadow/black' . $alp . '.png); ';
    } else {
        $sty .= 'background-color:#' . $_SESSION['clrs'][$_SESSION['prmd']][6] . '; ';
    }
    if ($r[11] == 'inside') {
        $pos = 'position:absolute; margin-left:' . $wb . 'px;';
    }
    $ret = sliderJ_nav($_SESSION[$sdj], $na, $nb, $f);
    if ($r[7]) {
        $ret = divs($sty . $width . $font . $color . $align . $alpha . $pos, $ret . $r[7]);
    }
    return div('', $ret . $im);
}
Example #22
0
File: spe.php Project: philum/cms
function dig_it_j($n, $go)
{
    $r = define_digr();
    //most_read
    if (!$r[$n]) {
        $r[$n] = $n > 365 ? round($n / 365, 2) : $n;
    }
    $nprev = time_prev($n);
    $r[$n] .= ' ' . ($n < 365 ? plurial($r[$n], 3) : plurial($r[$n], 7));
    if ($n != 1 && $n != 7) {
        $r[$n] = $r[$nprev] . ' ' . nms(36) . ' ' . $r[$n];
    }
    //from
    if ($n > 365) {
        $r[$n] = date('Y', calc_date($n));
    }
    //from
    return divs('float:right;', slctmenus_sj($r, $go, $n));
}
Example #23
0
File: pop.php Project: philum/cms
function progcode($d)
{
    $d = delbr($d, "\n");
    //$d=str_replace(array('{{','}}'),array('{ {','} }'),$d);
    $d = highlight_string('<' . '?php' . "\n" . $d . "\n" . '?' . '>', true);
    $d = str_replace(array('<span style="color: #0000BB">&lt;?<br /></span>', '<span style="color: #0000BB">?&gt;</span>', "\n</span>", "&nbsp;", '  </span>', '  '), array('', '', '</span>', ' ', '</span>', "&nbsp;&nbsp"), $d);
    return divs('overflow:auto; wrap:true; font-size:12px;', $d);
}
Example #24
0
function config_mod($mnb, $option)
{
    $rm = msql_read('users', $_SESSION['modsnod'], $mnb);
    //module
    $mod = $rm['module'];
    $bloc = $rm['block'];
    $param = $rm['param'];
    if (strpos($param, ',')) {
        $param = str_replace(', ', ",\n", $param);
        $param = ereg_replace("[\n]{2,}", "\n", $param);
    }
    $arb = msql_read('system', 'admin_modules', $mod);
    //props
    $type = $arb['category'];
    $prm = $arb['param'];
    $opt = $arb['option'];
    $com = $arb['command'];
    $com = str_replace('scroll', 'scroll scrold', $com);
    $arc = msql_read('lang', 'admin_modules', $mod);
    $fhlp = $arc['description'];
    if (strpos(prma('blocks'), $mod) !== false && $mod) {
        $type = "div";
        $fhlp = $fhlp ? $fhlp : nms(90);
        $prm = 3;
        $arb["title"] = 1;
    } elseif (!$type && $mod != 'system') {
        $type = 'user_mod';
        $fhlp = 'obsolete';
    } elseif ($mod == 'Page_titles') {
        $fhlp .= ' ' . hlpbt('breadcrumb');
    }
    if ($bloc == 'menus') {
        $type = 'menu_link';
        $fhlp = 'menu link';
    }
    if ($arc['help']) {
        $phlp = admhlp('grey', ajx($mod), 'help') . ' ';
    }
    if ($arc['option']) {
        $ohlp = admhlp('grey', ajx($mod), 'option') . ' ';
    }
    if ($arc['command']) {
        $dhlp = admhlp('grey', ajx($mod), 'command') . ' ';
    }
    //usage
    $rc = array('module' => bal('strong', $mod) . ' (' . $type . ') ' . $mnb, 'usage' => divc('small', $fhlp));
    if ($_SESSION['line'][$param]) {
        $rc["article"] = lkt('', htac('section') . $param, $param);
    } elseif ($prm == 2) {
        //wait_ID
        if (!is_numeric($param)) {
            $id = find_id($param);
        } else {
            $id = $param;
        }
        if (is_numeric($id) && $param > 3) {
            list($dy, $frm, $suj, $amg) = pecho_arts($id);
            //art
            $rc["article"] = lkt('', '/?read=' . $id, $suj);
        }
    }
    $l = 'modules_' . $bloc . '_' . $mnb;
    $rid = randid();
    $rds = array('mb', 'mm', 'mp', 'mt', 'mc', 'md', 'mo', 'mh', 'mv', 'me', 'mr', 'mi', 'mj');
    foreach ($rds as $k => $v) {
        $rvs[$v] = $v . $rid;
        $dvs .= $v . $rid . '|';
    }
    //$dvs.=;
    $sty = '" onkeypress="checkEnter(event,\'savmod\')';
    $form .= hidden('', $rvs['mm'], $mod);
    //edit
    if ($mod == "submenus") {
        require_once 'spe.php';
        $rc["edit"] = menus_h($mnb);
        if ($option) {
            $param = menu_h_g($option);
        }
    }
    if ($mod == "Banner") {
        $rc["edit"] = lkc("popbt", '/admin/banner', 'edit_banner');
    } elseif ($mod == "user_menu") {
        $rc["edit"] = jump_btns($rvs['mp'], spelinks(), ' ');
    } elseif ($mod == "app_menu") {
        $rc["edit"] = btn('console', 'button/type/process/param/option/condition/root/icon/hide/private§display[,]');
    } elseif ($mod == 'link' or $mod == "url") {
        $arr = explode('|', spelinks());
        if ($_SESSION['line']) {
            $arr += array_flip($_SESSION['line']);
        }
        $rc["edit"] = select(array('id' => 'mps', 'onchange' => 'jumpslct(\'' . $rvs['mp'] . '\',this)', 'style' => "width:90px;"), $arr, 'vv');
    } elseif ($mod == 'template') {
        $ra = msql_read('', ses('qb') . '_template', '', 1);
        if ($ra) {
            $rb = array_keys_r($ra, 1, 'k');
            $rc["edit"] = jump_btns($rvs['mp'], $rb, '');
        }
    } elseif ($mod == 'msql_links') {
        $rc["edit"] = jump_btns($rvs['mp'], 'links|rssurl|deploy', '');
    } elseif ($mod == 'connector') {
        req('art');
        $rc["edit"] = conn_edit();
        $rc["edit"] .= txarea('txtarea', $param, 50, 5, 'txtnoir" onkeyup="transvalue(\'' . $rvs['mp'] . '\')" onclick="transvalue(\'' . $rvs['mp'] . '\')"; onblur="transvalue(\'' . $rvs['mp'] . '\');');
    } elseif ($mod == 'desktop') {
        $rc["edit"] = hlpbt('desklr');
    } elseif ($mod == 'cssfonts') {
        $rc["edit"] = jump_btns($rvs['mp'], 'fontphilum|fontmicrosys|', ' ');
    } elseif ($mod == 'columns') {
        $rc["edit"] = mod_edit('', 1, $rvs['mp']);
    } elseif ($mod == 'articles') {
        $rc["edit"] = divd('amc', artmod_edit_l($rvs['mp'], '', ''));
    } elseif ($mod == "design" && prmb(5)) {
        $rc["edit"] = picto(alert) . helps('prmb5');
    }
    //param
    if ($mod == 'tab_mods' or $mod == 'MenusJ' or $mod == 'art_mod') {
        $rc["param"] = comline($param, $rvs['mp']);
    } elseif ($mod == 'app_menu') {
        $rc["param"] = appmenu($param, $rvs['mp']);
    } elseif ($mod == "submenus") {
        $rc["param"] = txarea($rvs['mp'], $param, 42, 4);
    } elseif ($prm != '0') {
        $rc["param"] = goodarea($param, $rvs['mp'], '', $j, 42);
    } else {
        $form .= hidden('', $rvs['mp'], '');
    }
    if ($mod == 'desktop') {
        $rc["edit"] = $phlp;
        $rc["param"] .= ' ' . hlpbt('desklr');
    } elseif ($rc["param"] && $mod != 'apps' && $phlp) {
        $rc["param"] .= ' ' . $phlp;
    }
    //title
    if ($prm != '1' && !$arb["title"]) {
        $rc["title"] = input(1, $rvs['mt'] . '" size="42' . $sty, $rm['title'], "");
    } else {
        $form .= hidden('', $rvs['mt'], '');
    }
    //bloc
    if ($bloc != 'system' && $bloc != 'newsletter' && $bloc != 'gsm') {
        $rc["bloc"] = select_j($rvs['mb'], 'system ' . prma('blocks'), $bloc, 1, $bloc, 0);
    } else {
        $form .= hidden('', $rvs['mb'], $bloc);
    }
    //condition
    if ($bloc != 'newsletter') {
        $rc["condition"] = select_j($rvs['mc'], '- home cat art', $rm['condition'], 3, $rm['condition'], 0) . ' ' . hlpbt('mod_cond');
    } else {
        $form .= hidden('', $rvs['mc'], '');
    }
    //command
    if ($com) {
        $rc["command"] = select_j($rvs['md'], '- ' . ajx($com), $rm['command'], 1, $rm['command'], 0) . ' ' . $dhlp;
    } else {
        $form .= hidden('', $rvs['md'], '');
    }
    //option
    if ($opt != '0') {
        $rc["option"] = select_j($rvs['mo'], '-|' . $opt, $rm['option'], 3, $rm['option'], 0) . ' ';
        if ($mod == 'LOAD') {
            $rc["option"] .= hlpbt('art_render');
        } else {
            $rc['option'] .= $ohlp;
        }
    } else {
        $form .= hidden('', $rvs['mo'], '');
    }
    //template
    if ($arb["template"]) {
        $ara = msql_read('', ses('qb') . '_template', '', 1);
        if ($ara) {
            $tmp = implode(' ', array_keys($ara));
        }
        $rc["template"] = select_j($rvs['me'], '- ' . ajx($tmp), $rm['template'], 1, $rm['template'], 0);
    } else {
        $form .= hidden('', $rvs['me'], '');
    }
    //cache
    if ($arb["cacheable"]) {
        $rc["cache"] = checkbox_j($rvs['mh'], $rm['cache'], '');
    } else {
        $form .= hidden('', $rvs['mh'], '');
    }
    $rc["hide"] = checkbox_j($rvs['mv'], $rm['hide'], '');
    //hide
    if ($arb["nobr"] != '0') {
        $rc["nobr"] = checkbox_j($rvs['mr'], $rm['nobr'], '');
    } else {
        $form .= hidden('', $rvs['mr'], '');
    }
    if ($arb["div"] != '0') {
        $rc["div"] = checkbox_j($rvs['mi'], $rm['div'], '');
    } else {
        $form .= hidden('', $rvs['mi'], '');
    }
    if ($arb["ajax button"] != '0') {
        $rc["ajax button"] = checkbox_j($rvs['mj'], $rm['js'], '');
    } else {
        $form .= hidden('', $rvs['mj'], '');
    }
    //script
    if ($type != 'system') {
        $oks = lj('popbt', 'popup_modsee__3_' . $mnb . '_1', 'script') . hlpbt('comline') . ' ';
        $oks .= lj('popbt', 'popup_modsee__3_' . $mnb, nms(65)) . ' ';
    }
    //if($mod=='LOAD')$rc["edit"]=fast_sets('load');
    //render
    $bt .= ljb("popdel", "SaveR", $l . '_del\',\'' . $dvs, nms(43)) . ' ';
    $bt .= ljb('popbt', "SaveR", $l . '_new\',\'' . $dvs, nms(44)) . ' ';
    $bt .= ljb('popbt', "SaveR", $l . '_savb\',\'' . $dvs, nms(66)) . ' ';
    $bt .= ljb('popsav', "SaveR", $l . '_sav\',\'' . $dvs, nms(57)) . ' ';
    //master_config
    $ret .= '<form id="savmod" action="javascript:SaveR(\'' . $l . '_sav\',\'' . $dvs . '\')">' . $form;
    $ret .= on2cols($rc, 470, 5);
    $ret .= '</form>';
    $ret .= divs('', $bt . $oks);
    return $ret;
}
Example #25
0
File: mod.php Project: philum/cms
function build_art_mod($in)
{
    $ra = rartmod();
    list($m, $p, $t, $c, $d, $o, $ch, $hd, $tp, $nbr) = $ra;
    //$o=$o?$o:140;
    $ret = art_mod(ajx($p, 1), $d, $o);
    if (trim(strip_tags($ret))) {
        if ($t) {
            $reb = divc('txtcadr', stripslashes($t));
        }
        $ret = $reb . $ret . ($nbr ? br() : '');
    }
    //
    $_SESSION['cur_div'] = 'content';
    if ($in) {
        return divb('right|artmod|width:' . $o . 'px; margin-left:10px;', $ret);
    } else {
        return divs('width:100%', $ret);
    }
}
Example #26
0

$sorgulama = @mysql_query("Select * from anketor order by id DESC Limit $b,10");
$sql2 = @mysql_query("Select * from anketor order by id DESC");


$top = mysql_num_rows($sql2); 
echo "<center><br>$top adet anket - sayfalar:<br>";
function divs($int,$n){
if(is_float($int/$n)) { $roun = ceil($int/$n); return $roun; }
else{ return $int/$n;}
}
if($top!=0) { 
if($p-1<0) { $onceki = 0; }else {$onceki = 1; }
if(!$p-1<0) { echo @"<a href=\"sozluk.php?process=anketgoster&p=".($p-$onceki)."#bas\"><img src=\"images/onceki.gif\" height=\"13\" width=\"15\" border=\"0\"></a> "; }
for ($s = 0; $s < divs($top,$n); $s++) {

if($p+1>$s) { $sonraki = 0; }else {$sonraki = 1; }

if($p==$s) { 
echo @"<b><a href=\"sozluk.php?process=anketgoster&p=$s#bas\">[".($s+1)."]</a></b> ";}else{ echo @"<a  href=\"sozluk.php?process=anketgoster&p=$s#bas\">".($s+1)."</a> "; } }
if($p+1==$s) { }else{ echo @"<a href=\"sozluk.php?process=anketgoster&p=".($p+$sonraki)."#bas\"><img src=\"images/sonraki.gif\" height=\"13\" width=\"15\" border=\"0\"></a>"; }

echo "<br><br></center>";


while($kayit=mysql_fetch_array($sorgulama)) {

$zirve=$kayit["zirve"];
$detay=$kayit["detay"];
$organizator=$kayit["organizator"];
Example #27
0
function mktable_empty($r)
{
    //p($r);
    $n = max(array_keys($r));
    ksort($r);
    for ($i = 1; $i <= $n; $i++) {
        if (is_array($r[$i])) {
            $nb = max(array_keys($r[$i]));
            $td = '';
            ksort($r[$i]);
            for ($o = 1; $o <= $nb; $o++) {
                $td .= balc('td', '', $r[$i][$o]);
            }
            $tr .= balc('tr', '', $td);
        }
    }
    $ret = balc('table', '', $tr);
    return divs('width:100%; overflow:auto; height:auto;', $ret);
}
Example #28
0
File: ajax.php Project: philum/cms
     //ajx()
     reqp('tracks');
     $ret = save_track($id, $va, $opt, $optb);
     break;
 case "trkpreview":
     req('pop,spe,art,tri');
     $t = nms(65);
     $s = 550;
     $msg = miniconn(del_n($id), 2, 'test');
     $ret = divc('track', correct_txt($msg, '', 'sconn'));
     break;
 case "trckpop":
     req('pop,spe,art,tri');
     $_SESSION['read'] = $id;
     $t = 'Tracks';
     $ret = divs('width:550px;', output_trk(read_idy($id, "DESC")));
     break;
 case "trkedit":
     req('pop,spe,art,tri');
     if ($va) {
         $ret = plugin_func('tracks', 'trk_redit_sav', $id, $va);
     } else {
         $ret = plugin_func('tracks', 'trk_redit', $id, $va);
         $t = 'reedit';
     }
     break;
     //conn
 //conn
 case "conn":
     req('pop,spe,art,tri,mod');
     $ret = format_txt_r($id, $va, $opt);
Example #29
-1
function plug_editor($reset = '')
{
    secure_inputs();
    if ($_SESSION["dev"] == "dev" or $_SESSION["dev"] == "lab") {
        $g = "b";
    }
    req('pop,spe,art,tri');
    Head::add('csscode', '.tabc{border:1px dotted grey;padding:10px;min-height:25px;width:550px;}');
    Head::add('jscode', '
function SaveIcpb(){//convert
	var opt=document.getElementById("txtareb").innerHTML;
	document.getElementById("txt").value=opt;
	SaveJ("txtarea_convhtml_txtareb_4");
	toggle_tab(\'tab-1\',2);}
function editab(p){
	var act=document.getElementById("edt").className;
	if(act=="txtx" || p==1){var arr=[true,"on","txtred",""];}
	else{var arr=[false,"off","txtx","none"];}
	document.getElementById("txtareb").contentEditable=arr[0];
	document.getElementById("txtareb").designMode="arr[1]"; void 0;
	document.getElementById("txtareb").focus;
	document.getElementById("edt").className=arr[2];
	document.getElementById("edtc").style.display=arr[3];}
');
    //Head::add('rel',array('shortcut icon',uicon('copy_16','edit2','/')));
    $out["head"] .= div(atd('popup') . ats('position:fixed;'), '');
    $out["head"] .= hidden('', 'socket', '');
    if ($_GET['switch_defcon']) {
        $_SESSION['rstr'][18] = $_SESSION['rstr'][18] == 0 ? 1 : 0;
    }
    $basedefs = $_SESSION['rstr'][18] == 0 ? 'public' : $_SESSION['qb'];
    if ($reset == 'reset_cache') {
        $_SESSION['vacuum'] = '';
    }
    ####
    if ($_GET["urlsrc"]) {
        $urlsrc = $_GET["urlsrc"];
        $_GET["urlsrc"] = $urlsrc = strdeb($urlsrc, '?utm_source');
        $urlsrc = str_replace("\$", "?", $urlsrc);
        foreach ($_GET as $k => $v) {
            if ($k == "rssurl") {
                $urlsrc = $v;
            } elseif ($k != 'urlsrc') {
                $urlsrc .= '&' . $k . '=' . $v;
            }
        }
    }
    if ($_POST["urlsrc"]) {
        $urlsrc = $_POST["urlsrc"];
        // && $_POST["txt"]==""
        $_POST["urlsrc"] = $urlsrc = strdeb($urlsrc, '?utm_source');
    }
    if ($_POST["suj"]) {
        $title = $_POST["suj"];
    }
    if (strpos($urlsrc, "http") === false && $urlsrc) {
        $urlsrc = 'http://' . $urlsrc;
    }
    if ($urlsrc && $_POST["txt"] == "") {
        list($title, $reb, $ret, $defid, $defs) = vacuum($urlsrc, "");
    }
    //echo txarea('',$ret,20,4);
    ####
    //see h-number in html(mnu)
    $tabnam = 'tbmdtab-1';
    if ($_POST["urlsrc"] or $_POST["txt"] or $_POST["txb"]) {
        $_SESSION[$tabnam] = '2';
        $npb = $_SESSION['npnb'];
    } elseif ($_POST["urlsrc"] && !$_POST["txt"]) {
        $_SESSION[$tabnam] = '1';
    }
    //else $_SESSION[$tabnam]='0';//current_tab
    if ($_POST["txt"]) {
        $ret = stripslashes($_POST['txt']);
    }
    //html
    if ($_POST["txb"]) {
        $reb = stripslashes($_POST['txb']);
    }
    //conn
    if ($_POST["title"]) {
        $title = stripslashes($_POST['title']);
    }
    if ($_POST["convent"]) {
        $ret = html_entity_decode($ret);
    }
    if ($_POST["convutf"]) {
        $ret = utf8_decode($ret);
    }
    if ($_POST["convurl"]) {
        $ret = urldecode($ret);
    }
    if ($_POST["urlencode"]) {
        $ret = urlencode($ret);
    }
    if ($_POST["table2array"]) {
        $reb = plugin_func('table2array', 'table2array_build', $reb);
    }
    if ($ret && !$reb) {
        //if(!strpos($ret,'<br />') && strpos($ret,"\r"))$ret=nl2br($ret);
        $reb = converthtml($ret);
        //htmlentities //htmlspecialchars
        $reb = html_entity_decode_b($reb);
        $reb = html_entity_decode($reb);
        $reb = convertmail($reb);
        $reb = embed_links($reb);
    } elseif (!$ret) {
        $ret = format_txt(stripslashes($reb), 0, "");
    }
    //if(!$ret)
    $ree = clean_br($ret);
    #edit
    //transformers
    if ($_POST['repla']) {
        if ($_POST['rec_prg']) {
            $reb = ereg_replace(stripslashes($_POST['repla']), stripslashes($_POST['replb']), $reb);
        } else {
            $reb = str_replace(stripslashes($_POST['repla']), stripslashes($_POST['replb']), $reb);
        }
    }
    if ($_POST['del_tab']) {
        $reb = del_tables($reb);
    }
    //if($_POST['conn_to_del']){$reb=correct_txt($reb,$_POST['conn_to_del'],'correct');
    //	$reb=str_replace(array("¬","|"),"",$reb); $reb=clean_br($reb);}
    if ($_POST['del_n'] == "ok") {
        $reb = del_n($reb);
    }
    if ($_POST['clean_mail']) {
        $reb = convertmail($reb);
    }
    if ($_POST["clean_punct"]) {
        $reb = clean_punct($reb);
    }
    if ($_POST["add_punct"] == "ok") {
        $reb = add_lines($reb);
    }
    if ($_POST['clean_br'] or $urlsrc) {
        $reb = clean_br($reb);
    }
    /*----------------------*/
    //import
    if ($_SESSION["dev"]) {
        $dv = ' ' . btn('txtsmall', $_SESSION["dev"]);
    }
    $out['head'] .= lkc("txtx", "/plug/editor", picto('editxt', 16) . $dv) . ' ';
    //'&#8362;'
    //defcons
    if (!$defid) {
        $defid = str_replace(array('http://', 'www.'), '', $urlsrc);
        $defid = substr($defid, 0, strpos($defid, '/'));
    }
    $defcon .= msqlink('users', $basedefs . '_defcons');
    if ($_SESSION['rstr'][18] == 1 && $_SESSION['auth'] > 4) {
        $defcon .= lkc("txtblc", '?switch_defcon==', "switch") . ' ';
        $defcon .= lkt("txtblc", '/msql/users/' . $basedefs . '_defcons&append=users/public_defcons', "herit_from_public") . ' ';
        $defcon .= lkt("txtblc", '/msql/users/public_defcons&append=users/' . $_SESSION["qb"] . '_defcons', "inform_public") . ' ';
    } else {
        $defcon .= btn('txtsmall', 'public_defcons') . ' ';
    }
    if ($defid) {
        $defcon .= lj("txtred", 'popup_editmsql___users/' . $basedefs . '*defcons_' . $defid, "edit");
    }
    $otab['html'] .= '<form id="form1" name="coded" method="post" action="/plug/editor">';
    $otab['html'] .= ljb('txtbox', 'document.coded.txt.select()', '', '::');
    $otab['html'] .= submitj('txtbox', 'codeb', 'convert') . ' ';
    $otab['html'] .= input2("text", "urlsrc", $urlsrc, '" size="36') . ' ';
    if ($urlsrc) {
        $otab['html'] .= lkt('txtx', $urlsrc, 'go') . ' ';
    }
    $otab['html'] .= br();
    $otab['html'] .= '<textarea name="txt" id="txt" class="console" rows="21" cols="61">' . $ret . '</textarea>' . br();
    //htmlentities
    $otab['html'] .= $defcon . ' ';
    $otab['html'] .= checkbox("objects", "ok", "objects", 0) . ' ';
    //$otab['html'].=checkbox("jump","ok","not_convert",0).br();
    $otab['html'] .= checkbox("nobr", "ok", "br", 0);
    $otab['html'] .= checkbox("convent", "ok", "entities", 0) . ' ';
    $otab['html'] .= checkbox("convutf", "ok", "utf8", 0) . ' ';
    $otab['html'] .= checkbox("convurl", "ok", "url", 0) . ' ';
    $otab['html'] .= checkbox("see", "ok", "show_work", 0) . br();
    $otab['html'] .= lkt("txtblc", "/plug/converts", "conversions") . ' ';
    $otab['html'] .= lkt("txtblc", "/plug/pad", "notepad") . ' ';
    $otab['html'] .= lkt("txtblc", "/plug/ifram", "iframe") . ' ';
    $otab['html'] .= lkc('txtblc', '/plug/editor/reset_cache', 'reset_cache') . ' ';
    $otab['html'] .= '</form>';
    //notepad
    if ($_SESSION['USE']) {
        $otab['connectors'] .= divs('position:absolute; right:0; top:0;', plugin('txt', $npb, 1));
    }
    $otab['connectors'] .= btn('txtit', $title);
    $otab['connectors'] .= '<form name="converted" method="post" action="">';
    $otab['connectors'] .= ljb('txtbox', 'document.converted.txb.select()', '', '::');
    $otab['connectors'] .= submitj('txtbox', 'converted', 'modif') . ' ';
    $otab["connectors"] .= div('', conn_correct($reb));
    //local_reparation
    $otab['connectors'] .= div(ats('width:630px;'), conn_edit(""));
    $otab['connectors'] .= input(0, 'title', $title, '');
    $otab['connectors'] .= '<textarea name="txb" id="txtarea" class="tab" rows="16" cols="68" wrap="VIRTUAL" onselect="storeCaret(this);" onclick="storeCaret(this);" onkeyup="storeCaret(this);" ondblclick="storeCaret(this);" onChange="clip.setText(this.value)">' . $reb . '</textarea><br>';
    $otab['connectors'] .= '<div class="txtsmall2">';
    $otab['connectors'] .= $defcon . ' ';
    $otab['connectors'] .= checkbox("clean_mail", "ok", "clean_mail", 0) . ' ';
    $otab['connectors'] .= checkbox("clean_br", "ok", "clean_br", 0) . ' ';
    $otab['connectors'] .= checkbox("del_n", "ok", "del_nl", 0) . ' ';
    $otab['connectors'] .= checkbox("add_punct", "ok", "add_nl", 0) . ' ';
    $otab['connectors'] .= checkbox("clean_punct", "ok", "typo_rules", 0) . ' ';
    $otab['connectors'] .= checkbox("del_tab", "ok", "del_tables", 0) . ' ';
    $otab['connectors'] .= checkbox("table2array", "ok", "table2array", 0) . ' ';
    //$otab['connectors'].='<label>delete:</label>'.balise("select",array(2=>"conn_to_del",5=>"txtblc"),batch_defil_kv(connectors_reference_lite(),"","vv")).' ';
    $otab['connectors'] .= '</div>';
    $otab['connectors'] .= divc('txtsmall2', 'replace by:') . '' . txarea("repla", $_POST['repla'], 15, 1) . ' ' . txarea("replb", $_POST['replb'], 15, 1) . ' ' . checkbox("rec_prg", "ok", "preg", 0);
    $otab['connectors'] .= '</form>';
    $otab['connectors'] .= lkt("txtblc", "/plug/converts", "converts") . ' ';
    $otab['connectors'] .= lkt("txtblc", "/plug/pad", "notepad") . ' ';
    $otab['connectors'] .= lkt("txtblc", "/plug/buildtable", "buildtable") . ' ';
    //wysiwyg
    //if($title)$otab["render"].=btn("txtit",$title).br();
    $otab['render'] .= btd('bts', ljb('txtbox', 'SaveIcpb()', '', 'convert')) . ' ';
    $otab['render'] .= ljb('txtx" id="edt', 'editab(0)', '', 'editable') . ' ';
    $otab['render'] .= txareacb($ree, 'tabc panel justy');
    $otab['render'] .= btd('bts', ljb('txtbox', 'SaveIcpb()', '', 'convert')) . ' ';
    $otab['render'] .= ljb('txtx" id="edt', 'editab(0)', '', 'editable') . ' ';
    $otab['render'] .= divd('popup', '') . "\n";
    $otab['render'] .= divd('popw', '') . "\n";
    $otab['render'] .= hidden('', 'socket', '');
    $out["end"] .= '</body>' . "\n" . '</html>';
    return implode("", $out) . make_tabs($otab);
}
Example #30
-1
File: meta.php Project: philum/cms
function meta_all($id, $prw)
{
    $r['tag'] = 'tag';
    $bt = lj('', $id . '_artin___' . $id . '_' . $prw, picto('valid')) . ' ';
    $re = sql('re', 'qda', 'v', 'id=' . $id);
    $bt .= btd('rdbt' . $id, prior_edit($re, $id)) . ' ';
    //priority
    $ica = explode(' ', prmb(18));
    $ico = explode(' ', prmb(19));
    $r += array_combine($ica, $ico);
    foreach ($r as $cat => $ico) {
        if ($cat) {
            $ret .= editag($id, $cat, $ico);
        }
    }
    $bt .= ljb('', 'SaveJc', implode(';', $_POST['opall']), picto('down')) . br();
    //$arl=explode(' ',prmb(26)); $lang=sql('msg','qdd','v','ib="'.$id.'" and val="lang"');
    //$ret.=radiobtj($arl,$lang,'lang'.$id);
    return divs('min-width:340px;', $bt . $ret);
}