Exemple #1
0
function microxform()
{
    $j = 'tickets_plug___tickets_tickets*j_' . ses('qb') . '__tckmsg|tckansw';
    $t .= lj('popbt', $j, nms(28)) . ' ';
    $t .= balise('input', array(1 => 'text', 3 => "tckansw", 23 => nms(91), 6 => 4, 7 => 4), '') . br();
    $t .= balise('textarea', array(3 => "tckmsg", 7 => 1000, 9 => 61, 10 => 7), '');
    return form('', $t);
}
Exemple #2
0
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);
}
Exemple #3
0
function plug_login($p)
{
    req('pop');
    //return loged_j($_SESSION["USE"],$_SESSION["iq"],$t,10);
    $w = '.' . $_SERVER['HTTP_HOST'];
    $in .= divc('popbt', helps('new_user')) . br();
    $in .= balise("input", array(1 => "text", 2 => "user", 3 => "lgg", 8 => "log_finger('lgg');"), "") . ' ';
    if ($_SESSION["prmb"][11] > 5) {
        $in .= balise("label", array("for" => 'login', 6 => 15), $w) . br();
    } else {
        $in .= btn('" id="valid', nms(135)) . br() . br();
    }
    $in .= balise("input", array(1 => "text", 2 => "pass"), "") . ' ';
    $in .= balise("label", array("for" => 'pass', 6 => 15), nms(137)) . br() . br();
    $in .= balise("input", array(1 => "text", 2 => "mail"), "") . ' ';
    $in .= balise("label", array("for" => 'mail', 6 => 15), nms(136)) . br() . br();
    $in .= submitj('txtx', "login", nms(57));
    return '<form id="login" method="post" action="" onKeyPress="checkEnter(event,\'login\')">' . $in . ' </form>';
}
Exemple #4
0
function make_form_b($arr, $goto)
{
    if ($_GET["kill"]) {
        $r = array("from" => $_GET["kill"], "dest" => $_GET["dest"], "suj" => $_GET["suj"]);
    }
    foreach ($arr as $k => $v) {
        if ($v == "text") {
            $ret .= balise("input", array(1 => $v, 2 => $k, 3 => $k, 4 => $r[$k], 5 => "txtblc", 6 => 44, 7 => 255), "");
        }
        if ($v == "textarea") {
            $ret .= balise($v, array(2 => $k, 3 => $k, 5 => "txtblc", 9 => 64, 10 => 10), $k);
        }
        if ($v == "submit") {
            $ret .= input2($v, $v, $k, "txtblc");
        }
        if ($v != "submit") {
            $ret .= balise("label", array("for" => $k), $k) . br();
        }
    }
    return form("", $ret);
}
Exemple #5
0
function troc_edit($id, $rid)
{
    if ($id) {
        $ra = sql('*', 'obj', 'a', 'id="' . $id . '"');
    }
    //pr($ra);
    //list($id,$usr,$obj,$txt,$type,$img,$state,$day)=$ra; //$id=$ra['id'];
    //nom
    $ret = divc('row', btn('txtx', 'Désignation') . input(1, 'objet', $ra['obj'])) . br();
    //type
    $ret .= divc('row', btn('txtx', 'Type de transaction') . select_j('type', 'pfunc', $ra['type'], 'troc/troc_transtype', $ra['type'], '0')) . br();
    //state
    //$ret.=divc('row',checkbox_j('state',$ra['state'],'Ouvert / Fermé','Etat','txtx')).br();
    $ret .= hidden('', 'state', 1);
    //description
    //$ret.=btn('txtx','Description');
    $ret .= divc('row', divedit('cntdescrpt', 'track', 'min-height:18px; width:400px;', $j, $ra['txt'])) . br();
    //props
    $r = sql('id,prop,attr', 'prop', 'kvv', 'ib="' . $id . '"');
    //p($r);
    if ($r) {
        foreach ($r as $k => $v) {
            $ky[] = 'k' . $k;
            $del = '';
            $del = lj('popdel', $rid . '_plug___troc_troc*prop*del_' . $k . '-' . $id . '_' . $rid, pictit('sclose', 'Supprimer'));
            $j = $v[0] == 'valeur' ? 'num_finger(' . $k . ',5);' : '';
            $bal = balise('input', array(1 => 'text', 3 => 'k' . $k, 4 => $v[1], 21 => $j), '');
            $ret .= divd('', $bal . btn('txtx', $v[0]) . $del) . br();
        }
    }
    //add_prop
    $ret .= select_j('propadd', 'pfuncb', '', 'troc/troc_prop_attributs/' . $id, '', '0') . ' ';
    $ret .= lj('popbt', $rid . '_plug___troc_troc*prop*add_' . $id . '_' . $rid . '_propadd', pictxt('add', 'Ajouter un Attribut'));
    //sav
    if ($ky) {
        $kys = implode('|', $ky);
    }
    $ret .= br() . br();
    //.hr().br();
    if ($id) {
        $ret .= divc('right', lj('popbt', $rid . '_plug___troc_troc*objects', pictxt('left', 'Retour à la liste')) . ' ' . lj('popsav', $rid . '_plug___troc_troc*sav_' . $id . '_' . $rid . '_objet|type|state|cntdescrpt|' . $kys, pictxt('save', 'Enregistrer')) . ' ' . lj('popdel', $rid . '_plug___troc_troc*del_' . $id . '_' . $rid, pictxt('del', 'Supprimer')) . ' ' . lj('popbt', $rid . '_plug___troc_troc*edit_' . $id . '_' . $rid, pictxt('reload', 'Rafraîchir')));
    }
    return divc('form', $ret);
}
Exemple #6
0
function plug_clock($p, $o)
{
    clock_head();
    $ret = balise('div', array('id' => 'clock'), '');
    //landmarkSub
    for ($i = 0; $i < 60; $i++) {
        $landmarkSub = balise('div', array('id' => 'landmarkSub'), '');
        $ret .= balise('div', array('id' => 'landmarkFrame', 'style' => 'transform: rotate(' . $i * 6 . 'deg);'), $landmarkSub);
    }
    //landmark
    for ($i = 0; $i < 12; $i++) {
        $landmark = balise('div', array('id' => 'landmark'), '');
        $ret .= balise('div', array('id' => 'landmarkFrame', 'style' => 'transform: rotate(' . $i * 30 . 'deg);'), $landmark);
        $hour = balise('div', array('id' => 'landmarkText', 'style' => 'transform: rotate(-' . $i * 30 . 'deg);'), $i ? $i : 12);
        $ret .= balise('div', array('id' => 'landmarkTextFrame', 'style' => 'transform: rotate(' . $i * 30 . 'deg) translate(0px, 0px);'), $hour);
    }
    $needleMin = balise('div', array('id' => 'needleHour'), ' ');
    $ret .= balise('div', array('id' => 'needleHourFrame'), $needleMin);
    $needleMin = balise('div', array('id' => 'needleMin'), ' ');
    $ret .= balise('div', array('id' => 'needleMinFrame'), $needleMin);
    $needleSec = balise('div', array('id' => 'needleSec'), ' ');
    $ret .= balise('div', array('id' => 'needleSecFrame'), $needleSec);
    $ret .= balise('div', array('id' => 'clockCenter'), '');
    $ret .= balise('div', array('id' => 'digit'), '');
    $ret .= js_code('clock();');
    $ret = balise('div', array('id' => 'clockFrame'), $ret);
    return $ret;
}
Exemple #7
0
function make_form($d, $div, $jx)
{
    $prod = explode(",", $d);
    $n = count($prod);
    for ($i = 0; $i < $n; $i++) {
        list($val, $type) = explode("=", $prod[$i]);
        $vb = normalize($val);
        if ($type == 'check') {
            $chk = 'chk' . $ia++;
            $hn[] = $chk;
        } elseif ($type != 'button') {
            $hn[] = $vb;
        }
        switch ($type) {
            case 'text':
                $ret .= txarea('" id="' . $vb, '', 44, 8);
                break;
            case 'check':
                $ret .= checkbox($chk, 'no', '', '');
                break;
            case 'hidden':
                $ret .= hidden('', $vb, $val);
                break;
            case 'uniqid':
                $ret .= hidden('', $vb, ses('iq'));
                break;
            case 'hidden':
                $ret .= balise("input", array(1 => $type, 3 => $vb, 4 => $val), '');
                break;
            case 'list':
                //$ret.=balise("select",array(3=>$vb),batch_defil(array_flip(explode("/",$val))));
                $ret .= select(atd($vb), explode('/', $val), 'vv');
                break;
            case 'radio':
                $rb = explode("/", $val);
                $ret .= radiobtn($rb, $vb, $val) . br();
                break;
            case 'date':
                $ret .= hidden('', $vb, mkday('', 'ymd.his'));
                break;
            case 'upload':
                $ret .= balise('input', array(1 => 'text', 3 => $vb, 4 => 'url'), '');
                break;
            case 'button':
                $btn = $val;
                break;
            case 'mail':
                $ret .= balise('input', array(1 => 'text', 3 => $vb, 6 => 20, 23 => $val, 21 => 'num_mail(\'' . $vb . '\');'), '');
                break;
            default:
                $ret .= autoclic($val . '" id="' . $vb, '', 20, 255, '');
                break;
        }
        if ($type != 'button' && $type != 'date' && $type != 'hidden' && $type != 'uniqid' && $type != 'radio') {
            $ret .= ' ' . label($vb, 'txtsmall2', '', $val) . br();
        }
    }
    $ret .= lj("popsav", $div . $jx . implode('|', $hn), $btn ? $btn : picto('right'));
    return divd($div, $ret);
}
Exemple #8
0
function twit_read($q)
{
    $r = twit_datas($q);
    $ret = $r['from'] . ' ' . $r['date'] . ' ' . $r['reply_url'] . ' ' . $r['favs'];
    $ret .= divc('track', twit_embed_url($r['text']));
    $ret .= $r['img'];
    return balise('section', atd($q['id']), $ret);
}
Exemple #9
0
function art_options($id)
{
    $r = $_SESSION['art_options'];
    $arl = explode(' ', prmb(26));
    $rdata = sql('val,msg', 'qdd', 'kv', 'ib="' . $id . '"');
    if ($r) {
        foreach ($r as $k => $v) {
            $val = $rdata[$v];
            $hlp = '';
            if ($v == 'folder') {
                $ret .= picto('virtual') . lj('poph', 'popup_addfolder___' . $id, nms(73)) . ' ';
            }
            if ($v == 'related') {
                $ret .= pictxt('articles') . btn('poph', nms(138));
                $hlp = hlpbt('meta_related');
            }
            if ($v == 'agenda') {
                $ret .= pictxt('localize') . btn('poph', 'Agenda');
                //$hlp=togbub('plug','calendar_calendar*build__'.$v.$id,picto('time'));
                $hlp = lj('', 'popup_plup___calendar_calendar*build__' . $v . $id, picto('time'));
            } elseif ($v == 'lang') {
                $ret .= picto('global');
            } elseif ($v == 'template') {
                $ret .= pictxt('conn', $v);
            }
            if ($v == 'authlevel') {
                $ret .= btn('popbt', $v . ' ' . menuderj_prep('all|1|2|3|4|5|6|7|8', $v . $id, $val, '1')) . ' ';
            } elseif ($v == 'template') {
                $val = $val ? $val : ' ';
                $tmpub = msql_read('', 'public_template', $tpl, 1);
                $tmprv = msql_read('', $_SESSION['qb'] . '_template', $tpl, 1);
                $arr = array_merge_b($tmpub, $tmprv);
                $arr[' '] = array('' => 1);
                $ret .= btn('popbt', $v . ' ' . menuderj_prep(implode('|', array_keys($arr)), $v . $id, $val ? trim($val) : $v, '1')) . ' ';
            } elseif ($v == 'tracks') {
                if (rstr(1) && !$val or $val == 'true') {
                    $chk = 1;
                } else {
                    $chk = 0;
                }
                $ret .= btn('popbt', $v . ' ' . checkbox_j($v . $id, $chk));
            } elseif ($v == '2cols') {
                if (rstr(17) && !$val or $val == 'true') {
                    $chk = 1;
                } else {
                    $chk = 0;
                }
                $ret .= btn('popbt', $v . ' ' . checkbox_j($v . $id, $chk));
            } elseif ($v == 'fav') {
                if (rstr(52) && !$val or $val == 'true') {
                    $chk = 1;
                } else {
                    $chk = 0;
                }
                $ret .= btn('popbt', $v . ' ' . checkbox_j($v . $id, $chk));
            } elseif ($v == 'like') {
                if (rstr(90) && !$val or $val == 'true') {
                    $chk = 1;
                } else {
                    $chk = 0;
                }
                $ret .= btn('popbt', $v . ' ' . checkbox_j($v . $id, $chk));
            } elseif ($v == 'poll') {
                if (rstr(91) && !$val or $val == 'true') {
                    $chk = 1;
                } else {
                    $chk = 0;
                }
                $ret .= btn('popbt', $v . ' ' . checkbox_j($v . $id, $chk));
            } elseif ($v == 'lang') {
                if ($arl) {
                    foreach ($arl as $va) {
                        //$rl[$va]=$rdata['lang'.$va];
                        if ($val && $va != $val or !$val && $va != prmb(25)) {
                            $ret .= lj('txtsmall2', $v . $va . $id . '_autolang__4_' . $id . '_' . $va, $va);
                            $ret .= input(1, $v . $va . $id, $rdata['lang' . $va], '" size="4');
                        } else {
                            $ret .= hidden('', $v . $va . $id, '');
                        }
                    }
                    $ret .= hlpbt('meta_lang');
                    $lang = $rdata['lang'];
                    //lang
                    $ret .= langslct($arl, $lang, 'lang' . $id);
                } else {
                    $ret .= hidden('', $v . $id, '');
                }
                $ret .= br();
            } else {
                $ret .= ljb('poph', 'jumpvalue', $v . $id . '_ ', 'x') . ' ' . balise('input', array(1 => 'text', 3 => $v . $id, 4 => $val, 5 => '', 6 => '14', 7 => '255', 'autocomplete' => 'off'), '') . $hlp . br();
            }
        }
    }
    return $ret;
}
Exemple #10
0
function make_form($r, $go)
{
    foreach ($r as $k => $v) {
        if ($v == "text" or $v == "password") {
            $ret .= balise("input", 'type="' . $v . '" name="' . $k . '" id="' . $k . '" value="' . $k . '" size="44" maxlenght="255"', "");
        }
        if ($v == "node") {
            $ret .= balise("input", 'type="' . $v . '" name="' . $k . '" id="' . $k . '" value="pub" size="5" maxlenght="5"', "");
        }
        if ($v == "textarea") {
            $ret .= balise($v, 'name="' . $k . '" id="' . $k . '" cols="64" rows="10"', $k);
        }
        if ($v == "submit") {
            $ret .= br() . balise("input", 'type="' . $v . '" name="' . $k . '" id="' . $k . '" value="' . $k . '"', "");
        }
        if ($v != "submit") {
            $ret .= balise("label", 'for="' . $k . '"', $k) . br();
        }
    }
    return balise("form", 'name="form" method="post" action="' . $go . '"', $ret);
}
Exemple #11
0
function art_options($id)
{
    $r = $_SESSION["art_options"];
    $arl = explode(' ', prmb(26));
    $rdata = sql('val,msg', 'qdd', 'kv', 'ib="' . $id . '"');
    if ($r) {
        foreach ($r as $k => $v) {
            $val = $rdata[$v];
            $hlp = '';
            if ($v == 'folder') {
                $j = 'popup_addfolder___' . $id;
            } else {
                $j = '';
            }
            if ($j) {
                $ret .= picto('virtual') . lj('poph', $j, $v) . ' ';
            }
            if ($v == 'related') {
                $picto = 'articles';
                $hlp = hlpbt('meta_related');
            } elseif ($v == 'lang') {
                $picto = 'global';
            } elseif ($v == 'template') {
                $picto = 'conn';
            } else {
                $picto = 'file';
            }
            if (!$j) {
                $ret .= picto($picto) . btn('poph', $v) . ' ';
            }
            if ($v == 'authlevel') {
                $ret .= menuderj_prep('all|1|2|3|4|5|6|7|8', $v . $id, $val, '1') . ' ';
            } elseif ($v == "template") {
                $val = $val ? $val : " ";
                $tmpub = msql_read('', 'public_template', $tpl, 1);
                $tmprv = msql_read('', $_SESSION['qb'] . '_template', $tpl, 1);
                $arr = array_merge_b($tmpub, $tmprv);
                $arr[" "] = array("" => 1);
                $ret .= menuderj_prep(implode('|', array_keys($arr)), $v . $id, $val ? trim($val) : $v, '1') . ' ';
            } elseif ($v == "tracks") {
                if (rstr(1) && $val == "" or $val == 'true') {
                    $chk = 1;
                } else {
                    $chk = 0;
                }
                $ret .= checkbox_j($v . $id, $chk) . ' ';
            } elseif ($v == "2cols") {
                if (rstr(17) && $val == "" or $val == 'true') {
                    $chk = 1;
                } else {
                    $chk = 0;
                }
                $ret .= checkbox_j($v . $id, $chk);
            } elseif ($v == "lang") {
                if ($arl) {
                    foreach ($arl as $va) {
                        //$rl[$va]=$rdata['lang'.$va];
                        if ($val && $va != $val or !$val && $va != prmb(25)) {
                            $ret .= lj('txtsmall2', $v . $va . $id . '_autolang__4_' . $id . '_' . $va, $va);
                            $ret .= input(1, $v . $va . $id, $rdata['lang' . $va], '" size="4');
                        } else {
                            $ret .= hidden('', $v . $va . $id, '');
                        }
                    }
                    $ret .= hlpbt('meta_lang');
                    $lang = $rdata['lang'];
                    //lang
                    //$ret.=select_j('lang'.$id,'lang',$lang,1,$lang,0);
                    $ret .= radiobtj($arl, $lang, 'lang' . $id);
                } else {
                    $ret .= hidden('', $v . $id, '');
                }
                $ret .= br();
            } else {
                $ret .= ljb('poph', 'jumpvalue', $v . $id . '_ ', 'x') . ' ' . balise('input', array(1 => 'text', 3 => $v . $id, 4 => $val, 5 => '', 6 => '14', 7 => '255', 'autocomplete' => 'off'), '') . $hlp . br();
            }
        }
    }
    return $ret;
}
Exemple #12
0
function plug_uclock($p, $o)
{
    //$rid='plg'.randid();
    //echo mktime(4,0,0,7,26,2003); //1059184800
    //echo mktime(4,0,0,7,9,2003); //1057716000
    uclock_head();
    //if($_GET['callj'])$head=Head::generate();
    $ret = balise('div', array('id' => 'clock'), '');
    //landmarkUiwSub
    for ($i = 0; $i < 60; $i++) {
        $landmarkSub = balise('div', array('id' => 'landmarkSub'), '');
        $ret .= balise('div', array('id' => 'landmarkFrame', 'style' => 'transform: rotate(' . $i * 6 . 'deg);'), $landmarkSub);
    }
    //landmarkUiw
    for ($i = 0; $i < 12; $i++) {
        $landmark = balise('div', array('id' => 'landmark'), '');
        $ret .= balise('div', array('id' => 'landmarkFrame', 'style' => 'transform: rotate(' . $i * 30 . 'deg);'), $landmark);
        //landmarkText
        $hour = balise('div', array('id' => 'landmarkText', 'style' => 'transform: rotate(-' . $i * 30 . 'deg);'), $i ? $i * 5 : 60);
        $ret .= balise('div', array('id' => 'landmarkTextFrame', 'style' => 'transform: rotate(' . $i * 30 . 'deg);'), $hour);
    }
    $needleXee = balise('div', array('id' => 'needleXee'), ' ');
    $ret .= balise('div', array('id' => 'needleXeeFrame'), $needleXee);
    $needleXsi = balise('div', array('id' => 'needleXsi'), ' ');
    $ret .= balise('div', array('id' => 'needleXsiFrame'), $needleXsi);
    $needleUiw = balise('div', array('id' => 'needleUiw'), ' ');
    $ret .= balise('div', array('id' => 'needleUiwFrame'), $needleUiw);
    $needleHour = balise('div', array('id' => 'needleHour'), ' ');
    $ret .= balise('div', array('id' => 'needleHourFrame'), $needleHour);
    $ret .= balise('div', array('id' => 'clockCenter'), '');
    //digit
    $digit = balise('span', array('id' => 'xee', 'class' => 'xeeColor'), '') . ' ';
    $digit .= balise('span', array('id' => 'xsi', 'class' => 'xsiColor'), '') . ' ';
    $digit .= balise('span', array('id' => 'uiw', 'class' => 'uiwColor'), '') . ' ';
    $digit .= balise('span', array('id' => 'uiwHour', 'class' => 'uiwHourColor'), '') . ' ';
    $ret .= balise('div', array('id' => 'digit'), 'Aeon 4 ' . $digit);
    $ret .= js_code('clock();');
    return $head . balise('div', array('id' => 'clockFrame'), $ret);
}
Exemple #13
0
function ascii($d, $n = '')
{
    if (!$n) {
        return '&#' . $d . ';';
    }
    return balise('font', array(16 => 'font-size:' . $n . 'px; line-geight:' . $n . 'px;'), '&#' . $d . ';');
}
Exemple #14
0
function svg_j($p, $o, $res = '')
{
    list($p, $o) = ajxp($res, $p, $o);
    $ret = svg_com($p);
    //eco($ret,1);
    if (!$o) {
        $o = '600/440';
    }
    list($w, $h) = split('/', $o);
    $pr = array('version' => '1.1', 'width' => $w, 'height' => $h);
    return balise('svg', $pr, $ret);
}
Exemple #15
-1
function f_inp($mil, $link)
{
    $_SESSION['cur_div'] = 'content';
    $ip = hostname();
    $qda = $_SESSION['qda'];
    $USE = $_SESSION['USE'];
    $cont = $_GET['continue'];
    $read = $_SESSION['read'];
    $raed = $_SESSION['raed'];
    $frm = $_SESSION['frm'];
    if ($USE) {
        $us = $USE;
    } else {
        list($us, $ml) = sql('name,mail', 'qdi', 'r', 'host="' . $ip . '" ORDER BY id DESC LIMIT 1');
    }
    $currid = lastid('qda') + 1;
    if ($frm == "" or $frm == "Home") {
        $frm = "public";
    }
    //sections
    if ($_GET['edit'] == "=") {
        $cit = "&edit==";
    }
    $goto = '/?read=' . $read . $cit;
    if (substr($link, 0, 4) == 'http' && !$cont) {
        $link = https(utmsrc($link));
        //vacuum
        $_GET['urlsrc'] = $link;
        list($suj, $msg) = vacuum($link, '');
    }
    //elseif($read)$link=$_SESSION['rqt'][$read][9];
    if (!$cont) {
        $r['urlsrc'] = autoclic('urlsrc', "url", '10" id="urlsrc" onClick="SaveI(\'urlsrc\')" onContextMenu="SaveIt()" value="' . $link, '250', '') . btd('urledt', '');
    }
    //urlsrc
    if ($USE && !$cont) {
        $r['trkname'] = hidden('name', 'trkname', $USE) . hidden('mail', 'trkmail', '');
        $r['slcat'] = select_j('frm', 'category', $frm, '3', $frm, '');
    } elseif (!$USE) {
        $gn = '" onkeyup="log_goodname(\'trkname\');';
        $r['trkname'] = autoclic('name" id="trkname' . $gn, $us ? $us : nms(38), '8', '50', 'txtx');
        //name
        $r['trkmail'] = autoclic('mail" id="trkmail', $ml ? $ml : 'mail', '13', '50', 'txtx');
    }
    //mail
    if (!$cont) {
        $r['parent'] = select_jp('ib', 'parent', rstr(10) ? $read : '', '0', picto('topo'), '1');
    }
    //if(!$cont)$r['parent']=togbub();
    if (!$cont && auth(3)) {
        $r['publish'] = checkbox_j('pub', $_SESSION['auth'] < 4 ? 0 : rstr(11), nms(29));
    } else {
        $r['publish'] = hidden('pub', 'pub', 0);
    }
    if (!$cont) {
        //new
        $r['pstdat'] = select_j('postdat', 'date', date('y-m-d-H-i'), 0, picto('time'), 0);
        $r['pstsuj'] = balise('input', array('', '', 'suj', 'suj1', '', 'editor', 7 => 255, 16 => 'width:100%;', 23 => $suj ? $suj : nms(71)), '');
    }
    if ($cont) {
        $msg = sql('msg', 'qdm', 'v', 'id=' . $read);
        $btcntn = 'continue=ok#' . $read;
        $alrt = conn_correct($msg);
    } else {
        $goto = '/?read=' . $currid;
        $btcntn = 'insert=ok';
    }
    //&continue==#'.$currid
    $msg = str_replace("\r", "", $msg);
    //msg
    $msg = str_replace(array("<br />\n", "<br />", "<br>"), "\n", $msg);
    //save
    $ids = 'suj1|frm|urlsrc|postdat|trkname|trkmail|ib|pub';
    //|sub
    $c = 'popbt';
    $sav = ljb($c, 'SaveJb', 'socket_saveart_txtarea_id4_' . $read . '_no\',\'art' . $read . '_readart___' . $read, picto('save'));
    if ($cont && rstr(53)) {
        $sav .= ljb($c, 'SaveJb', 'txarea_saveart_txtarea_id4_' . $read . '\',\'art' . $read . '_readart___' . $read, nms(57)) . ' ';
    } elseif (!rstr(53)) {
        $sav .= submitj($c, 'sav', nms(57)) . ' ';
    } else {
        $sav .= lj($c, 'socket_newart_txtarea_' . (rstr(57) ? 7 : 9) . '_____' . $ids, nms(57)) . ' ';
    }
    //pop
    $btdt = lj('', 'popup_artwedit_txtarea__', pictit('editor', nms(107))) . ' ';
    $btdt .= ljb('' . '" title="test', 'captslct', 'preview', picto('valid')) . ' ';
    if ($cont && $read) {
        $btdt .= urledt_id($read);
    }
    //defcon//urledt($link)
    $ret = '<form method="POST" id="sav" action="' . $goto . '&' . $btcntn . '">' . "\n";
    //form
    $ret .= btd('bts' . $read, $sav) . ' ' . $btdt;
    $ret .= implode(' ', $r);
    $ret .= sesmk('conn_edit', '', '');
    //1
    $ret .= $alrt;
    $ret .= divd('txarea', txarea1($msg));
    //if(auth(4))$ret.=checkbox("randim","ok","rename_img",0);
    $ret .= ' </form>' . "\n";
    return $ret;
}