Added PUA pages to manage the pua table.

This patch requires that the RLS patch be applied first.

James
diff -ruN ./a/siremis/modules/ser/mod.xml ./b/siremis/modules/ser/mod.xml
--- ./a/siremis/modules/ser/mod.xml     2011-09-01 16:22:48.000000000 +0100
+++ ./b/siremis/modules/ser/mod.xml     2011-09-01 16:19:16.000000000 +0100
@@ -77,12 +77,14 @@
                                        URL="{@home:url}/ser/watchers_list" 
Order="20"/>
                                <MenuItem Name="System.Ser.Prs.Presentity" 
Title="Presentity List" Description=""
                                        URL="{@home:url}/ser/presentity_list" 
Order="30"/>
+                               <MenuItem Name="System.Ser.Prs.Pua" Title="PUA 
List" Description=""
+                                       URL="{@home:url}/ser/pua_list" 
Order="40"/>
                                <MenuItem Name="System.Ser.Prs.RlsWatchers" 
Title="RLS Watchers List" Description=""
-                                       URL="{@home:url}/ser/rls_watchers_list" 
Order="40"/>
+                                       URL="{@home:url}/ser/rls_watchers_list" 
Order="50"/>
                                <MenuItem Name="System.Ser.Prs.RlsPresentity" 
Title="RLS Presentity List" Description=""
-                                       
URL="{@home:url}/ser/rls_presentity_list" Order="50"/>                          
+                                       
URL="{@home:url}/ser/rls_presentity_list" Order="60"/>                          
                                <MenuItem Name="System.Ser.Prs.Xcap" 
Title="XCAP List" Description=""
-                                       URL="{@home:url}/ser/xcap_list" 
Order="60"/>
+                                       URL="{@home:url}/ser/xcap_list" 
Order="70"/>
                        </MenuItem>     
                        <MenuItem Name="System.Ser.Cms" Title="Command 
Services" Parent="System.Ser" Order="70">
                                <MenuItem Name="System.Ser.Cms.Micmds" 
Title="MI Commands" Description=""
diff -ruN ./a/siremis/modules/ser/prs/presence/do/PuaDO.php 
./b/siremis/modules/ser/prs/presence/do/PuaDO.php
--- ./a/siremis/modules/ser/prs/presence/do/PuaDO.php   1970-01-01 
01:00:00.000000000 +0100
+++ ./b/siremis/modules/ser/prs/presence/do/PuaDO.php   2011-09-01 
16:19:16.000000000 +0100
@@ -0,0 +1,78 @@
+<?PHP
+include_once(OPENBIZ_BIN.'data/BizDataObj.php');
+
+class PuaDO extends BizDataObj
+{
+    var $fields = array('expires','desired_expires');
+
+    public function fetch()
+    {
+        $resultRecords = array();
+        $resultSet = $this->_run_search($this->m_Limit);
+        if ($resultSet !== null)
+               {
+                       $recroutefields = 
array('record_route','record_route_detail');
+            while ($recArray = $this->_fetch_record($resultSet))
+                       {
+                               if(isset($recArray[$recroutefields[0]]))
+                               {
+                                       $tmp = $recArray[$recroutefields[0]];
+                                       $tmp = str_replace("<", "&lt;", $tmp);
+                                       $tmp = str_replace(">", "&gt;", $tmp);
+                                       $recArray[$recroutefields[0]] = $tmp;
+                                       $tmp = preg_replace('#([A-Z]+ sip:[^ ]+ 
SIP/2.0)%%#i', '<font color=#336600>${1}</font>%%', $tmp, -1);
+                                       $tmp = preg_replace('#(SIP/2.0 
[1-6][0-9][0-9] [^%]+)%%#i', '<font color=#336600>${1}</font>%%', $tmp, -1);
+                                       $tmp = preg_replace('#%%([^ :%]+): 
(.+)%%#im', '%%<font color=red>$1</font>: $2%%', $tmp, -1, $count);
+                                       while($count>0)
+                                               $tmp = preg_replace('#%%([^ 
:%<]+): (.+)%%#im', '%%<font color=red>$1</font>: $2%%', $tmp, -1, $count);
+                                       $recArray[$recroutefields[1]] = "<pre>" 
. $tmp . "</pre>";
+
+                               }
+                               foreach($this->fields as $datefield)
+                               {
+                                       if(isset($recArray[$datefield]))
+                                       {
+                                               $time = $recArray[$datefield];
+                                               $recArray[$datefield] = 
date('Y-m-d H:i:s',$time);
+                                       }
+                               }
+                $resultRecords[] = $recArray;
+            }
+        }
+        else
+            return null;
+
+        return $resultRecords;
+    }
+
+       public function updateRecord($recArr, $oldRecord=null)
+       {
+               foreach($this->fields as $field)
+               {
+                       if(isset($recArr[$field]))
+                       {
+                               $datetime = explode(' ',$recArr[$field]);
+                               $date = explode('-',$datetime[0]);
+                               $time = explode(':',$datetime[1]);
+                               $recArr[$field] = 
mktime((int)$time[0],(int)$time[1],(int)$time[2],(int)$date[1],(int)$date[2],(int)$date[0]);
+                       }
+               }
+               return parent::updateRecord($recArr, $oldRecord);
+       }
+       
+       public function insertRecord($recArr)
+       {
+               foreach($this->fields as $field)
+               {
+                       if(isset($recArr[$field]))
+                       {
+                               $datetime = explode(' ',$recArr[$field]);
+                               $date = explode('-',$datetime[0]);
+                               $time = explode(':',$datetime[1]);
+                               $recArr[$field] = 
mktime((int)$time[0],(int)$time[1],(int)$time[2],(int)$date[1],(int)$date[2],(int)$date[0]);
+                       }
+               }
+               return parent::insertRecord($recArr);
+       }
+}
+?>
diff -ruN ./a/siremis/modules/ser/prs/presence/do/PuaDO.xml 
./b/siremis/modules/ser/prs/presence/do/PuaDO.xml
--- ./a/siremis/modules/ser/prs/presence/do/PuaDO.xml   1970-01-01 
01:00:00.000000000 +0100
+++ ./b/siremis/modules/ser/prs/presence/do/PuaDO.xml   2011-09-01 
16:19:16.000000000 +0100
@@ -0,0 +1,28 @@
+<?xml version="1.0" standalone="no"?>
+<BizDataObj Name="PuaDO" Description="" Class="ser.prs.presence.do.PuaDO" 
DBName="Serdb" Table="pua" SearchRule="" SortRule="" OtherSQLRule="" 
Uniqueness="pres_uri" Stateless="N" IdGeneration="Identity" CacheLifeTime="0">
+       <BizFieldList>
+        <BizField Name="Id"                                    Column="id"     
                                                                                
                Type="Number"/>
+        <BizField Name="pres_uri"                      Column="pres_uri"       
                Length="128"    Required="Y"    Type="Text"/>
+        <BizField Name="pres_id"                       Column="pres_id"        
                Length="64"             Required="Y"    Type="Text"/>
+        <BizField Name="event"                         Column="event"          
                                                Required="Y"    Type="Number"/>
+        <BizField Name="expires"                       Column="expires"        
                                                Required="Y"    Type="Number"/>
+        <BizField Name="desired_expires"       Column="desired_expires"        
                                Required="Y"    Type="Number"/>
+        <BizField Name="flag"                          Column="flag"           
                                                Required="Y"    Type="Number"/>
+        <BizField Name="etag"                          Column="etag"           
                Length="64"             Required="Y"    Type="Text"/>
+        <BizField Name="tuple_id"                      Column="tuple_id"       
                Length="64"             Required="Y"    Type="Text"/>
+               <BizField Name="watcher_uri"            Column="watcher_uri"    
        Length="128"    Required="Y"    Type="Text"/>
+               <BizField Name="call_id"                        
Column="call_id"                        Length="64"             Required="Y"    
Type="Text"/>
+               <BizField Name="to_tag"                         Column="to_tag" 
                        Length="64"             Required="Y"    Type="Text"/>
+               <BizField Name="from_tag"                       
Column="from_tag"                       Length="64"             Required="Y"    
Type="Text"/>
+               <BizField Name="cseq"                           Column="cseq"   
                                                        Required="Y"    
Type="Number"/>
+               <BizField Name="record_route"           Column="record_route"   
                                        Required="Y"    Type="Text"/>
+               <BizField Name="contact"                        
Column="contact"                        Length="128"    Required="Y"    
Type="Text"/>
+               <BizField Name="remote_contact"         Column="remote_contact" 
        Length="128"    Required="Y"    Type="Text"/>
+               <BizField Name="version"                        
Column="version"                                                        
Required="Y"    Type="Number"/>
+               <BizField Name="extra_headers"          Column="extra_headers"  
                                        Required="Y"    Type="Text"/>
+       </BizFieldList>
+    <TableJoins>
+    </TableJoins>
+    <ObjReferences>
+    </ObjReferences>
+</BizDataObj>
diff -ruN ./a/siremis/modules/ser/prs/presence/form/PuaCopyForm.xml 
./b/siremis/modules/ser/prs/presence/form/PuaCopyForm.xml
--- ./a/siremis/modules/ser/prs/presence/form/PuaCopyForm.xml   1970-01-01 
01:00:00.000000000 +0100
+++ ./b/siremis/modules/ser/prs/presence/form/PuaCopyForm.xml   2011-09-01 
16:19:16.000000000 +0100
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<EasyForm Name="PuaCopyForm" Class="EasyForm" FormType="Edit" jsClass="jbForm" 
Title="Copy PUA" Description="" BizDataObj="ser.prs.presence.do.PuaDO" 
TemplateEngine="Smarty" TemplateFile="detail.tpl" EventName="" MessageFile="">
+    <DataPanel>
+               <Element Name="fld_Id" Class="Hidden" FieldName="Id" Label="Id" 
AllowURLParam="Y" Translatable="N" OnEventLog="N" CssClass="input" 
CssErrorClass="input_error"/>
+        <Element Name="fld_pres_uri" Class="InputText" FieldName="pres_uri" 
Label="Presentity URI"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_pres_id" Class="InputText" FieldName="pres_id" 
Label="Presentity ID"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_event" Class="InputText" FieldName="event" 
Label="Event"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_expires" Class="InputDatetime" 
FieldName="expires" Label="Expires" DefaultValue="1970-01-01 00:00:00" 
Sortable="Y" AllowURLParam="N" Translatable="N" OnEventLog="N"  
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+               <Element Name="fld_desired_expires" Class="InputDatetime" 
FieldName="desired_expires" Label="Desired Expires" DefaultValue="1970-01-01 
00:00:00" Sortable="Y" AllowURLParam="N" Translatable="N" OnEventLog="N"  
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+               <Element Name="fld_flag" Class="InputText" FieldName="flag" 
Label="Flag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_etag" Class="InputText" FieldName="etag" 
Label="Etag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_tuple_id" Class="InputText" FieldName="tuple_id" 
Label="Tuple ID"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_watcher_uri" Class="InputText" 
FieldName="watcher_uri" Label="Watcher URI"  AllowURLParam="N" 
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+        <Element Name="fld_call_id" Class="InputText" FieldName="call_id" 
Label="Call ID"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_to_tag" Class="InputText" FieldName="to_tag" 
Label="To Tag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_from_tag" Class="InputText" 
FieldName="from_tag" Label="To Tag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_cseq" Class="InputText" FieldName="cseq" 
Label="Cseq"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_record_route" Class="Textarea" 
FieldName="record_route" Label="Record Route"  AllowURLParam="N" 
CssClass="input_textarea" CssErrorClass="input_textarea_error" 
CssFocusClass="input_textarea_focus"/>
+               <Element Name="fld_contact" Class="InputText" 
FieldName="contact" Label="Contact"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_remote_contact" Class="InputText" 
FieldName="remote_contact" Label="Remote Contact"  AllowURLParam="N" 
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+               <Element Name="fld_version" Class="InputText" 
FieldName="version" Label="Version"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_extra_headers" Class="InputText" 
FieldName="extra_headers" Label="Extra Headers"  AllowURLParam="N" 
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+    </DataPanel>
+    <ActionPanel>
+        <Element Name="btn_save" Class="Button" Text="Save" 
CssClass="button_gray_m">
+            <EventHandler Name="save_onclick" EventLogMsg="" Event="onclick" 
Function="InsertRecord()" 
RedirectPage="form=ser.prs.presence.form.PuaDetailForm&amp;fld:Id={@ser.prs.presence.do.PuaDO:Field[Id].Value}"
  ShortcutKey="Ctrl+Enter" ContextMenu="Save" />
+        </Element>
+        <Element Name="btn_cancel" Class="Button" Text="Cancel" 
CssClass="button_gray_m">
+            <EventHandler Name="cancel_onclick" Event="onclick" 
Function="SwitchForm(ser.prs.presence.form.PuaListForm)"  ShortcutKey="Escape" 
ContextMenu="Cancel"/>
+        </Element>
+    </ActionPanel> 
+    <NavPanel>
+    </NavPanel> 
+    <SearchPanel>
+    </SearchPanel>
+</EasyForm>
diff -ruN ./a/siremis/modules/ser/prs/presence/form/PuaDetailForm.xml 
./b/siremis/modules/ser/prs/presence/form/PuaDetailForm.xml
--- ./a/siremis/modules/ser/prs/presence/form/PuaDetailForm.xml 1970-01-01 
01:00:00.000000000 +0100
+++ ./b/siremis/modules/ser/prs/presence/form/PuaDetailForm.xml 2011-09-01 
16:19:16.000000000 +0100
@@ -0,0 +1,45 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<EasyForm Name="PuaDetailForm" Class="EasyForm" FormType="" jsClass="jbForm" 
Title="PUA Detail" Description="" BizDataObj="ser.prs.presence.do.PuaDO" 
TemplateEngine="Smarty" TemplateFile="detail_elementset.tpl" EventName="" 
MessageFile="">
+    <DataPanel>
+               <Element Name="fld_Id" ElementSet="General" Hidden="Y" 
Class="LabelText" FieldName="Id" Label="Id" AllowURLParam="Y"/>
+               <Element Name="fld_pres_uri" ElementSet="General" 
Class="LabelText" FieldName="pres_uri" Label="Presentity URI" AllowURLParam="N" 
/>
+               <Element Name="fld_pres_id" ElementSet="General" 
Class="LabelText" FieldName="pres_id" Label="Presentity ID" AllowURLParam="N" />
+               <Element Name="fld_event" ElementSet="General" 
Class="LabelText" FieldName="event" Label="Event" AllowURLParam="N" />
+               <Element Name="fld_expires" ElementSet="General" 
Class="LabelText" FieldName="expires" Label="Expires" AllowURLParam="N" />
+               <Element Name="fld_desired_expires" ElementSet="General" 
Class="LabelText" FieldName="desired_expires" Label="Desired Expires" 
AllowURLParam="N" />
+               <Element Name="fld_flag" ElementSet="General" Class="LabelText" 
FieldName="flag" Label="Flag" AllowURLParam="N" />
+               <Element Name="fld_etag" ElementSet="General" Class="LabelText" 
FieldName="etag" Label="Etag" AllowURLParam="N" />
+               <Element Name="fld_tuple_id" ElementSet="General" 
Class="LabelText" FieldName="tuple_id" Label="Tuple ID" AllowURLParam="N" />
+               <Element Name="fld_watcher_uri" ElementSet="General" 
Class="LabelText" FieldName="watcher_uri" Label="Watcher URI" AllowURLParam="N" 
/>
+               <Element Name="fld_call_id" ElementSet="General" 
Class="LabelText" FieldName="call_id" Label="Call ID" AllowURLParam="N" />
+               <Element Name="fld_to_tag" ElementSet="General" 
Class="LabelText" FieldName="to_tag" Label="To Tag" AllowURLParam="N" />
+               <Element Name="fld_from_tag" ElementSet="General" 
Class="LabelText" FieldName="from_tag" Label="To Tag" AllowURLParam="N" />
+               <Element Name="fld_cseq" ElementSet="General" Class="LabelText" 
FieldName="cseq" Label="Cseq" AllowURLParam="N" />
+               <Element Name="fld_record_route_detail" ElementSet="General" 
Class="LabelText" FieldName="record_route_detail" Label="Record Route" 
AllowURLParam="N" />
+               <Element Name="fld_contact" ElementSet="General" 
Class="LabelText" FieldName="contact" Label="Contact" AllowURLParam="N" />
+               <Element Name="fld_remote_contact"      ElementSet="General" 
Class="LabelText" FieldName="remote_contact" Label="Remote Contact" 
AllowURLParam="N" />
+               <Element Name="fld_version" ElementSet="General" 
Class="LabelText" FieldName="version" Label="Version" AllowURLParam="N" />
+               <Element Name="fld_extra_headers" ElementSet="General" 
Class="LabelText" FieldName="extra_headers" Label="Extra Headers" 
AllowURLParam="N" />
+       </DataPanel>
+       <ActionPanel>
+        <Element Name="btn_new" Class="Button" Text="Add" 
CssClass="button_gray_add" Description="new record (Insert)" Hidden="Y">
+                       <EventHandler Name="btn_new_onclick" Event="onclick" 
Function="SwitchForm(ser.prs.presence.form.PuaNewForm)"  ShortcutKey="Insert" 
ContextMenu="New" />
+        </Element>          
+        <Element Name="btn_edit" Class="Button" Text="Edit" 
CssClass="button_gray_m" Description="edit record (Ctrl+E)" Hidden="Y">
+                       <EventHandler Name="btn_new_onclick" Event="onclick" 
Function="SwitchForm(ser.prs.presence.form.PuaEditForm,{@:Elem[fld_Id].Value})" 
 ShortcutKey="Ctrl+E" ContextMenu="Edit" />
+        </Element>
+               <Element Name="btn_copy" Class="Button" Text="Copy" 
CssClass="button_gray_m" Description="copy record (Ctrl+C)" Hidden="Y">
+            <EventHandler Name="onclick" Event="onclick" EventLogMsg="" 
Function="CopyRecord({@:Elem[fld_Id].Value})" 
RedirectPage="form=ser.prs.presence.form.PuaCopyForm&amp;fld:Id={@:Elem[fld_Id].Value}"
 ShortcutKey="Ctrl+C" ContextMenu="Copy"/>
+        </Element> 
+        <Element Name="btn_delete" Class="Button" Text="Delete" 
CssClass="button_gray_m" Description="delete record (Delete)">
+            <EventHandler Name="del_onclick" Event="onclick" EventLogMsg="" 
Function="DeleteRecord({@:Elem[fld_Id].Value})"  
RedirectPage="form=ser.prs.presence.form.PuaListForm" ShortcutKey="Ctrl+Delete" 
ContextMenu="Delete" />
+        </Element>
+        <Element Name="btn_cancel" Class="Button" Text="Back" 
CssClass="button_gray_m">
+            <EventHandler Name="btn_cancel_onclick" Event="onclick" 
Function="SwitchForm(ser.prs.presence.form.PuaListForm)"  ShortcutKey="Escape" 
ContextMenu="Cancel" />
+        </Element>
+    </ActionPanel>
+    <NavPanel>
+    </NavPanel> 
+    <SearchPanel>
+    </SearchPanel>
+</EasyForm>
diff -ruN ./a/siremis/modules/ser/prs/presence/form/PuaEditForm.xml 
./b/siremis/modules/ser/prs/presence/form/PuaEditForm.xml
--- ./a/siremis/modules/ser/prs/presence/form/PuaEditForm.xml   1970-01-01 
01:00:00.000000000 +0100
+++ ./b/siremis/modules/ser/prs/presence/form/PuaEditForm.xml   2011-09-01 
16:19:16.000000000 +0100
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<EasyForm Name="PuaEditForm" Class="EasyForm" FormType="Edit" jsClass="jbForm" 
Title="Edit PUA" Description="" BizDataObj="ser.prs.presence.do.PuaDO" 
DefaultForm="Y" TemplateEngine="Smarty" TemplateFile="detail.tpl" EventName="" 
MessageFile="">
+    <DataPanel>
+               <Element Name="fld_Id" Class="Hidden" FieldName="Id" Label="Id" 
AllowURLParam="Y" Translatable="N" OnEventLog="N" CssClass="input" 
CssErrorClass="input_error"/>
+        <Element Name="fld_pres_uri" Class="InputText" FieldName="pres_uri" 
Label="Presentity URI"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_pres_id" Class="InputText" FieldName="pres_id" 
Label="Presentity ID"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_event" Class="InputText" FieldName="event" 
Label="Event"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_expires" Class="InputDatetime" 
FieldName="expires" Label="Expires" DefaultValue="1970-01-01 00:00:00" 
Sortable="Y" AllowURLParam="N" Translatable="N" OnEventLog="N"  
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+               <Element Name="fld_desired_expires" Class="InputDatetime" 
FieldName="desired_expires" Label="Desired Expires" DefaultValue="1970-01-01 
00:00:00" Sortable="Y" AllowURLParam="N" Translatable="N" OnEventLog="N"  
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+               <Element Name="fld_flag" Class="InputText" FieldName="flag" 
Label="Flag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_etag" Class="InputText" FieldName="etag" 
Label="Etag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_tuple_id" Class="InputText" FieldName="tuple_id" 
Label="Tuple ID"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_watcher_uri" Class="InputText" 
FieldName="watcher_uri" Label="Watcher URI"  AllowURLParam="N" 
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+        <Element Name="fld_call_id" Class="InputText" FieldName="call_id" 
Label="Call ID"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_to_tag" Class="InputText" FieldName="to_tag" 
Label="To Tag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_from_tag" Class="InputText" 
FieldName="from_tag" Label="To Tag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_cseq" Class="InputText" FieldName="cseq" 
Label="Cseq"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_record_route" Class="Textarea" 
FieldName="record_route" Label="Record Route"  AllowURLParam="N" 
CssClass="input_textarea" CssErrorClass="input_textarea_error" 
CssFocusClass="input_textarea_focus"/>
+               <Element Name="fld_contact" Class="InputText" 
FieldName="contact" Label="Contact"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_remote_contact" Class="InputText" 
FieldName="remote_contact" Label="Remote Contact"  AllowURLParam="N" 
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+               <Element Name="fld_version" Class="InputText" 
FieldName="version" Label="Version"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_extra_headers" Class="InputText" 
FieldName="extra_headers" Label="Extra Headers"  AllowURLParam="N" 
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+    </DataPanel>
+    <ActionPanel>
+        <Element Name="btn_save" Class="Button" Text="Save" 
CssClass="button_gray_m">
+            <EventHandler Name="save_onclick" Event="onclick" EventLogMsg=""  
Function="UpdateRecord()" 
RedirectPage="form=ser.prs.presence.form.PuaDetailForm&amp;fld:Id={@ser.prs.presence.do.PuaDO:Field[Id].Value}"
 ShortcutKey="Ctrl+Enter" ContextMenu="Save" />
+        </Element>
+        <Element Name="btn_cancel" Class="Button" Text="Cancel" 
CssClass="button_gray_m">
+            <EventHandler Name="btn_cancel_onclick" Event="onclick" 
Function="SwitchForm(ser.prs.presence.form.PuaListForm)"  ShortcutKey="Escape" 
ContextMenu="Cancel" />
+        </Element>
+    </ActionPanel> 
+    <NavPanel>
+    </NavPanel> 
+    <SearchPanel>
+    </SearchPanel>
+</EasyForm>
diff -ruN ./a/siremis/modules/ser/prs/presence/form/PuaListForm.xml 
./b/siremis/modules/ser/prs/presence/form/PuaListForm.xml
--- ./a/siremis/modules/ser/prs/presence/form/PuaListForm.xml   1970-01-01 
01:00:00.000000000 +0100
+++ ./b/siremis/modules/ser/prs/presence/form/PuaListForm.xml   2011-09-01 
16:19:16.000000000 +0100
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<EasyForm Name="PuaListForm" Class="EasyForm" FormType="List" jsClass="jbForm" 
Title="PUA Management" Description="" BizDataObj="ser.prs.presence.do.PuaDO" 
PageSize="10" DefaultForm="Y" TemplateEngine="Smarty" TemplateFile="grid.tpl" 
EventName="" MessageFile="">
+    <DataPanel>
+        <Element Name="row_selections" Class="RowCheckbox" Label="" 
FieldName="Id"/>
+        <Element Name="fld_Id" Class="ColumnText" FieldName="Id" Label="Id" 
Sortable="Y" AllowURLParam="N" Link="javascript:">         
+               <EventHandler Name="fld_Id_onclick" Event="onclick" 
Function="SwitchForm(ser.prs.presence.form.PuaDetailForm,{@:Elem[fld_Id].Value})"/>
+        </Element>
+                <Element Name="fld_pres_uri" Class="ColumnText" 
FieldName="pres_uri" Label="Presentity URI"  Sortable="Y" Link="javascript:">
+                       <EventHandler Name="fld_pres_uri" Event="onclick" 
Function="SwitchForm(ser.prs.presence.form.PuaDetailForm,{@:Elem[fld_Id].Value})"/>
+        </Element>
+                       <Element Name="fld_pres_uri" Class="ColumnText" 
FieldName="pres_uri" Label="Presentity URI" Sortable="Y" Hidden="N" />
+                       <Element Name="fld_pres_id" Class="ColumnText" 
FieldName="pres_id" Label="Presentity ID" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_event" Class="ColumnText" 
FieldName="event" Label="Event" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_expires" Class="ColumnText" 
FieldName="expires" Label="Expires" Sortable="Y" Hidden="N" />
+                       <Element Name="fld_desired_expires" Class="ColumnText" 
FieldName="desired_expires" Label="Desired Expires" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_flag" Class="ColumnText" 
FieldName="flag" Label="Flag" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_etag" Class="ColumnText" 
FieldName="etag" Label="Etag" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_tuple_id" Class="ColumnText" 
FieldName="tuple_id" Label="Tuple ID" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_watcher_uri" Class="ColumnText" 
FieldName="watcher_uri" Label="Watcher URI" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_call_id" Class="ColumnText" 
FieldName="call_id" Label="Call ID" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_to_tag" Class="ColumnText" 
FieldName="to_tag" Label="To Tag" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_from_tag" Class="ColumnText" 
FieldName="from_tag" Label="To Tag" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_cseq" Class="ColumnText" 
FieldName="cseq" Label="Cseq" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_record_route" Class="ColumnText" 
FieldName="record_route" Label="Record Route" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_contact" Class="ColumnText" 
FieldName="contact" Label="Contact" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_remote_contact" Class="ColumnText" 
FieldName="remote_contact" Label="Remote Contact" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_version" Class="ColumnText" 
FieldName="version" Label="Version" Sortable="Y" Hidden="Y" />
+                       <Element Name="fld_extra_headers" Class="ColumnText" 
FieldName="extra_headers" Label="Extra Headers" Sortable="Y" Hidden="Y" />
+    </DataPanel>
+    <ActionPanel>
+        <Element Name="lnk_new" Class="Button" Text="Add" 
CssClass="button_gray_add" Hidden="Y" Description="new record (Insert)">
+            <EventHandler Name="lnk_new_onclick" Event="onclick" 
EventLogMsg="" Function="SwitchForm(ser.prs.presence.form.PuaNewForm)" 
ShortcutKey="Insert" ContextMenu="New"/>
+        </Element>
+        <Element Name="btn_edit" Class="Button" Text="Edit" 
CssClass="button_gray_m" Hidden="Y" Description="edit record (Ctrl+E)">
+            <EventHandler Name="btn_edit_onclick" Event="onclick" 
EventLogMsg="" Function="EditRecord()" 
RedirectPage="form=ser.prs.presence.form.PuaEditForm&amp;fld:Id={@:Elem[fld_Id].Value}"
 ShortcutKey="Ctrl+E" ContextMenu="Edit"/>
+        </Element>
+        <Element Name="btn_copy" Class="Button" Text="Copy" 
CssClass="button_gray_m" Hidden="Y" Description="copy record (Ctrl+C)">
+            <EventHandler Name="btn_copy_onclick" Event="onclick" 
EventLogMsg="" Function="CopyRecord()" 
RedirectPage="form=ser.prs.presence.form.PuaCopyForm&amp;fld:Id={@:Elem[fld_Id].Value}"
 ShortcutKey="Ctrl+C" ContextMenu="Copy"/>
+        </Element>
+        <Element Name="btn_delete" Class="Button" Text="Delete" 
CssClass="button_gray_m">
+            <EventHandler Name="del_onclick" Event="onclick" EventLogMsg="" 
Function="DeleteRecord()" ShortcutKey="Ctrl+Delete" ContextMenu="Delete"/>
+        </Element>
+        <Element Name="btn_excel" Class="Button" Text="Export" 
CssClass="button_gray_m">
+            <EventHandler Name="exc_onclick" Event="onclick" EventLogMsg="" 
Function="CallService(excelService,renderCSV)" FunctionType="Popup" 
ShortcutKey="Ctrl+Shift+X" ContextMenu="Export"/>
+        </Element>
+        <Element Name="btn_search" Class="Button" Text="Search" 
CssClass="button_gray_m" Description="Search record">
+            <EventHandler Name="btn_search_onclick" Event="onclick" 
EventLogMsg="" Function="SwitchForm(ser.prs.presence.form.PuaSearchForm)" 
ShortcutKey="Ctrl+Shift+S" ContextMenu="Search"/>
+        </Element>
+    </ActionPanel> 
+    <NavPanel>
+               <Element Name="page_selector" Class="PageSelector" 
Text="{@:m_CurrentPage}" Label="Go to Page" CssClass="input_select" 
cssFocusClass="input_select_focus">
+            <EventHandler Name="btn_page_selector_onchange" Event="onchange" 
Function="GotoSelectedPage(page_selector)"/>
+        </Element>
+        <Element Name="pagesize_selector" Class="PagesizeSelector" 
Text="{@:m_Range}" Label="Show Rows" CssClass="input_select" 
cssFocusClass="input_select_focus">
+            <EventHandler Name="btn_pagesize_selector_onchange" 
Event="onchange" Function="SetPageSize(pagesize_selector)"/>
+        </Element>      
+        <Element Name="btn_first" Class="Button" Enabled="{(@:m_CurrentPage == 
1)?'N':'Y'}" Text="" CssClass="button_gray_navi {(@:m_CurrentPage == 
1)?'first_gray':'first'}">
+            <EventHandler Name="first_onclick" Event="onclick" 
Function="GotoPage(1)"/>
+        </Element>
+        <Element Name="btn_prev" Class="Button" Enabled="{(@:m_CurrentPage == 
1)?'N':'Y'}" Text="" CssClass="button_gray_navi {(@:m_CurrentPage == 
1)?'prev_gray':'prev'}">
+            <EventHandler Name="prev_onclick" Event="onclick" 
Function="GotoPage({@:m_CurrentPage - 1})" ShortcutKey="Ctrl+Shift+Left"/>
+        </Element>
+        <Element Name="txt_page" Class="LabelText" Text="{'@:m_CurrentPage of 
@:m_TotalPages '}">
+        </Element>
+        <Element Name="btn_next" Class="Button" Enabled="{(@:m_CurrentPage == 
@:m_TotalPages )?'N':'Y'}" Text="" CssClass="button_gray_navi {(@:m_CurrentPage 
== @:m_TotalPages)?'next_gray':'next'}">
+            <EventHandler Name="next_onclick" Event="onclick" 
Function="GotoPage({@:m_CurrentPage + 1})" ShortcutKey="Ctrl+Shift+Right"/>
+        </Element>
+        <Element Name="btn_last" Class="Button" Enabled="{(@:m_CurrentPage == 
@:m_TotalPages )?'N':'Y'}" Text="" CssClass="button_gray_navi {(@:m_CurrentPage 
== @:m_TotalPages)?'last_gray':'last'}">
+            <EventHandler Name="last_onclick" Event="onclick" 
Function="GotoPage({@:m_TotalPages})"/>
+        </Element>
+    </NavPanel> 
+    <SearchPanel>
+                       <Element Name="qry_pres_uri" Class="AutoSuggest" 
SelectFrom="ser.prs.presence.do.PuaDO[pres_uri],[pres_uri] like 
'%{@:Elem[qry_pres_uri].Value}%' GROUP BY [pres_uri]" FuzzySearch="Y" 
FieldName="pres_uri" Label="" cssFocusClass="input_text_search_focus" 
CssClass="input_text_search"/>
+        <Element Name="btn_dosearch" Class="Button" text="Go" 
CssClass="button_gray">
+            <EventHandler Name="search_onclick" Event="onclick" 
Function="RunSearch()" ShortcutKey="Enter"/>
+        </Element>     
+    </SearchPanel>
+</EasyForm>
diff -ruN ./a/siremis/modules/ser/prs/presence/form/PuaNewForm.xml 
./b/siremis/modules/ser/prs/presence/form/PuaNewForm.xml
--- ./a/siremis/modules/ser/prs/presence/form/PuaNewForm.xml    1970-01-01 
01:00:00.000000000 +0100
+++ ./b/siremis/modules/ser/prs/presence/form/PuaNewForm.xml    2011-09-01 
16:19:16.000000000 +0100
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<EasyForm Name="PuaNewForm" Class="EasyForm" FormType="New" jsClass="jbForm" 
Title="New PUA" Description="" BizDataObj="ser.prs.presence.do.PuaDO" 
TemplateEngine="Smarty" TemplateFile="detail.tpl" EventName="" MessageFile="">
+    <DataPanel>
+               <Element Name="fld_Id" Class="Hidden" FieldName="Id" Label="Id" 
AllowURLParam="Y" Translatable="N" OnEventLog="N" CssClass="input" 
CssErrorClass="input_error"/>
+        <Element Name="fld_pres_uri" Class="InputText" FieldName="pres_uri" 
Label="Presentity URI"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_pres_id" Class="InputText" FieldName="pres_id" 
Label="Presentity ID"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_event" Class="InputText" FieldName="event" 
Label="Event"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_expires" Class="InputDatetime" 
FieldName="expires" Label="Expires" DefaultValue="1970-01-01 00:00:00" 
Sortable="Y" AllowURLParam="N" Translatable="N" OnEventLog="N"  
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+               <Element Name="fld_desired_expires" Class="InputDatetime" 
FieldName="desired_expires" Label="Desired Expires" DefaultValue="1970-01-01 
00:00:00" Sortable="Y" AllowURLParam="N" Translatable="N" OnEventLog="N"  
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+               <Element Name="fld_flag" Class="InputText" FieldName="flag" 
Label="Flag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_etag" Class="InputText" FieldName="etag" 
Label="Etag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_tuple_id" Class="InputText" FieldName="tuple_id" 
Label="Tuple ID"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_watcher_uri" Class="InputText" 
FieldName="watcher_uri" Label="Watcher URI"  AllowURLParam="N" 
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+        <Element Name="fld_call_id" Class="InputText" FieldName="call_id" 
Label="Call ID"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_to_tag" Class="InputText" FieldName="to_tag" 
Label="To Tag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_from_tag" Class="InputText" 
FieldName="from_tag" Label="To Tag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_cseq" Class="InputText" FieldName="cseq" 
Label="Cseq"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_record_route" Class="Textarea" 
FieldName="record_route" Label="Record Route"  AllowURLParam="N" 
CssClass="input_textarea" CssErrorClass="input_textarea_error" 
CssFocusClass="input_textarea_focus"/>
+               <Element Name="fld_contact" Class="InputText" 
FieldName="contact" Label="Contact"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_remote_contact" Class="InputText" 
FieldName="remote_contact" Label="Remote Contact"  AllowURLParam="N" 
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+               <Element Name="fld_version" Class="InputText" 
FieldName="version" Label="Version"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_extra_headers" Class="InputText" 
FieldName="extra_headers" Label="Extra Headers"  AllowURLParam="N" 
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+        </DataPanel>
+    <ActionPanel>
+        <Element Name="btn_save" Class="Button" Text="Save" 
CssClass="button_gray_m">
+            <EventHandler Name="save_onclick" EventLogMsg="" Event="onclick" 
Function="InsertRecord()" 
RedirectPage="form=ser.prs.presence.form.PuaDetailForm&amp;fld:Id={@ser.prs.presence.do.PuaDO:Field[Id].Value}"
  ShortcutKey="Ctrl+Enter" ContextMenu="Save" />
+        </Element>
+        <Element Name="btn_cancel" Class="Button" Text="Cancel" 
CssClass="button_gray_m">
+            <EventHandler Name="cancel_onclick" Event="onclick" 
Function="SwitchForm(ser.prs.presence.form.PuaListForm)"  ShortcutKey="Escape" 
ContextMenu="Cancel"/>
+        </Element>
+    </ActionPanel>
+    <NavPanel>
+    </NavPanel> 
+    <SearchPanel>
+    </SearchPanel>
+</EasyForm>
diff -ruN ./a/siremis/modules/ser/prs/presence/form/PuaSearchForm.xml 
./b/siremis/modules/ser/prs/presence/form/PuaSearchForm.xml
--- ./a/siremis/modules/ser/prs/presence/form/PuaSearchForm.xml 1970-01-01 
01:00:00.000000000 +0100
+++ ./b/siremis/modules/ser/prs/presence/form/PuaSearchForm.xml 2011-09-01 
16:19:16.000000000 +0100
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<EasyForm Name="PuaSearchForm" Class="ser.common.form.EasySearchForm" 
FormType="Search" jsClass="jbForm" Title="Search PUA" Description="" 
BizDataObj="ser.prs.presence.do.PuaDO" TemplateEngine="Smarty" 
TemplateFile="detail.tpl" EventName="" MessageFile="">
+    <DataPanel>
+               <Element Name="fld_Id" Class="Hidden" FieldName="Id" Label="Id" 
AllowURLParam="Y" Translatable="N" OnEventLog="N" CssClass="input" 
CssErrorClass="input_error"/>
+        <Element Name="fld_pres_uri" Class="InputText" FieldName="pres_uri" 
Label="Presentity URI"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_pres_id" Class="InputText" FieldName="pres_id" 
Label="Presentity ID"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_event" Class="InputText" FieldName="event" 
Label="Event"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_expires" Class="InputDatetime" 
FieldName="expires" Label="Expires" DefaultValue="1970-01-01 00:00:00" 
Sortable="Y" AllowURLParam="N" Translatable="N" OnEventLog="N"  
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+               <Element Name="fld_desired_expires" Class="InputDatetime" 
FieldName="desired_expires" Label="Desired Expires" DefaultValue="1970-01-01 
00:00:00" Sortable="Y" AllowURLParam="N" Translatable="N" OnEventLog="N"  
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+               <Element Name="fld_flag" Class="InputText" FieldName="flag" 
Label="Flag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_etag" Class="InputText" FieldName="etag" 
Label="Etag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_tuple_id" Class="InputText" FieldName="tuple_id" 
Label="Tuple ID"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+        <Element Name="fld_watcher_uri" Class="InputText" 
FieldName="watcher_uri" Label="Watcher URI"  AllowURLParam="N" 
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+        <Element Name="fld_call_id" Class="InputText" FieldName="call_id" 
Label="Call ID"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_to_tag" Class="InputText" FieldName="to_tag" 
Label="To Tag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_from_tag" Class="InputText" 
FieldName="from_tag" Label="To Tag"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_cseq" Class="InputText" FieldName="cseq" 
Label="Cseq"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_record_route" Class="Textarea" 
FieldName="record_route" Label="Record Route"  AllowURLParam="N" 
CssClass="input_textarea" CssErrorClass="input_textarea_error" 
CssFocusClass="input_textarea_focus"/>
+               <Element Name="fld_contact" Class="InputText" 
FieldName="contact" Label="Contact"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_remote_contact" Class="InputText" 
FieldName="remote_contact" Label="Remote Contact"  AllowURLParam="N" 
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+               <Element Name="fld_version" Class="InputText" 
FieldName="version" Label="Version"  AllowURLParam="N" CssClass="input_text" 
CssErrorClass="input_text_error" CssFocusClass="input_text_focus"/>
+               <Element Name="fld_extra_headers" Class="InputText" 
FieldName="extra_headers" Label="Extra Headers"  AllowURLParam="N" 
CssClass="input_text" CssErrorClass="input_text_error" 
CssFocusClass="input_text_focus"/>
+        </DataPanel>
+    <ActionPanel>
+        <Element Name="btn_search" Class="Button" Text="Search" 
CssClass="button_gray_m">
+                       <EventHandler Name="search_onclick" EventLogMsg="" 
Event="onclick" Function="SwitchSearchForm(ser.prs.presence.form.PuaListForm)" 
RedirectPage=""  ShortcutKey="Ctrl+Enter" ContextMenu="Save" />
+        </Element>
+        <Element Name="btn_cancel" Class="Button" Text="Cancel" 
CssClass="button_gray_m">
+            <EventHandler Name="cancel_onclick" Event="onclick" 
Function="SwitchForm(ser.prs.presence.form.PuaListForm)"  ShortcutKey="Escape" 
ContextMenu="Cancel"/>
+        </Element>
+    </ActionPanel> 
+    <NavPanel>
+    </NavPanel> 
+    <SearchPanel>
+    </SearchPanel>
+</EasyForm>
diff -ruN ./a/siremis/modules/ser/view/PuaListView.xml 
./b/siremis/modules/ser/view/PuaListView.xml
--- ./a/siremis/modules/ser/view/PuaListView.xml        1970-01-01 
01:00:00.000000000 +0100
+++ ./b/siremis/modules/ser/view/PuaListView.xml        2011-09-01 
16:19:16.000000000 +0100
@@ -0,0 +1,13 @@
+<?xml version="1.0" standalone="no"?>
+<EasyView Name="PuaListView" Description="ser.prs.presence" Class="EasyView" 
Tab="" TemplateEngine="Smarty" TemplateFile="view.tpl">
+   <FormReferences>
+               <Reference Name="ser.prs.presence.form.PuaListForm"/>
+   </FormReferences>
+   <FormReferenceLibs>
+               <Reference Name="ser.prs.presence.form.PuaListForm"/>
+               <Reference Name="ser.prs.presence.form.PuaEditForm"/>
+               <Reference Name="ser.prs.presence.form.PuaCopyForm"/>
+               <Reference Name="ser.prs.presence.form.PuaNewForm"/>
+               <Reference Name="ser.prs.presence.form.PuaDetailForm"/>
+   </FormReferenceLibs>    
+</EasyView>
\ No newline at end of file
_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to