Changeset 225 for quests/dictionary.php


Ignore:
Timestamp:
Jan 14, 2008, 7:51:30 PM (17 years ago)
Author:
maron
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • quests/dictionary.php

    r217 r225  
    7070          </form>
    7171          ';   
     72    $WinWidth = 230;
    7273  } else  {
     74    $WinWidth = 345;
    7375    if (array_key_exists('AJWord', $_POST)) {
    7476      $AJWord = $_POST['AJWord'];
     
    7981                              VALUES ('$AJWord', '$CZWord', '$description', '$user');");
    8082      echo 'Záznam byl ulo¾en!';
     83      $WinWidth = 325;
    8184    }   
    8285  }
     
    100103    echo '</form></td></tr>';
    101104    echo '<tr><td>
    102     <p style="  overflow: auto;  width: 100%; height: 345px;">';
     105    <p style="  overflow: auto;  width: 100%; height: '.$WinWidth.'px;">';
    103106    //todo select   
    104107    if ($Search <> '') {
    105108      $sql = "SELECT * FROM `dictionary` WHERE LOWER(AJWord) LIKE LOWER('%$Search%') OR LOWER(CZWord) LIKE LOWER('%$Search%') OR LOWER(description) LIKE LOWER('%$Search%')";
    106109    } else {
    107       $sql = "SELECT * FROM `dictionary` Limit 50";
     110      $sql = "SELECT * FROM `dictionary`";
    108111    }
    109112        echo '<table border="1" cellpadding="2" cellspacing="0" width="100%">';
Note: See TracChangeset for help on using the changeset viewer.