diff --git a/include/meta/angular-tablesorter.php b/include/meta/angular-tablesorter.php
new file mode 100644
index 000000000..b0e36e2dc
--- /dev/null
+++ b/include/meta/angular-tablesorter.php
@@ -0,0 +1,35 @@
+
+ */
+//require_once(dirname(__FILE__).'/config/vilesci.config.inc.php'); Muss vor dieser Datei eingebunden werden!
+
+$dr = DOC_ROOT;
+$dr = str_replace($_SERVER["DOCUMENT_ROOT"], "", $dr);
+if($dr=='')
+ $dr='/';
+
+//Originaldateien des Herstellers
+echo '';
+
+echo '';
+
+//Anpassungen
+echo '';
+
+?>
diff --git a/include/meta/angular.php b/include/meta/angular.php
new file mode 100644
index 000000000..d7f7655dc
--- /dev/null
+++ b/include/meta/angular.php
@@ -0,0 +1,31 @@
+
+ */
+//require_once(dirname(__FILE__).'/config/vilesci.config.inc.php'); Muss vor dieser Datei eingebunden werden!
+
+$dr = DOC_ROOT;
+$dr = str_replace($_SERVER["DOCUMENT_ROOT"], "", $dr);
+if($dr=='')
+ $dr='/';
+
+//Originaldateien des Herstellers
+echo '';
+
+
+?>
diff --git a/include/meta/js_utils.php b/include/meta/js_utils.php
new file mode 100644
index 000000000..f2b2ef769
--- /dev/null
+++ b/include/meta/js_utils.php
@@ -0,0 +1,101 @@
+
+ */
+
+require_once(dirname(__FILE__)."/jquery.php");
+echo '
+';
+
+?>
+
+
diff --git a/include/meta/php_utils.php b/include/meta/php_utils.php
new file mode 100644
index 000000000..4f8ae2fb2
--- /dev/null
+++ b/include/meta/php_utils.php
@@ -0,0 +1,63 @@
+
+ */
+
+require_once('../../config/vilesci.config.inc.php');
+require_once('../../include/functions.inc.php');
+require_once('../../include/datum.class.php');
+require_once('../../include/person.class.php');
+require_once('../../include/benutzer.class.php');
+require_once('../../include/benutzerberechtigung.class.php');
+
+
+function returnAJAX($success, $obj)
+{
+ //if there is an error
+ if(error_get_last())
+ $ret = array(
+ "erfolg" => false,
+ );
+ else if(!$success)
+ {
+ $ret = array(
+ "erfolg" => false,
+ "message" => $obj,
+ );
+ }
+ //if we dont have a valid user
+ else if (!$getuid = get_uid())
+ {
+ $ret = array(
+ "erfolg" => false,
+ );
+ }
+ //if everything worked fine
+ else
+ {
+ $ret = array(
+ "erfolg" => true,
+ "user" => $getuid,
+ "info" => $obj,
+ );
+ }
+ echo json_encode($ret);
+ if($ret["erfolg"] === false)
+ die("");
+}
+?>
diff --git a/include/person.class.php b/include/person.class.php
index d8ea01d53..ea845b13d 100644
--- a/include/person.class.php
+++ b/include/person.class.php
@@ -251,7 +251,7 @@ class person extends basis_db
return false;
}
- if(mb_strlen($this->svnr) != 16 && mb_strlen($this->svnr) != 10)
+ if($this->svnr!='' && mb_strlen($this->svnr) != 16 && mb_strlen($this->svnr) != 10)
{
$this->errormsg = 'SVNR muss 10 oder 16 Zeichen lang sein';
return false;
diff --git a/include/tw/vilesci_menu_main.inc.php b/include/tw/vilesci_menu_main.inc.php
index ca30dd336..d62eb22e6 100644
--- a/include/tw/vilesci_menu_main.inc.php
+++ b/include/tw/vilesci_menu_main.inc.php
@@ -48,21 +48,21 @@ $menu=array
'Incoming loeschen'=>array('name'=>'Incoming löschen', 'link'=>'lehre/incoming_delete.php', 'target'=>'main'),
),
'Raummitteilung'=>array('name'=>'Raummitteilung', 'link'=>'lehre/raummitteilung.php', 'target'=>'main'),
-
+
'Mitarbeiter'=>array
(
'name'=>'Mitarbeiter','permissions'=>array('admin','lv-plan','support'),
- 'Übersicht'=>array('name'=>'Zeitwünsche', 'link'=>'personen/lektor_uebersicht.php', 'target'=>'main'),
- 'Zeitsperren'=>array('name'=>'Zeitsperren', 'link'=>'personen/urlaubsverwaltung.php', 'target'=>'main'),
+ 'Übersicht'=>array('name'=>'Zeitwünsche', 'link'=>'personen/lektor_uebersicht.php', 'target'=>'main','permissions'=>array('mitarbeiter')),
+ 'Zeitsperren'=>array('name'=>'Zeitsperren', 'link'=>'personen/urlaubsverwaltung.php', 'target'=>'main','permissions'=>array('mitarbeiter/zeitsperre')),
),
-
+
'Vorrueckung'=> array
(
- 'name'=>'Vorrueckung', 'permissions'=>array('admin','lv-plan','support'),
- 'Lehreinheiten'=>array('name'=>'Lehreinheiten', 'link'=>'lehre/lehreinheiten_vorrueckung.php', 'target'=>'main'),
- 'Studenten'=>array('name'=>'Studenten', 'link'=>'personen/student_vorrueckung.php', 'target'=>'main')
+ 'name'=>'Vorrueckung', 'permissions'=>array('lehre/vorrueckung','student/vorrueckung'),
+ 'Lehreinheiten'=>array('name'=>'Lehreinheiten', 'link'=>'lehre/lehreinheiten_vorrueckung.php', 'target'=>'main', 'permissions'=>array('lehre/vorrueckung'),),
+ 'Studenten'=>array('name'=>'Studenten', 'link'=>'personen/student_vorrueckung.php', 'target'=>'main','permissions'=>array('student/vorrueckung'),)
),
-
+
),
'Lehre'=> array
(
@@ -71,10 +71,10 @@ $menu=array
'Gruppenverwaltung'=>array('name'=>'Gruppen', 'permissions'=>array('admin','lv-plan','support'), 'link'=>'stammdaten/lvbgruppenverwaltung.php', 'target'=>'main'),
'Lehrveranstaltung'=>array('name'=>'Lehrveranstaltung', 'link'=>'lehre/lehrveranstaltung_frameset.html', 'target'=>'main'),
'Studienordnung'=>array('name'=>'Studienordnung', 'link'=>'lehre/studienordnung.php', 'target'=>'_blank','permissions'=>array('lehre/studienordnung')),
-
+
'Moodle'=>array
(
- 'name'=>'Moodle', 'permissions'=>array('admin','lv-plan','support','basis/moodle'),
+ 'name'=>'Moodle', 'permissions'=>array('basis/moodle'),
'Account'=>array('name'=>'Accountverwaltung', 'link'=>'moodle/account_verwaltung24.php', 'target'=>'main'),
'Kursverwaltung'=>array('name'=>'Kurs entfernen', 'link'=>'moodle/kurs_verwaltung24.php', 'target'=>'main'),
'Rollenzuteilung'=>array('name'=>'Rollenzuteilung', 'link'=>'moodle/rollenzuteilung24.php', 'target'=>'main'),
@@ -106,13 +106,13 @@ $menu=array
'name'=>'Personen', 'opener'=>'true', 'hide'=>'true', 'image'=>'vilesci_personen.png', 'permissions'=>array('admin','lv-plan','support','mitarbeiter','basis/person'),
'link'=>'left.php?categorie=Personen', 'target'=>'nav',
'Suche'=>array('name'=>'Suche', 'link'=>'personen/suche.php', 'target'=>'main','permissions'=>array('admin','lv-plan','support','basis/person')),
- 'Zusammenlegen'=>array('name'=>'Zusammenlegen', 'link'=>'stammdaten/personen_wartung.php', 'target'=>'main', 'permissions'=>array('admin','lv-plan','support')),
+ 'Zusammenlegen'=>array('name'=>'Zusammenlegen', 'link'=>'stammdaten/personen_wartung.php', 'target'=>'main', 'permissions'=>array('basis/person')),
'Wiederholer'=>array('name'=>'Stg-Wiederholer', 'link'=>'personen/wiederholer.php', 'target'=>'main', 'permissions'=>array('basis/person')),
'Gruppen'=>array
(
- 'name'=>'Gruppen', 'permissions'=>array('admin','lv-plan','support'),
- 'Übersicht'=>array('name'=>'Übersicht', 'link'=>'lehre/einheit_menu.php', 'target'=>'main'),
- 'Neu'=>array('name'=>'Neu', 'link'=>'lehre/einheit_menu.php?newFrm=true', 'target'=>'main')
+ 'name'=>'Gruppen', 'permissions'=>array('lehre/gruppe'),
+ 'Übersicht'=>array('name'=>'Übersicht', 'link'=>'lehre/einheit_menu.php', 'target'=>'main','permissions'=>array('lehre/gruppe')),
+ 'Neu'=>array('name'=>'Neu', 'link'=>'lehre/einheit_menu.php?newFrm=true', 'target'=>'main','permissions'=>array('lehre/gruppe'))
),
'Benutzer'=>array
(
@@ -126,12 +126,12 @@ $menu=array
(
'name'=>'Mitarbeiter','permissions'=>array('admin','mitarbeiter','support'),
'Übersicht'=>array('name'=>'Übersicht', 'link'=>'personen/lektor_uebersicht.php', 'target'=>'main'),
- 'Zeitsperren'=>array('name'=>'Zeitsperren', 'link'=>'personen/urlaubsverwaltung.php', 'target'=>'main'),
- 'Resturlaub'=>array('name'=>'Urlaub', 'link'=>'personen/resturlaub_frameset.html', 'target'=>'main')
+ 'Zeitsperren'=>array('name'=>'Zeitsperren', 'link'=>'personen/urlaubsverwaltung.php', 'target'=>'main','permissions'=>array('mitarbeiter/zeitsperre')),
+ 'Resturlaub'=>array('name'=>'Urlaub', 'link'=>'personen/resturlaub_frameset.html', 'target'=>'main','permissions'=>array('mitarbeiter/zeitsperre'))
),
- 'Betriebsmittel'=>array('name'=>'Betriebsmittel', 'link'=>'stammdaten/betriebsmittel_frameset.php', 'target'=>'main','permissions'=>array('admin','lv-plan','support','basis/betriebsmittel')),
- 'AnwesenheitslistenBarcode'=>array('name'=>'Anwesenheitslisten mit Barcodes', 'link'=>'personen/anwesenheitslisten_barcode.php', 'target'=>'main','permissions'=>array('admin','lv-plan','support','preinteressent')),
- 'Preinteressenten'=>array('name'=>'Preinteressenten', 'link'=>'personen/preinteressent_frameset.html', 'target'=>'_blank','permissions'=>array('admin','lv-plan','support','preinteressent')),
+ 'Betriebsmittel'=>array('name'=>'Betriebsmittel', 'link'=>'stammdaten/betriebsmittel_frameset.php', 'target'=>'main','permissions'=>array('basis/betriebsmittel')),
+ 'AnwesenheitslistenBarcode'=>array('name'=>'Anwesenheitslisten mit Barcodes', 'link'=>'personen/anwesenheitslisten_barcode.php', 'target'=>'main','permissions'=>array('basis/person')),
+ 'Preinteressenten'=>array('name'=>'Preinteressenten', 'link'=>'personen/preinteressent_frameset.html', 'target'=>'_blank','permissions'=>array('admin','preinteressent')),
'Incoming'=>array('name'=>'Incoming', 'link'=>'personen/incoming_frameset.php', 'target'=>'_blank','permissions'=>array('inout/incoming')),
'Outgoing'=>array('name'=>'Outgoing', 'link'=>'personen/outgoing_frameset.php', 'target'=>'_blank','permissions'=>array('inout/outgoing'))
),
@@ -141,7 +141,7 @@ $menu=array
'link'=>'left.php?categorie=Stammdaten', 'target'=>'nav',
'Betriebsmittel'=>array('name'=>'Betriebsmittel', 'link'=>'stammdaten/betriebsmittel_frameset.php', 'target'=>'main','permissions'=>array('basis/betriebsmittel')),
'Reihungstest'=>array('name'=>'Reihungstest', 'link'=>'stammdaten/reihungstestverwaltung.php', 'target'=>'main','permissions'=>array('admin','assistenz')),
-
+
'User'=>array
(
'name'=>'User', 'permissions'=>array('basis/variable','basis/berechtigung'),
@@ -154,7 +154,7 @@ $menu=array
'name'=>'Personal', 'permissions'=>array('buchung/typen','vertrag/typen'),
'Buchungstypen'=>array('name'=>'Buchungstypen', 'link'=>'stammdaten/buchung_typ.php', 'target'=>'main','permissions'=>array('buchung/typen')),
'Vertragstypen'=>array('name'=>'Vertragstypen', 'link'=>'stammdaten/vertrag_typ.php', 'target'=>'main','permissions'=>array('vertrag/typen'))
- ),
+ ),
'Studiengang'=>array('name'=>'Studiengang', 'link'=>'stammdaten/studiengang_frameset.html', 'target'=>'main','permissions'=>array('basis/studiengang')),
'Ort'=>array('name'=>'Ort (Raum)', 'link'=>'stammdaten/raum_frameset.html', 'target'=>'main','permissions'=>array('basis/ort')),
'Firmen'=>array('name'=>'Firmen', 'link'=>'stammdaten/firma_frameset.html', 'target'=>'main','permissions'=>array('basis/firma')),
@@ -180,20 +180,19 @@ $menu=array
),
'Wartung'=> array
(
- 'name'=>'Wartung', 'opener'=>'true', 'hide'=>'true', 'image'=>'vilesci_wartung.png', 'link'=>'left.php?categorie=Wartung', 'target'=>'nav',
+ 'name'=>'Wartung', 'opener'=>'true', 'hide'=>'true', 'image'=>'vilesci_wartung.png', 'link'=>'left.php?categorie=Wartung', 'target'=>'nav',
- 'DokumenteZuteilung'=>array('name'=>'Dokumente Zuteilung', 'link'=>'stammdaten/studiengang_dokumente.php', 'target'=>'main', 'permissions'=>array('basis/studiengang')),
+ 'DokumenteZuteilung'=>array('name'=>'Dokumente Zuteilung', 'link'=>'stammdaten/studiengang_dokumente.php', 'target'=>'main', 'permissions'=>array('basis/studiengang')),
'Vorrueckung'=> array
(
- 'name'=>'Vorrueckung', 'permissions'=>array('admin','lv-plan','support'),
- 'Lehreinheiten'=>array('name'=>'Lehreinheiten', 'link'=>'lehre/lehreinheiten_vorrueckung.php', 'target'=>'main'),
- 'Studenten'=>array('name'=>'Studenten', 'link'=>'personen/student_vorrueckung.php', 'target'=>'main')
+ 'name'=>'Vorrueckung', 'permissions'=>array('lehre/vorrueckung','student/vorrueckung'),
+ 'Lehreinheiten'=>array('name'=>'Lehreinheiten', 'link'=>'lehre/lehreinheiten_vorrueckung.php', 'target'=>'main','permissions'=>array('lehre/vorrueckung'),),
+ 'Studenten'=>array('name'=>'Studenten', 'link'=>'personen/student_vorrueckung.php', 'target'=>'main','permissions'=>array('student/vorrueckung'),)
),
- 'LVWartung'=>array('name'=>'LVwartung', 'link'=>'stammdaten/lv_wartung.php', 'target'=>'main'),
- 'Kreuzerllistekopieren'=>array('name'=>'Kreuzerllisten kopieren', 'link'=>CIS_ROOT.'cis/private/lehre/benotungstool/copy_uebung.php', 'target'=>'_blank'),
- 'Firmenwartung'=>array('name'=>'Firmenwartung', 'link'=>'stammdaten/firma_zusammen_uebersicht.php', 'target'=>'main'),
+ 'Kreuzerllistekopieren'=>array('name'=>'Kreuzerllisten kopieren', 'link'=>CIS_ROOT.'cis/private/lehre/benotungstool/copy_uebung.php', 'target'=>'_blank','permissions'=>array('admin')),
+ 'Firmenwartung'=>array('name'=>'Firmenwartung', 'link'=>'stammdaten/firma_zusammen_uebersicht.php', 'target'=>'main','permissions'=>array('basis/firma')),
'checkStudenten'=>array('name'=>'CheckStudenten', 'link'=>'../system/checkStudenten.php', 'target'=>'main'),
- 'StudienplanZuteilung'=>array('name'=>'Studienplan Zuteilung', 'link'=>'lehre/studienplan_zuteilung.php', 'target'=>'main'),
+ 'StudienplanZuteilung'=>array('name'=>'Studienplan Zuteilung', 'link'=>'lehre/studienplan_zuteilung.php', 'target'=>'main','permissions'=>array('assistenz')),
),
'Auswertung'=> array
(
@@ -212,17 +211,17 @@ $menu=array
'link'=>'left.php?categorie=Inventar', 'target'=>'nav',
'Inventar'=> array
(
- 'name'=>'Inventar', 'permissions'=>array('admin','wawi','support','wawi/inventar'),
+ 'name'=>'Inventar', 'permissions'=>array('admin','wawi','support','wawi/inventar'),
'Neu'=>array('name'=>'Neu', 'link'=>'inventar/inventar_pflege.php?vorlage=false', 'target'=>'main'),
'Suche'=>array('name'=>'Suche', 'link'=>'inventar/inventar.php', 'target'=>'main'),
'AfA'=>array('name'=>'AfA', 'link'=>'inventar/inventar_afa.php', 'target'=>'main'),
'Inventur'=>array('name'=>'Inventur', 'link'=>'inventar/inventar_inventur.php', 'target'=>'main'),
'Etiketten'=>array('name'=>'Etiketten', 'link'=>'inventar/etiketten.php', 'target'=>'main'),
)
- ),
+ ),
'Admin'=> array
(
- 'name'=>'Admin', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('admin','lv-plan','support'), 'image'=>'vilesci_admin.png',
+ 'name'=>'Admin', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('basis/cronjob'), 'image'=>'vilesci_admin.png',
'link'=>'left.php?categorie=Admin', 'target'=>'nav',
'Cronjobs'=>array('name'=>'Cronjobs', 'link'=>'stammdaten/cronjobverwaltung.php', 'target'=>'main','permissions'=>array('basis/cronjob')),
),
@@ -231,7 +230,7 @@ $menu=array
'name'=>'SD-Tools', 'opener'=>'true', 'hide'=>'true', 'permissions'=>array('sdTools'), 'image'=>'vilesci_sdtools.png',
'link'=>'https://sdtools.technikum-wien.at', 'target'=>'_blank',
)
-
+
);
require_once(dirname(__FILE__).'/../statistik.class.php');
@@ -253,7 +252,7 @@ if($addon_obj->loadAddons())
);
foreach($addon_obj->result as $row)
- {
+ {
$menu['Addons'][$row->kurzbz]=array('name'=>$row->addon_name, 'link'=>'../addons/'.$row->kurzbz.'/vilesci/index.php', 'target'=>'main');
}
}
diff --git a/include/vendor_custom/angular-tablesorter/tablesort.css b/include/vendor_custom/angular-tablesorter/tablesort.css
new file mode 100644
index 000000000..bd49e8643
--- /dev/null
+++ b/include/vendor_custom/angular-tablesorter/tablesort.css
@@ -0,0 +1,23 @@
+/* tables */
+table {
+ background-color: #EFEFEF;
+ margin:10px 0pt 15px;
+ width: 100%;
+ text-align: left;
+}
+table thead tr th, table tfoot tr th {
+ border: 1px solid #FFF;
+ padding: 4px;
+ vertical-align: middle;
+}
+th[ts-criteria]{
+ background-color: #DCE4EF;
+ cursor: pointer;
+}
+th.tablesort-asc,th.tablesort-desc{
+ border-bottom: #000 2px solid;
+}
+
+tbody tr:nth-child(2n){
+ background-color: #D3D3D3;
+}
diff --git a/include/zeitaufzeichnung.class.php b/include/zeitaufzeichnung.class.php
index 6a93e5314..dcb270db5 100755
--- a/include/zeitaufzeichnung.class.php
+++ b/include/zeitaufzeichnung.class.php
@@ -134,8 +134,9 @@ class zeitaufzeichnung extends basis_db
if(!$this->validate())
return false;
+ // check ob identischer eintrag existiert
$check_qry = 'SELECT count(*) from campus.tbl_zeitaufzeichnung where uid='.$this->db_add_param($this->uid).' and start = '.$this->db_add_param($this->start).' and ende = '.$this->db_add_param($this->ende);
- if($this->db_query($check_qry))
+ if($this->db_query($check_qry) && $this->new)
{
if($row = $this->db_fetch_object())
{
@@ -147,6 +148,7 @@ class zeitaufzeichnung extends basis_db
}
}
+
if($this->new)
{
//Neuen Datensatz einfuegen
diff --git a/vendor/FHC-vendor/angular-tablesort/.gitignore b/vendor/FHC-vendor/angular-tablesort/.gitignore
new file mode 100644
index 000000000..2db6e8241
--- /dev/null
+++ b/vendor/FHC-vendor/angular-tablesort/.gitignore
@@ -0,0 +1,2 @@
+.idea
+bower_components
\ No newline at end of file
diff --git a/vendor/FHC-vendor/angular-tablesort/LICENSE b/vendor/FHC-vendor/angular-tablesort/LICENSE
new file mode 100644
index 000000000..7627d9f60
--- /dev/null
+++ b/vendor/FHC-vendor/angular-tablesort/LICENSE
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2013 Mattias Holmlund, http://www.holmlund.se/mattias
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/vendor/FHC-vendor/angular-tablesort/README.md b/vendor/FHC-vendor/angular-tablesort/README.md
new file mode 100644
index 000000000..b556f977d
--- /dev/null
+++ b/vendor/FHC-vendor/angular-tablesort/README.md
@@ -0,0 +1,119 @@
+AngularJS Tablesort
+===================
+
+Allow tables to be sorted by clicking their headings.
+
+Web site: [http://mattiash.github.io/angular-tablesort](http://mattiash.github.io/angular-tablesort)
+
+Background
+----------
+
+When you use jquery to build your web-pages, it is very easy to add sorting-functionality to your tables - include [tablesorter](http://tablesorter.com) and annotate your column headings slightly to tell it what type of data your table contains.
+
+The goal with this module is to make it just as easy to add sorting to AngularJS tables, but with proper use of angular features and not jquery.
+
+Click once on a heading to sort ascending, twice for descending. Use shift-click to sort on more than one column.
+
+Additionally, these directives also makes it easy to add a default row that is shown in empty tables to make
+it explicit that the table is intentionally empty and not just broken.
+
+Installation
+------------
+
+ bower install angular-tablesort
+
+or
+
+ npm install angular-tablesort
+
+
+Usage
+-----
+
+Include the script in your markup
+
+```html
+
+```
+
+Include the module in your app
+
+```js
+angular.module('myApp', ['tableSort']);
+```
+
+The following code generates a table that can be sorted by clicking on the table headings:
+
+```html
+
+
+
+
Id
+
Name
+
Price
+
Quantity
+
+
+
+
+
{{item.Name}}
+
{{item.Price | currency}}
+
{{item.Quantity}}
+
+
+
+```
+
+The `ts-wrapper` attribute must be set on element that surrounds both the headings and the ng-repeat statement.
+
+The `ts-criteria` attribute tells tablesort which expression it should sort on when that element is clicked. Normally, the ts-criteria is the same as the expression that is shown in the column, but it doesn't have to be. The ts-criteria can also be filtered using the normal AngularJS filter syntax. Tablesort includes two filters parseInt and parseFloat that use the javascript functions of the same name, but any filter can be used.
+
+The `ts-default` attribute can be set on one or more columns to sort on them in ascending order by default.
+To sort in descending order, set ts-default to "descending"
+
+The `ts-repeat` attribute must be set on the element with ng-repeat.
+
+```html
+
+```
+
+Alternatively, `ts-repeat-start` and `ts-repeat-end` may be used to compliment the `ng-repeat-start` and `ng-repeat-end` directives.
+
+```html
+
+
+
{{ item.Name }}
+
+
+
{{ item.Description }}
+
+```
+
+By default, the sorting will be done as the last operation in the ng-repeat expression. To override this behavior, use an explicit `tablesort` directive as part of your ng-repeat expression. E.g.
+
+```html
+
+```
+
+This will first select the first 10 items in `items` and then sort them. Alternatively, you can insert an explicit tablesort in the pipe:
+
+```html
+
+```
+
+This will first sort the rows according to your specification and then only show the first 10 rows.
+
+If the `ng-repeat` expression contains a `track by` statement (which is generally a good idea), that expression will
+be used to provide a [stable](http://en.wikipedia.org/wiki/Sorting_algorithm#Stability) sort result.
+
+CSS
+---
+
+All table headings that can be sorted on is styled with css-class `tablesort-sortable`. The table headings that the table is currently sorted on is styled with `tablesort-asc` or `tablesort-desc` classes depending on the sort-direction. A stylesheet is included to show that it works, but you probably want to build your own.
+
+By default the content and look of the data for empty tables is controlled via css. It is inserted as one empty `
` spanning
+all columns and placed inside a `
` with class `showIfLast` The `
` is placed at the top of each table.
+To disable this feature add the attribute `ts-hide-no-data` to the `ts-repeat` row:
+```html
+