Code: Alles auswählen
?><?php
/**
* $RCSfile$
*
* Description: Contact Form Input
*
* @version 1.0.0
* @author Andreas Lindner
* @copyright four for business AG <www.4fb.de>
*
* {@internal
* created 2005-08-12
* }}
*
* $Id$
*/
?>
<table border="0">
    <tr>
        <td><?php echo mi18n("Absender EMail");?></td>
        <td><input type="text" name="<?php echo "CMS_VAR[0]";?>" value="<?php echo "CMS_VALUE[0]"; ?>"></td>
    </tr>
    <tr>
        <td><?php echo mi18n("Absender Name");?></td>
        <td><input type="text" name="<?php echo "CMS_VAR[2]";?>" value="<?php echo "CMS_VALUE[2]"; ?>"></td>
    </tr>
    <tr>
        <td><?php echo mi18n("Empfänger EMail");?></td>
        <td><input type="text" name="<?php echo "CMS_VAR[1]";?>" value="<?php echo "CMS_VALUE[1]"; ?>"></td>
    </tr>
    <tr>
        <td><?php echo mi18n("Betreff");?></td>
        <td><input type="text" name="<?php echo "CMS_VAR[3]";?>" value="<?php echo "CMS_VALUE[3]"; ?>"></td>
    </tr>
    <?php
    $c1 = '';
    $c2 = '';
    $c3 = '';
    $c4 = '';
    switch (strtolower("CMS_VALUE[4]")) {
        case "smtp" :
            $c1 = ' checked';
            break;
        case "mail" :
            $c2 = ' checked';
            break;
        case "sendmail" :
            $c3 = ' checked';
            break;
        case "qmail" :
            $c4 = ' checked';
            break;
        default :
            $c3 = ' checked';
    }
    ?>
    <tr>
        <td valign="top"><?php echo mi18n("Mailer");?></td>
        <td>
            <input type="radio" name="<?php echo "CMS_VAR[4]";?>" value="mail"<?php echo $c2;?>> <?php echo mi18n("mail");?><br/>
            <input type="radio" name="<?php echo "CMS_VAR[4]";?>" value="qmail"<?php echo $c4;?>> <?php echo mi18n("qmail");?><br/>
            <input type="radio" name="<?php echo "CMS_VAR[4]";?>" value="sendmail"<?php echo $c3;?>> <?php echo mi18n("sendmail");?><br/>
            <input type="radio" name="<?php echo "CMS_VAR[4]";?>" value="smtp"<?php echo $c1;?>> <?php echo mi18n("smtp");?><br/>
        </td>
    </tr>
    <tr>
        <td><?php echo mi18n("SMTP Host");?></td>
        <td><input type="text" name="<?php echo "CMS_VAR[5]";?>" value="<?php echo "CMS_VALUE[5]"; ?>"></td>
    </tr>
    <tr>
        <td><?php echo mi18n("SMTP User");?></td>
        <td><input type="text" name="<?php echo "CMS_VAR[6]";?>" value="<?php echo "CMS_VALUE[6]"; ?>"></td>
    </tr>
    <tr>
        <td><?php echo mi18n("SMTP Passwort");?></td>
        <td><input type="text" name="<?php echo "CMS_VAR[7]";?>" value="<?php echo "CMS_VALUE[7]"; ?>"></td>
    </tr>
</table>
<?phpCode: Alles auswählen
??php
/**
* $RCSfile$
*
* Description: Contact Form Input
*
* @version 1.0.0
* @author Andreas Lindner
* @copyright four for business AG www.4fb.de
*
* {@internal
* created 2005-08-12
* }}
*
* $Id$
*/
?
table border=0
    tr
        td?php echo mi18n(Absender EMail);?/td
        tdinput type=text name=?php echo CMS_VAR[0];? value=?php echo CMS_VALUE[0]; ?/td
    /tr
    tr
        td?php echo mi18n(Absender Name);?/td
        tdinput type=text name=?php echo CMS_VAR[2];? value=?php echo CMS_VALUE[2]; ?/td
    /tr
    tr
        td?php echo mi18n(Empfänger EMail);?/td
        tdinput type=text name=?php echo CMS_VAR[1];? value=?php echo CMS_VALUE[1]; ?/td
    /tr
    tr
        td?php echo mi18n(Betreff);?/td
        tdinput type=text name=?php echo CMS_VAR[3];? value=?php echo CMS_VALUE[3]; ?/td
    /tr
    ?php
    $c1 = '';
    $c2 = '';
    $c3 = '';
    $c4 = '';
    switch (strtolower(CMS_VALUE[4])) {
        case smtp :
            $c1 = ' checked';
            break;
        case mail :
            $c2 = ' checked';
            break;
        case sendmail :
            $c3 = ' checked';
            break;
        case qmail :
            $c4 = ' checked';
            break;
        default :
            $c3 = ' checked';
    }
    ?
    tr
        td valign=top?php echo mi18n(Mailer);?/td
        td
            input type=radio name=?php echo CMS_VAR[4];? value=mail?php echo $c2;?nbsp;?php echo mi18n(mail);?br/
            input type=radio name=?php echo CMS_VAR[4];? value=qmail?php echo $c4;?nbsp;?php echo mi18n(qmail);?br/
            input type=radio name=?php echo CMS_VAR[4];? value=sendmail?php echo $c3;?nbsp;?php echo mi18n(sendmail);?br/
            input type=radio name=?php echo CMS_VAR[4];? value=smtp?php echo $c1;?nbsp;?php echo mi18n(smtp);?br/
        /td
    /tr
    tr
        td?php echo mi18n(SMTP Host);?/td
        tdinput type=text name=?php echo CMS_VAR[5];? value=?php echo CMS_VALUE[5]; ?/td
    /tr
    tr
        td?php echo mi18n(SMTP User);?/td
        tdinput type=text name=?php echo CMS_VAR[6];? value=?php echo CMS_VALUE[6]; ?/td
    /tr
    tr
        td?php echo mi18n(SMTP Passwort);?/td
        tdinput type=text name=?php echo CMS_VAR[7];? value=?php echo CMS_VALUE[7]; ?/td
    /tr
/table
?phpDanke Fips