2 /***********************************************************************
3 ** Title.........: Insert File Dialog, File Manager
5 ** Authors.......: Al Rashid <alrashid@klokan.sk>
6 ** Xiang Wei ZHUO <wei@zhuo.org>
7 ** Filename......: move.php
8 ** URL...........: http://alrashid.klokan.sk/insFile/
9 ** Last changed..: 23 July 2004
10 ***********************************************************************/
12 require('config.inc.php');
13 require('functions.php');
16 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
19 <title>Folder dialog</title>
21 echo '<meta http-equiv="content-language" content="'.$MY_LANG.'" />'."\n";
22 echo '<meta http-equiv="Content-Type" content="text/html; charset='.$MY_CHARSET.'" />'."\n";
23 echo '<meta name="author" content="AlRashid, www: http://alrashid.klokan.sk; mailto:alrashid@klokan.sk" />'."\n";
26 <style type="text/css">
28 html, body { background-color: ButtonFace; color: ButtonText; font: 11px Tahoma,Verdana,sans-serif; margin: 0; padding: 0;}
29 body { padding: 5px; }
30 .title { background-color: #ddf; color: #000; font-weight: bold; font-size: 120%; padding: 3px 10px; margin-bottom: 10px; border-bottom: 1px solid black; letter-spacing: 2px;}
31 select, input, button { font: 11px Tahoma,Verdana,sans-serif; }
32 .buttons { width: 70px; text-align: center; }
33 form { padding: 0px; margin: 0;}
35 padding: 10px; text-align: center;
39 <script type="text/javascript" src="js/popup.js"></script>
40 <script type="text/javascript">
42 window.resizeTo(550, 200);
50 // pass data back to the calling window
51 var param = new Object();
52 var selection = document.forms[0].newpath;
53 var newDir = selection.options[selection.selectedIndex].value;
54 param['newpath'] = newDir;
63 function refreshDirs() {
64 var allPaths = document.forms[0].newpath.options;
65 var fields = ["/" <?php dirs($MY_DOCUMENT_ROOT,'');?>];
66 for(i=0; i<fields.length; i++) {
67 var newElem = document.createElement("OPTION");
68 var newValue = fields[i];
69 newElem.text = newValue;
70 newElem.value = newValue;
71 allPaths.add(newElem);
77 <body onload="Init()">
78 <div class="title"><?php echo $MY_MESSAGES['selectfolder']; ?></div>
80 <div class="elements">
82 <?php echo $MY_MESSAGES['directory']; ?>
84 <select name="newpath" id="newpath" style="width:35em">
87 <div style="text-align: right;">
89 <button type="button" class="buttons" onclick="return onCancel();"><?php echo $MY_MESSAGES['cancel']; ?></button>
90 <button type="button" class="buttons" onclick="return onOK();"><?php echo $MY_MESSAGES['ok']; ?></button>
93 <script type="text/javascript">