#1 : <?php #2 : $categories = $arr['categories']; #3 : $categories = array_filter($categories, function($element) { #4 : return $element != ''; #5 : }); #6 : $orderIds = explode(',', $arr['order']); #7 : #8 : $personId = $arr['personId']; #9 : #10 : if($personId != 0) { #11 : try{ #12 : $person = new ContactPerson_Person(); #13 : $person->find($personId); #14 : #15 : $orderedPersons = array( #16 : $personId => $person #17 : ); #18 : }catch(Exception $e) { #19 : $personId = 0; #20 : } #21 : } #22 : #23 : if($personId == 0 && count($categories) > 0){ #24 : $cpc = new ContactPerson_Person(); #25 : $persons = $cpc->getMapper()->fetchBy(array( #26 : 'categoryId IN(?)' => implode(',', $categories) #27 : )); #28 : #29 : $orderedPersons = ContactPerson_Person::order($orderIds,$persons); #30 : } #31 : #32 : $counter = 1; #33 : #34 : if ($arr['layout'] == 'default') { #35 : foreach($orderedPersons as $person) { #36 : #37 : $positionId = array_shift($person->getPositions())->getId(); #38 : #39 : $imageset = $person->getImage(); #40 : /* @var $imageset Media_Item */ #41 : $descrset = $person->getDescription($positionId); #42 : #43 : if($arr['showimage'] && !empty($imageset) && intval($arr['showqrcode']) == 1) { #44 : #45 : $class_image = 'col-xs-12'; #46 : $class_name = 'col-md-4 col-xs-12'; #47 : $class_contact = 'col-md-4 col-xs-12'; #48 : $class_qr = 'col-md-4 col-xs-12'; #49 : #50 : $class_image_container = 'col-md-4'; #51 : $class_data_container = 'col-md-8'; #52 : #53 : $imageSize = $imageset->getMediaSize($arr['imagesize']); #54 : } elseif($arr['showimage'] && !empty($imageset) && intval($arr['showqrcode']) == 0) { #55 : #56 : $class_image = 'col-xs-12'; #57 : $class_name = 'col-md-6 col-xs-12'; #58 : $class_contact = 'col-md-6 col-xs-12'; #59 : $class_qr = ''; #60 : #61 : $class_image_container = 'col-md-4 col-sm-6 col-xs-12'; #62 : $class_data_container = 'col-md-8 col-sm-6 col-xs-12'; #63 : #64 : $imageSize = getimagesize($imageset); #65 : } elseif($arr['showimage'] && empty($imageset) && intval($arr['showqrcode']) == 1) { #66 : #67 : $class_image = ''; #68 : $class_name = 'col-md-4 col-xs-12'; #69 : $class_contact = 'col-md-4 col-xs-12'; #70 : $class_qr = 'col-md-4 col-xs-12'; #71 : #72 : $class_image_container = ''; #73 : $class_data_container = 'col-md-12'; #74 : #75 : $imageSize = false; #76 : } elseif((!$arr['showimage'] || empty($imageset)) && intval($arr['showqrcode']) == 0) { #77 : #78 : $class_image = ''; #79 : $class_name = 'col-md-6'; #80 : $class_contact = 'col-md-6'; #81 : $class_qr = ''; #82 : #83 : $class_image_container = ''; #84 : $class_data_container = 'col-md-12'; #85 : #86 : $imageSize = false; #87 : } #88 : ?> #89 : <div class="table row"> #90 : <div class="personal-content row table-row" <?php if($counter == 1) { echo 'style="margin-top: 0;"'; } ?>> #91 : #92 : <?php if($arr['showimage'] && $imageset != "") { ?> #93 : <div class="<?php echo $class_image_container; ?> table-cell-t"> #94 : <div class="<?php echo $class_image; ?>"> #95 : <img src="media/<?php echo $person->getImage();?>/<?php echo $arr['imagesize'];?>" alt="<?php echo $person->getAktitle();?> <?php echo $person->getName();?>" /> #96 : </div> #97 : </div> #98 : <?php } ?> #99 : #100 : <div class="<?php echo $class_data_container; ?> table-cell-t"> #101 : <div class="<?php echo $class_name; ?>"> #102 : <div class="table-cell"> #103 : <p><?php /*echo $person->getFunction();*/ ?></p> #104 : <span><?php echo $person->getAktitle();?> <?php echo $person->getFirstname();?> <?php echo $person->getLastname();?></span> #105 : </div> #106 : </div> #107 : #108 : <div class="<?php echo $class_contact; ?> description"> #109 : <div class="table-cell"> #110 : <?php #111 : if($person->getStreet($positionId) != '') { #112 : echo $person->getStreet($positionId) . '<br>'; #113 : } #114 : ?> #115 : #116 : <?php #117 : if($person->getZip($positionId) != '' || $person->getCity($positionId) != '') { #118 : echo $person->getZip($positionId) . ' ' . $person->getCity($positionId) . '<br>'; #119 : } #120 : ?> #121 : #122 : Telefon: <?php echo $person->getTelephone($positionId);?><br> #123 : <a href="mailto:<?php echo $person->getEmail($positionId);?>"><?php echo $person->getEmail($positionId);?></a> #124 : #125 : <?php if($arr['showqrcode']) { ?> #126 : <div class="<?php echo $class_qr; ?>"><img src="<?php echo $person->createQrCode($positionId)?>" /></div> #127 : <?php } ?> #128 : </div> #129 : </div> #130 : </div> #131 : #132 : </div> #133 : </div> #134 : <?php #135 : $counter++; #136 : } #137 : } elseif ($arr['layout'] == 'sidebar') { #138 : $positionId = array_shift($person->getPositions())->getId(); #139 : ?> #140 : <div class="navbar-left-box"> #141 : <div class="navbar-left-header"> #142 : <span>Kontakt</span> #143 : </div> #144 : <div class="navbar-box-border"> #145 : <div class="navbar-box-contact"> #146 : <img src="media/<?php echo $person->getImage();?>/default" alt="<?php echo $person->getAktitle();?> <?php echo $person->getName();?>" /> #147 : <p><?php /*echo $person->getFunction();*/ ?></p> #148 : <span><?php echo $person->getAktitle(); ?> <?php echo $person->getFirstname(); ?> <?php echo $person->getLastname(); ?></span> #149 : <div> #150 : <?php echo $person->getStreet($positionId); ?><br> #151 : <?php echo $person->getZip($positionId); ?> <?php echo $person->getCity($positionId); ?><br> #152 : Telefon: <?php echo $person->getTelephone($positionId); ?><br> #153 : <a href="mailto:<?php echo $person->getEmail($positionId);?>"><?php echo $person->getEmail(array_shift($person->getPositions())->getId()); ?></a> #154 : </div> #155 : </div> #156 : </div> #157 : </div> #158 : <?php #159 : } elseif ($arr['layout'] == 'team') { #160 : #161 : foreach($orderedPersons as $person) { #162 : $positionId = array_shift($person->getPositions())->getId(); #163 : $imageset = $person->getImage(); #164 : /* @var $imageset Media_Item */ #165 : $descrset = $person->getDescription(); #166 : $descrjob = $person->getJobdescription(); #167 : #168 : if($arr['showimage'] && !empty($imageset) && intval($arr['showqrcode']) == 1) { #169 : #170 : $class_image = 'col-xs-12'; #171 : $class_name = 'col-md-4 col-xs-12'; #172 : $class_contact = 'col-md-4 col-xs-12'; #173 : $class_qr = 'col-md-4 col-xs-12'; #174 : #175 : $class_image_container = 'col-md-4'; #176 : $class_data_container = 'col-md-8'; #177 : #178 : $imageSize = $imageset->getMediaSize($arr['imagesize']); #179 : } elseif($arr['showimage'] && !empty($imageset) && intval($arr['showqrcode']) == 0) { #180 : #181 : $class_image = 'col-xs-12'; #182 : $class_name = 'col-md-6 col-xs-12'; #183 : $class_contact = 'col-md-6 col-xs-12'; #184 : $class_qr = ''; #185 : #186 : $class_image_container = 'col-md-4 col-sm-6 col-xs-12'; #187 : $class_data_container = 'col-md-8 col-sm-6 col-xs-12'; #188 : #189 : $imageSize = getimagesize($imageset); #190 : } elseif($arr['showimage'] && empty($imageset) && intval($arr['showqrcode']) == 1) { #191 : #192 : $class_image = ''; #193 : $class_name = 'col-md-4 col-xs-12'; #194 : $class_contact = 'col-md-4 col-xs-12'; #195 : $class_qr = 'col-md-4 col-xs-12'; #196 : #197 : $class_image_container = ''; #198 : $class_data_container = 'col-md-12'; #199 : #200 : $imageSize = false; #201 : } elseif((!$arr['showimage'] || empty($imageset)) && intval($arr['showqrcode']) == 0) { #202 : #203 : $class_image = ''; #204 : $class_name = 'col-md-6'; #205 : $class_contact = 'col-md-6'; #206 : $class_qr = ''; #207 : #208 : $class_image_container = ''; #209 : $class_data_container = 'col-md-12'; #210 : #211 : $imageSize = false; #212 : } #213 : ?> #214 : #215 : <!-- NEUE VARIANTE TEL. ABGENOMMEN VON FR. FOCKS AM 24.06.15: #216 : #217 : <div class="description-box col-xs-12 col-sm-12 col-md-12"> #218 : <div class="row"> #219 : <div class="col-md-4"> #220 : <img style="width:100%" src="media/<?php echo $person->getImage();?>/<?php echo $arr['imagesize'];?>" alt="<?php echo $person->getAktitle();?> <?php echo $person->getName();?>" /> #221 : </div> #222 : <div class="col-md-8"> #223 : <p style="margin-bottom: 0; font-size: 18px; font-weight: bold;"><?php echo $person->getAktitle();?> <wbr><?php echo $person->getFirstname();?> <?php echo $person->getLastname();?></p> #224 : <p><?php echo $person->getFunction(); ?></p> #225 : <p>Telefon: <?php echo $person->getTelephone($positionId);?><br /> <a href="mailto:<?php echo $person->getEmail($positionId);?>"><?php echo $person->getEmail($positionId);?></a></p> #226 : <?php if ($descrjob && $descrset != "") { ?> #227 : <button class="btn-main greybox" type="button" data-toggle="collapse" data-target="#person-description<?php echo $counter ?>"> weitere Informationen </button> #228 : <?php } ?> #229 : </div> #230 : <div class="col-xs-12 col-md-12 collapse" id="person-description<?php echo $counter ?>" style="margin-top: 20px; height: auto;"> #231 : <p> #232 : <?php echo $person->getJobdescription();?><br /><br /> #233 : <?php echo $descrset;?> #234 : </p> #235 : </div> #236 : </div> #237 : <hr /> #238 : </div> #239 : #240 : --> #241 : #242 : <div class="row"> #243 : <div class="col-xs-12 col-sm-12 col-md-12"> #244 : <div class="theme-box" style="height:auto;"> #245 : <div class="theme-header" style="padding: 5px 15px;"> #246 : <strong><?php /*echo $person->getFunction();*/ ?> <?php echo $person->getAktitle();?> <wbr><?php echo $person->getFirstname();?> <?php echo $person->getLastname();?></strong> #247 : </div> #248 : #249 : <div class="col-xs-12 col-sm-6 col-md-4" style="padding:15px"> #250 : <div class="col-xs-12 col-sm-12 col-md-12" style="padding:0px;"> #251 : <img style="width:100%" src="media/<?php echo $person->getImage();?>/<?php echo $arr['imagesize'];?>" alt="<?php echo $person->getAktitle();?> <?php echo $person->getName();?>" /> #252 : </div> #253 : #254 : <div class="col-xs-12 col-sm-12 col-md-12 bs-team" style="padding:0px;"> #255 : <p style="margin:10px 0px 10px 0px"> #256 : Telefon: <?php echo $person->getTelephone($positionId);?><br> #257 : <a href="mailto:<?php echo $person->getEmail($positionId);?>"><?php echo $person->getEmail($positionId);?></a> #258 : </p> #259 : </div> #260 : </div> #261 : #262 : <div class="col-xs-12 col-sm-6 col-md-8 bs-team bs-team-padding"> #263 : <?php echo $descrjob;?> #264 : <?php echo $descrset;?> #265 : </div> #266 : #267 : </div> #268 : </div> #269 : </div> #270 : #271 : <?php #272 : $counter++; #273 : } #274 : } ?>
Facebook
Ambulante Pflege Sögel
Mühlenstraße 17
49751 Sögel
Telefon:
05952 209-0
Impressum | Datenschutz | Barrierefreiheitserklärung
Der Träger der Pflegeeinrichtung nimmt nicht an Streitbeilegungsverfahren vor einer Streitbeilegungsstelle teil.
Medizinproduktesicherheit
Sie erreichen unseren Beauftragten für Medizinproduktesicherheit (gem. §6 der MPBetreibV) unter folgender E-Mail-Adresse: medizinproduktesicherheit@hospital-soegel.de
Copyright (c) 2015. Emsländische Pflege. Alle Rechte vorbehalten.