Ignore:
Timestamp:
07/26/11 10:51:38 (13 years ago)
Author:
Daniela Dorner
Message:
added various new features (min, max, user, show/hide of columns, ...) and changed layout
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/db_po/insert_po.php

    r11505 r11599  
    4646    if (empty($_GET["fOriginalIndex"]))
    4747        $_GET["fOriginalIndex"]="";
    48 
     48    if (empty($_GET["fMin"]))
     49        $_GET["fMin"]="";
     50    if (empty($_GET["fMax"]))
     51        $_GET["fMax"]="";
     52
     53    if (empty($_SERVER['PHP_AUTH_USER']))
     54    {
     55        // be careful, this output is evaluated by UpdateRow() in po.js
     56        echo "user empty";
     57        return;
     58    }
    4959    include("db.php");
    5060    $db_id = mysqli_connect($host, $user, $pw, $db);
     
    142152        if (!empty($_GET["fOriginalIndex"]))
    143153            $query0.=", fOriginalIndex='".$_GET["fOriginalIndex"]."'";
     154        if (!empty($_GET["fMin"]))
     155            $query0.=", fMin='".$_GET["fMin"]."'";
     156        if (!empty($_GET["fMax"]))
     157            $query0.=", fMax='".$_GET["fMax"]."'";
     158        $query0.=", fUser='".$_SERVER['PHP_AUTH_USER']."'";
    144159        $query0.=", fKey1='".$_GET["fKey1"]."'";
    145160        $query0.=", fKey2='.".$_GET["fKey2"]."'";
Note: See TracChangeset for help on using the changeset viewer.