mirror of
https://github.com/xevidos/codiad.git
synced 2024-11-13 07:11:14 +01:00
Added to todo list, Reformatted filemanager dialog
This commit is contained in:
parent
647509e201
commit
400618c0bb
2 changed files with 151 additions and 133 deletions
|
@ -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
|
||||||
|
|
|
@ -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>
|
<label><?php i18n("Would you like to overwrite or duplicate the following:"); ?></label>
|
||||||
<select name="or_action">
|
<pre>
|
||||||
<option value="0"><?php i18n("Overwrite Original"); ?></option>
|
<?php
|
||||||
<option value="1"><?php i18n("Create Duplicate"); ?></option>
|
if( ! FileManager::isAbsPath( $_GET['path'] ) ) {
|
||||||
</select>
|
|
||||||
<button class="btn-left"><?php i18n("Continue"); ?></button>
|
echo '/';
|
||||||
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Cancel"); ?></button>
|
};
|
||||||
<?php
|
echo( $_GET['path'] );
|
||||||
break;
|
?>
|
||||||
|
</pre>
|
||||||
//////////////////////////////////////////////////////////////////
|
<select name="or_action">
|
||||||
// Search
|
<option value="0"><?php i18n("Overwrite Original"); ?></option>
|
||||||
//////////////////////////////////////////////////////////////////
|
<option value="1"><?php i18n("Create Duplicate"); ?></option>
|
||||||
case 'search':
|
</select>
|
||||||
?>
|
<button class="btn-left"><?php i18n("Continue"); ?></button>
|
||||||
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
|
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Cancel"); ?></button>
|
||||||
<table class="file-search-table">
|
<?php
|
||||||
<tr>
|
break;
|
||||||
<td width="65%">
|
|
||||||
<label><?php i18n("Search Files:"); ?></label>
|
//////////////////////////////////////////////////////////////////
|
||||||
<input type="text" name="search_string" autofocus="autofocus">
|
// Search
|
||||||
</td>
|
//////////////////////////////////////////////////////////////////
|
||||||
<td width="5%"> </td>
|
case 'search':
|
||||||
<td>
|
?>
|
||||||
<label><?php i18n("In:"); ?></label>
|
<input type="hidden" name="path" value="<?php echo($_GET['path']); ?>">
|
||||||
<select name="search_type">
|
<table class="file-search-table">
|
||||||
<option value="0"><?php i18n("Current Project"); ?></option>
|
<tr>
|
||||||
<?php if(checkAccess()) { ?>
|
<td width="65%">
|
||||||
<option value="1"><?php i18n("Workspace Projects"); ?></option>
|
<label><?php i18n("Search Files:"); ?></label>
|
||||||
<?php } ?>
|
<input type="text" name="search_string" autofocus="autofocus">
|
||||||
</select>
|
</td>
|
||||||
</td>
|
<td width="5%"> </td>
|
||||||
</tr>
|
<td>
|
||||||
<tr>
|
<label><?php i18n("In:"); ?></label>
|
||||||
<td colspan="3">
|
<select name="search_type">
|
||||||
<label><?php i18n("File Type:"); ?></label>
|
<option value="0"><?php i18n("Current Project"); ?></option>
|
||||||
<input type="text" name="search_file_type" placeholder="<?php i18n("space seperated file types eg: js c php"); ?>">
|
<?php
|
||||||
</td>
|
if( checkAccess() ) {
|
||||||
</tr>
|
|
||||||
</table>
|
?><option value="1"><?php i18n("Workspace Projects"); ?></option><?php
|
||||||
<pre id="filemanager-search-results"></pre>
|
}
|
||||||
<div id="filemanager-search-processing"></div>
|
?>
|
||||||
<button class="btn-left"><?php i18n("Search"); ?></button>
|
</select>
|
||||||
<button class="btn-right" onclick="codiad.modal.unload();return false;"><?php i18n("Cancel"); ?></button>
|
</td>
|
||||||
<?php
|
</tr>
|
||||||
break;
|
<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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue