Subversion-Projekte lars-tiefland.content-management

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?
    define("Range",100);
        $self=basename($PHP_SELF);
        $DB="Logins";
        define ("modul_name", "logins");
        define ("tool_name", "admin");
        require_once "../Online-Shop/connect2.php";
        unset($HTTP_POST_VARS[pwdcheck]);
?>
<style>
body
{
        margin:3px;
        background-color:       #<?=$webs[bgcolor_seite];?>;
}

.links
{
        background-color:       #<?=$webs[bgcolor_links];?>;
        color:                          #<?=$webs[font_color_links];?>;
        font-family:            Arial, Helvetica, sans-serif;
        font-weight:            bold;
        font-size:                      12px;
        vertical-align:         middle;
}

.rechts
{
        background-color:       #<?=$webs[bgcolor_rechts];?>;
        color:                          #<?=$webs[font_color_rechts];?>;
        font-family:            Arial, Helvetica, sans-serif;
        font-size:                      12px
}
</style>
<form action="export1.php" method="get">
<table>
                <tr class="links" valign="middle">
                <?
                if($msg==fehler)
                {
                        $fehler="Bitte wählen Sie mindestens einen Datensatz aus";
                } 
                echo $fehler ?>
                </tr>
                <?
                $Feld="user";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links" valign="middle" width="20%"> 
                <? if ($web_rechte[modul_name][tool_name][$Feld]) { echo $web_rechte[modul_name][tool_name][$Feld]; } else { ?>
                Login: 
                <? } ?>
                </td>
                <td colspan="2" class="rechts"><INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=user > 
                </td>
        </tr>
        <? 
                }
                $Feld="userlevel";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links" valign="top" width="20%"> 
                Status: </td>
                <td colspan="2" class="rechts"> <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=Status > 
                </td>
        </tr>
        <? 
                }
                $Feld="Anrede";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <? 
                        if (($web_rechte[modul_name][tool_name][$Feld]) and (!strrpos($web_rechte[modul_name][tool_name][$Feld],";")))
                        {
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        }
                        else
                        {
                        ?>
                        Anrede: 
                <?
                        }
                        ?>
                </td>
                <td colspan="2" class="rechts"> 
                <INPUT TYPE=CHECKBOX NAME="auswahl[<?=$web_rechte[modul_name][tool_name][$Feld];?>]" VALUE=Anrede > 
                </td>
        </tr>
        <? 
                }
                ?>
        <?
                $Feld="Vorname";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <? if ($web_rechte[modul_name][tool_name][$Feld]) 
                        { 
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        } 
                        else 
                        { 
                        ?>
                        Vorname: 
                <? } ?>
                </td>
                <td colspan="2" class="rechts">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[<?=$web_rechte[modul_name][tool_name][$Feld];?>]" VALUE=Vorname > 
                </td>
        </tr>
        <? 
                }
                ?>
        <?
                $Feld="Name1";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <? 
                        if ($web_rechte[modul_name][tool_name][$Feld]) 
                        { 
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        } 
                        else 
                        { 
                        ?>
                        Name1: 
                <? } ?>
                </td>
                <td colspan="2" class="rechts">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[<?=$web_rechte[modul_name][tool_name][$Feld];?>]" VALUE=Name1 > 
                </td>
        </tr>
        <? 
                }
                ?>
        <?
                $Feld="Name2";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links"> 
                <? if ($web_rechte[modul_name][tool_name][$Feld]) 
                        { 
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        } 
                        else 
                        { 
                        ?>
                        Name2: 
                <? } ?>
                </td>
                <td colspan="2" bgcolor="#<? echo $webs[bgcolor_rechts] ?>">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[<?=$web_rechte[modul_name][tool_name][$Feld];?>]" VALUE=Name2 > 
                </td>
        </tr>
        <? 
                }
                $Feld="Strasse";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <? if ($web_rechte[modul_name][tool_name][$Feld]) 
                        { 
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        } 
                        else 
                        { 
                        ?>
                        Strasse:
                <? } ?>
                </td>
                <td colspan="2" class="rechts">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[Strasse]" VALUE=Strasse >
                        </td>
                </tr>
                <tr>
                        <td class="links">        
                        <?
                        if (isset($user_rechte[modul_name][tool_name][Hausnummer]))
                        {
                        ?>
                        Nr.:
                        </td>
                        <td>
                <INPUT TYPE=CHECKBOX NAME="auswahl[Hausnummer]" VALUE=Hausnummer >
                <?
                        }
                        ?>
                </td>
        </tr>
        <? 
                }
                $Feld="PLZ_Ort";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <? if ($web_rechte[modul_name][tool_name][$Feld]) 
                        { 
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        } 
                        else 
                        { 
                        ?>
                        Plz: 
                <? } ?>
                </td>
                <td colspan="2" class="rechts">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[PLZ]" VALUE=PLZ >
                        </td>
                </tr>
                <tr>
                    <td class="links">
                <? if ($web_rechte[modul_name][tool_name][$Feld]) 
                        { 
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        } 
                        else 
                        { 
                        ?>
                        Ort: 
                <? } ?>
                </td>
                        <td colspan="2" class="rechts">
                <INPUT TYPE=CHECKBOX NAME="auswahl[Ort]" VALUE=Ort > 
                        </td>
        </tr>
        <? 
                }
                ?>
        <?
                $Feld="Land";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <? if ($web_rechte[modul_name][tool_name][$Feld]) 
                        { 
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        } 
                        else 
                        { 
                        ?>
                        Land: 
                <? } ?>
                </td>
                <td colspan="2" class="rechts">
                        <input type=CHECKBOX name="auswahl[Land]" value=Land >
                        </td>
        </tr>
        <? 
                }
                ?>
        <?
                $Feld="Telefon";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <?
                        if ($web_rechte[modul_name][tool_name][$Feld])
                        {
                                $felder = explode(";",$web_rechte[modul_name][tool_name][$Feld]);
                                echo array_shift($felder);
                        }
                        else
                        {
                                echo "Telefon:";
                                $felder=array("");
                        }
                        ?>
                </td>
                <td colspan="2" class="rechts"> 
                <?
                        foreach(array_keys($felder) as $fkey)
                        {
                        if ($fkey > 0) 
                        {
                                $fIndex = $fkey;
                        } 
                        else 
                        {
                                unset($fIndex);
                        }
                        ?>
                <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=Telefon >
                <?
                        echo " (".$felder[$fkey].")";
                        ?>
                <?
                        }
                        ?>
                </td>
        </tr>
        <? 
                }
                ?>
        <?
                $Feld="Fax";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <? if ($web_rechte[modul_name][tool_name][$Feld]) 
                        { 
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        } 
                        else 
                        { 
                        ?>
                        Fax: 
                <? 
                        } 
                        ?>
                </td>
                <td colspan="2" class="rechts">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=FAX > 
                </td>
        </tr>
        <? 
                }
                ?>
        <?
                $Feld="E_Mail";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <? if ($web_rechte[modul_name][tool_name][$Feld]) 
                        { 
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        } 
                        else 
                        { 
                        ?>
                        E-Mail: 
                <? 
                        } 
                        ?>
                </td>
                <td colspan="2" class="rechts">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=E_Mail > 
                </td>
        </tr>
        <?
                }
                ?>
        <?
                $Feld="URL";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <? if ($web_rechte[modul_name][tool_name][$Feld]) 
                        { 
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        } 
                        else 
                        { 
                        ?>
                        Homepage: 
                <? 
                        } 
                        ?>
                </td>
                <td colspan="2" class="rechts">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=URL >
                        </td>
        </tr>
        <?
                }
                ?>
        <?
                for ($x=1; $x<=2; $x++)
                {
                $Feld="Datum".$x;
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <? 
                }
                } 
                ?>
        <?
                for ($Eigenschaft_nr=1; $Eigenschaft_nr<=5; $Eigenschaft_nr++)
                {
                $Feld="Eigenschaft_".$Eigenschaft_nr;
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <?
                        if ($web_rechte[modul_name][tool_name][$Feld]) 
                        {
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        }
                        else
                        {
                        ?>
                        Eigenschaft<? echo $Eigenschaft_nr ?> 
                <?
                        }
                        ?>
                </td>
                <td colspan="2"class="rechts">
                        <input type="hidden" name="Eigenschaft_<? echo $Eigenschaft_nr ?>" value="0"> 
                <input type="checkbox" name="Eigenschaft_<? echo $Eigenschaft_nr ?>" <? if ($zeile[$Feld] == 1) {echo "checked";} ?> value="1"> 
                </td>
        </tr>
        <? 
                }
                } 
                ?>
        <?
                $Feld="AP_Daten";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <? 
                        if ($web_rechte[modul_name][tool_name][$Feld]) 
                        { 
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        } 
                        else 
                        { 
                        ?>
                        Ansprechpartner: 
                <? } ?>
                </td>
                <td width="14%" class="rechts">
                        Name:
                        </td>
                <td class="rechts">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=AP_Name > 
                </td>
        </tr>
        <tr> 
                <td width="14%" height="36" class="rechts">
                        Handy:
                        </td>
                <td height="36" class="rechts">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=AP_Handy > 
                </td>
        </tr>
        <tr> 
                <td width="14%" class="rechts">
                        Bemerkung:
                        </td>
                <td class="rechts">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=AP_Bemerkung> 
                </td>
                </tr>
        <? 
                } 
                ?>
        <?
                for ($Notiz_nr=1; $Notiz_nr<=5; $Notiz_nr++)
                {
                $Feld="Notiz_".$Notiz_nr;
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                <?
                        if ($web_rechte[modul_name][tool_name][$Feld]) 
                        {
                                echo $web_rechte[modul_name][tool_name][$Feld]; 
                        }
                        else
                        {
                        ?>
                        Notiz<? echo $Notiz_nr ?> 
                <?
                        }
                        ?>
                </td>
                <td colspan="2" class="rechts"> 
                <input type=CHECKBOX name="auswahl[]" value= <? $zeile[$Feld]; ?>> </td>
        </tr>
        <? 
                }
                } 
                ?>
                <?
                $Feld="Vereinsdaten";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links">
                                Eintrittsdatum:
                        </td> 
                <td colspan="2" class="rechts">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=Eintrittsdatum >
                        </td>
        </tr>
        <tr> 
                <td class="links">Austrittsdatum:</td>
                <td colspan="2" class="rechts">
                        <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=Austrittsdatum >
                        Grund: 
                <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=Austrittsgrund >
                        </td>
        </tr>
        <tr> 
                <td class="links">
                                Beitrag bezahlt:
                        </td>
                <td colspan="2" class="rechts">
                <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=Beitrag_bezahlt >
                        &nbsp;&euro;:-Betrag 
                <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=Beitrag_Wert>
                </td>
        </tr>
        <tr> 
                <td class="links">
                                Beitrag letztes J.:
                        </td>
                <td colspan="2" class="rechts">
                <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=Beitrag_letztes > 
                                &nbsp;&euro;:-Betrag 
                <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=Betrag_letzter_Wert></td>
        </tr>
        <tr> 
                <td class="links"> 
                        Mitgliedskarte ausgegeben:
                        </td>
                <td colspan="2" class="rechts"><INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=Mitgliedskarte >
                </td>
        </tr>
        <?
                }
                ?>
        <?
                $Feld="bemerkung";
                if (isset($user_rechte[modul_name][tool_name][$Feld]))
                {
                ?>
        <tr> 
                <td class="links"> 
                        Bemerkung
                </td>
                <td width="79%" colspan="2" class="rechts">
                <INPUT TYPE=CHECKBOX NAME="auswahl[]" VALUE=bemerkung >
                </td>
        </tr>
        <? 
                }
                ?>
                <tr>
                        <td class="links">
                                Trennerzeichen:
                        </td>
                        <td colspan="2" class="rechts">
                        <input type="radio" name="trenner" value="0">  ; (Semikolon)
                        <input type="radio" name="trenner" value="1">  | (Pipe)
                        <input name="trenner" type="radio" value="2" checked> \t (Tabstop) 
                        </td>
                </tr>
                <tr>
                        <td class="links" rowspan="3">
                                Texterkennungszeichen:
                        </td>
                        <td class="rechts">
                        <input type="radio" name="txt_kenn" value="0">  ' (einfache Anführungszeichen)
                        <input type="radio" name="txt_kenn" value="1">  " (doppelte Anführungszeichen)<br>
                        </td>
                </tr>
</table> 
<br>
    <input type="submit" name="action" value="Abschicken">
    <input type="reset" name="action" value="Verwerfen">
</form>