Commit de3322f8 authored by Gerd Schachtschneider's avatar Gerd Schachtschneider
Browse files

initial

parents
[lagerklasse]
__sql__ = "SELECT lgk,CONCAT(lgk,' : ',beschreibung) from list_lgk"
../../master/tables/list_katReiter
\ No newline at end of file
[view_lgk]
label="Details Lagerklasse [{$record->val('autoID')}]"
icon = "images/show.png"
url="{$site_href}?-action=browse&-table=list_lgk&autoID={$record->val('autoID')}"
url_condition="$record"
condition="$record and $query['-table'] == 'list_lgk'"
permission=view
category=list_row_actions
order = 10
[edit_lgk]
label="Bearbeite Lagerklasse [{$record->val('autoID')}]"
icon = "images/edit.png"
url="{$site_href}?-action=edit&-table=list_lgk&autoID={$record->val('autoID')}"
url_condition="$record"
condition="$record and $query['-table'] == 'list_lgk'"
permission=edit
category=list_row_actions
order = 20
[__global__]
noLinkFromListView = 1
[autoID]
#widget:type = "hidden"
visibility:list = "hidden"
#visibility:browse = "hidden"
#visibility:find = "hidden"
[lgk]
#noLinkFromListView = 0
widget:label = "Lagerklasse"
[beschreibung]
widget:atts:size = 75
[priority]
#visibility:browse = "visible"
widget:label = "Priorität"
widget:description = "Berechnung der gefährlichsten Lagerklasse. Setzbar von höchste 0 bis niegrigste 255"
validators:numeric = 1
validators:numeric:message = "Nur Zahlen hier erlaubt"
<?php
class tables_list_lgk {
// setze indiv. Farbe in listenansicht fuer tabelle
function css__tableRowClass( &$record ) {
$query = Dataface_Application::getInstance()->getQuery();
$table = $query['-table'].' ';
// return $table.'normal'; //mit color
return $table; // ohne color
}
}
?>
../../master/tables/list_reiter
\ No newline at end of file
../../master/tables/mpi_users/
\ No newline at end of file
../../pse_chem/tables/view_chemAll/
\ No newline at end of file
../../master/tables/view_favorit
\ No newline at end of file
[__global__]
noLinkFromListView = 1
[autoID]
visibility:list = hidden
Key = PRI
[tabID]
visibility:list = hidden
[substanz]
widget:label = "Substanz"
filter = 1
[kategorie]
widget:label = "Gefahrenklasse"
filter = 1
[bemerkung]
visibility:list = hidden
[gruppe]
filter = 1
[bearbeiter]
[zeitstempel]
<?php
class tables_view_gefahr {
// check login & editieren nicht erlaubt
function getPermissions($record) {
$auth =& Dataface_AuthenticationTool::getInstance();
$user =& $auth->getLoggedInUser();
if ( !isset($user) ) return Dataface_PermissionsTool::NO_ACCESS();
return Dataface_PermissionsTool::getRolePermissions('READ ONLY');
}
// setze indiv. Farbe in listenansicht fuer tabelle
function css__tableRowClass( &$record ) {
$query = Dataface_Application::getInstance()->getQuery();
$table = $query['-table'].' ';
// return $table.'normal'; //mit color
return $table;
}
// link nach Substanz
function substanz__renderCell( &$record ) {
$subst = $record->strval('substanz');
$tabID = $record->strval('tabID');
$subdb = $record->strval('gruppe').'_chem';
$table = 'mpi_chemstoff';
return '<div style="white-space:nowrap"><a href="/'.$subdb.'/index.php?-table='.$table.'&-action=browse&tabID='.$tabID.'">'.$subst.'</a></div>';
}
function anweisung__renderCell(&$record) {
if ($record->val('anweisung') == '1') return 'ja';
return 'nein';
}
// Formatiere Zeitstempel auf Deutsch
function zeitstempel__display(&$record) {
if ($record->strval('zeitstempel') == NULL) return;
return date('d.m.Y', strtotime($record->strval('zeitstempel')));
}
}
?>
../../master/tables/view_reiter
\ No newline at end of file
../../master/tables/view_user
\ No newline at end of file
../master/templates/
\ No newline at end of file
Deny from all
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment