修改新闻添加模板,删除错误的jquery版本引用

This commit is contained in:
Li Jianxuan 2013-05-15 07:49:18 +00:00
parent efb207e957
commit aa3efdba5a
1 changed files with 78 additions and 95 deletions

View File

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