Location: PHPKode > projects > Tbroot Business Management Portal > tbroot/users.html
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
   <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
   <meta name="Author" content="Dr. Theodore Diggers">
   <meta name="GENERATOR" content="Mozilla/4.79 [en] (Windows NT 5.0; U) [Netscape]">
   <title>User Setting Form Modification Schema</title>
</head>
<body>
&nbsp;

<!-- Now that I've learned XML, this custom tagging scheme seems a bit
antiquated and more work than I needed to do, but it isn'.  The  initial purpose 
to allow insanely easy integration with Dreamweaver type apps still stands 
and wouldn't necesisarily be so easy with XML.  --!>

<!-- This indicates that users.id and preferences.userid are the correleating
values for these two tables (this is what makes the database relational, in
other words, users' preferences are indexed by an id value from the users table)
This specific crossref() instructs the system how to lookup and write to 
the preferences table (i.e. who's preferences do I want to change?) 
Note that each source table must appear once in a crossref() and that
they are one way, i.e. left to right  --!>
[crossref(preferences.userid,users.id)%ignored]

<!-- This could probably be extended to deal with dynamic search/replace/update
functions, but thats not required at this point and could probably be added
on without too much effort.  crossref() exists to specify where data
goes and what values bind distinct tables together into a whole
unit.  If you added some higher power functionality, It WOULD NOT be handled 
by amd() in interface.php though --!>

<!-- If hidden has a parameter, the name of the value is set to that,
without a parameter, the name is that of the dbase field that supplied
the information --!>
[hidden(originalpasshash)%pass]

<!-- This line includes the value of users.id from the datasource since
we're going to need it later to key by (as we've told the system via
a crossref() --!>
[hidden()%id]

<!-- Begin a normal HTML table --!>

<table width="352">
  <tr> 
    <td width="122" align="right" valign="middle">[label()%login]:</td>
    <td width="222">[text()%login]</td>
  </tr>
  <tr> 
    <td align="right" valign="middle">[label()%pass]:</td>
    <td>[password()%pass]</td>
  </tr>
  <tr> 
    <td height="22" align="right" valign="middle">[label()%passagain]:</td>
    <td>[password(pass)%passagain]</td>
  </tr>
  <tr> 
    <td align="right" valign="middle">[label()%emaillogin]:</td>
    <td>[text()%emaillogin]</td>
  </tr>
  <tr> 
    <td height="22" align="right" valign="middle">[label()%emailpass]:</td>
    <td>[password()%emailpass]</td>
  </tr>
</table>

<table>
  <tr> 
    <td width="167" align="right" valign="middle">[label()%firstname]:</td>
    <td width="208">[text()%firstname]</td>
  </tr>
  <tr> 
    <td align="right" valign="middle">[label()%lastname]:</td>
    <td>[text()%lastname]</td>
  </tr>
  <tr> 
    <td align="right" valign="middle">[label()%organization]:</td>
    <td>[text()%organization]</td>
  </tr>
  <tr> 
    <td align="right" valign="middle">[label()%email]:</td>
    <td>[text(30)%email]</td>
  </tr>
  <tr> 
    <td align="right" valign="middle">[label()%ssn]:</td>
    <td>[multifield(-,3,2,4)%ssn]</td>
  </tr>
  <tr> 
    <td align="right" valign="middle">[label()%dob]:</td>
    <td>[date(/,2,2,4)%dob]</td>
  </tr>
  <tr> 
    <td align="right" valign="middle">[label()%phone]:</td>
    <td valign="middle">[phone(-,3,3,4)%phone]</td>
  </tr>
  <tr> 
    <td align="right" valign="middle">[label()%fax]:</td>
    <td>[phone(-,3,3,4)%fax]</td>
  </tr>
  <tr> 
    <td align="right" valign="middle">[label()%mute]:</td>
    <td>[checkbox()%mute]</td>
  </tr>
  <tr>
    <td align="right" valign="middle">[label()%forum_icon]:</td>
    <td>[text()%forum_icon]</td>
  </tr>
  <tr> 
    <td align="right" valign="middle">[label()%address]:</td>
    <td>[textarea(3,30)%address]</td>
  </tr>
</table>
<table>
  <tr> 
    <td width="85" align="right" valign="middle">[label()%city]:</td>
    <td width="76" align="left" valign="middle">[text()%city]</td>
    <td width="92" align="right">[label()%state]:</td>
    <td width="347" align="left">[menu(Missouri:MO,Illinois:IL,Kansas:KS)%state]</td>
  </tr>
</table>
<table>
  <tr> 
    <td colspan="2" align="right" valign="middle">[label()%zip]:</td>
    <td width="107" align="left">[text(10)%zip]</td>
  </tr>
  <tr> 
    <td colspan="2" align="right" valign="middle">[label()%country]:</td>
    <td align="left">[text()%country]</td>
  </tr>
</table>
<table>
  <tr> 
    <td align="right" valign="middle">[label()%level]:</td>
    <td>[radioarray(User:0,Client:1,Employee:2,Developer:3,Board Member:4,System Administrator:5)%level]</td>
  </tr>
</table>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
Return current item: Tbroot Business Management Portal