修改新闻添加模板,删除错误的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,101 +61,85 @@ $(document).ready(function(){
}); });
}); });
</script> </script>
<div id="leftPanel"> <div class="row-fluid">
<?= $this->partial('news/left.phtml'); ?> <div class="span3">
</div> <?= $this->partial('news/left.phtml'); ?>
<div id="rightPanel"> </div>
<section class="column"> <div class="span9">
<h2>新闻发布</h2>
<form name="form" id="archivesadd" method="post" action="#"> <hr />
<form name="form" id="archivesadd" method="post" action="#" class="form-horizontal">
<fieldset> <input type="hidden" id="image" class="half title" value="" name="image"/>
<legend>新闻信息</legend> <div class="control-group">
<input type="hidden" id="image" class="half title" value="" name="image"/> <label class="control-label" for="producttitle">标题</label>
<p> <div class="controls">
<label class="required" for="producttitle">标题</label><br/> <input type="text" id="producttitle" class="span12" name="title" value="<?= isset($this->data['title']) ? $this->data['title']:"" ?>" />
<input type="text" id="producttitle" class="half title" value="" name="title"/> </div>
</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/>
<?php
foreach($this->types as $v)
{
$head = "";
if(!empty($v[$this->deepField])) {$head = str_repeat('-',$v[$this->deepField]);}
echo '<input type="checkbox" name="typeid[]" value="'.$v['id'].'" />'.$head.$v['title'].'<br />';
$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>
<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="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 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>
</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> <div class="control-group">
<!-- End of Left column/section --> <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)
{
$head = "";
if(!empty($v[$this->deepField])) {$head = str_repeat('-',$v[$this->deepField]);}
echo '<input type="checkbox" name="typeid[]" value="'.$v['id'].'" />'.$head.$v['title'].'<br />';
$head = "";
}
?>
</div>
</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>
<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" />
</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>
<input type="button" onclick="addon();" id="submit" class="btn btn-pramriy" value="提交"/> or <input type="reset" class="btn" value="重置"/>
</div>
</form>
</div>
</div> </div>
<script type="text/javascript"> <script type="text/javascript">
$(function(){ $(function(){