Improve yealink phonebook for contact organization (#6254)
This commit is contained in:
parent
9cce80ff9b
commit
b8e87d2d75
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
@ -81,4 +83,3 @@
|
|||
{/if}
|
||||
{/foreach}
|
||||
</YealinkIPPhoneDirectory>
|
||||
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,85 @@
|
|||
<YealinkIPPhoneDirectory>
|
||||
{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}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
{else}
|
||||
<Name>{$row.effective_caller_id_name}</Name>
|
||||
{/if}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</DirectoryEntry>
|
||||
{elseif $smarty.get.contacts == "extensions" && $row.category == "extensions"}
|
||||
<DirectoryEntry>
|
||||
{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 != ""}
|
||||
<Telephone>{$row.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$row.phone_extension}</Telephone>
|
||||
{/if}
|
||||
</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}
|
||||
<Name>{$row.contact_name_given} {$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}
|
||||
{foreach $row.numbers as $number}
|
||||
{if $number.phone_number != ""}
|
||||
<Telephone>{$number.phone_number}</Telephone>
|
||||
{else}
|
||||
<Telephone>{$number.phone_extension}</Telephone>
|
||||
{/if}
|
||||
{/foreach}
|
||||
{/if}
|
||||
</DirectoryEntry>
|
||||
{/if}
|
||||
{/foreach}
|
||||
</YealinkIPPhoneDirectory>
|
||||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -14,16 +14,18 @@
|
|||
{foreach $row.numbers as $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 != ""}
|
||||
{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 == ""}
|
||||
<Name>{$row.contact_organization}</Name>
|
||||
{else}
|
||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||
{/if}
|
||||
|
|
|
|||
Loading…
Reference in New Issue