westdc-zf1/application/admin/views/scripts/data/referenceadd.phtml

51 lines
2.5 KiB
PHTML

<?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/data">数据管理</a>');
$this->breadcrumb('数据文献管理</a>');
$this->breadcrumb()->setSeparator(' > ');
?>
<div id="leftPanel">
<?= $this->partial('data/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; ?>
<a href="/admin/data/reference/add/1">添加新的数据文献</a>
| <a href="/admin/data/reference/add/1/type/dc">添加数据中心文献</a>
| <a href="/admin/data/reference/import/1">导入数据文献文件</a>
| <a href="/admin/data/reference/show/e31f5ea7-a4af-4ae3-9ac1-1a84132c4338">查看数据中心文献</a>
<?php
if($this->type == 'dc')
{?>
<form id="Reference" enctype="application/x-www-form-urlencoded" action="/admin/data/reference/add/1/" method="post"><dl class="zend_form">
<input type="hidden" name="uuid" id="uuid" value="e31f5ea7-a4af-4ae3-9ac1-1a84132c4338" readonly="readonly">
<dt id="reference-label"><label for="reference" class="required">文献</label></dt>
<dd id="reference-element">
<input type="text" name="reference" id="reference" value=""></dd>
<dt id="link-label"><label for="link" class="optional">URL(optional)</label></dt>
<dd id="link-element">
<input type="text" name="link" id="link" value=""></dd>
<dt id="reftype-label"><label class="required">文献类型</label></dt>
<dd id="reftype-element">
<label for="reftype-0"><input type="radio" name="reftype" id="reftype-0" value="0" checked="checked">作者文献</label>
<label for="reftype-1"><input type="radio" name="reftype" id="reftype-1" value="1">用户文献</label>
<label for="reftype-2"><input type="radio" name="reftype" id="reftype-2" value="2">数据的参考文献</label>
<label for="reftype-3"><input type="radio" name="reftype" id="reftype-3" value="3">作者要求的文献引用方式(多篇)</label>
</dd>
<dt id="submit-label">&#160;</dt><dd id="submit-element">
<input type="submit" name="submit" id="submitbutton" value="发送"></dd></dl></form>
<?php }
else ?><?= $this->form; ?>
</div>