Exemplo n.º 1
0
// ekotetaan javascriptiä jotta saadaan pdf:ät uuteen ikkunaan
js_openFormInNewWindow();
echo "<SCRIPT type='text/javascript'>\n    <!--\n      function sarjanumeronlisatiedot_popup(tunnus) {\n        window.open('{$PHP_SELF}?tunnus='+tunnus+'&toiminto=sarjanumeronlisatiedot_popup', '_blank' ,'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,left=0,top=0,width=800,height=600');\n      }\n    //-->\n    </SCRIPT>";
$sarjalopetus = "";
if ($lopetus != "") {
    $sarjalopetus .= "{$lopetus}/SPLIT/";
}
$sarjalopetus .= "{$palvelin2}tilauskasittely/sarjanumeroseuranta.php?ostorivitunnus={$ostorivitunnus}//from={$from}//aputoim={$aputoim}//muut_siirrettavat={$muut_siirrettavat}//toiminto=//sarjatunnus={$sarjatunnus}//otunnus={$otunnus}//sarjanumero_haku={$sarjanumero_haku}//tuoteno_haku={$tuoteno_haku}//nimitys_haku={$nimitys_haku}//varasto_haku={$varasto_haku}//ostotilaus_haku={$ostotilaus_haku}//myyntitilaus_haku={$myyntitilaus_haku}";
if ($toiminto == "sarjanumeronlisatiedot_popup") {
    @(include 'sarjanumeron_lisatiedot_popup.inc');
    if ($kukarow["extranet"] != "") {
        $hinnat = 'MY';
    } else {
        $hinnat = '';
    }
    list($divitx, , , , ) = sarjanumeronlisatiedot_popup($tunnus, '', '', $hinnat, '');
    echo "{$divitx}";
    exit;
}
// Tarkastetaan käsitelläänkö lisätietoja
if (table_exists("sarjanumeron_lisatiedot")) {
    $query = "SELECT count(*) kpl\n            FROM sarjanumeron_lisatiedot\n            WHERE yhtio = '{$kukarow['yhtio']}'";
    $sarjatestres = pupe_query($query);
    $sarjatarkrow = mysql_fetch_assoc($sarjatestres);
    if ($sarjatarkrow["field"] == "Suurin_henkiloluku") {
        $oletussarja = "JOO";
        $sarjanumeronLisatiedot = TRUE;
    }
} else {
    $sarjanumeronLisatiedot = FALSE;
}
Exemplo n.º 2
0
         piirra_hinta($row, $oleasrow, $valuurow, $vari, $classmidl, $hinta_rajaus, $poistetut, $lisatiedot);
         if ($lisatiedot != "" and $kukarow["extranet"] == "") {
             echo "<td valign='top' class='{$vari}' {$classmidl}>{$row['aleryhma']}<br>{$row['status']}</td>";
         }
         hae_ja_piirra_saldo($row, $yhtiot, $oleasrow);
         piirra_ostoskoriin_lisays($row);
         echo "</tr>";
         if ($verkkokauppa != "") {
             if (stripos($_SERVER["HTTP_USER_AGENT"], "MSIE") !== FALSE) {
                 echo "<tr><td colspan='6' class='back' style='padding:0px; margin:0px;height:0px;'><div id='T_{$row['tuoteno']}'></div></td></tr>";
             } else {
                 echo "<tr id='T_{$row['tuoteno']}'></tr>";
             }
         }
         if (isset($row["sarjatunnus"]) and $row["sarjatunnus"] > 0 and $kukarow["extranet"] == "" and $verkkokauppa == "" and function_exists("sarjanumeronlisatiedot_popup")) {
             list($kommentit, $text_output, $kuvalisa_bin, $ostohinta, $tuotemyyntihinta) = sarjanumeronlisatiedot_popup($row["sarjatunnus"], $row["sarjayhtio"], '', '', '100%', '');
             if ($lisatiedot != "") {
                 echo "<tr class='aktiivi'><td class='back'>&nbsp;</td><td colspan='7'>{$kommentit}</td></tr>";
             } else {
                 echo "<tr class='aktiivi'><td class='back'>&nbsp;</td><td colspan='6'>{$kommentit}</td></tr>";
             }
         }
     }
     echo "</table>";
     echo "</form>";
     if ($hae_ja_selaa_row['selite'] == 'B') {
         echo "</div>";
     }
 } else {
     echo "<br/>", t("Yhtään tuotetta ei löytynyt"), "!";
 }