添加doi编辑和添加页面

This commit is contained in:
Li Jianxuan 2013-04-22 10:19:20 +00:00
parent 3e9b3b971e
commit 194e3291f1
1 changed files with 92 additions and 0 deletions

View File

@ -0,0 +1,92 @@
<?php
$this->headTitle($this->config->title->site);
$this->headTitle($this->config->title->author);
$this->headTitle()->setSeparator(' - ');
//$this->headLink()->appendStylesheet('/css/admin.css');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/admin/data">数据管理</a>');
$this->breadcrumb('DOI');
$this->breadcrumb()->setSeparator(' > ');
$this->theme->AppendPlus($this,'colorbox');
?>
<div class="row-fluid">
<div class="span2">
<?= $this->partial('data/left.phtml'); ?>
</div>
<div class="span10">
<div>
<ul class="nav nav-tabs">
<li><a href="/admin/data/doi">浏览所有</a></li>
<?php if(!empty($this->uuid)) {?>
<li class="active"><a href="javascript:void(0);">编辑DOI</a></li>
<?php }else{ ?>
<li class="active"><a href="/admin/data/doi/ac/add">添加新DOI</a></li>
<?php } ?>
</ul>
</div>
<div class="">
<?php if(!empty($this->error)) { ?>
<?= $this->error ?>
<?php } ?>
<?php if(!empty($this->msg)) { ?>
<?= $this->msg ?>
<?php } else{ ?>
<form class="form-horizontal" method="post">
<div class="control-group">
<label class="control-label" for="title">doi</label>
<div class="controls">
<input type="text" id="title" name="title" value="<?= isset($this->data['doi']) ? $this->data['doi']:"doi:10.3972/..db" ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="fund_id">uuid</label>
<div class="controls">
<input type="text" id="fund_id" name="fund_id" value="<?= isset($this->data['uuid']) ? $this->data['uuid']:"" ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="fund_type">发布者</label>
<div class="controls">
<input type="text" id="fund_type" name="fund_type" value="<?= isset($this->data['publisher']) ? $this->data['publisher']:"" ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="title_en">url</label>
<div class="controls">
<input type="text" id="title_en" name="title_en" value="<?= isset($this->data['url']) ? $this->data['url']:"" ?>" />
</div>
</div>
<div class="control-group">
<label class="control-label" for="fund_type_en">title</label>
<div class="controls">
<input type="text" id="fund_type_en" name="fund_type_en" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
</div>
</div>
<?php if(empty($this->data['info'])) {?>
<div class="control-group" id="info1">
<label class="control-label" for="fund_type_en">info</label>
<div class="controls">
<input type="text" name="info[1][author]" value="" placeholder="作者" />
<input type="text" name="info[1][organization]" value="" placeholder="单位" />
<input type="text" name="info[1][order]" value="" placeholder="排序" />
</div>
</div>
<?php } ?>
<div class="control-group">
<div class="controls">
<input type="hidden" name="submit" value="1" />
<?php if(!empty($this->id)) { ?>
<input type="hidden" name="id" value=" <?=$this->id?> " />
<?php } ?>
<?php if(!empty($this->uuid)) { ?>
<input type="hidden" name="uuid" value=" <?=$this->uuid?> " />
<?php } ?>
<button type="submit" class="btn btn-primary">提交</button>
</div>
</div>
</form>
<?php } ?>
</div>
</div>
</div>
<!-- //页面内容 -->