Line 44... |
Line 44... |
44 |
// creation de l'objet projet courant
|
44 |
// creation de l'objet projet courant
|
45 |
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
|
45 |
include_once PROJET_CHEMIN_CLASSES.'projet.class.php' ;
|
46 |
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
|
46 |
include_once PROJET_CHEMIN_CLASSES.'participe.class.php' ;
|
47 |
$projet = new projet ($this->_db, $this->_id_projet) ;
|
47 |
$projet = new projet ($this->_db, $this->_id_projet) ;
|
Line -... |
Line 48... |
- |
|
48 |
|
- |
|
49 |
$label_url_inscription = PROJET_S_INSCRIRE_AU_PROJET;
|
48 |
|
50 |
|
49 |
// modification meta OpenGraph pour un titre plus sympatoche
|
51 |
// modification meta OpenGraph pour un titre plus sympatoche
|
Line 50... |
Line 52... |
50 |
GEN_modifierMetaProperty('og:title', 'Projet : ' . $projet->getTitre());
|
52 |
GEN_modifierMetaProperty('og:title', 'Projet : ' . $projet->getTitre());
|
51 |
|
53 |
|
Line 67... |
Line 69... |
67 |
{
|
69 |
{
|
68 |
case PROJET_DROIT_AUCUN :
|
70 |
case PROJET_DROIT_AUCUN :
|
69 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
|
71 |
$this->_url->addQueryString (PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
|
70 |
$lien_inscription = $this->_url->getURL();
|
72 |
$lien_inscription = $this->_url->getURL();
|
71 |
$laius_inscription = PROJET_VOUS_N_ETES_PAS_INSCRIT;
|
73 |
$laius_inscription = PROJET_VOUS_N_ETES_PAS_INSCRIT;
|
72 |
$label_url_inscription = PROJET_S_INSCRIRE_AU_PROJET;
|
- |
|
73 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
|
74 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_ACTION_S_INSCRIRE);
|
74 |
$lien_inscription = $this->_url->getURL();
|
75 |
$lien_inscription = $this->_url->getURL();
|
75 |
$label_url_inscription = 'S\'inscrire à ce projet';
|
- |
|
76 |
$bouton_s_inscrire = '<span id="laius_inscription">'.$laius_inscription.'</span> <div id="projet_lien_inscription">
|
76 |
$bouton_s_inscrire = '<span id="laius_inscription">'.$laius_inscription.'</span> <div id="projet_lien_inscription">
|
77 |
<a href="'.$lien_inscription.'">'.$label_url_inscription.'</a>
|
77 |
<a href="'.$lien_inscription.'">'.$label_url_inscription.'</a>
|
78 |
</div>';
|
78 |
</div>';
|
79 |
break;
|
79 |
break;
|
80 |
case PROJET_DROIT_CONTRIBUTEUR :
|
80 |
case PROJET_DROIT_CONTRIBUTEUR :
|
81 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER);
|
81 |
$this->_url->addQueryString(PROJET_VARIABLE_ACTION, PROJET_NOUVEAU_FICHIER);
|
82 |
$bouton_deposer_doc = bouton::toHTML($this->_url->getURL(), 'Déposer un document', 'document');
|
82 |
$bouton_deposer_doc = bouton::toHTML($this->_url->getURL(), 'Déposer un document', 'document');
|
Line 146... |
Line 146... |
146 |
$droits = PROJET_DROIT_AUCUN ;
|
146 |
$droits = PROJET_DROIT_AUCUN ;
|
147 |
// recuperation de la liste des documents associes
|
147 |
// recuperation de la liste des documents associes
|
148 |
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER,
|
148 |
$liste_documents = document::getDocumentsRecents(4, $this->_db, PROJET_CHEMIN_FICHIER,
|
149 |
PROJET_CHEMIN_ICONES, $this->_id_projet, false) ;
|
149 |
PROJET_CHEMIN_ICONES, $this->_id_projet, false) ;
|
150 |
$lien_inscription = 'javascript:animatedcollapse.toggle(\'projet_bloc_inscription\');';
|
150 |
$lien_inscription = 'javascript:animatedcollapse.toggle(\'projet_bloc_inscription\');';
|
151 |
$label_url_inscription = 'S\'inscrire à ce projet';
|
- |
|
Line 152... |
Line 151... |
152 |
|
151 |
|
153 |
GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
|
152 |
GEN_stockerFichierScript('jquery', 'api/js/jquery/jquery.js');
|
154 |
GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
|
153 |
GEN_stockerFichierScript('animatedcollapse', 'api/js/jquery/animatedcollapse.js');
|
155 |
GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
|
154 |
GEN_stockerCodeScript('animatedcollapse.addDiv(\'projet_bloc_inscription\', \'fade=1, height="100px"\');' ."\n".
|