Changeset 602
- Timestamp:
- Dec 8, 2013, 12:18:15 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/Version.php
r601 r602 1 1 <?php 2 2 3 $Revision = 60 1; // Subversion revision3 $Revision = 602; // Subversion revision 4 4 $DatabaseRevision = 601; // SQL structure revision 5 5 $ReleaseTime = '2013-12-07'; -
trunk/Modules/IS/IS.php
r599 r602 173 173 $Form = new Form($this->System->FormManager); 174 174 $Form->SetClass($Table); 175 // Check preset name and value 176 if(array_key_exists('pn', $_GET) and array_key_exists('pv', $_GET)) 177 $Form->Values[$_GET['pn']] = $_GET['pv']; 175 178 $Form->OnSubmit = '?a=add&t='.$Table.'&o=save'; 176 179 $Output .= $Form->ShowEditForm(); … … 225 228 $Output .= $this->ShowList($this->System->FormManager->FormTypes[$Item['Type']]['Table'], '`'. 226 229 $this->System->FormManager->FormTypes[$Item['Type']]['Ref'].'`='.$Id, $Item['Caption'], 227 $this->System->FormManager->FormTypes[$Item['Type']]['Ref'] ).'<br/>';230 $this->System->FormManager->FormTypes[$Item['Type']]['Ref'], $Id).'<br/>'; 228 231 } 229 232 return($Output); … … 416 419 } 417 420 418 function ShowList($Table, $Filter = '', $Title = '', $ExcludeColumn = '' )421 function ShowList($Table, $Filter = '', $Title = '', $ExcludeColumn = '', $ExcludeValue = '') 419 422 { 420 423 if(defined('NEW_PERMISSION') and !$this->System->User->CheckPermission($this->TableToModule($Table), 'Read')) … … 442 445 $Output = $this->ShowTable($Table, $Filter, $Title, $RowActions, $ExcludeColumn); 443 446 $Output .= '<ul class="ActionMenu">'; 444 $Output .= '<li><a href="?a=add&t='.$Table.' "><img alt="Přidat" title="Přidat" src="'.447 $Output .= '<li><a href="?a=add&t='.$Table.'&pn='.$ExcludeColumn.'&pv='.$ExcludeValue.'"><img alt="Přidat" title="Přidat" src="'. 445 448 $this->System->Link('/images/add.png').'"/>Přidat</a></li>'; 446 449 $Output .= '<li><a href="?a=list&t='.$Table.'"><img alt="Seznam" title="Seznam" src="'.
Note:
See TracChangeset
for help on using the changeset viewer.