<?xml version='1.0' standalone='yes'?>
-<var:component xmlns="http://www.w3.org/1999/xhtml"
- xmlns:var="http://www.skyrix.com/od/binding"
- xmlns:const="http://www.skyrix.com/od/constant"
- xmlns:uix="OGo:uix"
- xmlns:label="OGo:label"
- className="UIxPageFrame"
- title="name"
+<var:component
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:var="http://www.skyrix.com/od/binding"
+ xmlns:const="http://www.skyrix.com/od/constant"
+ xmlns:uix="OGo:uix"
+ xmlns:label="OGo:label"
+ className="UIxPageFrame"
+ title="name"
>
<style>
table.editsec {
<script language="JavaScript">
<var:string value="jsCopyContactCode" const:escapeHTML="NO" />
+
+ function validateContactEditor() {
+ var e = document.getElementById('email');
+ if (e.value.length == 0)
+ return true;
+ if (uixEmailRegex.test(e.value) != true)
+ return confirm('<var:string label:value="invalidemailwarn"/>');
+ return true;
+ }
</script>
-
- <form var:href="clientObject.baseURL">
+
+ <form var:href="clientObject.baseURL" name="editform"
+ onsubmit="return validateContactEditor()">
<table cellspacing="0" cellpadding="5" width="100%">
<tr>
<td>
<td>
<var:if condition="hasErrorText">
<div style="background-color: #AA0000;">
- <var:string value="errorText" />
+ <var:string value="errorText" />
</div>
<hr />
</var:if>
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <input type="text"
- name="sn"
- id="sn"
- var:value="snapshot.sn"
- size="60"
- />
+ <input type="text" name="sn" id="sn"
+ var:value="snapshot.sn" size="60" />
</span>
</td>
</tr>
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <input type="hidden"
- name="cn"
- id="cn"
- var:value="anaisCN"
- />
- <input type="text"
- name="givenName"
- id="givenName"
- var:value="snapshot.givenName"
- size="60"
- />
+ <input type="hidden" name="cn" id="cn" var:value="anaisCN"/>
+ <input type="text" name="givenName" id="givenName"
+ var:value="snapshot.givenName" size="60" />
</span>
</td>
</tr>
<!-- pamela.schema defines this as 'mobile',
NOT 'mobileTelephoneNumber'
-->
- <input type="text"
- name="mobile"
- id="mobile"
- var:value="snapshot.mobile"
- size="60"
- />
+ <input type="text" name="mobile" id="mobile"
+ var:value="snapshot.mobile" size="60" />
</span>
</td>
</tr>
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <input type="text"
- name="mail"
- id="email"
- var:value="snapshot.mail"
- size="60"
- />
+ <input type="text" name="mail" id="email"
+ var:value="snapshot.mail" size="60" />
</span>
</td>
</tr>
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <input type="text"
- name="departmentNumber"
+ <input type="text" name="departmentNumber"
id="departmentNumber"
- var:value="snapshot.departmentNumber"
- size="60"
- />
+ var:value="snapshot.departmentNumber" size="60" />
</span>
</td>
</tr>
</td>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
- <input type="text"
- name="l"
- id="l"
- var:value="snapshot.l"
- size="60"
- />
+ <input type="text" name="l" id="l" var:value="snapshot.l"
+ size="60" />
</span>
</td>
</tr>
<td align="left" bgcolor="#FFFFF0">
<span class="aptview_text">
<input type="text" name="labeledURI"
- var:value="snapshot.labeledURI"
- size="60" />
+ var:value="snapshot.labeledURI" size="60" />
</span>
</td>
</tr>
clientObject: <var:string value="clientObject" />
</small>
</var:if>
-</var:component>
\ No newline at end of file
+</var:component>
<?xml version='1.0' standalone='yes'?>
-<var:component xmlns="http://www.w3.org/1999/xhtml"
- xmlns:var="http://www.skyrix.com/od/binding"
- xmlns:const="http://www.skyrix.com/od/constant"
- xmlns:uix="OGo:uix"
- xmlns:label="OGo:label"
- className="UIxPageFrame"
- title="name"
+<var:component
+ xmlns="http://www.w3.org/1999/xhtml"
+ xmlns:var="http://www.skyrix.com/od/binding"
+ xmlns:const="http://www.skyrix.com/od/constant"
+ xmlns:uix="OGo:uix"
+ xmlns:label="OGo:label"
+ xmlns:rsrc="OGo:url"
+ className="UIxPageFrame"
+ title="name"
>
<style>
table.contacttableview {
}
</style>
- <table id="skywintable"
- class="wintable"
- cellspacing="0"
- cellpadding="5"
- width="100%"
- >
+ <table id="skywintable" class="wintable" cellspacing="0" cellpadding="5"
+ width="100%">
<tr>
<td class="wintitle">
<table cellpadding="0" cellspacing="0" width="100%">
<table border="0" cellpadding="0" cellspacing="1">
<tr>
<td class="button_auto_env"
- nowrap="true"
- valign="middle"
- align="center"
- >
+ nowrap="true" valign="middle" align="center">
<a class="button_auto"
href="new"
var:queryDictionary="queryParameters"