Subversion Repositories Applications.papyrus

Rev

Rev 933 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 933 Rev 979
Line 56... Line 56...
56
	
56
	
57
	//preparation de l'affichage des onglets
57
	//preparation de l'affichage des onglets
58
	$res='<ul id="onglets_inscription">'."\n";
58
	$res='<ul id="onglets_inscription">'."\n";
59
	//partie présentation
59
	//partie présentation
-
 
60
	$GLOBALS['ins_url']->addQueryString('voir_fiche', $id_fiche);
-
 
61
	$res .= '<li id="fiche"';
60
	$GLOBALS['ins_url']->addQueryString('voir_fiche', $id_fiche);
62
	if (isset($_GET['voir_fiche'])) $res .= ' class="onglet_actif" '; 
61
	$res .= '<li id="fiche"><a href="'.$GLOBALS['ins_url']->getURL().'">'.INS_PRESENTATION.'</a>'."\n".'</li>'."\n";
63
	$res .= '><a href="'.$GLOBALS['ins_url']->getURL().'">'.INS_PRESENTATION.'</a>'."\n".'</li>'."\n";
62
	$GLOBALS['ins_url']->removeQueryString('voir_fiche');
64
	$GLOBALS['ins_url']->removeQueryString('voir_fiche');
63
	if ($id_fiche==$GLOBALS['AUTH']->getAuthData(INS_CHAMPS_ID)) {
65
	if ($id_fiche==$GLOBALS['AUTH']->getAuthData(INS_CHAMPS_ID)) {
64
		//partie abonnement
66
		//partie abonnement
-
 
67
		$GLOBALS['ins_url']->addQueryString('voir_abonnement', $id_fiche);
-
 
68
		$res .= '<li id="abonnements"';
65
		$GLOBALS['ins_url']->addQueryString('voir_abonnement', $id_fiche);
69
		if (isset($_GET['voir_abonnement'])) $res .= ' class="onglet_actif" ';
66
		$res .= '<li id="abonnements"><a href="'.$GLOBALS['ins_url']->getURL().'">'.INS_ABONNEMENTS.'</a></li>'."\n" ;
70
		$res .= '><a href="'.$GLOBALS['ins_url']->getURL().'">'.INS_ABONNEMENTS.'</a></li>'."\n" ;
67
		$GLOBALS['ins_url']->removeQueryString('voir_abonnement');
71
		$GLOBALS['ins_url']->removeQueryString('voir_abonnement');
68
	}
72
	}
69
	//partie actualites
73
	//partie actualites
70
	$GLOBALS['ins_url']->addQueryString('voir_actus', $id_fiche);
74
	$GLOBALS['ins_url']->addQueryString('voir_actus', $id_fiche);
Line 560... Line 564...
560
    if (DB::isError($resultat)) {
564
    if (DB::isError($resultat)) {
561
        die ($resultat->getMessage().'<br />'.$resultat->getDebugInfo());
565
        die ($resultat->getMessage().'<br />'.$resultat->getDebugInfo());
562
    }
566
    }
563
    $ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC);
567
    $ligne = $resultat->fetchRow(DB_FETCHMODE_ASSOC);
Line 564... Line 568...
564
 
568
 
Line 565... Line 569...
565
    include_once 'Mail.php' ;
569
    include_once PAP_CHEMIN_API_PEAR.'Mail.php' ;
Line 566... Line 570...
566
    
570
    
567
    $entetes['From']    = $ligne[INS_CHAMPS_MAIL];
571
    $entetes['From']    = $ligne[INS_CHAMPS_MAIL];
Line 590... Line 594...
590
    $GLOBALS['titre_mail'] = '';
594
    $GLOBALS['titre_mail'] = '';
591
}
595
}
592
//-- Fin du code source    ------------------------------------------------------------
596
//-- Fin du code source    ------------------------------------------------------------
593
/*
597
/*
594
* $Log$
598
* $Log$
-
 
599
* Revision 1.6  2006/09/13 12:31:18  florian
-
 
600
* ménage: fichier de config Papyrus, fichiers temporaires
-
 
601
*
595
* Revision 1.5  2006/04/28 12:44:05  florian
602
* Revision 1.5  2006/04/28 12:44:05  florian
596
* integration bazar
603
* integration bazar
597
*
604
*
598
* Revision 1.4  2006/04/11 08:39:52  alexandre_tb
605
* Revision 1.4  2006/04/11 08:39:52  alexandre_tb
599
* correction de l'envoie de mail par la carto
606
* correction de l'envoie de mail par la carto