Initialer Commit: Kundenverwaltung (PHP/Smarty)
Bestehende Codebasis als Ausgangsstand aufgenommen. - .gitignore: Kundendaten (uploads_*), Smarty-Compile-Cache (templates_c), Laufzeit-Temp und Datenbank-Dumps ausgeschlossen; Verzeichnisstruktur ueber .gitkeep erhalten - .gitattributes: Zeilenenden normalisiert (LF im Repo), Binaerformate markiert - db-backup.php: MySQL-Zugangsdaten kommen jetzt wie im Rest der Anwendung aus der externen Konfiguration statt hartkodiert aus der Datei; Passwort wird ueber eine temporaere Optionsdatei statt per Kommandozeile uebergeben, Fehler von mysqldump/gzip werden gemeldet, Aufraeumen aelterer Backups berechnet Jahr und Monat konsistent Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,85 @@
|
||||
|
||||
{include file="heading.tpl" heading=$head}
|
||||
|
||||
<div class="widthlimiter">
|
||||
<form action="?action={$frmact}&do=tel&kunde={$kunde|escape}&formsent=1&telid={$telid}" method='POST'>
|
||||
<fieldset>
|
||||
<label>Typ:</label><select name="typ" id="typ" >
|
||||
{html_options values=$typids output=$typs selected="{$typ}"}
|
||||
</select><br />
|
||||
|
||||
<label>Name:</label><input name='name' id='name' value="{$name|escape}" pattern="[^0-9]*" /><br />
|
||||
<label>Nummer:</label><input name='nr' id='nr' value="{$nr|escape}" pattern="[0-9-]*" /><br />
|
||||
<label>Vorwahl:</label><input name='vwahl' id='vwahl' value="{$vwahl|escape}" pattern="([\+]\d{ldelim}2{rdelim})?(\s)?[0-9]*" /><br />
|
||||
<label>PLZ/Ort:</label><input name='plz' id='plz' value="{$plz|escape}" pattern="[0-9/a-zA-Z-]*" /><input name='ort' id='ort' value="{$ort|escape}" pattern="[^0-9]*" /><br />
|
||||
<label>Ortsteil:</label><input name='oteil' id='oteil' value="{$oteil|escape}" pattern="[^0-9]*" /><br />
|
||||
<label>Land:</label><input name='land' id='land' value="{$land|escape}" pattern="[^0-9]*" /><br />
|
||||
|
||||
<button type="button" class='spell' onclick="$('input').spellCheckInDialog()">Rechtschreibung prüfen</button><br />
|
||||
</fieldset>
|
||||
<input type="submit" value="Speichern" />
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
<script>
|
||||
$(function() {
|
||||
$( "#vwahl" ).autocomplete({
|
||||
source: "ajax/auto/vwahl.php",
|
||||
minLength: 2,
|
||||
focus: function( event, ui ) {
|
||||
$( "#plz" ).val( ui.item.plz);
|
||||
$( "#ort" ).val( ui.item.ort);
|
||||
$( "#land" ).val( ui.item.lnd);
|
||||
$( "#oteil" ).val( ui.item.otl);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
$(function() {
|
||||
$( "#plz" ).autocomplete({
|
||||
source: "ajax/auto/plz.php",
|
||||
minLength: 2,
|
||||
focus: function( event, ui ) {
|
||||
$( "#ort" ).val( ui.item.ort);
|
||||
$( "#land" ).val( ui.item.lnd);
|
||||
$( "#vwahl" ).val( ui.item.vwl);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
$(function() {
|
||||
$( "#ort" ).autocomplete({
|
||||
source: "ajax/auto/ort.php",
|
||||
minLength: 2,
|
||||
focus: function( event, ui ) {
|
||||
$( "#land" ).val( ui.item.lnd);
|
||||
$( "#plz" ).val( ui.item.plz);
|
||||
$( "#vwahl" ).val( ui.item.vwl);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
$(function() {
|
||||
$( "#oteil" ).autocomplete({
|
||||
source: "ajax/auto/oteil.php",
|
||||
minLength: 2,
|
||||
focus: function( event, ui ) {
|
||||
$( "#ort" ).val( ui.item.ort);
|
||||
$( "#land" ).val( ui.item.lnd);
|
||||
$( "#plz" ).val( ui.item.plz);
|
||||
$( "#vwahl" ).val( ui.item.vwl);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
$(function() {
|
||||
$( "#land" ).autocomplete({
|
||||
source: "ajax/auto/land.php",
|
||||
minLength: 2,
|
||||
focus: function( event, ui ) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
Reference in New Issue
Block a user