2011-10-22 21:22:01 +04:00
|
|
|
<form id="contacts_setpropertyform">
|
|
|
|
<input type="hidden" name="checksum" value="<?php echo $_['property']['checksum']; ?>">
|
|
|
|
<input type="hidden" name="id" value="<?php echo $_['id']; ?>">
|
2012-01-31 22:26:26 +04:00
|
|
|
<?php if($_['property']['name']=='N'): ?>
|
|
|
|
<p class="contacts_property_name">
|
|
|
|
<dl class="contacts_property_data form">
|
|
|
|
<dt><label for="n1"><?php echo $l->t('Given name'); ?></label></dt>
|
2012-02-02 19:46:38 +04:00
|
|
|
<dd><input id="n1" type="text" name="value[1]" value="<?php echo htmlspecialchars($_['property']['value'][1]); ?>"></dd>
|
2012-01-31 22:26:26 +04:00
|
|
|
<dt><label for="n0"><?php echo $l->t('Family name'); ?></dt>
|
2012-02-02 19:46:38 +04:00
|
|
|
<dd><input id="n0" type="text" name="value[0]" value="<?php echo htmlspecialchars($_['property']['value'][0]); ?>"></dd>
|
2012-01-31 22:26:26 +04:00
|
|
|
<dt><label for="n2"><?php echo $l->t('Additional names'); ?></dt>
|
2012-02-02 19:46:38 +04:00
|
|
|
<dd><input id="n2" type="text" name="value[2]" value="<?php echo htmlspecialchars($_['property']['value'][2]); ?>">
|
|
|
|
<input id="n3" type="hidden" name="value[3]" value="<?php echo htmlspecialchars($_['property']['value'][3]); ?>">
|
|
|
|
<input id="n4" type="hidden" name="value[4]" value="<?php echo htmlspecialchars($_['property']['value'][4]); ?>">
|
2012-01-31 22:26:26 +04:00
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
|
|
<?php elseif($_['property']['name']=='FN'): ?>
|
2012-02-02 19:46:38 +04:00
|
|
|
<p class="contacts_property_data"><input id="fn" type="text" name="value" value="<?php echo htmlspecialchars($_['property']['value']); ?>"></p>
|
2011-12-03 00:24:48 +04:00
|
|
|
<?php elseif($_['property']['name']=='ADR'): ?>
|
2011-10-22 21:22:01 +04:00
|
|
|
<p class="contacts_property_name"><label for="adr_pobox"><?php echo $l->t('Address'); ?></label></p>
|
2012-01-31 22:26:26 +04:00
|
|
|
<dl class="contacts_property_data form" id="contacts_addresspart">
|
|
|
|
<dt>
|
2011-11-05 23:33:42 +04:00
|
|
|
<label class="label" for="adr_type"><?php echo $l->t('Type'); ?></label>
|
2012-01-31 22:26:26 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2011-11-05 23:33:42 +04:00
|
|
|
<select id="adr_type" name="parameters[TYPE]" size="1">
|
|
|
|
<?php echo html_select_options($_['adr_types'], strtoupper($_['property']['parameters']['TYPE'])) ?>
|
|
|
|
</select>
|
2012-01-31 22:26:26 +04:00
|
|
|
</dd>
|
|
|
|
<dt>
|
2011-10-22 21:22:01 +04:00
|
|
|
<label for="adr_pobox"><?php echo $l->t('PO Box'); ?></label>
|
2012-01-31 22:26:26 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-02-02 19:46:38 +04:00
|
|
|
<input id="adr_pobox" type="text" name="value[0]" value="<?php echo htmlspecialchars($_['property']['value'][0]) ?>">
|
2012-01-31 22:26:26 +04:00
|
|
|
</dd>
|
|
|
|
<!-- dt>
|
2011-10-22 21:22:01 +04:00
|
|
|
<label for="adr_extended"><?php echo $l->t('Extended'); ?></label>
|
2012-01-31 22:26:26 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-02-02 19:46:38 +04:00
|
|
|
<input style="width: 7em;" id="adr_extended" type="text" name="value[1]" value="<?php echo htmlspecialchars($_['property']['value'][1]) ?>">
|
2012-01-31 22:26:26 +04:00
|
|
|
</dd -->
|
|
|
|
<dt>
|
2011-10-22 21:22:01 +04:00
|
|
|
<label for="adr_street"><?php echo $l->t('Street'); ?></label>
|
2012-01-31 22:26:26 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-02-02 19:46:38 +04:00
|
|
|
<input style="width: 12em;" id="adr_street" type="text" name="value[2]" value="<?php echo htmlspecialchars($_['property']['value'][2]) ?>">
|
|
|
|
<label for="adr_extended"><?php echo $l->t('Extended'); ?></label><input style="width: 7em;" id="adr_extended" type="text" name="value[1]" value="<?php echo htmlspecialchars($_['property']['value'][1]) ?>">
|
2012-01-31 22:26:26 +04:00
|
|
|
</dd>
|
|
|
|
<dt>
|
2011-10-22 21:22:01 +04:00
|
|
|
<label for="adr_city"><?php echo $l->t('City'); ?></label>
|
2012-01-31 22:26:26 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-02-02 19:46:38 +04:00
|
|
|
<input style="width: 12em;" id="adr_city" type="text" name="value[3]" value="<?php echo htmlspecialchars($_['property']['value'][3]) ?>">
|
2012-01-31 22:26:26 +04:00
|
|
|
<label for="adr_zipcode"><?php echo $l->t('Zipcode'); ?></label>
|
2012-02-02 19:46:38 +04:00
|
|
|
<input style="width: 5em;" id="adr_zipcode" type="text" name="value[5]" value="<?php echo htmlspecialchars($_['property']['value'][5]) ?>">
|
2012-01-31 22:26:26 +04:00
|
|
|
</dd>
|
|
|
|
<dt>
|
2011-10-22 21:22:01 +04:00
|
|
|
<label for="adr_region"><?php echo $l->t('Region'); ?></label>
|
2012-01-31 22:26:26 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-02-02 19:46:38 +04:00
|
|
|
<input id="adr_region" type="text" name="value[4]" value="<?php echo htmlspecialchars($_['property']['value'][4]) ?>">
|
2012-01-31 22:26:26 +04:00
|
|
|
</dd>
|
|
|
|
<!-- dt>
|
2011-10-22 21:22:01 +04:00
|
|
|
<label for="adr_zipcode"><?php echo $l->t('Zipcode'); ?></label>
|
2012-01-31 22:26:26 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-02-02 19:46:38 +04:00
|
|
|
<input style="width: 7em;" id="adr_zipcode" type="text" name="value[5]" value="<?php echo htmlspecialchars($_['property']['value'][5]) ?>">
|
2012-01-31 22:26:26 +04:00
|
|
|
</dd -->
|
|
|
|
<dt>
|
2011-10-22 21:22:01 +04:00
|
|
|
<label for="adr_country"><?php echo $l->t('Country'); ?></label>
|
2012-01-31 22:26:26 +04:00
|
|
|
</dt>
|
|
|
|
<dd>
|
2012-02-02 19:46:38 +04:00
|
|
|
<input style="width: 25em;" id="adr_country" type="text" name="value[6]" value="<?php echo htmlspecialchars($_['property']['value'][6]) ?>">
|
2012-01-31 22:26:26 +04:00
|
|
|
</dd>
|
|
|
|
</dl>
|
2011-10-22 21:22:01 +04:00
|
|
|
<?php elseif($_['property']['name']=='TEL'): ?>
|
2011-10-25 22:01:40 +04:00
|
|
|
<p class="contacts_property_name"><label for="tel"><?php echo $l->t('Phone'); ?></label></p>
|
2012-02-02 19:46:38 +04:00
|
|
|
<p class="contacts_property_data"><input id="tel" type="phone" name="value" value="<?php echo htmlspecialchars($_['property']['value']) ?>">
|
2011-11-25 00:36:14 +04:00
|
|
|
<select id="tel_type<?php echo $_['property']['checksum'] ?>" name="parameters[TYPE][]" multiple="multiple" data-placeholder="<?php echo $l->t('Type') ?>">
|
2012-01-09 04:17:04 +04:00
|
|
|
<?php echo html_select_options($_['phone_types'], isset($_['property']['parameters']['TYPE'])?$_['property']['parameters']['TYPE']:array()) ?>
|
2011-11-18 02:54:14 +04:00
|
|
|
</select></p>
|
2011-10-22 21:22:01 +04:00
|
|
|
<?php elseif($_['property']['name']=='EMAIL'): ?>
|
|
|
|
<p class="contacts_property_name"><label for="email"><?php echo $l->t('Email'); ?></label></p>
|
2012-02-02 19:46:38 +04:00
|
|
|
<p class="contacts_property_data"><input id="email" type="text" name="value" value="<?php echo htmlspecialchars($_['property']['value']); ?>"></p>
|
2011-10-25 22:01:40 +04:00
|
|
|
<?php elseif($_['property']['name']=='ORG'): ?>
|
2011-10-22 21:22:01 +04:00
|
|
|
<p class="contacts_property_name"><label for="org"><?php echo $l->t('Organization'); ?></label></p>
|
2012-02-02 19:46:38 +04:00
|
|
|
<p class="contacts_property_data"><input id="org" type="text" name="value" value="<?php echo htmlspecialchars($_['property']['value']); ?>"></p>
|
2011-10-22 21:22:01 +04:00
|
|
|
<?php endif; ?>
|
2011-11-25 00:35:41 +04:00
|
|
|
<input id="contacts_setproperty_button" type="submit" value="<?php echo $l->t('Update'); ?>">
|
2011-10-22 21:22:01 +04:00
|
|
|
</form>
|