Added to todo list, Reformatted filemanager dialog

This commit is contained in:
xevidos 2019-07-15 18:43:32 -04:00
parent 647509e201
commit 400618c0bb
2 changed files with 151 additions and 133 deletions

View File

@ -38,6 +38,8 @@ Current Tasks:
Task List:
* Add ability to login with LDAP
* Add archive management
* Add bookmark files
* Add custom market
* \- Add in new admin interface ( Check admin-portal branch for progress )
- Group Management
@ -46,13 +48,17 @@ Task List:
- Project Management
- System Settings
- User Management
* Add different code linters
* Add Drag and Drop natively to filemanager
* Add folder / filestructure upload ability
* Add if file could not be saved 5 times close the open file
* Add multi level users. ( Projects for only certain groups, Permission levels )
* Add mobile compatibility
* Add move files
* Add permissions module ( more in depth permissions such as read/write, delete, etc )
* Add print code
* Add support for more database systems ( MSSQL, Oracle, SQLite, Filesystem storage, etc )
* Add terminal support ( optional per permission level )
* Add in auto save timer that saves after the user stops typing instead of after every change
* Clean up update script
* Fix broken themes

View File

@ -18,141 +18,153 @@ checkSession();
<form>
<?php
switch($_GET['action']){
switch( $_GET['action'] ) {
//////////////////////////////////////////////////////////////////
// Create
//////////////////////////////////////////////////////////////////
case 'create':
?>
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
<input type="hidden" name="type" value="<?php echo($_GET['type']); ?>">
<label><span class="icon-pencil"></span><?php echo i18n((ucfirst($_GET['type']))); ?></label>
<input type="text" name="object_name" autofocus="autofocus" autocomplete="off">
<button class="btn-left"><?php i18n("Create"); ?></button>
<button class="btn-right" onclick="codiad.modal.unload(); return false;"><?php i18n("Cancel"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Rename
//////////////////////////////////////////////////////////////////
case 'rename':
?>
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
<input type="hidden" name="type" value="<?php echo($_GET['type']); ?>">
<label><span class="icon-pencil"></span> <?php i18n("Rename"); ?> <?php echo i18n((ucfirst($_GET['type']))); ?></label>
<input type="text" name="object_name" autofocus="autofocus" autocomplete="off" value="<?php echo($_GET['short_name']); ?>">
<button class="btn-left"><?php i18n("Rename"); ?></button>
<button class="btn-right" onclick="codiad.modal.unload(); return false;"><?php i18n("Cancel"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Delete
//////////////////////////////////////////////////////////////////
case 'delete':
?>
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
<label><?php i18n("Are you sure you wish to delete the following:"); ?></label>
<pre><?php if(!FileManager::isAbsPath($_GET['path'])) { echo '/'; }; echo($_GET['path']); ?></pre>
<button class="btn-left"><?php i18n("Delete"); ?></button>
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Cancel"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Delete
//////////////////////////////////////////////////////////////////
case 'deleteInner':
?>
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
<label><?php i18n("Are you sure you wish to delete the contents of the following path:"); ?></label>
<pre><?php if(!FileManager::isAbsPath($_GET['path'])) { echo '/'; }; echo($_GET['path']); ?></pre>
<button class="btn-left"><?php i18n("Delete"); ?></button>
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Cancel"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Preview
//////////////////////////////////////////////////////////////////
case 'preview':
?>
<label><?php i18n("Inline Preview"); ?></label>
<div><br><br><img src="<?php echo(str_replace(BASE_PATH . "/", "", WORKSPACE) . "/" . $_GET['path']); ?>"><br><br></div>
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Close"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Preview
//////////////////////////////////////////////////////////////////
case 'music_preview':
?>
<label><?php i18n("Inline Preview"); ?></label>
<div><br><br>
<audio controls>
//////////////////////////////////////////////////////////////////
// Create
//////////////////////////////////////////////////////////////////
case 'create':
?>
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
<input type="hidden" name="type" value="<?php echo($_GET['type']); ?>">
<label><span class="icon-pencil"></span><?php echo i18n((ucfirst($_GET['type']))); ?></label>
<input type="text" name="object_name" autofocus="autofocus" autocomplete="off">
<button class="btn-left"><?php i18n("Create"); ?></button>
<button class="btn-right" onclick="codiad.modal.unload(); return false;"><?php i18n("Cancel"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Rename
//////////////////////////////////////////////////////////////////
case 'rename':
?>
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
<input type="hidden" name="type" value="<?php echo($_GET['type']); ?>">
<label><span class="icon-pencil"></span> <?php i18n("Rename"); ?> <?php echo i18n((ucfirst($_GET['type']))); ?></label>
<input type="text" name="object_name" autofocus="autofocus" autocomplete="off" value="<?php echo($_GET['short_name']); ?>">
<button class="btn-left"><?php i18n("Rename"); ?></button>
<button class="btn-right" onclick="codiad.modal.unload(); return false;"><?php i18n("Cancel"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Delete
//////////////////////////////////////////////////////////////////
case 'delete':
?>
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
<label><?php i18n("Are you sure you wish to delete the following:"); ?></label>
<pre><?php if(!FileManager::isAbsPath($_GET['path'])) { echo '/'; }; echo($_GET['path']); ?></pre>
<button class="btn-left"><?php i18n("Delete"); ?></button>
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Cancel"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Delete
//////////////////////////////////////////////////////////////////
case 'deleteInner':
?>
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
<label><?php i18n("Are you sure you wish to delete the contents of the following path:"); ?></label>
<pre><?php if(!FileManager::isAbsPath($_GET['path'])) { echo '/'; }; echo($_GET['path']); ?></pre>
<button class="btn-left"><?php i18n("Delete"); ?></button>
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Cancel"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Preview
//////////////////////////////////////////////////////////////////
case 'preview':
?>
<label><?php i18n("Inline Preview"); ?></label>
<div><br><br><img src="<?php echo(str_replace(BASE_PATH . "/", "", WORKSPACE) . "/" . $_GET['path']); ?>"><br><br></div>
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Close"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Preview
//////////////////////////////////////////////////////////////////
case 'music_preview':
?>
<label><?php i18n("Inline Preview"); ?></label>
<div><br><br>
<audio controls>
<source src="<?php echo(str_replace(BASE_PATH . "/", "", WORKSPACE) . "/" . $_GET['path']); ?>">
</audio>
<br><br></div>
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Close"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Overwrite
//////////////////////////////////////////////////////////////////
case 'overwrite':
?>
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
<label><?php i18n("Would you like to overwrite or duplicate the following:"); ?></label>
<pre><?php if(!FileManager::isAbsPath($_GET['path'])) { echo '/'; }; echo($_GET['path']); ?></pre>
<select name="or_action">
<option value="0"><?php i18n("Overwrite Original"); ?></option>
<option value="1"><?php i18n("Create Duplicate"); ?></option>
</select>
<button class="btn-left"><?php i18n("Continue"); ?></button>
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Cancel"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Search
//////////////////////////////////////////////////////////////////
case 'search':
?>
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
<table class="file-search-table">
<tr>
<td width="65%">
<label><?php i18n("Search Files:"); ?></label>
<input type="text" name="search_string" autofocus="autofocus">
</td>
<td width="5%">&nbsp;&nbsp;</td>
<td>
<label><?php i18n("In:"); ?></label>
<select name="search_type">
<option value="0"><?php i18n("Current Project"); ?></option>
<?php if(checkAccess()) { ?>
<option value="1"><?php i18n("Workspace Projects"); ?></option>
<?php } ?>
</select>
</td>
</tr>
<tr>
<td colspan="3">
<label><?php i18n("File Type:"); ?></label>
<input type="text" name="search_file_type" placeholder="<?php i18n("space seperated file types eg: js c php"); ?>">
</td>
</tr>
</table>
<pre id="filemanager-search-results"></pre>
<div id="filemanager-search-processing"></div>
<button class="btn-left"><?php i18n("Search"); ?></button>
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Cancel"); ?></button>
<?php
break;
</audio>
<br><br></div>
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Close"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Overwrite
//////////////////////////////////////////////////////////////////
case 'overwrite':
?>
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
<label><?php i18n("Would you like to overwrite or duplicate the following:"); ?></label>
<pre>
<?php
if( ! FileManager::isAbsPath( $_GET['path'] ) ) {
echo '/';
};
echo( $_GET['path'] );
?>
</pre>
<select name="or_action">
<option value="0"><?php i18n("Overwrite Original"); ?></option>
<option value="1"><?php i18n("Create Duplicate"); ?></option>
</select>
<button class="btn-left"><?php i18n("Continue"); ?></button>
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Cancel"); ?></button>
<?php
break;
//////////////////////////////////////////////////////////////////
// Search
//////////////////////////////////////////////////////////////////
case 'search':
?>
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
<table class="file-search-table">
<tr>
<td width="65%">
<label><?php i18n("Search Files:"); ?></label>
<input type="text" name="search_string" autofocus="autofocus">
</td>
<td width="5%">&nbsp;&nbsp;</td>
<td>
<label><?php i18n("In:"); ?></label>
<select name="search_type">
<option value="0"><?php i18n("Current Project"); ?></option>
<?php
if( checkAccess() ) {
?><option value="1"><?php i18n("Workspace Projects"); ?></option><?php
}
?>
</select>
</td>
</tr>
<tr>
<td colspan="3">
<label><?php i18n("File Type:"); ?></label>
<input type="text" name="search_file_type" placeholder="<?php i18n("space seperated file types eg: js c php"); ?>">
</td>
</tr>
</table>
<pre id="filemanager-search-results"></pre>
<div id="filemanager-search-processing"></div>
<button class="btn-left"><?php i18n("Search"); ?></button>
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Cancel"); ?></button>
<?php
break;
}