Changeset 4
- Timestamp:
- Sep 15, 2008, 9:38:48 PM (16 years ago)
- Files:
-
- 3 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
base.php
r3 r4 5 5 include('common.php'); 6 6 7 function ShowList($List )7 function ShowList($List, $Column = '', $ParentId = 0) 8 8 { 9 9 global $Database, $Types, $Config; 10 10 11 $Output = '< table class="WideTable"><tr>';11 $Output = '<div>'.$List['Title'].'</div><table class="WideTable"><tr>'; 12 12 foreach($List['Items'] as $Item) 13 13 { … … 17 17 $Output .= '<th>Akce</th></tr>'; 18 18 19 if(array_key_exists('ParentTable', $_GET) and array_key_exists('ParentId', $_GET)) 20 { 21 //$_SESSION['ParentId'] = $_GET['ParentId']; 22 //$_SESSION['ParentTable'] = $_GET['ParentTable']; 23 $Where = $_GET['ParentTable'].'='.$_GET['ParentId'].' '; 24 } 19 if(($Column != '') and ($ParentId != 0)) 20 $Where = $Column.'='.$ParentId; 25 21 else $Where = '1'; 26 22 … … 43 39 if(array_key_exists('Page', $_GET)) $Page = $_GET['Page']; else $Page = 0; 44 40 $DbResult = $Database->select($List['TableName'], 'COUNT(*)', $Where); 45 echo($Database->LastQuery);41 //echo($Database->LastQuery); 46 42 $DbRow = $DbResult->fetch_array(); 47 43 $TotalItemCount = $DbRow[0]; … … 55 51 if($Item['VisibleInList'] == 1) 56 52 { 57 $Type = $Types[$Item['Type']]; 53 $ItemType = explode(':', $Item['Type']); 54 $Type = $Types[$ItemType[0]]; 55 if(count($ItemType) > 1) $Type['Parameter'] = $ItemType[1]; 58 56 if(is_callable($Type['ViewHtml'])) $Value = $Type['ViewHtml']($Type, $DbRow[$Index], $List['TableName'], $DbRow['Id']); 59 57 else $Value = $Type['ViewHtml']; … … 62 60 } 63 61 } 64 $Output .= '<td><a href="?Action=View &Id='.$DbRow['Id'].'">Zobrazit</a> <a href="?Action=Edit&Id='.$DbRow['Id'].'">Edit</a> <a href="?Action=Delete&Id='.$DbRow['Id'].'">Smazat</a></td></tr>';62 $Output .= '<td><a href="?Action=ViewItem&TableId='.$List['TableName'].'&ItemId='.$DbRow['Id'].'">Zobrazit</a> <a href="?Action=EditItem&TableId='.$List['TableName'].'&ItemId='.$DbRow['Id'].'">Editovat</a> <a href="?Action=DeleteItem&TableId='.$List['TableName'].'&ItemId='.$DbRow['Id'].'">Smazat</a></td></tr>'; 65 63 } 66 64 $Output .= '</table>'; 67 $Output .= PagesList($Page, $TotalItemCount) .'<br />';68 $Output .= '<a href="?Action=Add ">Přidat</a>';65 $Output .= PagesList($Page, $TotalItemCount); 66 $Output .= '<a href="?Action=AddItem&TableId='.$List['TableName'].'">Přidat</a>'; 69 67 return($Output); 70 68 } … … 74 72 global $Database, $Types; 75 73 76 $Output = '<form action="?Action=Edit Finish&Id='.$Id.'" method="post"><table class="WideTable">';74 $Output = '<form action="?Action=EditItemFinish&ItemId='.$Id.'" method="post"><table class="WideTable">'; 77 75 $Output .= '<tr><th>Jméno položky</th><th>Hodnota</th></tr>'; 78 79 76 $DbResult = $Database->select($List['TableName'], '*', 'Id='.$Id); 80 77 while($DbRow = $DbResult->fetch_array()) … … 82 79 foreach($List['Items'] as $Index => $Item) 83 80 { 84 $Type = $Types[$Item['Type']]; 85 if(is_callable($Type['EditHtml'])) $Value = $Type['EditHtml']($Type, $DbRow[$Index], $List['TableName'], $DbRow['Id']); 86 else $Value = $Type['EditHtml']; 87 $Value = str_replace('%value%', $DbRow[$Index], $Value); 88 $Value = str_replace('%name%', $Index, $Value); 89 $Output .= '<tr><td>'.$Item['TextBefore'].':</td><td title="'.$Item['Help'].'">'.$Value.'</td></tr>'; 90 } 91 } 92 $Output .= '</table><input type="submit" value="Uložit"></form>'; 81 $ItemType = explode(':', $Item['Type']); 82 if($ItemType[0] != 'PointerOneToMany') 83 { 84 $Type = $Types[$ItemType[0]]; 85 if(count($ItemType) > 1) $Type['Parameter'] = $ItemType[1]; 86 if(is_callable($Type['EditHtml'])) $Value = $Type['EditHtml']($Type, $DbRow[$Index], $List['TableName'], $DbRow['Id']); 87 else $Value = $Type['EditHtml']; 88 $Value = str_replace('%value%', $DbRow[$Index], $Value); 89 $Value = str_replace('%name%', $Index, $Value); 90 if($Item['Required'] == 1) $Required = ' *'; else $Required = ''; 91 $Output .= '<tr><td>'.$Item['TextBefore'].':'.$Required.'</td><td title="'.$Item['Help'].'">'.$Value.'</td></tr>'; 92 } 93 } 94 } 95 $Output .= '</table><input type="submit" value="Uložit"></form><a href="?">Zpět</a>'; 93 96 return($Output); 94 97 } … … 101 104 foreach($List['Items'] as $Index => $Item) 102 105 { 103 $Values[$Index] = $_POST[$Index]; 106 $ItemType = explode(':', $Item['Type']); 107 if($ItemType[0] != 'PointerOneToMany') 108 { 109 $Values[$Index] = $_POST[$Index]; 110 } 104 111 } 105 112 $Database->update($List['TableName'], 'Id='.$Id, $Values); … … 114 121 global $Database, $Types; 115 122 116 $Output = '<form action="?Action=Add Finish" method="post"><table class="WideTable">';123 $Output = '<form action="?Action=AddItemFinish" method="post"><table class="WideTable">'; 117 124 $Output .= '<tr><th>Jméno položky</th><th>Hodnota</th></tr>'; 118 125 119 126 foreach($List['Items'] as $Index => $Item) 120 127 { 121 $Type = $Types[$Item['Type']]; 122 if(is_callable($Type['EditHtml'])) $Value = $Type['EditHtml']($Type, $Type['InitValue'], $List['TableName'], 0); 123 else $Value = $Type['EditHtml']; 124 $Value = str_replace('%value%', $Type['InitValue'], $Value); 125 $Value = str_replace('%name%', $Index, $Value); 126 $Output .= '<tr><td>'.$Item['TextBefore'].':</td><td title="'.$Item['Help'].'">'.$Value.'</td></tr>'; 127 } 128 $Output .= '</table><input type="submit" value="Přidat"></form>'; 128 $ItemType = explode(':', $Item['Type']); 129 if($ItemType[0] != 'PointerOneToMany') 130 { 131 $Type = $Types[$ItemType[0]]; 132 if(count($ItemType) > 1) $Type['Parameter'] = $ItemType[1]; 133 if(is_callable($Type['EditHtml'])) $Value = $Type['EditHtml']($Type, $Type['InitValue'], $List['TableName'], 0); 134 else $Value = $Type['EditHtml']; 135 $Value = str_replace('%value%', $Type['InitValue'], $Value); 136 $Value = str_replace('%name%', $Index, $Value); 137 if($Item['Required'] == 1) $Required = ' *'; else $Required = ''; 138 $Output .= '<tr><td>'.$Item['TextBefore'].':'.$Required.'</td><td title="'.$Item['Help'].'">'.$Value.'</td></tr>'; 139 } 140 } 141 $Output .= '</table><input type="submit" value="Přidat"></form><a href="?">Zpět</a>'; 129 142 return($Output); 130 143 } … … 137 150 foreach($List['Items'] as $Index => $Item) 138 151 { 139 $Values[$Index] = $_POST[$Index]; 152 $ItemType = explode(':', $Item['Type']); 153 if($ItemType[0] != 'PointerOneToMany') 154 { 155 $Values[$Index] = $_POST[$Index]; 156 } 140 157 } 141 158 $Database->insert($List['TableName'], $Values); … … 148 165 function ShowViewItem($List, $Id) 149 166 { 150 global $Database, $Types; 151 152 $Output = '<table class="WideTable">'; 153 $Output .= '<tr><th>Jméno položky</th><th>Hodnota</th></tr>'; 154 167 global $Database, $Types, $Lists; 168 169 $Output = ''; 155 170 $DbResult = $Database->select($List['TableName'], '*', 'Id='.$Id); 156 171 while($DbRow = $DbResult->fetch_array()) 157 172 { 158 foreach($List['Items'] as $Index => $Item) 159 { 160 $Type = $Types[$Item['Type']]; 161 if(is_callable($Type['ViewHtml'])) $Value = $Type['ViewHtml']($Type, $DbRow[$Index], $List['TableName'], $DbRow['Id']); 162 else $Value = $Type['ViewHtml']; 163 $Value = str_replace('%value%', $DbRow[$Index], $Value); 164 $Output .= '<tr><td>'.$Item['TextBefore'].':</td><td title="'.$Item['Help'].'">'.$Value.'</td></tr>'; 165 } 166 } 167 $Output .= '</table>'; 173 $Output = '<table class="WideTable">'; 174 $Output .= '<tr><th>Jméno položky</th><th>Hodnota</th></tr>'; 175 foreach($List['Items'] as $Index => $Item) 176 { 177 $ItemType = explode(':', $Item['Type']); 178 if($ItemType[0] != 'PointerOneToMany') 179 { 180 $Type = $Types[$ItemType[0]]; 181 if(count($ItemType) > 1) $Type['Parameter'] = $ItemType[1]; 182 if(is_callable($Type['ViewHtml'])) $Value = $Type['ViewHtml']($Type, $DbRow[$Index], $List['TableName'], $DbRow['Id']); 183 else $Value = $Type['ViewHtml']; 184 $Value = str_replace('%value%', $DbRow[$Index], $Value); 185 $Output .= '<tr><td>'.$Item['TextBefore'].':</td><td title="'.$Item['Help'].'">'.$Value.'</td></tr>'; 186 } 187 } 188 $Output .= '</table>'; 189 $Output .= '<a href="?Action=EditItem&ItemId='.$DbRow['Id'].'">Editovat</a>'; 190 $Output .= ' <a href="?Action=ShowList&ItemId='.$DbRow['Id'].'">Seznam</a>'; 191 $Output .= '<div class="line"></div>'; 192 193 foreach($List['Items'] as $Index => $Item) 194 { 195 $ItemType = explode(':', $Item['Type']); 196 if($ItemType[0] == 'PointerOneToMany') 197 { 198 $SubList = $Lists[$ItemType[1]]; 199 $Output .= ShowList($SubList, $ItemType[2], $DbRow['Id']).'<br /><br />'; 200 } 201 } 202 } 168 203 return($Output); 169 204 } … … 186 221 foreach($Lists as $Index => $List) 187 222 { 188 if( $List['System'] == $System)189 $Output .= '<a href="?Action=S electList&Id='.$Index.'">'.$List['Title'].'</a><br />';223 if(($List['System'] == $System) and ($List['VisibleInMenu'] == 1)) 224 $Output .= '<a href="?Action=ShowList&TableId='.$Index.'">'.$List['Title'].'</a><br />'; 190 225 } 191 226 $Output .= '<br />'; … … 197 232 global $Lists; 198 233 234 $PermanentVar = array('TableId', 'ItemId', 'ParentTable', 'ParentColumn', 'Action'); 235 foreach($PermanentVar as $Var) 236 { 237 if(array_key_exists($Var, $_GET)) $_SESSION[$Var] = $_GET[$Var]; 238 } 239 199 240 $Output = ''; 200 if(array_key_exists('Action', $_GET)) 201 { 202 if($_GET['Action'] == 'SelectList') 203 $_SESSION['ListId'] = $_GET['Id']; 204 } 205 206 if(array_key_exists('ListId', $_SESSION) and array_key_exists($_SESSION['ListId'], $Lists)) 207 { 208 $List = $Lists[$_SESSION['ListId']]; 209 if(array_key_exists('Action', $_GET)) 210 { 211 switch($_GET['Action']) 212 { 213 case 'Edit': 214 $Output = ShowEditItem($List, $_GET['Id']); 215 break; 216 case 'EditFinish': 217 $Output = ShowEditItemFinish($List, $_GET['Id']); 218 break; 219 case 'Delete': 220 $Output = ShowDeleteItem($List, $_GET['Id']); 221 break; 222 case 'View': 223 $Output = ShowViewItem($List, $_GET['Id']); 224 break; 225 case 'Add': 241 if(array_key_exists('TableId', $_SESSION) and array_key_exists($_SESSION['TableId'], $Lists)) 242 { 243 $List = $Lists[$_SESSION['TableId']]; 244 if(array_key_exists('Action', $_SESSION)) 245 { 246 switch($_SESSION['Action']) 247 { 248 case 'EditItem': 249 $Output = ShowEditItem($List, $_SESSION['ItemId']); 250 break; 251 case 'EditItemFinish': 252 $Output = ShowEditItemFinish($List, $_SESSION['ItemId']); 253 break; 254 case 'DeleteItem': 255 $Output = ShowDeleteItem($List, $_SESSION['ItemId']); 256 break; 257 case 'ViewItem': 258 $Output = ShowViewItem($List, $_SESSION['ItemId']); 259 break; 260 case 'AddItem': 226 261 $Output = ShowAddItem($List); 227 262 break; 228 case 'Add Finish':263 case 'AddItemFinish': 229 264 $Output = ShowAddItemFinish($List); 230 265 break; 266 case 'ShowList': 231 267 default: 232 268 $Output = ShowList($List); … … 241 277 global $Database, $Lists; 242 278 243 $DbResult = $Database->select(' List', '*');279 $DbResult = $Database->select('SystemList', '*'); 244 280 while($DbRow = $DbResult->fetch_assoc()) 245 281 { 246 282 $Items = array(); 247 $DbResult2 = $Database->select(' ListItem', '`Name`, `TextBefore`, `TextAfter`, `Type`, `Default`, `Help`, `Required`, `Editable`, `VisibleInList`', 'List='.$DbRow['Id']);283 $DbResult2 = $Database->select('SystemListItem', '`Name`, `TextBefore`, `TextAfter`, `Type`, `Default`, `Help`, `Required`, `Editable`, `VisibleInList`, `VisibleInPointer`', 'List='.$DbRow['Id']); 248 284 while($DbRow2 = $DbResult2->fetch_assoc()) 249 285 { … … 254 290 'Title' => $DbRow['Title'], 255 291 'System' => $DbRow['System'], 292 'VisibleInMenu' => $DbRow['VisibleInMenu'], 256 293 'Items' => $Items, 257 294 ); 258 $Lists[] = $List; 259 } 260 } 295 $Lists[$List['TableName']] = $List; 296 } 297 } 298 261 299 ?> -
index.php
r3 r4 12 12 '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">'. 13 13 '<head><link rel="stylesheet" href="style.css" type="text/css" media="all" />'. 14 '<script type="text/javascript" src="global.js"></script>'.14 //'<script type="text/javascript" src="global.js"></script>'. 15 15 '<title>IS</title> 16 16 </head><body><table class="base"><tr><td class="menu">'; … … 21 21 $Output .= TableList(0); 22 22 $Output .= '</td><td class="main">'; 23 $Output .= 'dd<br /><div>'.Output().'</div><br />dd';23 $Output .= Output(); 24 24 $Output .= '</td></tr></table></body></html>'; 25 25 echo($Output); -
lists.php
r3 r4 2 2 3 3 $Lists = array( 4 ' List' => array(5 'TableName' => ' List',6 'Title' => 'Seznam defin ovaných seznamů',4 'SystemList' => array( 5 'TableName' => 'SystemList', 6 'Title' => 'Seznam definic tabulek', 7 7 'System' => 1, 8 'VisibleInMenu' => 1, 8 9 'Items' => array( 9 10 'TableName' => array( 11 'Name' => 'TableName', 10 12 'TextBefore' => 'Jméno tabulky', 11 13 'TextAfter' => '', … … 18 20 ), 19 21 'Title' => array( 22 'Name' => 'Title', 20 23 'TextBefore' => 'Název seznamu', 21 24 'TextAfter' => '', … … 27 30 'VisibleInList' => 1, 28 31 ), 32 'VisibleInMenu' => array( 33 'Name' => 'VisibleInMenu', 34 'TextBefore' => 'Viditelné v menu', 35 'TextAfter' => '', 36 'Type' => 'Boolean', 37 'Help' => 'Zobrazovat tuto tabulku v hlavním menu', 38 'Default' => '', 39 'Required' => 1, 40 'Editable' => 1, 41 'VisibleInList' => 1, 42 ), 29 43 'Items' => array( 44 'Name' => 'Items', 30 45 'TextBefore' => 'Položky', 31 46 'TextAfter' => '', 32 'Type' => ' ListItemPointer',47 'Type' => 'PointerOneToMany:SystemListItem:List', 33 48 'Help' => 'Definujte potřebné položky pro seznam.', 34 49 'Default' => '', … … 39 54 ), 40 55 ), 41 ' ListItem' => array(42 'TableName' => ' ListItem',56 'SystemListItem' => array( 57 'TableName' => 'SystemListItem', 43 58 'Title' => 'Položky pro seznamy', 44 59 'System' => 1, 60 'VisibleInMenu' => 0, 45 61 'Items' => array( 46 62 'Name' => array( 63 'Name' => 'Name', 47 64 'TextBefore' => 'Jméno sloupce', 48 65 'TextAfter' => '', … … 55 72 ), 56 73 'TextBefore' => array( 74 'Name' => 'TextBefore', 57 75 'TextBefore' => 'Text před hodnotou', 58 76 'TextAfter' => '', … … 65 83 ), 66 84 'TextAfter' => array( 85 'Name' => 'TablAfter', 67 86 'TextBefore' => 'Text za hodnotou', 68 87 'TextAfter' => '', … … 75 94 ), 76 95 'Type' => array( 96 'Name' => 'Type', 77 97 'TextBefore' => 'Typ hodnoty', 78 98 'TextAfter' => '', … … 85 105 ), 86 106 'Help' => array( 107 'Name' => 'Help', 87 108 'TextBefore' => 'Nápověda', 88 109 'TextAfter' => '', … … 95 116 ), 96 117 'Required' => array( 118 'Name' => 'Required', 97 119 'TextBefore' => 'Požadováno', 98 120 'TextAfter' => '', … … 105 127 ), 106 128 'Editable' => array( 129 'Name' => 'Editable', 107 130 'TextBefore' => 'Editovatelné', 108 131 'TextAfter' => '', … … 115 138 ), 116 139 'VisibleInList' => array( 140 'Name' => 'VisibleInList', 117 141 'TextBefore' => 'Viditelné v seznamu', 118 142 'TextAfter' => '', 119 143 'Type' => 'Boolean', 120 144 'Help' => 'Určuje viditelnost této položky v seznamu', 145 'Default' => '', 146 'Required' => 1, 147 'Editable' => 1, 148 'VisibleInList' => 0, 149 ), 150 'VisibleInPointer' => array( 151 'Name' => 'VisibleInPointer', 152 'TextBefore' => 'Viditelné v odkazech', 153 'TextAfter' => '', 154 'Type' => 'Boolean', 155 'Help' => 'Určuje viditelnost této položky v názvech odkazů na tuto položku', 121 156 'Default' => '', 122 157 'Required' => 1, -
style.css
r3 r4 18 18 .main table 19 19 { 20 text-align: center; 20 margin-left: auto; 21 margin-right: auto; 21 22 } 22 23 23 24 .menu 24 25 { 25 width: 10%;26 width: 20%; 26 27 text-align: left; 28 vertical-align: top; 29 border-color: gray; 30 border-style: solid; 31 border-width: 0px 1px 0px 0px; 32 } 33 34 .main div 35 { 36 font-weight: bold; 27 37 } 28 38 … … 42 52 border-width: 0px 0px 1px 1px; 43 53 padding: 3px 3px 3px 3px; 54 background-color: #E0E0E0; 44 55 } 45 56 … … 52 63 padding: 3px 3px 3px 3px; 53 64 } 65 66 .line 67 { 68 border-color: gray; 69 border-style: solid; 70 border-width: 0px 0px 1px 1px; 71 margin: 7px 0px 7px 0px; 72 } 73 74 table.extended 75 { 76 font-size:95%; 77 border:1px #CCCCCC solid; 78 border-bottom:none; 79 text-align:left; 80 } 81 82 extended th, .extended td 83 { 84 border-bottom:1px #CCCCCC solid; 85 padding:5px; 86 } 87 extended th, .extended .th 88 { 89 background:#F1F1F1; 90 text-align:left; 91 color:#990000; 92 font-weight:bold; 93 } 94 95 extended td, .extended .th 96 { 97 border-left:1px #CCCCCC solid; 98 } -
types.php
r3 r4 27 27 $Parts = explode('-', $Parameter); 28 28 29 $Output = ($Parts[2] *1).'.'.$MonthList[$Parts[1]*1].'.'.$Parts[0];29 $Output = ($Parts[2] * 1).'.'.$MonthList[$Parts[1] * 1].'.'.$Parts[0]; 30 30 return($Output); 31 31 } … … 64 64 } 65 65 66 function TypePointerViewHtml($Type, $Parameter, $Table, $Id) 67 { 68 $Output = '<a href="?Action=SelectList&Id='.$Type['TypeDefinition'].'&ParentTable='.$Table.'&ParentId='.$Id.'">Seznam</a>'; 66 function TypePointerOneToOneViewHtml($Type, $Parameter, $Table, $Id) 67 { 68 global $Database, $Lists; 69 70 $Output = ''; 71 $Columns = ''; 72 foreach($Lists[$Type['Parameter']]['Items'] as $ListItem) 73 if($ListItem['VisibleInPointer'] == 1) $Columns .= '`'.$ListItem['Name'].'`," ",'; 74 $Columns = 'CONCAT('.substr($Columns, 0, -1).') AS Name, Id'; 75 $DbResult = $Database->select($Type['Parameter'], $Columns, 'Id='.$Parameter); 76 //echo($Database->LastQuery); 77 if($DbResult->num_rows > 0) 78 { 79 $DbRow = $DbResult->fetch_array(); 80 $Output = '<a href="?Action=ViewItem&TableId='.$Type['Parameter'].'&ItemId='.$DbRow['Id'].'">'.$DbRow['Name'].'</a>'; 81 } 82 return($Output); 83 } 84 85 function TypePointerOneToOneEditHtml($Type, $Parameter, $Table, $Id) 86 { 87 global $Database, $Lists; 88 89 $Output = '<select name="%name%">'; 90 $Columns = ''; 91 foreach($Lists[$Type['Parameter']]['Items'] as $ListItem) 92 if($ListItem['VisibleInPointer'] == 1) $Columns .= '`'.$ListItem['Name'].'`," ",'; 93 $Columns = 'CONCAT('.substr($Columns, 0, -1).') AS Name, Id'; 94 $DbResult = $Database->select($Type['Parameter'], $Columns); 95 //echo($Database->LastQuery); 96 while($DbRow = $DbResult->fetch_array()) 97 { 98 if($Parameter == $DbRow['Id']) $Selected = ' selected="1"'; else $Selected = ''; 99 $Output .= '<option value="'.$DbRow['Id'].'"'.$Selected.'>'.$DbRow['Name'].'</option>'; 100 } 101 $Output .= '</select>'; 102 return($Output); 103 } 104 105 function TypePointerOneToManyViewHtml($Type, $Parameter, $Table, $Id) 106 { 107 $Output = '<a href="?Action=ShowList&TableId='.$Type['TypeDefinition'].'&ParentTable='.$Table.'&ParentColumn='.$Id.'">Seznam</a>'; 108 return($Output); 109 } 110 111 function TypePointerOneToManyEditHtml($Type, $Parameter, $Table, $Id) 112 { 113 $Output = '<a href="?Action=ShowList&TableId='.$Type['TypeDefinition'].'&ParentTable='.$Table.'&ParentColumn='.$Id.'">Seznam</a>'; 69 114 return($Output); 70 115 } … … 122 167 ), 123 168 ), 124 'ListItemPointer' => array( 125 'Type' => 'Pointer', 126 'TypeDefinition' => 'ListItem', 127 'ViewHtml' => 'TypePointerViewHtml', 128 'EditHtml' => 'TypePointerViewHtml', 129 'DatabaseType' => 'INT', 130 'InitValue' => '0', 131 'ParseFunction' => '', 132 ), 133 'SubjectConnectState' => array( 134 'Type' => 'Enumeration', 135 'TypeDefinition' => array('Zájemce o připojení', 'Připojen', 'Trvale odpojen'), 169 'PointerOneToOne' => array( 170 'Type' => '', 171 'ViewHtml' => 'TypePointerOneToOneViewHtml', 172 'EditHtml' => 'TypePointerOneToOneEditHtml', 173 'DatabaseType' => 'INT', 174 'InitValue' => '0', 175 'ParseFunction' => '', 176 ), 177 'PointerOneToMany' => array( 178 'Type' => '', 179 'ViewHtml' => 'TypePointerOneToManyViewHtml', 180 'EditHtml' => 'TypePointerOneToManyEditHtml', 181 'DatabaseType' => 'INT', 182 'InitValue' => '0', 183 'ParseFunction' => '', 184 ), 185 'PointerManyToMany' => array( 186 'Type' => '', 187 'ViewHtml' => 'TypePointerManyToManyViewHtml', 188 'EditHtml' => 'TypePointerManyToManyEditHtml', 189 'DatabaseType' => 'INT', 190 'InitValue' => '0', 191 'ParseFunction' => '', 192 ), 193 'MemberState' => array( 194 'Type' => 'Enumeration', 195 'TypeDefinition' => array('Neznámý stav', 'Zájemce o připojení', 'Připojen', 'Trvale odpojen'), 196 'ViewHtml' => 'TypeEnumerationViewHtml', 197 'EditHtml' => 'TypeEnumerationEditHtml', 198 'DatabaseType' => 'INT', 199 'InitValue' => 0, 200 'ParseFunction' => '', 201 ), 202 'HostType' => array( 203 'Type' => 'Enumeration', 204 'TypeDefinition' => array('Nezařazeno', 'Osobní počítač', 'VoIP zařízení', 'IPTV zařízení', 'Směrovač', 'Server', 'Tiskárna/skener/kopírka', 'Jiné'), 205 'ViewHtml' => 'TypeEnumerationViewHtml', 206 'EditHtml' => 'TypeEnumerationEditHtml', 207 'DatabaseType' => 'INT', 208 'InitValue' => 0, 209 'ParseFunction' => '', 210 ), 211 'InterfaceType' => array( 212 'Type' => 'Enumeration', 213 'TypeDefinition' => array('Jiný', 'Ethernet 10 Mbit/s', 'Ethernet 100 Mbit/s', 'Ethernet 1 Gbit/s', 'Wifi 2,4 GHz 802.11b 11 Mbit/s', 'Wifi 2,4 GHz 802.11g 54 Mbit/s', 'Wifi 5 GHz 802.11a 54 Mbit/s', 'Optika 100 Mbit/s', 'Optika 1 Gbit/s'), 214 'ViewHtml' => 'TypeEnumerationViewHtml', 215 'EditHtml' => 'TypeEnumerationEditHtml', 216 'DatabaseType' => 'INT', 217 'InitValue' => 0, 218 'ParseFunction' => '', 219 ), 220 'AssetState' => array( 221 'Type' => 'Enumeration', 222 'TypeDefinition' => array('Neznámý', 'Na skladě', 'Používáno', 'V reklamaci', 'Vyřazeno'), 223 'ViewHtml' => 'TypeEnumerationViewHtml', 224 'EditHtml' => 'TypeEnumerationEditHtml', 225 'DatabaseType' => 'INT', 226 'InitValue' => 0, 227 'ParseFunction' => '', 228 ), 229 'MemberReportType' => array( 230 'Type' => 'Enumeration', 231 'TypeDefinition' => array('Jiné', 'Hlášení závady', 'Požadavek na změnu', 'Poznámka správce'), 232 'ViewHtml' => 'TypeEnumerationViewHtml', 233 'EditHtml' => 'TypeEnumerationEditHtml', 234 'DatabaseType' => 'INT', 235 'InitValue' => 0, 236 'ParseFunction' => '', 237 ), 238 'BankAccountType' => array( 239 'Type' => 'Enumeration', 240 'TypeDefinition' => array('Neurčeno', 'Běžný účet', 'Spořící účet'), 136 241 'ViewHtml' => 'TypeEnumerationViewHtml', 137 242 'EditHtml' => 'TypeEnumerationEditHtml',
Note:
See TracChangeset
for help on using the changeset viewer.