]> git.sur5r.net Git - contagged/commitdiff
Support for national letter tabs
authorAndreas Gohr <gohr@cosmocode.de>
Thu, 4 Dec 2008 14:25:36 +0000 (15:25 +0100)
committerAndreas Gohr <gohr@cosmocode.de>
Thu, 4 Dec 2008 14:25:36 +0000 (15:25 +0100)
darcs-hash:20081204142536-6e07b-cb9554d48743ac34c604f389958fbbff3ffe177f.gz

inc/lang/de.php
inc/lang/en.php
inc/lang/ru.php [new file with mode: 0644]
inc/template.php
styles/layout.css
templates/header.tpl
templates/layout.css

index c171645a314ddd26fc6d50ef8ba511be4fd727d4..8d0fcdc05a0d0e7797a8c18d89c2ffa3c2717ec2 100644 (file)
@@ -92,3 +92,6 @@ $lang['position']         = 'Position';
 $lang['department']       = 'Abteilung';
 $lang['ipphone']          = 'IP Tel.';
 $lang['spouse']           = 'Ehepartner';
+
+$lang['lettertabs'] = 'A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Ä Ö Ü';
+
index 33414214d68dedb7b862f5041564374ed2fa36dc..ef06d762c0ca6265e64c124719302de16e3c4cbc 100644 (file)
@@ -93,3 +93,5 @@ $lang['position']         = 'Position';
 $lang['department']       = 'Department';
 $lang['ipphone']          = 'IP Phone';
 $lang['spouse']           = 'Spouse';
+
+$lang['lettertabs'] = 'A B C D E F G H I J K L M N O P Q R S T U V W X Y Z';
diff --git a/inc/lang/ru.php b/inc/lang/ru.php
new file mode 100644 (file)
index 0000000..76b108d
--- /dev/null
@@ -0,0 +1,3 @@
+<?php
+
+$lang['lettertabs'] = 'А Б В Г Д Е Ё Ж З И Й К Л М Н О П Р С Т У Ф Х Ц Ч Ш Щ Ъ Ы Ь Э Ю Я';
index 64d37609b3c20ef73da1a422cf828743786213ac..863f0cdc8709341dac9fb226d0b65c32476fbea3 100644 (file)
@@ -26,6 +26,7 @@ function tpl_std(){
   $smarty->assign('conf',$conf);
   $smarty->assign('lang',$lang);
   $smarty->assign('fields',$FIELDS);
+  $smarty->assign('lettertabs',explode(' ',$lang['lettertabs']));
 }
 
 /**
index d923bee1b4821d9f281ec9605450bae597c91228..0738f62eb478ef743005391228e02a95ad2405d5 100644 (file)
@@ -85,8 +85,8 @@ div#content {
     border: 1px solid #999;
     padding: 1em;
     height: auto !important;
-    min-height: 45em;
-    height: 45em;
+    min-height: 55em;
+    height: 55em;
 }
 
 /* help screen */
index e61f1a8167d9baec9ab9c074c75e204b5bfe846d..01a73d4881fe54c86434e0921a6a8628f206468d 100644 (file)
 
     <div id="filterrow">
         <ul>
-            <li><a href="index.php?filter=a">A</a></li>
-            <li><a href="index.php?filter=b">B</a></li>
-            <li><a href="index.php?filter=c">C</a></li>
-            <li><a href="index.php?filter=d">D</a></li>
-            <li><a href="index.php?filter=e">E</a></li>
-            <li><a href="index.php?filter=f">F</a></li>
-            <li><a href="index.php?filter=g">G</a></li>
-            <li><a href="index.php?filter=h">H</a></li>
-            <li><a href="index.php?filter=i">I</a></li>
-            <li><a href="index.php?filter=j">J</a></li>
-            <li><a href="index.php?filter=k">K</a></li>
-            <li><a href="index.php?filter=l">L</a></li>
-            <li><a href="index.php?filter=m">M</a></li>
-            <li><a href="index.php?filter=n">N</a></li>
-            <li><a href="index.php?filter=o">O</a></li>
-            <li><a href="index.php?filter=p">P</a></li>
-            <li><a href="index.php?filter=q">Q</a></li>
-            <li><a href="index.php?filter=r">R</a></li>
-            <li><a href="index.php?filter=s">S</a></li>
-            <li><a href="index.php?filter=t">T</a></li>
-            <li><a href="index.php?filter=u">U</a></li>
-            <li><a href="index.php?filter=v">V</a></li>
-            <li><a href="index.php?filter=w">W</a></li>
-            <li><a href="index.php?filter=x">X</a></li>
-            <li><a href="index.php?filter=y">Y</a></li>
-            <li><a href="index.php?filter=z">Z</a></li>
+            {foreach from=$lettertabs item=letter}
+            <li><a href="index.php?filter={$letter}">{$letter}</a></li>
+            {/foreach}
             <li><a href="index.php?filter=other">#</a></li>
             <li><a href="index.php?filter=*">*</a></li>
         </ul>
     </div>
 
-
-
-
   <div id="content">
 
-
-<!--
-<table width="100%">
-<tr>
-  <td class="headrow" colspan="2">
-    <table width="100%"><tr>
-      <td align="left" valign="bottom">
-      </td>
-      <td align="right" valign="bottom">
-        <a href="help.php"><img src="pix/help.png" border="0" width="16" height="16" align="middle">{$lang.help}</a>
-      </td>
-    </tr></table>
-  </td>
-</tr>
-<tr>
-  <td width="30">
-  </td>
-  <td>
--->
index 82d6f50d49f8dd98d94516984aa2a72d5f8ebcc1..5302fbcde3bb75bcfbd422461c7bc8d3923eb517 100644 (file)
@@ -47,7 +47,6 @@ div#filterrow ul.x {
   list-style: none;
   margin: 0;
   padding: 0;
-  
 }
 
 div#filterrow div {