2011-10-17 16:56:45 +00:00
|
|
|
|
<?php
|
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
|
$this->headTitle('后台管理');
|
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
|
|
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|
|
|
|
$this->breadcrumb('<a href="/admin/watermd">WATER元数据工具</a>');
|
|
|
|
|
$this->breadcrumb('联系人替换');
|
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
|
?>
|
|
|
|
|
<div id="leftPanel">
|
|
|
|
|
<?= $this->partial('watermd/left.phtml'); ?>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="rightPanel">
|
|
|
|
|
<?php if ($this->msg or $this->messages) :?>
|
|
|
|
|
<div id="message">
|
|
|
|
|
<?php if ($this->msg) : ?>
|
|
|
|
|
<p><?php echo $this->msg; ?></p>
|
|
|
|
|
<?php endif; if ($this->messages): foreach($this->messages as $msg): ?>
|
|
|
|
|
<p><?php echo $msg; ?></p>
|
|
|
|
|
<?php endforeach;endif; ?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
|
|
|
|
|
<form enctype="application/x-www-form-urlencoded" action="" method="post">
|
|
|
|
|
<label>被替换者姓名:</label>
|
|
|
|
|
<input type="text" name="oldname" value="<?= $this->formdata['oldname'] ?>">
|
|
|
|
|
<fieldset><legend>替换信息</legend>
|
|
|
|
|
<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="delpoint" value="<?= $this->formdata['delpoint'] ?>"></li>
|
2011-10-18 05:02:55 +00:00
|
|
|
|
<li><label>城市:</label><input type="text" name="city" value="<?= $this->formdata['city'] ?>"></li>
|
|
|
|
|
<li><label>省份:</label><input type="text" name="adminarea" value="<?= $this->formdata['adminarea'] ?>"></li>
|
|
|
|
|
<li><label>国家:</label><input type="text" name="country" value="<?= $this->formdata['country'] ?>"></li>
|
2011-10-17 16:56:45 +00:00
|
|
|
|
<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="email" value="<?= $this->formdata['email'] ?>"></li>
|
|
|
|
|
</fieldset>
|
|
|
|
|
<label>测试XML数据</label>
|
|
|
|
|
<textarea name="testxml" rows="10" cols="80"><?= $this->formdata['testxml'] ?></textarea>
|
2011-10-18 05:02:55 +00:00
|
|
|
|
<li><input type="submit" name="test" id="test" value="测试"> <input type="submit" id="submit" name="submit" value="全部运行(危险操作!请先测试)"></li>
|
2011-10-17 16:56:45 +00:00
|
|
|
|
</form>
|
2011-10-18 05:02:55 +00:00
|
|
|
|
<?php if ($this->deal) : ?>
|
|
|
|
|
<div id="mdlist">
|
|
|
|
|
已处理数据:
|
|
|
|
|
<?php foreach ($this->deal as $deal): ?>
|
|
|
|
|
<ul>
|
|
|
|
|
<li>UUID:<?php echo $deal['uuid']; ?></li>
|
|
|
|
|
<li><a href="/data/<?= $deal['uuid']; ?>"><?= $deal['title']; ?></a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</div>
|
2011-10-17 16:56:45 +00:00
|
|
|
|
<?php if ($this->test) : ?>
|
|
|
|
|
<div>测试结果:<br />
|
|
|
|
|
<?= $this->escape($this->test) ?>
|
|
|
|
|
</div>
|
|
|
|
|
<?php endif; ?>
|