Update directory.xml
This commit is contained in:
parent
ad7eb70fb1
commit
7bd3f09710
|
|
@ -1,27 +1,6 @@
|
||||||
<YealinkIPPhoneDirectory>
|
<YealinkIPPhoneDirectory>
|
||||||
{foreach $contacts as $row}
|
{foreach $contacts as $row}
|
||||||
{if $row.category == "users"}
|
{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}
|
|
||||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
|
||||||
{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 $row.category == "groups"}
|
|
||||||
<DirectoryEntry>
|
<DirectoryEntry>
|
||||||
{if $row.contact_name_given != ""}
|
{if $row.contact_name_given != ""}
|
||||||
{if $row.contact_organization != ""}
|
{if $row.contact_organization != ""}
|
||||||
|
|
@ -32,7 +11,6 @@
|
||||||
{else}
|
{else}
|
||||||
<Name>{$row.effective_caller_id_name}</Name>
|
<Name>{$row.effective_caller_id_name}</Name>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{foreach $row.numbers as $number}
|
{foreach $row.numbers as $number}
|
||||||
{if $number.phone_number != ""}
|
{if $number.phone_number != ""}
|
||||||
<Telephone>{$number.phone_number}</Telephone>
|
<Telephone>{$number.phone_number}</Telephone>
|
||||||
|
|
@ -41,7 +19,26 @@
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</DirectoryEntry>
|
</DirectoryEntry>
|
||||||
{elseif $row.category == "extensions"}
|
{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}
|
||||||
|
<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>
|
<DirectoryEntry>
|
||||||
{if $row.contact_name_given != ""}
|
{if $row.contact_name_given != ""}
|
||||||
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
<Name>{$row.contact_name_given} {$row.contact_name_family}</Name>
|
||||||
|
|
@ -54,7 +51,7 @@
|
||||||
<Telephone>{$row.phone_extension}</Telephone>
|
<Telephone>{$row.phone_extension}</Telephone>
|
||||||
{/if}
|
{/if}
|
||||||
</DirectoryEntry>
|
</DirectoryEntry>
|
||||||
{else}
|
{elseif $smarty.get.contacts == "all"}
|
||||||
<DirectoryEntry>
|
<DirectoryEntry>
|
||||||
{if $row.contact_name_given != ""}
|
{if $row.contact_name_given != ""}
|
||||||
{if $row.contact_organization != ""}
|
{if $row.contact_organization != ""}
|
||||||
|
|
@ -65,7 +62,6 @@
|
||||||
{else}
|
{else}
|
||||||
<Name>{$row.effective_caller_id_name}</Name>
|
<Name>{$row.effective_caller_id_name}</Name>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
{if $row.category == "extensions"}
|
{if $row.category == "extensions"}
|
||||||
{if $row.phone_number != ""}
|
{if $row.phone_number != ""}
|
||||||
<Telephone>{$row.phone_number}</Telephone>
|
<Telephone>{$row.phone_number}</Telephone>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue