Update directory XML to handle the contacts information. (#6256)
* Update directory XML to handle the contacts information. Better conditions to use all contact name variations.
This commit is contained in:
parent
dc85871009
commit
d67b9597f1
|
|
@ -2,50 +2,58 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -53,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,50 +2,58 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -53,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,50 +2,58 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -53,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,50 +2,58 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -53,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,50 +2,58 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -53,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,50 +2,58 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -53,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -2,17 +2,21 @@
|
|||
{foreach $contacts as $row}
|
||||
{if $smarty.get.contacts == "users" && $row.category == "users"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
|
|
@ -21,33 +25,35 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "groups" && $row.category == "groups"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_organization != "" || $row.contact_name_given == "" || $row.contact_name_family == ""}
|
||||
{if $row.contact_organization != "" && $row.contact_name_given != "" && $row.contact_name_family != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization != "" && $row.contact_name_given == ""}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.phone_number != ""}
|
||||
{if $row.phone_number}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
|
|
@ -55,29 +61,29 @@
|
|||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "all"}
|
||||
<DirectoryEntry>
|
||||
{if $row.contact_name_given != ""}
|
||||
{if $row.contact_organization != ""}
|
||||
<Name>{$row.contact_organization} {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{else}
|
||||
{if $row.contact_organization && $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_organization}, {$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_organization && $row.contact_name_given == "" && $row.contact_name_family == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family && $row.contact_organization == ""}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given && $row.contact_name_family}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{elseif $row.contact_name_given}
|
||||
<Name>{$row.contact_name_given}</Name>
|
||||
{elseif $row.contact_name_family}
|
||||
<Name>{$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{if $row.category == "extensions"}
|
||||
{if $row.phone_number != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{else}
|
||||
{if isset($row.numbers)}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
{if $number.phone_number}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Reference in New Issue