<commit_before><!--
Program: YoDNSConf
Component: html_custom.xsl
Copyright: Savonix Corporation
Author: <NAME>, IV
License: Gnu Affero Public License version 3
http://www.gnu.org/licenses

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program; if not, see http://www.gnu.org/licenses
or write to the Free Software Foundation, Inc., 51 Franklin Street,
Fifth Floor, Boston, MA 02110-1301 USA
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">
  <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
  method="xml" doctype-public="-//W3C//DTD XHTML 1.1//EN" encoding="UTF-8" 
  indent="yes" omit-xml-declaration="no" />
  <xsl:strip-space elements="*"/>
  <xsl:template match="/">


<html>
  <xsl:variable name="link_prefix" select="/_R_/runtime/link_prefix"/>
  <xsl:variable name="path_prefix" select="/_R_/runtime/path_prefix"/>
  <xsl:variable name="my18n"
  select="document('../../i18n/en_US/yodnsconf.xml')/i18n"/>

  <xsl:call-template name="head">
    <xsl:with-param name="link_prefix" select="$link_prefix"/>
    <xsl:with-param name="path_prefix" select="$path_prefix"/>
  </xsl:call-template>
  <body>
    <xsl:for-each select="//pre_body_content">
      <xsl:sort select="priority" order="ascending"/>
      <xsl:apply-templates select="nodes/*"/>
    </xsl:for-each>

    <xsl:call-template name="main">
      <xsl:with-param name="link_prefix" select="$link_prefix"/>
      <xsl:with-param name="path_prefix" select="$path_prefix"/>
      <xsl:with-param name="i18n" select="$my18n"/>
    </xsl:call-template>

    <xsl:for-each select="//footer_nodes">
      <xsl:sort select="priority" order="ascending"/>
      <xsl:apply-templates select="nodes/*"/>
    </xsl:for-each>
  </body>
</html>


  </xsl:template>


  <xsl:template name="header">
    <xsl:param name="link_prefix"/>
    <xsl:param name="i18n"/>
    <xsl:call-template name="source_spacer">
      <xsl:with-param name="section_start">header</xsl:with-param>
    </xsl:call-template>
    <div id="header">
      <div style="float:right;margin: 4px;">
        <form action="index.php" method="get">
          <input type="hidden" name="nid" value="journal-search" />
          <input type="text" name="entry_search" />
          <input type="submit" />
        </form>
      </div>
    	<span id="company-name">
        <xsl:value-of select="//runtime/company_name"/>
      </span>
      <h1 class="page-title">
        <xsl:value-of select="/_R_/i18n/*[name()=/_R_/_get/nid]"/>
      </h1>
    </div>

    <xsl:call-template name="source_spacer">
      <xsl:with-param name="section_end">header</xsl:with-param>
    </xsl:call-template>
  </xsl:template>



  <xsl:template name="button">
    <xsl:param name="key"/>
    <li>
      <div id="nav_{$key}">
        <xsl:if test="//_get/nid=/_R_/menu/item[key=$key]/item/url">
          <xsl:attribute name="class">nav_selected</xsl:attribute>
        </xsl:if>
        <xsl:value-of select="/_R_/i18n/*[local-name()=$key]"/>
      </div>
      <ul>
        <xsl:for-each select="/_R_/menu/item[key=$key]/item">
          <xsl:variable name="my_key" select="key"/>
          <li>
            <a href="{/_R_/runtime/link_prefix}{url}" id="{key}">
              <xsl:value-of select="/_R_/i18n/*[local-name()=$my_key]"/>
            </a>
          </li>
        </xsl:for-each>
      </ul>
    </li>
  </xsl:template>
  <xsl:template name="drop-downs">
    <xsl:param name="link_prefix"/>
    <xsl:param name="path_prefix"/>


<div style="padding-left: 10em; right:10px;z-index:1000;position:absolute;">
  <div style="float: right;">
    <form action="{$link_prefix}index" method="get">
      <!-- to do: match selection -->
      <input type="hidden" name="nid" value="index"/>
      <select name="zone_group_id" onchange="location.href='{$link_prefix}index&amp;zone_group_id='+$(this).val()">
        <option value="%">Select All</option>
        <xsl:for-each select="//zone_groups_get_all/zone_groups_get_all">
        <xsl:variable name="zone_group_id" select="zone_group_id"/>
        <option value="{zone_group_id}">
          <xsl:if test="//runtime/zone_group_id=$zone_group_id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
          <xsl:value-of select="zone_group_name"/>
        </option>
        </xsl:for-each>
      </select>
      <input type="submit" value="Go"/>
    </form>
  </div>

  <div style="float: right;">
    <form action="{$link_prefix}" method="get">
      <!-- to do: match selection -->
      <input type="hidden" name="nid" value="zone-edit"/>
      <select name="zone_group_id" onchange="location.href='{$link_prefix}zone-edit&amp;zone='+$(this).val()">
        <option value="%">Quick Zone Links</option>
        <xsl:for-each select="//zones_get_all/zones_get_all[notes='quicklink']">
        <option value="{id}">
          <xsl:if test="//_get/zone_id=."><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
          <xsl:value-of select="origin"/>
        </option>
        </xsl:for-each>
      </select>
      <input type="submit" value="Go"/>
    </form>
  </div>
  <xsl:if test="/_R_/zone_get_by_id/zone_get_by_id/id">
    <div style="float:right;padding:2px;">
      <a href="{$link_prefix}zone-edit&amp;zone={/_R_/zone_get_by_id/zone_get_by_id/id}">
        <xsl:value-of select="/_R_/zone_get_by_id/zone_get_by_id/origin"/>
      </a>
      <a href="{//link_prefix}records&amp;zone={/_R_/zone_get_by_id/zone_get_by_id/id}">
        <span id="i18n-records">Records</span>
      </a>
    </div>
  </xsl:if>
</div>


  </xsl:template>

  <xsl:template name="head">
    <xsl:param name="link_prefix"/>
    <xsl:param name="path_prefix"/>


<head>
  <title>Web DNS <xsl:value-of select="/_R_/i18n/*[name()=//_get/nid]/."/>
    <xsl:if test="/_R_/_get/zone">
      :<xsl:value-of select="//zone_get_by_id/zone_get_by_id/origin"/>
    </xsl:if>
    <xsl:if test="/_R_/_get/host_id">
      :<xsl:value-of select="/_R_/hosts_get_all/hosts_get_all[id=/_R_/_get/host_id]/ip"/>
    </xsl:if>
 </title>
  <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.7.0/build/reset/reset-min.css"/>
  <link rel="stylesheet" type="text/css" href="{$link_prefix}x-dynamic-css"></link>
  <link rel="stylesheet" type="text/css" href="{$path_prefix}s/css/thickbox.css"></link>
  <link rel="stylesheet" type="text/css" href="{$path_prefix}s/css/droppy.css"></link><commit_msg>YDC in page title.<commit_after><!--
Program: YoDNSConf
Component: html_custom.xsl
Copyright: Savonix Corporation
Author: <NAME>, IV
License: Gnu Affero Public License version 3
http://www.gnu.org/licenses

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program; if not, see http://www.gnu.org/licenses
or write to the Free Software Foundation, Inc., 51 Franklin Street,
Fifth Floor, Boston, MA 02110-1301 USA
-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/xhtml">
  <xsl:output doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"
  method="xml" doctype-public="-//W3C//DTD XHTML 1.1//EN" encoding="UTF-8" 
  indent="yes" omit-xml-declaration="no" />
  <xsl:strip-space elements="*"/>
  <xsl:template match="/">


<html>
  <xsl:variable name="link_prefix" select="/_R_/runtime/link_prefix"/>
  <xsl:variable name="path_prefix" select="/_R_/runtime/path_prefix"/>
  <xsl:variable name="my18n"
  select="document('../../i18n/en_US/yodnsconf.xml')/i18n"/>

  <xsl:call-template name="head">
    <xsl:with-param name="link_prefix" select="$link_prefix"/>
    <xsl:with-param name="path_prefix" select="$path_prefix"/>
  </xsl:call-template>
  <body>
    <xsl:for-each select="//pre_body_content">
      <xsl:sort select="priority" order="ascending"/>
      <xsl:apply-templates select="nodes/*"/>
    </xsl:for-each>

    <xsl:call-template name="main">
      <xsl:with-param name="link_prefix" select="$link_prefix"/>
      <xsl:with-param name="path_prefix" select="$path_prefix"/>
      <xsl:with-param name="i18n" select="$my18n"/>
    </xsl:call-template>

    <xsl:for-each select="//footer_nodes">
      <xsl:sort select="priority" order="ascending"/>
      <xsl:apply-templates select="nodes/*"/>
    </xsl:for-each>
  </body>
</html>


  </xsl:template>


  <xsl:template name="header">
    <xsl:param name="link_prefix"/>
    <xsl:param name="i18n"/>
    <xsl:call-template name="source_spacer">
      <xsl:with-param name="section_start">header</xsl:with-param>
    </xsl:call-template>
    <div id="header">
      <div style="float:right;margin: 4px;">
        <form action="index.php" method="get">
          <input type="hidden" name="nid" value="journal-search" />
          <input type="text" name="entry_search" />
          <input type="submit" />
        </form>
      </div>
    	<span id="company-name">
        <xsl:value-of select="//runtime/company_name"/>
      </span>
      <h1 class="page-title">
        <xsl:value-of select="/_R_/i18n/*[name()=/_R_/_get/nid]"/>
      </h1>
    </div>

    <xsl:call-template name="source_spacer">
      <xsl:with-param name="section_end">header</xsl:with-param>
    </xsl:call-template>
  </xsl:template>



  <xsl:template name="button">
    <xsl:param name="key"/>
    <li>
      <div id="nav_{$key}">
        <xsl:if test="//_get/nid=/_R_/menu/item[key=$key]/item/url">
          <xsl:attribute name="class">nav_selected</xsl:attribute>
        </xsl:if>
        <xsl:value-of select="/_R_/i18n/*[local-name()=$key]"/>
      </div>
      <ul>
        <xsl:for-each select="/_R_/menu/item[key=$key]/item">
          <xsl:variable name="my_key" select="key"/>
          <li>
            <a href="{/_R_/runtime/link_prefix}{url}" id="{key}">
              <xsl:value-of select="/_R_/i18n/*[local-name()=$my_key]"/>
            </a>
          </li>
        </xsl:for-each>
      </ul>
    </li>
  </xsl:template>
  <xsl:template name="drop-downs">
    <xsl:param name="link_prefix"/>
    <xsl:param name="path_prefix"/>


<div style="padding-left: 10em; right:10px;z-index:1000;position:absolute;">
  <div style="float: right;">
    <form action="{$link_prefix}index" method="get">
      <!-- to do: match selection -->
      <input type="hidden" name="nid" value="index"/>
      <select name="zone_group_id" onchange="location.href='{$link_prefix}index&amp;zone_group_id='+$(this).val()">
        <option value="%">Select All</option>
        <xsl:for-each select="//zone_groups_get_all/zone_groups_get_all">
        <xsl:variable name="zone_group_id" select="zone_group_id"/>
        <option value="{zone_group_id}">
          <xsl:if test="//runtime/zone_group_id=$zone_group_id"><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
          <xsl:value-of select="zone_group_name"/>
        </option>
        </xsl:for-each>
      </select>
      <input type="submit" value="Go"/>
    </form>
  </div>

  <div style="float: right;">
    <form action="{$link_prefix}" method="get">
      <!-- to do: match selection -->
      <input type="hidden" name="nid" value="zone-edit"/>
      <select name="zone_group_id" onchange="location.href='{$link_prefix}zone-edit&amp;zone='+$(this).val()">
        <option value="%">Quick Zone Links</option>
        <xsl:for-each select="//zones_get_all/zones_get_all[notes='quicklink']">
        <option value="{id}">
          <xsl:if test="//_get/zone_id=."><xsl:attribute name="selected">selected</xsl:attribute></xsl:if>
          <xsl:value-of select="origin"/>
        </option>
        </xsl:for-each>
      </select>
      <input type="submit" value="Go"/>
    </form>
  </div>
  <xsl:if test="/_R_/zone_get_by_id/zone_get_by_id/id">
    <div style="float:right;padding:2px;">
      <a href="{$link_prefix}zone-edit&amp;zone={/_R_/zone_get_by_id/zone_get_by_id/id}">
        <xsl:value-of select="/_R_/zone_get_by_id/zone_get_by_id/origin"/>
      </a>
      <a href="{//link_prefix}records&amp;zone={/_R_/zone_get_by_id/zone_get_by_id/id}">
        <span id="i18n-records">Records</span>
      </a>
    </div>
  </xsl:if>
</div>


  </xsl:template>

  <xsl:template name="head">
    <xsl:param name="link_prefix"/>
    <xsl:param name="path_prefix"/>


<head>
  <title>YDC <xsl:value-of select="/_R_/i18n/*[name()=//_get/nid]/."/>
    <xsl:if test="/_R_/_get/zone">
      :<xsl:value-of select="//zone_get_by_id/zone_get_by_id/origin"/>
    </xsl:if>
    <xsl:if test="/_R_/_get/host_id">
      :<xsl:value-of select="/_R_/hosts_get_all/hosts_get_all[id=/_R_/_get/host_id]/ip"/>
    </xsl:if>
 </title>
  <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/combo?2.7.0/build/reset/reset-min.css"/>
  <link rel="stylesheet" type="text/css" href="{$link_prefix}x-dynamic-css"></link>
  <link rel="stylesheet" type="text/css" href="{$path_prefix}s/css/thickbox.css"></link>
  <link rel="stylesheet" type="text/css" href="{$path_prefix}s/css/droppy.css"></link>
{'fraction_non_alphanumeric': 0.19194228159154225, 'fraction_numerical': 0.010143581684406029, 'mean_word_length': 3.524886877828054, 'pattern_counts': {'":': 0, '<': 319, '<?xml version=': 0, '>': 319, 'https://': 0, 'lorem ipsum': 0, 'www.': 10, 'xml': 10}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5097723', 'n_tokens_mistral': 5195, 'n_tokens_neox': 4845, 'n_words': 861}