Changeset 6 for branches/2/frontend.php
- Timestamp:
- May 8, 2008, 8:48:00 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2/frontend.php
r5 r6 37 37 foreach($this->System->Modules['Translation']->GetTextList($TranslationGroupId) as $GroupItem) 38 38 { 39 $Output .= '<tr><th>'.$GroupItem['Name'].'</th><td>'.$GroupItem['Text'].'</td><td>< textarea name="GroupItem'.$GroupItem['Id'].'">'.$GroupItem['Text'].'</textarea></td></tr>';39 $Output .= '<tr><th>'.$GroupItem['Name'].'</th><td>'.$GroupItem['Text'].'</td><td><div><textarea name="GroupItem'.$GroupItem['Id'].'">'.$GroupItem['Text'].'</textarea></div></td></tr>'; 40 40 } 41 41 $Output .= '</table>'; … … 43 43 } 44 44 45 function T ranslationGroupItemList($GroupId)45 function TextGroupList($GroupId) 46 46 { 47 $ItemPerPage = 30; 48 if(array_key_exists('Page', $_GET)) $Page = $_GET['Page']; else $Page = 0; 47 49 $Output = '<strong>Seznam textů:</strong><br/>'; 48 foreach($this->System->Modules['Translation']->GetTextGroupList($GroupId, 1, 1 ) as $Translation)50 foreach($this->System->Modules['Translation']->GetTextGroupList($GroupId, 1, 1, $Page, $ItemPerPage) as $Translation) 49 51 { 50 $Output .= '<a href="?Action=TranslationGroupEdit&GroupId='.$Translation['Id'].'">'.$Translation['Index'].'</a><br />'; 52 if(strlen($Translation['Text']) > 30) $Translation['Text'] = substr($Translation['Text'], 0, 30).'...'; 53 $Output .= $Translation['Index'].'. <a href="?Action=TranslationGroupEdit&GroupId='.$Translation['Id'].'">'.$Translation['Text'].'</a><br />'; 51 54 } 55 $Output .= $this->System->PagesList('?Action=TextGroupList&GroupId='.$GroupId.'&Page=', $Page, $this->System->Modules['Translation']->GetTextGroupListCount($GroupId, 1, 1), $ItemPerPage); 52 56 return($Output); 53 57 } … … 58 62 foreach($this->System->Modules['Translation']->GetTranslationGroupList() as $Group) 59 63 { 60 $Output .= '<a href="?Action=T ranslationGroupList&GroupId='.$Group['Id'].'">'.$Group['Name'].'</a><br />';64 $Output .= '<a href="?Action=TextGroupList&GroupId='.$Group['Id'].'">'.$Group['Name'].'</a><br />'; 61 65 } 62 66 return($Output); … … 78 82 $Output = $this->TranslationGroupEdit($_GET['GroupId']); 79 83 break; 80 case 'T ranslationGroupList':81 $Output = $this->T ranslationGroupItemList($_GET['GroupId']);84 case 'TextGroupList': 85 $Output = $this->TextGroupList($_GET['GroupId']); 82 86 break; 83 87 case 'MangosImport':
Note:
See TracChangeset
for help on using the changeset viewer.