fullPath var, FM open by default and partially triggering setLayout

new variable to allow JS to know what the servers full path is
File Manager pane open and locked by default
Opacity of it is 0 until loaded, then it shows
Layout set at end of this file to sort structure until FM is loaded
(Of course when fully loaded, a full setLayout is called)
This commit is contained in:
Matt Pass
2012-03-02 15:07:54 +00:00
parent 5e74b4cb9d
commit a4a7527e82

View File

@@ -40,6 +40,11 @@ if ($testcMVersion) {
<link rel="stylesheet" type="text/css" href="lib/coder.css">
<script>
shortURLStarts = "<?php echo $shortURLStarts;?>";
<?
$docRoot = str_replace("\\","/",$_SERVER['DOCUMENT_ROOT']);
if (strrpos($docRoot,"/")==strlen($docRoot)-1) {$docRoot = substr($docRoot,0,strlen($docRoot)-1);};
echo 'fullPath = "'.$docRoot.'";'.PHP_EOL;
?>
</script>
<script language="JavaScript" src="lib/coder.js"></script>
</head><?php
@@ -97,9 +102,9 @@ shortURLStarts = "<?php echo $shortURLStarts;?>";
<input type="password" name="loginPassword" class="accountPassword">
<input type="submit" name="submit" value="Login" class="button">
</form>
<a nohref style="cursor: pointer" onClick="ICEcoder.lockUnlockNav()"><img src="images/file-manager-icons/padlock-disabled.png" id="fmLock" class="lock"></a>
<a nohref style="cursor: pointer" onClick="ICEcoder.lockUnlockNav()"><img src="images/file-manager-icons/padlock.png" id="fmLock" class="lock"></a>
</div>
<iframe id="filesFrame" class="frame" name="ff" src="files.php"></iframe>
<iframe id="filesFrame" class="frame" name="ff" src="files.php" style="opacity: 0" onLoad="this.style.opacity='1'"></iframe>
<div class="upload"><a href="javascript:alert('Doesn\'t do anything yet but will be a drag & drop style uploader')"><img src="images/upload.png"></a></div>
</div>
@@ -149,6 +154,10 @@ shortURLStarts = "<?php echo $shortURLStarts;?>";
<div class="charDisplay" id="charDisplay"><span id="char"></span></div>
</div>
<script>
ICEcoder.setLayout('dontSetEditor');
</script>
</body>
</html>