improve ajaxfilemanager first round

skala
Juan Carlos Raña 16 years ago
parent 3e292dc184
commit 853c3308e9
  1. 9
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/_ajax_get_details_listing.php
  2. 74
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/ajaxfilemanager.php
  3. 2
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/langs/en.php
  4. 2
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/langs/es.php
  5. 60
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/theme/default/css/fckeditor.css
  6. BIN
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/theme/default/images/ajaxLoading.gif
  7. BIN
      main/inc/lib/fckeditor/editor/plugins/ajaxfilemanager/theme/default/images/uploadProcessing.gif

@ -7,7 +7,8 @@
<th width="10" class="fileColumns">&nbsp;</th>
<th class="docName"><?php echo LBL_NAME; ?></th>
<th width="70" class="fileColumns"><?php echo LBL_SIZE; ?></th>
<th class="fileColumns"><?php echo LBL_MODIFIED; ?></th>
<!-- hidde by now while implementing this dokeos -->
<!--<th class="fileColumns"><?php // echo LBL_MODIFIED; ?></th> -->
</tr>
</thead>
<tbody id="fileList">
@ -65,7 +66,8 @@
<td class="<?php echo $strClass; ?> docName" id="tdnd<?php echo $count; ?>"><a id="aa<?php echo $count; ?>" href="<?php echo "../".$file['path']; ?>" target="_blank"><?php echo $file['name']; ?></a></td>
<td class="docInfo" id="tdrd<?php echo $count; ?>"><?php echo transformFileSize($file['size']); ?></td>
<td class="docInfo" id="tdth<?php echo $count; ?>"><?php echo @date(DATE_TIME_FORMAT,$file['mtime']); ?></td>
<!-- hidde by now while implementing this dokeos -->
<!--<td class="docInfo" id="tdth<?php //echo $count; ?>"><?php //echo @date(DATE_TIME_FORMAT,$file['mtime']); ?></td> -->
</tr>
<?php
}else
@ -96,7 +98,8 @@
<td class="<?php echo $strClass; ?> docName" id="tdnd<?php echo $count; ?>"><a id="aa<?php echo $count; ?>" href="<?php echo "../".$file['path']; ?>" target="_blank"><?php echo $file['name']; ?></a></td>
<td class="docInfo" id="tdrd<?php echo $count; ?>">&nbsp;</td>
<td class="docInfo" id="tdth<?php echo $count; ?>"><?php echo @date(DATE_TIME_FORMAT,$file['mtime']); ?></td>
<!-- hidde by now while implementing this dokeos -->
<!--<td class="docInfo" id="tdth<?php// echo $count; ?>"><?php //echo @date(DATE_TIME_FORMAT,$file['mtime']); ?></td> -->
</tr>
<?php
}

@ -348,8 +348,9 @@ $(document).ready(
</tr>
<tr>
<th><?php echo LBL_FOLDER_MODIFIED; ?></th>
<td colspan="3" id="folderMtime"><?php echo (!empty($folderInfo['mtime'])?date(DATE_TIME_FORMAT,$folderInfo['mtime']):'&nbsp;'); ?></td>
<!-- comment these lines while integrating into dokeos -->
<th><?php //echo LBL_FOLDER_MODIFIED; ?></th>
<!-- <td colspan="3" id="folderMtime"><?php //echo (!empty($folderInfo['mtime'])?date(DATE_TIME_FORMAT,$folderInfo['mtime']):'&nbsp;'); ?></td> -->
</tr>
<tr>
<th><?php echo LBL_FOLDER_SUDDIR; ?></th>
@ -362,10 +363,11 @@ $(document).ready(
</tr>
<tr>
<th><?php echo LBL_FOLDER_WRITABLE; ?></th>
<td id="folderWritable"><span class="<?php echo (isset($folderInfo['is_readable'])?($folderInfo['is_readable']?'flagYes':'flagNo'):'&nbsp;'); ?>">&nbsp;</span></td>
<th><?php echo LBL_FOLDER_READABLE; ?></th>
<td id="folderReadable"><span class="<?php echo (isset($folderInfo['is_writable'])?($folderInfo['is_writable']?'flagYes':'flagNo'):'&nbsp;'); ?>">&nbsp;</span></td>
<!-- comment these lines while integrating into dokeos -->
<th><?php // echo LBL_FOLDER_WRITABLE; ?></th>
<!-- <td id="folderWritable"><span class="<?php //echo (isset($folderInfo['is_readable'])?($folderInfo['is_readable']?'flagYes':'flagNo'):'&nbsp;'); ?>">&nbsp;</span></td> -->
<th><?php // echo LBL_FOLDER_READABLE; ?></th>
<!--<td id="folderReadable"><span class="<?php //echo (isset($folderInfo['is_writable'])?($folderInfo['is_writable']?'flagYes':'flagNo'):'&nbsp;'); ?>">&nbsp;</span></td> -->
</tr>
@ -388,8 +390,9 @@ $(document).ready(
</tr>
<tr>
<th><?php echo LBL_FILE_MODIFIED; ?></th>
<td colspan="3" id="fileMtime"></td>
<!-- comment these lines while integrating into dokeos -->
<th><?php //echo LBL_FILE_MODIFIED; ?></th>
<!--<td colspan="3" id="fileMtime"></td> -->
</tr>
<tr>
<th><?php echo LBL_FILE_SIZE; ?></th>
@ -401,10 +404,11 @@ $(document).ready(
<td colspan="3" id="fileType"></td>
</tr>
<tr>
<th><?php echo LBL_FILE_WRITABLE; ?></th>
<td id="fileWritable"><span class="flagYes">&nbsp;</span></td>
<th><?php echo LBL_FILE_READABLE; ?></th>
<td id="fileReadable"><span class="flagNo">&nbsp;</span></td>
<!-- comment these lines while integrating into dokeos -->
<th><?php //echo LBL_FILE_WRITABLE; ?></th>
<!--<td id="fileWritable"><span class="flagYes">&nbsp;</span></td> -->
<th><?php //echo LBL_FILE_READABLE; ?></th>
<!--<td id="fileReadable"><span class="flagNo">&nbsp;</span></td> -->
</tr>
</tbody>
@ -413,7 +417,7 @@ $(document).ready(
<p class="searchButtons" id="returnCurrentUrl">
<span class="right" id="linkSelect">
<input type="button" value="<?php echo MENU_SELECT; ?>" id="selectCurrentUrl" class="button">
<input type="button" value="<?php echo MENU_SELECT; ?>" id="selectCurrentUrl" class="select_button">
</span>
</p>
@ -430,13 +434,15 @@ $(document).ready(
<tbody>
<tr>
<td>
<b><?php echo LBL_SEARCH_NAME; ?></b> <br />
<!-- comment these lines while integrating into dokeos -->
<b><?php //echo LBL_SEARCH_NAME; ?></b> <br />
<input type="text" class="input inputSearch" name="search_name" id="search_name" />
</td>
</tr>
<tr>
<td >
<b><?php echo LBL_SEARCH_FOLDER; ?></b><br />
<!-- comment these lines while integrating into dokeos -->
<b><?php // echo LBL_SEARCH_FOLDER; ?></b><br />
<span id="searchFolderContainer">
<?php
if(CONFIG_LOAD_DOC_LATTER)
@ -475,36 +481,44 @@ $(document).ready(
<?php
}
?></span>
</td>
<!-- </td>
</tr>
<tr>
<td>
<b><?php echo LBL_SEARCH_MTIME; ?></b><br />
<input type="text" class="input inputMtime" name="search_mtime_from" id="search_mtime_from" value="<?php echo (!empty($_GET['search_mtime_from'])?$_GET['search_mtime_from']:''); ?>" />
<span class="leftToRightArrow">&nbsp;</span>
<input type="text" class="input inputMtime" name="search_mtime_to" id="search_mtime_to" value="<?php echo (!empty($_GET['search_mtime_to'])?$_GET['search_mtime_to']:''); ?>" />
</td></tr>
<td> -->
<b><?php //echo LBL_SEARCH_MTIME; ?></b><br />
<!-- <input type="text" class="input inputMtime" name="search_mtime_from" id="search_mtime_from" value="<?php //echo (!empty($_GET['search_mtime_from'])?$_GET['search_mtime_from']:''); ?>" /> -->
<!--<span class="leftToRightArrow">&nbsp;</span> -->
<!--<input type="text" class="input inputMtime" name="search_mtime_to" id="search_mtime_to" value="<?php //echo (!empty($_GET['search_mtime_to'])?$_GET['search_mtime_to']:''); ?>" /> -->
<!--This lines replace above lines while integrating into dokeos -->
<input type="hidden" name="search_mtime_from" id="search_mtime_from" value="<?php //echo (!empty($_GET['search_mtime_from'])?$_GET['search_mtime_from']:''); ?>" />
<input type="hidden" name="search_mtime_to" id="search_mtime_to" value="<?php //echo (!empty($_GET['search_mtime_to'])?$_GET['search_mtime_to']:''); ?>" />
<!-- </td></tr>
<tr>
<td>
<b><?php echo LBL_SEARCH_RECURSIVELY; ?></b>&nbsp;&nbsp;
<td> -->
<!-- comment these lines while integrating into dokeos -->
</td><td><!--add a col while integratins -->
<b><?php // echo LBL_SEARCH_RECURSIVELY; ?></b>&nbsp;&nbsp;
<!--change for Dokeos recursively by default -->
<input type="radio" name="search_recursively" value="1" id="search_recursively_1" class="radio" <?php echo (empty($_GET['search_recursively'])?'checked="checked"':''); ?> /> <?php echo LBL_RECURSIVELY_YES; ?>
<input type="radio" name="search_recursively" value="0" id="search_recursively_0" class="radio" <?php echo (!empty($_GET['search_recursively'])?'checked="checked"':''); ?> /> <?php echo LBL_RECURSIVELY_NO; ?>
<input type="radio" name="search_recursively" value="1" id="search_recursively_1" class="radio" <?php echo (empty($_GET['search_recursively'])?'checked="checked"':''); ?> /> <?php //echo LBL_RECURSIVELY_YES; ?>
<!-- <input type="radio" name="search_recursively" value="0" id="search_recursively_0" class="radio" <?php //echo (!empty($_GET['search_recursively'])?'checked="checked"':''); ?> /> <?php //echo LBL_RECURSIVELY_NO; ?> -->
</td>
</tr>
</tbody>
</table>
<p class="searchButtons">
<span class="left" id="linkClose" style="display:none">
<input type="button" value="<?php echo LBL_ACTION_CLOSE; ?>" onclick="return cancelSelectFile();" class="button">
<!-- comment these lines while integrating into dokeos -->
<!--<input type="button" value="<?php // echo LBL_ACTION_CLOSE; ?>" onclick="return cancelSelectFile();" class="button"> -->
</span>
<span class="right" id="linkSearch">
<input type="button" value="<?php echo BTN_SEARCH; ?>" onclick="return search();" class="button">
<input type="button" value="<?php echo BTN_SEARCH; ?>" onclick="return search();" class="search_button">
</span>
</p>

@ -13,7 +13,7 @@
define('MENU_SELECT', 'Select');
define('MENU_SELECT', 'Insert');
define('MENU_DOWNLOAD', 'Download');
define('MENU_PREVIEW', 'Preview');
define('MENU_RENAME', 'Rename');

@ -9,7 +9,7 @@
//Common
//Menu
define('MENU_SELECT', 'Seleccionar');
define('MENU_SELECT', 'Insertar');
define('MENU_DOWNLOAD', 'Descargar');
define('MENU_PREVIEW', 'Previsualizar');
define('MENU_RENAME', 'Renombrar');

@ -61,7 +61,7 @@ border-color:#0000CC;
}
#leftCol{
background:#e8e8e8;
width:265px;
width:200px;
float:left;
text-align:left;
@ -69,7 +69,7 @@ border-color:#0000CC;
#rightCol{
width:100%;
border: none;
margin-left: -265px;
margin-left: -200px;
float:right;
@ -79,13 +79,13 @@ margin-left: 50%;
margin-top:100px;
}
#content{
margin-left: 265px;
margin-left: 200px;
overflow: auto;
overflow-x: hidden;
max-height:380px;
}
.pagination_content{
margin-left: 265px;
margin-left: 200px;
overflow: auto;
overflow-x: hidden;
}
@ -459,11 +459,53 @@ a.pagination_active{font-weight: bold; color: #CC0000;}
}
.button{
font: bold 10px Verdana, Arial, Helvetica, sans-serif;
background:url(../images/button.gif);
width:90px;
height:20px;
border:none;
border:1px solid #4171b5;
background:#F0F0F0;
padding:5px 15px 5px 15px;
font-weight:bold;
color:#4171b5;
margin: 5px;
}
.select_button{
font-family: bold arial, verdana, helvetica, sans-serif;
font-size: 100%;
line-height :130%;
text-decoration: none;
color: black;
cursor: pointer;
padding:5px 15px 5px 15px;
vertical-align:middle;
border:1px solid #4171b5;
background:#F0F0F0;
padding-left:30px;
padding-right:10px;
font-weight:bold;
color:#4171b5;
background: url(../images/button_accept.gif);
background-position:10px;
background-repeat:no-repeat;
}
.search_button{
font-family: bold arial, verdana, helvetica, sans-serif;
font-size: 100%;
line-height :130%;
text-decoration: none;
color: black;
cursor: pointer;
padding:5px 15px 5px 15px;
vertical-align:middle;
border:1px solid #4171b5;
background:#F0F0F0;
padding-left:30px;
padding-right:10px;
font-weight:bold;
color:#4171b5;
background: url(../images/button_search.gif);
background-position:10px;
background-repeat:no-repeat;
}
/** Detail View */

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 847 B

After

Width:  |  Height:  |  Size: 2.5 KiB

Loading…
Cancel
Save