function stx_btn($d, $nd, $tx) { //version,node, $r = msq_choose('', $nd, 'txt'); $nxt = msq_find_next($r); $tt = 'txtbox" title="'; if ($d) { $ret .= btd('bck', '') . ' '; $tar = 'tit|txtarea'; $ret .= btd('bts', lj('popbt', 'bck_plug__xd_stext_stext*j_' . $d . '__' . $tar, nms(27))) . ' '; $ret .= ljb('txtx', 'notepad_open', $nd . '_txt_' . $d . '_' . $tx, $d) . ' '; //reload $ret .= lj($tt . nms(43), 'bck_plug__xd_stext_stext*del_' . $d . '_' . $tx, picto('del')); $ret .= lj($tt . nms(42), 'plgtxt_plug___stext_plug*stext__' . $tx, picto('close')); } if ($nd) { $ret .= lj($tt . nms(44), 'plgtxt_plug___stext_plug*stext_' . $nxt . '_' . $tx, picto('add')); $ret .= lj($tt . nms(25), 'popup_plup___stext_stx*files_' . $nd . '_' . $tx, picto('get')); } if ($d) { $ret .= msqlink('', $nd . '_txt_' . $d); } return $ret; }
function select_mods_m() { $r = msq_choose('users', ses('qb'), 'mods'); sort($r); $nw = msq_find_next($r); $ret = slct_menus($r, '/?admin=console&slct_mods=', prmb(1), 'active', '', 'v') . ' '; $ret .= lkc("popbt", '/?admin=console&newfrom_mods=' . $nw, nms(99) . ':' . $nw) . ' '; //new $prmb = sql('config', 'qdu', 'v', 'name="' . ses('qb') . '"'); $prmb1 = strprm($prmb, 1, '#'); if ($prmb1 != prmb(1)) { $ret .= lkc("txtyl", '/?admin=console&adopt_mods==', nms(66)) . ' '; } //apply return btn('nbp', btn('txtsmall', 'mods') . ' ' . $ret) . hlpbt('console_mods') . ' '; }
function msq_find_last($dr, $pr, $nod) { //next table $r = msq_choose($dr, $pr, $nod); return msq_find_next($r); }