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

View file

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