Einchecken des Online-Codes

This commit is contained in:
2017-05-07 14:37:49 +00:00
parent 9c1d71cea6
commit 85cc95c574
635 changed files with 76260 additions and 0 deletions

1049
.files/c4immo.sql Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 111 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 123 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

568
admin/css/jquery-ui-1.8.16.custom.css vendored Normal file
View File

@@ -0,0 +1,568 @@
/*
* jQuery UI CSS Framework 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Theming/API
*/
/* Layout helpers
----------------------------------*/
.ui-helper-hidden { display: none; }
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
.ui-helper-clearfix { display: inline-block; }
/* required comment for clearfix to work in Opera \*/
* html .ui-helper-clearfix { height:1%; }
.ui-helper-clearfix { display:block; }
/* end clearfix */
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
/* Interaction Cues
----------------------------------*/
.ui-state-disabled { cursor: default !important; }
/* Icons
----------------------------------*/
/* states and images */
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
/* Misc visuals
----------------------------------*/
/* Overlays */
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
/*
* jQuery UI CSS Framework 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Theming/API
*
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=009ee0&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=000000&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=009ee0&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=009ee0&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=aaaaaa&fcHighlight=363636&iconColorHighlight=009ee0&bgColorError=fef1ec&bgTextureError=05_inset_soft.png&bgImgOpacityError=95&borderColorError=009ee0&fcError=009ee0&iconColorError=009ee0&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
*/
/* Component containers
----------------------------------*/
.ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; }
.ui-widget .ui-widget { font-size: 1em; }
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif; font-size: 1em; }
.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; }
.ui-widget-content a { color: #222222; }
.ui-widget-header { border: 1px solid #aaaaaa; background: #009ee0 url(images/ui-bg_highlight-soft_75_009ee0_1x100.png) 50% 50% repeat-x; color: #000000; font-weight: bold; }
.ui-widget-header a { color: #000000; }
/* Interaction states
----------------------------------*/
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; }
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; }
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999; background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #009ee0; }
.ui-state-hover a, .ui-state-hover a:hover { color: #009ee0; text-decoration: none; }
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #009ee0; }
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #009ee0; text-decoration: none; }
.ui-widget :active { outline: none; }
/* Interaction Cues
----------------------------------*/
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #aaaaaa; background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; color: #363636; }
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #009ee0; background: #fef1ec url(images/ui-bg_inset-soft_95_fef1ec_1x100.png) 50% bottom repeat-x; color: #009ee0; }
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #009ee0; }
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #009ee0; }
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
/* Icons
----------------------------------*/
/* states and images */
.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
.ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
.ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png); }
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_009ee0_256x240.png); }
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_009ee0_256x240.png); }
/* positioning */
.ui-icon-carat-1-n { background-position: 0 0; }
.ui-icon-carat-1-ne { background-position: -16px 0; }
.ui-icon-carat-1-e { background-position: -32px 0; }
.ui-icon-carat-1-se { background-position: -48px 0; }
.ui-icon-carat-1-s { background-position: -64px 0; }
.ui-icon-carat-1-sw { background-position: -80px 0; }
.ui-icon-carat-1-w { background-position: -96px 0; }
.ui-icon-carat-1-nw { background-position: -112px 0; }
.ui-icon-carat-2-n-s { background-position: -128px 0; }
.ui-icon-carat-2-e-w { background-position: -144px 0; }
.ui-icon-triangle-1-n { background-position: 0 -16px; }
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
.ui-icon-triangle-1-e { background-position: -32px -16px; }
.ui-icon-triangle-1-se { background-position: -48px -16px; }
.ui-icon-triangle-1-s { background-position: -64px -16px; }
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
.ui-icon-triangle-1-w { background-position: -96px -16px; }
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
.ui-icon-arrow-1-n { background-position: 0 -32px; }
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
.ui-icon-arrow-1-e { background-position: -32px -32px; }
.ui-icon-arrow-1-se { background-position: -48px -32px; }
.ui-icon-arrow-1-s { background-position: -64px -32px; }
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
.ui-icon-arrow-1-w { background-position: -96px -32px; }
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
.ui-icon-arrow-4 { background-position: 0 -80px; }
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
.ui-icon-extlink { background-position: -32px -80px; }
.ui-icon-newwin { background-position: -48px -80px; }
.ui-icon-refresh { background-position: -64px -80px; }
.ui-icon-shuffle { background-position: -80px -80px; }
.ui-icon-transfer-e-w { background-position: -96px -80px; }
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
.ui-icon-folder-collapsed { background-position: 0 -96px; }
.ui-icon-folder-open { background-position: -16px -96px; }
.ui-icon-document { background-position: -32px -96px; }
.ui-icon-document-b { background-position: -48px -96px; }
.ui-icon-note { background-position: -64px -96px; }
.ui-icon-mail-closed { background-position: -80px -96px; }
.ui-icon-mail-open { background-position: -96px -96px; }
.ui-icon-suitcase { background-position: -112px -96px; }
.ui-icon-comment { background-position: -128px -96px; }
.ui-icon-person { background-position: -144px -96px; }
.ui-icon-print { background-position: -160px -96px; }
.ui-icon-trash { background-position: -176px -96px; }
.ui-icon-locked { background-position: -192px -96px; }
.ui-icon-unlocked { background-position: -208px -96px; }
.ui-icon-bookmark { background-position: -224px -96px; }
.ui-icon-tag { background-position: -240px -96px; }
.ui-icon-home { background-position: 0 -112px; }
.ui-icon-flag { background-position: -16px -112px; }
.ui-icon-calendar { background-position: -32px -112px; }
.ui-icon-cart { background-position: -48px -112px; }
.ui-icon-pencil { background-position: -64px -112px; }
.ui-icon-clock { background-position: -80px -112px; }
.ui-icon-disk { background-position: -96px -112px; }
.ui-icon-calculator { background-position: -112px -112px; }
.ui-icon-zoomin { background-position: -128px -112px; }
.ui-icon-zoomout { background-position: -144px -112px; }
.ui-icon-search { background-position: -160px -112px; }
.ui-icon-wrench { background-position: -176px -112px; }
.ui-icon-gear { background-position: -192px -112px; }
.ui-icon-heart { background-position: -208px -112px; }
.ui-icon-star { background-position: -224px -112px; }
.ui-icon-link { background-position: -240px -112px; }
.ui-icon-cancel { background-position: 0 -128px; }
.ui-icon-plus { background-position: -16px -128px; }
.ui-icon-plusthick { background-position: -32px -128px; }
.ui-icon-minus { background-position: -48px -128px; }
.ui-icon-minusthick { background-position: -64px -128px; }
.ui-icon-close { background-position: -80px -128px; }
.ui-icon-closethick { background-position: -96px -128px; }
.ui-icon-key { background-position: -112px -128px; }
.ui-icon-lightbulb { background-position: -128px -128px; }
.ui-icon-scissors { background-position: -144px -128px; }
.ui-icon-clipboard { background-position: -160px -128px; }
.ui-icon-copy { background-position: -176px -128px; }
.ui-icon-contact { background-position: -192px -128px; }
.ui-icon-image { background-position: -208px -128px; }
.ui-icon-video { background-position: -224px -128px; }
.ui-icon-script { background-position: -240px -128px; }
.ui-icon-alert { background-position: 0 -144px; }
.ui-icon-info { background-position: -16px -144px; }
.ui-icon-notice { background-position: -32px -144px; }
.ui-icon-help { background-position: -48px -144px; }
.ui-icon-check { background-position: -64px -144px; }
.ui-icon-bullet { background-position: -80px -144px; }
.ui-icon-radio-off { background-position: -96px -144px; }
.ui-icon-radio-on { background-position: -112px -144px; }
.ui-icon-pin-w { background-position: -128px -144px; }
.ui-icon-pin-s { background-position: -144px -144px; }
.ui-icon-play { background-position: 0 -160px; }
.ui-icon-pause { background-position: -16px -160px; }
.ui-icon-seek-next { background-position: -32px -160px; }
.ui-icon-seek-prev { background-position: -48px -160px; }
.ui-icon-seek-end { background-position: -64px -160px; }
.ui-icon-seek-start { background-position: -80px -160px; }
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
.ui-icon-seek-first { background-position: -80px -160px; }
.ui-icon-stop { background-position: -96px -160px; }
.ui-icon-eject { background-position: -112px -160px; }
.ui-icon-volume-off { background-position: -128px -160px; }
.ui-icon-volume-on { background-position: -144px -160px; }
.ui-icon-power { background-position: 0 -176px; }
.ui-icon-signal-diag { background-position: -16px -176px; }
.ui-icon-signal { background-position: -32px -176px; }
.ui-icon-battery-0 { background-position: -48px -176px; }
.ui-icon-battery-1 { background-position: -64px -176px; }
.ui-icon-battery-2 { background-position: -80px -176px; }
.ui-icon-battery-3 { background-position: -96px -176px; }
.ui-icon-circle-plus { background-position: 0 -192px; }
.ui-icon-circle-minus { background-position: -16px -192px; }
.ui-icon-circle-close { background-position: -32px -192px; }
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
.ui-icon-circle-zoomin { background-position: -176px -192px; }
.ui-icon-circle-zoomout { background-position: -192px -192px; }
.ui-icon-circle-check { background-position: -208px -192px; }
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
.ui-icon-circlesmall-close { background-position: -32px -208px; }
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
.ui-icon-squaresmall-close { background-position: -80px -208px; }
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
/* Misc visuals
----------------------------------*/
/* Corner radius */
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; }
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; }
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
/* Overlays */
.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/*
* jQuery UI Resizable 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Resizable#theming
*/
.ui-resizable { position: relative;}
.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; }
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
* jQuery UI Selectable 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Selectable#theming
*/
.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
/*
* jQuery UI Accordion 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Accordion#theming
*/
/* IE/Win - Fix animation bug - #4615 */
.ui-accordion { width: 100%; }
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
.ui-accordion .ui-accordion-li-fix { display: inline; }
.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
.ui-accordion .ui-accordion-content-active { display: block; }
/*
* jQuery UI Autocomplete 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Autocomplete#theming
*/
.ui-autocomplete { position: absolute; cursor: default; }
/* workarounds */
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
/*
* jQuery UI Menu 1.8.16
*
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Menu#theming
*/
.ui-menu {
list-style:none;
padding: 2px;
margin: 0;
display:block;
float: left;
}
.ui-menu .ui-menu {
margin-top: -3px;
}
.ui-menu .ui-menu-item {
margin:0;
padding: 0;
zoom: 1;
float: left;
clear: left;
width: 100%;
}
.ui-menu .ui-menu-item a {
text-decoration:none;
display:block;
padding:.2em .4em;
line-height:1.5;
zoom:1;
}
.ui-menu .ui-menu-item a.ui-state-hover,
.ui-menu .ui-menu-item a.ui-state-active {
font-weight: normal;
margin: -1px;
}
/*
* jQuery UI Button 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Button#theming
*/
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
.ui-button-icons-only { width: 3.4em; }
button.ui-button-icons-only { width: 3.7em; }
/*button text element */
.ui-button .ui-button-text { display: block; line-height: 1.4; }
.ui-button-text-only .ui-button-text { padding: .4em 1em; }
.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
/* no icon support for input elements, provide padding by default */
input.ui-button { padding: .4em 1em; }
/*button icon element(s) */
.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
/*button sets*/
.ui-buttonset { margin-right: 7px; }
.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
/* workarounds */
button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
/*
* jQuery UI Dialog 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Dialog#theming
*/
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
.ui-draggable .ui-dialog-titlebar { cursor: move; }
/*
* jQuery UI Slider 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Slider#theming
*/
.ui-slider { position: relative; text-align: left; }
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
.ui-slider-horizontal { height: .8em; }
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
.ui-slider-vertical { width: .8em; height: 100px; }
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
* jQuery UI Tabs 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Tabs#theming
*/
.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
.ui-tabs .ui-tabs-hide { display: none !important; }
/*
* jQuery UI Datepicker 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Datepicker#theming
*/
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
.ui-datepicker .ui-datepicker-prev { left:2px; }
.ui-datepicker .ui-datepicker-next { right:2px; }
.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
.ui-datepicker .ui-datepicker-next-hover { right:1px; }
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
.ui-datepicker select.ui-datepicker-month,
.ui-datepicker select.ui-datepicker-year { width: 49%;}
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
.ui-datepicker td { border: 0; padding: 1px; }
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
/* with multiple calendars */
.ui-datepicker.ui-datepicker-multi { width:auto; }
.ui-datepicker-multi .ui-datepicker-group { float:left; }
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
.ui-datepicker-row-break { clear:both; width:100%; font-size:0em; }
/* RTL support */
.ui-datepicker-rtl { direction: rtl; }
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
.ui-datepicker-cover {
display: none; /*sorry for IE5*/
display/**/: block; /*sorry for IE5*/
position: absolute; /*must have*/
z-index: -1; /*must have*/
filter: mask(); /*must have*/
top: -4px; /*must have*/
left: -4px; /*must have*/
width: 200px; /*must have*/
height: 200px; /*must have*/
}/*
* jQuery UI Progressbar 1.8.16
*
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
* Dual licensed under the MIT or GPL Version 2 licenses.
* http://jquery.org/license
*
* http://docs.jquery.com/UI/Progressbar#theming
*/
.ui-progressbar { height:2em; text-align: left; }
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }

39
admin/css/page.css Normal file
View File

@@ -0,0 +1,39 @@
.noDisplay { display:none; }
.fix { visibility:hidden; clear:both; display:block; }
.hinweis { color:#f00; font-size:larger; font-weight:bold; }
.print { display:none; visibility:hidden; }
.button { display:block; float:left; width:120px; height:20px; background-color:#CCC; line-height:20px; text-align:center; font-weight:bold; cursor:pointer; margin-right:20px; }
html { font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; color:#333; }
body { margin:0px 0px 0px 25px; width:960px; }
h1 { font-size:1.5em; margin:38px 0px 38px 0px; border-bottom:1px solid; }
h2 { font-size:1.2em; margin:0px 0px 12px 0px; }
p { text-align:justify; line-height:1.4em; margin:0px 0px 12px 0px; }
hr { line-height:1px; height:1px; margin:0px 0px 12px 0px; padding:0px; }
table { border-collapse:collapse; }
table.home { table-layout: fixed; }
td { padding:0px 0px 0px 0px; vertical-align:top; }
table.home td { height:16px; overflow:hidden; }
table.Stat td + td { text-align:right; }
table.Objekt td + td + td + td + td { text-align:right; }
th { background-color:#CCC; }
table.Stat th, table.Objekt th { padding-top:20px; font-size:1.2em; font-style:italic; }
tr.Summe { border-top:1px solid black; border-bottom:double; }
tr.underline { border-bottom:1px solid black; }
tr.underline td { font-style:italic; }
img { margin:0px; }
img.drueber { left:500px; position:absolute; }
img.drunter { visibility:hidden; position:absolute; left:550px; vertical-align:text-bottom; z-index:100; border:2px solid grey; }
a:hover img.drunter { visibility:visible; }
fieldset { padding:0px 10px 10px 10px; border:1px solid #333333; }
fieldset p { color:#000; }
legend { margin:10px 20px; font-size:1.2em; font-weight:bold; color:black; }
fieldset fieldset { padding:10px 10px; }
fieldset fieldset legend { margin:0px; font-size:1.0em; font-weight:normal; }
label { width: 150px; display: inline-block; margin-top: 5px; vertical-align: top; }
label.links { color: #000; width: 240px; }
label.rechts { color: #000; width: 170px; }
select { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; width: 305px; border: 1px solid #666666; }
textarea { width: 720px; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 12px; border: 1px solid #666666; }
fieldset fieldset label.rechts { width: 160px; }

100
admin/css/print.css Normal file
View File

@@ -0,0 +1,100 @@
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
}
br.print {
page-break-after: always;
}
.noDisplay {
display: none;
visibility: hidden;
}
#frame, #page, #main, #wrap, #inhalt_box, #inhalt {
width: auto;
}
#inhalt {
display: block;
}
#header_box, #header2, #links_box, #links {
display: none;
visibility: hidden;
}
h1 {
font-size: 2em;
}
form br {
clear: both;
}
fieldset {
page-break-inside: avoid;
page-break-before: auto;
margin-top: 0.5cm;
padding: 0px 10px;
display: inline;
width: 16cm;
}
*html fieldset {
width: 16.5cm;
}
fieldset fieldset {
width: 15cm;
}
fieldset br {
clear: both;
}
form fieldset p {
margin-top: 0px;
}
form fieldset p br {
clear: none;
}
legend {
font-weight: bold;
font-size: 1.2em;
margin-left: 0.5cm;
margin-bottom: 0.2cm;
}
label {
width: 3.5cm;
display: block;
float: left;
}
label.links {
width: 5cm;
}
label.rechts {
width: 4cm;
}
fieldset fieldset label.links {
width: 4cm;
}
fieldset fieldset legend {
font-size: 1.0em;
margin-top: 0px;
}
table {
width: 16cm;
}
td {
padding-top: 0.5cm;
}

15
admin/footer.php Normal file
View File

@@ -0,0 +1,15 @@
<?php
echo "<ul>\n";
echo " <li>";
echo " <a href=\"index.php?section=logout\" class=\"login";
if ('login' == $_GET['section']) {
echo "aktiv\">&nbsp;</a>\n";
} else {
echo "\">&nbsp;</a>\n";
}
echo " </li>\n";
echo "</ul>";
?>

45
admin/header.php Normal file
View File

@@ -0,0 +1,45 @@
<?php
if ( isset ( $_SESSION['ID'] ) )
{
?>
<a style="width:10px; float:right; padding:0px 5px; margin:10px; font-size:20px;" href="img/help.pdf" target="_blank">?</a>
<a style="width:50px; float:right; margin:10px; color:red;" href="index.php?section=logout">Logout</a>
<ul style="float:left;">
<?php
if ( $_SESSION['IsBuero'] )
{
?>
<li><a <?php echo ( isset ( $_GET['section'] ) AND ( 'suche' == $_GET['section'] ) ) ? "class=\"head_active\" " : ""; ?>href="index.php?section=suche">Objektsuche</a></li>
<?php
}
if ( $_SESSION['IsAdmin'] )
{
?>
<li><a <?php echo ( isset ( $_GET['section'] ) AND ( 'home' == $_GET['section'] ) ) ? "class=\"head_active\" " : ""; ?>href="index.php?section=home">Home</a></li>
<?php
}
?>
<li><a <?php echo ( isset ( $_GET['section'] ) AND ( 'objekte' == $_GET['section'] ) ) ? "class=\"head_active\" " : ""; ?>href="index.php?section=objekte">Objekte</a></li>
<?php
if ( $_SESSION['IsAdmin'] )
{
/* ?>
<li><a <?php echo ( isset ( $_GET['section'] ) AND ( 'statistik' == $_GET['section'] ) ) ? "class=\"head_active\" " : ""; ?>href="index.php?section=statistik">Statistik</a></li>*/?>
<li><a <?php echo ( isset ( $_GET['section'] ) AND ( 'stamm' == $_GET['section'] ) ) ? "class=\"head_active\" " : ""; ?>href="index.php?section=stamm">Stammdaten</a></li>
<?php
}
?>
</ul>
<?php
}
?>

BIN
admin/img/check.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
admin/img/check.psd Normal file

Binary file not shown.

BIN
admin/img/close.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

BIN
admin/img/hl_breit.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
admin/img/hl_schmal.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
admin/img/ko_links.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
admin/img/ko_oben.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
admin/img/ko_ohne.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
admin/img/ko_rechts.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
admin/img/layer_bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 930 B

BIN
admin/img/table_bg.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

BIN
admin/img/uu_links.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
admin/img/uu_oben.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
admin/img/uu_ohne.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
admin/img/uu_rechts.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

7
admin/inc/config.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
include "konstanten.php";
include "variablen.php";
include "database.php";
include "funktionen.php";
include "lang_de.php";
?>

8
admin/inc/database.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
// Verbindung zu MySQL Aufbauen
$db = @new MySQLi(MYSQL_HOST, MYSQL_USER, MYSQL_PASS, MYSQL_DATABASE);
if (mysqli_connect_errno()) {
die('Konnte keine Verbindung zu Datenbank aufbauen, MySQL meldete: '.mysqli_connect_error());
}
?>

24
admin/inc/funktionen.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
function fnc_getUsernameById ( $id, $place )
{
global $db;
$sql = "SELECT * FROM User WHERE userId = '" . $id . "' LIMIT 1;";
$result = $db->query ( $sql );
$nt = $result->fetch_assoc ();
switch ( $place )
{
case 'welcome':
$user = $nt['userTitle'] . " " . $nt['userFirstname'] . " " . $nt['userLastname'];
break;
case 'logfiles':
$user = $nt['userLastname'] . ", " . $nt['userFirstname'];
break;
case 'portal':
$user = array ( $nt['userTitle'], $nt['userFirstname'], $nt['userLastname'] );
break;
}
return $user;
}
?>

View File

@@ -0,0 +1,33 @@
<?php
define('MYSQL_HOST', 'localhost');
define('MYSQL_USER', 'root');
define('MYSQL_PASS', 'lmaa,dw.');
define('MYSQL_DATABASE', 'rist-immo');
define('SW_VERSION', 'R!ST-Immo');
define('MAIL_ERROR', 'info@ri-st.de');
define('KONT_ANR', 'Herr');
define('KONT_VOR', 'Thomas');
define('KONT_NACH', 'Erthle');
define('KONT_HOME', 'www.twe-immobilien.de');
define('KONT_MAIL', 'twe@twe-immobilien.de');
define('KONT_FIRMA', 'TWE-Immobilien');
define('KONT_STR', 'Söflinger Straße');
define('KONT_NR', '248');
define('KONT_ORT', 'Ulm');
define('KONT_PLZ', '89075');
define('KONT_TEL', '+49 731 88033900');
define('IMMOS_ID', '5709060');
define('IMMOS_PASS', 'maybach');
define('IMMOW_ID', 'thom179295');
define('IMMOW_KD', '179295');
define('IMMOW_PASS', 'ddkw7847');
define('IMMON_ID', '1087836');
define('IMMON_KD', '1087836');
define('IMMON_PASS', 'TWEsiS248.');
?>

27
admin/inc/konstanten.php Normal file
View File

@@ -0,0 +1,27 @@
<?php
define('MYSQL_HOST', 'localhost');
define('MYSQL_USER', 'c4immo');
define('MYSQL_PASS', 'WIKoe28B.');
define('MYSQL_DATABASE', 'c4immo');
define('SW_VERSION', 'R!ST-Immo');
define('MAIL_ERROR', 'info@ri-st.de');
define('KONT_ANR', 'Herr');
define('KONT_VOR', 'Josef');
define('KONT_NACH', 'Wachter');
define('KONT_HOME', 'www.wachter-immobilien.com');
define('KONT_MAIL', 'info@wachter-immobilien.com');
define('KONT_FIRMA', 'Wachter Immobilien');
define('KONT_STR', 'Kirchenöschle');
define('KONT_NR', '28');
define('KONT_ORT', 'Betzenweiler');
define('KONT_PLZ', '88422');
define('KONT_TEL', '+49 7374 9205882');
define('IMMOW_ID', 'wi_339215');
define('IMMOW_KD', '339215');
define('IMMOW_PASS', 'ayny9752');
?>

6
admin/inc/lang_de.php Normal file
View File

@@ -0,0 +1,6 @@
<?php
$arr_rist['portal']['welcome01'] = "Guten Tag %user%,";
$arr_rist['portal']['welcome02'] = "nachfolgend sehen Sie neu eingegebene Objekte, die noch nicht aktiviert wurden.<br />Wenn Sie diese Objekte betrachten, bearbeiten oder auf die Plattformen übertragen möchten, wählen Sie das betreffende Objekt aus!";
?>

21
admin/inc/variablen.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
// Die Leeren Arrays erzeugen
$dateien = array();
$links = array();
// Das Array für die Inhaltsseite mit den entsprechenden Dateien füllen
$dateien['suche'] = "inhalte/suche.php";
$dateien['home'] = "inhalte/home.php";
$dateien['stamm'] = "inhalte/stamm.php";
$dateien['objekte'] = "inhalte/objekte.php";
$dateien['statistik'] = "inhalte/statistik.php";
$dateien['logout'] = "inhalte/logout.php";
// Das Array für den linken Bereich mit den entsprechenden Dateien füllen
$links['stamm'] = "links/stamm.php";
$links['objekte'] = "links/objekte.php";
$links['statistik'] = "links/statistik.php";
?>

1
admin/index.php Normal file

File diff suppressed because one or more lines are too long

13
admin/inhalt.php Normal file
View File

@@ -0,0 +1,13 @@
<?php
if (!isset($_SESSION['ID'])) {
include "inhalte/passwort.php";
} else {
if(isset($_GET['section']) AND isset($dateien[$_GET['section']])) {
include $dateien[$_GET['section']];
} else {
include $dateien['home'];
}
}
?>

110
admin/inhalte/8er.php Normal file
View File

@@ -0,0 +1,110 @@
<?php
$path = "../img/objekte/";
$tmp_path = "../img/temp/";
$ref = "index.php?section=objekte&t=fotos&o=".$_GET['o'];
if ( !isset ( $_SESSION['ID'] ) )
{
}
else
{
echo "<h1>Bildergalerie zu Objekt-Nummer ".$_GET['o']."</h1>\n";
if ( isset ( $_POST['Speichern'] ) AND 'Speichern' == $_POST['Speichern'] )
{
$uploadfile = $path. $_FILES['Foto']['name'];
move_uploaded_file ( $_FILES['Foto']['tmp_name'], $uploadfile );
$src = imagecreatefromjpeg ( $uploadfile );
list( $width, $height ) = getimagesize ( $uploadfile );
if ( $height > $width )
{
$newheight = 480;
$newwidth = ( $width / $height ) * 480;
}
else
{
$newwidth = 480;
$newheight = ( $height / $width ) * 480;
}
$tmp = imagecreatetruecolor ( $newwidth, $newheight );
imagecopyresampled ( $tmp, $src, 0, 0, 0, 0, $newwidth, $newheight, $width, $height );
$filename = $path . $_GET['o'] . "_" . $_POST['pic'] . ".jpg";
imagejpeg ( $tmp, $filename, 80);
imagedestroy ( $src );
imagedestroy ( $tmp );
unlink ( $path. $_FILES['Foto']['name'] );
echo "<h2 class=\"hinweis\">Das Bild wurde hochgeladen und gespeichert!</h2>\n";
}
if ( !isset ( $_GET['action'] ) OR "add" != $_GET['action'])
{
if ( isset ( $_GET['action'] ) AND 'del' == $_GET['action'])
{
$delfile = $path . $_GET['o'] . "_" . $_GET['pic'] . ".jpg";
if (unlink($delfile))
{
echo "<h2 class=\"hinweis\">Bild wurde gelöscht!</h2>";
}
else
{
echo "<h2 class=\"hinweis\">Fehler beim Löschen des Bildes!</h2>";
}
}
echo "<h2 class=\"hinweis\">Achtung: Beim Löschen gibt es keine weitere Abfrage mehr!</h2>\n";
echo "<p>Auf das rote X klicken um ein Bild zu löschen.<br />";
echo "Auf einen Platzhalter klicken um ein neues Bild hochzuladen.</p>\n";
echo "<ul id=\"sortable\">\n";
for ($i=1; $i<11; $i++)
{
echo " <li id=\"element_" . $i . "\" class=\"ui-state-default\">\n";
$pic = $path.$_GET['o']."_".$i.".jpg";
if (file_exists($pic))
{
$link = $ref."&action=del&pic=".$i;
echo "<img style=\"margin:0px;border:1px solid gray;float:left;\" src=\"$pic?ts=" . date ( 'YmdHis' ) . "\" width=\"100px\" height=\"100px\"/>";
echo "<a href=\"$link\">";
echo "<img width=\"20\" height=\"20\" style=\"margin: 0px;border: 2px solid red;\" src=\"../img/no.jpg\" />";
echo "</a>\n";
}
else
{
$link = $ref."&action=add&pic=".$i;
echo "<a href=\"$link\">";
echo "<img style=\"margin:0px; border:1px solid gray;\" src=\"../img/no_img.gif\" />";
echo "</a>\n";
}
echo " </li>\n";
}
echo "</ul>\n";
?>
<script>
$(function() {
$("#sortable").sortable({
update: function() {
var test = $("#sortable").sortable("serialize", { attribute: 'id' } );
document.FBesch.sorting.value = test;
}
});
});
</script>
<?php
echo "<br style=\"clear:both;\"/>";
echo "<form name=\"FBesch\" action=\"index.php?section=objekte&t=FBesch\" method=\"post\" >\n";
echo " <input type=\"hidden\" name=\"OBJ\" value=\"".$_GET['o']."\" />\n";
echo " <input type=\"hidden\" name=\"sorting\" value=\"\" />\n";
echo " <input class=\"lang\" type=\"submit\" name=\"FBesch\" value=\"Weiter zu den Bild-Beschreibungen\" />\n";
echo "</form>\n";
}
elseif ('add' == $_GET['action']) {
$timestamp = time();
$timestamp .= rand();
echo "<form action=\"".$ref."\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo " <label>Foto ausw&auml;hlen</label>\n";
echo " <input type=\"file\" name=\"Foto\" />\n";
echo " <input type=\"hidden\" name=\"egal\" value=\"".$timestamp."\" />\n";
echo " <input type=\"hidden\" name=\"pic\" value=\"".$_GET['pic']."\" />\n";
echo " <img src=\"../img/help.gif\" title=\"Es kann immer nur ein Bild ausgewählt werden!\" />\n";
echo " <br />\n";
echo " <input type=\"submit\" name=\"Speichern\" value=\"Speichern\" />\n";
echo "</form>\n";
}
}
?>

95
admin/inhalte/einfoto.php Normal file
View File

@@ -0,0 +1,95 @@
<?php
if ( $_SESSION['IsAdmin'] )
{
set_time_limit(0);
ini_set("memory_limit", "128M");
if ( isset ( $_POST['edit'] ) )
{
if ( "loeschen" == $_POST['edit'] )
{
unlink( $filename );
}
if ( "speichern" == $_POST['edit'] )
{
if ( '' != $_FILES['Foto']['name'] )
{
$uploadfile = $uploaddir. $_FILES['Foto']['name'];
move_uploaded_file ( $_FILES['Foto']['tmp_name'], $uploadfile );
$src = imagecreatefromjpeg ( $uploadfile );
list( $width,$height ) = getimagesize( $uploadfile );
$newheight = ( $height / $width ) * $newwidth;
$tmp = imagecreatetruecolor( $newwidth, $newheight );
imagecopyresampled ( $tmp, $src, 0, 0, 0, 0, $newwidth, $newheight, $width, $height );
if ( file_exists( $filename ) )
{
unlink( $filename );
}
if ( file_exists( $uploadfile ) )
{
unlink( $uploadfile );
}
imagejpeg ( $tmp, $filename, 80 );
imagedestroy ($src);
imagedestroy ($tmp);
chmod ( $filename, 0755 );
}
}
if ( "waehlen" == $_POST['edit'] )
{
echo "<form action=\"index.php?".$_SERVER['QUERY_STRING']."\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo " <input type=\"hidden\" name=\"edit\" value=\"speichern\" />\n";
if ( isset ( $_POST['ID'] ) )
{
echo " <input type=\"hidden\" name=\"ID\" value=\"".$_POST['ID']."\" />\n";
}
echo " <input type=\"hidden\" name=\"test\" value=\"".microtime()."\" />\n";
echo " <input type=\"hidden\" name=\"Filename\" value=\"".$filename."\" />\n";
echo " <input type=\"hidden\" name=\"action\" value=\"Foto\" />\n";
echo " <label>Foto auswählen</label>\n";
echo " <input type=\"file\" name=\"Foto\" />\n";
echo " <br />\n";
echo " <input type=\"submit\" name=\"Speichern\" value=\"Hochladen\" />\n";
echo " <br />\n";
echo "</form>\n";
}
}
else
{
if ( "" == $filename )
{
}
elseif ( file_exists( $filename ) )
{
echo "<p>Auf das Bild klicken, um es zu löschen! <span class=\"hinweis\">Achtung!</span> Es gibt keine weitere Abfrage mehr.</p>\n";
echo "<form action=\"index.php?".$_SERVER['QUERY_STRING']."\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo " <input type=\"hidden\" name=\"edit\" value=\"loeschen\" />\n";
echo " <input type=\"hidden\" name=\"test\" value=\"".microtime()."\" />\n";
echo " <input type=\"hidden\" name=\"DELname\" value=\"".$filename."\" />\n";
if ( isset ( $_POST['ID'] ) )
{
echo " <input type=\"hidden\" name=\"ID\" value=\"".$_POST['ID']."\" />\n";
}
echo " <input style=\"width: auto; max-width: 750px;\" type=\"image\" src=\"".$filename."\" name=\"action\" value=\"Foto\" />\n";
echo " <br />\n";
echo "</form>\n";
}
else
{
echo "<p>Auf den <span class=\"hinweis\">Platzhalter</span> klicken, um ein Bild hochzuladen.</p>\n";
echo "<form action=\"index.php?".$_SERVER['QUERY_STRING']."\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo " <input type=\"hidden\" name=\"width\" value=\"".$foto_width."\" />\n";
echo " <input type=\"hidden\" name=\"test\" value=\"".microtime()."\" />\n";
echo " <input type=\"hidden\" name=\"edit\" value=\"waehlen\" />\n";
if ( isset ( $_POST['ID'] ) )
{
echo " <input type=\"hidden\" name=\"ID\" value=\"".$_POST['ID']."\" />\n";
}
echo " <input style=\"width: auto;\" type=\"image\" src=\"../img/no.jpg\" name=\"action\" value=\"Foto\" />\n";
echo " <br />\n";
echo "</form>\n";
}
}
}
?>

123
admin/inhalte/fbesch.php Normal file
View File

@@ -0,0 +1,123 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if (!isset($_POST['speichern'])) {
$sql1 = "SELECT Foto0, Foto1, Foto2, Foto3, Foto4, Foto5, Foto6, Foto7, Foto8, Foto9, Foto10 FROM objekte WHERE ID = \"".$_POST['OBJ']."\" ";
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
$sortArray = explode ( '&', $_POST['sorting'] );
foreach ( $sortArray AS $key => $element )
{
$element = str_replace ( 'element[]=', '', $element );
$pic = "../img/objekte/".$_POST['OBJ']."_".( $element ) .".jpg";
$tmp = "../img/temp/".$_POST['OBJ']."_".( $key + 1 ) .".jpg";
if ( file_exists ( $pic ) )
{
rename ( $pic, $tmp );
$update .= 'Foto' . ( $key + 1 ) . ' = "' . $nt1[ 'Foto' . $element ] . '", ';
}
}
for ( $i=1; $i<15; $i++ )
{
$tmp = "../img/temp/".$_POST['OBJ']."_".( $i ) .".jpg";
$pic = "../img/objekte/".$_POST['OBJ']."_".( $i ) .".jpg";
if ( file_exists ( $tmp ) )
{
rename ( $tmp, $pic );
}
}
if ( ! empty ( $update ) )
{
$update = ( substr ( $update , 0 , -2 ) );
$sql = 'UPDATE objekte SET ' . $update . ' WHERE ID = "' . $_POST[ 'OBJ' ] . '";';
$stmt = $db->prepare( $sql );
if ( !$stmt )
{
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if ( !$stmt->execute( ) )
{
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
}
echo "<h1>Bildergalerie zu Objekt-Nummer ".$_POST['OBJ']."</h1>\n";
$sql1 = "SELECT Foto0, Foto1, Foto2, Foto3, Foto4, Foto5, Foto6, Foto7, Foto8, Foto9, Foto10 FROM objekte WHERE ID = \"".$_POST['OBJ']."\" ";
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
echo "<form action=\"index.php?section=objekte&t=FBesch\" method=\"post\" >\n";
echo "<fieldset>\n";
echo " <legend>Bildbeschreibungen</legend>\n";
echo " <input type=\"hidden\" name=\"ID\" value=\"".$_POST['OBJ']."\" />\n";
for ($i=1; $i<15; $i++) {
$pic = "../img/objekte/".$_POST['OBJ']."_" . $i . ".jpg";
if (file_exists($pic)) {
echo " <img style=\"margin: 0px 20px 20px 20px; float: left;\" src=\"$pic?ts=" . date ( 'YmdHis' ) . "\" width=\"100px\" height=\"100px\"/>";
echo " <label>Foto ".$i."</label>\n";
echo " <br />\n";
echo " <input type=\"text\" name=\"Foto".$i."\" value=\"".$nt1['Foto'.$i]."\"/>\n";
echo " <br class=\"fix\" />\n";
}
else
{
echo " <input type=\"hidden\" name=\"Foto".$i."\" value=\"\"/>\n";
}
}
echo " <input type=\"submit\" name=\"speichern\" value=\"Speichern\" />\n";
echo "</fieldset>\n";
echo "</form>\n";
} else {
echo "<h1>Bildergalerie zu Objekt-Nummer ".$_POST['ID']."</h1>\n";
$sql = 'UPDATE objekte SET
Foto1 = "'.$_POST['Foto1'].'",
Foto2 = "'.$_POST['Foto2'].'",
Foto3 = "'.$_POST['Foto3'].'",
Foto4 = "'.$_POST['Foto4'].'",
Foto5 = "'.$_POST['Foto5'].'",
Foto6 = "'.$_POST['Foto6'].'",
Foto7 = "'.$_POST['Foto7'].'",
Foto8 = "'.$_POST['Foto8'].'",
Foto9 = "'.$_POST['Foto9'].'",
Foto10 = "'.$_POST['Foto10'].'"
WHERE ID = "'.$_POST['ID'].'";';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
echo "<p class=\"hinweis\">Datensatz wurde gespeichert!</p>\n";
$sql2 = "SELECT ID, KAT, O_TYP, V_TYP FROM objekte WHERE ID = \"".$_POST['ID']."\" ";
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
$ref = "index.php?section=objekte&t=";
if (("Wohnung" == $nt2['O_TYP']) AND ("Miete" == $nt2['V_TYP'])) {
$ref .= "wm";
} elseif (("Haus" == $nt2['O_TYP']) AND ("Miete" == $nt2['V_TYP'])) {
$ref .= "hm";
} elseif (("Wohnung" == $nt2['O_TYP']) AND ("Kauf" == $nt2['V_TYP'])) {
$ref .= "wk";
} elseif (("Haus" == $nt2['O_TYP']) AND ("Kauf" == $nt2['V_TYP'])) {
$ref .= "hk";
} elseif (("gewerbe" == $nt2['KAT']) AND ("Kauf" == $nt2['V_TYP'])) {
$ref .= "gk";
} elseif (("gewerbe" == $nt2['KAT']) AND ("Miete" == $nt2['V_TYP'])) {
$ref .= "gm";
} elseif (("anlage" == $nt2['KAT']) AND ("Kauf" == $nt2['V_TYP'])) {
$ref .= "ro";
}
echo "<form action=\"".$ref."\" method=\"post\" >\n";
echo " <input type=\"hidden\" name=\"ID\" value=\"".$nt2['ID']."\" />\n";
echo " <input type=\"submit\" name=\"formaction\" value=\"Anzeigen\" />\n";
echo "</form>\n";
}
}
?>

8
admin/inhalte/home.php Normal file
View File

@@ -0,0 +1,8 @@
<?php
if ( $_SESSION['IsAdmin'] )
{
$_GET['sortRow'] = ( !isset ( $_GET['sortRow'] ) OR empty ( $_GET['sortRow'] ) ) ? 'Datum' : $_GET['sortRow'];
$_GET['sortDir'] = ( !isset ( $_GET['sortDir'] ) OR empty ( $_GET['sortDir'] ) ) ? 'DESC' : $_GET['sortDir'];
$tmp_imgDatum = ( $_GET['sortRow'] == 'Datum' ) ? ( $_GET['sortDir'] == 'ASC' ) ? 'sort_up.gif' : 'sort_down.gif' : 'sort_wo.gif';
$tmp_imgID = ( $_GET['sortRow'] == 'ID' ) ? ( $_GET['sortDir'] == 'ASC' ) ? 'sort_up.gif' : 'sort_down.gif' : 'sort_wo.gif';

68
admin/inhalte/login1.php Normal file
View File

@@ -0,0 +1,68 @@
<?php
$sql = 'SELECT * FROM User WHERE userEMail = "'.$_POST['EMail'].'";';
$result = $db->query($sql);
$nt = $result->fetch_assoc();
if (!$nt)
{
echo "<p>EMail-Adresse existiert nicht!</p>";
include "inhalte/login2.php";
}
elseif ( 'Y' == $nt['userDeact'] )
{
echo "<p>Ihr Account wurde deaktiviert!</p>";
echo "<p>Bitte wenden Sie sich an den Administrator!</p>";
}
else
{
if ( md5 ( $nt['userPassword'] ) == md5 ( $_POST['Passwort'] ) )
{
$_SESSION['ID'] = session_id();
$_SESSION['TID'] = $nt['userId'];
if ( 'Y' == $nt['userIsAdmin'] )
{
$_SESSION['IsAdmin'] = 1;
$_SESSION['IsBuero'] = 1;
?>
<script type="text/javascript">
<!--
window.location = "index.php?section=home"
//-->
</script>
<?php
}
else
{
$_SESSION['IsAdmin'] = 0;
if ( 'Y' == $nt['userIsBuero'] )
{
$_SESSION['IsBuero'] = 1;
?>
<script type="text/javascript">
<!--
window.location = "index.php?section=suche"
//-->
</script>
<?php
}
else
{
$_SESSION['IsBuero'] = 0;
?>
<script type="text/javascript">
<!--
window.location = "index.php?section=objekte"
//-->
</script>
<?php
}
}
}
else
{
echo "Passwort und EMail-Adresse stimmen nicht überein!";
include "inhalte/login2.php";
}
}
?>

33
admin/inhalte/login2.php Normal file
View File

@@ -0,0 +1,33 @@
<h1>Bitte loggen Sie sich ein</h1>
<table width="450" style="margin: 30px 50px;background:none;">
<form action="index.php" method="post">
<colgroup>
<col width="150px" />
<col width="300px" />
</colgroup>
<tr>
<td colspan="2">Um die Objekt-Vorschau nutzen zu können, müssen Sie Ihren Popup-Blocker für diese Seite deaktivieren.</td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td>Email:</td>
<td><input name="EMail" size="50" type="text" /></td>
</tr>
<tr>
<td>Passwort:</td>
<td><input name="Passwort" size="50" type="password" /></td>
</tr>
<tr>
<td colspan="2">&nbsp;</td>
</tr>
<tr>
<td colspan="2" style="text-align:right;">
<input name="Send" type="submit" value="Login" class="login" />
</td>
</tr>
</form>
</table>
<a href="../index.php">Zur Hauptseite</a>

7
admin/inhalte/logout.php Normal file
View File

@@ -0,0 +1,7 @@
<?php
session_unset();
echo "<h1>Administrationsbereich</h1>\n";
echo "<a href=\"index.php\">Erneut einloggen</a>\n";
?>

10
admin/inhalte/objekte.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if (!isset($_GET['t'])) {
include "inhalte/objekte/standard.php";
} else {
include "inhalte/objekte/objekte.php";
}
}
?>

View File

@@ -0,0 +1,96 @@
<?php
if ( isset ( $_POST['action'] ) AND ( 'aktivieren' == $_POST['action'] ) )
{
$sql = 'UPDATE objekte SET
Aktiv = "1",
Deaktiv = "0"
WHERE ID = "'.$_POST['ID'].'";';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
echo "<p>Datensatz wurde gespeichert!</p>\n";
}
elseif ( isset ( $_POST['action'] ) AND ( 'deaktivieren' == $_POST['action'] ) )
{
$sql = 'UPDATE objekte SET
Aktiv = "0",
Deaktiv = "1"
WHERE ID = "'.$_POST['ID'].'";';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
echo "<p>Datensatz wurde gespeichert!</p>\n";
}
if ( isset ( $_POST['ImmoScout'] ) )
{
include "inhalte/portale/immos.php";
}
if ( isset ( $_POST['ImmoWelt'] ) )
{
include "inhalte/portale/immow.php";
}
if ( isset ( $_POST['ImmoNet'] ) )
{
include "inhalte/portale/immon.php";
}
if ( !isset ( $_POST['fromDel'] ) )
{
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "' LIMIT 1;";
$result = $db->query ( $sql );
$nt = $result->fetch_assoc();
?>
<form action="index.php?<?php echo $_SERVER['QUERY_STRING']; ?>" method="post">
<fieldset>
<input type="hidden" name="formaction" value="De- / Aktivieren" />
<input type="hidden" name="ID" value="<?php echo $_POST['ID']; ?>" />
<legend><i><?php echo $nt['ID'] . ' ' . $nt['Kurz']; ?></i> aktivieren / übertragen</legend>
<label><?php echo ( !$nt['Aktiv'] ) ? "Objekt aktivieren" : "Objekt deaktivieren" ; ?></label>
<input type="submit" name="action" value="<?php echo ( !$nt['Aktiv'] ) ? "aktivieren" : "deaktivieren" ; ?>" />
<br />
<label>ImmoWelt</label>
<input type="submit" name="ImmoWelt" value="<?php echo ( !$nt['Welt'] ) ? "importieren" : "aktualisieren" ; ?>" />
<?php
if ( $nt['Welt'] )
{
echo '<input type="submit" name="ImmoWelt" value="loeschen" />';
}
/*
?>
<br />
<label>ImmoNet</label>
<input type="submit" name="ImmoNet" value="<?php echo ( !$nt['Net'] ) ? "importieren" : "aktualisieren" ; ?>" />
<?php
if ( $nt['Net'] )
{
echo '<input type="submit" name="ImmoNet" value="loeschen" />';
}
*/
?>
<br />
</fieldset>
</form>
<div id="blende" style="position:relative;display:none;visibility:hidden;width:757px;height:400px;top:-160px;background-color:white;border:1px solid gray;"><h1>Bitte warten, Dateien werden übertragen!</h1></div>
<?php
if ( isset ( $_POST['ImmoScout'] ) OR isset ( $_POST['ImmoWelt'] ) OR isset ( $_POST['ImmoNet'] ) )
{
?>
<script>
show_blende();
</script>
<?php
}
}
else
{
echo "<h1>Objekt wurde gelöscht</h1>\n";
}

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,83 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
echo "<h1>Objekt speichern...</h1>\n";
$sql = 'UPDATE objekte SET
O_TYP = "'.$_POST['O_TYP'].'",
Aktiv = "'.$_POST['Aktiv'].'",
Deaktiv = "'.$_POST['Deaktiv'].'",
Highlight = "'.$_POST['Highlight'].'",
Neu = "'.$_POST['Neu'].'",
FotoStart = "'.$_POST['FotoStart'].'",
Kurz = "'.$_POST['Kurz'].'",
Tags = "'.$_POST['Tags'].'",
OBeschreibung = "'.$_POST['OBeschreibung'].'",
Zustand = "'.$_POST['Zustand'].'",
Quali = "'.$_POST['Quali'].'",
Baujahr = "'.$_POST['Baujahr'].'",
Modern = "'.$_POST['Modern'].'",
Etagen = "'.$_POST['Etagen'].'",
WohnF = "'.$_POST['WohnF'].'",
GrundF = "'.$_POST['GrundF'].'",
Heizart = "'.$_POST['Heizart'].'",
Befeuerung = "'.$_POST['Befeuerung'].'",
Strasse = "'.$_POST['Strasse'].'",
StraNr = "'.$_POST['StraNr'].'",
PLZ = "'.$_POST['PLZ'].'",
Ort = "'.$_POST['Ort'].'",
Mkalt = "'.$_POST['Mkalt'].'",
StellK = "'.$_POST['StellK'].'",
VermietbareFlaeche = "'.$_POST['VermietbareFlaeche'].'",
MietEinnahmePaIst = "'.$_POST['MietEinnahmePaIst'].'",
MietEinnahmePaSoll = "'.$_POST['MietEinnahmePaSoll'].'",
ProvisionsPflichtig = "'.$_POST['ProvisionsPflichtig'].'",
Provision = "'.$_POST['Provision'].'",
Keller = "'.$_POST['Keller'].'",
AnzGarStell = "'.$_POST['AnzGarStell'].'",
FusswegOeNV = "'.$_POST['FusswegOeNV'].'",
FahrBHF = "'.$_POST['FahrBHF'].'",
FahrBAB = "'.$_POST['FahrBAB'].'",
Fahrflug = "'.$_POST['Fahrflug'].'",
Lage = "'.$_POST['Lage'].'",
Ausstatt = "'.$_POST['Ausstatt'].'",
EnerTyp = "'.$_POST['EnerTyp'].'",
EnerVKW = "'.$_POST['EnerVKW'].'",
EnerWWEnt = "'.$_POST['EnerWWEnt'].'",
Aufzug = "'.$_POST['Aufzug'].'",
Sonstiges = "'.$_POST['Sonstiges'].'",
Intern = "'.$_POST['Intern'].'",
Akt_Datum = now()
WHERE ID = "'.$_POST['ID'].'";';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "';";
$result = $db->query($sql);
$nt = $result->fetch_assoc();
if ( $nt['Scout'] )
{
$_POST['ImmoScout'] = 'loeschen';
}
if ( $nt['Welt'] )
{
$_POST['ImmoWelt'] = 'loeschen';
}
if ( $nt['Net'] )
{
$_POST['ImmoNet'] = 'loeschen';
}
$_POST['fromDel'] = '1';
include "inhalte/objekte/aktivieren.php";
echo "<p>Datensatz wurde gespeichert!</p>\n";
echo "<form action=\"index.php?section=objekte&t=fotos&o=".$_POST['ID']."\" method=\"post\" />\n";
echo " <input type=\"submit\" name=\"Fotos\" value=\"zu den Fotos\" />\n";
echo "</form>\n";
include "inhalte/orte.php";
}
?>

View File

@@ -0,0 +1,283 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if ('POST' == $_SERVER['REQUEST_METHOD']) {
if (!isset($_POST['formaction'])) {
echo "Benutzen sie nur Formulare von der Homepage.";
}
elseif ('Anzeigen' == ($_POST['formaction'])) {
$sqlob = 'SELECT * FROM objekte WHERE ID = "'.$_POST['ID'].'" ';
$resultob = $db->query($sqlob);
$ntob = $resultob->fetch_assoc();
$sql1 = 'SELECT DATE_FORMAT(Datum, "%d.%m.%Y") AS Datum, DATE_FORMAT(Akt_Datum, "%d.%m.%Y") AS Akt_Datum FROM objekte WHERE ID = "'.$_POST['ID'].'" ';
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
$sql3 = "SELECT Wert FROM US WHERE ID = \"9\";";
$result3 = $db->query($sql3);
$nt3 = $result3->fetch_assoc();
/* $sql4 = 'SELECT
*
FROM vv
WHERE ID = "'.$ntob['VVID'].'" ';
$result4 = $db->query($sql4);
$nt4 = $result4->fetch_assoc();
*/
echo "<h1>".$ntob['ID']." - ".$ntob['Kurz']."</h1>\n";
echo "<p style=\"margin-left: 13px;\">\n";
echo " <label>Aufgenommen:</label>\n";
echo " <label class=\"links\">".fnc_getUsernameById ( $ntob['TID'], 'logfiles' ).", ".$nt1['Datum']."</label>\n";
echo " <label>Zuletzt bearbeitet:</label>\n";
echo " <label class=\"rechts\">".$nt1['Akt_Datum']."</label>\n";
if ("Tags" == $nt3['Wert']) {
echo " <label>SEO-Schlagworte</label>\n";
echo " <br />\n";
echo "<span style=\"color: #000000;\">";
echo $ntob['Tags'];
echo "</span>\n";
}
echo "</p>\n";
echo "<br style=\"clear: both;\" />\n";
/* echo "<fieldset>\n";
echo " <legend>Kontaktdaten</legend>\n";
echo " <label>Anrede</label>\n";
echo " <label class=\"links\">".$nt4['Anrede']."</label>\n";
echo " <label>Telefon</label>\n";
echo " <label class=\"rechts\">".$nt4['Telefon']."</label>\n";
echo " <br />\n";
echo " <label>Vorname</label>\n";
echo " <label class=\"links\">".$nt4['Vorname']."</label>\n";
echo " <label>Fax</label>\n";
echo " <label class=\"rechts\">".$nt4['Fax']."</label>\n";
echo " <br />\n";
echo " <label>Nachname</label>\n";
echo " <label class=\"links\">".$nt4['Nachname']."</label>\n";
echo " <label>Mobil</label>\n";
echo " <label class=\"rechts\">".$nt4['Mobil']."</label>\n";
echo " <br />\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$nt4['Adresse']."</label>\n";
echo " <label>Firma</label>\n";
echo " <label class=\"rechts\">".$nt4['Firma']."</label>\n";
echo " <br />\n";
echo " <label>PLZ / Ort</label>\n";
echo " <label class=\"links\">".$nt4['PLZ']." ".$nt4['Ort']."</label>\n";
echo " <br />\n";
echo " <label>Email</label>\n";
echo " <label class=\"links\">".$nt4['Email']."</label>\n";
echo "</fieldset>\n";
echo "<br />\n";
*/ echo "<fieldset>\n";
echo " <legend>Eigenschaften</legend>\n";
echo " <label>Neu eingetroffen</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Neu'].".png\" /></label>\n";
echo " <label>Foto auf Startseite</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['FotoStart'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Zimmer</label>\n";
echo " <label class=\"links\">".$ntob['Zimmer']."</label>\n";
echo " <label>Art</label>\n";
echo " <label class=\"rechts\">".$ntob['Art']."</label>\n";
echo " <br />\n";
echo " <label>Zustand</label>\n";
echo " <label class=\"links\">".$ntob['Zustand']."</label>\n";
echo " <label>Qualität-Ausstattung</label>\n";
echo " <label class=\"rechts\">".$ntob['Quali']."</label>\n";
echo " <br />\n";
echo " <label>Baujahr</label>\n";
echo " <label class=\"links\">".$ntob['Baujahr']."</label>\n";
echo " <label>letzte Modernisierung</label>\n";
echo " <label class=\"rechts\">".$ntob['Modern']."</label>\n";
echo " <br />\n";
echo " <label>Etage</label>\n";
echo " <label class=\"links\">".$ntob['Etage']."</label>\n";
echo " <label>Etagen</label>\n";
echo " <label class=\"rechts\">".$ntob['Etagen']."</label>\n";
echo " <br />\n";
echo " <label>Wohnfläche</label>\n";
echo " <label class=\"links\">".$ntob['WohnF']."</label>\n";
echo " <label>Grundfläche</label>\n";
echo " <label class=\"rechts\">".$ntob['GrundF']."</label>\n";
echo " <br />\n";
echo " <label>Heizart</label>\n";
echo " <label class=\"links\">".$ntob['Heizart']."</label>\n";
echo " <label>Befeuerungsart</label>\n";
echo " <label class=\"rechts\">".$ntob['Befeuerung']."</label>\n";
echo " <br />\n";
echo " <label>Waschmaschine im</label>\n";
echo " <label class=\"links\">".$ntob['WaschOrt']."</label>\n";
echo " <label>TV-Anschluss</label>\n";
echo " <label class=\"rechts\">".$ntob['TV']."</label>\n";
echo " <br />\n";
echo " <label>Bezug</label>\n";
echo " <label class=\"links\">".$ntob['Bezug']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Lage</legend>\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$ntob['Strasse']." ".$ntob['StraNr']."</label>\n";
echo " <label>Ort</label>\n";
echo " <label class=\"rechts\">".$ntob['PLZ']." ".$ntob['Ort']."</label>\n";
echo " <br />\n";
echo "<p>".nl2br($ntob['Lage'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Kosten</legend>\n";
echo " <label>Kaufpreis</label>\n";
echo " <label class=\"links\">".$ntob['Mkalt']."</label>\n";
echo " <label>Wohngeld</label>\n";
echo " <label class=\"rechts\">".$ntob['Mwarm']."</label>\n";
echo " <br />\n";
echo " <label>Kaufpreis Garage</label>\n";
echo " <label class=\"links\">".$ntob['GaraK']."</label>\n";
echo " <label>Kaufpreis Stellplatz</label>\n";
echo " <label class=\"rechts\">".$ntob['StellK']."</label>\n";
echo " <br />\n";
echo " <label>Mieteinnahmen</label>\n";
echo " <label class=\"links\">".$ntob['SonK']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Auflagen</legend>\n";
echo " <label>Erwachsene</label>\n";
echo " <label class=\"links\">".$ntob['EZahl']."</label>\n";
echo " <label>Kinder</label>\n";
echo " <label class=\"rechts\">".$ntob['KZahl']."</label>\n";
echo " <br />\n";
echo " <label>Raucher</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Raucher'].".png\" /></label>\n";
echo " <label>Ausländer</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Ausl'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Ausstattung</legend>\n";
echo "<fieldset>\n";
echo " <legend>innen</legend>\n";
echo " <label>Abstellraum</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Abstell'].".png\" /></label>\n";
echo " <label>Dachboden</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['DachB'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Keller</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Keller'].".png\" /></label>\n";
echo " <label>Aufzug</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Aufzug'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Betreutes Wohnen</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Betreut'].".png\" /></label>\n";
echo " <label>Barrierefrei</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Barrierefrei'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Küche</legend>\n";
echo " <label>Einbauküche</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['EinbauK'].".png\" /></label>\n";
echo " <label>Speisekammer</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Speise'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Badezimmer</legend>\n";
echo " <label>Anzahl Badezimmer</label>\n";
echo " <label class=\"links\">".$ntob['AnzBad']."</label>\n";
echo " <br />\n";
echo " <label>Badewanne</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['BadeW'].".png\" /></label>\n";
echo " <label>Duschkabine</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['DuschK'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>WC im Bad</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['WCbad'].".png\" /></label>\n";
echo " <label>Gäste-WC</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['WCsep'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>aussen</legend>\n";
echo " <label>Anzahl Garage/Stellpl.</label>\n";
echo " <label class=\"links\">".$ntob['AnzGarStell']."</label>\n";
echo " <br />\n";
echo " <label>Garage</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Garage'].".png\" /></label>\n";
echo " <label>Stellplatz</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['StellPl'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Terrasse</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Terrasse'].".png\" /></label>\n";
echo " <label>Balkon</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Balkon'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Gartenbenutzung</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Garten'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Energieausweis</legend>\n";
echo " <label>Energieausweistyp</label>\n";
echo " <label class=\"links\">".$ntob['EnerTyp']."</label>\n";
echo " <br />\n";
echo " <label>Verbrauchskennwert</label>\n";
echo " <label class=\"links\">".$ntob['EnerVKW']."</label>\n";
echo " <label>Warmwasser enthalten</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['EnerWWEnt'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo " <p>".nl2br($ntob['Ausstatt'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Sonstiges</legend>\n";
echo " <p>".nl2br($ntob['Sonstiges'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Interne Infos</legend>\n";
echo " <p>".nl2br($ntob['Intern'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Fotos</legend>\n";
echo " <table style=\"background:none;\">\n";
echo " <colgroup>\n";
echo " <col span=\"4\" width=\"180px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
$j = 0;
for ($i=1; $i<8; $i++) {
$pic = "../img/objekte/".$_POST['ID']."_".$i.".jpg";
if (file_exists($pic)) {
echo " <td style=\"text-align:center;\" >\n";
echo " <img src=\"".$pic."\" title=\"".$ntob['Foto'.$i]."\" width=\"100px\" height=\"100px\"/> \n";
echo " <br />\n";
echo $ntob['Foto'.$i];
echo " </td>\n";
$j++;
}
if ("4" == $j) {
echo " </tr>\n";
echo " <tr>\n";
}
}
echo " </tr>\n";
echo " </table>\n";
echo "</fieldset>\n";
echo "<br />\n";
}
}
}
?>

View File

@@ -0,0 +1,39 @@
<?php
if (!isset($_SESSION['ID'])) {
} else
{
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "';";
$result = $db->query($sql);
$nt = $result->fetch_assoc();
if ( $nt['Scout'] )
{
$_POST['ImmoScout'] = 'loeschen';
}
if ( $nt['Welt'] )
{
$_POST['ImmoWelt'] = 'loeschen';
}
if ( $nt['Net'] )
{
$_POST['ImmoNet'] = 'loeschen';
}
$_POST['fromDel'] = '1';
include "inhalte/objekte/aktivieren.php";
$sql = 'DELETE FROM
objekte
WHERE
ID = "'.$_POST['ID'].'";';
$result = $db->query($sql);
if ($result)
{
unset($_POST);
include "inhalte/objekte.php";
}
else
{
echo "Fehler beim löschen";
}
unset ( $_POST );
}
?>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,84 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
echo "<h1>Objekt speichern...</h1>\n";
$sql = 'UPDATE objekte SET
O_TYP = "'.$_POST['O_TYP'].'",
Aktiv = "'.$_POST['Aktiv'].'",
Deaktiv = "'.$_POST['Deaktiv'].'",
Highlight = "'.$_POST['Highlight'].'",
Neu = "'.$_POST['Neu'].'",
FotoStart = "'.$_POST['FotoStart'].'",
Kurz = "'.$_POST['Kurz'].'",
Tags = "'.$_POST['Tags'].'",
OBeschreibung = "'.$_POST['OBeschreibung'].'",
Zustand = "'.$_POST['Zustand'].'",
Quali = "'.$_POST['Quali'].'",
Baujahr = "'.$_POST['Baujahr'].'",
Modern = "'.$_POST['Modern'].'",
Etagen = "'.$_POST['Etagen'].'",
WohnF = "'.$_POST['WohnF'].'",
GrundF = "'.$_POST['GrundF'].'",
Heizart = "'.$_POST['Heizart'].'",
ProvisionsPflichtig = "'.$_POST['ProvisionsPflichtig'].'",
Provision = "'.$_POST['Provision'].'",
Befeuerung = "'.$_POST['Befeuerung'].'",
Bezug = "'.$_POST['Bezug'].'",
Strasse = "'.$_POST['Strasse'].'",
StraNr = "'.$_POST['StraNr'].'",
PLZ = "'.$_POST['PLZ'].'",
Ort = "'.$_POST['Ort'].'",
Mkalt = "'.$_POST['Mkalt'].'",
StellK = "'.$_POST['StellK'].'",
EinbauK = "'.$_POST['EinbauK'].'",
Keller = "'.$_POST['Keller'].'",
AnzGarStell = "'.$_POST['AnzGarStell'].'",
FusswegOeNV = "'.$_POST['FusswegOeNV'].'",
FahrBHF = "'.$_POST['FahrBHF'].'",
FahrBAB = "'.$_POST['FahrBAB'].'",
Fahrflug = "'.$_POST['Fahrflug'].'",
Lage = "'.$_POST['Lage'].'",
Auflagen = "'.$_POST['Auflagen'].'",
Ausstatt = "'.$_POST['Ausstatt'].'",
EnerTyp = "'.$_POST['EnerTyp'].'",
EnerVKW = "'.$_POST['EnerVKW'].'",
EnerWWEnt = "'.$_POST['EnerWWEnt'].'",
Aufzug = "'.$_POST['Aufzug'].'",
Barrierefrei = "'.$_POST['Barrierefrei'].'",
Sonstiges = "'.$_POST['Sonstiges'].'",
Intern = "'.$_POST['Intern'].'",
Akt_Datum = now()
WHERE ID = "'.$_POST['ID'].'";';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "';";
$result = $db->query($sql);
$nt = $result->fetch_assoc();
if ( $nt['Scout'] )
{
$_POST['ImmoScout'] = 'loeschen';
}
if ( $nt['Welt'] )
{
$_POST['ImmoWelt'] = 'loeschen';
}
if ( $nt['Net'] )
{
$_POST['ImmoNet'] = 'loeschen';
}
$_POST['fromDel'] = '1';
include "inhalte/objekte/aktivieren.php";
echo "<p>Datensatz wurde gespeichert!</p>\n";
echo "<form action=\"index.php?section=objekte&t=fotos&o=".$_POST['ID']."\" method=\"post\" />\n";
echo " <input type=\"submit\" name=\"Fotos\" value=\"zu den Fotos\" />\n";
echo "</form>\n";
include "inhalte/orte.php";
}
?>

View File

@@ -0,0 +1,283 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if ('POST' == $_SERVER['REQUEST_METHOD']) {
if (!isset($_POST['formaction'])) {
echo "Benutzen sie nur Formulare von der Homepage.";
}
elseif ('Anzeigen' == ($_POST['formaction'])) {
$sqlob = 'SELECT * FROM objekte WHERE ID = "'.$_POST['ID'].'" ';
$resultob = $db->query($sqlob);
$ntob = $resultob->fetch_assoc();
$sql1 = 'SELECT DATE_FORMAT(Datum, "%d.%m.%Y") AS Datum, DATE_FORMAT(Akt_Datum, "%d.%m.%Y") AS Akt_Datum FROM objekte WHERE ID = "'.$_POST['ID'].'" ';
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
$sql3 = "SELECT Wert FROM US WHERE ID = \"9\";";
$result3 = $db->query($sql3);
$nt3 = $result3->fetch_assoc();
/* $sql4 = 'SELECT
*
FROM vv
WHERE ID = "'.$ntob['VVID'].'" ';
$result4 = $db->query($sql4);
$nt4 = $result4->fetch_assoc();
*/
echo "<h1>".$ntob['ID']." - ".$ntob['Kurz']."</h1>\n";
echo "<p style=\"margin-left: 13px;\">\n";
echo " <label>Aufgenommen:</label>\n";
echo " <label class=\"links\">".fnc_getUsernameById ( $ntob['TID'], 'logfiles' ).", ".$nt1['Datum']."</label>\n";
echo " <label>Zuletzt bearbeitet:</label>\n";
echo " <label class=\"rechts\">".$nt1['Akt_Datum']."</label>\n";
if ("Tags" == $nt3['Wert']) {
echo " <label>SEO-Schlagworte</label>\n";
echo " <br />\n";
echo "<span style=\"color: #000000;\">";
echo $ntob['Tags'];
echo "</span>\n";
}
echo "</p>\n";
echo "<br style=\"clear: both;\" />\n";
/* echo "<fieldset>\n";
echo " <legend>Kontaktdaten</legend>\n";
echo " <label>Anrede</label>\n";
echo " <label class=\"links\">".$nt4['Anrede']."</label>\n";
echo " <label>Telefon</label>\n";
echo " <label class=\"rechts\">".$nt4['Telefon']."</label>\n";
echo " <br />\n";
echo " <label>Vorname</label>\n";
echo " <label class=\"links\">".$nt4['Vorname']."</label>\n";
echo " <label>Fax</label>\n";
echo " <label class=\"rechts\">".$nt4['Fax']."</label>\n";
echo " <br />\n";
echo " <label>Nachname</label>\n";
echo " <label class=\"links\">".$nt4['Nachname']."</label>\n";
echo " <label>Mobil</label>\n";
echo " <label class=\"rechts\">".$nt4['Mobil']."</label>\n";
echo " <br />\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$nt4['Adresse']."</label>\n";
echo " <label>Firma</label>\n";
echo " <label class=\"rechts\">".$nt4['Firma']."</label>\n";
echo " <br />\n";
echo " <label>PLZ / Ort</label>\n";
echo " <label class=\"links\">".$nt4['PLZ']." ".$nt4['Ort']."</label>\n";
echo " <br />\n";
echo " <label>Email</label>\n";
echo " <label class=\"links\">".$nt4['Email']."</label>\n";
echo "</fieldset>\n";
echo "<br />\n";
*/ echo "<fieldset>\n";
echo " <legend>Eigenschaften</legend>\n";
echo " <label>Neu eingetroffen</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Neu'].".png\" /></label>\n";
echo " <label>Foto auf Startseite</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['FotoStart'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Zimmer</label>\n";
echo " <label class=\"links\">".$ntob['Zimmer']."</label>\n";
echo " <label>Art</label>\n";
echo " <label class=\"rechts\">".$ntob['Art']."</label>\n";
echo " <br />\n";
echo " <label>Zustand</label>\n";
echo " <label class=\"links\">".$ntob['Zustand']."</label>\n";
echo " <label>Qualität-Ausstattung</label>\n";
echo " <label class=\"rechts\">".$ntob['Quali']."</label>\n";
echo " <br />\n";
echo " <label>Baujahr</label>\n";
echo " <label class=\"links\">".$ntob['Baujahr']."</label>\n";
echo " <label>letzte Modernisierung</label>\n";
echo " <label class=\"rechts\">".$ntob['Modern']."</label>\n";
echo " <br />\n";
echo " <label>Etage</label>\n";
echo " <label class=\"links\">".$ntob['Etage']."</label>\n";
echo " <label>Etagen</label>\n";
echo " <label class=\"rechts\">".$ntob['Etagen']."</label>\n";
echo " <br />\n";
echo " <label>Wohnfläche</label>\n";
echo " <label class=\"links\">".$ntob['WohnF']."</label>\n";
echo " <label>Grundfläche</label>\n";
echo " <label class=\"rechts\">".$ntob['GrundF']."</label>\n";
echo " <br />\n";
echo " <label>Heizart</label>\n";
echo " <label class=\"links\">".$ntob['Heizart']."</label>\n";
echo " <label>Befeuerungsart</label>\n";
echo " <label class=\"rechts\">".$ntob['Befeuerung']."</label>\n";
echo " <br />\n";
echo " <label>Waschmaschine im</label>\n";
echo " <label class=\"links\">".$ntob['WaschOrt']."</label>\n";
echo " <label>TV-Anschluss</label>\n";
echo " <label class=\"rechts\">".$ntob['TV']."</label>\n";
echo " <br />\n";
echo " <label>Bezug</label>\n";
echo " <label class=\"links\">".$ntob['Bezug']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Lage</legend>\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$ntob['Strasse']." ".$ntob['StraNr']."</label>\n";
echo " <label>Ort</label>\n";
echo " <label class=\"rechts\">".$ntob['PLZ']." ".$ntob['Ort']."</label>\n";
echo " <br />\n";
echo "<p>".nl2br($ntob['Lage'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Kosten</legend>\n";
echo " <label>Kaufpreis</label>\n";
echo " <label class=\"links\">".$ntob['Mkalt']."</label>\n";
echo " <label>Wohngeld</label>\n";
echo " <label class=\"rechts\">".$ntob['Mwarm']."</label>\n";
echo " <br />\n";
echo " <label>Kaufpreis Garage</label>\n";
echo " <label class=\"links\">".$ntob['GaraK']."</label>\n";
echo " <label>Kaufpreis Stellplatz</label>\n";
echo " <label class=\"rechts\">".$ntob['StellK']."</label>\n";
echo " <br />\n";
echo " <label>Mieteinnahmen</label>\n";
echo " <label class=\"links\">".$ntob['SonK']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Auflagen</legend>\n";
echo " <label>Erwachsene</label>\n";
echo " <label class=\"links\">".$ntob['EZahl']."</label>\n";
echo " <label>Kinder</label>\n";
echo " <label class=\"rechts\">".$ntob['KZahl']."</label>\n";
echo " <br />\n";
echo " <label>Raucher</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Raucher'].".png\" /></label>\n";
echo " <label>Ausländer</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Ausl'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Ausstattung</legend>\n";
echo "<fieldset>\n";
echo " <legend>innen</legend>\n";
echo " <label>Abstellraum</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Abstell'].".png\" /></label>\n";
echo " <label>Dachboden</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['DachB'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Keller</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Keller'].".png\" /></label>\n";
echo " <label>Aufzug</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Aufzug'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Betreutes Wohnen</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Betreut'].".png\" /></label>\n";
echo " <label>Barrierefrei</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Barrierefrei'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Küche</legend>\n";
echo " <label>Einbauküche</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['EinbauK'].".png\" /></label>\n";
echo " <label>Speisekammer</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Speise'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Badezimmer</legend>\n";
echo " <label>Anzahl Badezimmer</label>\n";
echo " <label class=\"links\">".$ntob['AnzBad']."</label>\n";
echo " <br />\n";
echo " <label>Badewanne</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['BadeW'].".png\" /></label>\n";
echo " <label>Duschkabine</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['DuschK'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>WC im Bad</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['WCbad'].".png\" /></label>\n";
echo " <label>Gäste-WC</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['WCsep'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>aussen</legend>\n";
echo " <label>Anzahl Garage/Stellpl.</label>\n";
echo " <label class=\"links\">".$ntob['AnzGarStell']."</label>\n";
echo " <br />\n";
echo " <label>Garage</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Garage'].".png\" /></label>\n";
echo " <label>Stellplatz</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['StellPl'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Terrasse</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Terrasse'].".png\" /></label>\n";
echo " <label>Balkon</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Balkon'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Gartenbenutzung</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Garten'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Energieausweis</legend>\n";
echo " <label>Energieausweistyp</label>\n";
echo " <label class=\"links\">".$ntob['EnerTyp']."</label>\n";
echo " <br />\n";
echo " <label>Verbrauchskennwert</label>\n";
echo " <label class=\"links\">".$ntob['EnerVKW']."</label>\n";
echo " <label>Warmwasser enthalten</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['EnerWWEnt'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo " <p>".nl2br($ntob['Ausstatt'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Sonstiges</legend>\n";
echo " <p>".nl2br($ntob['Sonstiges'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Interne Infos</legend>\n";
echo " <p>".nl2br($ntob['Intern'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Fotos</legend>\n";
echo " <table style=\"background:none;\">\n";
echo " <colgroup>\n";
echo " <col span=\"4\" width=\"180px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
$j = 0;
for ($i=1; $i<8; $i++) {
$pic = "../img/objekte/".$_POST['ID']."_".$i.".jpg";
if (file_exists($pic)) {
echo " <td style=\"text-align:center;\" >\n";
echo " <img src=\"".$pic."\" title=\"".$ntob['Foto'.$i]."\" width=\"100px\" height=\"100px\"/> \n";
echo " <br />\n";
echo $ntob['Foto'.$i];
echo " </td>\n";
$j++;
}
if ("4" == $j) {
echo " </tr>\n";
echo " <tr>\n";
}
}
echo " </tr>\n";
echo " </table>\n";
echo "</fieldset>\n";
echo "<br />\n";
}
}
}
?>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,91 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
echo "<h1>Objekt speichern...</h1>\n";
$sql = 'UPDATE objekte SET
O_TYP = "'.$_POST['O_TYP'].'",
Aktiv = "'.$_POST['Aktiv'].'",
Deaktiv = "'.$_POST['Deaktiv'].'",
Highlight = "'.$_POST['Highlight'].'",
Neu = "'.$_POST['Neu'].'",
FotoStart = "'.$_POST['FotoStart'].'",
Kurz = "'.$_POST['Kurz'].'",
Tags = "'.$_POST['Tags'].'",
OBeschreibung = "'.$_POST['OBeschreibung'].'",
Zustand = "'.$_POST['Zustand'].'",
Quali = "'.$_POST['Quali'].'",
Baujahr = "'.$_POST['Baujahr'].'",
Modern = "'.$_POST['Modern'].'",
Etagen = "'.$_POST['Etagen'].'",
WohnF = "'.$_POST['WohnF'].'",
GrundF = "'.$_POST['GrundF'].'",
Heizart = "'.$_POST['Heizart'].'",
Befeuerung = "'.$_POST['Befeuerung'].'",
Bezug = "'.$_POST['Bezug'].'",
Strasse = "'.$_POST['Strasse'].'",
StraNr = "'.$_POST['StraNr'].'",
PLZ = "'.$_POST['PLZ'].'",
Ort = "'.$_POST['Ort'].'",
Kaution = "'.$_POST['Kaution'].'",
Mkalt = "'.$_POST['Mkalt'].'",
Mwarm = "'.$_POST['Mwarm'].'",
NebenK = "'.$_POST['NebenK'].'",
HeizK = "'.$_POST['HeizK'].'",
HKent = "'.$_POST['HKent'].'",
StellK = "'.$_POST['StellK'].'",
EBKK = "'.$_POST['EBKK'].'",
SonK = "'.$_POST['SonK'].'",
ProvisionsPflichtig = "'.$_POST['ProvisionsPflichtig'].'",
Provision = "'.$_POST['Provision'].'",
EinbauK = "'.$_POST['EinbauK'].'",
Keller = "'.$_POST['Keller'].'",
AnzGarStell = "'.$_POST['AnzGarStell'].'",
FusswegOeNV = "'.$_POST['FusswegOeNV'].'",
FahrBHF = "'.$_POST['FahrBHF'].'",
FahrBAB = "'.$_POST['FahrBAB'].'",
Fahrflug = "'.$_POST['Fahrflug'].'",
Auflagen = "'.$_POST['Auflagen'].'",
Lage = "'.$_POST['Lage'].'",
Ausstatt = "'.$_POST['Ausstatt'].'",
EnerTyp = "'.$_POST['EnerTyp'].'",
EnerVKW = "'.$_POST['EnerVKW'].'",
EnerWWEnt = "'.$_POST['EnerWWEnt'].'",
Aufzug = "'.$_POST['Aufzug'].'",
Barrierefrei = "'.$_POST['Barrierefrei'].'",
Sonstiges = "'.$_POST['Sonstiges'].'",
Intern = "'.$_POST['Intern'].'",
Akt_Datum = now()
WHERE ID = "'.$_POST['ID'].'";';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "';";
$result = $db->query($sql);
$nt = $result->fetch_assoc();
if ( $nt['Scout'] )
{
$_POST['ImmoScout'] = 'loeschen';
}
if ( $nt['Welt'] )
{
$_POST['ImmoWelt'] = 'loeschen';
}
if ( $nt['Net'] )
{
$_POST['ImmoNet'] = 'loeschen';
}
$_POST['fromDel'] = '1';
include "inhalte/objekte/aktivieren.php";
echo "<p>Datensatz wurde gespeichert!</p>\n";
echo "<form action=\"index.php?section=objekte&t=fotos&o=".$_POST['ID']."\" method=\"post\" />\n";
echo " <input type=\"submit\" name=\"Fotos\" value=\"zu den Fotos\" />\n";
echo "</form>\n";
include "inhalte/orte.php";
}
?>

View File

@@ -0,0 +1,300 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if ('POST' == $_SERVER['REQUEST_METHOD']) {
if (!isset($_POST['formaction'])) {
echo "Benutzen sie nur Formulare von der Homepage.";
}
elseif ('Anzeigen' == ($_POST['formaction'])) {
$sqlob = 'SELECT * FROM objekte WHERE ID = "'.$_POST['ID'].'" ';
$resultob = $db->query($sqlob);
$ntob = $resultob->fetch_assoc();
$sql1 = 'SELECT DATE_FORMAT(Datum, "%d.%m.%Y") AS Datum, DATE_FORMAT(Akt_Datum, "%d.%m.%Y") AS Akt_Datum FROM objekte WHERE ID = "'.$_POST['ID'].'" ';
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
$sql3 = "SELECT Wert FROM US WHERE ID = \"9\";";
$result3 = $db->query($sql3);
$nt3 = $result3->fetch_assoc();
/* $sql4 = 'SELECT
*
FROM vv
WHERE ID = "'.$ntob['VVID'].'" ';
$result4 = $db->query($sql4);
$nt4 = $result4->fetch_assoc();
*/
echo "<h1>".$ntob['ID']." - ".$ntob['Kurz']."</h1>\n";
echo "<p style=\"margin-left: 13px;\">\n";
echo " <label>Aufgenommen:</label>\n";
echo " <label class=\"links\">".fnc_getUsernameById ( $ntob['TID'], 'logfiles' ).", ".$nt1['Datum']."</label>\n";
echo " <label>Zuletzt bearbeitet:</label>\n";
echo " <label class=\"rechts\">".$nt1['Akt_Datum']."</label>\n";
if ("Tags" == $nt3['Wert']) {
echo " <label>SEO-Schlagworte</label>\n";
echo " <br />\n";
echo "<span style=\"color: #000000;\">";
echo $ntob['Tags'];
echo "</span>\n";
}
echo "</p>\n";
echo "<br style=\"clear: both;\" />\n";
/* echo "<fieldset>\n";
echo " <legend>Kontaktdaten</legend>\n";
echo " <label>Anrede</label>\n";
echo " <label class=\"links\">".$nt4['Anrede']."</label>\n";
echo " <label>Telefon</label>\n";
echo " <label class=\"rechts\">".$nt4['Telefon']."</label>\n";
echo " <br />\n";
echo " <label>Vorname</label>\n";
echo " <label class=\"links\">".$nt4['Vorname']."</label>\n";
echo " <label>Fax</label>\n";
echo " <label class=\"rechts\">".$nt4['Fax']."</label>\n";
echo " <br />\n";
echo " <label>Nachname</label>\n";
echo " <label class=\"links\">".$nt4['Nachname']."</label>\n";
echo " <label>Mobil</label>\n";
echo " <label class=\"rechts\">".$nt4['Mobil']."</label>\n";
echo " <br />\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$nt4['Adresse']."</label>\n";
echo " <label>Firma</label>\n";
echo " <label class=\"rechts\">".$nt4['Firma']."</label>\n";
echo " <br />\n";
echo " <label>PLZ / Ort</label>\n";
echo " <label class=\"links\">".$nt4['PLZ']." ".$nt4['Ort']."</label>\n";
echo " <br />\n";
echo " <label>Email</label>\n";
echo " <label class=\"links\">".$nt4['Email']."</label>\n";
echo "</fieldset>\n";
echo "<br />\n";
*/ echo "<fieldset>\n";
echo " <legend>Eigenschaften</legend>\n";
echo " <label>Neu eingetroffen</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Neu'].".png\" /></label>\n";
echo " <label>Foto auf Startseite</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['FotoStart'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Zimmer</label>\n";
echo " <label class=\"links\">".$ntob['Zimmer']."</label>\n";
echo " <label>Art</label>\n";
echo " <label class=\"rechts\">".$ntob['Art']."</label>\n";
echo " <br />\n";
echo " <label>Zustand</label>\n";
echo " <label class=\"links\">".$ntob['Zustand']."</label>\n";
echo " <label>Qualität-Ausstattung</label>\n";
echo " <label class=\"rechts\">".$ntob['Quali']."</label>\n";
echo " <br />\n";
echo " <label>Baujahr</label>\n";
echo " <label class=\"links\">".$ntob['Baujahr']."</label>\n";
echo " <label>letzte Modernisierung</label>\n";
echo " <label class=\"rechts\">".$ntob['Modern']."</label>\n";
echo " <br />\n";
echo " <label>Etage</label>\n";
echo " <label class=\"links\">".$ntob['Etage']."</label>\n";
echo " <label>Etagen</label>\n";
echo " <label class=\"rechts\">".$ntob['Etagen']."</label>\n";
echo " <br />\n";
echo " <label>Wohnfläche</label>\n";
echo " <label class=\"links\">".$ntob['WohnF']."</label>\n";
echo " <label>Grundfläche</label>\n";
echo " <label class=\"rechts\">".$ntob['GrundF']."</label>\n";
echo " <br />\n";
echo " <label>Heizart</label>\n";
echo " <label class=\"links\">".$ntob['Heizart']."</label>\n";
echo " <label>Befeuerungsart</label>\n";
echo " <label class=\"rechts\">".$ntob['Befeuerung']."</label>\n";
echo " <br />\n";
echo " <label>Waschmaschine im</label>\n";
echo " <label class=\"links\">".$ntob['WaschOrt']."</label>\n";
echo " <label>TV-Anschluss</label>\n";
echo " <label class=\"rechts\">".$ntob['TV']."</label>\n";
echo " <br />\n";
echo " <label>Bezug</label>\n";
echo " <label class=\"links\">".$ntob['Bezug']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Lage</legend>\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$ntob['Strasse']." ".$ntob['StraNr']."</label>\n";
echo " <label>Ort</label>\n";
echo " <label class=\"rechts\">".$ntob['PLZ']." ".$ntob['Ort']."</label>\n";
echo " <br />\n";
echo "<p>".nl2br($ntob['Lage'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Kosten</legend>\n";
echo " <label>Miete kalt</label>\n";
echo " <label class=\"links\">".$ntob['Mkalt']."</label>\n";
echo " <label>Kaution</label>\n";
echo " <label class=\"rechts\">".$ntob['Kaution']."</label>\n";
echo " <br />\n";
echo " <label>Miete warm</label>\n";
echo " <label class=\"links\">".$ntob['Mwarm']."</label>\n";
echo " <label>zzgl. Garage</label>\n";
echo " <label class=\"rechts\">".$ntob['GaraK']."</label>\n";
echo " <br />\n";
echo " <label>Nebenkosten</label>\n";
echo " <label class=\"links\">".$ntob['NebenK']."</label>\n";
echo " <label>zzgl. Stellplatz</label>\n";
echo " <label class=\"rechts\">".$ntob['StellK']."</label>\n";
echo " <br />\n";
echo " <label>Heizkosten</label>\n";
echo " <label class=\"links\">".$ntob['HeizK']."</label>\n";
echo " <label>Ablöse Einbauküche</label>\n";
echo " <label class=\"rechts\">".$ntob['EBKK']."</label>\n";
echo " <br />\n";
echo " <label>HeizK in NK enthalten</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['HKent'].".png\" /></label>\n";
echo " <label>sonstige Kosten</label>\n";
echo " <label class=\"rechts\">".$ntob['SonK']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Auflagen</legend>\n";
echo " <label>Erwachsene</label>\n";
echo " <label class=\"links\">".$ntob['EZahl']."</label>\n";
echo " <label>Kinder</label>\n";
echo " <label class=\"rechts\">".$ntob['KZahl']."</label>\n";
echo " <br />\n";
echo " <label>Raucher</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Raucher'].".png\" /></label>\n";
echo " <label>Ausländer</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Ausl'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Tiere</label>\n";
echo " <label class=\"links\">".$ntob['Tiere']."</label>\n";
echo " <label>Renovierung bei</label>\n";
echo " <label class=\"rechts\">".$ntob['Renovierung']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Ausstattung</legend>\n";
echo "<fieldset>\n";
echo " <legend>innen</legend>\n";
echo " <label>Abstellraum</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Abstell'].".png\" /></label>\n";
echo " <label>Dachboden</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['DachB'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Keller</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Keller'].".png\" /></label>\n";
echo " <label>Aufzug</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Aufzug'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Betreutes Wohnen</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Betreut'].".png\" /></label>\n";
echo " <label>Barrierefrei</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Barrierefrei'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Küche</legend>\n";
echo " <label>Einbauküche</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['EinbauK'].".png\" /></label>\n";
echo " <label>Speisekammer</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Speise'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Badezimmer</legend>\n";
echo " <label>Anzahl Badezimmer</label>\n";
echo " <label class=\"links\">".$ntob['AnzBad']."</label>\n";
echo " <br />\n";
echo " <label>Badewanne</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['BadeW'].".png\" /></label>\n";
echo " <label>Duschkabine</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['DuschK'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>WC im Bad</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['WCbad'].".png\" /></label>\n";
echo " <label>Gäste-WC</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['WCsep'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>aussen</legend>\n";
echo " <label>Anzahl Garage/Stellpl.</label>\n";
echo " <label class=\"links\">".$ntob['AnzGarStell']."</label>\n";
echo " <br />\n";
echo " <label>Garage</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Garage'].".png\" /></label>\n";
echo " <label>Stellplatz</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['StellPl'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Terrasse</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Terrasse'].".png\" /></label>\n";
echo " <label>Balkon</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Balkon'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Gartenbenutzung</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Garten'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Energieausweis</legend>\n";
echo " <label>Energieausweistyp</label>\n";
echo " <label class=\"links\">".$ntob['EnerTyp']."</label>\n";
echo " <br />\n";
echo " <label>Verbrauchskennwert</label>\n";
echo " <label class=\"links\">".$ntob['EnerVKW']."</label>\n";
echo " <label>Warmwasser enthalten</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['EnerWWEnt'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo " <p>".nl2br($ntob['Ausstatt'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Sonstiges</legend>\n";
echo " <p>".nl2br($ntob['Sonstiges'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Interne Infos</legend>\n";
echo " <p>".nl2br($ntob['Intern'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Fotos</legend>\n";
echo " <table style=\"background:none;\">\n";
echo " <colgroup>\n";
echo " <col span=\"4\" width=\"180px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
$j = 0;
for ($i=1; $i<8; $i++) {
$pic = "../img/objekte/".$_POST['ID']."_".$i.".jpg";
if (file_exists($pic)) {
echo " <td style=\"text-align:center;\" >\n";
echo " <img src=\"".$pic."\" title=\"".$ntob['Foto'.$i]."\" width=\"100px\" height=\"100px\"/> \n";
echo " <br />\n";
echo $ntob['Foto'.$i];
echo " </td>\n";
$j++;
}
if ("4" == $j) {
echo " </tr>\n";
echo " <tr>\n";
}
}
echo " </tr>\n";
echo " </table>\n";
echo "</fieldset>\n";
echo "<br />\n";
}
}
}
?>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,100 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
echo "<h1>Objekt speichern...</h1>\n";
$sql = 'UPDATE objekte SET
VVID = "'.$_POST['VVID'].'",
Aktiv = "'.$_POST['Aktiv'].'",
Deaktiv = "'.$_POST['Deaktiv'].'",
Highlight = "'.$_POST['Highlight'].'",
Neu = "'.$_POST['Neu'].'",
FotoStart = "'.$_POST['FotoStart'].'",
Kurz = "'.$_POST['Kurz'].'",
Tags = "'.$_POST['Tags'].'",
OBeschreibung = "'.$_POST['OBeschreibung'].'",
Art = "'.$_POST['Art'].'",
Zustand = "'.$_POST['Zustand'].'",
Quali = "'.$_POST['Quali'].'",
Baujahr = "'.$_POST['Baujahr'].'",
Modern = "'.$_POST['Modern'].'",
Zimmer = "'.$_POST['Zimmer'].'",
Etagen = "'.$_POST['Etagen'].'",
WohnF = "'.$_POST['WohnF'].'",
GrundF = "'.$_POST['GrundF'].'",
Heizart = "'.$_POST['Heizart'].'",
Befeuerung = "'.$_POST['Befeuerung'].'",
WaschOrt = "'.$_POST['WaschOrt'].'",
TV = "'.$_POST['TV'].'",
Bezug = "'.$_POST['Bezug'].'",
Strasse = "'.$_POST['Strasse'].'",
StraNr = "'.$_POST['StraNr'].'",
PLZ = "'.$_POST['PLZ'].'",
Ort = "'.$_POST['Ort'].'",
Mkalt = "'.$_POST['Mkalt'].'",
Mwarm = "'.$_POST['Mwarm'].'",
StellK = "'.$_POST['StellK'].'",
SonK = "'.$_POST['SonK'].'",
ProvisionsPflichtig = "'.$_POST['ProvisionsPflichtig'].'",
Provision = "'.$_POST['Provision'].'",
EinbauK = "'.$_POST['EinbauK'].'",
Speise = "'.$_POST['Speise'].'",
AnzBad = "'.$_POST['AnzBad'].'",
AnzSchlaf = "'.$_POST['AnzSchlaf'].'",
BadeW = "'.$_POST['BadeW'].'",
DuschK = "'.$_POST['DuschK'].'",
WCbad = "'.$_POST['WCbad'].'",
WCsep = "'.$_POST['WCsep'].'",
Abstell = "'.$_POST['Abstell'].'",
DachB = "'.$_POST['DachB'].'",
Keller = "'.$_POST['Keller'].'",
AnzGarStell = "'.$_POST['AnzGarStell'].'",
Garage = "'.$_POST['Garage'].'",
StellPl = "'.$_POST['StellPl'].'",
Terrasse = "'.$_POST['Terrasse'].'",
Balkon = "'.$_POST['Balkon'].'",
Garten = "'.$_POST['Garten'].'",
Lage = "'.$_POST['Lage'].'",
Ausstatt = "'.$_POST['Ausstatt'].'",
EnerTyp = "'.$_POST['EnerTyp'].'",
EnerVKW = "'.$_POST['EnerVKW'].'",
EnerWWEnt = "'.$_POST['EnerWWEnt'].'",
Aufzug = "'.$_POST['Aufzug'].'",
Betreut = "'.$_POST['Betreut'].'",
Barrierefrei = "'.$_POST['Barrierefrei'].'",
Sonstiges = "'.$_POST['Sonstiges'].'",
Intern = "'.$_POST['Intern'].'",
Akt_Datum = now()
WHERE ID = "'.$_POST['ID'].'";';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "';";
$result = $db->query($sql);
$nt = $result->fetch_assoc();
if ( $nt['Scout'] )
{
$_POST['ImmoScout'] = 'loeschen';
}
if ( $nt['Welt'] )
{
$_POST['ImmoWelt'] = 'loeschen';
}
if ( $nt['Net'] )
{
$_POST['ImmoNet'] = 'loeschen';
}
$_POST['fromDel'] = '1';
include "inhalte/objekte/aktivieren.php";
echo "<p>Datensatz wurde gespeichert!</p>\n";
echo "<form action=\"index.php?section=objekte&t=fotos&o=".$_POST['ID']."\" method=\"post\" />\n";
echo " <input type=\"submit\" name=\"Fotos\" value=\"zu den Fotos\" />\n";
echo "</form>\n";
include "inhalte/orte.php";
}
?>

View File

@@ -0,0 +1,283 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if ('POST' == $_SERVER['REQUEST_METHOD']) {
if (!isset($_POST['formaction'])) {
echo "Benutzen sie nur Formulare von der Homepage.";
}
elseif ('Anzeigen' == ($_POST['formaction'])) {
$sqlob = 'SELECT * FROM objekte WHERE ID = "'.$_POST['ID'].'" ';
$resultob = $db->query($sqlob);
$ntob = $resultob->fetch_assoc();
$sql1 = 'SELECT DATE_FORMAT(Datum, "%d.%m.%Y") AS Datum, DATE_FORMAT(Akt_Datum, "%d.%m.%Y") AS Akt_Datum FROM objekte WHERE ID = "'.$_POST['ID'].'" ';
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
$sql3 = "SELECT Wert FROM US WHERE ID = \"9\";";
$result3 = $db->query($sql3);
$nt3 = $result3->fetch_assoc();
/* $sql4 = 'SELECT
*
FROM vv
WHERE ID = "'.$ntob['VVID'].'" ';
$result4 = $db->query($sql4);
$nt4 = $result4->fetch_assoc();
*/
echo "<h1>".$ntob['ID']." - ".$ntob['Kurz']."</h1>\n";
echo "<p style=\"margin-left: 13px;\">\n";
echo " <label>Aufgenommen:</label>\n";
echo " <label class=\"links\">".fnc_getUsernameById ( $ntob['TID'], 'logfiles' ).", ".$nt1['Datum']."</label>\n";
echo " <label>Zuletzt bearbeitet:</label>\n";
echo " <label class=\"rechts\">".$nt1['Akt_Datum']."</label>\n";
if ("Tags" == $nt3['Wert']) {
echo " <label>SEO-Schlagworte</label>\n";
echo " <br />\n";
echo "<span style=\"color: #000000;\">";
echo $ntob['Tags'];
echo "</span>\n";
}
echo "</p>\n";
echo "<br style=\"clear: both;\" />\n";
/* echo "<fieldset>\n";
echo " <legend>Kontaktdaten</legend>\n";
echo " <label>Anrede</label>\n";
echo " <label class=\"links\">".$nt4['Anrede']."</label>\n";
echo " <label>Telefon</label>\n";
echo " <label class=\"rechts\">".$nt4['Telefon']."</label>\n";
echo " <br />\n";
echo " <label>Vorname</label>\n";
echo " <label class=\"links\">".$nt4['Vorname']."</label>\n";
echo " <label>Fax</label>\n";
echo " <label class=\"rechts\">".$nt4['Fax']."</label>\n";
echo " <br />\n";
echo " <label>Nachname</label>\n";
echo " <label class=\"links\">".$nt4['Nachname']."</label>\n";
echo " <label>Mobil</label>\n";
echo " <label class=\"rechts\">".$nt4['Mobil']."</label>\n";
echo " <br />\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$nt4['Adresse']."</label>\n";
echo " <label>Firma</label>\n";
echo " <label class=\"rechts\">".$nt4['Firma']."</label>\n";
echo " <br />\n";
echo " <label>PLZ / Ort</label>\n";
echo " <label class=\"links\">".$nt4['PLZ']." ".$nt4['Ort']."</label>\n";
echo " <br />\n";
echo " <label>Email</label>\n";
echo " <label class=\"links\">".$nt4['Email']."</label>\n";
echo "</fieldset>\n";
echo "<br />\n";
*/ echo "<fieldset>\n";
echo " <legend>Eigenschaften</legend>\n";
echo " <label>Neu eingetroffen</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Neu'].".png\" /></label>\n";
echo " <label>Foto auf Startseite</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['FotoStart'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Zimmer</label>\n";
echo " <label class=\"links\">".$ntob['Zimmer']."</label>\n";
echo " <label>Art</label>\n";
echo " <label class=\"rechts\">".$ntob['Art']."</label>\n";
echo " <br />\n";
echo " <label>Zustand</label>\n";
echo " <label class=\"links\">".$ntob['Zustand']."</label>\n";
echo " <label>Qualität-Ausstattung</label>\n";
echo " <label class=\"rechts\">".$ntob['Quali']."</label>\n";
echo " <br />\n";
echo " <label>Baujahr</label>\n";
echo " <label class=\"links\">".$ntob['Baujahr']."</label>\n";
echo " <label>letzte Modernisierung</label>\n";
echo " <label class=\"rechts\">".$ntob['Modern']."</label>\n";
echo " <br />\n";
echo " <label>Etage</label>\n";
echo " <label class=\"links\">".$ntob['Etage']."</label>\n";
echo " <label>Etagen</label>\n";
echo " <label class=\"rechts\">".$ntob['Etagen']."</label>\n";
echo " <br />\n";
echo " <label>Wohnfläche</label>\n";
echo " <label class=\"links\">".$ntob['WohnF']."</label>\n";
echo " <label>Grundfläche</label>\n";
echo " <label class=\"rechts\">".$ntob['GrundF']."</label>\n";
echo " <br />\n";
echo " <label>Heizart</label>\n";
echo " <label class=\"links\">".$ntob['Heizart']."</label>\n";
echo " <label>Befeuerungsart</label>\n";
echo " <label class=\"rechts\">".$ntob['Befeuerung']."</label>\n";
echo " <br />\n";
echo " <label>Waschmaschine im</label>\n";
echo " <label class=\"links\">".$ntob['WaschOrt']."</label>\n";
echo " <label>TV-Anschluss</label>\n";
echo " <label class=\"rechts\">".$ntob['TV']."</label>\n";
echo " <br />\n";
echo " <label>Bezug</label>\n";
echo " <label class=\"links\">".$ntob['Bezug']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Lage</legend>\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$ntob['Strasse']." ".$ntob['StraNr']."</label>\n";
echo " <label>Ort</label>\n";
echo " <label class=\"rechts\">".$ntob['PLZ']." ".$ntob['Ort']."</label>\n";
echo " <br />\n";
echo "<p>".nl2br($ntob['Lage'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Kosten</legend>\n";
echo " <label>Kaufpreis</label>\n";
echo " <label class=\"links\">".$ntob['Mkalt']."</label>\n";
echo " <label>Wohngeld</label>\n";
echo " <label class=\"rechts\">".$ntob['Mwarm']."</label>\n";
echo " <br />\n";
echo " <label>Kaufpreis Garage</label>\n";
echo " <label class=\"links\">".$ntob['GaraK']."</label>\n";
echo " <label>Kaufpreis Stellplatz</label>\n";
echo " <label class=\"rechts\">".$ntob['StellK']."</label>\n";
echo " <br />\n";
echo " <label>Mieteinnahmen</label>\n";
echo " <label class=\"links\">".$ntob['SonK']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Auflagen</legend>\n";
echo " <label>Erwachsene</label>\n";
echo " <label class=\"links\">".$ntob['EZahl']."</label>\n";
echo " <label>Kinder</label>\n";
echo " <label class=\"rechts\">".$ntob['KZahl']."</label>\n";
echo " <br />\n";
echo " <label>Raucher</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Raucher'].".png\" /></label>\n";
echo " <label>Ausländer</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Ausl'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Ausstattung</legend>\n";
echo "<fieldset>\n";
echo " <legend>innen</legend>\n";
echo " <label>Abstellraum</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Abstell'].".png\" /></label>\n";
echo " <label>Dachboden</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['DachB'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Keller</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Keller'].".png\" /></label>\n";
echo " <label>Aufzug</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Aufzug'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Betreutes Wohnen</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Betreut'].".png\" /></label>\n";
echo " <label>Barrierefrei</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Barrierefrei'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Küche</legend>\n";
echo " <label>Einbauküche</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['EinbauK'].".png\" /></label>\n";
echo " <label>Speisekammer</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Speise'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Badezimmer</legend>\n";
echo " <label>Anzahl Badezimmer</label>\n";
echo " <label class=\"links\">".$ntob['AnzBad']."</label>\n";
echo " <br />\n";
echo " <label>Badewanne</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['BadeW'].".png\" /></label>\n";
echo " <label>Duschkabine</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['DuschK'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>WC im Bad</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['WCbad'].".png\" /></label>\n";
echo " <label>Gäste-WC</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['WCsep'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>aussen</legend>\n";
echo " <label>Anzahl Garage/Stellpl.</label>\n";
echo " <label class=\"links\">".$ntob['AnzGarStell']."</label>\n";
echo " <br />\n";
echo " <label>Garage</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Garage'].".png\" /></label>\n";
echo " <label>Stellplatz</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['StellPl'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Terrasse</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Terrasse'].".png\" /></label>\n";
echo " <label>Balkon</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Balkon'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Gartenbenutzung</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Garten'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Energieausweis</legend>\n";
echo " <label>Energieausweistyp</label>\n";
echo " <label class=\"links\">".$ntob['EnerTyp']."</label>\n";
echo " <br />\n";
echo " <label>Verbrauchskennwert</label>\n";
echo " <label class=\"links\">".$ntob['EnerVKW']."</label>\n";
echo " <label>Warmwasser enthalten</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['EnerWWEnt'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo " <p>".nl2br($ntob['Ausstatt'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Sonstiges</legend>\n";
echo " <p>".nl2br($ntob['Sonstiges'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Interne Infos</legend>\n";
echo " <p>".nl2br($ntob['Intern'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Fotos</legend>\n";
echo " <table style=\"background:none;\">\n";
echo " <colgroup>\n";
echo " <col span=\"4\" width=\"180px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
$j = 0;
for ($i=1; $i<8; $i++) {
$pic = "../img/objekte/".$_POST['ID']."_".$i.".jpg";
if (file_exists($pic)) {
echo " <td style=\"text-align:center;\" >\n";
echo " <img src=\"".$pic."\" title=\"".$ntob['Foto'.$i]."\" width=\"100px\" height=\"100px\"/> \n";
echo " <br />\n";
echo $ntob['Foto'.$i];
echo " </td>\n";
$j++;
}
if ("4" == $j) {
echo " </tr>\n";
echo " <tr>\n";
}
}
echo " </tr>\n";
echo " </table>\n";
echo "</fieldset>\n";
echo "<br />\n";
}
}
}
?>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,105 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
echo "<h1>Objekt speichern...</h1>\n";
$sql = 'UPDATE objekte SET
VVID = "'.$_POST['VVID'].'",
Aktiv = "'.$_POST['Aktiv'].'",
Deaktiv = "'.$_POST['Deaktiv'].'",
Highlight = "'.$_POST['Highlight'].'",
Neu = "'.$_POST['Neu'].'",
FotoStart = "'.$_POST['FotoStart'].'",
Kurz = "'.$_POST['Kurz'].'",
Tags = "'.$_POST['Tags'].'",
OBeschreibung = "'.$_POST['OBeschreibung'].'",
Art = "'.$_POST['Art'].'",
Zustand = "'.$_POST['Zustand'].'",
Quali = "'.$_POST['Quali'].'",
Baujahr = "'.$_POST['Baujahr'].'",
Modern = "'.$_POST['Modern'].'",
Zimmer = "'.$_POST['Zimmer'].'",
Etagen = "'.$_POST['Etagen'].'",
WohnF = "'.$_POST['WohnF'].'",
GrundF = "'.$_POST['GrundF'].'",
Heizart = "'.$_POST['Heizart'].'",
Befeuerung = "'.$_POST['Befeuerung'].'",
WaschOrt = "'.$_POST['WaschOrt'].'",
TV = "'.$_POST['TV'].'",
Bezug = "'.$_POST['Bezug'].'",
Strasse = "'.$_POST['Strasse'].'",
StraNr = "'.$_POST['StraNr'].'",
PLZ = "'.$_POST['PLZ'].'",
Ort = "'.$_POST['Ort'].'",
Kaution = "'.$_POST['Kaution'].'",
Mkalt = "'.$_POST['Mkalt'].'",
Mwarm = "'.$_POST['Mwarm'].'",
NebenK = "'.$_POST['NebenK'].'",
HeizK = "'.$_POST['HeizK'].'",
HKent = "'.$_POST['HKent'].'",
StellK = "'.$_POST['StellK'].'",
ProvisionsPflichtig = "'.$_POST['ProvisionsPflichtig'].'",
Provision = "'.$_POST['Provision'].'",
Tiere = "'.$_POST['Tiere'].'",
Renovierung = "'.$_POST['Renovierung'].'",
EinbauK = "'.$_POST['EinbauK'].'",
Speise = "'.$_POST['Speise'].'",
AnzBad = "'.$_POST['AnzBad'].'",
AnzSchlaf = "'.$_POST['AnzSchlaf'].'",
BadeW = "'.$_POST['BadeW'].'",
DuschK = "'.$_POST['DuschK'].'",
WCbad = "'.$_POST['WCbad'].'",
WCsep = "'.$_POST['WCsep'].'",
Abstell = "'.$_POST['Abstell'].'",
DachB = "'.$_POST['DachB'].'",
Keller = "'.$_POST['Keller'].'",
AnzGarStell = "'.$_POST['AnzGarStell'].'",
Garage = "'.$_POST['Garage'].'",
StellPl = "'.$_POST['StellPl'].'",
Terrasse = "'.$_POST['Terrasse'].'",
Balkon = "'.$_POST['Balkon'].'",
Garten = "'.$_POST['Garten'].'",
Lage = "'.$_POST['Lage'].'",
Ausstatt = "'.$_POST['Ausstatt'].'",
EnerTyp = "'.$_POST['EnerTyp'].'",
EnerVKW = "'.$_POST['EnerVKW'].'",
EnerWWEnt = "'.$_POST['EnerWWEnt'].'",
Aufzug = "'.$_POST['Aufzug'].'",
Betreut = "'.$_POST['Betreut'].'",
Barrierefrei = "'.$_POST['Barrierefrei'].'",
Sonstiges = "'.$_POST['Sonstiges'].'",
Intern = "'.$_POST['Intern'].'",
Akt_Datum = now()
WHERE ID = "'.$_POST['ID'].'";';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "';";
$result = $db->query($sql);
$nt = $result->fetch_assoc();
if ( $nt['Scout'] )
{
$_POST['ImmoScout'] = 'loeschen';
}
if ( $nt['Welt'] )
{
$_POST['ImmoWelt'] = 'loeschen';
}
if ( $nt['Net'] )
{
$_POST['ImmoNet'] = 'loeschen';
}
$_POST['fromDel'] = '1';
include "inhalte/objekte/aktivieren.php";
echo "<p>Datensatz wurde gespeichert!</p>\n";
echo "<form action=\"index.php?section=objekte&t=fotos&o=".$_POST['ID']."\" method=\"post\" />\n";
echo " <input type=\"submit\" name=\"Fotos\" value=\"zu den Fotos\" />\n";
echo "</form>\n";
include "inhalte/orte.php";
}
?>

View File

@@ -0,0 +1,298 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if ('POST' == $_SERVER['REQUEST_METHOD']) {
if (!isset($_POST['formaction'])) {
echo "Benutzen sie nur Formulare von der Homepage.";
}
elseif ('Anzeigen' == ($_POST['formaction'])) {
$sqlob = 'SELECT * FROM objekte WHERE ID = "'.$_POST['ID'].'" ';
$resultob = $db->query($sqlob);
$ntob = $resultob->fetch_assoc();
$sql1 = 'SELECT DATE_FORMAT(Datum, "%d.%m.%Y") AS Datum, DATE_FORMAT(Akt_Datum, "%d.%m.%Y") AS Akt_Datum FROM objekte WHERE ID = "'.$_POST['ID'].'" ';
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
$sql3 = "SELECT Wert FROM US WHERE ID = \"9\";";
$result3 = $db->query($sql3);
$nt3 = $result3->fetch_assoc();
/* $sql4 = 'SELECT
*
FROM vv
WHERE ID = "'.$ntob['VVID'].'" ';
$result4 = $db->query($sql4);
$nt4 = $result4->fetch_assoc();
*/
echo "<h1>".$ntob['ID']." - ".$ntob['Kurz']."</h1>\n";
echo "<p style=\"margin-left: 13px;\">\n";
echo " <label>Aufgenommen:</label>\n";
echo " <label class=\"links\">".fnc_getUsernameById ( $ntob['TID'], 'logfiles' ).", ".$nt1['Datum']."</label>\n";
echo " <label>Zuletzt bearbeitet:</label>\n";
echo " <label class=\"rechts\">".$nt1['Akt_Datum']."</label>\n";
if ("Tags" == $nt3['Wert']) {
echo " <label>SEO-Schlagworte</label>\n";
echo " <br />\n";
echo "<span style=\"color: #000000;\">";
echo $ntob['Tags'];
echo "</span>\n";
}
echo "</p>\n";
echo "<br style=\"clear: both;\" />\n";
/* echo "<fieldset>\n";
echo " <legend>Kontaktdaten</legend>\n";
echo " <label>Anrede</label>\n";
echo " <label class=\"links\">".$nt4['Anrede']."</label>\n";
echo " <label>Telefon</label>\n";
echo " <label class=\"rechts\">".$nt4['Telefon']."</label>\n";
echo " <br />\n";
echo " <label>Vorname</label>\n";
echo " <label class=\"links\">".$nt4['Vorname']."</label>\n";
echo " <label>Fax</label>\n";
echo " <label class=\"rechts\">".$nt4['Fax']."</label>\n";
echo " <br />\n";
echo " <label>Nachname</label>\n";
echo " <label class=\"links\">".$nt4['Nachname']."</label>\n";
echo " <label>Mobil</label>\n";
echo " <label class=\"rechts\">".$nt4['Mobil']."</label>\n";
echo " <br />\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$nt4['Adresse']."</label>\n";
echo " <label>Firma</label>\n";
echo " <label class=\"rechts\">".$nt4['Firma']."</label>\n";
echo " <br />\n";
echo " <label>PLZ / Ort</label>\n";
echo " <label class=\"links\">".$nt4['PLZ']." ".$nt4['Ort']."</label>\n";
echo " <br />\n";
echo " <label>Email</label>\n";
echo " <label class=\"links\">".$nt4['Email']."</label>\n";
echo "</fieldset>\n";
echo "<br />\n";
*/ echo "<fieldset>\n";
echo " <legend>Eigenschaften</legend>\n";
echo " <label>Neu eingetroffen</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Neu'].".png\" /></label>\n";
echo " <label>Foto auf Startseite</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['FotoStart'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Zimmer</label>\n";
echo " <label class=\"links\">".$ntob['Zimmer']."</label>\n";
echo " <label>Art</label>\n";
echo " <label class=\"rechts\">".$ntob['Art']."</label>\n";
echo " <br />\n";
echo " <label>Zustand</label>\n";
echo " <label class=\"links\">".$ntob['Zustand']."</label>\n";
echo " <label>Qualität-Ausstattung</label>\n";
echo " <label class=\"rechts\">".$ntob['Quali']."</label>\n";
echo " <br />\n";
echo " <label>Baujahr</label>\n";
echo " <label class=\"links\">".$ntob['Baujahr']."</label>\n";
echo " <label>letzte Modernisierung</label>\n";
echo " <label class=\"rechts\">".$ntob['Modern']."</label>\n";
echo " <br />\n";
echo " <label>Etagen</label>\n";
echo " <label class=\"links\">".$ntob['Etagen']."</label>\n";
echo " <br />\n";
echo " <label>Wohnfläche</label>\n";
echo " <label class=\"links\">".$ntob['WohnF']."</label>\n";
echo " <label>Grundfläche</label>\n";
echo " <label class=\"rechts\">".$ntob['GrundF']."</label>\n";
echo " <br />\n";
echo " <label>Heizart</label>\n";
echo " <label class=\"links\">".$ntob['Heizart']."</label>\n";
echo " <label>Befeuerungsart</label>\n";
echo " <label class=\"rechts\">".$ntob['Befeuerung']."</label>\n";
echo " <br />\n";
echo " <label>Waschmaschine im</label>\n";
echo " <label class=\"links\">".$ntob['WaschOrt']."</label>\n";
echo " <label>TV-Anschluss</label>\n";
echo " <label class=\"rechts\">".$ntob['TV']."</label>\n";
echo " <br />\n";
echo " <label>Bezug</label>\n";
echo " <label class=\"links\">".$ntob['Bezug']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Lage</legend>\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$ntob['Strasse']." ".$ntob['StraNr']."</label>\n";
echo " <label>Ort</label>\n";
echo " <label class=\"rechts\">".$ntob['PLZ']." ".$ntob['Ort']."</label>\n";
echo " <br />\n";
echo "<p>".nl2br($ntob['Lage'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Kosten</legend>\n";
echo " <label>Miete kalt</label>\n";
echo " <label class=\"links\">".$ntob['Mkalt']."</label>\n";
echo " <label>Kaution</label>\n";
echo " <label class=\"rechts\">".$ntob['Kaution']."</label>\n";
echo " <br />\n";
echo " <label>Miete warm</label>\n";
echo " <label class=\"links\">".$ntob['Mwarm']."</label>\n";
echo " <label>zzgl. Garage</label>\n";
echo " <label class=\"rechts\">".$ntob['GaraK']."</label>\n";
echo " <br />\n";
echo " <label>Nebenkosten</label>\n";
echo " <label class=\"links\">".$ntob['NebenK']."</label>\n";
echo " <label>zzgl. Stellplatz</label>\n";
echo " <label class=\"rechts\">".$ntob['StellK']."</label>\n";
echo " <br />\n";
echo " <label>Heizkosten</label>\n";
echo " <label class=\"links\">".$ntob['HeizK']."</label>\n";
echo " <label>Ablöse Einbauküche</label>\n";
echo " <label class=\"rechts\">".$ntob['EBKK']."</label>\n";
echo " <br />\n";
echo " <label>HeizK in NK enthalten</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['HKent'].".png\" /></label>\n";
echo " <label>sonstige Kosten</label>\n";
echo " <label class=\"rechts\">".$ntob['SonK']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Auflagen</legend>\n";
echo " <label>Erwachsene</label>\n";
echo " <label class=\"links\">".$ntob['EZahl']."</label>\n";
echo " <label>Kinder</label>\n";
echo " <label class=\"rechts\">".$ntob['KZahl']."</label>\n";
echo " <br />\n";
echo " <label>Raucher</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Raucher'].".png\" /></label>\n";
echo " <label>Ausländer</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Ausl'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Tiere</label>\n";
echo " <label class=\"links\">".$ntob['Tiere']."</label>\n";
echo " <label>Renovierung bei</label>\n";
echo " <label class=\"rechts\">".$ntob['Renovierung']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Ausstattung</legend>\n";
echo "<fieldset>\n";
echo " <legend>innen</legend>\n";
echo " <label>Abstellraum</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Abstell'].".png\" /></label>\n";
echo " <label>Dachboden</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['DachB'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Keller</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Keller'].".png\" /></label>\n";
echo " <label>Aufzug</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Aufzug'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Betreutes Wohnen</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Betreut'].".png\" /></label>\n";
echo " <label>Barrierefrei</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Barrierefrei'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Küche</legend>\n";
echo " <label>Einbauküche</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['EinbauK'].".png\" /></label>\n";
echo " <label>Speisekammer</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Speise'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Badezimmer</legend>\n";
echo " <label>Anzahl Badezimmer</label>\n";
echo " <label class=\"links\">".$ntob['AnzBad']."</label>\n";
echo " <br />\n";
echo " <label>Badewanne</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['BadeW'].".png\" /></label>\n";
echo " <label>Duschkabine</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['DuschK'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>WC im Bad</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['WCbad'].".png\" /></label>\n";
echo " <label>Gäste-WC</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['WCsep'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>aussen</legend>\n";
echo " <label>Anzahl Garage/Stellpl.</label>\n";
echo " <label class=\"links\">".$ntob['AnzGarStell']."</label>\n";
echo " <br />\n";
echo " <label>Garage</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Garage'].".png\" /></label>\n";
echo " <label>Stellplatz</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['StellPl'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Terrasse</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Terrasse'].".png\" /></label>\n";
echo " <label>Balkon</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Balkon'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Gartenbenutzung</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Garten'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Energieausweis</legend>\n";
echo " <label>Energieausweistyp</label>\n";
echo " <label class=\"links\">".$ntob['EnerTyp']."</label>\n";
echo " <br />\n";
echo " <label>Verbrauchskennwert</label>\n";
echo " <label class=\"links\">".$ntob['EnerVKW']."</label>\n";
echo " <label>Warmwasser enthalten</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['EnerWWEnt'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo " <p>".nl2br($ntob['Ausstatt'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Sonstiges</legend>\n";
echo " <p>".nl2br($ntob['Sonstiges'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Interne Infos</legend>\n";
echo " <p>".nl2br($ntob['Intern'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Fotos</legend>\n";
echo " <table style=\"background:none;\">\n";
echo " <colgroup>\n";
echo " <col span=\"4\" width=\"180px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
$j = 0;
for ($i=1; $i<8; $i++) {
$pic = "../img/objekte/".$_POST['ID']."_".$i.".jpg";
if (file_exists($pic)) {
echo " <td style=\"text-align:center;\" >\n";
echo " <img src=\"".$pic."\" title=\"".$ntob['Foto'.$i]."\" width=\"100px\" height=\"100px\"/> \n";
echo " <br />\n";
echo $ntob['Foto'.$i];
echo " </td>\n";
$j++;
}
if ("4" == $j) {
echo " </tr>\n";
echo " <tr>\n";
}
}
echo " </tr>\n";
echo " </table>\n";
echo "</fieldset>\n";
echo "<br />\n";
}
}
}
?>

View File

@@ -0,0 +1,79 @@
<?php
if ( isset ( $_GET['t'] ) )
{
if ( 'wm' == $_GET['t'] )
{
$O_TYP = 'Wohnung';
$V_TYP = 'Miete';
}
if ( 'wk' == $_GET['t'] )
{
$O_TYP = 'Wohnung';
$V_TYP = 'Kauf';
}
if ( 'hm' == $_GET['t'] )
{
$O_TYP = 'Haus';
$V_TYP = 'Miete';
}
if ( 'hk' == $_GET['t'] )
{
$O_TYP = 'Haus';
$V_TYP = 'Kauf';
}
if ( 'gm' == $_GET['t'] )
{
$O_TYP = 'Gewerbe';
$V_TYP = 'Miete';
}
if ( 'gk' == $_GET['t'] )
{
$O_TYP = 'Gewerbe';
$V_TYP = 'Kauf';
}
if ( 'ro' == $_GET['t'] )
{
$O_TYP = 'Anlage';
$V_TYP = 'Kauf';
}
if ( 'fotos' == $_GET['t'] )
{
return include "inhalte/8er.php";
}
if ( 'FBesch' == $_GET['t'] )
{
return include "inhalte/fbesch.php";
}
}
$immo_typ = $O_TYP . ' - ' . $V_TYP;
if ( 'gm' == $_GET['t'] OR 'gk' == $_GET['t'] OR 'ro' == $_GET['t'] )
{
$immo_abfrage = 'WHERE KAT = "' . $O_TYP . '" AND V_TYP = "' . $V_TYP . '"';
}
else
{
$immo_abfrage = 'WHERE O_TYP = "' . $O_TYP . '" AND V_TYP = "' . $V_TYP . '"';
}
if ( !$_SESSION['IsAdmin'] )
{
$immo_abfrage .= ' AND TID = "' . $_SESSION['TID'] . '"';
}
$actions = array();
$actions['Anlegen'] = strtolower($O_TYP."/".$V_TYP.'/edit.php');
$actions['Anzeigen'] = 'view.php';
$actions['Bearbeiten'] = strtolower($O_TYP."/".$V_TYP.'/edit.php');
$actions['Speichern'] = strtolower($O_TYP."/".$V_TYP.'/speichern.php');
$actions['Löschen'] = 'delete.php';
$actions['Abbrechen'] = 'delete.php';
$actions['De- / Aktivieren'] = 'aktivieren.php';
if (!isset($_GET['a'])) {
if (isset($_POST['formaction'])) {
return include $actions[$_POST['formaction']];
var_dump($_POST);
}
}
return include 'overview.php';
?>

View File

@@ -0,0 +1,47 @@
<?php
echo "<h1>Verwaltung - <span style=\"color: red;\">".str_replace ( '" OR O_TYP = "', ' / ' , $O_TYP )." ".$V_TYP."</span></h1>\n";
?>
<!-- Das Formular, um die neue Immobilie anzulegen -->
<form action="index.php?section=objekte&t=<?php echo $_GET['t']; ?>" method="post">
<fieldset>
<legend>neues Objekt anlegen</legend>
<input type="submit" name="formaction" value="Anlegen" />
</fieldset>
</form>
<br />
<!-- Das Formular, um die bestehende Immobilie zu bearbeiten -->
<form action="index.php?section=objekte&t=<?php echo $_GET['t']; ?>" method="post">
<fieldset>
<legend>bestehendes Objekt ...</legend>
<br />
<?php
$sql="SELECT * FROM objekte ".$immo_abfrage." ORDER BY Aktiv DESC, ID DESC";
$result = $db->query($sql);
echo " <select size=\"1\" name=\"ID\">\n";
while($nt = $result->fetch_assoc()){
if ( $nt['Aktiv'] )
{
$style = "style=\"color:green;\"";
}
else
{
$style = "style=\"color:red;\"";
}
echo " <option " . $style . " value=\"$nt[ID]\">$nt[ID] $nt[Kurz]</option>\n";
}
echo " </select>\n";
echo " &nbsp;<br /><br />\n";
echo " <input type=\"submit\" name=\"formaction\" value=\"Anzeigen\" /><br />\n";
echo " <input type=\"submit\" name=\"formaction\" value=\"Bearbeiten\" /><br />\n";
if ( $_SESSION['IsAdmin'] )
{
echo " <input type=\"submit\" name=\"formaction\" value=\"Löschen\" /><br />\n";
echo " <input type=\"submit\" name=\"formaction\" value=\"De- / Aktivieren\" /><br />\n";
}
?>
</fieldset>
</form>

View File

@@ -0,0 +1,2 @@
<h1>R!ST-Immobiliensoft Objektverwaltung</h1>
<p>Wählen Sie auf der linken Seite den Objekttyp und im Bereich "Wohnen" die richtige Vermarktungsart!</p>

View File

@@ -0,0 +1,31 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
$link = "../view.php?obj=" . $_POST['ID'];
?>
<h1>Anzeige im Popupfenster...</h1>
<p>Falls sich kein Popupfenster öffnet, deaktivieren Sie Ihren Popup-Blocker für diese Domain.</p>
<script type="text/javascript">
MeinFenster = window.open("<?php echo $link; ?>", "Zweitfenster", "width=800,height=600,scrollbars=yes");
MeinFenster.focus();
</script>
<?php
if ( $_SESSION['IsAdmin'] )
{
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "' LIMIT 1;";
$result = $db->query ( $sql );
$nt = $result->fetch_assoc ();
?>
<form action="index.php?section=objekte&t=<?php echo $_GET['t']; ?>" method="post">
<fieldset>
<legend>bestehendes Objekt ...</legend>
<input type="hidden" name="ID" value="<?php echo $nt['ID']; ?>" />
<br />
<input type="submit" name="formaction" value="De- / Aktivieren" />
</fieldset>
</form>
<?php
}
}
?>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,100 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
echo "<h1>Objekt speichern...</h1>\n";
$sql = 'UPDATE objekte SET
VVID = "'.$_POST['VVID'].'",
Aktiv = "'.$_POST['Aktiv'].'",
Deaktiv = "'.$_POST['Deaktiv'].'",
Highlight = "'.$_POST['Highlight'].'",
Neu = "'.$_POST['Neu'].'",
FotoStart = "'.$_POST['FotoStart'].'",
Kurz = "'.$_POST['Kurz'].'",
Tags = "'.$_POST['Tags'].'",
OBeschreibung = "'.$_POST['OBeschreibung'].'",
Art = "'.$_POST['Art'].'",
Zustand = "'.$_POST['Zustand'].'",
Quali = "'.$_POST['Quali'].'",
Baujahr = "'.$_POST['Baujahr'].'",
Modern = "'.$_POST['Modern'].'",
Zimmer = "'.$_POST['Zimmer'].'",
Etage = "'.$_POST['Etage'].'",
Etagen = "'.$_POST['Etagen'].'",
WohnF = "'.$_POST['WohnF'].'",
Heizart = "'.$_POST['Heizart'].'",
Befeuerung = "'.$_POST['Befeuerung'].'",
WaschOrt = "'.$_POST['WaschOrt'].'",
TV = "'.$_POST['TV'].'",
Bezug = "'.$_POST['Bezug'].'",
Strasse = "'.$_POST['Strasse'].'",
StraNr = "'.$_POST['StraNr'].'",
PLZ = "'.$_POST['PLZ'].'",
Ort = "'.$_POST['Ort'].'",
Mkalt = "'.$_POST['Mkalt'].'",
Mwarm = "'.$_POST['Mwarm'].'",
StellK = "'.$_POST['StellK'].'",
SonK = "'.$_POST['SonK'].'",
ProvisionsPflichtig = "'.$_POST['ProvisionsPflichtig'].'",
Provision = "'.$_POST['Provision'].'",
EinbauK = "'.$_POST['EinbauK'].'",
Speise = "'.$_POST['Speise'].'",
AnzBad = "'.$_POST['AnzBad'].'",
AnzSchlaf = "'.$_POST['AnzSchlaf'].'",
BadeW = "'.$_POST['BadeW'].'",
DuschK = "'.$_POST['DuschK'].'",
WCbad = "'.$_POST['WCbad'].'",
WCsep = "'.$_POST['WCsep'].'",
Abstell = "'.$_POST['Abstell'].'",
DachB = "'.$_POST['DachB'].'",
Keller = "'.$_POST['Keller'].'",
AnzGarStell = "'.$_POST['AnzGarStell'].'",
Garage = "'.$_POST['Garage'].'",
StellPl = "'.$_POST['StellPl'].'",
Terrasse = "'.$_POST['Terrasse'].'",
Balkon = "'.$_POST['Balkon'].'",
Garten = "'.$_POST['Garten'].'",
Lage = "'.$_POST['Lage'].'",
Ausstatt = "'.$_POST['Ausstatt'].'",
EnerTyp = "'.$_POST['EnerTyp'].'",
EnerVKW = "'.$_POST['EnerVKW'].'",
EnerWWEnt = "'.$_POST['EnerWWEnt'].'",
Aufzug = "'.$_POST['Aufzug'].'",
Betreut = "'.$_POST['Betreut'].'",
Barrierefrei = "'.$_POST['Barrierefrei'].'",
Sonstiges = "'.$_POST['Sonstiges'].'",
Intern = "'.$_POST['Intern'].'",
Akt_Datum = now()
WHERE ID = "'.$_POST['ID'].'";';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "';";
$result = $db->query($sql);
$nt = $result->fetch_assoc();
if ( $nt['Scout'] )
{
$_POST['ImmoScout'] = 'loeschen';
}
if ( $nt['Welt'] )
{
$_POST['ImmoWelt'] = 'loeschen';
}
if ( $nt['Net'] )
{
$_POST['ImmoNet'] = 'loeschen';
}
$_POST['fromDel'] = '1';
include "inhalte/objekte/aktivieren.php";
echo "<p>Datensatz wurde gespeichert!</p>\n";
echo "<form action=\"index.php?section=objekte&t=fotos&o=".$_POST['ID']."\" method=\"post\" />\n";
echo " <input type=\"submit\" name=\"Fotos\" value=\"zu den Fotos\" />\n";
echo "</form>\n";
include "inhalte/orte.php";
}
?>

View File

@@ -0,0 +1,283 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if ('POST' == $_SERVER['REQUEST_METHOD']) {
if (!isset($_POST['formaction'])) {
echo "Benutzen sie nur Formulare von der Homepage.";
}
elseif ('Anzeigen' == ($_POST['formaction'])) {
$sqlob = 'SELECT * FROM objekte WHERE ID = "'.$_POST['ID'].'" ';
$resultob = $db->query($sqlob);
$ntob = $resultob->fetch_assoc();
$sql1 = 'SELECT DATE_FORMAT(Datum, "%d.%m.%Y") AS Datum, DATE_FORMAT(Akt_Datum, "%d.%m.%Y") AS Akt_Datum FROM objekte WHERE ID = "'.$_POST['ID'].'" ';
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
$sql3 = "SELECT Wert FROM US WHERE ID = \"9\";";
$result3 = $db->query($sql3);
$nt3 = $result3->fetch_assoc();
/* $sql4 = 'SELECT
*
FROM vv
WHERE ID = "'.$ntob['VVID'].'" ';
$result4 = $db->query($sql4);
$nt4 = $result4->fetch_assoc();
*/
echo "<h1>".$ntob['ID']." - ".$ntob['Kurz']."</h1>\n";
echo "<p style=\"margin-left: 13px;\">\n";
echo " <label>Aufgenommen:</label>\n";
echo " <label class=\"links\">".fnc_getUsernameById ( $ntob['TID'], 'logfiles' ).", ".$nt1['Datum']."</label>\n";
echo " <label>Zuletzt bearbeitet:</label>\n";
echo " <label class=\"rechts\">".$nt1['Akt_Datum']."</label>\n";
if ("Tags" == $nt3['Wert']) {
echo " <label>SEO-Schlagworte</label>\n";
echo " <br />\n";
echo "<span style=\"color: #000000;\">";
echo $ntob['Tags'];
echo "</span>\n";
}
echo "</p>\n";
echo "<br style=\"clear: both;\" />\n";
/* echo "<fieldset>\n";
echo " <legend>Kontaktdaten</legend>\n";
echo " <label>Anrede</label>\n";
echo " <label class=\"links\">".$nt4['Anrede']."</label>\n";
echo " <label>Telefon</label>\n";
echo " <label class=\"rechts\">".$nt4['Telefon']."</label>\n";
echo " <br />\n";
echo " <label>Vorname</label>\n";
echo " <label class=\"links\">".$nt4['Vorname']."</label>\n";
echo " <label>Fax</label>\n";
echo " <label class=\"rechts\">".$nt4['Fax']."</label>\n";
echo " <br />\n";
echo " <label>Nachname</label>\n";
echo " <label class=\"links\">".$nt4['Nachname']."</label>\n";
echo " <label>Mobil</label>\n";
echo " <label class=\"rechts\">".$nt4['Mobil']."</label>\n";
echo " <br />\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$nt4['Adresse']."</label>\n";
echo " <label>Firma</label>\n";
echo " <label class=\"rechts\">".$nt4['Firma']."</label>\n";
echo " <br />\n";
echo " <label>PLZ / Ort</label>\n";
echo " <label class=\"links\">".$nt4['PLZ']." ".$nt4['Ort']."</label>\n";
echo " <br />\n";
echo " <label>Email</label>\n";
echo " <label class=\"links\">".$nt4['Email']."</label>\n";
echo "</fieldset>\n";
echo "<br />\n";
*/ echo "<fieldset>\n";
echo " <legend>Eigenschaften</legend>\n";
echo " <label>Neu eingetroffen</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Neu'].".png\" /></label>\n";
echo " <label>Foto auf Startseite</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['FotoStart'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Zimmer</label>\n";
echo " <label class=\"links\">".$ntob['Zimmer']."</label>\n";
echo " <label>Art</label>\n";
echo " <label class=\"rechts\">".$ntob['Art']."</label>\n";
echo " <br />\n";
echo " <label>Zustand</label>\n";
echo " <label class=\"links\">".$ntob['Zustand']."</label>\n";
echo " <label>Qualität-Ausstattung</label>\n";
echo " <label class=\"rechts\">".$ntob['Quali']."</label>\n";
echo " <br />\n";
echo " <label>Baujahr</label>\n";
echo " <label class=\"links\">".$ntob['Baujahr']."</label>\n";
echo " <label>letzte Modernisierung</label>\n";
echo " <label class=\"rechts\">".$ntob['Modern']."</label>\n";
echo " <br />\n";
echo " <label>Etage</label>\n";
echo " <label class=\"links\">".$ntob['Etage']."</label>\n";
echo " <label>Etagen</label>\n";
echo " <label class=\"rechts\">".$ntob['Etagen']."</label>\n";
echo " <br />\n";
echo " <label>Wohnfläche</label>\n";
echo " <label class=\"links\">".$ntob['WohnF']."</label>\n";
echo " <label>Grundfläche</label>\n";
echo " <label class=\"rechts\">".$ntob['GrundF']."</label>\n";
echo " <br />\n";
echo " <label>Heizart</label>\n";
echo " <label class=\"links\">".$ntob['Heizart']."</label>\n";
echo " <label>Befeuerungsart</label>\n";
echo " <label class=\"rechts\">".$ntob['Befeuerung']."</label>\n";
echo " <br />\n";
echo " <label>Waschmaschine im</label>\n";
echo " <label class=\"links\">".$ntob['WaschOrt']."</label>\n";
echo " <label>TV-Anschluss</label>\n";
echo " <label class=\"rechts\">".$ntob['TV']."</label>\n";
echo " <br />\n";
echo " <label>Bezug</label>\n";
echo " <label class=\"links\">".$ntob['Bezug']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Lage</legend>\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$ntob['Strasse']." ".$ntob['StraNr']."</label>\n";
echo " <label>Ort</label>\n";
echo " <label class=\"rechts\">".$ntob['PLZ']." ".$ntob['Ort']."</label>\n";
echo " <br />\n";
echo "<p>".nl2br($ntob['Lage'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Kosten</legend>\n";
echo " <label>Kaufpreis</label>\n";
echo " <label class=\"links\">".$ntob['Mkalt']."</label>\n";
echo " <label>Wohngeld</label>\n";
echo " <label class=\"rechts\">".$ntob['Mwarm']."</label>\n";
echo " <br />\n";
echo " <label>Kaufpreis Garage</label>\n";
echo " <label class=\"links\">".$ntob['GaraK']."</label>\n";
echo " <label>Kaufpreis Stellplatz</label>\n";
echo " <label class=\"rechts\">".$ntob['StellK']."</label>\n";
echo " <br />\n";
echo " <label>Mieteinnahmen</label>\n";
echo " <label class=\"links\">".$ntob['SonK']."</label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Auflagen</legend>\n";
echo " <label>Erwachsene</label>\n";
echo " <label class=\"links\">".$ntob['EZahl']."</label>\n";
echo " <label>Kinder</label>\n";
echo " <label class=\"rechts\">".$ntob['KZahl']."</label>\n";
echo " <br />\n";
echo " <label>Raucher</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Raucher'].".png\" /></label>\n";
echo " <label>Ausländer</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Ausl'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Ausstattung</legend>\n";
echo "<fieldset>\n";
echo " <legend>innen</legend>\n";
echo " <label>Abstellraum</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Abstell'].".png\" /></label>\n";
echo " <label>Dachboden</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['DachB'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Keller</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Keller'].".png\" /></label>\n";
echo " <label>Aufzug</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Aufzug'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Betreutes Wohnen</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Betreut'].".png\" /></label>\n";
echo " <label>Barrierefrei</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Barrierefrei'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Küche</legend>\n";
echo " <label>Einbauküche</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['EinbauK'].".png\" /></label>\n";
echo " <label>Speisekammer</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Speise'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Badezimmer</legend>\n";
echo " <label>Anzahl Badezimmer</label>\n";
echo " <label class=\"links\">".$ntob['AnzBad']."</label>\n";
echo " <br />\n";
echo " <label>Badewanne</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['BadeW'].".png\" /></label>\n";
echo " <label>Duschkabine</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['DuschK'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>WC im Bad</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['WCbad'].".png\" /></label>\n";
echo " <label>Gäste-WC</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['WCsep'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>aussen</legend>\n";
echo " <label>Anzahl Garage/Stellpl.</label>\n";
echo " <label class=\"links\">".$ntob['AnzGarStell']."</label>\n";
echo " <br />\n";
echo " <label>Garage</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Garage'].".png\" /></label>\n";
echo " <label>Stellplatz</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['StellPl'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Terrasse</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Terrasse'].".png\" /></label>\n";
echo " <label>Balkon</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['Balkon'].".png\" /></label>\n";
echo " <br />\n";
echo " <label>Gartenbenutzung</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$ntob['Garten'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Energieausweis</legend>\n";
echo " <label>Energieausweistyp</label>\n";
echo " <label class=\"links\">".$ntob['EnerTyp']."</label>\n";
echo " <br />\n";
echo " <label>Verbrauchskennwert</label>\n";
echo " <label class=\"links\">".$ntob['EnerVKW']."</label>\n";
echo " <label>Warmwasser enthalten</label>\n";
echo " <label class=\"rechts\"><img src=\"../img/".$ntob['EnerWWEnt'].".png\" /></label>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<br />\n";
echo " <p>".nl2br($ntob['Ausstatt'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Sonstiges</legend>\n";
echo " <p>".nl2br($ntob['Sonstiges'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Interne Infos</legend>\n";
echo " <p>".nl2br($ntob['Intern'])."</p>\n";
echo "</fieldset>\n";
echo "<br />\n";
echo "<fieldset>\n";
echo " <legend>Fotos</legend>\n";
echo " <table style=\"background:none;\">\n";
echo " <colgroup>\n";
echo " <col span=\"4\" width=\"180px\" />\n";
echo " </colgroup>\n";
echo " <tr>\n";
$j = 0;
for ($i=1; $i<8; $i++) {
$pic = "../img/objekte/".$_POST['ID']."_".$i.".jpg";
if (file_exists($pic)) {
echo " <td style=\"text-align:center;\" >\n";
echo " <img src=\"".$pic."\" title=\"".$ntob['Foto'.$i]."\" width=\"100px\" height=\"100px\"/> \n";
echo " <br />\n";
echo $ntob['Foto'.$i];
echo " </td>\n";
$j++;
}
if ("4" == $j) {
echo " </tr>\n";
echo " <tr>\n";
}
}
echo " </tr>\n";
echo " </table>\n";
echo "</fieldset>\n";
echo "<br />\n";
}
}
}
?>

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,105 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
echo "<h1>Objekt speichern...</h1>\n";
$sql = 'UPDATE objekte SET
VVID = "'.$_POST['VVID'].'",
Aktiv = "'.$_POST['Aktiv'].'",
Deaktiv = "'.$_POST['Deaktiv'].'",
Highlight = "'.$_POST['Highlight'].'",
Neu = "'.$_POST['Neu'].'",
FotoStart = "'.$_POST['FotoStart'].'",
Kurz = "'.$_POST['Kurz'].'",
Tags = "'.$_POST['Tags'].'",
OBeschreibung = "'.$_POST['OBeschreibung'].'",
Art = "'.$_POST['Art'].'",
Zustand = "'.$_POST['Zustand'].'",
Quali = "'.$_POST['Quali'].'",
Baujahr = "'.$_POST['Baujahr'].'",
Modern = "'.$_POST['Modern'].'",
Zimmer = "'.$_POST['Zimmer'].'",
Etage = "'.$_POST['Etage'].'",
Etagen = "'.$_POST['Etagen'].'",
WohnF = "'.$_POST['WohnF'].'",
Heizart = "'.$_POST['Heizart'].'",
Befeuerung = "'.$_POST['Befeuerung'].'",
WaschOrt = "'.$_POST['WaschOrt'].'",
TV = "'.$_POST['TV'].'",
Bezug = "'.$_POST['Bezug'].'",
Strasse = "'.$_POST['Strasse'].'",
StraNr = "'.$_POST['StraNr'].'",
PLZ = "'.$_POST['PLZ'].'",
Ort = "'.$_POST['Ort'].'",
Kaution = "'.$_POST['Kaution'].'",
Mkalt = "'.$_POST['Mkalt'].'",
Mwarm = "'.$_POST['Mwarm'].'",
NebenK = "'.$_POST['NebenK'].'",
HeizK = "'.$_POST['HeizK'].'",
HKent = "'.$_POST['HKent'].'",
StellK = "'.$_POST['StellK'].'",
ProvisionsPflichtig = "'.$_POST['ProvisionsPflichtig'].'",
Provision = "'.$_POST['Provision'].'",
Tiere = "'.$_POST['Tiere'].'",
Renovierung = "'.$_POST['Renovierung'].'",
EinbauK = "'.$_POST['EinbauK'].'",
Speise = "'.$_POST['Speise'].'",
AnzBad = "'.$_POST['AnzBad'].'",
AnzSchlaf = "'.$_POST['AnzSchlaf'].'",
BadeW = "'.$_POST['BadeW'].'",
DuschK = "'.$_POST['DuschK'].'",
WCbad = "'.$_POST['WCbad'].'",
WCsep = "'.$_POST['WCsep'].'",
Abstell = "'.$_POST['Abstell'].'",
DachB = "'.$_POST['DachB'].'",
Keller = "'.$_POST['Keller'].'",
AnzGarStell = "'.$_POST['AnzGarStell'].'",
Garage = "'.$_POST['Garage'].'",
StellPl = "'.$_POST['StellPl'].'",
Terrasse = "'.$_POST['Terrasse'].'",
Balkon = "'.$_POST['Balkon'].'",
Garten = "'.$_POST['Garten'].'",
Lage = "'.$_POST['Lage'].'",
Ausstatt = "'.$_POST['Ausstatt'].'",
EnerTyp = "'.$_POST['EnerTyp'].'",
EnerVKW = "'.$_POST['EnerVKW'].'",
EnerWWEnt = "'.$_POST['EnerWWEnt'].'",
Aufzug = "'.$_POST['Aufzug'].'",
Betreut = "'.$_POST['Betreut'].'",
Barrierefrei = "'.$_POST['Barrierefrei'].'",
Sonstiges = "'.$_POST['Sonstiges'].'",
Intern = "'.$_POST['Intern'].'",
Akt_Datum = now()
WHERE ID = "'.$_POST['ID'].'";';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "';";
$result = $db->query($sql);
$nt = $result->fetch_assoc();
if ( $nt['Scout'] )
{
$_POST['ImmoScout'] = 'loeschen';
}
if ( $nt['Welt'] )
{
$_POST['ImmoWelt'] = 'loeschen';
}
if ( $nt['Net'] )
{
$_POST['ImmoNet'] = 'loeschen';
}
$_POST['fromDel'] = '1';
include "inhalte/objekte/aktivieren.php";
echo "<p>Datensatz wurde gespeichert!</p>\n";
echo "<form action=\"index.php?section=objekte&t=fotos&o=".$_POST['ID']."\" method=\"post\" />\n";
echo " <input type=\"submit\" name=\"Fotos\" value=\"zu den Fotos\" />\n";
echo "</form>\n";
include "inhalte/orte.php";
}
?>

View File

@@ -0,0 +1,14 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
$link = "../view.php?obj=" . $_POST['ID'];
?>
<script type="text/javascript">
MeinFenster = window.open("<?php echo $link; ?>", "Zweitfenster", "width=800,height=600,scrollbars=yes");
MeinFenster.focus();
</script>
<?php
}
?>

19
admin/inhalte/orte.php Normal file
View File

@@ -0,0 +1,19 @@
<?php
$sqla = "SELECT Ortname FROM Orte;";
$resulta = $db->query($sqla);
while ($nta = $resulta->fetch_assoc()) {
if ($nta['Ortname'] == $_POST['Ort']) {
exit();
}
}
$sqls = 'INSERT INTO Orte (ID, Ortname) VALUES (NULL, "'.$_POST['Ort'].'");';
$stmts = $db->prepare($sqls);
if (!$stmts) {
die ('Datensatz konnte nicht angelegt werden: '.$db->error);
}
if (!$stmts->execute()) {
die ('Datensatz konnte nicht angelegt werden: '.$stmts->error);
}

View File

@@ -0,0 +1,10 @@
<?php
if (isset($_POST['Send'])) {
include "inhalte/login1.php";
}
else {
include "inhalte/login2.php";
}
?>

View File

@@ -0,0 +1,24 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if (isset($_GET[t])) {
if ("vv" == $_GET[t]) {
if ((in_array("Alle_Vermieter", $_SESSION['Rechte'])) OR (in_array("Eigene_Vermieter", $_SESSION['Rechte']))) {
include "inhalte/personen/vv.php";
} else {
echo "<h1 class=\"hinweis\">Sie haben nicht die notwendigen Zugriffsrechte!</h1>\n";
}
} elseif ("in" == $_GET[t]) {
if ((in_array("Alle_Interessenten", $_SESSION['Rechte'])) OR (in_array("Eigene_Interessenten", $_SESSION['Rechte']))) {
include "inhalte/personen/in.php";
} else {
echo "<h1 class=\"hinweis\">Sie haben nicht die notwendigen Zugriffsrechte!</h1>\n";
}
} else {
include "inhalte/personen/standard.php";
}
} else {
include "inhalte/personen/standard.php";
}
}
?>

View File

@@ -0,0 +1,20 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if (!isset($_POST['action'])) {
include "inhalte/personen/in_over.php";
} else {
if (("Anlegen" == $_POST['action']) OR ("Bearbeiten" == $_POST['action'])) {
include "inhalte/personen/in_edit.php";
} elseif ("Speichern" == $_POST['action']) {
include "inhalte/personen/in_save.php";
} elseif ("Anzeigen" == $_POST['action']) {
include "inhalte/personen/in_view.php";
} elseif (("Löschen" == $_POST['action']) OR ("Abbrechen" == $_POST['action'])) {
include "inhalte/personen/in_del.php";
} else {
include "inhalte/personen/in_over.php";
}
}
}
?>

View File

@@ -0,0 +1,16 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
$sql = 'DELETE FROM
inter
WHERE
ID = "'.$_POST['ID'].'";';
$result = $db->query($sql);
if ($result) {
unset($_POST);
include "inhalte/personen.php";
} else {
echo "Fehler beim löschen";
}
}
?>

View File

@@ -0,0 +1,253 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if ("Anlegen" == $_POST['action']) {
$sql = 'INSERT INTO inter (ID, TID, Datum) VALUES (NULL, "'.$_SESSION['TID'].'", now())';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht angelegt werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht angelegt werden: '.$stmt->error);
}
$sql = 'SELECT last_insert_id() AS last';
$result = $db->query($sql);
$nt = $result->fetch_assoc();
$id = $nt['last'];
echo "<h1>neuen Interessenten anlegen</h1>\n";
} else {
echo "<h1>Interessenten bearbeiten</h1>\n";
$id = $_POST['ID'];
}
$sql1 = "SELECT * FROM inter WHERE ID = \"".$id."\" ";
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
$sql2 = "SELECT Anrede FROM Anreden ORDER BY Anrede ASC";
$result2 = $db->query($sql2);
$sql3 = "SELECT O_TYP FROM O_Typen ORDER BY O_TYP ASC";
$result3 = $db->query($sql3);
$sql4 = "SELECT V_TYP FROM V_Typen ORDER BY V_TYP ASC";
$result4 = $db->query($sql4);
$sql5 = "SELECT Lage FROM lagen ORDER BY Lage ASC";
$result5 = $db->query($sql5);
$sql6 = "SELECT ID, Vorname, Nachname FROM Team ORDER BY ID ASC";
$result6 = $db->query($sql6);
echo "<br />\n";
echo "<form action=\"index.php?section=Personen&t=in\" method=\"post\">\n";
if (in_array("Makler_Interessenten", $_SESSION['Rechte'])) {
echo " <label class=\"hinweis\">Teammitglied zuordnen</label>\n";
echo " <select name=\"TID\">\n";
while ($nt6 = $result6->fetch_assoc()) {
echo " <option value=\"".$nt6['ID']."\"";
if ($nt6['ID'] == $nt1['TID']) {
echo " selected=\"selected\"";
}
echo ">".$nt6['Nachname']." ".$nt6['Vorname']."</option>\n";
}
echo " </select>\n";
echo " <br />\n";
echo " &nbsp;<br />\n";
} else {
echo " <input type=\"hidden\" name=\"TID\" value=\"".$_SESSION['TID']."\" />\n";
}
echo "<fieldset>\n";
echo " <legend>Kontaktdaten:</legend>\n";
echo " <input type=\"hidden\" name=\"ID\" value=\"".$id."\" />\n";
echo " <label>Aktiv</label>\n";
echo " <input type=\"radio\" name=\"Aktiv\" value=\"1\" ";
if ("1" == $nt1['Aktiv']) {
echo "checked=\"checked\" ";
}
echo "/>ja\n";
echo " <input type=\"radio\" name=\"Aktiv\" value=\"0\" ";
if ("0" == $nt1['Aktiv']) {
echo "checked=\"checked\" ";
}
echo "/>nein\n";
echo " <br />\n";
echo " <label>Anrede</label>\n";
echo " <select name=\"Anrede\">\n";
while ($nt2 = $result2->fetch_assoc()) {
echo " <option value=\"".$nt2['Anrede']."\"";
if ($nt2['Anrede'] == $nt1['Anrede']) {
echo " selected=\"selected\"";
}
echo ">".$nt2['Anrede']."</option>\n";
}
echo " </select>\n";
echo " <br />\n";
echo " <label>Vorname</label>\n";
echo " <input type=\"text\" name=\"Vorname\" value=\"".$nt1['Vorname']."\" />\n";
echo " <br />\n";
echo " <label>Nachname</label>\n";
echo " <input type=\"text\" name=\"Nachname\" value=\"".$nt1['Nachname']."\" />\n";
echo " <br />\n";
echo " <label>Adresse</label>\n";
echo " <input type=\"text\" name=\"Adresse\" value=\"".$nt1['Adresse']."\" />\n";
echo " <br />\n";
echo " <label>PLZ</label>\n";
echo " <input type=\"text\" name=\"PLZ\" value=\"".$nt1['PLZ']."\" />\n";
echo " <br />\n";
echo " <label>Ort</label>\n";
echo " <input type=\"text\" name=\"Ort\" value=\"".$nt1['Ort']."\" />\n";
echo " <br />\n";
echo " <label>Telefon</label>\n";
echo " <input type=\"text\" name=\"Telefon\" value=\"".$nt1['Telefon']."\" />\n";
echo " <br />\n";
echo " <label>Fax</label>\n";
echo " <input type=\"text\" name=\"Fax\" value=\"".$nt1['Fax']."\" />\n";
echo " <br />\n";
echo " <label>Mobil</label>\n";
echo " <input type=\"text\" name=\"Mobil\" value=\"".$nt1['Mobil']."\" />\n";
echo " <br />\n";
echo " <label>Firma</label>\n";
echo " <input type=\"text\" name=\"Firma\" value=\"".$nt1['Firma']."\" />\n";
echo " <br />\n";
echo " <label>Email</label>\n";
echo " <input type=\"text\" name=\"Email\" value=\"".$nt1['Email']."\" />\n";
echo " <br />\n";
echo " <label>Email-Benachrichtigung</label>\n";
echo " <input type=\"radio\" name=\"EmailB\" value=\"1\" ";
if ("1" == $nt1['EmailB']) {
echo "checked=\"checked\" ";
}
echo "/>ja\n";
echo " <input type=\"radio\" name=\"EmailB\" value=\"0\" ";
if ("0" == $nt1['EmailB']) {
echo "checked=\"checked\" ";
}
echo "/>nein\n";
echo "</fieldset>\n";
echo " <br />\n";
echo " &nbsp;<br />\n";
echo "<fieldset>\n";
echo " <legend>Persönliche Daten:</legend>\n";
echo " <label>Alter</label>\n";
echo " <input type=\"text\" name=\"Age\" value=\"".$nt1['Age']."\" />\n";
echo " <br />\n";
echo " <label>Familienstand</label>\n";
echo " <input type=\"text\" name=\"Stand\" value=\"".$nt1['Stand']."\" />\n";
echo " <br />\n";
echo " <label>Kinder</label>\n";
echo " <input type=\"text\" name=\"Kinder\" value=\"".$nt1['Kinder']."\" />\n";
echo " <br />\n";
echo " <label>Alter der Kinder</label>\n";
echo " <input type=\"text\" name=\"AlterK\" value=\"".$nt1['AlterK']."\" />\n";
echo " <br />\n";
echo " <label>Beruf</label>\n";
echo " <input type=\"text\" name=\"Beruf\" value=\"".$nt1['Beruf']."\" />\n";
echo " <br />\n";
echo " <label>Arbeitgeber</label>\n";
echo " <input type=\"text\" name=\"Arbeitgeber\" value=\"".$nt1['Arbeitgeber']."\" />\n";
echo " <br />\n";
echo " <label>Staatsangehörigkeit</label>\n";
echo " <input type=\"text\" name=\"Staat\" value=\"".$nt1['Staat']."\" />\n";
echo " <br />\n";
echo " <label>Raucher</label>\n";
echo " <input type=\"radio\" name=\"Raucher\" value=\"1\" ";
if ("1" == $nt1['Raucher']) {
echo "checked=\"checked\" ";
}
echo "/>ja\n";
echo " <input type=\"radio\" name=\"Raucher\" value=\"0\" ";
if ("0" == $nt1['Raucher']) {
echo "checked=\"checked\" ";
}
echo "/>nein\n";
echo " <br />\n";
echo " <label>Haustiere</label>\n";
echo " <input type=\"radio\" name=\"Tiere\" value=\"1\" ";
if ("1" == $nt1['Tiere']) {
echo "checked=\"checked\" ";
}
echo "/>ja\n";
echo " <input type=\"radio\" name=\"Tiere\" value=\"0\" ";
if ("0" == $nt1['Tiere']) {
echo "checked=\"checked\" ";
}
echo "/>nein\n";
echo "</fieldset>\n";
echo " <br />\n";
echo " &nbsp;<br />\n";
echo "<fieldset>\n";
echo " <legend>Angaben zum gesuchten Objekt</legend>\n";
echo " <label>Objekttyp</label>\n";
echo " <select name=\"O_TYP\">\n";
while ($nt3 = $result3->fetch_assoc()) {
echo " <option value=\"".$nt3['O_TYP']."\"";
if ($nt1['O_TYP'] == $nt3['O_TYP']) {
echo " selected=\"selected\"";
}
echo ">".$nt3['O_TYP']."</option>\n";
}
echo " </select>\n";
echo " <br />\n";
echo " <label>Vermarktungsart</label>\n";
echo " <select name=\"V_TYP\">\n";
while ($nt4 = $result4->fetch_assoc()) {
echo " <option value=\"".$nt4['V_TYP']."\"";
if ($nt4['V_TYP'] == $nt1['V_TYP']) {
echo " selected=\"selected\"";
}
echo ">".$nt4['V_TYP']."</option>\n";
}
echo " </select>\n";
echo " <br />\n";
echo " <label>Ort</label>\n";
echo " <input type=\"text\" name=\"ORTneu\" />\n";
echo " <br />\n";
echo " <label>Lage</label>\n";
echo " <select name=\"Lage\">\n";
while ($nt5 = $result5->fetch_assoc()) {
echo " <option value=\"".$nt5['Lage']."\"";
if ($nt5['Lage'] == $nt1['Lage']) {
echo " selected=\"selected\"";
}
echo ">".$nt5['Lage']."</option>\n";
}
echo " </select>\n";
echo " <br />\n";
echo " <label>Bezug zum</label>\n";
echo " <input type=\"text\" name=\"Bezug\" value=\"".$nt1['Bezug']."\" />\n";
echo " <br />\n";
echo " <label>Zimmer</label>\n";
echo " <input type=\"text\" class=\"kurz\" name=\"ZIMMERvon\" value=\"".$nt1['ZIMMERvon']."\" />\n";
echo " - <input type=\"text\" class = \"kurz\" name=\"ZIMMERbis\" value=\"".$nt1['ZIMMERbis']."\" />\n";
echo " <br />\n";
echo " <label>Wohn-/ Nutzfläche</label>\n";
echo " <input type=\"text\" name=\"QM\" value=\"".$nt1['QM']."\" />\n";
echo " <br />\n";
echo " <label>Kaltmiete</label>\n";
echo " <input type=\"text\" name=\"Mkalt\" value=\"".$nt1['Mkalt']."\" />\n";
echo " <br />\n";
echo " <label>Warmmiete</label>\n";
echo " <input type=\"text\" name=\"Mwarm\" value=\"".$nt1['Mwarm']."\" />\n";
echo " <br />\n";
echo " <label>Kaufpreis</label>\n";
echo " <input type=\"text\" name=\"Kpreis\" value=\"".$nt1['Kpreis']."\" />\n";
echo "</fieldset>\n";
echo " <br />\n";
echo " &nbsp;<br />\n";
echo "<fieldset>\n";
echo " <legend>Sonstiges</legend>\n";
echo " <textarea name=\"Sonstiges\">".$nt1['Sonstiges']."</textarea>\n";
echo "</fieldset>\n";
echo " <br />\n";
echo " &nbsp;<br />\n";
echo "<fieldset>\n";
echo " <legend>Intern</legend>\n";
echo " <textarea name=\"Intern\">".$nt1['Intern']."</textarea>\n";
echo "</fieldset>\n";
echo " <br />\n";
echo " &nbsp;<br />\n";
echo " <input type=\"submit\" name=\"action\" value=\"Speichern\" />\n";
if ("Anlegen" == $_POST['action']) {
echo " <input type=\"submit\" name=\"action\" value=\"Abbrechen\" />\n";
} else {
echo " <input type=\"reset\" value=\"Rücksetzen\" />\n";
}
echo "</form>\n";
}
?>

View File

@@ -0,0 +1,78 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
echo "<h1>Interessenten</h1>";
if (in_array("Eigene_Interessenten", $_SESSION['Rechte'])) {
$in_abfrage = "WHERE TID = \"".$_SESSION['TID']."\" ";
}
if ("Suchen..." == $_POST['action']) {
if ("" == $in_abfrage) {
if (("" == $_POST['Nachname']) AND ("" == $_POST['Telefon'])) {
} elseif (("" !== $_POST['Nachname']) AND ("" !== $_POST['Telefon'])) {
$in_abfrage = "WHERE Nachname = \"".$_POST['Nachname']."\" AND Telefon LIKE \"%".$_POST['Telefon']."%\" ";
} elseif ("" == $_POST['Nachname']) {
$in_abfrage = "WHERE Telefon LIKE \"%".$_POST['Telefon']."%\" ";
} else {
$in_abfrage = "WHERE Nachname = \"".$_POST['Nachname']."\" ";
}
} else {
if (("" == $_POST['Nachname']) AND ("" == $_POST['Telefon'])) {
} elseif (("" !== $_POST['Nachname']) AND ("" !== $_POST['Telefon'])) {
$in_abfrage .= "AND Nachname = \"".$_POST['Nachname']."\" AND Telefon LIKE \"%".$_POST['Telefon']."%\" ";
} elseif ("" == $_POST['Nachname']) {
$in_abfrage .= "AND Telefon LIKE \"%".$_POST['Telefon']."%\" ";
} else {
$in_abfrage .= "AND Nachname = \"".$_POST['Nachname']."\" ";
}
}
}
$sql = "SELECT ID, Vorname, Nachname FROM inter ".$in_abfrage." ORDER BY Nachname ASC";
$result = $db->query($sql);
?>
<!-- Das Formular zur Einschränkung der Suche -->
<form action="index.php?section=Personen&t=in" method="post">
<fieldset>
<legend>Ergebnisse einschränken</legend>
<label>Nachname</label>
<input type="text" name="Nachname" />
<img src="../img/help.gif" title="Bitte den Nachnamen exakt angeben" />
<br />
<label>Telefon</label>
<input type="text" name="Telefon" />
<img src="../img/help.gif" title="Ein Teil der Telefonnummer ist ausreichend" />
<br />&nbsp;<br />
<input type="submit" name="action" value="Suchen..." />
</fieldset>
</form>
<!-- Das Formular für eine neue Person -->
<form action="index.php?section=Personen&t=in" method="post">
<fieldset>
<legend>neuen Interessenten anlegen</legend>
<input type="submit" name="action" value="Anlegen" />
</fieldset>
</form>
<!-- Das Formular für eine bestehende Person -->
<form action="index.php?section=Personen&t=in" method="post">
<fieldset>
<legend>bestehenden Interessenten ...</legend>
<select name="ID">
<?php
while ($nt = $result->fetch_assoc()) {
echo " <option value=\"".$nt['ID']."\">".$nt['Nachname'].", ".$nt['Vorname']." - ".$nt['ID']."</option>\n";
}
?>
</select>
<br />&nbsp;<br />
<input type="submit" name="action" value="Anzeigen" />
<br />
<input type="submit" name="action" value="Bearbeiten" />
<br />
<input type="submit" name="action" value="Löschen" />
<br />
</fieldset>
</form>
<?php
}
?>

View File

@@ -0,0 +1,57 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
echo "<h1>Interessenten speichern...</h1>\n";
$sql = 'UPDATE inter SET
TID = "'.$_POST['TID'].'",
Aktiv = "'.$_POST['Aktiv'].'",
Anrede = "'.$_POST['Anrede'].'",
Vorname = "'.$_POST['Vorname'].'",
Nachname = "'.$_POST['Nachname'].'",
Adresse = "'.$_POST['Adresse'].'",
PLZ = "'.$_POST['PLZ'].'",
Ort = "'.$_POST['Ort'].'",
Telefon = "'.$_POST['Telefon'].'",
Fax = "'.$_POST['Fax'].'",
Mobil = "'.$_POST['Mobil'].'",
Firma = "'.$_POST['Firma'].'",
Email = "'.$_POST['Email'].'",
EmailB = "'.$_POST['EmailB'].'",
Age = "'.$_POST['Age'].'",
Stand = "'.$_POST['Stand'].'",
Kinder = "'.$_POST['Kinder'].'",
AlterK = "'.$_POST['AlterK'].'",
Beruf = "'.$_POST['Beruf'].'",
Arbeitgeber = "'.$_POST['Arbeitgeber'].'",
Staat = "'.$_POST['Staat'].'",
Raucher = "'.$_POST['Raucher'].'",
Tiere = "'.$_POST['Tiere'].'",
O_TYP = "'.$_POST['O_TYP'].'",
V_TYP = "'.$_POST['V_TYP'].'",
ORTneu = "'.$_POST['ORTneu'].'",
Lage = "'.$_POST['Lage'].'",
Bezug = "'.$_POST['Bezug'].'",
ZIMMERvon = "'.$_POST['ZIMMERvon'].'",
ZIMMERbis = "'.$_POST['ZIMMERbis'].'",
QM = "'.$_POST['QM'].'",
Mkalt = "'.$_POST['Mkalt'].'",
Mwarm = "'.$_POST['Mwarm'].'",
Kpreis = "'.$_POST['Kpreis'].'",
Sonstiges = "'.$_POST['Sonstiges'].'",
Intern = "'.$_POST['Intern'].'"
WHERE ID = "'.$_POST['ID'].'";';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
echo "<p>Datensatz wurde gespeichert!</p>\n";
echo "<form action=\"index.php?section=Personen&t=in\" method=\"post\" >\n";
echo " <input type=\"hidden\" name=\"ID\" value=\"".$_POST['ID']."\" />\n";
echo " <input type=\"submit\" name=\"action\" value=\"Anzeigen\" />\n";
echo "</form>\n";
}
?>

View File

@@ -0,0 +1,134 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
$sql = 'SELECT * FROM inter WHERE ID = "'.$_POST['ID'].'";';
$result = $db->query($sql);
$nt = $result->fetch_assoc();
$sql2 = 'SELECT Vorname, Nachname FROM Team WHERE ID = "'.$nt['TID'].'";';
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
$sql3 = 'SELECT DATE_FORMAT(Datum, "%d.%m.%Y") AS Datum, DATE_FORMAT(Akt_Datum, "%d.%m.%Y") AS Akt_Datum FROM inter WHERE ID = "'.$_POST['ID'].'" ';
$result3 = $db->query($sql3);
$nt3 = $result3->fetch_assoc();
echo "<h1>".$nt['ID']." - ".$nt['Anrede']." ".$nt['Vorname']." ".$nt['Nachname']."</h1>\n";
echo "<p style=\"margin-left: 13px;\">\n";
echo " <label>Aufgenommen:</label>\n";
echo " <label class=\"links\">".$nt2['Vorname']." ".$nt2['Nachname'].", ".$nt3['Datum']."</label>\n";
echo " <label>Zuletzt bearbeitet:</label>\n";
echo " <label class=\"rechts\">".$nt3['Akt_Datum']."</label>\n";
echo "</p>\n";
echo "<fieldset>\n";
echo " <legend>Kontaktdaten</legend>\n";
echo " <label>Aktiv</label>\n";
echo " <img src=\"../img/".$nt['Aktiv'].".png\" />\n";
echo " <br />\n";
echo " <label>Anrede</label>\n";
echo " <label class=\"links\">".$nt['Anrede']."</label>\n";
echo " <label>Telefon</label>\n";
echo " <label class=\"rechts\">".$nt['Telefon']."</label>\n";
echo " <br />\n";
echo " <label>Vorname</label>\n";
echo " <label class=\"links\">".$nt['Vorname']."</label>\n";
echo " <label>Fax</label>\n";
echo " <label class=\"rechts\">".$nt['Fax']."</label>\n";
echo " <br />\n";
echo " <label>Nachname</label>\n";
echo " <label class=\"links\">".$nt['Nachname']."</label>\n";
echo " <label>Mobil</label>\n";
echo " <label class=\"rechts\">".$nt['Mobil']."</label>\n";
echo " <br />\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$nt['Adresse']."</label>\n";
echo " <label>Firma</label>\n";
echo " <label class=\"rechts\">".$nt['Firma']."</label>\n";
echo " <br />\n";
echo " <label>PLZ / Ort</label>\n";
echo " <label class=\"links\">".$nt['PLZ']." ".$nt['Ort']."</label>\n";
echo " <br />\n";
echo " <label>Email</label>\n";
echo " <label class=\"links\">".$nt['Email']."</label>\n";
echo " <label>Email-Benachrichtigung</label>\n";
echo " <img src=\"../img/".$nt['EmailB'].".png\" />\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<fieldset>\n";
echo " <legend>Persönliche Angaben</legend>\n";
echo " <label>Alter</label>\n";
echo " <label class=\"links\">".$nt['Age']."</label>\n";
echo " <label>Familienstand</label>\n";
echo " <label class=\"rechts\">".$nt['Stand']."</label>\n";
echo " <br />\n";
echo " <label>Kinder</label>\n";
echo " <label class=\"links\">".$nt['Kinder']."</label>\n";
echo " <label>Alter jüngstes Kind</label>\n";
echo " <label class=\"rechts\">".$nt['AlterK']."</label>\n";
echo " <br />\n";
echo " <label>Beruf</label>\n";
echo " <label class=\"links\">".$nt['Beruf']."</label>\n";
echo " <label>Arbeitgeber</label>\n";
echo " <label class=\"rechts\">".$nt['Arbeitgeber']."</label>\n";
echo " <br />\n";
echo " <label>Staatsangehörigkeit</label>\n";
echo " <label class=\"links\">".$nt['Staat']."</label>\n";
echo " <br />\n";
echo " <label>Raucher</label>\n";
echo " <label class=\"links\"><img src=\"../img/".$nt['Raucher'].".png\" /></label>\n";
echo " <label>Haustiere</label>\n";
echo " <img src=\"../img/".$nt['Tiere'].".png\" />\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<fieldset>\n";
echo " <legend>Angaben zum gesuchten Objekt</legend>\n";
echo " <label>Objekttyp</label>\n";
echo " <label class=\"links\">".$nt['O_TYP']." - ".$nt['V_TYP']."</label>\n";
echo " <br />\n";
echo " <label>Ort</label>\n";
echo " <label class=\"links\">".$nt['ORTneu']."</label>\n";
echo " <br />\n";
echo " <label>Lage</label>\n";
echo " <label class=\"links\">".$nt['Lage']."</label>\n";
echo " <br />\n";
echo " <label>Bezug zum</label>\n";
echo " <label class=\"links\">".$nt['Bezug']."</label>\n";
echo " <br />\n";
echo " <label>Zimmer</label>\n";
echo " <label class=\"links\">".$nt['ZIMMERvon']." - ".$nt['ZIMMERbis']."</label>\n";
echo " <br />\n";
echo " <label>Wohn-/Nutzfläche</label>\n";
echo " <label class=\"links\">".$nt['QM']."</label>\n";
echo " <br />\n";
if ("Kauf" == $nt['V_TYP']) {
echo " <label>Kaufpreis</label>\n";
echo " <label class=\"links\">".$nt['Kpreis']."</label>\n";
echo " <br />\n";
} elseif ("Miete" == $nt['V_TYP']) {
echo " <label>Kaltmiete</label>\n";
echo " <label class=\"links\">".$nt['Mkalt']."</label>\n";
echo " <br />\n";
echo " <label>Warmmiete</label>\n";
echo " <label class=\"links\">".$nt['Mwarm']."</label>\n";
echo " <br />\n";
} elseif ("Miete oder Kauf" == $nt['V_TYP']) {
echo " <label>Kaltmiete</label>\n";
echo " <label class=\"links\">".$nt['Mkalt']."</label>\n";
echo " <br />\n";
echo " <label>Warmmiete</label>\n";
echo " <label class=\"links\">".$nt['Mwarm']."</label>\n";
echo " <br />\n";
echo " <label>Kaufpreis</label>\n";
echo " <label class=\"links\">".$nt['Kpreis']."</label>\n";
echo " <br />\n";
}
echo "</fieldset>\n";
echo "<fieldset>\n";
echo " <legend>Sonstiges</legend>\n";
echo " <p>".nl2br($nt['Sonstiges'])."</p>\n";
echo "</fieldset>\n";
echo "<fieldset>\n";
echo " <legend>Interne Infos</legend>\n";
echo " <p>".nl2br($nt['Intern'])."</p>\n";
echo "</fieldset>\n";
}
?>

View File

@@ -0,0 +1,20 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if (!isset($_POST['action'])) {
include "inhalte/personen/vv_over.php";
} else {
if (("Anlegen" == $_POST['action']) OR ("Bearbeiten" == $_POST['action'])) {
include "inhalte/personen/vv_edit.php";
} elseif ("Speichern" == $_POST['action']) {
include "inhalte/personen/vv_save.php";
} elseif ("Anzeigen" == $_POST['action']) {
include "inhalte/personen/vv_view.php";
} elseif (("Löschen" == $_POST['action']) OR ("Abbrechen" == $_POST['action'])) {
include "inhalte/personen/vv_del.php";
} else {
include "inhalte/personen/vv_over.php";
}
}
}
?>

View File

@@ -0,0 +1,16 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
$sql = 'DELETE FROM
vv
WHERE
ID = "'.$_POST['ID'].'";';
$result = $db->query($sql);
if ($result) {
unset($_POST);
include "inhalte/personen.php";
} else {
echo "Fehler beim löschen";
}
}
?>

View File

@@ -0,0 +1,118 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if ("Anlegen" == $_POST['action']) {
$sql = 'INSERT INTO vv (ID, TID) VALUES (NULL, "'.$_SESSION['TID'].'")';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht angelegt werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht angelegt werden: '.$stmt->error);
}
$sql = 'SELECT last_insert_id() AS last';
$result = $db->query($sql);
$nt = $result->fetch_assoc();
$id = $nt['last'];
echo "<h1>neuen Vermieter / Verkäufer anlegen</h1>\n";
} else {
echo "<h1>Vermieter / Verkäufer bearbeiten</h1>\n";
$id = $_POST['ID'];
}
$sql1 = "SELECT * FROM vv WHERE ID = \"".$id."\" ";
$result1 = $db->query($sql1);
$nt1 = $result1->fetch_assoc();
$sql2 = "SELECT Anrede FROM Anreden ORDER BY Anrede ASC";
$result2 = $db->query($sql2);
$sql6 = "SELECT ID, Vorname, Nachname FROM Team ORDER BY ID ASC";
$result6 = $db->query($sql6);
echo "<br />\n";
echo "<form action=\"index.php?section=Personen&t=vv\" method=\"post\">\n";
echo " <input type=\"hidden\" name=\"ID\" value=\"".$id."\" />\n";
if (isset($_POST['WID'])) {
echo " <input type=\"hidden\" name=\"WID\" value=\"".$_POST['WID']."\" />\n";
echo " <input type=\"hidden\" name=\"OTYP\" value=\"".$_POST['OTYP']."\" />\n";
}
if (in_array("Makler_Interessenten", $_SESSION['Rechte'])) {
echo " <label class=\"hinweis\">Teammitglied zuordnen</label>\n";
echo " <select name=\"TID\">\n";
while ($nt6 = $result6->fetch_assoc()) {
echo " <option value=\"".$nt6['ID']."\"";
if ($nt6['ID'] == $nt1['TID']) {
echo " selected=\"selected\"";
}
echo ">".$nt6['Nachname']." ".$nt6['Vorname']."</option>\n";
}
echo " </select>\n";
echo " <br />\n";
echo " &nbsp;<br />\n";
} else {
echo " <input type=\"hidden\" name=\"TID\" value=\"".$_SESSION['TID']."\" />\n";
}
echo "<fieldset>\n";
echo " <legend>Kontaktdaten</legend>\n";
echo " <label>Anrede</label>\n";
echo " <select name=\"Anrede\">\n";
while ($nt2 = $result2->fetch_assoc()) {
echo " <option value=\"".$nt2['Anrede']."\"";
if ($nt2['Anrede'] == $nt1['Anrede']) {
echo " selected=\"selected\"";
}
echo ">".$nt2['Anrede']."</option>\n";
}
echo " </select>\n";
echo " <br />\n";
echo " <label>Vorname</label>\n";
echo " <input type=\"text\" name=\"Vorname\" value=\"".$nt1['Vorname']."\" />\n";
echo " <br />\n";
echo " <label>Nachname</label>\n";
echo " <input type=\"text\" name=\"Nachname\" value=\"".$nt1['Nachname']."\" />\n";
echo " <br />\n";
echo " <label>Adresse</label>\n";
echo " <input type=\"text\" name=\"Adresse\" value=\"".$nt1['Adresse']."\" />\n";
echo " <br />\n";
echo " <label>PLZ</label>\n";
echo " <input type=\"text\" name=\"PLZ\" value=\"".$nt1['PLZ']."\" />\n";
echo " <br />\n";
echo " <label>Ort</label>\n";
echo " <input type=\"text\" name=\"Ort\" value=\"".$nt1['Ort']."\" />\n";
echo " <br />\n";
echo " <label>Telefon</label>\n";
echo " <input type=\"text\" name=\"Telefon\" value=\"".$nt1['Telefon']."\" />\n";
echo " <br />\n";
echo " <label>Fax</label>\n";
echo " <input type=\"text\" name=\"Fax\" value=\"".$nt1['Fax']."\" />\n";
echo " <br />\n";
echo " <label>Mobil</label>\n";
echo " <input type=\"text\" name=\"Mobil\" value=\"".$nt1['Mobil']."\" />\n";
echo " <br />\n";
echo " <label>Firma</label>\n";
echo " <input type=\"text\" name=\"Firma\" value=\"".$nt1['Firma']."\" />\n";
echo " <br />\n";
echo " <label>Email</label>\n";
echo " <input type=\"text\" name=\"Email\" value=\"".$nt1['Email']."\" />\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<fieldset>\n";
echo " <legend>Sonstiges</legend>\n";
echo " <br />\n";
echo " <textarea name=\"Sonstiges\">".$nt1['Sonstiges']."</textarea>\n";
echo " <br />\n";
echo "</fieldset>\n";
echo "<fieldset>\n";
echo " <legend>Intern</legend>\n";
echo " <br />\n";
echo " <textarea name=\"Intern\">".$nt1['Intern']."</textarea>\n";
echo "</fieldset>\n";
echo " <br />&nbsp;<br />\n";
echo " <input type=\"submit\" name=\"action\" value=\"Speichern\" />\n";
if ("Anlegen" == $_POST['action']) {
echo " <input type=\"submit\" name=\"action\" value=\"Abbrechen\" />\n";
} else {
echo " <input type=\"reset\" value=\"Rücksetzen\" />\n";
}
echo "</form>\n";
}
?>

View File

@@ -0,0 +1,22 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
if (in_array("Alle_Objekte", $_SESSION['Rechte'])) {
$abfrage = "";
} elseif (in_array("Eigene_Objekte", $_SESSION['Rechte'])) {
$abfrage = " AND TID = \"".$_SESSION['TID']."\" ";
} else {
die("Keine Zugriffsrechte");
}
$sql1 = 'SELECT ID, O_TYP, V_TYP, Kurz FROM objekte WHERE VVID = "'.$_POST['ID'].'" '.$abfrage.' ORDER BY O_TYP DESC, V_TYP DESC; ';
$result1 = $db->query($sql1);
echo "<fieldset>\n";
echo " <legend>Objekte des Vermieters / Verkäufers</legend>\n";
while ($nt1 = $result1->fetch_assoc()) {
echo " <label style=\"margin-top: 0px;\">".$nt1['O_TYP']." - ".$nt1['V_TYP']."</label>\n";
echo " <span style=\"color: #000000;\">".$nt1['ID']." ".$nt1['Kurz']."</span>\n";
echo " <br />\n";
}
echo "</fieldset>\n";
}
?>

View File

@@ -0,0 +1,78 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
echo "<h1>Vermieter / Verkäufer</h1>";
if (in_array("Eigene_Vermieter", $_SESSION['Rechte'])) {
$vv_abfrage = "WHERE TID = \"".$_SESSION['TID']."\" ";
}
if ("Suchen..." == $_POST['action']) {
if ("" == $vv_abfrage) {
if (("" == $_POST['Nachname']) AND ("" == $_POST['Telefon'])) {
} elseif (("" !== $_POST['Nachname']) AND ("" !== $_POST['Telefon'])) {
$vv_abfrage = "WHERE Nachname = \"".$_POST['Nachname']."\" AND Telefon LIKE \"%".$_POST['Telefon']."%\" ";
} elseif ("" == $_POST['Nachname']) {
$vv_abfrage = "WHERE Telefon LIKE \"%".$_POST['Telefon']."%\" ";
} else {
$vv_abfrage = "WHERE Nachname = \"".$_POST['Nachname']."\" ";
}
} else {
if (("" == $_POST['Nachname']) AND ("" == $_POST['Telefon'])) {
} elseif (("" !== $_POST['Nachname']) AND ("" !== $_POST['Telefon'])) {
$vv_abfrage .= "AND Nachname = \"".$_POST['Nachname']."\" AND Telefon LIKE \"%".$_POST['Telefon']."%\" ";
} elseif ("" == $_POST['Nachname']) {
$vv_abfrage .= "AND Telefon LIKE \"%".$_POST['Telefon']."%\" ";
} else {
$vv_abfrage .= "AND Nachname = \"".$_POST['Nachname']."\" ";
}
}
}
$sql = "SELECT ID, Vorname, Nachname FROM vv ".$vv_abfrage." ORDER BY Nachname ASC";
$result = $db->query($sql);
?>
<!-- Das Formular zur Einschränkung der Suche -->
<form action="index.php?section=Personen&t=vv" method="post">
<fieldset>
<legend>Ergebnisse einschränken</legend>
<label>Nachname</label>
<input type="text" name="Nachname" />
<img src="../img/help.gif" title="Bitte den Nachnamen exakt angeben" />
<br />
<label>Telefon</label>
<input type="text" name="Telefon" />
<img src="../img/help.gif" title="Ein Teil der Telefonnummer ist ausreichend" />
<br />&nbsp;<br />
<input type="submit" name="action" value="Suchen..." />
</fieldset>
</form>
<!-- Das Formular für eine neue Person -->
<form action="index.php?section=Personen&t=vv" method="post">
<fieldset>
<legend>neuen Vermieter / Verkäufer anlegen</legend>
<input type="submit" name="action" value="Anlegen" />
</fieldset>
</form>
<!-- Das Formular für eine bestehende Person -->
<form action="index.php?section=Personen&t=vv" method="post">
<fieldset>
<legend>bestehenden Vermieter / Verkäufer ...</legend>
<select name="ID">
<?php
while ($nt = $result->fetch_assoc()) {
echo " <option value=\"".$nt['ID']."\">".$nt['Nachname'].", ".$nt['Vorname']." - ".$nt['ID']."</option>\n";
}
?>
</select>
<br />&nbsp;<br />
<input type="submit" name="action" value="Anzeigen" />
<br />
<input type="submit" name="action" value="Bearbeiten" />
<br />
<input type="submit" name="action" value="Löschen" />
<br />
</fieldset>
</form>
<?php
}
?>

View File

@@ -0,0 +1,41 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
echo "<h1>Vermieter / Verkäufer speichern...</h1>\n";
$sql = 'UPDATE vv SET
TID = "'.$_POST['TID'].'",
Anrede = "'.$_POST['Anrede'].'",
Vorname = "'.$_POST['Vorname'].'",
Nachname = "'.$_POST['Nachname'].'",
Adresse = "'.$_POST['Adresse'].'",
PLZ = "'.$_POST['PLZ'].'",
Ort = "'.$_POST['Ort'].'",
Telefon = "'.$_POST['Telefon'].'",
Fax = "'.$_POST['Fax'].'",
Mobil = "'.$_POST['Mobil'].'",
Firma = "'.$_POST['Firma'].'",
Email = "'.$_POST['Email'].'",
Sonstiges = "'.$_POST['Sonstiges'].'",
Intern = "'.$_POST['Intern'].'"
WHERE ID = "'.$_POST['ID'].'";';
$stmt = $db->prepare($sql);
if (!$stmt) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmt->error);
}
echo "<p>Datensatz wurde gespeichert!</p>\n";
if (isset($_POST['WID'])) {
echo "<form action=\"index.php?section=Objekte&t=".$_POST['OTYP']."\" method=\"post\" />\n";
echo "<fieldset>\n";
echo " <legend>weiter mit der Bearbeitung des Objekts</legend>\n";
echo " <input type=\"hidden\" name=\"VVID\" value=\"".$_POST['ID']."\" />\n";
echo " <input type=\"hidden\" name=\"ID\" value=\"".$_POST['WID']."\" />\n";
echo " <input type=\"submit\" name=\"formaction\" value=\"Bearbeiten\" />\n";
echo "</fieldset>\n";
echo "</form>\n";
}
}
?>

View File

@@ -0,0 +1,59 @@
<?php
if (!isset($_SESSION['ID'])) {
} else {
$sql = 'SELECT * FROM vv WHERE ID = "'.$_POST['ID'].'";';
$result = $db->query($sql);
$nt = $result->fetch_assoc();
$sql2 = 'SELECT Vorname, Nachname FROM Team WHERE ID = "'.$nt['TID'].'";';
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
$sql3 = 'SELECT DATE_FORMAT(Datum, "%d.%m.%Y") AS Datum, DATE_FORMAT(Akt_Datum, "%d.%m.%Y") AS Akt_Datum FROM vv WHERE ID = "'.$_POST['ID'].'" ';
$result3 = $db->query($sql3);
$nt3 = $result3->fetch_assoc();
echo "<h1>".$nt['ID']." - ".$nt['Anrede']." ".$nt['Vorname']." ".$nt['Nachname']."</h1>\n";
echo "<p style=\"margin-left: 13px;\">\n";
echo " <label>Aufgenommen:</label>\n";
echo " <label class=\"links\">".$nt2['Vorname']." ".$nt2['Nachname'].", ".$nt3['Datum']."</label>\n";
echo " <label>Zuletzt bearbeitet:</label>\n";
echo " <label class=\"rechts\">".$nt3['Akt_Datum']."</label>\n";
echo "</p>\n";
echo "<fieldset>\n";
echo " <legend>Kontaktdaten</legend>\n";
echo " <label>Anrede</label>\n";
echo " <label class=\"links\">".$nt['Anrede']."</label>\n";
echo " <label>Telefon</label>\n";
echo " <label class=\"rechts\">".$nt['Telefon']."</label>\n";
echo " <br />\n";
echo " <label>Vorname</label>\n";
echo " <label class=\"links\">".$nt['Vorname']."</label>\n";
echo " <label>Fax</label>\n";
echo " <label class=\"rechts\">".$nt['Fax']."</label>\n";
echo " <br />\n";
echo " <label>Nachname</label>\n";
echo " <label class=\"links\">".$nt['Nachname']."</label>\n";
echo " <label>Mobil</label>\n";
echo " <label class=\"rechts\">".$nt['Mobil']."</label>\n";
echo " <br />\n";
echo " <label>Adresse</label>\n";
echo " <label class=\"links\">".$nt['Adresse']."</label>\n";
echo " <label>Firma</label>\n";
echo " <label class=\"rechts\">".$nt['Firma']."</label>\n";
echo " <br />\n";
echo " <label>PLZ / Ort</label>\n";
echo " <label class=\"links\">".$nt['PLZ']." ".$nt['Ort']."</label>\n";
echo " <br />\n";
echo " <label>Email</label>\n";
echo " <label class=\"links\">".$nt['Email']."</label>\n";
echo "</fieldset>\n";
echo "<fieldset>\n";
echo " <legend>Sonstiges</legend>\n";
echo " <p>".nl2br($nt['Sonstiges'])."</p>\n";
echo "</fieldset>\n";
echo "<fieldset>\n";
echo " <legend>Interne Infos</legend>\n";
echo " <p>".nl2br($nt['Intern'])."</p>\n";
echo "</fieldset>\n";
include "inhalte/personen/vv_obj.php";
}
?>

View File

@@ -0,0 +1,82 @@
<?php
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "' LIMIT 1;";
$result = $db->query ( $sql );
$nt = $result->fetch_assoc();
//Dateien löschen
chdir('temp');
$nodes = glob($_POST['ID'].'*');
foreach ($nodes as $node) {
if (is_file($node)) {
unlink($node);
}
}
chdir('../');
include "inhalte/portale/immon/wohn.php";
// Zipdatei erstellen
$zip = new ZipArchive();
chdir('temp');
$zipname = $_POST['ID'].'_'.IMMON_KD.'.zip';
if ($zip->open($zipname, ZIPARCHIVE::CREATE)!==TRUE) {
die("<h1>Zipdatei <" . $zipname . "> für ImmoNet kann nicht erstellt werden</h1>");
}
$nodes = glob($_POST['ID'].'*');
foreach ($nodes as $node) {
if (is_file($node)) {
$zip->addFile($node);
}
}
$zip->close();
echo "<p>Zip Archiv für ImmoNet erstellt!</p>";
/*
//FTP Upload
$ftp_id = ftp_connect('ftp.immonet.de');
$ftp_user = IMMON_ID;
$ftp_pass = IMMON_PASS;
if (!$ftp_id) {
die("<h1>FTP-Verbindung zu ImmoNet fehlgeschlagen</h1>");
}
$ftp_login_result = ftp_login($ftp_id, $ftp_user, $ftp_pass);
if (!$ftp_login_result) {
die("<h1>Login zum ImmoNet - Server fehlgeschlagen</h1>");
}
echo "<p>FTP-Verbindung wurde hergestellt!</p>";
$ftp_upload = ftp_put($ftp_id, $zipname, $zipname, FTP_BINARY);
if (!$ftp_upload) {
die("<h1>Upload von <" . $zipname . "> zu ImmoNet fehlgeschlagen");
}
echo "<p>Die Datei wurde hochgeladen</p>";
ftp_close($ftp_id);
*/
//Dateien löschen
/*
$nodes = glob($_POST['WID'].'*');
foreach ($nodes as $node) {
if (is_file($node)) {
unlink($node);
}
}
echo "<p>Temporäre Dateien gelöscht!</p>";
//Datenbank aktualisieren
if ('importieren' == $_POST['ImmoNet']) {
$sql3 = 'UPDATE objekte SET Net = 1 WHERE ID = "'.$_POST['ID'].'"';
} elseif ('loeschen' == $_POST['ImmoNet']) {
$sql3 = 'UPDATE objekte SET Net = 0 WHERE ID = "'.$_POST['ID'].'"';
}
if ('aktualisieren' != $_POST['ImmoNet']) {
$stmt = $db->prepare($sql3);
if (!$stmt) {
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Query konnte nicht ausgeführt werden: '.$stmt->error);
}
}
echo "<p>Datenbank wurde aktualisiert!</p>";
*/
?>

View File

@@ -0,0 +1,302 @@
<?php
$sql2 = 'SELECT * FROM objekte WHERE ID = "'.$_POST['ID'].'";';
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
$user = fnc_getUsernameById ( $nt2['TID'], 'portal' );
if ("" == $nt2['openimmoanid']) {
$micro = microtime(true);
preg_match('/(?P<time>\d+).(?P<micro>\d+)/', $micro, $zeit);
$openimmoanid = "RIST".date('YmdHis', $zeit['time']).substr($zeit['micro'], 0, 3).substr(md5($micro), 3, 10);
$sqls1 = 'UPDATE objekte SET openimmoanid = "'.$openimmoanid.'" WHERE ID = "'.$_POST['ID'].'";';
$stmts1 = $db->prepare($sqls1);
if (!$stmts1) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmts1->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmts1->error);
}
} else {
$openimmoanid = $nt2['openimmoanid'];
}
if ("importieren" == $_POST['ImmoNet']) {
$Importmodus = "NEW";
} elseif ("aktualisieren" == $_POST['ImmoNet']) {
$Importmodus = "CHANGE";
} elseif ("loeschen" == $_POST['ImmoNet']) {
$Importmodus = "DELETE";
}
$picpath = "../img/objekte/";
$Nutzart = '';
$Ausstattung = '';
if ( 'Etagenheizung' == $nt2['Heizart'] )
{
$Ausstattung .= " <heizungsart ETAGE=\"1\" />\n";
}
elseif ( 'Ofenheizung' == $nt2['Heizart'] )
{
$Ausstattung .= " <heizungsart OFEN=\"1\" />\n";
}
elseif ( 'Zentralheizung' == $nt2['Heizart'] )
{
$Ausstattung .= " <heizungsart ZENTRAL=\"1\" />\n";
}
if ( 'Öl' == $nt2['Befeuerung'] )
{
$Ausstattung .= " <befeuerung OEL=\"1\" />\n";
}
elseif ( 'Gas' == $nt2['Befeuerung'] )
{
$Ausstattung .= " <befeuerung GAS=\"1\" />\n";
}
elseif ( 'Solarheizung' == $nt2['Befeuerung'] )
{
$Ausstattung .= " <befeuerung SOLAR=\"1\" />\n";
}
elseif ( 'Strom' == $nt2['Befeuerung'] )
{
$Ausstattung .= " <befeuerung ELEKTRO=\"1\" />\n";
}
elseif ( 'Erdwärme' == $nt2['Befeuerung'] )
{
$Ausstattung .= " <befeuerung ERDWAERME=\"1\" />\n";
}
elseif ( 'Fernwärme' == $nt2['Befeuerung'] )
{
$Ausstattung .= " <heizungsart FERN=\"1\" />\n";
}
if ( '0' != $nt2['Garten'] )
{
$Ausstattung .= " <gartennutzung>1</gartennutzung>\n";
}
if ( '0' != $nt2['Barrierefrei'] )
{
$Ausstattung .= " <barrierefrei>1</barrierefrei>\n";
}
$Rendite = '';
if ('wohnen' == $nt2['KAT'])
{
if ('Wohnung' == $nt2['O_TYP']) {
$Objektart = "<wohnung ";
if ('Dachgeschoss' == $nt2['Art'] OR 'Erdgeschoss' == $nt2['Art'] OR 'Penthouse' == $nt2['Art'] OR 'Souterrain' == $nt2['Art'] )
{
$Objektart .= "wohnungtyp=\"" . strtoupper ( $nt2['Art'] ) . "\" ";
}
elseif ('Loft' == $nt2['O_TYP'] )
{
$Objektart .= "wohnungtyp=\"LOFT-STUDIO-ATELIER\" ";
}
elseif ('Etagenwohnung' == $nt2['O_TYP'] )
{
$Objektart .= "wohnungtyp=\"ETAGE\" ";
}
} elseif ('Haus' == $nt2['O_TYP']) {
$Objektart = "<haus ";
if ('Reihenhaus' == $nt2['Art'] OR 'Villa' == $nt2['Art'] OR 'Bauernhaus' == $nt2['Art'] OR 'Doppelhaushälfte' == $nt2['Art'] OR 'Einfamilienhaus' == $nt2['Art'] OR 'Zweifamilienhaus' == $nt2['Art'] OR 'Mehrfamilienhaus' == $nt2['Art'] )
{
$Objektart .= "haustyp=\"" . str_replace ('Ä', 'AE', strtoupper ( $nt2['Art'] ) ) . "\" ";
}
elseif ('Burg Schloss' == $nt2['O_TYP'] )
{
$Objektart .= "haustyp=\"SCHLOSS\" ";
}
elseif ('Reiheneckhaus' == $nt2['O_TYP'] )
{
$Objektart .= "haustyp=\"REIHENECK\" ";
}
elseif ('Reihenmittlehaus' == $nt2['O_TYP'] )
{
$Objektart .= "haustyp=\"REIHENMITTEL\" ";
}
}
$Nutzart .= " <nutzungsart WOHNEN=\"1\" GEWERBE=\"0\" ANLAGE=\"0\"/>\n";
}
elseif ( 'gewerbe' == $nt2['KAT'] )
{
if ('Büro' == $nt2['O_TYP'] OR 'Praxis' == $nt2['O_TYP']) {
$Objektart = "<buero_praxen ";
} elseif ('Einzelhandel' == $nt2['O_TYP']) {
$Objektart = "<einzelhandel ";
} elseif ('Gastronomie' == $nt2['O_TYP']) {
$Objektart = "<gastgewerbe ";
} elseif ('Produktionshalle' == $nt2['O_TYP']) {
$Objektart = "<hallen_lager_prod ";
}
$Nutzart .= " <nutzungsart WOHNEN=\"0\" GEWERBE=\"1\" ANLAGE=\"0\"/>\n";
}
elseif ( 'anlage' == $nt2['KAT'] )
{
$Objektart = "<zinshaus_renditeobjekt ";
if ('Mehrfamilienhaus' == $nt2['O_TYP']) {
$Objektart .= "zins_typ=\"MEHRFAMILIENHAUS\" ";
}
elseif ('Wohn / Geschäftshaus' == $nt2['O_TYP']) {
$Objektart .= "zins_typ=\"WOHN_UND_GESCHAEFTSHAUS\" ";
}
elseif ('Geschäftshaus' == $nt2['O_TYP']) {
$Objektart .= "zins_typ=\"GESCHAEFTSHAUS\" ";
}
elseif ('Bürogebäude' == $nt2['O_TYP']) {
$Objektart .= "zins_typ=\"BUEROGEBAEUDE\" ";
}
elseif ('Supermarkt' == $nt2['O_TYP']) {
$Objektart .= "zins_typ=\"SB_MAERKTE\" ";
}
elseif ('Einkaufszentrum' == $nt2['O_TYP']) {
$Objektart .= "zins_typ=\"EINKAUFSCENTREN\" ";
}
elseif ('Wohnanlage' == $nt2['O_TYP']) {
$Objektart .= "zins_typ=\"WOHNANLAGEN\" ";
}
elseif ('Industrieanwesen' == $nt2['O_TYP'] OR 'Halle / Lager' == $nt2['O_TYP']) {
$Objektart .= "zins_typ=\"INDUSTRIEANLAGEN\" ";
}
$Rendite = " <mieteinnahmen_ist>" . $nt2['MietEinnahmePaIst'] . "</mieteinnahmen_ist>\n";
$Rendite .= " <mieteinnahmen_soll>" . $nt2['MietEinnahmePaSoll'] . "</mieteinnahmen_soll>\n";
$Nutzart .= " <nutzungsart WOHNEN=\"0\" GEWERBE=\"0\" ANLAGE=\"1\"/>\n";
}
if ('Kauf' == $nt2['V_TYP']) {
$Vermarktungsart = "KAUF=\"1\" MIETE_PACHT=\"0\"";
$Preis = " <kaufpreis>".$nt2['Mkalt']."</kaufpreis>\n";
$Preis .= " <nebenkosten>".$nt2['NebenK']."</nebenkosten>\n";
$Preis .= " <aussen_courtage mit_mwst=\"1\">" . $nt2['Provision'] . "</aussen_courtage>\n";
$Preis .= $Rendite;
if ("0" != $nt2['StellK']) {
$Preis .= " <stp_freiplatz stellplatzkaufpreis=\"".$nt2['StellK']."\" />\n";
}
} elseif ('Miete' == $nt2['V_TYP']) {
$Vermarktungsart = "KAUF = \"0\" MIETE_PACHT=\"1\"";
$Preis = " <kaltmiete>".$nt2['Mkalt']."</kaltmiete>\n";
$Preis .= " <nebenkosten>".$nt2['NebenK']."</nebenkosten>\n";
$Preis .= " <aussen_courtage mit_mwst=\"1\">" . $nt2['Provision'] . "</aussen_courtage>\n";
if ("0" != $nt2['StellK']) {
$Preis .= " <stp_freiplatz stellplatzmiete=\"".$nt2['StellK']."\" />\n";
}
}
$Objektart .= "/>";
$Anhang = '';
$MmATitel = 'TWE-Immobilien';
$Anhang .= " <anhang location=\"INTERN\" gruppe=\"BILD\">\n";
$Anhang .= " <anhangtitel>".$MmATitel."</anhangtitel>\n";
$Anhang .= " <format>image/jpeg</format>\n";
$Anhang .= " <daten>\n";
$Anhang .= " <pfad>".$nt2['ID']."_0.jpg</pfad>\n";
$Anhang .= " </daten>\n";
$Anhang .= " </anhang>\n";
$source = $picpath."0_0.jpg";
$dest = "temp/".$nt2['ID']."_0.jpg";
copy($source, $dest);
for ($i=1; $i<10; $i++) {
if ((file_exists($picpath.$nt2['ID']."_".$i.".jpg"))){
if ('' == $nt2['Foto'.$i.'']) {
$MmATitel = 'Foto'.$i;
} else {
$MmATitel = $nt2['Foto'.$i.''];
}
$Anhang .= " <anhang location=\"INTERN\" gruppe=\"BILD\">\n";
$Anhang .= " <anhangtitel>".$MmATitel."</anhangtitel>\n";
$Anhang .= " <format>image/jpeg</format>\n";
$Anhang .= " <daten>\n";
$Anhang .= " <pfad>".$nt2['ID']."_".$i.".jpg</pfad>\n";
$Anhang .= " </daten>\n";
$Anhang .= " </anhang>\n";
$source = $picpath.$nt2['ID']."_".$i.".jpg";
$dest = "temp/".$nt2['ID']."_".$i.".jpg";
copy($source, $dest);
}
}
$path = "temp/".$_POST['ID']."_st_Z9B_imt.xml";
$datei = fopen($path, "a+");
$text = '<?xml version="1.0" encoding="ISO-8859-1"?>'."\n";
$text .= "<openimmo>\n";
$text .= " <uebertragung art=\"ONLINE\" umfang=\"TEIL\" version=\"1.2.2\" sendersoftware=\"R!ST\" senderversion=\"".SW_VERSION."\" techn_email=\"".KONT_MAIL."\" />\n";
$text .= " <anbieter>\n";
$text .= " <anbieternr>".IMMON_KD."</anbieternr>\n";
$text .= " <firma>".KONT_FIRMA."</firma>\n";
$text .= " <openimmo_anid>".$openimmoanid."</openimmo_anid>\n";
$text .= " <immobilie>\n";
$text .= " <objektkategorie>\n";
$text .= $Nutzart;
$text .= " <vermarktungsart ".$Vermarktungsart." />\n";
$text .= " <objektart>\n";
$text .= " ".$Objektart."\n";
$text .= " </objektart>\n";
$text .= " </objektkategorie>\n";
$text .= " <geo>\n";
$text .= " <plz>".$nt2['PLZ']."</plz>\n";
$text .= " <ort>".$nt2['Ort']."</ort>\n";
$text .= " <strasse>".$nt2['Strasse']."</strasse>\n";
$text .= " <hausnummer>".$nt2['StraNr']."</hausnummer>\n";
$text .= " <land iso_land=\"DEU\" />\n";
$text .= " </geo>\n";
$text .= " <kontaktperson>\n";
$text .= " <tel_zentrale>".KONT_TEL."</tel_zentrale>\n";
$text .= " <name>".$user[2]."</name>\n";
$text .= " <vorname>".$user[1]."</vorname>\n";
$text .= " <anrede>".$user[0]."</anrede>\n";
$text .= " <firma>".KONT_FIRMA."</firma>\n";
$text .= " <strasse>".KONT_STR."</strasse>\n";
$text .= " <hausnummer>".KONT_NR."</hausnummer>\n";
$text .= " <plz>".KONT_PLZ."</plz>\n";
$text .= " <ort>".KONT_ORT."</ort>\n";
$text .= " <land iso_land=\"DEU\" />\n";
$text .= " <url>".KONT_HOME."</url>\n";
$text .= " </kontaktperson>\n";
$text .= " <preise>\n";
$text .= $Preis;
$text .= " </preise>\n";
$text .= " <flaechen>\n";
$text .= " <wohnflaeche>".$nt2['WohnF']."</wohnflaeche>\n";
if ("Wohnung" != $nt2['Art']) {
$text .= " <grundstuecksflaeche>".$nt2['GrundF']."</grundstuecksflaeche>\n";
}
$text .= " <anzahl_zimmer>".$nt2['Zimmer']."</anzahl_zimmer>\n";
$text .= " </flaechen>\n";
$text .= " <ausstattung>\n";
$text .= $Ausstattung;
$text .= " </ausstattung>\n";
$text .= " <zustand_angaben>\n";
$text .= " <baujahr>".$nt2['Baujahr']."</baujahr>\n";
$text .= " </zustand_angaben>\n";
$text .= " <freitexte>\n";
$text .= " <objekttitel>".$nt2['Kurz']."</objekttitel>\n";
$text .= " <lage>".$nt2['Lage']."</lage>\n";
$text .= " <ausstatt_beschr>".$nt2['Ausstatt']."</ausstatt_beschr>\n";
$text .= " <objektbeschreibung>".$nt2['OBeschreibung']."</objektbeschreibung>\n";
$text .= " <sonstige_angaben>".$nt2['Sonstiges']."</sonstige_angaben>\n";
$text .= " </freitexte>\n";
if ("" != $Anhang) {
$text .= " <anhaenge>\n";
$text .= $Anhang;
$text .= " </anhaenge>\n";
}
$text .= " <verwaltung_objekt>\n";
$text .= " <objektadresse_freigeben>0</objektadresse_freigeben>\n";
$text .= " <verfuegbar_ab>".$nt2['Bezug']."</verfuegbar_ab>\n";
$text .= " </verwaltung_objekt>\n";
$text .= " <verwaltung_techn>\n";
$text .= " <objektnr_intern>".$nt2['ID']."</objektnr_intern>\n";
$text .= " <objektnr_extern>".$nt2['ID']."</objektnr_extern>\n";
$text .= " <aktion aktionart=\"" . $Importmodus . "\" />\n";
$text .= " <openimmo_obid>".$openimmoanid."</openimmo_obid>\n";
$text .= " <stand_vom>".date('Y-m-d')."</stand_vom>\n";
$text .= " </verwaltung_techn>\n";
$text .= " </immobilie>\n";
$text .= " </anbieter>\n";
$text .= "</openimmo>\n";
fwrite($datei, $text);
fclose($datei);
?>

View File

@@ -0,0 +1,81 @@
<?php
if (('wmiete' == $_POST['table']) OR ('wkauf' == $_POST['table'])) {
include "inhalte/portale/immop/wohn.php";
}
if (('gmiete' == $_POST['table']) OR ('gkauf' == $_POST['table'])) {
include "inhalte/portale/immop/gewerb.php";
}
// Zipdatei erstellen
$zip = new ZipArchive();
chdir('temp');
$zipname = $_POST['WID'].'_st_Z9B_imt.zip';
if ($zip->open($zipname, ZIPARCHIVE::CREATE)!==TRUE) {
exit("Zipdatei <$zipname> kann nicht erstellt werden\n");
}
$nodes = glob($_POST['WID'].'*');
foreach ($nodes as $node) {
if (is_file($node)) {
$zip->addFile($node);
}
}
$zip->close();
echo "<p>Zip Archiv erstellt!</p>";
//FTP Upload
$ftp_id = ftp_connect('www.lagler.de');
$ftp_user = IMMOP_ID;
$ftp_pass = IMMOP_PASS;
if (!$ftp_id) {
exit("FTP-Verbindung fehlgeschlagen");
}
$ftp_login_result = ftp_login($ftp_id, $ftp_user, $ftp_pass);
if (!$ftp_login_result) {
exit("Login zum FTP-Server fehlgeschlagen");
}
echo "<p>FTP-Verbindung wurde hergestellt!</p>";
$ftp_upload = ftp_put($ftp_id, $zipname, $zipname, FTP_BINARY);
if (!$ftp_upload) {
exit("Upload von ".$zipname." fehlgeschlagen");
}
echo "<p>Die Datei wurde hochgeladen</p>";
ftp_close($ftp_id);
//Dateien löschen
$nodes = glob($_POST['WID'].'*');
foreach ($nodes as $node) {
if (is_file($node)) {
unlink($node);
}
}
echo "<p>Temporäre Dateien gelöscht!</p>";
//Datenbank aktualisieren
if ('importieren' == $_POST['Modus']) {
$sql3 = 'UPDATE '.$_POST['table'].' SET ip = 1 WHERE WID = "'.$_POST['WID'].'"';
} elseif ('loeschen' == $_POST['Modus']) {
$sql3 = 'UPDATE '.$_POST['table'].' SET ip = 0 WHERE WID = "'.$_POST['WID'].'"';
}
if ('aktualisieren' != $_POST['Modus']) {
$stmt = $db->prepare($sql3);
if (!$stmt) {
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Query konnte nicht ausgeführt werden: '.$stmt->error);
}
}
echo "<p>Datenbank wurde aktualisiert!</p>";
?>
<form action="index.php?section=portal" method="post">
<label style="display:none">WID</label><input style="display:none" type="text" name="WID" <?php echo 'value="'.$nt1[WID].'"'; ?>/>
<?php
$table=$_POST['table'];
?>
<label style="display:none"></label><input style="display:none" type="text" name="table" <?php echo 'value="'.$table.'"'; ?> />
<input type="submit" name="formaction" value="Zu den Portalen" />
</form>

View File

@@ -0,0 +1,170 @@
<?php
$sql2 = 'SELECT * FROM '.$_POST['table'].' WHERE WID = "'.$_POST['WID'].'";';
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
if ("" == $nt2['openimmoanid']) {
$micro = microtime(get_as_float);
preg_match('/(?P<time>\d+).(?P<micro>\d+)/', $micro, $zeit);
$openimmoanid = "RIST".date('YmdHis', $zeit['time']).substr($zeit['micro'], 0, 3).substr(md5($micro), 3, 10);
$sqls1 = 'UPDATE '.$_POST['table'].' SET openimmoanid = "'.$openimmoanid.'" WHERE WID = "'.$_POST['WID'].'";';
$stmts1 = $db->prepare($sqls1);
if (!$stmts1) {
die ('Datensatz konnte nicht gespeichert werden: '.$db->error);
}
if (!$stmts1->execute()) {
die ('Datensatz konnte nicht gespeichert werden: '.$stmts1->error);
}
} else {
$openimmoanid = $nt2['openimmoanid'];
}
if ("importieren" == $_POST['Modus']) {
$Importmodus = "NEW";
} elseif ("aktualisieren" == $_POST['Modus']) {
$Importmodus = "CHANGE";
} elseif ("loeschen" == $_POST['Modus']) {
$Importmodus = "DELETE";
}
preg_match('/(?<Strasse>\D+) (?P<Nr>\d+)/', $nt2['Adresse'], $teil);
if ('wkauf' == $_POST['table']) {
$Vermarktungsart = "KAUF=\"1\" MIETE_PACHT=\"0\"";
$Preis = " <kaufpreis>".$nt2['Mkalt']."</kaufpreis>\n";
$Preis .= " <nebenkosten>".$nt2['NebenK']."</nebenkosten>\n";
if ("0" != $nt2['GaraK']) {
$Preis .= " <stp_garage stellplatzkaufpreis=\"".$nt2['GaraK']."\" />\n";
} elseif ("0" != $nt2['StellK']) {
$Preis .= " <stp_freiplatz stellplatzkaufpreis=\"".$nt2['StellK']."\" />\n";
}
$picpath = "../img/wkauf/".$_POST['WID']."/";
} elseif ('wmiete' == $_POST['table']) {
$Vermarktungsart = "KAUF = \"0\" MIETE_PACHT=\"1\"";
$Preis = " <kaltmiete>".$nt2['Mkalt']."</kaltmiete>\n";
$Preis .= " <nebenkosten>".$nt2['NebenK']."</nebenkosten>\n";
$Preis .= " <kaution>".$nt2['Kaution']."</kaution>\n";
if ("0" != $nt2['GaraK']) {
$Preis .= " <stp_garage stellplatzmiete=\"".$nt2['GaraK']."\" />\n";
} elseif ("0" != $nt2['StellK']) {
$Preis .= " <stp_freiplatz stellplatzmiete=\"".$nt2['StellK']."\" />\n";
}
$picpath = "../img/wmiete/".$_POST['WID']."/";
}
if ('Wohnung' == $nt2['Art']) {
$Objektart = "<wohnung />";
} elseif ('Haus' == $nt2['Art']) {
$Objektart = "<haus />";
}
for ($i=0; $i<10; $i++) {
if ((file_exists($picpath.$i.".jpg"))){
if ('' == $nt2['FotoB'.$i.'']) {
$MmATitel = 'Foto'.$i;
} else {
$MmATitel = $nt2['FotoB'.$i.''];
}
$Anhang .= " <anhang location=\"INTERN\" gruppe=\"BILD\">\n";
$Anhang .= " <anhangtitel>".$MmATitel."</anhangtitel>\n";
$Anhang .= " <format>image/jpeg</format>\n";
$Anhang .= " <daten>\n";
$Anhang .= " <pfad>".$_POST['WID']."_".$i.".jpg</pfad>\n";
$Anhang .= " </daten>\n";
$Anhang .= " </anhang>\n";
$source = $picpath.$i.".jpg";
$dest = "temp/".$_POST['WID']."_".$i.".jpg";
copy($source, $dest);
}
}
$path = "temp/".$_POST['WID']."_st_Z9B_imt.xml";
$datei = fopen($path, "a+");
$text = '<?xml version="1.0" encoding="ISO-8859-1"?>'."\n";
$text .= "<openimmo>\n";
$text .= " <uebertragung art=\"ONLINE\" umfang=\"TEIL\" modus=\"".$Importmodus."\" version=\"1.2.2\" sendersoftware=\"R!ST\" senderversion=\"".SW_VERSION."\" techn_email=\"".KONT_MAIL."\" />\n";
$text .= " <anbieter>\n";
$text .= " <anbieternr>".IMMOP_KD."</anbieternr>\n";
$text .= " <firma>".KONT_FIRMA."</firma>\n";
$text .= " <openimmo_anid>".$openimmoanid."</openimmo_anid>\n";
$text .= " <immobilie>\n";
$text .= " <objektkategorie>\n";
$text .= " <nutzungsart WOHNEN=\"1\" GEWERBE=\"0\" />\n";
$text .= " <vermarktungsart ".$Vermarktungsart." />\n";
$text .= " <objektart>\n";
$text .= " ".$Objektart."\n";
$text .= " </objektart>\n";
$text .= " </objektkategorie>\n";
$text .= " <geo>\n";
$text .= " <plz>".$nt2['PLZ']."</plz>\n";
$text .= " <ort>".$nt2['Ort']."</ort>\n";
$text .= " <strasse>".$teil['Strasse']."</strasse>\n";
$text .= " <hausnummer>".$teil['Nr']."</hausnummer>\n";
$text .= " <land iso_land=\"DEU\" />\n";
$text .= " </geo>\n";
$text .= " <kontaktperson>\n";
$text .= " <tel_zentrale>".KONT_TEL."</tel_zentrale>\n";
$text .= " <name>".KONT_NACH."</name>\n";
$text .= " <vorname>".KONT_VOR."</vorname>\n";
$text .= " <anrede>".KONT_ANR."</anrede>\n";
$text .= " <firma>".KONT_FIRMA."</firma>\n";
$text .= " <strasse>".KONT_STR."</strasse>\n";
$text .= " <hausnummer>".KONT_NR."</hausnummer>\n";
$text .= " <plz>".KONT_PLZ."</plz>\n";
$text .= " <ort>".KONT_ORT."</ort>\n";
$text .= " <land iso_land=\"DEU\" />\n";
$text .= " <url>".KONT_HOME."</url>\n";
$text .= " </kontaktperson>\n";
$text .= " <preise>\n";
$text .= $Preis;
$text .= " </preise>\n";
$text .= " <flaechen>\n";
$text .= " <wohnflaeche>".$nt2['WohnF']."</wohnflaeche>\n";
if ("Wohnung" != $nt2['Art']) {
$text .= " <grundstuecksflaeche>".$nt2['GrundF']."</grundstuecksflaeche>\n";
}
$text .= " <anzahl_zimmer>".$nt2['Zimmer']."</anzahl_zimmer>\n";
$text .= " </flaechen>\n";
$text .= " <zustand_angaben>\n";
$text .= " <baujahr>".$nt2['Baujahr']."</baujahr>\n";
$text .= " </zustand_angaben>\n";
$text .= " <freitexte>\n";
$text .= " <objekttitel>".$nt2['Kurz']."</objekttitel>\n";
$text .= " <ausstatt_beschr>".$nt2['Ausstatt']."</ausstatt_beschr>\n";
$text .= " <objektbeschreibung>".$nt2['Beschreibung']."</objektbeschreibung>\n";
$text .= " <sonstige_angaben>".$nt2['Sonst']."</sonstige_angaben>\n";
$text .= " </freitexte>\n";
if ("" != $Anhang) {
$text .= " <anhaenge>\n";
$text .= $Anhang;
$text .= " </anhaenge>\n";
}
$text .= " <verwaltung_objekt>\n";
$text .= " <objektadresse_freigeben>0</objektadresse_freigeben>\n";
$text .= " <verfuegbar_ab>".$nt2['Bezug']."</verfuegbar_ab>\n";
if ("0" != $nt2['EZahl']) {
$pers = $nt2['EZahl'] + $nt2['KZahl'];
$text .= " <max_personen>".$pers."</max_personen>\n";
}
if ("0" == $nt2['Raucher']) {
$text .= " <nichtraucher>1</nichtraucher>\n";
}
if ("1" == $nt2['Tiere']) {
$text .= " <haustiere>1</haustiere>\n";
}
$text .= " </verwaltung_objekt>\n";
$text .= " <verwaltung_techn>\n";
$text .= " <objektnr_intern>".$nt2['WID']."</objektnr_intern>\n";
$text .= " <objektnr_extern>".$nt2['WID']."</objektnr_extern>\n";
$text .= " <aktion />\n";
$text .= " <openimmo_obid>".$openimmoanid."</openimmo_obid>\n";
$text .= " <stand_vom>".date('Y-m-d')."</stand_vom>\n";
$text .= " </verwaltung_techn>\n";
$text .= " </immobilie>\n";
$text .= " </anbieter>\n";
$text .= "</openimmo>\n";
fwrite($datei, $text);
fclose($datei);
?>

View File

@@ -0,0 +1,89 @@
<?php
$sql = "SELECT * FROM objekte WHERE ID = '" . $_POST['ID'] . "' LIMIT 1;";
$result = $db->query ( $sql );
$nt = $result->fetch_assoc();
//Dateien löschen
chdir('temp');
$nodes = glob($_POST['ID'].'*');
foreach ($nodes as $node) {
if (is_file($node)) {
unlink($node);
}
}
chdir('../');
if ('wohnen' == $nt['KAT']) {
include "inhalte/portale/immos/wohn.php";
}
if ('gewerbe' == $nt['KAT'] ) {
include "inhalte/portale/immos/gewerb.php";
}
if ('anlage' == $nt['KAT']) {
include "inhalte/portale/immos/anlage.php";
}
// Zipdatei erstellen
chdir('temp');
$zip = new ZipArchive();
$zipname = $_POST['ID'].'_st_Z9B_imt.zip';
if ($zip->open($zipname, ZIPARCHIVE::CREATE)!==TRUE) {
die("<h1>Zipdatei <" . $zipname . "> für ImmoScout kann nicht erstellt werden</h1>");
}
$nodes = glob($_POST['ID'].'*');
foreach ($nodes as $node) {
if (is_file($node)) {
$zip->addFile($node);
}
}
$zip->close();
echo "<p>Zip Archiv erstellt!</p>";
/*
//FTP Upload
$ftp_id = ftp_connect('ftp.immobilienscout24.de');
$ftp_user = IMMOS_ID;
$ftp_pass = IMMOS_PASS;
if (!$ftp_id) {
die("<h1>FTP-Verbindung zu ImmoScout fehlgeschlagen</h1>");
}
$ftp_login_result = ftp_login($ftp_id, $ftp_user, $ftp_pass);
if (!$ftp_login_result) {
die("<h1>Login zum ImmoScout - Server fehlgeschlagen</h1>");
}
echo "<p>FTP-Verbindung wurde hergestellt!</p>";
$ftp_upload = ftp_put($ftp_id, $zipname, $zipname, FTP_BINARY);
if (!$ftp_upload) {
die("<h1>Upload von <" . $zipname . "> zu ImmoScout fehlgeschlagen");
}
echo "<p>Die Datei wurde hochgeladen</p>";
ftp_close($ftp_id);
*/
//Dateien löschen
$nodes = glob($_POST['ID'].'*');
foreach ($nodes as $node) {
if (is_file($node)) {
unlink($node);
}
}
echo "<p>Temporäre Dateien gelöscht!</p>";
//Datenbank aktualisieren
if ('importieren' == $_POST['ImmoScout']) {
$sql3 = 'UPDATE objekte SET Scout = 1 WHERE ID = "'.$_POST['ID'].'"';
} elseif ('loeschen' == $_POST['ImmoScout']) {
$sql3 = 'UPDATE objekte SET Scout = 0 WHERE ID = "'.$_POST['ID'].'"';
}
if ('aktualisieren' != $_POST['ImmoScout']) {
$stmt = $db->prepare($sql3);
if (!$stmt) {
die ('Es konnte kein SQL-Query vorbereitet werden: '.$db->error);
}
if (!$stmt->execute()) {
die ('Query konnte nicht ausgeführt werden: '.$stmt->error);
}
}
echo "<p>Datenbank wurde aktualisiert!</p>";
?>

View File

@@ -0,0 +1,248 @@
<?php
$sql2 = 'SELECT * FROM objekte WHERE ID = "'.$_POST['ID'].'";';
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
$user = fnc_getUsernameById ( $nt2['TID'], 'portal' );
$Importmodus = $_POST['ImmoScout'];
$stellplkosten = 0;
$picpath = '';
$Baujahr = '';
$Gesamtflaeche = '';
$Flaeche = '';
$Garten = '';
$HausT = '';
$Heizungsart = '';
$KategorieTyp = '';
$Nebenkosten = '';
$PreisParkflaeche = '';
$Einbaukueche = '';
$Keller = '';
$Befeuerungsart = '';
$Vermarktung = '';
$Waehrung = ' Waehrung="EUR"'."\n";
$VermietFlaeche = '';
if ( !empty ( $nt2['VermietbareFlaeche'] ) AND ( '0' != $nt2['VermietbareFlaeche'] ) )
{
$VermietFlaeche = ' VermietbareFlaeche="' . $nt2['VermietbareFlaeche'] . '"'."\n";
}
$MietpaIST = '';
if ( '0.00' != $nt2['MietEinnahmePaIst'] )
{
$MietpaIST = ' MietEinnahmePaIst="' . $nt2['MietEinnahmePaIst'] . '"'."\n";
}
$MietpaSOLL = '';
if ( '0.00' != $nt2['MietEinnahmePaSoll'] )
{
$MietpaSOLL = ' MietEinnahmePaSoll="' . $nt2['MietEinnahmePaSoll'] . '"'."\n";
}
$Modernisierung = '';
$Energieausweis = '';
$Provision = '';
$OBeschreib = '';
$Objektkategorie2 = ' Objektkategorie2="' . str_replace ( ' / ', '', str_replace ( 'ä', 'ae', str_replace ( 'ü', 'ue', $nt2['O_TYP'] ) ) ) . '"'."\n";
$Wege = '';
if ( !empty ( $nt2['Provision'] ) )
{
$Provision = ' Provision="' . $nt2['Provision'] . "\"\n";
}
if ( '1' == $nt2['ProvisionsPflichtig'] )
{
$Provision .= ' Provisionspflichtig="true"'."\n";
}
if ( !empty ( $nt2['ProvisionsHinweis'] ) )
{
$Provision .= ' Provisionshinweis="' . $nt2['ProvisionsHinweis'] . "\"\n";
}
if ( '0' != $nt2['FusswegOeNV'] )
{
$Wege .= ' FusswegOeNV="' . $nt2['FusswegOeNV'] . '"'."\n";
}
if ( '0' != $nt2['FahrBHF'] )
{
$Wege .= ' FahrzeitBHf="' . $nt2['FahrBHF'] . '"'."\n";
}
if ( '0' != $nt2['FahrBAB'] )
{
$Wege .= ' FahrzeitBAB="' . $nt2['FahrBAB'] . '"'."\n";
}
if ( '0' != $nt2['Fahrflug'] )
{
$Wege .= ' FahrzeitFlughafen="' . $nt2['Fahrflug'] . '"'."\n";
}
$Adresse = ' <Adresse '."\n";
if ( !empty ( $nt2['Strasse'] ) )
{
$Adresse .= ' Strasse="'.$nt2['Strasse'].'" '."\n";
}
if ( !empty ( $nt2['StraNr'] ) )
{
$Adresse .= ' Hausnummer="'.$nt2['StraNr'].'" '."\n";
}
$Adresse .= ' Ort="'.$nt2['Ort'].'" '."\n";
$Adresse .= ' Postleitzahl="'.$nt2['PLZ'].'" '."\n";
$Adresse .= ' Laenderkennzeichen="DEU"'."\n";
$Adresse .= ' />'."\n";
$Kontaktperson = " <Kontaktperson \n";
$Kontaktperson .= " Anrede=\"". $user[0] ."\" \n";
$Kontaktperson .= " Vorname=\"".$user[1]."\" \n";
$Kontaktperson .= " Nachname=\"".$user[2]."\" \n";
$Kontaktperson .= " Telefon=\"".KONT_TEL."\" \n";
$Kontaktperson .= " Homepage=\"".KONT_HOME."\" \n";
$Kontaktperson .= " EMail=\"".KONT_MAIL."\" \n";
$Kontaktperson .= " />\n";
if ( 'keine Angabe' != $nt2['EnerTyp'] )
{
$Energieausweis = ' <Energieausweis '."\n";
$Energieausweis .= ' Energieausweistyp="'.$nt2['EnerTyp'].'" '."\n";
$Energieausweis .= ' Energieverbrauchskennwert="'.$nt2['EnerVKW'].'" '."\n";
if ( $nt2['EnerWWEnt'] )
{
$Energieausweis .= ' WarmwasserEnthalten="true"'."\n";
}
$Energieausweis .= ' />'."\n";
}
if (0 != (int)$nt2['Baujahr']) {
$Baujahr = ' Baujahr="'.$nt2['Baujahr'].'"'."\n";
}
if ('' != $nt2['OBeschreibung']) {
$OBeschreib = ' <Objektbeschreibung>'."\n";
$OBeschreib .= ' '.substr($nt2['OBeschreibung'],0,2000)."\n";
$OBeschreib .= ' </Objektbeschreibung>'."\n";
}
if ('' != $nt2['Ausstatt']) {
$Ausstattung = ' <Ausstattung>'."\n";
$Ausstattung .= ' '.substr($nt2['Ausstatt'],0,2000)."\n";
$Ausstattung .= ' </Ausstattung>'."\n";
}
if ('' != $nt2['Sonstiges']) {
$Sonst = ' <SonstigeAngaben>'."\n";
$Sonst .= ' '.substr($nt2['Sonstiges'],0,2000)."\n";
$Sonst .= ' </SonstigeAngaben>'."\n";
}
$Objekt = "Anlageobjekt";
if (0 != (int)$nt2['GrundF']) {
$Gesamtflaeche = ' Gesamtflaeche="'.$nt2['GrundF'].'"'."\n";
}
// Berechnung PreisParkflaeche
if (0 != (int)$nt2['GaraK']) {
$stellplkosten = (int)$nt2['GaraK'];
}
if (0 != (int)$nt2['GaraK']) {
$stellplkosten = $stellplkosten + (int)$nt2['StellK'];
}
if (0 != $stellplkosten) {
$PreisParkflaeche = ' PeisParkflaeche="'.$stellplkosten.'" ';
}
if (0 != (int)$nt2['NebenK']) {
$Nebenkosten = ' Nebenkosten="'.$nt2['NebenK'].'" ';
}
if ( !empty ( $nt2['Modern'] ) AND '0' != $nt2['Modern'] )
{
$Modernisierung = ' JahrLetzteModernisierung="' . $nt2['Modern'] . '"'."\n";
}
$Kaufpreis = ' Kaufpreis="' . $nt2['Mkalt'] . '"'."\n";
$picpath = "../img/objekte/";
$Heizungsart = ' Heizungsart="' . str_replace ( ' ', '', $nt2['Heizart'] ) . '"'."\n";
$BefeuerungsArt = " <BefeuerungsArt>\n";
$BefeuerungsArt .= ' <' . str_replace ( ' ', '', str_replace ( 'ä', 'ae', str_replace ( 'Ö', 'Oe', $nt2['Befeuerung'] ) ) ) . '/>' . "\n";
$BefeuerungsArt .= " </BefeuerungsArt>\n";
$MmATitel = 'TWE-Immobilien';
$MultimediaAnhang = ' <MultimediaAnhang '."\n";
$MultimediaAnhang .= ' AnhangArt="bild" '."\n";
$MultimediaAnhang .= ' Titel="'.$MmATitel.'" '."\n";
$MultimediaAnhang .= ' Dateityp=".JPG"'."\n";
$MultimediaAnhang .= ' Dateiname="'.$nt2['ID'].'_0.jpg" '."\n";
$MultimediaAnhang .= ' />'."\n";
$source = $picpath."0_0.jpg";
$dest = "temp/".$nt2['ID']."_0.jpg";
copy($source, $dest);
for ($i=1; $i<10; $i++) {
if ((file_exists($picpath.$nt2['ID']."_".$i.".jpg"))){
if ('' == $nt2['Foto'.$i.'']) {
$MmATitel = 'Foto'.$i;
} else {
$MmATitel = $nt2['Foto'.$i.''];
}
$MultimediaAnhang .= ' <MultimediaAnhang '."\n";
$MultimediaAnhang .= ' AnhangArt="bild" '."\n";
$MultimediaAnhang .= ' Titel="'.$MmATitel.'" '."\n";
$MultimediaAnhang .= ' Dateityp=".JPG"'."\n";
$MultimediaAnhang .= ' Dateiname="'.$nt2['ID']."_".$i.'.jpg" '."\n";
$MultimediaAnhang .= ' />'."\n";
$source = $picpath.$nt2['ID']."_".$i.".jpg";
$dest = "temp/".$nt2['ID']."_".$i.".jpg";
copy($source, $dest);
}
}
$path = "temp/".$nt2['ID']."_st_Z9B_imt.xml";
$datei = fopen($path, "a+");
$text = '<?xml version="1.0" encoding="UTF-8"?>'."\n";
$text .= '<IS24ImmobilienTransfer'."\n";
$text .= ' xmlns="http://www.immobilienscout24.de/immobilientransfer"'."\n";
$text .= ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'."\n";
$text .= ' xsi:schemaLocation="http://www.immobilienscout24.de/immobilientransfer is24immotransfer.xsd"'."\n";
$text .= ' ErstellerSoftware="R!ST"'."\n";
$text .= ' ErstellerSoftwareVersion="'.SW_VERSION.'"'."\n";
$text .= ' EmailBeiFehler="'.MAIL_ERROR.'"'."\n";
$text .= '>'."\n";
$text .= ' <Anbieter ScoutKundenID="'.IMMOS_ID.'">'."\n";
$text .= ' <'.$Objekt."\n";
$text .= ' AnbieterObjektID="'.$nt2['ID'].'"'."\n";
$text .= ' Ueberschrift="'.$nt2['Kurz'].'"'."\n";
$text .= ' Importmodus="'.$Importmodus.'"'."\n";
$text .= $Gesamtflaeche;
$text .= $Flaeche;
$text .= $KategorieTyp;
$text .= $VermietFlaeche;
$text .= $MietpaIST;
$text .= $MietpaSOLL;
$text .= ' Adressdruck="false"'."\n";
$text .= $Baujahr;
$text .= $Objektkategorie2;
$text .= $Einbaukueche;
$text .= $Heizungsart;
$text .= $Keller;
$text .= $Provision;
$text .= $Kaufpreis;
$text .= $Wege;
$text .= $Waehrung;
$text .= ' >'."\n";
$text .= $Adresse;
$text .= $Kontaktperson;
$text .= $OBeschreib;
$text .= $Ausstattung;
$text .= $Sonst;
$text .= $MultimediaAnhang;
$text .= $BefeuerungsArt;
$text .= $Energieausweis;
$text .= ' </'.$Objekt.'>'."\n";
$text .= ' </Anbieter>'."\n";
$text .= '</IS24ImmobilienTransfer>';
$text = utf8_encode($text);
fwrite($datei, $text);
fclose($datei);
?>

View File

@@ -0,0 +1,309 @@
<?php
$sql2 = 'SELECT * FROM objekte WHERE ID = "'.$_POST['ID'].'";';
$result2 = $db->query($sql2);
$nt2 = $result2->fetch_assoc();
$user = fnc_getUsernameById ( $nt2['TID'], 'portal' );
$Importmodus = $_POST['ImmoScout'];
$stellplkosten = 0;
$picpath = '';
$Baujahr = '';
$Gesamtflaeche = '';
$Garten = '';
$HausT = '';
$Heizungsart = '';
$KategorieTyp = '';
$Nebenkosten = '';
$PreisParkflaeche = '';
$PreisProParkflaeche = '';
$Einbaukueche = '';
$Keller = '';
$Befeuerungsart = '';
$Vermarktung = '';
$Waehrung = ' Waehrung="EUR"'."\n";
$Modernisierung = '';
$Energieausweis = '';
$Provision = '';
$Wege = '';
$OBeschreib = '';
if ( !empty ( $nt2['Provision'] ) )
{
$Provision = ' Provision="' . $nt2['Provision'] . "\"\n";
}
if ( '1' == $nt2['ProvisionsPflichtig'] )
{
$Provision .= ' Provisionspflichtig="true"'."\n";
}
if ( !empty ( $nt2['ProvisionsHinweis'] ) )
{
$Provision .= ' Provisionshinweis="' . $nt2['ProvisionsHinweis'] . "\"\n";
}
if ( '0' != $nt2['FusswegOeNV'] )
{
$Wege .= ' FusswegOeNV="' . $nt2['FusswegOeNV'] . '"'."\n";
}
if ( '0' != $nt2['FahrBHF'] )
{
$Wege .= ' FahrzeitBHf="' . $nt2['FahrBHF'] . '"'."\n";
}
if ( '0' != $nt2['FahrBAB'] )
{
$Wege .= ' FahrzeitBAB="' . $nt2['FahrBAB'] . '"'."\n";
}
if ( '0' != $nt2['Fahrflug'] )
{
$Wege .= ' FahrzeitFlughafen="' . $nt2['Fahrflug'] . '"'."\n";
}
$Adresse = ' <Adresse '."\n";
if ( !empty ( $nt2['Strasse'] ) )
{
$Adresse .= ' Strasse="'.$nt2['Strasse'].'" '."\n";
}
if ( !empty ( $nt2['StraNr'] ) )
{
$Adresse .= ' Hausnummer="'.$nt2['StraNr'].'" '."\n";
}
$Adresse .= ' Ort="'.$nt2['Ort'].'" '."\n";
$Adresse .= ' Postleitzahl="'.$nt2['PLZ'].'" '."\n";
$Adresse .= ' Laenderkennzeichen="DEU"'."\n";
$Adresse .= ' />'."\n";
$Kontaktperson = " <Kontaktperson \n";
$Kontaktperson .= " Anrede=\"". $user[0] ."\" \n";
$Kontaktperson .= " Vorname=\"".$user[1]."\" \n";
$Kontaktperson .= " Nachname=\"".$user[2]."\" \n";
$Kontaktperson .= " Telefon=\"".KONT_TEL."\" \n";
$Kontaktperson .= " Homepage=\"".KONT_HOME."\" \n";
$Kontaktperson .= " EMail=\"".KONT_MAIL."\" \n";
$Kontaktperson .= " />\n";
if ( 'keine Angabe' != $nt2['EnerTyp'] )
{
$Energieausweis = ' <Energieausweis '."\n";
$Energieausweis .= ' Energieausweistyp="'.$nt2['EnerTyp'].'" '."\n";
$Energieausweis .= ' Energieverbrauchskennwert="'.$nt2['EnerVKW'].'" '."\n";
if ( $nt2['EnerWWEnt'] )
{
$Energieausweis .= ' WarmwasserEnthalten="true"'."\n";
}
$Energieausweis .= ' />'."\n";
}
if (0 != (int)$nt2['Baujahr']) {
$Baujahr = ' Baujahr="'.$nt2['Baujahr'].'"'."\n";
}
if ('' != $nt2['OBeschreibung']) {
$OBeschreib = ' <Objektbeschreibung>'."\n";
$OBeschreib .= ' '.substr($nt2['OBeschreibung'],0,2000)."\n";
$OBeschreib .= ' </Objektbeschreibung>'."\n";
}
if ('' != $nt2['Ausstatt']) {
$Ausstattung = ' <Ausstattung>'."\n";
$Ausstattung .= ' '.substr($nt2['Ausstatt'],0,2000)."\n";
$Ausstattung .= ' </Ausstattung>'."\n";
}
if ('' != $nt2['Sonstiges']) {
$Sonst = ' <SonstigeAngaben>'."\n";
$Sonst .= ' '.substr($nt2['Sonstiges'],0,2000)."\n";
$Sonst .= ' </SonstigeAngaben>'."\n";
}
if (('Büro' == $nt2['O_TYP']) OR ('Praxis' == $nt2['O_TYP'])) {
$Objekt = "BueroPraxis";
$Flaeche = ' BueroPraxisFlaeche="'.$nt2['WohnF'].'"'."\n";
} elseif ('Einzelhandel' == $nt2['O_TYP']) {
$Objekt = "Einzelhandel";
$Flaeche = ' Verkaufsflaeche="'.$nt2['WohnF'].'"'."\n";
} elseif (('Lagerhalle' == $nt2['O_TYP']) OR ('Produktionshalle' == $nt2['O_TYP'])) {
$Objekt = "HalleProduktion";
$Flaeche = ' LagerProduktionsFlaeche="'.$nt2['WohnF'].'"'."\n";
} elseif ('Gastronomie' == $nt2['O_TYP']) {
$Objekt = "Gastronomie";
if ( $nt2['WohnF'] != 0 )
{
$Flaeche = ' GastraumFlaeche="'.$nt2['WohnF'].'"'."\n";
}
else
{
$Flaeche = ' GastraumFlaeche="'.$nt2['GrundF'].'"'."\n";
}
$KategorieTyp = " Objektkategorie2=\"";
if (eregi('Hotel', $nt2['Beschreibung'])) {
$KategorieTyp .= "Hotel";
} elseif (eregi('Bar', $nt2['Beschreibung'])) {
$KategorieTyp .= "Barbetrieb";
} elseif (eregi('Gast', $nt2['Beschreibung'])) {
$KategorieTyp .= "Gaststaette";
} elseif (eregi('Pension', $nt2['Beschreibung'])) {
$KategorieTyp .= "Pension";
} elseif (eregi('Restau', $nt2['Beschreibung'])) {
$KategorieTyp .= "Restaurant";
} elseif (eregi('Disko', $nt2['Beschreibung'])) {
$KategorieTyp .= "Diskothek";
} else {
$KategorieTyp .= "Caffee";
}
$KategorieTyp .= "\"\n";
} else {
$Objekt = "SonstigeGewerbe";
$Flaeche = ' Hauptflaeche="'.$nt2['WohnF'].'"'."\n";
$KategorieTyp = " Objektkategorie2=\"";
$KategorieTyp .= "Gewerbeflaeche";
$KategorieTyp .= "\"\n";
}
if (0 != (int)$nt2['GrundF']) {
$Gesamtflaeche = ' Gesamtflaeche="'.$nt2['GrundF'].'"'."\n";
}
// Berechnung PreisParkflaeche
if (0 != (int)$nt2['GaraK']) {
$stellplkosten = (int)$nt2['GaraK'];
}
if (0 != (int)$nt2['GaraK']) {
$stellplkosten = $stellplkosten + (int)$nt2['StellK'];
}
if (0 != $stellplkosten) {
$PreisParkflaeche = ' PreisParkflaeche="'.$stellplkosten.'" ';
}
if (0 != (int)$nt2['NebenK']) {
$Nebenkosten = ' Nebenkosten="'.$nt2['NebenK'].'" ';
}
if ( ( $nt2['O_TYP'] == 'Gastronomie' OR $nt2['O_TYP'] == 'SonstigeGewerbe' ) AND 0 != $stellplkosten )
{
$PreisProParkflaeche = ' PreisProParkflaeche="' . (int)( $stellplkosten / $nt2['AnzGarStell'] ) . '" ';
}
$Vermarktung = ' <Vermarktung';
if ( $nt2['O_TYP'] != 'Gastronomie' AND $nt2['O_TYP'] != 'SonstigeGewerbe' )
{
$Vermarktung .= $PreisParkflaeche;
}
$Vermarktung .= $Nebenkosten;
if ( $nt2['O_TYP'] == 'Gastronomie' OR $nt2['O_TYP'] == 'SonstigeGewerbe' )
{
$Vermarktung .= $PreisProParkflaeche;
$Vermarktung .= ' Preis="' . $nt2['Mkalt'] . '" ';
}
if ('Miete' == $nt2['V_TYP']) {
$Vermarktung .= ">\n";
$Vermarktung .= " <Miete";
if ( $nt2['O_TYP'] != 'Gastronomie' AND $nt2['O_TYP'] != 'SonstigeGewerbe' )
{
$Vermarktung .= ' Kaltmiete="' . $nt2['Mkalt'] . '"';
}
if (0 != (int)$nt2['Kaution']) {
$Vermarktung .= ' Kaution="'.$nt2['Kaution'].'"';
}
$Vermarktung .= '/>'."\n";
$picpath = "../img/objekte/";
}
if ( !empty ( $nt2['Modern'] ) AND '0' != $nt2['Modern'] )
{
$Modernisierung = ' JahrLetzteModernisierung="' . $nt2['Modern'] . '"'."\n";
}
if ('Kauf' == $nt2['V_TYP']) {
$Vermarktung .= ">\n";
$Vermarktung .= " <Kauf";
if ( $nt2['O_TYP'] != 'Gastronomie' AND $nt2['O_TYP'] != 'SonstigeGewerbe' )
{
$Vermarktung .= ' Preis="'.$nt2['Mkalt'].'"';
}
$Vermarktung .= '/>'."\n";
$picpath = "../img/objekte/";
}
$Vermarktung .= ' </Vermarktung>'."\n";
$Heizungsart = ' Heizungsart="' . str_replace ( ' ', '', $nt2['Heizart'] ) . '"'."\n";
$BefeuerungsArt = " <BefeuerungsArt>\n";
$BefeuerungsArt .= ' <' . str_replace ( ' ', '', str_replace ( 'ä', 'ae', str_replace ( 'Ö', 'Oe', $nt2['befeuerung'] ) ) ) . '/>' . "\n";
$BefeuerungsArt .= " </BefeuerungsArt>\n";
$MmATitel = 'Immobilien Burkhardt';
$MultimediaAnhang = ' <MultimediaAnhang '."\n";
$MultimediaAnhang .= ' AnhangArt="bild" '."\n";
$MultimediaAnhang .= ' Titel="'.$MmATitel.'" '."\n";
$MultimediaAnhang .= ' Dateityp=".JPG"'."\n";
$MultimediaAnhang .= ' Dateiname="'.$nt2['ID'].'_0.jpg" '."\n";
$MultimediaAnhang .= ' />'."\n";
$source = $picpath."0_0.jpg";
$dest = "temp/".$nt2['ID']."_0.jpg";
copy($source, $dest);
for ($i=1; $i<10; $i++) {
if ((file_exists($picpath.$nt2['ID']."_".$i.".jpg"))){
if ('' == $nt2['Foto'.$i.'']) {
$MmATitel = 'Foto'.$i;
} else {
$MmATitel = $nt2['Foto'.$i.''];
}
$MultimediaAnhang .= ' <MultimediaAnhang '."\n";
$MultimediaAnhang .= ' AnhangArt="bild" '."\n";
$MultimediaAnhang .= ' Titel="'.$MmATitel.'" '."\n";
$MultimediaAnhang .= ' Dateityp=".JPG"'."\n";
$MultimediaAnhang .= ' Dateiname="'.$nt2['ID']."_".$i.'.jpg" '."\n";
$MultimediaAnhang .= ' />'."\n";
$source = $picpath.$nt2['ID']."_".$i.".jpg";
$dest = "temp/".$nt2['ID']."_".$i.".jpg";
copy($source, $dest);
}
}
$path = "temp/".$nt2['ID']."_st_Z9B_imt.xml";
$datei = fopen($path, "a+");
$text = '<?xml version="1.0" encoding="UTF-8"?>'."\n";
$text .= '<IS24ImmobilienTransfer'."\n";
$text .= ' xmlns="http://www.immobilienscout24.de/immobilientransfer"'."\n";
$text .= ' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'."\n";
$text .= ' xsi:schemaLocation="http://www.immobilienscout24.de/immobilientransfer is24immotransfer.xsd"'."\n";
$text .= ' ErstellerSoftware="R!ST"'."\n";
$text .= ' ErstellerSoftwareVersion="'.SW_VERSION.'"'."\n";
$text .= ' EmailBeiFehler="'.MAIL_ERROR.'"'."\n";
$text .= '>'."\n";
$text .= ' <Anbieter ScoutKundenID="'.IMMOS_ID.'">'."\n";
$text .= ' <'.$Objekt."\n";
$text .= ' AnbieterObjektID="'.$nt2['ID'].'"'."\n";
$text .= ' Ueberschrift="'.$nt2['Kurz'].'"'."\n";
$text .= ' Importmodus="'.$Importmodus.'"'."\n";
$text .= $Gesamtflaeche;
$text .= $Flaeche;
$text .= $KategorieTyp;
$text .= ' Adressdruck="false"'."\n";
$text .= $Baujahr;
$text .= $Einbaukueche;
$text .= $Heizungsart;
$text .= $Keller;
$text .= $Provision;
$text .= $Wege;
$text .= $Waehrung;
$text .= ' >'."\n";
$text .= $Adresse;
$text .= $Kontaktperson;
$text .= $OBeschreib;
$text .= $Ausstattung;
$text .= $Sonst;
$text .= $MultimediaAnhang;
$text .= $BefeuerungsArt;
$text .= $Energieausweis;
$text .= $Vermarktung;
$text .= ' </'.$Objekt.'>'."\n";
$text .= ' </Anbieter>'."\n";
$text .= '</IS24ImmobilienTransfer>';
$text = utf8_encode($text);
fwrite($datei, $text);
fclose($datei);
?>

Some files were not shown because too many files have changed in this diff Show More