Changeset 47 for trunk/Base/HTML/HTML.php
- Timestamp:
- Jul 27, 2014, 9:14:56 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:ignore
-
old new 1 2 1 config.php 2 .project
-
- Property svn:ignore
-
trunk/Base/HTML/HTML.php
r42 r47 16 16 { 17 17 $Indentation = 2; 18 18 19 19 $Output = ''; 20 20 $Indent = 0; … … 30 30 } 31 31 $Line = trim(substr($Text, $Start, $End + 1)); 32 if(strlen($Line) > 0) 32 if(strlen($Line) > 0) 33 33 if($Line[0] == '<') 34 34 { 35 if($Text[$Start + 1] == '/') 35 if($Text[$Start + 1] == '/') 36 36 { 37 37 $IndentNew = $IndentNew - $Indentation; 38 38 $Indent = $IndentNew; 39 } else 39 } else 40 40 { 41 41 if(strpos($Line, ' ')) $Command = substr($Line, 1, strpos($Line, ' ') - 1); 42 42 else $Command = substr($Line, 1, strlen($Line) - $Indentation); 43 43 if(strpos($Text, '</'.$Command.'>')) $IndentNew = $IndentNew + $Indentation; 44 } 44 } 45 45 } 46 46 if($Line != '') $Output .= (str_repeat(' ', $Indent).$Line."\n"); … … 59 59 function MakeLink($Title, $Target) 60 60 { 61 return('<a href="'.$Target.'">'.$Title.'</a>'); 61 return('<a href="'.$Target.'">'.$Title.'</a>'); 62 62 } 63 63 … … 89 89 // Zobrazení číselný seznamu stránek 90 90 function PageList($QueryStringVar, $Page, $TotalCount, $CountPerPage, $Around = 10) 91 { 91 { 92 92 $QueryStringArray = $this->System->HTTP->GetQueryStringArray(); 93 93 $Count = ceil($TotalCount / $CountPerPage); … … 95 95 if($Count > 1) 96 96 { 97 if($Page > 0) 97 if($Page > 0) 98 98 { 99 99 $QueryStringArray[$QueryStringVar] = 0; … … 118 118 } 119 119 if($PagesMax < ($Count - 1)) $Result .= ' .. '; 120 if($Page < ($Count - 1)) 120 if($Page < ($Count - 1)) 121 121 { 122 122 $QueryStringArray[$QueryStringVar] = $Page + 1; … … 138 138 } 139 139 } 140 141 ?>
Note:
See TracChangeset
for help on using the changeset viewer.