Skip to content

Instantly share code, notes, and snippets.

@bshaffer
Created April 9, 2011 05:04
Show Gist options
  • Save bshaffer/911157 to your computer and use it in GitHub Desktop.
Save bshaffer/911157 to your computer and use it in GitHub Desktop.
_list_th_tabular.php
<?php slot('sf_admin.current_header') ?>
<th class="sf_admin_text sf_admin_list_th_id">
<?php if ('id' == $sort[0]): ?>
<?php echo link_to(__('Id', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=id&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Id', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=id&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?><?php slot('sf_admin.current_header') ?>
<th class="sf_admin_text sf_admin_list_th_first_name">
<?php if ('first_name' == $sort[0]): ?>
<?php echo link_to(__('First name', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=first_name&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('First name', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=first_name&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?><?php slot('sf_admin.current_header') ?>
<th class="sf_admin_text sf_admin_list_th_last_name">
<?php if ('last_name' == $sort[0]): ?>
<?php echo link_to(__('Last name', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=last_name&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Last name', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=last_name&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?><?php slot('sf_admin.current_header') ?>
<th class="sf_admin_text sf_admin_list_th_email_address">
<?php if ('email_address' == $sort[0]): ?>
<?php echo link_to(__('Email address', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=email_address&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Email address', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=email_address&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?><?php slot('sf_admin.current_header') ?>
<th class="sf_admin_text sf_admin_list_th_username">
<?php if ('username' == $sort[0]): ?>
<?php echo link_to(__('Username', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=username&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Username', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=username&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?><?php slot('sf_admin.current_header') ?>
<th class="sf_admin_text sf_admin_list_th_algorithm">
<?php if ('algorithm' == $sort[0]): ?>
<?php echo link_to(__('Algorithm', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=algorithm&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Algorithm', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=algorithm&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?><?php slot('sf_admin.current_header') ?>
<th class="sf_admin_text sf_admin_list_th_salt">
<?php if ('salt' == $sort[0]): ?>
<?php echo link_to(__('Salt', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=salt&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Salt', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=salt&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?><?php slot('sf_admin.current_header') ?>
<th class="sf_admin_text sf_admin_list_th_password">
<?php if ('password' == $sort[0]): ?>
<?php echo link_to(__('Password', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=password&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Password', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=password&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?><?php slot('sf_admin.current_header') ?>
<th class="sf_admin_boolean sf_admin_list_th_is_active">
<?php if ('is_active' == $sort[0]): ?>
<?php echo link_to(__('Is active', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=is_active&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Is active', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=is_active&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?><?php slot('sf_admin.current_header') ?>
<th class="sf_admin_boolean sf_admin_list_th_is_super_admin">
<?php if ('is_super_admin' == $sort[0]): ?>
<?php echo link_to(__('Is super admin', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=is_super_admin&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Is super admin', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=is_super_admin&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?><?php slot('sf_admin.current_header') ?>
<th class="sf_admin_date sf_admin_list_th_last_login">
<?php if ('last_login' == $sort[0]): ?>
<?php echo link_to(__('Last login', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=last_login&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Last login', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=last_login&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?><?php slot('sf_admin.current_header') ?>
<th class="sf_admin_date sf_admin_list_th_created_at">
<?php if ('created_at' == $sort[0]): ?>
<?php echo link_to(__('Created at', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=created_at&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Created at', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=created_at&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?><?php slot('sf_admin.current_header') ?>
<th class="sf_admin_date sf_admin_list_th_updated_at">
<?php if ('updated_at' == $sort[0]): ?>
<?php echo link_to(__('Updated at', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=updated_at&sort_type='.($sort[1] == 'asc' ? 'desc' : 'asc'))) ?>
<?php echo image_tag(sfConfig::get('sf_admin_module_web_dir').'/images/'.$sort[1].'.png', array('alt' => __($sort[1], array(), 'sf_admin'), 'title' => __($sort[1], array(), 'sf_admin'))) ?>
<?php else: ?>
<?php echo link_to(__('Updated at', array(), 'messages'), '@sf_guard_user_sf_guard_user_old', array('query_string' => 'sort=updated_at&sort_type=asc')) ?>
<?php endif; ?>
</th>
<?php end_slot(); ?>
<?php include_slot('sf_admin.current_header') ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment