<docbook><section><title>ODSControllerPHPAPILoginSource</title><bridgehead class="http://www.w3.org/1999/xhtml:h2">ODS Controller for PHP API Login Source Code</bridgehead>
<para>The following source code represents the ODS Controller for PHP API Login users.php file:</para>
<programlisting>&lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot; &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&gt;
&lt;!--
 -
 -  $Id: users.php,v 1.8 2009/12/30 16:00:57 ddimitrov Exp $
 -
 -  This file is part of the OpenLink Software Virtuoso Open-Source (VOS)
 -  project.
 -
 -  Copyright (C) 1998-2008 OpenLink Software
 -
 -  This project is free software; you can redistribute it and/or modify it
 -  under the terms of the GNU General Public License as published by the
 -  Free Software Foundation; only version 2 of the License, dated June 1991.
 -
 -  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
 -  General Public License for more details.
 -
 -  You should have received a copy of the GNU General Public License along
 -  with this program; if not, write to the Free Software Foundation, Inc.,
 -  51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
 -
 -
--&gt;
&lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;Virtuoso Web Applications&lt;/title&gt;
    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ods/default.css&quot; /&gt;
    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ods/ods-bar.css&quot; /&gt;
    &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;/ods/users/css/users.css&quot; /&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;/ods/users/js/oid_login.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;/ods/users/js/users.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;/ods/common.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;/ods/CalendarPopup.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
      // OAT
      var toolkitPath=&quot;/ods/oat&quot;;
      var featureList = [&quot;dom&quot;, &quot;ajax2&quot;, &quot;ws&quot;, &quot;tab&quot;, &quot;json&quot;, &quot;dimmer&quot;, &quot;combolist&quot;];
    &lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot; src=&quot;/ods/oat/loader.js&quot;&gt;&lt;/script&gt;
    &lt;script type=&quot;text/javascript&quot;&gt;
      // publics
      var cPopup;
      function myInit()
      {
        // CalendarPopup
        if ($(&quot;cDiv&quot;))
        {
          cPopup = new CalendarPopup(&quot;cDiv&quot;);
          cPopup.isShowYearNavigation = true;
        }

        OAT.Preferences.imagePath = &quot;/ods/images/oat/&quot;;
        OAT.Preferences.stylePath = &quot;/ods/oat/styles/&quot;;
        OAT.Preferences.showAjax = false;

        if ($(&#39;pf&#39;))
        {
          var tab = new OAT.Tab (&quot;content&quot;);
          tab.add (&quot;tab_0&quot;, &quot;page_0&quot;);
          tab.add (&quot;tab_1&quot;, &quot;page_1&quot;);
          tab.add (&quot;tab_2&quot;, &quot;page_2&quot;);
          tab.add (&quot;tab_3&quot;, &quot;page_3&quot;);
          tab.add (&quot;tab_4&quot;, &quot;page_4&quot;);
          tab.go (0);
        }
      }
      OAT.MSG.attach(OAT, OAT.MSG.OAT_LOAD, myInit);
    &lt;/script&gt;
  &lt;/head&gt;
  &lt;?php
    function selectList ($list, $param)
    {
      $V = Array ();
      $url = sprintf (&quot;%s/lookup.list?key=%s&amp;param=%s&quot;, apiURL(), urlencode ($list), urlencode ($param));
      $result = file_get_contents ($url);
      $xml = new SimpleXMLElement ($result);
      $items = $xml-&gt;xpath(&quot;/items/item&quot;);
      $N = 1;
      foreach ($items as $S)
      {
        if ($S &lt;&gt; &quot;0&quot;)
          $V[$N] = $S;
        $N++;
      }
      return $V;
    }

    function outFormTitle ($form)
    {
      if ($form == &quot;login&quot;)
        print &quot;Login&quot;;
      if ($form == &quot;user&quot;)
        print &quot;View Profile&quot;;
      if ($form == &quot;profile&quot;)
        print &quot;Edit Profile&quot;;
    }

    function apiURL()
    {
      $pageURL = $_SERVER[&#39;HTTPS&#39;] == &#39;on&#39; ? &#39;https://&#39; : &#39;http://&#39;;
      $pageURL .= $_SERVER[&#39;SERVER_PORT&#39;] != &#39;80&#39; ? $_SERVER[&quot;SERVER_NAME&quot;].&quot;:&quot;.$_SERVER[&quot;SERVER_PORT&quot;] : $_SERVER[&#39;SERVER_NAME&#39;];
      return $pageURL.&#39;/ods/api&#39;;
    }

    $_error = &quot;&quot;;
    $_form = &quot;login&quot;;
    if (isset ($_POST[&#39;form&#39;]))
      $_form = $_POST[&#39;form&#39;];
    $_sid = $_POST[&#39;sid&#39;];
    $_realm = &quot;wa&quot;;

    if ($_form == &quot;login&quot;)
    {
      if (isset ($_POST[&#39;lf_login&#39;]) &amp;&amp; ($_POST[&#39;lf_login&#39;] &lt;&gt; &quot;&quot;))
      {
        $_url = sprintf (&quot;%s/user.authenticate?user_name=%s&amp;password_hash=%s&quot;, apiURL(), $_POST[&#39;lf_uid&#39;], sha1($_POST[&#39;lf_uid&#39;].$_POST[&#39;lf_password&#39;]));
        $_result = file_get_contents($_url);
        if (substr_count($_result, &quot;&lt;failed&gt;&quot;) &lt;&gt; 0)
        {
          $_xml = simplexml_load_string($_result);
          $_error = $_xml-&gt;failed-&gt;message;;
        } else {
          $_sid = $_result;
          $_form = &quot;user&quot;;
        }
      }
    }

    if ($_form == &quot;user&quot;)
    {
      if (isset ($_POST[&#39;uf_profile&#39;]) &amp;&amp; ($_POST[&#39;uf_profile&#39;] &lt;&gt; &quot;&quot;))
        $_form = &quot;profile&quot;;
    }

    if ($_form == &quot;profile&quot;)
    {
      if (isset ($_POST[&#39;pf_update&#39;]) &amp;&amp; ($_POST[&#39;pf_update&#39;] &lt;&gt; &quot;&quot;))
      {
        $_url = apiURL().                   &quot;/user.update.fields&quot;.
                &quot;?sid=&quot;.                    $_sid.
                &quot;&amp;realm=&quot;.                  $_realm.
                &quot;&amp;mail=&quot;.                   urlencode ($_POST[&#39;pf_mail&#39;]).
                &quot;&amp;title=&quot;.                  urlencode ($_POST[&#39;pf_title&#39;]).
                &quot;&amp;firstName=&quot;.              urlencode ($_POST[&#39;pf_firstName&#39;]).
                &quot;&amp;lastName=&quot;.               urlencode ($_POST[&#39;pf_lastName&#39;]).
                &quot;&amp;fullName=&quot;.               urlencode ($_POST[&#39;pf_fullName&#39;]).
                &quot;&amp;gender=&quot;.                 urlencode ($_POST[&#39;pf_gender&#39;]).
                &quot;&amp;birthday=&quot;.               urlencode ($_POST[&#39;pf_birthday&#39;]).
                &quot;&amp;icq=&quot;.                    urlencode ($_POST[&#39;pf_icq&#39;]).
                &quot;&amp;skype=&quot;.                  urlencode ($_POST[&#39;pf_skype&#39;]).
                &quot;&amp;yahoo=&quot;.                  urlencode ($_POST[&#39;pf_yahoo&#39;]).
                &quot;&amp;aim=&quot;.                    urlencode ($_POST[&#39;pf_aim&#39;]).
                &quot;&amp;msn=&quot;.                    urlencode ($_POST[&#39;pf_msn&#39;]).
                &quot;&amp;homeDefaultMapLocation=&quot;. urlencode ($_POST[&#39;pf_homeDefaultMapLocation&#39;]).
                &quot;&amp;homeCountry=&quot;.            urlencode ($_POST[&#39;pf_homecountry&#39;]).
                &quot;&amp;homeState=&quot;.              urlencode ($_POST[&#39;pf_homestate&#39;]).
                &quot;&amp;homeCity=&quot;.               urlencode ($_POST[&#39;pf_homecity&#39;]).
                &quot;&amp;homeCode=&quot;.               urlencode ($_POST[&#39;pf_homecode&#39;]).
                &quot;&amp;homeAddress1=&quot;.           urlencode ($_POST[&#39;pf_homeaddress1&#39;]).
                &quot;&amp;homeAddress2=&quot;.           urlencode ($_POST[&#39;pf_homeaddress2&#39;]).
                &quot;&amp;homeTimezone=&quot;.           urlencode ($_POST[&#39;pf_homeTimezone&#39;]).
                &quot;&amp;homeLatitude=&quot;.           urlencode ($_POST[&#39;pf_homelat&#39;]).
                &quot;&amp;homeLongitude=&quot;.          urlencode ($_POST[&#39;pf_homelng&#39;]).
                &quot;&amp;homePhone=&quot;.              urlencode ($_POST[&#39;pf_homePhone&#39;]).
                &quot;&amp;homeMobile=&quot;.             urlencode ($_POST[&#39;pf_homeMobile&#39;]).
                &quot;&amp;businessIndustry=&quot;.       urlencode ($_POST[&#39;pf_businessIndustry&#39;]).
                &quot;&amp;businessOrganization=&quot;.   urlencode ($_POST[&#39;pf_businessOrganization&#39;]).
                &quot;&amp;businessHomePage=&quot;.       urlencode ($_POST[&#39;pf_businessHomePage&#39;]).
                &quot;&amp;businessJob=&quot;.            urlencode ($_POST[&#39;pf_businessJob&#39;]).
                &quot;&amp;businessCountry=&quot;.        urlencode ($_POST[&#39;pf_businesscountry&#39;]).
                &quot;&amp;businessState=&quot;.          urlencode ($_POST[&#39;pf_businessstate&#39;]).
                &quot;&amp;businessCity=&quot;.           urlencode ($_POST[&#39;pf_businesscity&#39;]).
                &quot;&amp;businessCode=&quot;.           urlencode ($_POST[&#39;pf_businesscode&#39;]).
                &quot;&amp;businessAddress1=&quot;.       urlencode ($_POST[&#39;pf_businessaddress1&#39;]).
                &quot;&amp;businessAddress2=&quot;.       urlencode ($_POST[&#39;pf_businessaddress2&#39;]).
                &quot;&amp;businessTimezone=&quot;.       urlencode ($_POST[&#39;pf_businessTimezone&#39;]).
                &quot;&amp;businessLatitude=&quot;.       urlencode ($_POST[&#39;pf_businesslat&#39;]).
                &quot;&amp;businessLongitude=&quot;.      urlencode ($_POST[&#39;pf_businesslng&#39;]).
                &quot;&amp;businessPhone=&quot;.          urlencode ($_POST[&#39;pf_businessPhone&#39;]).
                &quot;&amp;businessMobile=&quot;.         urlencode ($_POST[&#39;pf_businessMobile&#39;]).
                &quot;&amp;businessRegNo=&quot;.          urlencode ($_POST[&#39;pf_businessRegNo&#39;]).
                &quot;&amp;businessCareer=&quot;.         urlencode ($_POST[&#39;pf_businessCareer&#39;]).
                &quot;&amp;businessEmployees=&quot;.      urlencode ($_POST[&#39;pf_businessEmployees&#39;]).
                &quot;&amp;businessVendor=&quot;.         urlencode ($_POST[&#39;pf_businessVendor&#39;]).
                &quot;&amp;businessService=&quot;.        urlencode ($_POST[&#39;pf_businessService&#39;]).
                &quot;&amp;businessOther=&quot;.          urlencode ($_POST[&#39;pf_businessOther&#39;]).
                &quot;&amp;businessNetwork=&quot;.        urlencode ($_POST[&#39;pf_businessNetwork&#39;]).
                &quot;&amp;businessResume=&quot;.         urlencode ($_POST[&#39;pf_businessResume&#39;]).
                &quot;&amp;securitySecretQuestion=&quot;. urlencode ($_POST[&#39;pf_securitySecretQuestion&#39;]).
                &quot;&amp;securitySecretAnswer=&quot;.   urlencode ($_POST[&#39;pf_securitySecretAnswer&#39;]).
                &quot;&amp;securitySiocLimit=&quot;.      urlencode ($_POST[&#39;pf_securitySiocLimit&#39;]);
        $_result = file_get_contents($_url);
        if (substr_count($_result, &quot;&lt;failed&gt;&quot;) &lt;&gt; 0)
        {
          $_xml = simplexml_load_string($_result);
          $_error = $_xml-&gt;failed-&gt;message;;
          $_form = &quot;login&quot;;
        } else {
          $_form = &quot;user&quot;;
        }
      }
      else if (isset ($_POST[&#39;pf_cancel&#39;]) &amp;&amp; ($_POST[&#39;pf_cancel&#39;] &lt;&gt; &quot;&quot;))
      {
        $_form = &quot;user&quot;;
      }
    }

    if (($_form == &quot;user&quot;) || ($_form == &quot;profile&quot;))
    {
      $_url = sprintf (&quot;%s/user.info?sid=%s&amp;realm=%s&quot;, apiURL(), $_sid, $_realm);
      if ($_form == &quot;profile&quot;)
        $_url = $_url.&quot;&amp;short=1&quot;;
      $_result = file_get_contents($_url);
      $_xml = simplexml_load_string($_result);
      if ($_xml-&gt;failed-&gt;message)
      {
        $_error = $_xml-&gt;failed-&gt;message;
        $_form = &quot;login&quot;;
      }
      else if ($_form == &quot;profile&quot;)
      {
        $_industries = selectList (&#39;Industry&#39;, &#39;&#39;);
        $_countries = selectList (&#39;Country&#39;, &#39;&#39;);
      }
    }

    if ($_form == &quot;login&quot;)
    {
      $_sid = &quot;&quot;;
      $_realm = &quot;&quot;;
    }
  ?&gt;
  &lt;body&gt;
    &lt;div id=&quot;cDiv&quot; style=&quot;position: absolute; visibility: hidden; background-color: white; z-index: 10;&quot;&gt;
    &lt;/div&gt;
    &lt;form name=&quot;page_form&quot; method=&quot;post&quot; action=&quot;users.php&quot;&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;sid&quot; id=&quot;sid&quot; value=&quot;&lt;?php print($_sid); ?&gt;&quot; /&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;realm&quot; id=&quot;realm&quot; value=&quot;&lt;?php print($_realm); ?&gt;&quot; /&gt;
      &lt;input type=&quot;hidden&quot; name=&quot;form&quot; id=&quot;form&quot; value=&quot;&lt;?php print($_form); ?&gt;&quot; /&gt;
      &lt;div id=&quot;ob&quot;&gt;
        &lt;div id=&quot;ob_left&quot;&gt;&lt;a href=&quot;/ods/?sid=&lt;?php print($_sid); ?&gt;&amp;realm=&lt;?php print($_realm); ?&gt;&quot;&gt;ODS Home&lt;/a&gt; &gt; &lt;?php outFormTitle($_form); ?&gt;&lt;/div&gt;
        &lt;?php
          if ($_form &lt;&gt; &#39;login&#39;)
          {
        ?&gt;
        &lt;div id=&quot;ob_right&quot;&gt;&lt;a href=&quot;#&quot; onclick=&quot;javascript: return logoutSubmit2();&quot;&gt;Logout&lt;/a&gt;&lt;/div&gt;
        &lt;?php
          }
        ?&gt;
      &lt;/div&gt;
      &lt;div id=&quot;MD&quot;&gt;
        &lt;table cellspacing=&quot;0&quot;&gt;
          &lt;tr&gt;
            &lt;td&gt;
              &lt;img style=&quot;margin: 60px;&quot; src=&quot;/ods/images/odslogo_200.png&quot; /&gt;&lt;br /&gt;
              &lt;div id=&quot;ob_links&quot; style=&quot;display: none; margin-left: 60px;&quot;&gt;
                &lt;a id=&quot;ob_links_foaf&quot; href=&quot;#&quot;&gt;
                  &lt;img border=&quot;0&quot; alt=&quot;FOAF&quot; src=&quot;/ods/images/foaf.gif&quot;/&gt;
                &lt;/a&gt;
              &lt;/div&gt;
            &lt;/td&gt;
            &lt;td&gt;
              &lt;?php
              if ($_form == &#39;login&#39;)
              {
              ?&gt;
              &lt;div id=&quot;lf&quot; class=&quot;form&quot;&gt;
                &lt;?php
                  if ($_error &lt;&gt; &#39;&#39;)
                  {
                    print &quot;&lt;div class=\&quot;error\&quot;&gt;&quot;.$_error.&quot;&lt;/div&gt;&quot;;
                  }
                ?&gt;
                &lt;div class=&quot;header&quot;&gt;
                  Enter your Member ID and Password
                &lt;/div&gt;
                &lt;table class=&quot;form&quot; cellspacing=&quot;5&quot;&gt;
                  &lt;tr&gt;
                    &lt;th width=&quot;30%&quot;&gt;
                      &lt;label for=&quot;lf_uid&quot;&gt;Member ID&lt;/label&gt;
                    &lt;/th&gt;
                    &lt;td nowrap=&quot;nowrap&quot;&gt;
                      &lt;input type=&quot;text&quot; name=&quot;lf_uid&quot; value=&quot;&quot; id=&quot;lf_uid&quot; /&gt;
                    &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                    &lt;th&gt;
                      &lt;label for=&quot;lf_password&quot;&gt;Password&lt;/label&gt;
                    &lt;/th&gt;
                    &lt;td nowrap=&quot;nowrap&quot;&gt;
                      &lt;input type=&quot;password&quot; name=&quot;lf_password&quot; value=&quot;&quot; id=&quot;lf_password&quot; /&gt;
                    &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                    &lt;th&gt;
                      or
                    &lt;/th&gt;
                    &lt;td nowrap=&quot;nowrap&quot; /&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                    &lt;th&gt;
                      &lt;label for=&quot;lf_openID&quot;&gt;Login with OpenID&lt;/label&gt;
                    &lt;/th&gt;
                    &lt;td nowrap=&quot;nowrap&quot;&gt;
                      &lt;input type=&quot;text&quot; name=&quot;lf_openID&quot; value=&quot;&quot; id=&quot;lf_openID&quot; class=&quot;openID&quot; style=&quot;width: 220px;&quot;/&gt;
                    &lt;/td&gt;
                  &lt;/tr&gt;
                &lt;/table&gt;
                &lt;div class=&quot;footer&quot;&gt;
                  &lt;input type=&quot;submit&quot; name=&quot;lf_login&quot; value=&quot;Login&quot; id=&quot;lf_login&quot; onclick=&quot;javascript: return lfLoginSubmit2();&quot; /&gt;
                &lt;/div&gt;
              &lt;/div&gt;

              &lt;?php
              }
              if ($_form == &#39;user&#39;)
              {
              ?&gt;

              &lt;div id=&quot;uf&quot; class=&quot;form&quot;&gt;
                &lt;div class=&quot;header&quot;&gt;
                  User profile
                &lt;/div&gt;
                &lt;table class=&quot;form&quot; cellspacing=&quot;5&quot;&gt;
                  &lt;tr&gt;
                    &lt;th width=&quot;30%&quot;&gt;
                      Login Name
                    &lt;/th&gt;
                    &lt;td nowrap=&quot;nowrap&quot;&gt;
                      &lt;span id=&quot;uf_name&quot;&gt;&lt;?php print($_xml-&gt;name); ?&gt;&lt;/span&gt;
                    &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                    &lt;th&gt;
                      E-mail
                    &lt;/th&gt;
                    &lt;td nowrap=&quot;nowrap&quot;&gt;
                      &lt;span id=&quot;uf_mail&quot;&gt;&lt;?php print($_xml-&gt;mail); ?&gt;&lt;/span&gt;
                    &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                    &lt;th&gt;
                      Title
                    &lt;/th&gt;
                    &lt;td nowrap=&quot;nowrap&quot;&gt;
                      &lt;span id=&quot;uf_title&quot;&gt;&lt;?php print($_xml-&gt;title); ?&gt;&lt;/span&gt;
                    &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                    &lt;th&gt;
                      First Name
                    &lt;/th&gt;
                    &lt;td nowrap=&quot;nowrap&quot;&gt;
                      &lt;span id=&quot;uf_firstName&quot;&gt;&lt;?php print($_xml-&gt;firstName); ?&gt;&lt;/span&gt;
                    &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                    &lt;th&gt;
                      Last Name
                    &lt;/th&gt;
                    &lt;td nowrap=&quot;nowrap&quot;&gt;
                      &lt;span id=&quot;uf_lastName&quot;&gt;&lt;?php print($_xml-&gt;lastName); ?&gt;&lt;/span&gt;
                    &lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                    &lt;th&gt;
                      Full Name
                    &lt;/th&gt;
                    &lt;td nowrap=&quot;nowrap&quot;&gt;
                      &lt;span id=&quot;uf_fullName&quot;&gt;&lt;?php print($_xml-&gt;fullName); ?&gt;&lt;/span&gt;
                    &lt;/td&gt;
                  &lt;/tr&gt;
                &lt;/table&gt;
                &lt;div class=&quot;footer&quot;&gt;
                  &lt;input type=&quot;submit&quot; name=&quot;uf_profile&quot; value=&quot;Edit Profile&quot; /&gt;
                &lt;/div&gt;
              &lt;/div&gt;

              &lt;?php
              }
              if ($_form == &#39;profile&#39;)
              {
              ?&gt;

              &lt;div id=&quot;pf&quot; class=&quot;form&quot; style=&quot;width: 800px;&quot;&gt;
                &lt;?php
                  if ($_error &lt;&gt; &#39;&#39;)
                  {
                    print &quot;&lt;div class=\&quot;error\&quot;&gt;&quot;.$_error.&quot;&lt;/div&gt;&quot;;
                  }
                ?&gt;
                &lt;div class=&quot;header&quot;&gt;
                  Update user profile
                &lt;/div&gt;
                &lt;ul id=&quot;tabs&quot;&gt;
                  &lt;li id=&quot;tab_0&quot; title=&quot;Personal&quot;&gt;Personal&lt;/li&gt;
                  &lt;li id=&quot;tab_1&quot; title=&quot;Contact&quot;&gt;Contact&lt;/li&gt;
                  &lt;li id=&quot;tab_2&quot; title=&quot;Home&quot;&gt;Home&lt;/li&gt;
                  &lt;li id=&quot;tab_3&quot; title=&quot;Business&quot;&gt;Business&lt;/li&gt;
                  &lt;li id=&quot;tab_4&quot; title=&quot;Security&quot;&gt;Security&lt;/li&gt;
                &lt;/ul&gt;
                &lt;div style=&quot;min-height: 180px; border: 1px solid #aaa; margin: -13px 5px 5px 5px;&quot;&gt;
                  &lt;div id=&quot;content&quot;&gt;&lt;/div&gt;

                  &lt;div id=&quot;page_0&quot;&gt;
                    &lt;table class=&quot;form&quot; cellspacing=&quot;5&quot;&gt;
                      &lt;tr&gt;
                        &lt;th width=&quot;30%&quot; nowrap=&quot;nowrap&quot;&gt;
                          &lt;label for=&quot;pf_title&quot;&gt;Title&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;select name=&quot;pf_title&quot; id=&quot;pf_title&quot;&gt;
                            &lt;option&gt;&lt;/option&gt;s
                            &lt;?php
                              $X = array (&quot;Mr&quot;, &quot;Mrs&quot;, &quot;Dr&quot;, &quot;Ms&quot;);
                              for ($N = 0; $N &lt; count ($X); $N += 1)
                                print sprintf(&quot;&lt;option %s&gt;%s&lt;/option&gt;&quot;, ((strcmp($X[$N], $_xml-&gt;title) == 0) ? &quot;selected=\&quot;selected\&quot;&quot; : &quot;&quot;), $X[$N]);
                            ?&gt;
                          &lt;/select&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_firstName&quot;&gt;First Name&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_firstName&quot; value=&quot;&lt;?php print($_xml-&gt;firstName); ?&gt;&quot; id=&quot;pf_firstName&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_lastName&quot;&gt;Last Name&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_lastName&quot; value=&quot;&lt;?php print($_xml-&gt;lastName); ?&gt;&quot; id=&quot;pf_lastName&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_fullName&quot;&gt;Full Name&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_fullName&quot; value=&quot;&lt;?php print($_xml-&gt;fullName); ?&gt;&quot; id=&quot;pf_fullName&quot; size=&quot;60&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_mail&quot;&gt;E-mail&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_mail&quot; value=&quot;&lt;?php print($_xml-&gt;mail); ?&gt;&quot; id=&quot;pf_mail&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_gender&quot;&gt;Gender&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;select name=&quot;pf_gender&quot; value=&quot;&quot; id=&quot;pf_gender&quot;&gt;
                            &lt;option&gt;&lt;/option&gt;
                            &lt;?php
                              $X = array (&quot;Male&quot;, &quot;Female&quot;);
                              for ($N = 0; $N &lt; count ($X); $N += 1)
                                print sprintf(&quot;&lt;option value=\&quot;%s\&quot; %s&gt;%s&lt;/option&gt;&quot;, strtolower($X[$N]), ((strcmp(strtolower($X[$N]), $_xml-&gt;gender) == 0) ? &quot;selected=\&quot;selected\&quot;&quot;: &quot;&quot;), $X[$N]);
                            ?&gt;
                          &lt;/select&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_birthday&quot;&gt;Birthday&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input name=&quot;pf_birthday&quot; id=&quot;pf_birthday&quot; value=&quot;&lt;?php print($_xml-&gt;birthday); ?&gt;&quot; onclick=&quot;cPopup.select ($(&#39;pf_birthday&#39;), &#39;pf_birthday_select&#39;, &#39;yyyy-MM-dd&#39;);&quot;/&gt;
                          &lt;a href=&quot;#&quot; name=&quot;pf_birthday_select&quot; id=&quot;pf_birthday_select&quot; onclick=&quot;cPopup.select ($(&#39;pf_birthday&#39;), &#39;pf_birthday_select&#39;, &#39;yyyy-MM-dd&#39;); return false;&quot;&gt; &lt;/a&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                    &lt;/table&gt;
                  &lt;/div&gt;

                  &lt;div id=&quot;page_1&quot; style=&quot;display:none;&quot;&gt;
                    &lt;table class=&quot;form&quot; cellspacing=&quot;5&quot;&gt;
                      &lt;tr&gt;
                        &lt;th width=&quot;30%&quot;&gt;
                          &lt;label for=&quot;pf_icq&quot;&gt;ICQ&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_icq&quot; value=&quot;&lt;?php print($_xml-&gt;icq); ?&gt;&quot; id=&quot;pf_icq&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_skype&quot;&gt;Skype&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_skype&quot; value=&quot;&lt;?php print($_xml-&gt;skype); ?&gt;&quot; id=&quot;pf_skype&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_yahoo&quot;&gt;Yahoo&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_yahoo&quot; value=&quot;&lt;?php print($_xml-&gt;yahoo); ?&gt;&quot; id=&quot;pf_yahoo&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_aim&quot;&gt;AIM&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_aim&quot; value=&quot;&lt;?php print($_xml-&gt;aim); ?&gt;&quot; id=&quot;pf_aim&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_msn&quot;&gt;MSN&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_msn&quot; value=&quot;&lt;?php print($_xml-&gt;msn); ?&gt;&quot; id=&quot;pf_msn&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                    &lt;/table&gt;
                  &lt;/div&gt;

                  &lt;div id=&quot;page_2&quot; style=&quot;display:none;&quot;&gt;
                    &lt;table class=&quot;form&quot; cellspacing=&quot;5&quot;&gt;
                      &lt;tr&gt;
                        &lt;th width=&quot;30%&quot;&gt;
                          &lt;label for=&quot;pf_homecountry&quot;&gt;Country&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td nowrap=&quot;nowrap&quot;&gt;
                          &lt;select name=&quot;pf_homecountry&quot; id=&quot;pf_homecountry&quot; onchange=&quot;javascript: return updateState(&#39;pf_homecountry&#39;, &#39;pf_homestate&#39;);&quot; style=&quot;width: 220px;&quot;&gt;
                            &lt;option&gt;&lt;/option&gt;
                            &lt;?php
                              for ($N = 1; $N &lt;= count ($_countries); $N += 1)
                                print sprintf(&quot;&lt;option %s&gt;%s&lt;/option&gt;&quot;, ((strcmp($_countries[$N], $_xml-&gt;homeCountry) == 0) ? &quot;selected=\&quot;selected\&quot;&quot; : &quot;&quot;), $_countries[$N]);
                            ?&gt;
                          &lt;/select&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_homestate&quot;&gt;State/Province&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;span id=&quot;span_pf_homestate&quot;&gt;
                            &lt;script type=&quot;text/javascript&quot;&gt;
                              OAT.MSG.attach(OAT, OAT.MSG.OAT_LOAD, function (){updateState(&quot;pf_homecountry&quot;, &quot;pf_homestate&quot;, &quot;&lt;?php print($_xml-&gt;homeState); ?&gt;&quot;);});
                            &lt;/script&gt;
                          &lt;/span&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_homecity&quot;&gt;City/Town&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_homecity&quot; value=&quot;&lt;?php print($_xml-&gt;homeCity); ?&gt;&quot; id=&quot;pf_homecity&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_homecode&quot;&gt;Zip/Postal Code&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_homecode&quot; value=&quot;&lt;?php print($_xml-&gt;homeCode); ?&gt;&quot; id=&quot;pf_homecode&quot; style=&quot;width: 220px;&quot;/&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_homeaddress1&quot;&gt;Address1&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td nowrap=&quot;nowrap&quot;&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_homeaddress1&quot; value=&quot;&lt;?php print($_xml-&gt;homeAddress1); ?&gt;&quot; id=&quot;pf_homeaddress1&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_homeaddress2&quot;&gt;Address2&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td nowrap=&quot;nowrap&quot;&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_homeaddress2&quot; value=&quot;&lt;?php print($_xml-&gt;homeAddress2); ?&gt;&quot; id=&quot;pf_homeaddress2&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_homeTimezone&quot;&gt;Time-Zone&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;select name=&quot;pf_homeTimezone&quot; id=&quot;pf_homeTimezone&quot;&gt;
                            &lt;?php
                              for ($N = -12; $N &lt;= 12; $N += 1)
                                print sprintf(&quot;&lt;option value=\&quot;%d\&quot; %s&gt;GMT %d:00&lt;/option&gt;&quot;, $N, (($N == $_xml-&gt;homeTimezone) ? &quot;selected=\&quot;selected\&quot;&quot; : &quot;&quot;), $N);
                            ?&gt;
                          &lt;/select&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_homelat&quot;&gt;Latitude&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td nowrap=&quot;nowrap&quot;&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_homelat&quot; value=&quot;&lt;?php print($_xml-&gt;homeLatitude); ?&gt;&quot; id=&quot;pf_homelat&quot; /&gt;
                          &lt;label&gt;
                            &lt;input type=&quot;checkbox&quot; name=&quot;pf_homeDefaultMapLocation&quot; id=&quot;pf_homeDefaultMapLocation&quot; onclick=&quot;javascript: setDefaultMapLocation(&#39;home&#39;, &#39;business&#39;);&quot; /&gt;
                            Default Map Location
                          &lt;/label&gt;
                        &lt;td&gt;
                      &lt;tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_homelng&quot;&gt;Longitude&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_homelng&quot; value=&quot;&lt;?php print($_xml-&gt;homeLongitude); ?&gt;&quot; id=&quot;pf_homelng&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_homePhone&quot;&gt;Phone&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_homePhone&quot; value=&quot;&lt;?php print($_xml-&gt;homePhone); ?&gt;&quot; id=&quot;pf_homePhone&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_homeMobile&quot;&gt;Mobile&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_homeMobile&quot; value=&quot;&lt;?php print($_xml-&gt;homeMobile); ?&gt;&quot; id=&quot;pf_homeMobile&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                    &lt;/table&gt;
                  &lt;/div&gt;

                  &lt;div id=&quot;page_3&quot; style=&quot;display:none;&quot;&gt;
                    &lt;table class=&quot;form&quot; cellspacing=&quot;5&quot;&gt;
                      &lt;tr&gt;
                        &lt;th width=&quot;30%&quot;&gt;
                          &lt;label for=&quot;pf_businessIndustry&quot;&gt;Industry&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;select name=&quot;pf_businessIndustry&quot; id=&quot;pf_businessIndustry&quot;&gt;
                            &lt;option&gt;&lt;/option&gt;
                            &lt;?php
                              for ($N = 1; $N &lt;= count ($_industries); $N += 1)
                                print sprintf(&quot;&lt;option %s&gt;%s&lt;/option&gt;&quot;, ((strcmp($_industries[$N], $_xml-&gt;businessIndustry) == 0) ? &quot;selected=\&quot;selected\&quot;&quot; : &quot;&quot;), $_industries[$N]);
                            ?&gt;
                          &lt;/select&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessOrganization&quot;&gt;Organization&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businessOrganization&quot; value=&quot;&lt;?php print($_xml-&gt;businessOrganization); ?&gt;&quot; id=&quot;pf_businessOrganization&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessHomePage&quot;&gt;Organization Home Page&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td nowrap=&quot;nowrap&quot;&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businessHomePage&quot; value=&quot;&lt;?php print($_xml-&gt;businessHomePage); ?&gt;&quot; id=&quot;pf_businessNetwork&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessJob&quot;&gt;Job Title&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businessJob&quot; value=&quot;&lt;?php print($_xml-&gt;businessJob); ?&gt;&quot; id=&quot;pf_businessJob&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businesscountry&quot;&gt;Country&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;select name=&quot;pf_businesscountry&quot; id=&quot;pf_businesscountry&quot; onchange=&quot;javascript: return updateState(&#39;pf_businesscountry&#39;, &#39;pf_businessstate&#39;);&quot; style=&quot;width: 220px;&quot;&gt;
                            &lt;option&gt;&lt;/option&gt;
                            &lt;?php
                              for ($N = 1; $N &lt;= count ($_countries); $N += 1)
                                print sprintf(&quot;&lt;option %s&gt;%s&lt;/option&gt;&quot;, ((strcmp($_countries[$N], $_xml-&gt;businessCountry) == 0) ? &quot;selected=\&quot;selected\&quot;&quot; : &quot;&quot;), $_countries[$N]);
                            ?&gt;
                          &lt;/select&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessstate&quot;&gt;State/Province&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;span id=&quot;span_pf_businessstate&quot;&gt;
                            &lt;script type=&quot;text/javascript&quot;&gt;
                              OAT.MSG.attach(OAT, OAT.MSG.OAT_LOAD, function (){updateState(&quot;pf_businesscountry&quot;, &quot;pf_businessstate&quot;, &quot;&lt;?php print($_xml-&gt;businessState); ?&gt;&quot;);});
                            &lt;/script&gt;
                          &lt;/span&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businesscity&quot;&gt;City/Town&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businesscity&quot; value=&quot;&lt;?php print($_xml-&gt;businessCity); ?&gt;&quot; id=&quot;pf_businesscity&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businesscode&quot;&gt;Zip/Postal Code&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businesscode&quot; value=&quot;&lt;?php print($_xml-&gt;businessCode); ?&gt;&quot; id=&quot;pf_businesscode&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessaddress1&quot;&gt;Address1&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businessaddress1&quot; value=&quot;&lt;?php print($_xml-&gt;businessAddress1); ?&gt;&quot; id=&quot;pf_businessaddress1&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessaddress2&quot;&gt;Address2&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businessaddress2&quot; value=&quot;&lt;?php print($_xml-&gt;businessAddress2); ?&gt;&quot; id=&quot;pf_businessaddress2&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessTimezone&quot;&gt;Time-Zone&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;select name=&quot;pf_businessTimezone&quot; id=&quot;pf_businessTimezone&quot; style=&quot;width: 220px;&quot;&gt;
                            &lt;?php
                              for ($N = -12; $N &lt;= 12; $N += 1)
                                print sprintf(&quot;&lt;option value=\&quot;%d\&quot; %s&gt;GMT %d:00&lt;/option&gt;&quot;, $N, (($N == $_xml-&gt;businessTimezone) ? &quot;selected=\&quot;selected\&quot;&quot;: &quot;&quot;), $N);
                            ?&gt;
                          &lt;/select&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businesslat&quot;&gt;Latitude&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businesslat&quot; value=&quot;&lt;?php print($_xml-&gt;businessLatitude); ?&gt;&quot; id=&quot;pf_businesslat&quot; /&gt;
                          &lt;label&gt;
                            &lt;input type=&quot;checkbox&quot; name=&quot;pf_businessDefaultMapLocation&quot; id=&quot;pf_businessDefaultMapLocation&quot; onclick=&quot;javascript: setDefaultMapLocation(&#39;business&#39;, &#39;home&#39;);&quot; /&gt;
                            Default Map Location
                          &lt;/label&gt;
                        &lt;td&gt;
                      &lt;tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businesslng&quot;&gt;Longitude&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businesslng&quot; value=&quot;&lt;?php print($_xml-&gt;businessLongitude); ?&gt;&quot; id=&quot;pf_businesslng&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessPhone&quot;&gt;Phone&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businessPhone&quot; value=&quot;&lt;?php print($_xml-&gt;businessPhone); ?&gt;&quot; id=&quot;pf_businessPhone&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessMobile&quot;&gt;Mobile&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businessMobile&quot; value=&quot;&lt;?php print($_xml-&gt;businessMobile); ?&gt;&quot; id=&quot;pf_businessMobile&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessRegNo&quot;&gt;VAT Reg number (EU only) or Tax ID&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businessRegNo&quot; value=&quot;&lt;?php print($_xml-&gt;businessRegNo); ?&gt;&quot; id=&quot;pf_businessRegNo&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessCareer&quot;&gt;Career / Organization Status&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;select name=&quot;pf_businessCareer&quot; id=&quot;pf_businessCareer&quot; style=&quot;width: 220px;&quot;&gt;
                            &lt;option /&gt;
                            &lt;?php
                              $X = array (&quot;Job seeker-Permanent&quot;, &quot;Job seeker-Temporary&quot;, &quot;Job seeker-Temp/perm&quot;, &quot;Employed-Unavailable&quot;, &quot;Employer&quot;, &quot;Agency&quot;, &quot;Resourcing supplier&quot;);
                              for ($N = 0; $N &lt; count ($X); $N += 1)
                                print sprintf(&quot;&lt;option %s&gt;%s&lt;/option&gt;&quot;, ((strcmp($X[$N], $_xml-&gt;businessCareer) == 0) ? &quot;selected=\&quot;selected\&quot;&quot; : &quot;&quot;), $X[$N]);
                            ?&gt;
                          &lt;/select&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessEmployees&quot;&gt;No. of Employees&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;select name=&quot;pf_businessEmployees&quot; id=&quot;pf_businessEmployees&quot; style=&quot;width: 220px;&quot;&gt;
                            &lt;option /&gt;
                            &lt;?php
                              $X = array (&quot;1-100&quot;, &quot;101-250&quot;, &quot;251-500&quot;, &quot;501-1000&quot;, &quot;&gt;1000&quot;);
                              for ($N = 0; $N &lt; count ($X); $N += 1)
                                print sprintf(&quot;&lt;option %s&gt;%s&lt;/option&gt;&quot;, ((strcmp($X[$N], $_xml-&gt;businessEmployees) == 0) ? &quot;selected=\&quot;selected\&quot;&quot; : &quot;&quot;), $X[$N]);
                            ?&gt;
                          &lt;/select&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessVendor&quot;&gt;Are you a technology vendor&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;select name=&quot;pf_businessVendor&quot; id=&quot;pf_businessVendor&quot; style=&quot;width: 220px;&quot;&gt;
                            &lt;option /&gt;
                            &lt;?php
                              $X = array (&quot;Not a Vendor&quot;, &quot;Vendor&quot;, &quot;VAR&quot;, &quot;Consultancy&quot;);
                              for ($N = 0; $N &lt; count ($X); $N += 1)
                                print sprintf(&quot;&lt;option %s&gt;%s&lt;/option&gt;&quot;, ((strcmp($X[$N], $_xml-&gt;businessVendor) == 0) ? &quot;selected=\&quot;selected\&quot;&quot; : &quot;&quot;), $X[$N]);
                            ?&gt;
                          &lt;/select&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessService&quot;&gt;If so, what technology and/or service do you provide?&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;select name=&quot;pf_businessService&quot; id=&quot;pf_businessService&quot; style=&quot;width: 220px;&quot;&gt;
                            &lt;option /&gt;
                            &lt;?php
                              $X = array (&quot;Enterprise Data Integration&quot;, &quot;Business Process Management&quot;, &quot;Other&quot;);
                              for ($N = 0; $N &lt; count ($X); $N += 1)
                                print sprintf(&quot;&lt;option %s&gt;%s&lt;/option&gt;&quot;, ((strcmp($X[$N], $_xml-&gt;businessService) == 0) ? &quot;selected=\&quot;selected\&quot;&quot; : &quot;&quot;), $X[$N]);
                            ?&gt;
                          &lt;/select&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessOther&quot;&gt;Other Technology service&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businessOther&quot; value=&quot;&lt;?php print($_xml-&gt;businessOther); ?&gt;&quot; id=&quot;pf_businessOther&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessNetwork&quot;&gt;Importance of OpenLink Network for you&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_businessNetwork&quot; value=&quot;&lt;?php print($_xml-&gt;businessNetwork); ?&gt;&quot; id=&quot;pf_businessNetwork&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_businessResume&quot;&gt;Resume&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td&gt;
                          &lt;textarea name=&quot;pf_businessResume&quot; id=&quot;pf_businessResume&quot; style=&quot;width: 220px;&quot;&gt;&lt;?php print($_xml-&gt;businessResume); ?&gt;&lt;/textarea&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                    &lt;/table&gt;
                  &lt;/div&gt;

                  &lt;div id=&quot;page_4&quot; style=&quot;display:none;&quot;&gt;
                    &lt;table class=&quot;form&quot; cellspacing=&quot;5&quot;&gt;
                      &lt;tr&gt;
                        &lt;td align=&quot;center&quot; colspan=&quot;2&quot;&gt;
                          &lt;span id=&quot;pf_change_txt&quot;&gt;&lt;/span&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th style=&quot;text-align: left; background-color: #F6F6F6;&quot; colspan=&quot;2&quot;&gt;
                          Password Settings
                        &lt;/th&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th width=&quot;30%&quot; nowrap=&quot;nowrap&quot;&gt;
                          &lt;label for=&quot;pf_oldPassword&quot;&gt;Old Password&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td nowrap=&quot;nowrap&quot;&gt;
                          &lt;input type=&quot;password&quot; name=&quot;pf_oldPassword&quot; value=&quot;&quot; id=&quot;pf_oldPassword&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_newPassword&quot;&gt;New Password&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td nowrap=&quot;nowrap&quot;&gt;
                          &lt;input type=&quot;password&quot; name=&quot;pf_newPassword&quot; value=&quot;&quot; id=&quot;pf_newPassword&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_password&quot;&gt;Repeat Password&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td nowrap=&quot;nowrap&quot;&gt;
                          &lt;input type=&quot;password&quot; name=&quot;pf_newPassword2&quot; value=&quot;&quot; id=&quot;pf_newPassword2&quot; /&gt;
                          &lt;input type=&quot;button&quot; name=&quot;pf_change&quot; value=&quot;Change&quot; onclick=&quot;javascript: return pfChangeSubmit();&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th style=&quot;text-align: left; background-color: #F6F6F6;&quot; colspan=&quot;2&quot;&gt;
                          Password Recovery
                        &lt;/th&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_securitySecretQuestion&quot;&gt;Secret Question&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td nowrap=&quot;nowrap&quot;&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_securitySecretQuestion&quot; value=&quot;&lt;?php print($_xml-&gt;securitySecretQuestion); ?&gt;&quot; id=&quot;pf_securitySecretQuestion&quot; style=&quot;width: 220px;&quot; /&gt;
                          &lt;select name=&quot;pf_secretQuestion_select&quot; value=&quot;&quot; id=&quot;pf_secretQuestion_select&quot; onchange=&quot;setSecretQuestion ();&quot; style=&quot;width: 220px;&quot;&gt;
                            &lt;option value=&quot;&quot;&gt;~pick predefined~&lt;/option&gt;
                            &lt;option value=&quot;First Car&quot;&gt;First Car&lt;/option&gt;
                            &lt;option value=&quot;Mothers Maiden Name&quot;&gt;Mothers Maiden Name&lt;/option&gt;
                            &lt;option value=&quot;Favorite Pet&quot;&gt;Favorite Pet&lt;/option&gt;
                            &lt;option value=&quot;Favorite Sports Team&quot;&gt;Favorite Sports Team&lt;/option&gt;
                          &lt;/select&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_securitySecretAnswer&quot;&gt;Secret Answer&lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td nowrap=&quot;nowrap&quot;&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_securitySecretAnswer&quot; value=&quot;&lt;?php print($_xml-&gt;securitySecretAnswer); ?&gt;&quot; id=&quot;pf_securitySecretAnswer&quot; style=&quot;width: 220px;&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th style=&quot;text-align: left; background-color: #F6F6F6;&quot; colspan=&quot;2&quot;&gt;
                          Applications restrictions
                        &lt;/th&gt;
                      &lt;/tr&gt;
                      &lt;tr&gt;
                        &lt;th&gt;
                          &lt;label for=&quot;pf_securitySiocLimit&quot;&gt;SIOC Query Result Limit  &lt;/label&gt;
                        &lt;/th&gt;
                        &lt;td nowrap=&quot;nowrap&quot;&gt;
                          &lt;input type=&quot;text&quot; name=&quot;pf_securitySiocLimit&quot; value=&quot;&lt;?php print($_xml-&gt;securitySiocLimit); ?&gt;&quot; id=&quot;pf_securitySiocLimit&quot; /&gt;
                        &lt;/td&gt;
                      &lt;/tr&gt;
                    &lt;/table&gt;
                  &lt;/div&gt;

                &lt;/div&gt;
                &lt;div class=&quot;footer&quot;&gt;
                  &lt;input type=&quot;submit&quot; name=&quot;pf_update&quot; value=&quot;Update&quot; /&gt;
                  &lt;input type=&quot;submit&quot; name=&quot;pf_cancel&quot; value=&quot;Cancel&quot; /&gt;
                &lt;/div&gt;
              &lt;/div&gt;
              &lt;?php
              }
              ?&gt;
            &lt;/td&gt;
          &lt;/tr&gt;
        &lt;/table&gt;
      &lt;/div&gt;
    &lt;/form&gt;
    &lt;div id=&quot;FT&quot;&gt;
      &lt;div id=&quot;FT_L&quot;&gt;
        &lt;a href=&quot;http://www.openlinksw.com/virtuoso&quot;&gt;&lt;img alt=&quot;Powered by OpenLink Virtuoso Universal Server&quot; src=&quot;/ods/images/virt_power_no_border.png&quot; border=&quot;0&quot; /&gt;&lt;/a&gt;
      &lt;/div&gt;
      &lt;div id=&quot;FT_R&quot;&gt;
        &lt;a href=&quot;/ods/faq.html&quot;&gt;FAQ&lt;/a&gt; | &lt;a href=&quot;/ods/privacy.html&quot;&gt;Privacy&lt;/a&gt; | &lt;a href=&quot;/ods/rabuse.vspx&quot;&gt;Report Abuse&lt;/a&gt;
        &lt;div&gt;
          Copyright © 1999-2009 OpenLink Software
        &lt;/div&gt;
      &lt;/div&gt;
     &lt;/div&gt;
  &lt;/body&gt;
&lt;/html&gt;
</programlisting></section></docbook>