function fi_dirinfo($d, $o) { $id = 'fed' . normalize($d); $s = strpos($d, '/'); $j = 'fifunc___'; $jx = ajx($d); //$ret=btn('popbt',pictxt('folder2',$d)).' '; if ($s) { $ret .= blj('', $id . 'firnm', $j . 'fi*rename_' . $jx . '_' . $id, fi_pic('rename')) . ' '; } $ret .= blj('', $id . 'finew', $j . 'fi*newdir_' . $jx . '_' . $id, fi_pic('new')) . ' '; if ($s) { $ret .= blj('', $id . 'fidld', $j . 'fi*deldir_' . $jx . '_' . $id, fi_pic('delete')) . ' '; } $ret .= upload_btn($id . 'fiupl', ajx('opdir=' . $d . '&mode=disk'), fi_pic('upload')) . ' '; $ret .= blj('', $id . 'upurl', 'plug___upload_upurl_' . ajx($d) . '_' . $id, picto('photo')) . ' '; $ret .= fi_plnk($d, $o); return $ret; }
function rech_titles($rech, $dig, $opt, $cac, $cat, $tag, $tag2) { list($bol, $ord, $tit, $pho) = split("-", $opt); $load = $_SESSION['load']; $days = geta('dig', $dig); $bol = substr($rech, -1) == '*' ? 1 : get('bool', $bol); $_GET['bool'] = $bol; //$_GET['pho']=$pho; $ret .= btn('search', input(1, 'search', $rech . '" size="32" maxlength="150', '')) . ' '; $ret .= ljb('popsav', 'Search2();', '', nms(24)) . ' '; $ret .= hlpbt('search') . ' '; if ($cac) { $ret .= blj('popbt', 'srcac', 'plug___search_rech*reset_' . $cac, picto('del')); } if ($load) { $ret .= btn("popw", nbof(count($load), 1)); } //.', '.nbof(array_sum($load),19).' ' if (rstr(3)) { $ret .= br() . dig_h($days); } else { $ret .= hidden('', 'srdig', 1000); } //days if (!isset($_SESSION['rstr62'])) { sesr('rstr62', rstr(62)); } if (rstr(3)) { $ret .= togses('rstr62', pictit('right', nms(134))) . ' '; } //dig $urg = mkurl(array('bool', 'titles', 'cat', 'tag')); if ($rech) { $ret .= lkc('', htac('search') . $rech . '/' . $dig, picto('link')) . ' '; } //.$urg $ret .= br() . checkact('srord', $ord, nms(18)) . ' '; $ret .= checkact('srtit', $tit, nms(72)) . ' '; //$ret.=checkact('srpho',get('pho'),'').' ';//nms(123) $ret .= checkact('srbol', $bol, nms(70)) . '' . hlpbt('bool') . ' '; $ret .= select_j('srcat', 'category', $cat ? $cat : nms(9), 1) . ' '; //hidslct_j $ret .= select_j('srtag', 'tag', $tag ? $tag : 'tag', ''); //$ret.=select_j('srtag2','thèmes',$tag3,'thèmes'); return divc('titles', $ret); }
function upload_btn($id, $j, $t) { return blj('', $id, 'upload___' . $j, $t); }