?> &go=y" enctype="multipart/form-data" method="post"> <fieldset> <?php html_text("First Name", "fname", $r->fname, 'required'); html_text("Surname", "sname", $r->sname); html_text("Company Name", "co_name", $r->co_name); customer_select("Customer", "custid", $r->custid); supplier_select("Supplier", "suppid", $r->suppid); html_text("Role", "role", $r->role); html_textarea("Notes", "notes", $r->notes, "notes"); include "/srv/athenace/lib/shared/adds.edit.form.php"; ?> </fieldset> <fieldset class="buttons"> <?php html_button("Save changes"); ?> or <a href="/contacts/" class="cancel" title="Cancel">Cancel</a>
<?php html_text("First Name *", "fname", $_POST['fname']); html_text("Surname", "sname", $_POST['sname']); ?> <h3>Company Details</h3> <?php html_text("Company Name", "co_name", $_POST['co_name']); if (!isset($_POST['custid'])) { $_POST['custid'] = $_GET['custid']; } customer_select("Or", "custid", $_POST['custid']); if (!isset($_POST['suppid'])) { $_POST['suppid'] = $_GET['suppid']; } supplier_select("Or", "suppid", $_POST['suppid']); html_text("Role", "role", $_POST['role']); include "/srv/athenace/lib/shared/adds.add.form.php"; html_textarea("Notes", "notes", $_POST['notes'], "body"); ?> </fieldset> <fieldset class="buttons"> <?php html_button("Save changes"); ?> or <a href="/contacts/" class="cancel" title="Cancel">Cancel</a>