|
Server IP : 10.128.40.6 / Your IP : 216.73.216.233 Web Server : Apache System : Linux webd006.cluster128.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : logmcpe ( 111175) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/logmcpe/www/mcg/pages/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
// kexit() ;
include 'includes/config_tmcpro.php' ;
include 'includes/stable_functions_tmcpro.php' ;
$q =dbi_query("SELECT * FROM `etablissement`") ;
$qqq =dbi_query("SELECT * FROM `candidat_origine`") ;
$qqqq =dbi_query("SELECT * FROM `candidat_statut`") ;
if(!empty($_POST))
{
// echo "<pre>" ;
// print_r($_POST);
// echo "</pre>" ;
// echo "<pre>" ;
// print_r($_FILES);
// echo "</pre>" ;
$target_dir = "uploads/";
$target_file = $target_dir . basename($_FILES["file"]["name"]);
$uploadOk = 1;
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
move_uploaded_file($_FILES["file"]["tmp_name"], $target_file) ;
// $target_dir = "uploads/";
$target_file = $target_dir . basename($_FILES["filed"]["name"]);
$uploadOk = 1;
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
move_uploaded_file($_FILES["filed"]["tmp_name"], $target_file) ;
// $target_dir = "uploads/";
$target_file = $target_dir . basename($_FILES["filet"]["name"]);
$uploadOk = 1;
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
move_uploaded_file($_FILES["filet"]["tmp_name"], $target_file) ;
// $target_dir = "uploads/";
$target_file = $target_dir . basename($_FILES["fileq"]["name"]);
$uploadOk = 1;
$imageFileType = strtolower(pathinfo($target_file,PATHINFO_EXTENSION));
move_uploaded_file($_FILES["fileq"]["tmp_name"], $target_file) ;
// exit() ;
$candidat_statut=$_POST['stat'] ;
$etablissement_id=$_POST['etab'] ;
$candidat_origine_id=$_POST['orig'] ;
$candidat_genre=$_POST['candidat_genre'] ;
$candidat_nom=$_POST['candidat_nom'] ;
$candidat_prenom=$_POST['candidat_prenom'] ;
$candidat_tele_portable=$_POST['candidat_tele_portable'] ;
$candidat_tele_domicile=$_POST['candidat_tele_domicile'] ;
$candidat_mail=$_POST['candidat_mail'] ;
$candidat_cp=$_POST['candidat_cp'] ;
$candidat_ville=$_POST['candidat_ville'] ;
dbi_query(" INSERT INTO candidat (
candidat_statut,
etablissement_id,
candidat_origine_id,
candidat_genre,
candidat_nom,
candidat_prenom,
candidat_tele_portable,
candidat_tele_domicile,
candidat_mail,
candidat_cp,
candidat_ville
)
VALUES
(
'$candidat_statut',
'$etablissement_id',
'$candidat_origine_id',
'$candidat_genre',
'$candidat_nom',
'$candidat_prenom',
'$candidat_tele_portable',
'$candidat_tele_domicile',
'$candidat_mail',
'$candidat_cp',
'$candidat_ville'
)") ;
header('Location:candidat.php?msg= livraison bien Supprimer &color=success');
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Enregistrer le titre de la page --><title> LogMCPRO | Nouveau Candidat</title>
<!-- Tell the browser to be responsive to screen width -->
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Font Awesome -->
<link rel="stylesheet" href="../../plugins/fontawesome-free/css/all.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
<!-- overlayScrollbars -->
<link rel="stylesheet" href="../../dist/css/adminlte.min.css">
<!-- Google Font: Source Sans Pro -->
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
</head>
<body class="hold-transition sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper">
<!-- TOP MENU -->
<nav class="main-header navbar navbar-expand navbar-white navbar-light">
<!-- Menu extensible -->
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
</li>
<!-- liens TOP MENU GAUCHE-->
</ul>
<!-- liens TOP MENU DROITE -->
<ul class="navbar-nav ml-auto">
<!-- Placer ici l'élément à positionner à droite du TOP MENU -->
</ul>
</nav> <!-- fin du TOP MENU -->
<!-- BARRE DE NAVIGATION -->
<?php include('menu.php'); ?>
<!-- DEMARRAGE DE LA PAGE PRINCIPALE -->
<div class="content-wrapper">
<!-- TITRE DE LA PAGE PRINCIPALE A PLACE ENTRE LES BALISES H1 & ARBORESCENCE SUR LA DROITE-->
<section class="content-header">
<div class="container-fluid">
<div class="row mb-2">
<div class="col-sm-6">
<h6></h6>
</div>
<div class="col-sm-6">
</div>
</div>
</div><!-- /.container-fluid -->
</section>
<!-- FIN DU TITRE DE LA PAGE PRINCIPALE A PLACE ENTRE LES BALISES H1 & ARBORESCENCE SUR LA DROITE-->
<!-- CONTENU DE LA PAGE PRINCIPALE -->
<section class="content"> <!-- Ne pas toucher cette ligne -->
<!-- Card Principale -->
<div class="card card-primary card-outline">
<!-- Titre de la Card Principale -->
<div class="card-header">
<h3 class="card-title"> <i class="nav-icon fas fa-user-plus"></i> NOUVEAU CANDIDAT</h3>
</div>
<!-- Fin du Titre de la Card Principale -->
<!-- Contenu de la Card Principale -->
<div class="card-body">
<!-- Début du Formulaire -->
<form method="POST" enctype="multipart/form-data" action="nvcandidat.php" id="form-add-course" >
<!-- ///////Ligne statut & Etablissement-->
<div class="form-row">
<div class="form-group col-md-4"><!-- Liste déroulante établissement -->
<label>Statut</label>
<select class="form-control" name="stat">
<option value="NULL">- Statut -</option>
<?php
while($etabs = dbi_fetch_row($qqqq))
{
?>
<option value="<?=$cat['candidat_statut_id'] ?>" ><?=$etabs['candidat_statut_nom'] ?></option>
<?
}
?>
</select>
</div>
<div class="form-group col-md-4"><!-- Liste déroulante établissement -->
<label>Etablissement</label>
<select class="form-control" name="etab">
<option value="NULL">- Etablissement -</option>
<?php
while($etabs = dbi_fetch_row($q))
{
?>
<option value="<?=$cat['etablissement_id'] ?>" ><?=$etabs['etablissement_nom'] ?></option>
<?
}
?>
</select>
</div>
<div class="form-group col-md-4"><!-- Liste déroulante établissement -->
<label>Origine</label>
<select class="form-control" name="orig">
<option value="NULL">- Origine -</option>
<?php
while($etabs = dbi_fetch_row($qqq))
{
?>
<option value="<?=$cat['candidat_origine_id'] ?>" ><?=$etabs['candidat_origine_nom'] ?></option>
<?
}
?>
</select>
</div>
</div>
<!-- ///////Ligne -->
<div class="form-row">
<div class="form-group col-md-4"><!-- Liste déroulante statut -->
<label>Genre</label>
<select class="form-control" name="candidat_genre">
<option value="NULL">- Genre - </option>
<option value="1">Homme</option>
<option value="0"> Femme</option>
</select>
</div>
<div class="form-group col-md-4">
<label for="inputsociete">Nom</label>
<input type="text" class="form-control" name="candidat_nom">
</div>
<div class="form-group col-md-4">
<label for="inputAddresse">Prénom</label>
<input type="text" class="form-control" name="candidat_prenom">
</div>
</div>
<!-- ///////Ligne -->
<div class="form-row">
<div class="form-group col-md-4">
<label for="inputtel">Téléphone Portable</label>
<input type="text" class="form-control" name="candidat_tele_portable">
</div>
<div class="form-group col-md-4">
<label for="inputfax">Téléphone Domicile</label>
<input type="text" class="form-control" name="candidat_tele_domicile">
</div>
<div class="form-group col-md-4">
<label for="inputfax">Email</label>
<input type="text" class="form-control" name="candidat_mail">
</div>
</div>
<!-- ///////Ligne -->
<div class="form-row">
<div class="form-group col-md-4">
<label for="inputsociete">Code Postal</label>
<input type="text" class="form-control" name="candidat_cp">
</div>
<div class="form-group col-md-4">
<label for="inputsociete">Ville</label>
<input type="text" class="form-control" name="candidat_ville">
</div>
</div>
<br>
<button type="submit" class="btn btn-primary">Enregistrer</button>
</form>
<!-- Fin du Formulaire -->
<!-- Fin du Contenu de la Card Principale Ne pas toucher au Div en dessous-->
</div>
<!-- Footer de la Card Principale -->
<div class="card-footer">
<!-- Inserer ici si besoin texte Footer-->
</div>
<!-- fin du Footer de la Card Principale -->
<!-- NE PAS TOUCHER EN DESSOUS -->
</div>
</section>
</div>
<!-- NE PAS TOUCHER AU DESSUS DESSOUS -->
<!-- DEBUT DU PIED DE PAGE -->
<footer class="main-footer">
<div class="float-right d-none d-sm-block">
<b>Version</b> 3.0.1
</div>
<strong>Copyright © 2019 MCPRO</strong>
</footer>
<!-- FIN DU PIED DE PAGE -->
<!-- NE PAS TOUCHER CI-DESSOUS -->
<!-- Control Sidebar -->
<aside class="control-sidebar control-sidebar-dark">
<!-- Control sidebar content goes here -->
</aside>
<!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->
<!-- jQuery -->
<script src="../../plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="../../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- AdminLTE App -->
<script src="../../dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script>
<!-- Select2 -->
<script src="../../plugins/select2/js/select2.full.min.js"></script>
<!-- Bootstrap4 Duallistbox -->
<script src="../../plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.min.js"></script>
<!-- InputMask -->
<script src="../../plugins/moment/moment.min.js"></script>
<script src="../../plugins/inputmask/min/jquery.inputmask.bundle.min.js"></script>
<!-- date-range-picker -->
<script src="../../plugins/daterangepicker/daterangepicker.js"></script>
<!-- bootstrap color picker -->
<script src="../../plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
<!-- Tempusdominus Bootstrap 4 -->
<script src="../../plugins/tempusdominus-bootstrap-4/js/tempusdominus-bootstrap-4.min.js"></script>
<!-- Bootstrap Switch -->
<script src="../../plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
<!-- AdminLTE App -->
<script src="../../dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script>
<script src="../../plugins/jquery/jquery.min.js"></script>
<!-- Bootstrap 4 -->
<script src="../../plugins/bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- bs-custom-file-input -->
<script src="../../plugins/bs-custom-file-input/bs-custom-file-input.min.js"></script>
<!-- AdminLTE App -->
<script src="../../dist/js/adminlte.min.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="../../dist/js/demo.js"></script>
<script type="text/javascript">
$(document).ready(function () {
bsCustomFileInput.init();
});
</script>
<script>
$(function () {
//Initialize Select2 Elements
$('.select2').select2()
//Initialize Select2 Elements
$('.select2bs4').select2({
theme: 'bootstrap4'
})
//Datemask dd/mm/yyyy
$('#datemask').inputmask('dd/mm/yyyy', { 'placeholder': 'dd/mm/yyyy' })
//Datemask2 mm/dd/yyyy
$('#datemask2').inputmask('mm/dd/yyyy', { 'placeholder': 'mm/dd/yyyy' })
//Money Euro
$('[data-mask]').inputmask()
//Date range picker
$('#reservation').daterangepicker()
//Date range picker with time picker
$('#reservationtime').daterangepicker({
timePicker: true,
timePickerIncrement: 30,
locale: {
format: 'MM/DD/YYYY hh:mm A'
}
})
//Date range as a button
$('#daterange-btn').daterangepicker(
{
ranges : {
'Today' : [moment(), moment()],
'Yesterday' : [moment().subtract(1, 'days'), moment().subtract(1, 'days')],
'Last 7 Days' : [moment().subtract(6, 'days'), moment()],
'Last 30 Days': [moment().subtract(29, 'days'), moment()],
'This Month' : [moment().startOf('month'), moment().endOf('month')],
'Last Month' : [moment().subtract(1, 'month').startOf('month'), moment().subtract(1, 'month').endOf('month')]
},
startDate: moment().subtract(29, 'days'),
endDate : moment()
},
function (start, end) {
$('#reportrange span').html(start.format('MMMM D, YYYY') + ' - ' + end.format('MMMM D, YYYY'))
}
)
//Timepicker
$('#timepicker').datetimepicker({
format: 'LT'
})
//Bootstrap Duallistbox
$('.duallistbox').bootstrapDualListbox()
//Colorpicker
$('.my-colorpicker1').colorpicker()
//color picker with addon
$('.my-colorpicker2').colorpicker()
$('.my-colorpicker2').on('colorpickerChange', function(event) {
$('.my-colorpicker2 .fa-square').css('color', event.color.toString());
});
$("input[data-bootstrap-switch]").each(function(){
$(this).bootstrapSwitch('state', $(this).prop('checked'));
});
})
</script>
</body>
</html>
