Subversion Repositories Sites.tela-botanica.org

Rev

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

Rev 367 Rev 463
Line 38... Line 38...
38
*
38
*
39
*	@return string  HTML
39
*	@return string  HTML
40
*/
40
*/
Line 41... Line 41...
41
 
41
 
42
function carto_texte_cocher () {
42
function carto_texte_cocher () {
43
    $res = "<div class=\"cocher\">".CAR_CHECK_UNCHECK ;
43
    $res = '<p class="cocher">'.CAR_CHECK_UNCHECK ;
-
 
44
    $res .= '&nbsp;<input type="checkbox" name="selecttotal" onclick="javascript:setCheckboxes(\'formmail\');" />'.
44
    $res .= "&nbsp;<input type=\"checkbox\" name=\"selecttotal\" onclick=\"javascript:setCheckboxes('formmail');\" /></div>";
45
			'</p>';
45
    return $res ;
46
    return $res ;
46
}
47
}
47
/** function carto_formulaire ()
48
/** function carto_formulaire ()
48
*
49
*
49
*
50
*
50
*
51
*
51
*	@return string  HTML
52
*	@return string  HTML
52
*/
53
*/
53
function carto_formulaire ($titre_mail="", $corps = "") {
54
function carto_formulaire ($titre_mail = '', $corps = '') {
54
    $res = '<p class="attention surveillance">'.CAR_SURVEILLANCE.'</p>' ;
55
    $res = '<div id="redaction">'."\n";
55
    $res .= '<p class="information message_a_tous">'.sprintf(CAR_MESSAGE_A_TOUS, '<a href="'.CAR_URL_ACTUALITE.'">'.CAR_ACTUALITE.'</a>').'</p>' ;
56
    $res .= '<div id="redaction_tete"></div>'."\n";
56
    $res .= "<h2 class=\"titre2_cartographie\">".CAR_ENVOYER_MAIL."</h2> \n";
57
    $res .= '<h2 class="chapo">'.CAR_ENVOYER_MAIL.'</h2>'."\n";
-
 
58
    $res .= '<table id="formulaire_mail" border="0">'."\n".
57
    $res .= "<table id=\"formulaire_mail\" border=\"0\">\n
59
			'	<tr>' .
58
                    <tr><td class=\"texte\">".CAR_SUJET." :</td>\n
60
			'		<td class="texte">'.CAR_SUJET.' :</td>'."\n".
-
 
61
			'		<td><input class="forml" type="text" name="titre_mail" size="60" value="'.$titre_mail.'" /></td>'."\n".
-
 
62
			'	</tr>'."\n".
59
                        <td><input class=\"forml\" type=\"text\" name=\"titre_mail\" size=\"60\" value=\"$titre_mail\" /></td>\n
63
			'	<tr>'."\n".
60
                    </tr>\n<tr><td class=\"texte\" valign=\"top\">".CAR_MESSAGE."&nbsp;:&nbsp;</td>\n
64
			'		<td class="texte" valign="top">'.CAR_MESSAGE.'&nbsp;:&nbsp;</td>'."\n".
-
 
65
			'		<td><textarea class="forml" name="corps" rows="5" cols="60">'.$corps.'</textarea></td>'."\n".
-
 
66
			'	</tr>'."\n".
61
                        <td><textarea class=\"forml\" name=\"corps\" rows=\"5\" cols=\"60\">$corps</textarea></td>\n
67
			'	<tr>'."\n".
-
 
68
			'		<td>&nbsp;</td>'."\n".
62
                    </tr>\n<tr><td></td>\n<td>";
69
			'		<td>';
63
    if (ereg ('Gecko',$GLOBALS['HTTP_USER_AGENT'])) {
70
    if (ereg('Gecko', $GLOBALS['HTTP_USER_AGENT'])) {
64
        $res.="<input class=\"spip_bouton\" type=\"submit\" value=\"".CAR_ENVOYER."\" />";
71
        $res.= '<input class="spip_bouton" type="submit" value="'.CAR_ENVOYER.'" />';
65
    } else {
72
    } else {
66
        $res.="<input class=\"spip_bouton\" type=\"submit\" onclick=\"javascript:confirmer();\" value=\"".CAR_ENVOYER."\" />";
73
        $res .= '<input class="spip_bouton" type="submit" onclick="javascript:confirmer();" value="'.CAR_ENVOYER.'" />';
-
 
74
    }
-
 
75
    $res .=	'		</td>'."\n".
-
 
76
    		'	</tr>'."\n".
67
    }
77
    		'</table>'."\n".
-
 
78
    		'<div id="redaction_pied"/></div>'."\n".
-
 
79
    		'</div>'."\n".
-
 
80
    		'</form>'."\n";
-
 
81
    $res .= '<p class="attention surveillance">'.CAR_SURVEILLANCE.'</p>' ;
-
 
82
    $res .= '<p class="information message_a_tous">'.sprintf(CAR_MESSAGE_A_TOUS, '<a href="'.CAR_URL_ACTUALITE.'">'.CAR_ACTUALITE.'</a>').'</p>' ;
68
    $res.="</td>\n</tr>\n</table></form>\n";
83
    
69
    return $res ;
84
    return $res ;
Line 70... Line 85...
70
}
85
}
71
 
86