diff options
Diffstat (limited to 'help3/xhpeditor/index.php')
-rw-r--r-- | help3/xhpeditor/index.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/help3/xhpeditor/index.php b/help3/xhpeditor/index.php index 312bca95..ff770864 100644 --- a/help3/xhpeditor/index.php +++ b/help3/xhpeditor/index.php @@ -62,8 +62,10 @@ $xhp = $_POST["xhpdoc"]; </div> <?php $xhp = $_POST["xhpdoc"]; + $xhp_filename = simplexml_load_string($xhp)->xpath("//filename"); if (isset($_POST["render_page"])) { - echo '<div id="renderedpageheader"><h2>Rendered page</h2><div class="buttonrow"><div class="systembuttons"><p>System: '; + echo '<div id="renderedpageheader"><h2>Rendered page: '.$xhp_filename[0]; + echo '</h2><div class="buttonrow"><div class="systembuttons"><p>System: '; $opSys = array("MAC", "WIN", "UNIX"); foreach ($opSys as $value) { echo '<input type="radio" name="sys" onclick="setSystemSpan(\''.$value.'\')">'.$value.' '; @@ -91,7 +93,8 @@ $xhp = $_POST["xhpdoc"]; $root = 'helpdocument'; $old = new DOMDocument; - echo '<div id="renderedpageheader"><h2>Help File Verification</h2></div>'; + echo '<div id="renderedpageheader"><h2>Help File Verification: '.$xhp_filename[0]; + echo '</h2></div>'; echo '<div id="renderedpage"><h3>Check XML Formation</h3>'; if ( !$old->loadXML($xhp) ) { $errors = libxml_get_errors(); |