1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96
|
<?php
include './common.php';
include './header.php';
?>
<body>
<h3 class="title">Create Object</h3>
<h3 class="subtitle">On server 'Demo LDAP Server', using template 'Person'</h3>
<script language="javascript">
<!--
function autoFillCn( form )
{
var givenName;
var sn;
var cn;
givenName = form.givenName.value;
sn = form.sn.value;
cn = givenName + ' ' + sn;
form.cn.value = cn;
}
-->
</script>
<center>
<h2 style="margin:0px">New Person Entry</h2>
</center>
<form action="create.php" method="post">
<center>
<table class="confirm">
<tr class="spacer"><td colspan="3"></tr>
<tr>
<td><img src="images/uid.png" /></td>
<td>Personal Information</td>
<td></td>
</tr>
<tr>
<td></td>
<td class="heading">First name:</td>
<td><input type="text" size="30" name="givenName" id="givenName" value="" onChange="autoFillCn(this.form)" /></td>
</tr>
<tr>
<td></td>
<td class="heading">Last name:</td>
<td><input type="text" size="30" name="sn" id="sn" value="" onChange="autoFillCn(this.form)" /></td>
</tr>
<tr>
<td></td>
<td class="heading">Common name:</td>
<td><input type="text" size="30" disabled name="cn" id="cn" value="" /></td>
</tr>
<tr class="spacer"><td colspan="3"></tr>
<tr>
<td><img src="images/uid.png" /></td>
<td>Optional Information</td>
<td></td>
</tr>
<tr>
<td></td>
<td class="heading">Description</td>
<td><textarea rows="5" cols="30" name="description"></textarea></td>
</tr>
<tr>
<td></td>
<td class="heading">Phone</td>
<td><input type="text" name="telephoneNumber" size="10" value="" /></td>
</tr>
<tr>
<td></td>
<td class="heading">Password:</td>
<td><input type="password" name="password" size="10"/></td>
</tr>
<tr>
<td></td>
<td class="heading">Some Fake Attribute:</td>
<td><select name="someFakeAttribute">
<option value="fakevalue1">Fake Value 1</option>
<option selected value="fakevalue2">Fake Value 2</option>
<option value="fakevalue3">Fake Value 3</option>
</td>
</tr>
<tr>
<td colspan="3"><center><br /><input type="submit" value="Proceed >>" /></td>
</tr>
</table>
</center>
</form>
</html>
|