48 lines
2.1 KiB
PHTML
48 lines
2.1 KiB
PHTML
<div class="modal hide fade" id="mdref-form">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
|
<h3>添加数据文献</h3>
|
|
</div>
|
|
<div class="modal-body">
|
|
<form id="mdref" method="post" class="form-horizontal">
|
|
<div class="control-group">
|
|
<label class="control-label" for="inputRefid">文献ID</label>
|
|
<div class="controls">
|
|
<input type="text" name="refid" id="inputRefid" placeholder="文献ID" value="<?= empty($this->refid) ? "":$this->refid ?>">
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="control-label" for="inputUuid">元数据UUID</label>
|
|
<div class="controls">
|
|
<input type="text" name="uuid" id="inputUuid" placeholder="UUID">
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="control-label" for="inputPlace">排序数值(数字)</label>
|
|
<div class="controls">
|
|
<input type="text" name="place" id="inputPlace" placeholder="排序">
|
|
</div>
|
|
</div>
|
|
<div class="control-group">
|
|
<label class="control-label">文献类型</label>
|
|
<div class="controls">
|
|
<?php foreach($this->referenceType as $k=>$v) { ?>
|
|
<label class="radio">
|
|
<input type="radio" name="reftype" value="<?= $k ?>" /> <?= $v ?>
|
|
</label>
|
|
<?php } ?>
|
|
</div>
|
|
</div>
|
|
<input type="hidden" name="id" value="" />
|
|
</form>
|
|
</div>
|
|
<div id="alert-info"></div>
|
|
<div class="modal-footer">
|
|
<div class="progress progress-striped active" id="submit-loading" style="display:none;">
|
|
<div class="bar" style="width:100%;"></div>
|
|
</div>
|
|
<button onclick="$('#mdref')[0].reset();" class="btn">Reset</button>
|
|
<button onclick="$('#mdref-form').modal('hide');" class="btn">Close</button>
|
|
<button onclick="mdref.create()" class="btn btn-primary" id="submit_btn">Save changes</button>
|
|
</div>
|
|
</div>
|