relentless123 - 2011-08-29

Sure. Below is the editprofile.tpl.php file. The original table based layout
is commented out in the first section, the new div based layout is below.
Thanks for taking a look!

<?php
$this->includeTemplate($GLOBALS['top_include']);
?>
<!--
<form action="<?php echo $formaction; ?>" method="post">
<input type="hidden" name="token" value="<?php echo $token; ?>"/>

<h3><?php echo T_('General Account Details'); ?></h3>

<table class="profile">
<tr>
    <th align="left"><?php echo T_('Username'); ?></th>
    <td><?php echo $user; ?></td>
    <td></td>
</tr>
<tr>
    <th align="left"><?php echo T_('First Name'); ?></th>
    <td><input type="text" name="firstName" size="75" value="<?php echo filter($objectUser->getfirstName(), 'xml'); ?>" /></td>
    <td>← <?php echo T_('Required'); ?></td>
</tr>

<tr>
    <th align="left"><?php echo T_('Last Name'); ?></th>
    <td><input type="text" name="lastName" size="75" value="<?php echo filter($objectUser->getLastName(), 'xml'); ?>" /></td>
    <td>← <?php echo T_('Required'); ?></td>
</tr>
<tr>
    <th align="left"><?php echo T_('Your City'); ?></th>
    <td><input type="text" name="city" size="75" value="<?php echo filter($objectUser->getCity(), 'xml'); ?>" /></td>
    <td>← <?php echo T_('Required'); ?></td>
</tr>
<tr>
    <th align="left"><?php echo T_('New Password'); ?></th>
    <td><input type="password" name="pPass" size="20" /></td>
    <td></td>
</tr>
<tr>
    <th align="left"><?php echo T_('Confirm Password'); ?></th>
    <td><input type="password" name="pPassConf" size="20" /></td>
    <td></td>
</tr>
<tr>
    <th align="left"><?php echo T_('E-mail'); ?></th>
    <td><input type="text" name="pMail" size="75" value="<?php echo filter($objectUser->getEmail(), 'xml'); ?>" /></td>
    <td>← <?php echo T_('Required'); ?></td>
</tr>

</table>

<h3><?php echo T_('Extended Details'); ?></h3>

<table class="profile">
<tr>
    <th align="left"><?php echo T_('Name'); ?></th>
    <td><input type="text" name="pName" size="75" value="<?php echo filter($objectUser->getName(), 'xml'); ?>" /></td>
</tr>
<tr>
    <th align="left"><?php echo T_('Homepage'); ?></th>
    <td><input type="text" name="pPage" size="75" value="<?php echo filter($objectUser->getHomepage()); ?>" /></td>
</tr>
<tr>
    <th align="left"><?php echo T_('Description'); ?></th>
    <td><textarea name="pDesc" cols="75" rows="10"><?php echo $objectUser->getContent(); ?></textarea></td>
</tr>

<tr>
    <th align="left"><?php echo T_('Upload File'); ?></th>
    <td><input type="file" name="pPic" size="" value="<?php echo filter($objectUser->getHomepage()); ?>" /></td>
</tr>
<tr>
    <th></th>
    <td><input type="submit" name="submitted" value="<?php echo T_('Save Changes'); ?>" /></td>
</tr>
</table>

<?php include 'editprofile-sslclientcerts.tpl.php'; ?>
<h3><?php echo T_('Actions'); ?></h3>
<table class="profile">
<tr>
    <th align="left"><?php echo T_('Export bookmarks'); ?></th>
    <td>
    <a href="../api/export_html.php"><?php echo T_('HTML file (for browsers)')?></a> /
    <a href="../api/posts_all.php"><?php echo T_('XML file (like del.icio.us)')?></a> /
    <a href="../api/export_csv.php"><?php echo T_('CSV file (for spreadsheet tools)')?></a>
    </td>
</tr>
<tr><th> </th><td> </td></tr>
<tr><th> </th><td> </td></tr>
</table>

</form> 
-->

<!--This is what is giving me the error. The data is the "values" pulls for the db successfully, I only see the error on submit -->

<form action="<?php echo $formaction; ?>" method="post">
<input type="hidden" name="token" value="<?php echo $token; ?>"/>

<div class="profile">
<h3><?php echo T_('General Account Details'); ?></h3>

<div>
    <label for="user"><?php echo T_('Username'); ?></label>
    <input type="text" id="user" value="<?php echo $user; ?>" disabled="true" />
</div>

<div>
    <label for="firstName"><?php echo T_('Your First Name'); ?></label>
    <input type="text" id="firstName" value="<?php echo filter($objectUser->getFirstName(), 'xml'); ?>" />
</div>

<div>
    <label for="lastName"><?php echo T_('Your Last Name'); ?></label>
    <input type="text" id="lastName" value="<?php echo filter($objectUser->getLastName(), 'xml'); ?>" />
</div>

<div>
    <label for="city"><?php echo T_('Your City'); ?></label>
    <input type="text" id="city" value="<?php echo filter($objectUser->getCity(), 'xml'); ?>" />
</div>

<div>
    <label for="password"><?php echo T_('New Password'); ?></label>
    <input type="password" id="pPass" value="" />
</div>

<div>
    <label for="password"><?php echo T_('Confirm Password'); ?></label>
    <input type="password" id="pPassConf" value="" />
</div>

<div>
    <span class="label">email:</span>
    <input type="text" id="pMail" size="" value="<?php echo filter($objectUser->getEmail(), 'xml'); ?>" />
</div> 
</div> <!--This ends the main profile div -->

<div class="extended profile">
<h3><?php echo T_('Extra details'); ?></h3>

<div>
    <label for="welcomeMessage"><?php echo T_('Welcome Message'); ?></label>
    <textarea id="welcomeMessage" rows="2" cols="25"></textarea>
</div>

<div>
    <label for="pFIle"><?php echo T_('Upload '); ?></label>
    <input type="file" id="pFile" value="" />
</div>

<div>
    <label for="detailedInfo"><?php echo T_('Detailed Information'); ?></label>
    <textarea id="detailedInfo" rows="auto" cols="25"></textarea>
</div>

<div>
<label for="pPic"><?php echo T_('Upload Photo Album Pics'); ?></label>
<input type="file" id="Album1" value="" />
<input type="file" id="Album2" value="" />
<input type="file" id="Album3" value="" />
<input type="file" id="Album4" value="" />
<input type="file" id="Album5" value="" />
<input type="file" id="Album6" value="" />
</div>

<div>
<label for="comments">Sex:</label>
Male: <input type="radio" name="sex" /> Female: <input type="radio" name="sex" /><br />
</div>

<div>
<label for="comments">Hobbies:</label>
<input type="checkbox" name="hobby" /> Tennis<br />
<input type="checkbox" name="hobby" class="threepxfix" /> Reading <br />
<input type="checkbox" name="hobby" class="threepxfix" /> Basketball <br />
</div>

<div>
<label for="comments">More options:</label>
<input type="checkbox" name="hobby" /> Tennis<br />
<input type="checkbox" name="hobby" class="threepxfix" /> Reading <br />
<input type="checkbox" name="hobby" class="threepxfix" /> Basketball <br />
</div>

<div>
<label for="terms">Agree to Terms?</label>
<input type="checkbox" id="terms" class="boxes" />
</div>

<div>
<input type="submit" name="submitted" value="<?php echo T_('Save Changes'); ?>" />
</div>

<h3><?php echo T_('Actions'); ?></h3>
<div><a href="../api/export_html.php"><?php echo T_('HTML file (for browsers)')?></a> /
<?php include 'editprofile-sslclientcerts.tpl.php'; ?></div>

</div> <!--End of the extended profile section -->

</form>

<?php
$this->includeTemplate($GLOBALS['bottom_include']);
?>