2011-09-23 07:34:40 +00:00
|
|
|
|
<?php
|
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
|
$this->headTitle('后台管理');
|
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
2012-03-27 07:02:36 +00:00
|
|
|
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
|
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
|
|
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|
|
|
|
$this->breadcrumb('<a href="/admin/news">新闻中心</a>');
|
|
|
|
|
$this->breadcrumb('栏目添加');
|
2011-09-23 07:34:40 +00:00
|
|
|
|
?>
|
2012-03-27 07:02:36 +00:00
|
|
|
|
<div id="leftPanel">
|
|
|
|
|
<?= $this->partial('news/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; ?>
|
|
|
|
|
<h3>添加栏目</h3>
|
|
|
|
|
<form id="sampleform" method="post" action="#">
|
2011-09-23 07:34:40 +00:00
|
|
|
|
|
2012-03-27 07:02:36 +00:00
|
|
|
|
<fieldset>
|
|
|
|
|
<legend>栏目信息</legend>
|
2011-09-23 07:34:40 +00:00
|
|
|
|
|
2012-03-27 07:02:36 +00:00
|
|
|
|
<p>
|
|
|
|
|
<label class="required" for="ctitle">栏目标题:</label><br/>
|
|
|
|
|
<input type="text" id="ctitle" class="half" value="" name="ctitle"/>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<p>
|
|
|
|
|
<label class="required" for="ctitle">栏目URL:</label><br/>
|
|
|
|
|
<input type="text" id="url" class="half" value="" name="url"/>(仅小写英文字母与数字)
|
|
|
|
|
<small>如填写: technology 则前台访问地址为: http://westdc.westgis.ac.cn/news/technology </small>
|
|
|
|
|
</p>
|
2011-09-23 07:34:40 +00:00
|
|
|
|
|
2012-03-27 07:02:36 +00:00
|
|
|
|
<p>
|
|
|
|
|
<label class="required" for="keyword">关键字:</label><br/>
|
|
|
|
|
<input type="text" id="keyword" class="half" value="" name="keyword"/>
|
|
|
|
|
<small>e.g. 高程,气象,地理</small>
|
|
|
|
|
</p>
|
2011-09-23 07:34:40 +00:00
|
|
|
|
|
2012-03-27 07:02:36 +00:00
|
|
|
|
<p>
|
|
|
|
|
<label class="required" for="discript">描述:</label><br/>
|
|
|
|
|
<textarea id="discript" class="medium half" name="discript"></textarea>
|
|
|
|
|
<small>80个汉字以内,不能使用折行</small>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<input type="hidden" name="submit" value="1" />
|
|
|
|
|
|
|
|
|
|
<p class="box"><input type="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置"/></p>
|
2011-09-23 07:34:40 +00:00
|
|
|
|
|
2012-03-27 07:02:36 +00:00
|
|
|
|
</fieldset>
|
2011-09-23 07:34:40 +00:00
|
|
|
|
|
2012-03-27 07:02:36 +00:00
|
|
|
|
</form>
|
|
|
|
|
</div>
|