Beispiel #1
0
        $stkupd = 0;
    } else {
        $stkupd = $stkupd;
    }
    echo $prnt;
    if ($ordr == "") {
        $ordr = 0;
    } else {
        $ordr = $ordr;
    }
    $pht1 = $_FILES["tbphtblk"]["name"];
    //(isset($_POST['tbpht1']))? $_POST['tbpht1']:"";
    $trsts = 0;
    $upsts = 1;
    require "dbfl.php";
    if (fnsv($umd, $prid, $tit, $prnt, $delvmthd, $stkupd, $ordr, $pht1, $trsts, $mode)) {
        print "<script type='text/javascript' language='javascript'>window.location='index.php?id=svcat&pgmd=" . $umd . "&prid=-1&action=ok';</script>";
    } else {
        print "<script type='text/javascript' language='javascript'>window.location='index.php?id=svcat&pgmd=" . $umd . "&prid=-1&action=notok';</script>";
    }
}
function fnsv($upmd, $ppid, $ptitle, $pprnt, $pdelvmthd, $pstkupd, $pordr, $ppht1, $ptsts, $mde)
{
    require "dbfl.php";
    $kcon = mysqli_connect($hst, $nu, $dp, $dab) or die(mysqli_error());
    if (!$kcon) {
        die('Could not connect. Try again later');
    }
    if ($upmd == "nw") {
        $propno = 1;
        $result = mysqli_query($kcon, "select ifnull(max(IC_UID),0)  'prpno' from item_category ");
Beispiel #2
0
    $rordr = 0;
    $rumid = -1;
    $nortedt = 1;
    $nopksl = 1;
    $mumid = -1;
    //if ($ordr == "" )
    //{$ordr = 0;}
    //else
    //{$ordr=$ordr;}
    //echo "prc" . $ofrprc;
    $pht1 = $_FILES["tbphtblk"]["name"];
    //(isset($_POST['tbpht1']))? $_POST['tbpht1']:"";
    $trsts = 1;
    $upsts = 1;
    require "dbfl.php";
    if (fnsv($umd, $itid, $cyid, $ordr, $code, $tit, $desc, $brcode, $qrcode, $prid, $date, $brnd, $typ, $catg, $txct, $pht1, $minqty, $mumid, $maxqty, $mumid, $pck, $punt, $sunt, $isstkd, $lmid, $strpcs, $rordr, $rumid, $nortedt, $nopksl, $prc, $ofrprc, $ofrmsg, $curstk, $trsts, $upsts)) {
        print "<script type='text/javascript' language='javascript'>window.location='index.php?id=svitm&pgmd=" . $umd . "&itid=-1&action=ok';</script>";
    } else {
        print "<script type='text/javascript' language='javascript'>window.location='index.php?id=svitm&pgmd=" . $umd . "&itid=-1&action=notok';</script>";
    }
}
function fnsv($upmd, $pitid, $pcyid, $pordr, $pcode, $ptit, $pdesc, $pbrcode, $pqrcode, $pprid, $pdate, $pbrnd, $ptyp, $pcatg, $ptxct, $ppht1, $pminqty, $pmumid, $pmaxqty, $pmumid, $ppck, $ppunt, $psunt, $pisstkd, $plmid, $pstrpcs, $prordr, $prumid, $pnortedt, $pnopksl, $pprc, $pofrprc, $pofrmsg, $pcurstk, $ptrsts, $pupsts)
{
    require "dbfl.php";
    $kcon = mysqli_connect($hst, $nu, $dp, $dab) or die(mysqli_error());
    if (!$kcon) {
        die('Could not connect. Try again later');
    }
    $propno = -1;
    if ($upmd == "nw") {
        $result = mysqli_query($kcon, "select ifnull(max(IM_UID),0)  'prpno' from item_master ");
Beispiel #3
0
    echo "md" . $umd . ", id " . $prid;
    $tit = isset($_POST['tbCatTitle']) ? $_POST['tbCatTitle'] : "";
    $prnt = isset($_POST['Parent']) ? $_POST['Parent'] : "";
    $ordr = isset($_POST['tbOrdr']) ? $_POST['tbOrdr'] : "";
    if ($ordr == "") {
        $ordr = 0;
    } else {
        $ordr = $ordr;
    }
    $pht1 = $_FILES["tbphtblk"]["name"];
    //(isset($_POST['tbpht1']))? $_POST['tbpht1']:"";
    $trsts = 0;
    $upsts = 1;
    //$imgprfx = "br_" ;
    require "dbfl.php";
    if (fnsv($umd, $prid, $tit, $prnt, $ordr, $pht1, $trsts, $brnupflprfx, $brnrzflprfx)) {
        print "<script type='text/javascript' language='javascript'>window.location='index.php?id=svbrn&pgmd=" . $umd . "&prid=-1&action=ok';</script>";
    } else {
        print "<script type='text/javascript' language='javascript'>window.location='index.php?id=svbrn&pgmd=" . $umd . "&prid=-1&action=notok';</script>";
    }
}
function fnsv($upmd, $ppid, $ptitle, $pprnt, $pordr, $ppht1, $ptsts, $pimgprfx, $rszimgprfx)
{
    require "dbfl.php";
    $kcon = mysqli_connect($hst, $nu, $dp, $dab) or die(mysqli_error());
    if (!$kcon) {
        die('Could not connect. Try again later');
    }
    if ($upmd == "nw") {
        $result = mysqli_query($kcon, "select ifnull(max(BR_UID),0)  'prpno' from brand_master ");
        //if (!$result)
Beispiel #4
0
<?php 
//$mode="R";
//echo "<br>bef pgld";
echo "Saving. Please wait...";
if (isset($_POST['tbCatTitle'])) {
    $umd = isset($_POST['tbMod']) ? $_POST['tbMod'] : "";
    $prid = isset($_POST['tbId']) ? $_POST['tbId'] : "";
    $tit = isset($_POST['tbCatTitle']) ? $_POST['tbCatTitle'] : "";
    $trsts = 0;
    $upsts = 1;
    //$imgprfx = "br_" ;
    require "dbfl.php";
    if (fnsv($umd, $prid, $tit)) {
        print "<script type='text/javascript' language='javascript'>window.location='index.php?id=svpak&pgmd=" . $umd . "&prid=-1&action=ok';</script>";
    } else {
        print "<script type='text/javascript' language='javascript'>window.location='index.php?id=svpak&pgmd=" . $umd . "&prid=-1&action=notok';</script>";
    }
}
function fnsv($upmd, $ppid, $ptitle)
{
    require "dbfl.php";
    $kcon = mysqli_connect($hst, $nu, $dp, $dab) or die(mysqli_error());
    if (!$kcon) {
        die('Could not connect. Try again later');
    }
    $sverr = 0;
    try {
        if ($upmd == "nw") {
            $sqlstr = "insert into pack_master ( PK_NAME,PK_PNAME,PK_DESC,PK_LT,PK_LUM_ID,PK_WD,PK_DUM_ID,PK_HT,PK_HUM_ID,PK_WT,PK_WUM_ID,PK_MULT,PK_MUM_ID,PK_ST_ID) values ('" . $ptitle . "','" . $ptitle . "','',0,-1,0,-1,0,-1,0,-1,0,1,1)";
            echo $sqlstr;