80 lines
3.3 KiB
PHTML
80 lines
3.3 KiB
PHTML
<?php
|
|
$this->headTitle($this->config->title->site);
|
|
$this->headTitle('后台管理');
|
|
$this->headTitle()->setSeparator(' - ');
|
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|
$this->headLink()->appendStylesheet('/css/admin.css');
|
|
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
|
|
$this->headLink()->appendStylesheet('/css/author.css');
|
|
$this->headLink()->appendStylesheet('/css/colorbox.css');
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
|
$this->breadcrumb('<a href="/admin">后台首页</a>');
|
|
$this->breadcrumb('<a href="/admin/news">新闻中心</a>');
|
|
$this->breadcrumb('栏目管理');
|
|
?>
|
|
<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; ?>
|
|
<form id="sampleform" method="post" action="#">
|
|
|
|
<fieldset>
|
|
<legend>栏目添加</legend>
|
|
|
|
<p>
|
|
<label class="required" for="ctitle">栏目标题</label><br/>
|
|
<input type="text" id="ctitle" class="half" value="<?php if(!empty($this->info['title'])) echo $this->info['title'];?>" name="ctitle"/>
|
|
</p>
|
|
|
|
<p>
|
|
<label class="required" for="ptype">栏目类型</label><br/>
|
|
<select name="ptype">
|
|
<?php if(!empty($this->ptype)) :?>
|
|
<?php foreach($this->ptype as $k=>$v) : ?>
|
|
<?php if(empty($this->info['ptype'])) {?>
|
|
<option value="<?= $v ?>"><?= $k ?></option>
|
|
<?php }else{
|
|
if($this->info['ptype'] == $v)
|
|
{ ?>
|
|
<option value="<?= $v ?>" selected="selected"><?= $k ?></option>
|
|
<?php }else{?>
|
|
<option value="<?= $v ?>"><?= $k ?></option>
|
|
<?php }
|
|
}?>
|
|
<?php endforeach;?>
|
|
<?php endif; ?>
|
|
</select>
|
|
</p>
|
|
|
|
<p>
|
|
<label class="required" for="code">栏目URL</label><br/>
|
|
<input type="text" id="code" class="half" value="<?php if(!empty($this->info['code'])) echo $this->info['code'];?>" name="code"/>(仅小写英文字母与数字)
|
|
<small>如填写: technology 则前台访问地址为: http://westdc.westgis.ac.cn/news/technology </small>
|
|
</p>
|
|
|
|
<p>
|
|
<label class="required" for="display">是否显示:</label><br/>
|
|
<select name="is_pub" id="display">
|
|
<option value="true" <?php if(empty($this->info['is_pub']) || $this->info['is_pub']==true)echo 'selected="selected"'; ?>>显示</option>
|
|
<option value="false" <?php if(!empty($this->info['is_pub'])) if($this->info['is_pub'] == false )echo 'selected="selected"'; ?>>隐藏</option>
|
|
</select>
|
|
</p>
|
|
|
|
<input type="hidden" name="submit" value="1" />
|
|
<input type="hidden" name="edit" value="<?= $this->info['id']?>"? />
|
|
|
|
<p class="box"><input type="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置"/></p>
|
|
|
|
</fieldset>
|
|
|
|
</form>
|
|
</div>
|