Changeset 800 for trunk/Modules/ClientVersion/ClientVersion.php
- Timestamp:
- Mar 16, 2014, 11:15:43 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/ClientVersion/ClientVersion.php
r790 r800 13 13 $this->Dependencies = array(''); 14 14 } 15 15 16 16 function Start() 17 17 { … … 38 38 return($Output); 39 39 } 40 40 41 41 function ShowItem() 42 42 { 43 $YesNo = array('Ne', 'Ano'); 44 $DbResult = $this->System->Database->query('SELECT * FROM ClientVersion WHERE Id='.($_GET['id']*1)); 45 if($DbResult->num_rows > 0) 46 { 47 $Version = $DbResult->fetch_assoc(); 48 49 $Output = '<h3>'.T('Client version').'</h3>'; 50 $Output .= '<table class="BaseTable">'. 43 if(array_key_exists('id', $_GET)) 44 { 45 $YesNo = array('Ne', 'Ano'); 46 $DbResult = $this->System->Database->query('SELECT * FROM ClientVersion WHERE Id='.($_GET['id']*1)); 47 if($DbResult->num_rows > 0) 48 { 49 $Version = $DbResult->fetch_assoc(); 50 51 $Output = '<h3>'.T('Client version').'</h3>'; 52 $Output .= '<table class="BaseTable">'. 51 53 '<tr><td>'.T('Version').'</td><td>'.$Version['Version'].'</td></tr>'. 52 54 '<tr><td>'.T('More information').'</td><td><a href="http://www.wowwiki.com/Patch_'.$Version['Version'].'">wowwiki.com'. … … 58 60 '</table>'; 59 61 $Output .= '<div><a href="?">'.T('All versions list').'</a></div>'; 60 if($Version['Imported']) 62 if($Version['Imported']) 61 63 $Output .= '<div><a href="'.$this->System->Link('/progress/?Version='.$Version['Version']).'">'.T('Progress').'</a></div>'; 62 } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL); 64 } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL); 65 } else $Output = ShowMessage(T('Item not found'), MESSAGE_CRITICAL); 63 66 return($Output); 64 67 } 65 68 66 69 function ShowList() 67 { 70 { 68 71 $this->Title = T('Game version'); 69 72 $DbResult = $this->System->Database->query('SELECT COUNT(*) FROM `ClientVersion`'); 70 73 $DbRow = $DbResult->fetch_row(); 71 $PageList = GetPageList($DbRow[0]); 74 $PageList = GetPageList($DbRow[0]); 72 75 73 76 $Output = '<h3>'.T('Game version').'</h3>'. … … 75 78 76 79 $TableColumns = array( 77 array('Name' => 'Version', 'Title' => T('Version')), 78 array('Name' => 'BuildNumber', 'Title' => T('Build')), 79 array('Name' => 'ReleaseDate', 'Title' => T('Release date')), 80 array('Name' => 'Title', 'Title' => T('Title')), 80 array('Name' => 'Version', 'Title' => T('Version')), 81 array('Name' => 'BuildNumber', 'Title' => T('Build')), 82 array('Name' => 'ReleaseDate', 'Title' => T('Release date')), 83 array('Name' => 'Title', 'Title' => T('Title')), 81 84 array('Name' => 'Imported', 'Title' => T('Imported')), 82 85 ); … … 84 87 $Output .= '<table class="BaseTable">'. 85 88 $Order['Output']; 86 89 87 90 $YesNo = array('Ne', 'Ano'); 88 91 … … 97 100 $Output .= '</table>'. 98 101 $PageList['Output']; 99 return($Output); 102 return($Output); 100 103 } 101 104 }
Note:
See TracChangeset
for help on using the changeset viewer.