示例#1
0
                if ($value == $value_b) {
                    if (!array_key_exists($value, $bildtext_array)) {
                        $bildtext_array[$value] = array();
                        //	array_push($bildtext_array,array( $value => array()));
                    }
                    if (file_exists($datapfad . str_replace("de", $spr, $value))) {
                        $getxml = simplexml_load_file($datapfad . str_replace("de", $spr, $value));
                        $titel_spr = $getxml->title[0];
                        array_push($bildtext_array[$value], array($spr, $titel_spr));
                    }
                }
            }
        }
        // EXISTIERT ZUGEHÖRIGES XML?
        if (file_exists($datapfad . str_replace("de", $spr, $value))) {
            eintrag(str_replace("de", $spr, $value), $machgross, $spr);
        }
    }
    ?>
</inh></<?php 
    echo $spr;
    ?>
><?php 
}
// TITEL/STARTZEILE SPRACHE
function sprachstart($sprache, $sprache_d)
{
    global $zufallbreite;
    $zufallbreite = 0;
    ?>
示例#2
0
// MAPS
// XML GENERATOR AUSGABE
// 2008 (m@marcelbamert.ch)
require "config.php";
header('Content-type: text/xml');
header('Content-Disposition: attachment; filename="maps_' . $_POST['v1'] . '.' . $_POST['v2'] . '.' . $_POST['v3'] . '-' . $_POST['b1'] . '.' . $_POST['b2'] . '.' . $_POST['b3'] . '.xml"');
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
?>
<Root><Tag1><Table xmlns:aid5="http://ns.adobe.com/AdobeInDesign/5.0/" aid5:tablestyle="ts" xmlns:aid="http://ns.adobe.com/AdobeInDesign/4.0/" aid:table="table" aid:trows="300" aid:tcols="2"><?php 
// JEDE SPRACHE
foreach ($sprachen as $spr => $value) {
    sprachstart($value[1]);
    // JEDEN EINTRAG
    foreach ($_POST[xmllist] as $value) {
        if (file_exists($datapfad . str_replace("de", $spr, $value))) {
            eintrag(str_replace("de", $spr, $value));
        }
    }
}
?>



<?php 
function sprachstart($sprache)
{
    ?>
<Tag2 aid:table="cell" aid:crows="1" aid:ccols="2" aid:ccolwidth="450" aid:pstyle="sprache"><![CDATA[<?php 
    echo $sprache;
    ?>
]]></Tag2>