début correction du bug de recherche et en vrai j'ai corrigé pas mal de trucs
This commit is contained in:
parent
aaf36302ac
commit
c5f3ef2d0f
3 changed files with 9 additions and 10 deletions
|
|
@ -43,13 +43,13 @@
|
||||||
include('../app/views/partials/header.php');
|
include('../app/views/partials/header.php');
|
||||||
|
|
||||||
//Récupérer les informations du Formulaire
|
//Récupérer les informations du Formulaire
|
||||||
$strKeywords = $_GET['keywords']??'';
|
$strKeywords = $_POST['keywords']??'';
|
||||||
$intAuthor = $_GET['author']??0;
|
$intAuthor = $_POST['author']??0;
|
||||||
$intPeriod = $_GET['period']??0;
|
$intPeriod = $_POST['period']??0;
|
||||||
$strDate = $_GET['date']??'';
|
$strDate = $_POST['date']??'';
|
||||||
$strStartDate = $_GET['startdate']??'';
|
$strStartDate = $_POST['startdate']??'';
|
||||||
$strEndDate = $_GET['enddate']??'';
|
$strEndDate = $_POST['enddate']??'';
|
||||||
$intCategory = $_GET['category']??0;
|
$intCategory = $_POST['category']??0;
|
||||||
|
|
||||||
// Récupération des projetc
|
// Récupération des projetc
|
||||||
$objProjectModel = new ProjectModel;
|
$objProjectModel = new ProjectModel;
|
||||||
|
|
|
||||||
|
|
@ -31,7 +31,7 @@
|
||||||
|
|
||||||
// Recherche par auteur
|
// Recherche par auteur
|
||||||
if ($intAuthor > 0){
|
if ($intAuthor > 0){
|
||||||
$strRq .= $strWhere." project_creatorname = ".$intAuthor;
|
$strRq .= $strWhere." project_user = ".$intAuthor;
|
||||||
$strWhere = " AND ";
|
$strWhere = " AND ";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -86,8 +86,7 @@
|
||||||
foreach($arrCategory as $arrDetCategory){
|
foreach($arrCategory as $arrDetCategory){
|
||||||
?>
|
?>
|
||||||
<option value="<?php echo $arrDetCategory['category_id']; ?>"
|
<option value="<?php echo $arrDetCategory['category_id']; ?>"
|
||||||
<?php echo ($intCategory == $arrDetCategory['category_id'])?'selected':''; ?>
|
<?php echo ($intCategory == $arrDetCategory['category_id'])?'selected':''; ?> >
|
||||||
>
|
|
||||||
<?php echo $arrDetCategory['category_name']; ?>
|
<?php echo $arrDetCategory['category_name']; ?>
|
||||||
</option>
|
</option>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue