• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP logg函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中logg函数的典型用法代码示例。如果您正苦于以下问题:PHP logg函数的具体用法?PHP logg怎么用?PHP logg使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了logg函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: addaemploi

function addaemploi($id_aemploi, $montant, $date_paiement, $mode_paiement, $ref_pj, $pj)
{
    global $db;
    $nextid = getnextidtable('autorisation_emploi');
    $usrid = $_SESSION['userid'];
    $date = date('Y-m-d-', strtotime($date_paiement));
    $values["pj"] = MySQL::SQLValue($pj);
    $values["ref_pj"] = MySQL::SQLValue($ref_pj);
    $values["id_aemploi"] = MySQL::SQLValue($id_aemploi);
    $values["mode_paiement"] = MySQL::SQLValue($mode_paiement);
    $values["date_paiement"] = MySQL::SQLValue($date);
    $values["montant"] = MySQL::SQLValue($montant);
    $values["addby"] = MySQL::SQLValue($usrid);
    if (!$db->InsertRow("autorisation_emploi", $values)) {
        $db->Kill($db->Error());
        return false;
    } else {
        $sql = $db->BuildSQLInsert("autorisation_emploi", $values);
        logg('Enregistrement Autorisation Emploi ', 246, $nextid, $_SESSION['userid']);
        if ($pj != "") {
            $basedir = "upload/Autorisation";
            if (!file_exists($basedir)) {
                mkdir($basedir, 0, true);
            }
            $newdir = $basedir . "/";
            copyfile($pj, $nextid, $newdir, "Attachement_autorisation_");
            autoarchive($newdir . changnom($pj, $nextid, 'Attachement_autorisation_'), "Fichier joint autorisation emploi {$nextid}", 246, $nextid, "autorisation_emploi", "pj", $_SESSION['userid'], cryptage(session::get('service'), 0));
        }
    }
    return true;
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:31,代码来源:addaemploi_m.php


示例2: edit_fournisseur

function edit_fournisseur($rs, $nom, $prenom, $adr, $if, $ville, $pays, $tel, $mail, $mobile, $fax, $id)
{
    global $db;
    $values["rs"] = MySQL::SQLValue($rs);
    $values["nom"] = MySQL::SQLValue($nom);
    $values["prenom"] = MySQL::SQLValue($prenom);
    $values["adr"] = MySQL::SQLValue($adr);
    $values["if"] = MySQL::SQLValue($if);
    $values["ville"] = MySQL::SQLValue($ville);
    $values["pays"] = MySQL::SQLValue($pays);
    $values["tel"] = MySQL::SQLValue($tel);
    $values["email"] = MySQL::SQLValue($mail);
    $values["mobile"] = MySQL::SQLValue($mobile);
    $values["fax"] = MySQL::SQLValue($fax);
    $where["id"] = MySQL::SQLValue($id);
    // Execute the Update
    $result = $db->UpdateRows("fournisseur", $values, $where);
    if (!$result) {
        $db->Kill($db->Error());
        return false;
    } else {
        logg("Validation Entrée {$id}  ", 100, 0, $_SESSION['userid']);
        return true;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:25,代码来源:fournisseur_m.php


示例3: add_contrat

function add_contrat($nextid, $titre, $fournisseur, $date, $montant_global, $article, $paragraphe, $chapitre, $pj)
{
    global $db;
    $usrid = $_SESSION['userid'];
    $date = date('Y-m-d-', strtotime($date));
    $values["titre"] = MySQL::SQLValue($titre);
    $values["date"] = MySQL::SQLValue($date);
    $values["id_fournisseur"] = MySQL::SQLValue($fournisseur);
    $values["id_chapitre"] = MySQL::SQLValue($chapitre);
    $values["id_article"] = MySQL::SQLValue($article);
    $values["id_paragraphe"] = MySQL::SQLValue($paragraphe);
    $values["montant_global"] = MySQL::SQLValue($montant_global);
    $values["montant_paye"] = MySQL::SQLValue(0);
    $values["pourcentage"] = MySQL::SQLValue(0);
    $values["montant_rest"] = MySQL::SQLValue($montant_global);
    $values["addby"] = MySQL::SQLValue($usrid);
    if (!$db->InsertRow("contrat", $values)) {
        $db->Kill($db->Error());
        return false;
    } else {
        logg('Enregistrement Contrat Fournisseur ', 254, $nextid, $_SESSION['userid']);
        // Save PJ to archive
        if ($pj != "") {
            $basedir = "upload/contrat";
            if (!file_exists($basedir)) {
                mkdir($basedir, 0, true);
            }
            $newdir = $basedir . "/";
            copyfile($pj, $nextid, $newdir, "Attachement_contrat_");
            autoarchive($newdir . changnom($pj, $nextid, 'Attachement_contrat_'), "Fichier joint contrat fournisseur {$nextid}", 254, $nextid, "contrat", "pj", $_SESSION['userid'], cryptage(session::get('service'), 0));
        }
    }
    return true;
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:34,代码来源:addcontratf_m.php


示例4: cleanupjson

function cleanupjson() {
	logg("Cleanup json");
	$dir = "../json/";
	$files = rd($dir);
	foreach($files as $fnum => $fname) {
		
		// Stuff..
		$fpath = "{$dir}{$fname}";
		if (is_dir($fpath)) { continue; }
		
		// Clear temp files...
		if (strpos($fpath,"station_info.TMP.")!==FALSE) {
			logg(" - TMP: {$fpath}");
			unlink($fpath);
		}
		
		// Clear old station_info files..
		elseif (strpos($fpath,"station_info.")!==FALSE) {
			$timeold = time() - (60*60*24); // 60s * 60m = 1 hour // -> calced in seconds
			if (filemtime($fpath)<$timeold) {
				logg(" - OLD: {$fpath}");
				unlink($fpath);
			}
		}
		
	}
	/**/
}
开发者ID:keloxers,项目名称:icerrr,代码行数:28,代码来源:s.functions.php


示例5: editlocation

function editlocation($nextid, $nom, $adresse, $pj, $tel, $mail, $villa, $date_debut, $date_fin, $type_paiement, $montant_location, $agarantie_location)
{
    global $db;
    $usrid = $_SESSION['userid'];
    $datedebut = date('Y-m-d-', strtotime($date_debut));
    $datefin = date('Y-m-d-', strtotime($date_fin));
    $values["nomlocataire"] = MySQL::SQLValue($nom);
    $values["adresse"] = MySQL::SQLValue($adresse);
    $values["tel"] = MySQL::SQLValue($tel);
    $values["mail"] = MySQL::SQLValue($mail);
    $values["idvilla"] = MySQL::SQLValue($villa);
    $values["date_debut"] = MySQL::SQLValue($datedebut);
    $values["date_fin"] = MySQL::SQLValue($datefin);
    $values["montant"] = MySQL::SQLValue($montant_location);
    $values["depot_garantie"] = MySQL::SQLValue($agarantie_location);
    $values["type_paiement"] = MySQL::SQLValue($type_paiement);
    $where["id"] = MySQL::SQLValue($nextid);
    if (!$db->UpdateRows("contrat_location_villa", $values, $where)) {
        $db->Kill($db->Error());
        return false;
    } else {
        $sql = $db->BuildSQLInsert("contrat_location_villa", $values);
        logg('Enregistrement Location Villa ', 100, $nextid, $_SESSION['userid']);
        if ($pj != "") {
            $basedir = "upload/location";
            if (!file_exists($basedir)) {
                mkdir($basedir, 0, true);
            }
            $newdir = $basedir . "/";
            copyfile($pj, $nextid, $newdir, "Attachement_location_");
            autoarchive($newdir . changnom($pj, $nextid, 'Attachement_location_'), "Fichier joint location ville {$nextid}", 100, $nextid, "location_villa", "pj", $_SESSION['userid'], cryptage(session::get('service'), 0));
        }
        return true;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:35,代码来源:editlocation_m.php


示例6: setcontrat

function setcontrat($id, $date, $pj)
{
    global $db;
    $etat = "Résilié";
    $nextid = getnextidtable('contrat_location_villa');
    $date = date('Y-m-d-', strtotime($date));
    $values["date_resiliation"] = MySQL::SQLValue($date);
    $values["etat"] = MySQL::SQLValue($etat);
    $where["id"] = MySQL::SQLValue($id);
    if (!$db->UpdateRows("contrat_location_villa", $values, $where)) {
        $db->Kill($db->Error());
        return false;
    } else {
        $sql = $db->BuildSQLInsert("contrat_location_villa", $values);
        logg('Enregistrement Location Villa ', 233, $id, $_SESSION['userid']);
        if ($pj != "") {
            $basedir = "upload/location";
            if (!file_exists($basedir)) {
                mkdir($basedir, 0, true);
            }
            $newdir = $basedir . "/";
            copyfile($pj, $id, $newdir, "Attachement_location_");
            autoarchive($newdir . changnom($pj, $id, 'Attachement_location_'), "Fichier joint location ville {$id}", 233, $id, "contrat_location_villa", "pj_resiliation", $_SESSION['userid'], cryptage(session::get('service'), 0));
        }
        return true;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:27,代码来源:resiliercontrat_m.php


示例7: editcollecte

function editcollecte($idcontrat, $paiement, $date, $pj)
{
    global $db;
    $usrid = $_SESSION['userid'];
    $nextid = getnextidtable('collecte');
    //$date1=date_create($date);
    //$datep=date_format($date1,"Y-m-d");
    $date_paiement = date('Y-m-d-', strtotime($date));
    $values["mode_paiement"] = MySQL::SQLValue($paiement);
    $values["date_paiement"] = MySQL::SQLValue($date_paiement);
    $where["id"] = MySQL::SQLValue($idcontrat);
    if (!$db->UpdateRows("collecte", $values, $where)) {
        $db->Kill($db->Error());
        return false;
    } else {
        $sql = $db->BuildSQLInsert("collecte", $values);
        logg('Enregistrement collecte ', 201, $nextid, $_SESSION['userid']);
        if ($pj != "") {
            $basedir = "upload/collecte";
            if (!file_exists($basedir)) {
                mkdir($basedir, 0, true);
            }
            $newdir = $basedir . "/";
            copyfile($pj, $nextid, $newdir, "collecte");
            autoarchive($newdir . changnom($pj, $nextid, 'collecte'), "Fichier joint collecte {$nextid}", 201, $nextid, "collecte", "piece_jointe", $_SESSION['userid'], cryptage(session::get('service'), 0));
        }
        return true;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:29,代码来源:editcollecte_m.php


示例8: edit_quote

function edit_quote($id, $date, $montant, $pj)
{
    global $db;
    $date = date('Y-m-d-', strtotime($date));
    $values["datinsert"] = MySQL::SQLValue($date);
    $values["montant"] = MySQL::SQLValue($montant);
    $where["id"] = MySQL::SQLValue($id);
    if (!$db->UpdateRows("quotpatronal", $values, $where)) {
        $db->Kill($db->Error());
        return false;
    } else {
        $sql = $db->BuildSQLInsert("quotpatronal", $values);
        logg('Enregistrement Quote Part Patronal ', 175, $id, $_SESSION['userid']);
        if ($pj != "") {
            $basedir = "upload/quotpatronal";
            if (!file_exists($basedir)) {
                mkdir($basedir, 0, true);
            }
            $newdir = $basedir . "/";
            copyfile($pj, $id, $newdir, "Attachement_quotpatronal_");
            autoarchive($newdir . changnom($pj, $id, 'Attachement_quotpatronal_'), "Fichier joint Quote Part Patronal {$id}", 175, $id, "quotpatronal", "piece_jointe", $_SESSION['userid'], cryptage(session::get('service'), 0));
        }
        return true;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:25,代码来源:editquote_m.php


示例9: setcollecte

function setcollecte($id, $mode_paiement, $pj, $date_paiement)
{
    global $db;
    //$nextid=getnextidtable('collecte');
    $date = date('Y-m-d-', strtotime($date_paiement));
    $values["mode_paiement"] = MySQL::SQLValue($mode_paiement);
    $values["date_paiement"] = MySQL::SQLValue($date);
    $values["etat_paiement"] = MySQL::SQLValue("Payé");
    $where["id"] = MySQL::SQLValue($id);
    if (!$db->UpdateRows("collecte", $values, $where)) {
        $db->Kill($db->Error());
        return false;
    } else {
        $sql = $db->BuildSQLInsert("collecte", $values);
        logg('Enregistrement collecte ', 195, $id, $_SESSION['userid']);
        if ($pj != "") {
            $basedir = "upload/collecte";
            if (!file_exists($basedir)) {
                mkdir($basedir, 0, true);
            }
            $newdir = $basedir . "/";
            copyfile($pj, $id, $newdir, "Attachement_collecte_");
            autoarchive($newdir . changnom($pj, $id, 'Attachement_collecte_'), "Fichier joint collecte  {$id}", 195, $id, "collecte", "piece_jointe", $_SESSION['userid'], cryptage(session::get('service'), 0));
        }
        return true;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:27,代码来源:paiementlocat_m.php


示例10: editnote

function editnote($objet, $note, $id, $dat)
{
    global $db;
    $date = date('Y-m-d', strtotime($dat));
    $getan = date('Y', strtotime($dat));
    $usrid = $_SESSION['userid'];
    $values["objet"] = MySQL::SQLValue($objet);
    $values["dat"] = MySQL::SQLValue($date);
    $where["id"] = MySQL::SQLValue($id);
    // Execute the insert
    $result = $db->UpdateRows("noteservice", $values, $where);
    // ajout champs table synchrone
    $sql = $db->BuildSQLUpdate("noteservice", $values, $where);
    $valuesf["req"] = MySQL::SQLValue($sql);
    $r = $db->InsertRow("temprequet", $valuesf);
    // If we have an error
    if (!$result) {
        // Show the error and kill the script
        $db->Kill('Error Update');
        return false;
    } else {
        logg('Modification Note de service', 12, $id, $_SESSION['userid']);
        $basedir = "upload/noteservice/{$getan}";
        // save file
        if (!file_exists($basedir)) {
            mkdir($basedir, 0, true);
        }
        $newdir = $basedir . "/";
        if ($note != "") {
            copyfile($note, $id, $newdir, "note_");
            //autoarchive($newdir.changnom($note,$id,'note_'),"Note de service N° $id ",12,$id,"noteservice", "file", $_SESSION['userid'],cryptage(session::get('service'),0));
        }
        return true;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:35,代码来源:editnote_m.php


示例11: editreform

function editreform($nextid, $titre, $desc, $montant, $pj, $date)
{
    global $db;
    $usrid = $_SESSION['userid'];
    $date_operation = date('Y-m-d-', strtotime($date));
    $values["titre"] = MySQL::SQLValue($titre);
    $values["description"] = MySQL::SQLValue($desc);
    $values["montant"] = MySQL::SQLValue($montant);
    $values["date_operation"] = MySQL::SQLValue($date_operation);
    $where["id"] = MySQL::SQLValue($nextid);
    if (!$db->UpdateRows("produit_reform", $values, $where)) {
        $db->Kill($db->Error());
        return false;
    } else {
        $sql = $db->BuildSQLInsert("produit_reform", $values);
        logg('Enregistrement Produit Reform ', 167, $nextid, $_SESSION['userid']);
        if ($pj != "") {
            $basedir = "upload/produit";
            if (!file_exists($basedir)) {
                mkdir($basedir, 0, true);
            }
            $newdir = $basedir . "/";
            copyfile($pj, $nextid, $newdir, "Attachement_produit_reform");
            autoarchive($newdir . changnom($pj, $nextid, 'Attachement_produit_reform'), "Fichier joint produit Reform  {$nextid}", 100, $nextid, "produit_reform", "pj", $_SESSION['userid'], cryptage(session::get('service'), 0));
        }
        return true;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:28,代码来源:editreform_m.php


示例12: delet

function delet($id)
{
    global $db;
    $req = "delete from contrat_location_villa   where id={$id}";
    if (!$db->Query($req)) {
        $db->Kill($db->Error());
        return true;
    } else {
        logg("Suppression Entrée {$id}  ", 73, 0, $_SESSION['userid']);
        return false;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:12,代码来源:locationvilla_m.php


示例13: delet_autorisation

function delet_autorisation($autorisation)
{
    global $db;
    $req = "delete from autorisation_emploi where id ={$autorisation}";
    $valuesf["req"] = MySQL::SQLValue($req);
    $r = $db->InsertRow("temprequet", $valuesf);
    if (!$db->Query($req)) {
        $db->Kill($db->Error());
        return false;
    } else {
        logg("Suppression Entrée {$autorisation}  ", 243, 0, $_SESSION['userid']);
        return true;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:14,代码来源:autorisation_m.php


示例14: delet_compte

function delet_compte($id)
{
    global $db;
    $req = "delete from compte where id ={$id}";
    $valuesf["req"] = MySQL::SQLValue($req);
    $r = $db->InsertRow("temprequet", $valuesf);
    if (!$db->Query($req)) {
        $db->Kill($db->Error());
        return false;
    } else {
        logg("Suppression Entrée {$id}  ", 179, 0, $_SESSION['userid']);
        return true;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:14,代码来源:tresorieonape_m.php


示例15: cleanupjson

function cleanupjson()
{
    logg("Cleanup json");
    $dir = "../json/";
    $files = rd($dir);
    foreach ($files as $fnum => $fname) {
        $fpath = "{$dir}{$fname}";
        if (is_dir($fpath)) {
            continue;
        }
        if (strpos($fpath, "station_info.TMP.") !== FALSE) {
            logg(" - {$fpath}");
            unlink($fpath);
        }
    }
}
开发者ID:FXDigitalNetworks,项目名称:icerrr,代码行数:16,代码来源:s.functions.php


示例16: delet

function delet($note)
{
    //first delete files
    delfromarchive($note);
    global $db;
    $req = "delete from noteservice where id=" . $note;
    $valuesf["req"] = MySQL::SQLValue($req);
    $r = $db->InsertRow("temprequet", $valuesf);
    if (!$db->Query($req)) {
        $db->Kill('Error1');
        return false;
    } else {
        logg("Suppression Entrée {$note}  ", 12, 0, $_SESSION['userid']);
        return true;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:16,代码来源:note_m.php


示例17: delet

function delet($id)
{
    global $db;
    //$sqldir="SELECT concat('upload/aemploi/',ste,'/',YEAR(datdemand),'/',id) as dir FROM `aemploi` WHERE id=$id";
    //$dir = $db->QuerySingleValue0($sqldir);
    //removeDir::deleteDir("$dir/");
    $req = "delete from nation   where id={$id}";
    $valuesf["req"] = MySQL::SQLValue($req);
    $r = $db->InsertRow("temprequet", $valuesf);
    if (!$db->Query($req)) {
        $db->Kill($db->Error());
        return true;
    } else {
        logg("Suppression Entrée {$id}  ", 73, 0, $_SESSION['userid']);
        return false;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:17,代码来源:nation_m.php


示例18: addlocation

function addlocation($nextid, $nomlocataire, $nomresponsable, $adresse, $tel, $mail, $villa, $date_debut, $date_fin, $montant, $depot_garantie, $pj, $cycle)
{
    global $db;
    $usrid = $_SESSION['userid'];
    $datedebut = date('Y-m-d-', strtotime($date_debut));
    $datefin = date('Y-m-d-', strtotime($date_fin));
    $values["nomlocataire"] = MySQL::SQLValue($nomlocataire);
    $values["nomresponsable"] = MySQL::SQLValue($nomresponsable);
    $values["adresse"] = MySQL::SQLValue($adresse);
    $values["tel"] = MySQL::SQLValue($tel);
    $values["mail"] = MySQL::SQLValue($mail);
    $values["date_debut"] = MySQL::SQLValue($datedebut);
    $values["date_fin"] = MySQL::SQLValue($datefin);
    $values["montant"] = MySQL::SQLValue($montant);
    $values["depot_garantie"] = MySQL::SQLValue($depot_garantie);
    //$values["type_paiement"] = MySQL::SQLValue($type_paiement);
    $values["addby"] = MySQL::SQLValue($usrid);
    $values["etat"] = MySQL::SQLValue('Attente Validation');
    $values["cycle_paiement"] = MySQL::SQLValue($cycle);
    $values["idvilla"] = MySQL::SQLValue($villa);
    //if(($db->QuerySingleValue0("SELECT id FROM contrat_location_villa where etat='en cours' and idvilla ='".tp('villa')."'")==0)
    if (!$db->InsertRow("contrat_location_villa", $values)) {
        $db->Kill($db->Error());
        return false;
    } else {
        $sql = $db->BuildSQLInsert("contrat_location_villa", $values);
        logg('Enregistrement Location Villa ', 196, $nextid, $_SESSION['userid']);
        if ($pj != "") {
            $basedir = "upload/location";
            if (!file_exists($basedir)) {
                mkdir($basedir, 0, true);
            }
            $newdir = $basedir . "/";
            copyfile($pj, $nextid, $newdir, "Attachement_location_");
            autoarchive($newdir . changnom($pj, $nextid, 'Attachement_location_'), "Fichier joint location villa {$nextid}", 196, $nextid, "contrat_location_villa", "pj", $_SESSION['userid'], cryptage(session::get('service'), 0));
        }
    }
    return true;
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:39,代码来源:addcontrat_m.php


示例19: addnote

function addnote($objet, $note, $id, $dat)
{
    global $db;
    $date = date('Y-m-d', strtotime($dat));
    $getan = date('Y', strtotime($dat));
    $usrid = $_SESSION['userid'];
    $values["objet"] = MySQL::SQLValue($objet);
    $values["file"] = MySQL::SQLValue(changnom($note, $id, 'note_'));
    $values["dat"] = MySQL::SQLValue($date);
    $values["addby"] = MySQL::SQLValue($usrid);
    // Execute the insert
    $result = $db->InsertRow("noteservice", $values);
    $sql = $db->BuildSQLInsert("noteservice", $values);
    $valuesf["req"] = MySQL::SQLValue($sql);
    $r = $db->InsertRow("temprequet", $valuesf);
    // If we have an error
    if (!$result) {
        // Show the error and kill the script
        $db->Kill('Error insert');
        return false;
    } else {
        logg('Enregistrement Note de service', 12, $id, $_SESSION['userid']);
        $basedir = "upload/noteservice/{$getan}";
        // save file
        if (!file_exists($basedir)) {
            mkdir($basedir, 0, true);
        }
        $newdir = $basedir . "/";
        if ($note != "") {
            copyfile($note, $id, $newdir, "note_");
            autoarchive($newdir . changnom($note, $id, 'note_'), "Note de service N° {$id} ", 12, $id, "noteservice", "file", $_SESSION['userid'], cryptage(session::get('service'), 0));
        }
        return true;
    }
    /* if($lettre!=""){
    	  copyfile($lettre,$id,$newdir,"lettre_");
    autoarchive($newdir.changnom($lettre,$id,'lettre_'),"Lettre demande Autorisation d'Emploi $id ",44,$id,"aemploi", "lettre", $_SESSION['userid'],cryptage(session::get('service'),0));
    	  }	*/
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:39,代码来源:addnote_m.php


示例20: add_ets_diplom

function add_ets_diplom($id, $ets_dip, $groupe, $idgrp, $pay)
{
    global $db;
    $values["pay"] = MySQL::SQLValue($pay);
    $values["ets"] = MySQL::SQLValue($ets_dip);
    $values["groupe"] = MySQL::SQLValue($groupe);
    $values["groupe_id"] = MySQL::SQLValue($idgrp);
    $values["addby"] = MySQL::SQLValue($_SESSION['userid']);
    // Execute the insert
    //$result = $db->InsertRow("offre", $values);
    // If we have an error
    if (!$db->InsertRow("ets_diplom", $values)) {
        // Show the error and kill the script
        $db->Kill($db->Error());
        return false;
    } else {
        logg("Engistrement Etablissement  Diplome {$id}", 125, $id, $_SESSION['userid']);
        $sql = $db->BuildSQLInsert("ets_diplom", $values);
        $valuesf["req"] = MySQL::SQLValue($sql);
        $r = $db->InsertRow("temprequet", $valuesf);
        return true;
    }
}
开发者ID:ATS001,项目名称:MRN_ERP,代码行数:23,代码来源:addets_diplom_m.php



注:本文中的logg函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP loggedIn函数代码示例发布时间:2022-05-15
下一篇:
PHP logfile函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap