Changeset 216 for trunk/action.php
- Timestamp:
- Jun 24, 2009, 10:30:42 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/action.php
r213 r216 52 52 echo ('<a href="?action=dbkit&Take">Opravit data v sloupci Take</a><br />'); 53 53 echo ('<a href="?action=dbkit&ShortCut">Opravit data v sloupci ShortCut</a><br />'); 54 55 echo ('<br /><form action="?action=dbkit" method="post">'); 56 echo('Vymazat log typ : <input type="text" name="Type" /> '); 57 echo('<input type="submit" value="Vymazat" /><br />'); 58 echo('</form><br />'); 59 60 if (array_key_exists('Type',$_POST)) { 61 $sql = 'DELETE FROM log WHERE Type = '.$_POST['Type']; 62 $Database->SQLCommand($sql); 63 WriteLog('Vymazán log '.$_POST['Type'], 4); 64 echo (' Vymazán log '.$_POST['Type']); 65 } 54 66 55 67 if (array_key_exists('find',$_POST)) { 56 68 echo ('Začínám nahrazovat: <br />'); 57 69 $find = $_POST['find']; … … 123 135 foreach($Tables as $Table) { 124 136 echo ($Table.' '); 125 $sql = 'SELECT gs_orig.ID, 126 gs_tran.entry, 127 gs_tran.ShortCut as ShortCut_tran, 128 gs_orig.ShortCut as ShortCut_orig 129 FROM '.$Table.' as gs_tran 130 JOIN '.$Table.' as gs_orig ON gs_orig.entry = gs_tran.entry 131 WHERE gs_tran.Language <> 0 AND gs_tran.ShortCut <> gs_orig.ShortCut'; 132 137 $sql = 'SELECT gs_orig.ID, gs_tran.entry, gs_tran.ShortCut as ShortCut_tran, gs_orig.ShortCut as ShortCut_orig FROM '.$Table.' as gs_tran JOIN '.$Table.' as gs_orig ON gs_orig.entry = gs_tran.entry WHERE gs_tran.Language <> 0 AND gs_tran.ShortCut <> gs_orig.ShortCut'; 133 138 $ID = $Database->SQLCommand($sql); 134 139 while ($Line = mysql_fetch_assoc($ID)) {
Note:
See TracChangeset
for help on using the changeset viewer.