Quelle: http://www.mpp.mpg.de//mpg/websitePhysik/forschung/theorie/astroteilchen/gruppenmitgliederAstroteilchen/index.html

"; $td = "td"; if($i == 0 && $TabellenKopf=="Ja"){ $i++; $td="th";} if($trString[0]=="#"){ $td="th"; $trString=substr($trString, 1); } $tdArray = explode('&', $trString); //Every table cell as tdString foreach($tdArray as $tdString){ $table .= "<".$td." ".$tableStyle.">"; //If there is a special thing in there: //Mail: $tdMail=strpos($tdString, '\mail{'); //Site $tdSite=strpos($tdString, '\site{'); //Mail: if($tdMail !== FALSE){ $tdMailAddressEnd = strpos( $tdString, '}{', $tdMail +6 ); $tdMailLinkEnd = strpos( $tdString, '}', $tdMailAddressEnd+2 ); $table .= substr( $tdString, 0, $tdMail); $table .= 'mail '; $table .= substr( $tdString, $tdMailAddressEnd +2, $tdMailLinkEnd - $tdMailAddressEnd -2); $table .= " "; $table .= substr( $tdString, $tdMailLinkEnd +1); } //Site: elseif($tdSite !== FALSE){ $tdSiteAddressEnd = strpos( $tdString, '}{', $tdSite +6 ); $tdSiteLinkEnd = strpos( $tdString, '}', $tdSiteAddressEnd+2 ); $table .= substr( $tdString, 0, $tdSite); $table .= ' '; $table .= substr( $tdString, $tdSiteAddressEnd +2, $tdSiteLinkEnd - $tdSiteAddressEnd -2); $table .= " "; $table .= substr( $tdString, $tdSiteLinkEnd +1); }else{ $table .= $tdString; } $table .= ""; } $table .= ""; } $table .= "
"; //Kompatibilität if(strpos($blob, '\\\\') === FALSE){ $trArray = explode('\\ ', $blob); }else{ $trArray = explode('\\\\ ', $blob); } $i = 0; foreach($trArray as $trString){ $table .= "
"; echo $table; ?>

© 2015, MPI für Physik, München Impressum