添加city/province/country

This commit is contained in:
wlx 2011-10-17 17:10:34 +00:00
parent d17c4798ea
commit 3d7b971d1e
2 changed files with 9 additions and 0 deletions

View File

@ -348,8 +348,14 @@ class Admin_WatermdController extends Zend_Controller_Action
$newrpCntInfo->appendChild($newcntAddress); $newrpCntInfo->appendChild($newcntAddress);
$newdelPoint=$dom->createElement('delPoint',$replace['delpoint']); $newdelPoint=$dom->createElement('delPoint',$replace['delpoint']);
$newcntAddress->appendChild($newdelPoint); $newcntAddress->appendChild($newdelPoint);
$newcity=$dom->createElement('city',$replace['city']);
$newcntAddress->appendChild($newcity);
$newarea=$dom->createElement('adminArea',$replace['adminarea']);
$newcntAddress->appendChild($newarea);
$newpostCode=$dom->createElement('postCode',$replace['postcode']); $newpostCode=$dom->createElement('postCode',$replace['postcode']);
$newcntAddress->appendChild($newpostCode); $newcntAddress->appendChild($newpostCode);
$newcountry=$dom->createElement('country',$replace['country']);
$newcntAddress->appendChild($newcountry);
$neweMailAdd=$dom->createElement('eMailAdd',$replace['email']); $neweMailAdd=$dom->createElement('eMailAdd',$replace['email']);
$newcntAddress->appendChild($neweMailAdd); $newcntAddress->appendChild($neweMailAdd);

View File

@ -43,6 +43,9 @@
<li><label>姓名:</label><input type="text" name="name" value="<?= $this->formdata['name'] ?>"></li> <li><label>姓名:</label><input type="text" name="name" value="<?= $this->formdata['name'] ?>"></li>
<li><label>单位:</label><input type="text" name="unit" value="<?= $this->formdata['unit'] ?>"></li> <li><label>单位:</label><input type="text" name="unit" value="<?= $this->formdata['unit'] ?>"></li>
<li><label>地址:</label><input type="text" name="delpoint" value="<?= $this->formdata['delpoint'] ?>"></li> <li><label>地址:</label><input type="text" name="delpoint" value="<?= $this->formdata['delpoint'] ?>"></li>
<li><label>City</label><input type="text" name="city" value="<?= $this->formdata['city'] ?>"></li>
<li><label>Province</label><input type="text" name="adminarea" value="<?= $this->formdata['adminarea'] ?>"></li>
<li><label>Country</label><input type="text" name="country" value="<?= $this->formdata['country'] ?>"></li>
<li><label>邮编:</label><input type="text" name="postcode" value="<?= $this->formdata['postcode'] ?>"></li> <li><label>邮编:</label><input type="text" name="postcode" value="<?= $this->formdata['postcode'] ?>"></li>
<li><label>电话:</label><input type="text" name="voicenum" value="<?= $this->formdata['voicenum'] ?>"></li> <li><label>电话:</label><input type="text" name="voicenum" value="<?= $this->formdata['voicenum'] ?>"></li>
<li><label>邮箱:</label><input type="text" name="email" value="<?= $this->formdata['email'] ?>"></li> <li><label>邮箱:</label><input type="text" name="email" value="<?= $this->formdata['email'] ?>"></li>