Changeset 35
- Timestamp:
- Oct 15, 2008, 9:40:03 PM (16 years ago)
- Location:
- branches/3
- Files:
-
- 1 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3/class/database.php
r34 r35 15 15 { 16 16 $this->LastQuery = $Query; 17 if ($this->error <> '' and $this->Debug) $this->error.': '.$this->LastQuery; 17 18 return(parent::query($Query)); 18 19 } … … 22 23 $this->LastQuery = "SELECT ".$What." FROM `".$this->Prefix.$Table."` WHERE ".$Condition; 23 24 $resul = $this->query($this->LastQuery); 24 if ($this->error <> '' and $ Debug)$this->error.': '.$this->LastQuery;25 if ($this->error <> '' and $this->Debug) echo $this->error.': '.$this->LastQuery; 25 26 26 27 $this->LastNumRows = $resul->num_rows; … … 37 38 $this->LastQuery = "DELETE FROM `".$this->Prefix.$Table."` WHERE ".$Condition; 38 39 $this->query($this->LastQuery); 39 if ($this->error <> '' and $Debug) $this->error.': '.$this->LastQuery;40 if ($this->error <> '' and $Debug) echo $this->error.': '.$this->LastQuery; 40 41 } 41 42 … … 55 56 $this->LastQuery = 'INSERT INTO `'.$this->Prefix.$Table.'` ('.$Name.') VALUES('.$Values.')'; 56 57 $this->query($this->LastQuery); 57 if ($this->error <> '' and $Debug) $this->error.': '.$this->LastQuery;58 if ($this->error <> '' and $Debug) echo $this->error.': '.$this->LastQuery; 58 59 } 59 60 … … 70 71 $this->LastQuery = 'UPDATE `'.$this->Prefix.$Table.'` SET '.$Values.' WHERE ('.$Condition.')'; 71 72 $this->query($this->LastQuery); 72 if ($this->error <> '' and $ Debug)$this->error.': '.$this->LastQuery;73 if ($this->error <> '' and $this->Debug) echo $this->error.': '.$this->LastQuery; 73 74 } 74 75 -
branches/3/events.php
r29 r35 10 10 $Result = $user->Logout(); 11 11 } 12 13 /********************translation events***********/ 14 15 if (array_key_exists('translation', $_GET)) { 16 $translations = $_GET['translation']; 17 } 18 //users[]=206& 12 19 13 20 -
branches/3/frontend.php
r33 r35 75 75 while($DbRow = $Query->fetch_array()) 76 76 { 77 echo ''.$DbRow['Name'].' ';77 echo ''.$DbRow['Name'].'<br />'; 78 78 } 79 79 echo '</p>'; … … 119 119 </form>'; 120 120 } // END function WriteLogin 121 122 function WriteTranslation($id, $show_en = true, $show_title = true) 123 { // BEGIN function WriteTranslation 124 global $database; 125 if ($show_en) $lead_translate = count($id); else $lead_translate = 0; 126 for ($i=0;$i<count($id) ;++$i ) { //seeking translated texts 127 $translation[$i] = new translation($id[$i], $database); 128 } 129 //seeking en text 130 if ($show_en) { 131 $translation[count($id)] = new translation($translation[0]->data['en_Id'], $database); 132 if ($translation[0]->data['en_Id'] == $translation[count($id)]->data['en_Id']) { 133 unset($translation[count($id)]); 134 $lead_translate = 0; 135 } 136 } 137 echo '<table>'; 138 139 foreach ($translation[$lead_translate]->text as $key=>$value) { 140 echo '<tr>'; 141 //writening colum name 142 if ($show_title) echo '<td>'.$key.'</td>'; 143 //writening texts 144 for ($i=count($translation)-1;$i>-1 ;--$i ) { 145 if (isset($translation[$i]->text[$key])) 146 echo '<td width="200">'.htmlspecialchars($translation[$i]->text[$key]).'</td>'; 147 else 148 echo '<td width="200"> </td>'; 149 } 150 echo '</tr>'; 151 } 152 echo '</table>'; 153 } // END function WriteTranslation 121 154 122 155 ?> -
branches/3/index.php
r29 r35 7 7 8 8 if (isset($Result) == false) { 9 9 10 switch ($Action) { 10 11 default: echo HOME_PAGE; … … 14 15 break; 15 16 case 'Rule': echo '<p>'.RULE.'</p>'; 16 break; 17 break; 18 case 'Translation': WriteTranslation($translations); 19 break; 17 20 18 21 } -
branches/3/language_cz.php
r29 r35 26 26 define('BAD_PASSWORD', 'Špatné heslo.'); 27 27 define('RULE_UNCHECK', 'Musíte souhlasit s pravidly'); 28 define('TRANSLATION_MISSING', 'Překlad nenalezen'); 28 29 define('USER_TIMEOUT', 300); // in seconds 29 30 -
branches/3/style.css
r29 r35 147 147 border-spacing: 0; 148 148 border: 1px #c43300 solid; 149 padding: 0;149 padding: 2px; 150 150 } 151 151
Note:
See TracChangeset
for help on using the changeset viewer.