Update phonebook.xml
This commit is contained in:
parent
2fd8b98bc3
commit
f9e65e89f8
|
|
@ -14,38 +14,104 @@
|
|||
</pbgroup>
|
||||
|
||||
{foreach $contacts as $row}
|
||||
{if $row.category == "users"}
|
||||
{$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 $row.category == "users"}
|
||||
{$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 == "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}
|
||||
{/foreach}
|
||||
</Contact>
|
||||
|
|
|
|||
Loading…
Reference in New Issue