[Phplib-trackers] [ phplib-Bugs-576443 ] re offset 0 ligne 130
Brought to you by:
nhruby,
richardarcher
|
From: <no...@so...> - 2002-07-02 15:39:40
|
Bugs item #576443, was opened at 2002-07-02 17:39 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=576443&group_id=31885 Category: Template Group: 7.4pre1 Status: Open Resolution: None Priority: 5 Submitted By: courou (courou) Assigned to: Nobody/Anonymous (nobody) Summary: re offset 0 ligne 130 Initial Comment: hey, i use the same template Version : v 1.11 2002/04/25 12:49:17 richardarcher it's about a function wich is called twice in the script cause of the usage of DHTML. This is the function: If I called one and again, the error appear. Could you translate it me please // liste les fichiers d'un repertoire // @param $direction = chemin d'installation // @param $pid = utilisateur function Simplify_function_for_offset($directory,$pid) { Global $TEMPLATE; $File = array(); $Dir = opendir("$directory/$pid"); while($tmp = readdir($Dir)) $File[] = "$tmp"; closedir($Dir); rsort($File); next($File); next($File); reset($File); $TEMPLATE->set_block ("FILE_32", "BOUCLE_OPTION_FILE_FORM", "BLOCK _32"); while($tmp = each($File)) if(eregi(".sql", $tmp[1])) { $TEMPLATE->set_var(array ("CHOIX_OPEN_SWITCH" => '<option value="$directory/ $pid/$tmp[1]">$tmp[1]</option>')); $TEMPLATE->parse ("BLOCK_32","BOUCLE_OPTION_FILE_FORM",true); } $TEMPLATE->parse("EXECUTE_32","FILE_32"); echo $TEMPLATE->get("EXECUTE_32"); } seen you soon Courou ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=403611&aid=576443&group_id=31885 |