Permalink
Browse files

files added

  • Loading branch information...
1 parent 84d3a0f commit dad58c5137edbda87abaa725a5f67eaf40281eec Dennis Bruenig committed Dec 24, 2011
@@ -0,0 +1,34 @@
+<tr class="table-data-row">
+ <td>
+ <?php
+ echo a(array('href'=>$file->getDownloadUrl ()), $file->file_name);
+ ?>
+ </td>
+ <td>
+ <?php
+ echo a(array('href'=>url_for ('/admin/users/'.$file->getUploader()->id)),
+ h($file->getUploader ()));
+ ?>
+ </td>
+ <td>
+ <?php
+ echo __r('from %from% to %to%', array ('from' =>
+ $file->getAvailableFrom()->toString(option ('localeDateFormat')),
+ 'to' => '<b>'.$file->getAvailableUntil ()->toString (
+ option ('localeDateFormat')).'</b>')
+ );
+ ?>
+ </td>
+ <td><?php echo $file->getReadableFileSize () ?></td>
+ <td><?php echo (int) $file->download_count ?></td>
+ <td>
+ <?php
+ if ($file->isDeleted == 0)
+ echo a(array('href'=>$file->getDownloadUrl () . '/delete',
+ 'class'=>'admin-delete'),
+ '<img src="../resources/images/icons/remove.png">'.__('Delete'));
+ else
+ echo __('deleted');
+ ?>
+ </td>
+</tr>
@@ -0,0 +1,43 @@
+<tr class="table-data-row">
+ <td><a href="<?php echo url_for ('/admin/users/'.$user_item->id) ?>">
+ <?php echo h($user_item)." (".h($user_item->username).")" ?></a>
+ </td>
+ <td>
+ <?php echo h($user_item->email) ?></a>
+ </td>
+ <td>
+ <?php echo ($user_item->is_admin) ? '<img src="../resources/images/icons/admin.png" alt="'.__('admin').'" title="'.__('admin').'">' : '' ?>
+ <?php echo ($user_item->is_locked) ? '<img src="../resources/images/icons/keys.png" alt="'.__('locked').'" title="'.__('locked').'">' : '' ?>
+ </td>
+ <td><?php echo count ($user_item->getFiles (false)) ?>
+ (<?php echo $user_item->getTotalDiskSpace(true, false) ?> MB)
+ </td>
+ <td><?php echo count ($user_item->getFiles (true)) ?>
+ (<?php echo $user_item->getTotalDiskSpace(false, true) ?> MB)
+ </td>
+ <td>
+ <?php echo $user_item->getTotalDiskSpace(true, true) ?> MB
+ </td>
+ <td>
+ <a href="<?php echo url_for ('/admin/users/'.$user_item->id.'/edit') ?>">
+ <img src="../resources/images/icons/edit.png">
+ <?php echo __('Edit') ?>
+ </a>
+ <?php if ( $fz_user->id != $user_item->id ) : // prevents self-deleting ?>
+ <a onclick='javascript:return confirm (
+ <?php echo json_encode(
+ __r('Are you sure you want to delete the user "%displayname%" '
+ .'(%username%)?',
+ array (
+ 'displayname' => $user_item,
+ 'username' => $user_item->username)
+ )
+ ) ?>)'
+ href="
+ <?php echo url_for ('/admin/users/'.$user_item->id.'/delete') ?>">
+ <img src="../resources/images/icons/remove.png" />
+ <?php echo __('Delete') ?>
+ </a>
+ <?php endif ?>
+ </td>
+</tr>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dad58c5

Please sign in to comment.