Changeset 104
- Timestamp:
- Feb 18, 2009, 8:48:48 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/TranslationList.php
r97 r104 43 43 } 44 44 45 if($Action != 'userall') echo('Skupina: <strong>'.$TranslationTree[$GroupId]['Name'].'</strong><br />'); 45 if($Action != 'userall') 46 echo('Skupina: <strong>'.$TranslationTree[$GroupId]['Name'].'</strong><br />'); 46 47 47 48 function WritePages($Address, $Where) … … 91 92 } 92 93 93 echo('<table border="1" cellpadding="2" cellspacing="0"><tr>94 echo('<table class="BaseTable"><tr> 94 95 <th><a href="?group='.$GroupId.'&action='.$address.'&order=ID&desc='.$desc.'">Pořadové číslo</a></th> 95 96 <th><a href="?group='.$GroupId.'&action='.$address.'&order=entry&desc='.$desc.'">Identifikační číslo</a></th> … … 185 186 if($Action == 'userall') 186 187 { 187 $user = $_GET['user']; 188 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 189 <strong>Vypsání všech textů od uživatele: </strong><br /><br />'); 190 191 $WhereUser = ' User = '.$user; 192 foreach($TranslationTree as $Group) { 193 if($Group['TablePrefix'] != '') { 194 $sql = 'SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Group['TablePrefix'].'.user) as User FROM '.$Group['TablePrefix'].' Where '.$WhereUser; 188 $ID = $Database->SQLCommand('SELECT user FROM user WHERE id = '.$_GET['user']); 189 $Line = mysql_fetch_row($ID); 190 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a>'. 191 ' -> <strong>Počty překladů uživatele '.$Line[0].': </strong><br /><br />'); 192 193 echo('<table class="BaseTable"><tr><th>Skupina</th><th>Překladů</th></tr>'); 194 $Total = 0; 195 foreach($TranslationTree as $Group) 196 if($Group['TablePrefix'] != '') 197 { 198 $sql = 'SELECT COUNT(*) FROM '.$Group['TablePrefix'].' WHERE user='.$_GET['user']; 195 199 $ID = $Database->SQLCommand($sql); 196 200 $Line = mysql_fetch_row($ID); 197 if ($Line) {198 201 $GroupId = $Group['Id']; 199 echo ('<br />Texty: <b>'.$Group['Name'].'</b>');200 WriteQuests($sql, '', 'userall');202 echo('<tr><td><a href="?group='.$GroupId.'&action=userid&user='.$_GET['user'].'">'.$Group['Name'].'</a></td><td>'.$Line[0].'</td></tr>'); 203 $Total += $Line[0]; 201 204 } 202 } 203 } 205 echo('<tr><td><strong>Celkem</strong></td><td><strong>'.$Total.'</strong></td></tr>'); 206 echo('</table>'); 207 } 208 209 if($Action == 'userid') 210 { 211 $ID = $Database->SQLCommand('SELECT user FROM user WHERE id = '.$_GET['user']); 212 $Line = mysql_fetch_row($ID); 213 echo('<a title="Zobrazit texty podle vlastního filtru" href="?group='.$GroupId.'&action=filter">Filtr textů</a> -> 214 <strong>Vypis překladů uživatele '.$Line[0].': </strong><br /><br />'); 215 WriteQuests('SELECT *, (SELECT user.user FROM user WHERE user.id = '.$Table.'.user) as User FROM '.$Table.' Where user = '.$_GET['user'], '', 'userid'); 204 216 } 205 217 … … 221 233 WriteQuests($sql, '', 'search='.$Search); 222 234 } 223 235 224 236 if($Action == 'searchentry') 225 237 { -
trunk/style/style.css
r83 r104 1 body { 2 font-size: 14px; 3 font-family: Verdana, Arial, SunSans-Regular, Sans-Serif; 4 color:#564b47; 5 padding:0px; 6 margin:0px; 7 } 8 a {color: #DB7093;} 9 a:visited {color:#c43300;} 10 a:hover {color: #c43300;} 11 a:active { color:#000000;} 12 13 /**********vertical menu***************/ 14 .verticalmenu ul{ 1 body 2 { 3 font-size: 14px; 4 font-family: Verdana, Arial, SunSans-Regular, Sans-Serif; 5 color: #564b47; 6 padding: 0px; 7 margin: 0px; 8 } 9 10 a 11 { 12 color: #DB7093; 13 } 14 15 a:visited 16 { 17 color:#c43300; 18 } 19 20 a:hover 21 { 22 color: #c43300; 23 } 24 25 a:active 26 { 27 color:#000000; 28 } 29 30 .verticalmenu ul 31 { 15 32 list-style:none; 16 33 /*list-style-image: url("bullet.gif")*/ 17 18 19 34 padding: 10px; 20 35 margin: 0px; 21 36 } 22 37 23 .verticalmenu li, .verticalmenua { 38 .verticalmenu li, .verticalmenua 39 { 24 40 display: block; 25 41 font: bold 12px Verdana, Arial, Helvetica, sans-serif; … … 33 49 } 34 50 35 .verticalmenu a:hover{ 36 background: url('../images/menuhover.gif') no-repeat; 37 color: #dc4d1b; 38 } 39 40 41 /* ----------banner for logo-------------- */ 42 #banner { 43 height:75px; 44 text-align: center; 45 background: url('../images/header3.jpg') repeat bottom; 46 background-color: #ffffff; 47 48 padding: 0px; 49 margin: 0px; 50 } 51 #banner1 { 52 width: 75px; 53 background: url('../images/header1.jpg') no-repeat left; 54 } 55 #banner2 { 56 width: 75px; 57 background: url('../images/header2.jpg') no-repeat top right; 58 } 59 #banner img {padding:10px 0px;} 60 #bannertitle{ font-size:24px;font-weight:bold; } 61 #bannertable { 51 .verticalmenu a:hover 52 { 53 background: url('../images/menuhover.gif') no-repeat; 54 color: #dc4d1b; 55 } 56 57 #banner 58 { 59 height:75px; 60 text-align: center; 61 background: url('../images/header3.jpg') repeat bottom; 62 background-color: #ffffff; 63 padding: 0px; 64 margin: 0px; 65 } 66 67 #banner1 68 { 69 width: 75px; 70 background: url('../images/header1.jpg') no-repeat left; 71 } 72 73 #banner2 74 { 75 width: 75px; 76 background: url('../images/header2.jpg') no-repeat top right; 77 } 78 79 #banner img 80 { 81 padding: 10px 0px; 82 } 83 84 #bannertitle 85 { 86 font-size:24px; 87 font-weight:bold; 88 } 89 90 #bannertable 91 { 62 92 padding: 0px; 63 93 margin: 0px; … … 65 95 width: 100%; 66 96 } 67 /***********okraje**************/ 68 #border-left { 69 width: 14px; 70 background: url('../images/border-left.jpg') repeat top right; 71 } 72 #border-top { 73 width: 14px; 74 background: url('../images/border-top.jpg') repeat top right; 75 } 76 77 /***************Porovnávání textu**********/ 78 #edit { 79 background-color: #DB7093; 97 98 #border-left 99 { 100 width: 14px; 101 background: url('../images/border-left.jpg') repeat top right; 102 } 103 104 #border-top 105 { 106 width: 14px; 107 background: url('../images/border-top.jpg') repeat top right; 108 } 109 110 #edit 111 { 112 background-color: #DB7093; 80 113 } 81 114 … … 93 126 background-color: #F0F0F0; 94 127 95 96 margin-left: auto; 97 margin-right: auto; 98 background: #E8E8E8 url('../images/menubottom.jpg') no-repeat bottom right; 128 margin-left: auto; 129 margin-right: auto; 130 background: #E8E8E8 url('../images/menubottom.jpg') no-repeat bottom right; 99 131 } 100 132 … … 212 244 padding-left: 10px; 213 245 } 214 215 /**************** form *******************/ 216 input, select { 217 background-color: #E8E8E8; 218 border: 1px #c43300 solid; 219 font-size: 11px; 220 font-family: Verdana, Arial, SunSans-Regular, Sans-Serif; 221 } 222 textarea { 223 background-color: white; 224 border: 1px #c43300 solid; 225 font-size: 11px; 226 font-family: Verdana, Arial, SunSans-Regular, Sans-Serif; 227 } 228 229 246 247 input, select 248 { 249 background-color: #E8E8E8; 250 border: 1px #c43300 solid; 251 font-size: 11px; 252 font-family: Verdana, Arial, SunSans-Regular, Sans-Serif; 253 } 254 255 textarea 256 { 257 background-color: white; 258 border: 1px #c43300 solid; 259 font-size: 11px; 260 font-family: Verdana, Arial, SunSans-Regular, Sans-Serif; 261 } 262 263
Note:
See TracChangeset
for help on using the changeset viewer.