<?PHP use_javascript('/js/backend.js');?>
<?php use_helper('Javascript') ?>
  <th id="sf_admin_list_th_check">
        <?php echo checkbox_tag('check_all', '', false, array("id"=>"check_all","onclick"=>"toggleSelect(this.checked,'check_id')"));?>
          </th>
  <th id="sf_admin_list_th_sc_id">
          <?php if ($sf_user->getAttribute('sort', null, 'sf_admin/tblblogschools/sort') == 'sc_id'): ?>
      <?php echo link_to(__('Sc'), 'school/list?sort=sc_id&type='.($sf_user->getAttribute('type', 'asc', 'sf_admin/tblblogschools/sort') == 'asc' ? 'desc' : 'asc')) ?>
      (<?php echo __($sf_user->getAttribute('type', 'asc', 'sf_admin/tblblogschools/sort')) ?>)
      <?php else: ?>
      <?php echo link_to(__('Sc'), 'school/list?sort=sc_id&type=asc') ?>
      <?php endif; ?>
          </th>
  <th id="sf_admin_list_th_sc_name">
          <?php if ($sf_user->getAttribute('sort', null, 'sf_admin/tblblogschools/sort') == 'sc_name'): ?>
      <?php echo link_to(__('Sc name'), 'school/list?sort=sc_name&type='.($sf_user->getAttribute('type', 'asc', 'sf_admin/tblblogschools/sort') == 'asc' ? 'desc' : 'asc')) ?>
      (<?php echo __($sf_user->getAttribute('type', 'asc', 'sf_admin/tblblogschools/sort')) ?>)
      <?php else: ?>
      <?php echo link_to(__('Sc name'), 'school/list?sort=sc_name&type=asc') ?>
      <?php endif; ?>
          </th>
  <th id="sf_admin_list_th_sc_type">
          <?php if ($sf_user->getAttribute('sort', null, 'sf_admin/tblblogschools/sort') == 'sc_type'): ?>
      <?php echo link_to(__('Sc type'), 'school/list?sort=sc_type&type='.($sf_user->getAttribute('type', 'asc', 'sf_admin/tblblogschools/sort') == 'asc' ? 'desc' : 'asc')) ?>
      (<?php echo __($sf_user->getAttribute('type', 'asc', 'sf_admin/tblblogschools/sort')) ?>)
      <?php else: ?>
      <?php echo link_to(__('Sc type'), 'school/list?sort=sc_type&type=asc') ?>
      <?php endif; ?>
          </th>
  <th id="sf_admin_list_th_sc_parent">
          <?php if ($sf_user->getAttribute('sort', null, 'sf_admin/tblblogschools/sort') == 'sc_parent'): ?>
      <?php echo link_to(__('Sc parent'), 'school/list?sort=sc_parent&type='.($sf_user->getAttribute('type', 'asc', 'sf_admin/tblblogschools/sort') == 'asc' ? 'desc' : 'asc')) ?>
      (<?php echo __($sf_user->getAttribute('type', 'asc', 'sf_admin/tblblogschools/sort')) ?>)
      <?php else: ?>
      <?php echo link_to(__('Sc parent'), 'school/list?sort=sc_parent&type=asc') ?>
      <?php endif; ?>
          </th>
