Example #1
0
             $theme_fma = $themeC_fma;
             $cmd = '<span class="text-muted"><i class="fa fa-file fa-2x"></i>&nbsp;</span>' . fma_translate("Déplacer / Copier un fichier");
             $move_file = "<form method=\"post\" action=\"modules.php\">";
             $move_file .= "<input type=\"hidden\" name=\"ModPath\" value=\"{$ModPath}\" />";
             $move_file .= "<input type=\"hidden\" name=\"ModStart\" value=\"{$ModStart}\" />";
             $move_file .= "<input type=\"hidden\" name=\"FmaRep\" value=\"{$FmaRep}\" />";
             $move_file .= "<input type=\"hidden\" name=\"browse\" value=\"{$browse}\" />";
             $move_file .= "<input type=\"hidden\" name=\"att_name\" value=\"{$att_name}\" />";
             $move_file .= "<select class=\"textbox_standard\" name=\"op\">";
             $move_file .= "<option value=\"movefile-save\" selected=\"selected\"> " . fma_translate("Déplacer") . "</option>";
             $move_file .= "<option value=\"copyfile-save\">" . fma_translate("Copier") . "</option>";
             $move_file .= "</select>";
             $move_file .= "&nbsp;&nbsp;" . extend_ascii($auto[2]) . "<b> >> </b>";
             $move_file .= "<select class=\"custom-select form-control\" name=\"movefile\">";
             $move_file .= "<option value=\"\">/</option>";
             $arb = explode("|", $obj->GetDirArbo($basedir_fma));
             while (list(, $rep) = each($arb)) {
                 if ($rep != "") {
                     $rep2 = str_replace($basedir_fma, "", $rep);
                     if (fma_autorise("d", basename($rep))) {
                         $move_file .= "<option value=\"{$rep2}\">" . str_replace("/", " / ", $rep2) . "</option>\n";
                     }
                 }
             }
             $move_file .= "</select>";
             $move_file .= "&nbsp;<input class=\"btn btn-primary\" type=\"submit\" name=\"ok\" value=\"" . fma_translate("Ok") . "\" /></form>";
         }
     } else {
         $Err = $auto[1];
     }
 }