summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorpb1dft <pb1dft@ampache>2008-02-20 23:11:38 +0000
committerpb1dft <pb1dft@ampache>2008-02-20 23:11:38 +0000
commite9e0d7926740e75bb2e25932f01b07345e80d1fc (patch)
tree8aa65c8d11a15af023a7eac9cec15fddc6862f7c /templates
parentb70a11b78bec4ed1bc2ace4f0358763d51c80693 (diff)
downloadampache-e9e0d7926740e75bb2e25932f01b07345e80d1fc.tar.gz
ampache-e9e0d7926740e75bb2e25932f01b07345e80d1fc.tar.bz2
ampache-e9e0d7926740e75bb2e25932f01b07345e80d1fc.zip
Fixed sorting on admin>users
Diffstat (limited to 'templates')
-rw-r--r--templates/show_embed_xspf.inc.php4
-rw-r--r--templates/show_users.inc.php12
2 files changed, 8 insertions, 8 deletions
diff --git a/templates/show_embed_xspf.inc.php b/templates/show_embed_xspf.inc.php
index 250dc154..afcd560c 100644
--- a/templates/show_embed_xspf.inc.php
+++ b/templates/show_embed_xspf.inc.php
@@ -24,10 +24,10 @@
show_box_top(_('XSPF Player'));
?>
<div id="mp3player">
-<script type="text/javascript" src="<?php echo conf('web_path'); ?>/modules/flash/swfobject.js"></script>
+<script type="text/javascript" src="<?php Config::get('web_path'); ?>/modules/flash/swfobject.js"></script>
<script type="text/javascript">
<!--
-var flashObj = new SWFObject ("<?php echo conf('web_path'); ?>/modules/flash/XSPF_RadioV.swf?action=play&playlist=<?php echo conf('web_path'); ?>/modules/flash/xspf_player.php?tmp_id=<?php echo $_REQUEST['play_info']; ?>&folder=<?php echo conf('web_path'); ?>/modules/flash/&textcolor=033066&color=E6E6E6&loop=playlist&lma=yes&viewinfo=true&vol=30&display=1@. - @2@ - @", "FMP3", "270", "190", 7, "#FFFFFF", true);
+var flashObj = new SWFObject ("<?php Config::get('web_path'); ?>/modules/flash/XSPF_RadioV.swf?action=play&playlist=<?php Config::get('web_path'); ?>/modules/flash/xspf_player.php?tmp_id=<?php echo $_REQUEST['play_info']; ?>&folder=<?php Config::get('web_path'); ?>/modules/flash/&textcolor=033066&color=E6E6E6&loop=playlist&lma=yes&viewinfo=true&vol=30&display=1@. - @2@ - @", "FMP3", "270", "190", 7, "#FFFFFF", true);
flashObj.write ("mp3player");
// -->
</script>
diff --git a/templates/show_users.inc.php b/templates/show_users.inc.php
index 797c0b16..9a2b276c 100644
--- a/templates/show_users.inc.php
+++ b/templates/show_users.inc.php
@@ -36,9 +36,9 @@ $web_path = Config::get('web_path');
<col id="col_online" />
</colgroup>
<tr class="th-top">
- <th class="cel_username"><?php echo _('Fullname'); ?>(<?php echo _('Username'); ?>)</th>
- <th class="cel_lastseen"><?php echo _('Last Seen'); ?></th>
- <th class="cel_registrationdate"><?php echo _('Registration Date'); ?></th>
+ <th class="cel_username"><?php echo Ajax::text('?page=browse&action=set_sort&sort=fullname',_('Fullname'),'users_sort_fullname'); ?>( <?php echo Ajax::text('?page=browse&action=set_sort&sort=username',_('Username'),'users_sort_username');?>)</th>
+ <th class="cel_lastseen"><?php echo Ajax::text('?page=browse&action=set_sort&sort=last_seen',_('Last Seen'),'users_sort_lastseen'); ?></th>
+ <th class="cel_registrationdate"><?php echo Ajax::text('?page=browse&action=set_sort&sort=create_date',_('Registration Date'),'users_sort_createdate'); ?></th>
<th class="cel_activity"><?php echo _('Activity'); ?></th>
<?php if (Config::get('track_user_ip')) { ?>
<th class="cel_lastip"><?php echo _('Last Ip'); ?></th>
@@ -101,9 +101,9 @@ foreach ($object_ids as $user_id) {
</tr>
<?php } //end foreach users ?>
<tr class="th-bottom">
- <th class="cel_username"><?php echo _('Fullname'); ?>(<?php echo _('Username'); ?>)</th>
- <th class="cel_lastseen"><?php echo _('Last Seen'); ?></th>
- <th class="cel_registrationdate"><?php echo _('Registration Date'); ?></th>
+ <th class="cel_username"><?php echo Ajax::text('?page=browse&action=set_sort&sort=fullname',_('Fullname'),'users_sort_fullname'); ?>( <?php echo Ajax::text('?page=browse&action=set_sort&sort=username',_('Username'),'users_sort_username');?>)</th>
+ <th class="cel_lastseen"><?php echo Ajax::text('?page=browse&action=set_sort&sort=last_seen',_('Last Seen'),'users_sort_lastseen'); ?></th>
+ <th class="cel_registrationdate"><?php echo Ajax::text('?page=browse&action=set_sort&sort=create_date',_('Registration Date'),'users_sort_createdate'); ?></th>
<th class="cel_activity"><?php echo _('Activity'); ?></th>
<?php if (Config::get('track_user_ip')) { ?>
<th class="cel_lastip"><?php echo _('Last Ip'); ?></th>