修改新闻添加模板,删除错误的jquery版本引用
This commit is contained in:
parent
efb207e957
commit
aa3efdba5a
|
@ -2,7 +2,6 @@
|
|||
$this->headTitle($this->config->title->site);
|
||||
$this->headTitle('后台管理');
|
||||
$this->headTitle()->setSeparator(' - ');
|
||||
$this->headLink()->appendStylesheet('/css/admin.css');
|
||||
$this->headScript()->appendFile('/static/js/jquery.tagInput.min.js');
|
||||
$this->headScript()->appendFile('/static/js/kindeditor-min.js');
|
||||
$this->headScript()->appendFile('/static/js/kindlang/zh_CN.js');
|
||||
|
@ -62,53 +61,50 @@ $(document).ready(function(){
|
|||
});
|
||||
});
|
||||
</script>
|
||||
<div id="leftPanel">
|
||||
<?= $this->partial('news/left.phtml'); ?>
|
||||
</div>
|
||||
<div id="rightPanel">
|
||||
<section class="column">
|
||||
|
||||
<form name="form" id="archivesadd" method="post" action="#">
|
||||
|
||||
<fieldset>
|
||||
<legend>新闻信息</legend>
|
||||
<div class="row-fluid">
|
||||
<div class="span3">
|
||||
<?= $this->partial('news/left.phtml'); ?>
|
||||
</div>
|
||||
<div class="span9">
|
||||
<h2>新闻发布</h2>
|
||||
<hr />
|
||||
<form name="form" id="archivesadd" method="post" action="#" class="form-horizontal">
|
||||
<input type="hidden" id="image" class="half title" value="" name="image"/>
|
||||
<p>
|
||||
<label class="required" for="producttitle">标题</label><br/>
|
||||
<input type="text" id="producttitle" class="half title" value="" name="title"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="source" class="required">来源</label><br/>
|
||||
<input type="text" id="source" class="half title" value="寒区旱区科学数据中心" name="source"/>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
图片:
|
||||
<ul id="datalist">
|
||||
</ul>
|
||||
<span id="fileupBtn"><input id="file_upload" name="Filedata" type="file" /></span>
|
||||
<input type="button" class="btn btn-small" onclick="$('#file_upload').uploadifyUpload();" value="上传" />
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="description">内容简介(描述)</label><br/>
|
||||
<textarea id="description" class="small half" name="description"></textarea>
|
||||
<small id="enablelen"></small>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label for="body">新闻内容</label><br/>
|
||||
<textarea id="body" class="large full" name="body"></textarea>
|
||||
</p>
|
||||
|
||||
|
||||
|
||||
<div class="clearfix leading" style="overflow:hidden;">
|
||||
<div class="column width3 first">
|
||||
<p>
|
||||
<label for="type" class="required">新闻栏目</label><br/>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="producttitle">标题</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="producttitle" class="span12" name="title" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="source">来源</label>
|
||||
<div class="controls">
|
||||
<input type="text" id="source" class="span12" name="source" value="中国西部环境与生态科学数据中心" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="image">图片</label>
|
||||
<div class="controls">
|
||||
<input id="file_upload" name="Filedata" type="file" /><input type="button" class="btn btn-small" onclick="$('#file_upload').uploadifyUpload();" value="上传" />
|
||||
<div id="datalist">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="description">内容简介(描述)</label>
|
||||
<div class="controls">
|
||||
<textarea id="description" class="span12" name="description"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="body">新闻内容</label>
|
||||
<div class="controls">
|
||||
<textarea id="body" class="span12" name="body"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="type">新闻栏目</label>
|
||||
<div class="controls">
|
||||
<?php
|
||||
foreach($this->types as $v)
|
||||
{
|
||||
|
@ -118,45 +114,32 @@ $(document).ready(function(){
|
|||
$head = "";
|
||||
}
|
||||
?>
|
||||
|
||||
<small>e.g. 研究成果</small>
|
||||
</p>
|
||||
<p><a href="/admin/news/catlog/add/1" target="_blank">+ 添加新栏目</a></p>
|
||||
</div>
|
||||
|
||||
<div class="column width3 first">
|
||||
<p>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="pub">发布选项</label>
|
||||
<div class="controls">
|
||||
<select id="pub" class="full" name="pub">
|
||||
<option value="true">立即发布</option>
|
||||
<option value="false">存草稿</option>
|
||||
</select>
|
||||
</p>
|
||||
<p>
|
||||
<input type="checkbox" id="pubtimeturn" name="pubtimer" value="1" /><label id="pubtimelable" for="productcat">定时发布?</label><br/>
|
||||
<input type="checkbox" id="pubtimeturn" name="pubtimer" value="1" />定时发布?
|
||||
<input type="text" name="pubtime" id="pubtime" value="<?php echo date("Y-m-d H:i",time()+3600*24);?>" readonly="readonly" />
|
||||
<small>e.g. 2011-10-28 9:35 or 2011-10-28 21:35</small>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="pub">新闻标签</label>
|
||||
<div class="controls">
|
||||
<textarea id="keyword" class="span12" name="keyword"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-actions">
|
||||
<div id="return"></div>
|
||||
|
||||
<p class="box"><input type="button" onclick="addon();" id="submit" class="btn btn-green big" value="提交"/> or <input type="reset" class="btn" value="重置"/></p>
|
||||
|
||||
</fieldset>
|
||||
<input type="button" onclick="addon();" id="submit" class="btn btn-pramriy" value="提交"/> or <input type="reset" class="btn" value="重置"/>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
<div class="content-box">
|
||||
<header>
|
||||
<h3>新闻标签</h3>
|
||||
</header>
|
||||
<section>
|
||||
输入Tag标签,多个用半角逗号 " , "隔开,每个Tag标签长度小于6个汉字
|
||||
<p><textarea id="keyword" class="small full" name="keyword"></textarea></p>
|
||||
</section>
|
||||
</div>
|
||||
</section>
|
||||
<!-- End of Left column/section -->
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(function(){
|
||||
|
|
Loading…
Reference in New Issue