westdc-zf1/application/admin/views/scripts/test/source.phtml

41 lines
1.4 KiB
PHTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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/test">数据测试工具</a>');
$this->breadcrumb('source缺失检查');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id="leftPanel">
<?= $this->partial('test/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; ?>
<?php if ($this->rows) : ?>
<div id="mdlist">
缺失SOURCE的数据项
<?php foreach ($this->rows as $doi): ?>
<ul>
<li><a href="/water/<?= $doi['uuid']; ?>"><?php echo $doi['title']; ?></a></li>
</ul>
<?php endforeach; ?>
以上数据若确认是黑河试验的数据请通过以下SQL语句执行修复
"update metadata set source='0595169a-279e-4b95-819f-129d0ba4280d' where id in (select id from metadata where source='' and title ilike '黑河综合遥感联合试验%')"
也可以对geonetwork数据库统一赋值。
</div>
<?php else : ?>
恭喜!没有对应的数据。
<?php endif; ?>
</div>