Location: PHPKode > projects > LDAPted > ldapted/templates/std/adapted/forms/demo/person.tpl
{assign var='mode' value='view'}
{if ($action == 'save')}
	{assign var='mode' value='edit'}
{/if}
<tbody>
  <tr>
    <td>
      <table>
        <tr>
          <td class="tile">
            <table>
              <tr>
                <td colspan="2">
                  {$controls.cn->get_view($mode)}
                </td>
              </tr>
              <tr>
                <td>
                  {$controls.givenname->get_view($mode)}
      	       </td>
                <td>
                  {$controls.sn->get_view($mode)}
                </td>
              </tr>
              <tr>
                <td colspan="2">
                  <span class="lightcontrast">Address:</span><br>
                  {$controls.postaladdress->get_view($mode)}
                </td>
              </tr>
              <tr>
                <td colspan="2">
                  <table>
                    <tr>
                      <td>
                        {$controls.postalcode->get_view($mode)}
                      </td>
                      <td>
                        <span class="lightcontrast">City:</span>
                      </td>
                      <td>
                        {$controls.l->get_view($mode)}
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td colspan="2">
                  <!-- $controls.c->get_view($mode) -->
                </td>
              </tr>
            </table>
          </td>
          <td class="tile" align="center">
            {$controls.jpegphoto->get_view($mode)}
          </td>
        </tr>
        <tr>
          <td class="tile">
            <table>
              <tr>
                <td>
                  <span class="lightcontrast">Telephone numbers:</span>
                </td>
              </tr>
              <tr>
                <td>
                  <!-- $controls.telephonenumber->get_view($mode) -->
                </td>
              </tr>
              <tr>
                <td>
                  {$controls.mobile->get_view($mode)}
                </td>
              </tr>
              <tr>
                <td>
                  {$controls.homephone->get_view($mode)}
                </td>
              </tr>
            </table>
          </td>
          <td class="tile">
            {$controls.mail->get_view($mode)}
          </td>
        </tr>
      </table>
    </td>
  </tr>
</tbody>
Return current item: LDAPted