[ Index ]

PHP Cross Reference of Mambo 4.6.5

[ Variables ]     [ Functions ]     [ Classes ]     [ Constants ]     [ Statistics ]

title

Body

[close]

/administrator/components/com_languages/views/templates/ -> catalogs.tpl.php (source)

   1  <?php
   2  /**
   3  * @package Mambo
   4  * @subpackage Languages
   5  * @author Mambo Foundation Inc see README.php
   6  * @copyright (C) 2000 - 2009 Mambo Foundation Inc.
   7  * See COPYRIGHT.php for copyright notices and details.
   8  * @license GNU/GPL Version 2, see LICENSE.php
   9  *
  10  * Redistributions of files must retain the above copyright notice.
  11  *
  12  * Mambo is free software; you can redistribute it and/or
  13  * modify it under the terms of the GNU General Public License
  14  * as published by the Free Software Foundation; version 2 of the License.
  15  */
  16  
  17  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
  18  <script type="text/javascript">
  19  function order(col, asc) {
  20      c = document.getElementById('col');
  21      a = document.getElementById('asc');
  22      c.value = col;
  23      a.value = asc;
  24      submitform('sort');
  25  }
  26  </script>
  27  
  28  <script type="text/javascript" src="<?php echo mamboCore::get('mosConfig_live_site');?>/administrator/components/com_languages/languages.js"></script>
  29  
  30  <input type="hidden" id="col" name="col" value="" />
  31  <input type="hidden" id="asc" name="asc" value="" />
  32  <input type="hidden" id="catalogs" name="catalogs" value="1" />
  33  <table width="100%">
  34          <tr>
  35              <td width="100%">&nbsp;</td>
  36              <td align="right">
  37              <?php echo T_('Search:'); ?>
  38              </td>
  39              <td>
  40              <input type="text" name="search" value="<?php echo $search;?>" class="text_area" onChange="document.adminForm.submit();" />
  41              </td>
  42          </tr>
  43  </table>
  44  <table class="adminlist" id="catalog_table" cellpadding="3" cellspacing="0" width="80%">
  45  <thead>
  46  <tr>
  47      <th width="5" class="input">
  48      <input type="checkbox" name="toggle" value="" onClick="checkAll(<?php echo count( $rows ); ?>);" />
  49      </th>            
  50      <th width="20%"><?php echo T_('Language File'); ?></th>
  51      <th width="20%"><?php echo T_('% Translated'); ?></th>
  52      <th width="20%"><?php echo T_('Total Strings'); ?></th>
  53      <th width="20%"><?php echo T_('Translated Strings'); ?></th>
  54      <th width="20%"><?php echo T_('Fuzzy'); ?></th>
  55  </tr>    
  56  </thead>
  57  <tbody>
  58  <?php $a=0; $b=0; foreach ($rows as $row) :?>
  59      <tr class="<?php echo "row$a"; ?>">            
  60          <td>
  61          <input type="checkbox" id="cb<?php echo $b;?>" name="domain" value="<?php echo $row['domain']; ?>" onClick="isChecked(this.checked);" />
  62          </td>
  63          <td width="25%">
  64          <a href="#" onclick="hideMainMenu();return listItemTask('cb<?php echo $b;?>','edit')"><?php echo $row['domain'];?></a></td>
  65          <td width="5%">
  66         <?php echo $row['percent'];?>
  67          </td>
  68          <td width="5%">
  69         <?php echo $row['strings'];?>
  70          </td>
  71          <td>
  72          <?php echo $row['translated']; ?>
  73          </td>
  74          <td>
  75          <?php echo $row['fuzzy']; ?>
  76          </td>
  77      </tr>
  78  <?php $a=1-$a; $b++; endforeach; ?>
  79  </tbody>
  80  </table>
  81  
  82  <script type="text/javascript">
  83  table = new Table('catalog_table');
  84  table.makeSortable(1,"null,str,float,float,float,float");
  85  </script>