Ignore:
Timestamp:
Feb 17, 2021, 9:27:32 PM (4 years ago)
Author:
chronos
Message:
  • Added: Documents section accessible from users panel.
  • Added: Contract model moved to separate module Contract.
  • Added: New action to generate PDF from Contract.
  • Fixed: Allow users to download files only by hash instead of direct id.
  • Added: Support for SHA1 as allowed mysql function.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/OpeningHours/OpeningHours.php

    r899 r901  
    4343    if (ModuleUser::Cast($this->System->GetModule('User'))->User->CheckPermission('OpeningHours', 'Edit'))
    4444    {
    45       $Output = '<div class="Centred">';
     45      $Output = '<div class="Centered">';
    4646      $DbResult = $this->Database->select('Subject', 'Name', 'Id='.$Id);
    4747      $DbRow = $DbResult->fetch_assoc();
     
    119119  function ShowAll(): string
    120120  {
    121     $Output = '<div class="Centred">';
    122     $DbResult = $this->Database->query('SELECT SubjectOpenTime.*, DATE_FORMAT(SubjectOpenTime.UpdateTime, "%e.%c.%Y") as UpdateTime, Subject.Id, Subject.Name as Name FROM SubjectOpenTime JOIN Subject ON Subject.Id = SubjectOpenTime.Subject ORDER BY Name');
     121    $Output = '<div class="Centered">';
     122    $DbResult = $this->Database->query('SELECT SubjectOpenTime.*, DATE_FORMAT(SubjectOpenTime.UpdateTime, "%e.%c.%Y") as UpdateTime, '.
     123      'Subject.Id, Subject.Name as Name FROM SubjectOpenTime '.
     124      'JOIN Subject ON Subject.Id = SubjectOpenTime.Subject ORDER BY Name');
    123125    while ($Subject = $DbResult->fetch_assoc())
    124126    {
     
    190192      if ($Subject['Notice'] != '') $Output .= 'Poznámka: '.$Subject['Notice'].'<br />';
    191193
    192       if ($Subject['Photo'] != 0) $Output .= '<a href="file?id='.$Subject['Photo'].'">Fotka</a> ';
     194      if ($Subject['Photo'] != 0) $Output .= '<a href="file?i='.$Subject['Photo'].'">Fotka</a> ';
    193195
    194196      if (ModuleUser::Cast($this->System->GetModule('User'))->User->CheckPermission('SubjectOpenTime', 'Edit'))
Note: See TracChangeset for help on using the changeset viewer.