Update phonebook.xml
This commit is contained in:
parent
2fd8b98bc3
commit
f9e65e89f8
|
|
@ -14,38 +14,104 @@
|
||||||
</pbgroup>
|
</pbgroup>
|
||||||
|
|
||||||
{foreach $contacts as $row}
|
{foreach $contacts as $row}
|
||||||
{if $row.category == "users"}
|
{if $row.category == "users"}
|
||||||
{$start_id=1}
|
{$start_id=1}
|
||||||
<Contact>
|
<Contact>
|
||||||
<id>{$start_id}</id>
|
<id>{$start_id}</id>
|
||||||
{if $row.contact_name_given != ""}
|
{if $row.contact_name_given != ""}
|
||||||
<FirstName>{$row.contact_name_given}</FirstName>
|
<FirstName>{$row.contact_name_given}</FirstName>
|
||||||
|
|
||||||
<LastName>{$row.contact_name_family}</LastName>
|
<LastName>{$row.contact_name_family}</LastName>
|
||||||
|
|
||||||
<JobTitle></JobTitle>
|
<JobTitle></JobTitle>
|
||||||
|
|
||||||
{foreach $row.numbers as $number}
|
{foreach $row.numbers as $number}
|
||||||
{if $number.phone_number != ""}
|
{if $number.phone_number != ""}
|
||||||
|
|
||||||
<Frequent>0</Frequent>
|
<Frequent>0</Frequent>
|
||||||
<Phone type="Work">
|
<Phone type="Work">
|
||||||
<phonenumber>{$number.phone_number}</phonenumber>
|
<phonenumber>{$number.phone_number}</phonenumber>
|
||||||
<accountindex>0</accountindex>
|
<accountindex>0</accountindex>
|
||||||
</Phone>
|
</Phone>
|
||||||
<Phone type="Home">
|
<Phone type="Home">
|
||||||
<phonenumber>{$number.phone_extension}</phonenumber>
|
<phonenumber>{$number.phone_extension}</phonenumber>
|
||||||
<accountindex>0</accountindex>
|
<accountindex>0</accountindex>
|
||||||
</Phone>
|
</Phone>
|
||||||
<Phone type="Cell">
|
<Phone type="Cell">
|
||||||
<phonenumber>{$number.phone_mobile}</phonenumber>
|
<phonenumber>{$number.phone_mobile}</phonenumber>
|
||||||
<accountindex>0</accountindex>
|
<accountindex>0</accountindex>
|
||||||
</Phone>
|
</Phone>
|
||||||
<Group>6</Group>
|
<Group>6</Group>
|
||||||
<Primary>0</Primary>
|
<Primary>0</Primary>
|
||||||
<Department></Department>
|
<Department></Department>
|
||||||
<Job></Job>
|
<Job></Job>
|
||||||
<Company></Company>
|
<Company></Company>
|
||||||
|
{/if}
|
||||||
|
{if $row.category == "groups"}
|
||||||
|
{$start_id=1}
|
||||||
|
<Contact>
|
||||||
|
<id>{$start_id}</id>
|
||||||
|
{if $row.contact_name_given != ""}
|
||||||
|
<FirstName>{$row.contact_name_given}</FirstName>
|
||||||
|
|
||||||
|
<LastName>{$row.contact_name_family}</LastName>
|
||||||
|
|
||||||
|
<JobTitle></JobTitle>
|
||||||
|
|
||||||
|
{foreach $row.numbers as $number}
|
||||||
|
{if $number.phone_number != ""}
|
||||||
|
|
||||||
|
<Frequent>0</Frequent>
|
||||||
|
<Phone type="Work">
|
||||||
|
<phonenumber>{$number.phone_number}</phonenumber>
|
||||||
|
<accountindex>0</accountindex>
|
||||||
|
</Phone>
|
||||||
|
<Phone type="Home">
|
||||||
|
<phonenumber>{$number.phone_extension}</phonenumber>
|
||||||
|
<accountindex>0</accountindex>
|
||||||
|
</Phone>
|
||||||
|
<Phone type="Cell">
|
||||||
|
<phonenumber>{$number.phone_mobile}</phonenumber>
|
||||||
|
<accountindex>0</accountindex>
|
||||||
|
</Phone>
|
||||||
|
<Group>6</Group>
|
||||||
|
<Primary>0</Primary>
|
||||||
|
<Department></Department>
|
||||||
|
<Job></Job>
|
||||||
|
<Company></Company>
|
||||||
|
{/if}
|
||||||
|
{if $row.category == "extensions"}
|
||||||
|
{$start_id=1}
|
||||||
|
<Contact>
|
||||||
|
<id>{$start_id}</id>
|
||||||
|
{if $row.contact_name_given != ""}
|
||||||
|
<FirstName>{$row.contact_name_given}</FirstName>
|
||||||
|
|
||||||
|
<LastName>{$row.contact_name_family}</LastName>
|
||||||
|
|
||||||
|
<JobTitle></JobTitle>
|
||||||
|
|
||||||
|
{foreach $row.numbers as $number}
|
||||||
|
{if $number.phone_number != ""}
|
||||||
|
|
||||||
|
<Frequent>0</Frequent>
|
||||||
|
<Phone type="Work">
|
||||||
|
<phonenumber>{$number.phone_number}</phonenumber>
|
||||||
|
<accountindex>0</accountindex>
|
||||||
|
</Phone>
|
||||||
|
<Phone type="Home">
|
||||||
|
<phonenumber>{$number.phone_extension}</phonenumber>
|
||||||
|
<accountindex>0</accountindex>
|
||||||
|
</Phone>
|
||||||
|
<Phone type="Cell">
|
||||||
|
<phonenumber>{$number.phone_mobile}</phonenumber>
|
||||||
|
<accountindex>0</accountindex>
|
||||||
|
</Phone>
|
||||||
|
<Group>6</Group>
|
||||||
|
<Primary>0</Primary>
|
||||||
|
<Department></Department>
|
||||||
|
<Job></Job>
|
||||||
|
<Company></Company>
|
||||||
{/if}
|
{/if}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</Contact>
|
</Contact>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue