function edit_tits($id, $prw) { $css = 'poph'; list($ib, $day, $src, $suj, $frm, $img, $thm, $re) = sql('ib,day,mail,suj,frm,img,thm,re', 'qda', 'r', 'id="' . $id . '" LIMIT 1'); $csb = ''; $nk = 'checkEnter(event,\'formtit' . $id . '\');'; $ret .= submitj('', 'formtit' . $id, pictxt('save', nms(57))); //save $ret .= select_j('ib' . $id, 'parent', $ib, '', picto('topo'), 1); $ret .= ljb($css, "jumpvalue", 'ib' . $id . '_/', picto('no')) . ' '; if (auth(2)) { $ret .= btd('rdbt' . $id, prior_edit($re, $id)) . ' '; } //priority $ret .= lj($css, 'popup_track___' . $id, picto('forum')) . ''; $ret .= edit_dpl($id, $css) . ''; //deploy if (auth(2)) { $ret .= btd('chday' . $id, lj('', 'chday' . $id . '_chday___' . $id, picto('time'))) . ''; } $ret .= balise('textarea', array(3 => 'suj' . $id, 5 => 'editor', 16 => 'height:34px; width:100%;'), $suj) . br(); //suj $ret .= lj('poph', 'popup_placeim___' . $id, picto('img')) . balise("input", array('', 'text', '', 'img' . $id, $img, $csb, '36', 255, $nk), '') . lj('poph', 'img' . $id . '_recenseim__4_' . $id, picto('up', 14)) . br(); //img $ret .= lj('poph', '', picto('link')) . balise("input", array('', 'text', '', 'src' . $id, $src, $csb, '36', 255, $nk), '') . br(); //src $ret .= edit_frm($id, $frm); $ret .= edit_tags($id, 'tag', 'tag'); if (prmb(18)) { //user_tags $utags = explode(' ', prmb(18)); $ico = explode(' ', prmb(19)); foreach ($utags as $k => $v) { $ret .= edit_tags($id, $v, $ico[$k]); } } $ret .= art_options($id); //art_options $dn = array('ib', 'suj', 'img', 'src', 'frm1'); foreach ($_SESSION['art_options'] as $k => $v) { $dn[] = $v; } $r = explode(' ', prmb(26)); if ($r) { foreach ($r as $k => $v) { $dn[] = 'lang' . $v; } } //lang $js = 'SaveTits(\'' . $id . '\',\'' . implode('|', $dn) . '\',\'' . $prw . '\')'; $ret = '<form id="formtit' . $id . '" action="javascript:' . $js . '">' . $ret . '</form>'; return $ret; }
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); }