Subversion Repositories Sites.tela-botanica.org

Rev

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

Rev 364 Rev 463
Line 110... Line 110...
110
    $res .= CAR_LABEL_PROJET."</h1>\n";
110
    $res .= CAR_LABEL_PROJET."</h1>\n";
Line 111... Line 111...
111
    
111
    
112
    if (!$GLOBALS['car_auth']->getAuth()) {
112
    if (!$GLOBALS['car_auth']->getAuth()) {
113
        $res .= AUTH_formulaire_login();
113
        $res .= AUTH_formulaire_login();
114
    } else {
114
    } else {
-
 
115
    $res .= '<form action="'.$url.'?mailer=1&amp;fin=true" method="post" name="formmail">'.
115
    $res .= "<form action=\"$url?mailer=1&amp;fin=true\" method=\"post\" name=\"formmail\">
116
            '	<div id="div_inscrit">'.
116
                <div id=\"div_inscrit\"><table id=\"table_inscrits\">
117
            '		<table id="table_inscrits">'.
117
                    <colgroup>
118
            '			<colgroup>'.
118
                        <col />
119
			'				<col />'.
119
                        <col />
120
			'				<col />'.
120
                        <col />
121
			'				<col />'.
121
                        <col />
122
			'				<col />'.
122
                        <col />
123
			'				<col />'.
123
                        <col />
124
			'				<col />'.
-
 
125
			'			</colgroup>'.
124
                    </colgroup>
126
			'			<thead>'.
125
                        <tr>
127
			'				<tr>'.
126
                            <th>&nbsp;</th>
128
			'					<th>&nbsp;</th>'.
127
                            <th>".CAR_NOM."</th>
129
			'					<th>'.CAR_NOM.'</th>'.
128
                            <th>".CAR_PRENOM."</th>
130
			'					<th>'.CAR_PRENOM.'</th>'.
129
                            <th>".CAR_DATE_INS."</th>
131
			'					<th>'.CAR_DATE_INS.'</th>'.
130
                            <th>".CAR_REGION."</th>
132
			'					<th>'.CAR_REGION.'</th>'.
131
                            <th>".CAR_VILLE."</th>
133
			'					<th>'.CAR_VILLE.'</th>'.
-
 
134
			'				</tr>'.
-
 
135
			'			</thead>'.
Line 132... Line 136...
132
                        </tr>\n";
136
			'			<tbody>';
133
        
137
        
134
        $requete = "select * from ".CAR_ANNUAIRE.
138
        $requete = "select * from ".CAR_ANNUAIRE.
135
                " where ".CAR_CHAMPS_CE_PAYS."='$argument'".
139
                " where ".CAR_CHAMPS_CE_PAYS."='$argument'".
Line 155... Line 159...
155
                            <td>".date("d m Y", strtotime($ligne[CAR_CHAMPS_DATE_INS]))."&nbsp;</td>
159
                            <td>".date("d m Y", strtotime($ligne[CAR_CHAMPS_DATE_INS]))."&nbsp;</td>
156
                            <td>".str_replace(' - ', '-', ucwords(strtolower(str_replace('-', ' - ', $ligne[CAR_CHAMPS_REGION]))))."&nbsp;</td>
160
                            <td>".str_replace(' - ', '-', ucwords(strtolower(str_replace('-', ' - ', $ligne[CAR_CHAMPS_REGION]))))."&nbsp;</td>
157
                            <td>".strtoupper($ligne[CAR_CHAMPS_VILLE])."&nbsp;</td>\n";
161
                            <td>".strtoupper($ligne[CAR_CHAMPS_VILLE])."&nbsp;</td>\n";
158
            $res .= "</tr>\n";
162
            $res .= "</tr>\n";
159
        }
163
        }
160
        $res .= "</table></div>\n";
164
        $res .= "</tbody></table></div>\n";
Line 161... Line 165...
161
        
165
        
162
        if ($mailer==1) {
166
        if ($mailer==1) {
163
            if (!is_array($select)) {
167
            if (!is_array($select)) {
164
                $res .= "<div>".CAR_NO_DESTINATAIRE."</div>";
168
                $res .= "<div>".CAR_NO_DESTINATAIRE."</div>";
Line 244... Line 248...
244
                            <col />
248
                            <col />
245
                            <col />
249
                            <col />
246
                            <col />
250
                            <col />
247
                            <col />
251
                            <col />
248
                        </colgroup>
252
                        </colgroup>
-
 
253
                        <thead>
249
                        <tr>
254
                        <tr>
250
                            <th>&nbsp;</th>
255
                            <th>&nbsp;</th>
251
                            <th>".CAR_NOM."</th>
256
                            <th>".CAR_NOM."</th>
252
                            <th>".CAR_PRENOM."</th>
257
                            <th>".CAR_PRENOM."</th>
253
                            <th>".CAR_DATE_INS."</th>
258
                            <th>".CAR_DATE_INS."</th>
254
                            <th>".CAR_CP."</th>
259
                            <th>".CAR_CP."</th>
255
                            <th>".CAR_VILLE."</th>
260
                            <th>".CAR_VILLE."</th>
256
                        </tr>\n";
261
                        </tr></thead><tbody>\n";
Line 257... Line 262...
257
        
262
        
258
        $requete = "SELECT * FROM ".CAR_ANNUAIRE.
263
        $requete = "SELECT * FROM ".CAR_ANNUAIRE.
259
                " WHERE ".CAR_CHAMPS_DPT." = '$argument'".
264
                " WHERE ".CAR_CHAMPS_DPT." = '$argument'".
260
                " AND ".CAR_CHAMPS_CE_PAYS."='fr'".
265
                " AND ".CAR_CHAMPS_CE_PAYS."='fr'".
Line 280... Line 285...
280
                                    <td>".date("d m Y", strtotime($ligne[CAR_CHAMPS_DATE_INS]))."</td>
285
                                    <td>".date("d m Y", strtotime($ligne[CAR_CHAMPS_DATE_INS]))."</td>
281
                                    <td>".$ligne[CAR_CHAMPS_CODE_POSTAL]."&nbsp;</td>
286
                                    <td>".$ligne[CAR_CHAMPS_CODE_POSTAL]."&nbsp;</td>
282
                                    <td>".strtoupper($ligne[CAR_CHAMPS_VILLE])."&nbsp;</td>
287
                                    <td>".strtoupper($ligne[CAR_CHAMPS_VILLE])."&nbsp;</td>
283
                                    </tr>\n";
288
                                    </tr>\n";
284
        }
289
        }
285
        $res.="</table></div>\n";
290
        $res.="</tbody></table></div>\n";
286
        if ($mailer==1) {
291
        if ($mailer==1) {
287
            if (!is_array($select)) {
292
            if (!is_array($select)) {
288
                $res.= CAR_NO_DESTINATAIRE;
293
                $res.= CAR_NO_DESTINATAIRE;
289
            } else {
294
            } else {
290
                $res .= envoie_mail($GLOBALS['car_db']) ;
295
                $res .= envoie_mail($GLOBALS['car_db']) ;