Parcourir la source

软文发布列表界面调整文章操作项

huangct il y a 8 ans
Parent
commit
5c42d7d7f7

+ 1 - 1
jpress-web-admin/src/main/webapp/WEB-INF/admin/content/_edit_include.html

@@ -303,7 +303,7 @@
 									<#list module.metadatas as metadata>
 										<#if metadata.name == "push_time">
 											<input type="hidden" class="push_time" id="meta:push_time" name="meta:push_time" value="${(content.metadata(metadata.name))!}">
-											<a><input id="createDefaultTime" type="date" value="${(content.metadata(metadata.name))!}" onchange="getPushDate()"></a>
+											<a><input id="createDefaultTime" type="date" value="${(content.metadata(metadata.name))!}" onchange="getPushTime()"></a>
 											<i class="fa fa-caret-down" aria-hidden="true"></i>
 										</#if>
 									</#list>

+ 2 - 102
jpress-web-admin/src/main/webapp/WEB-INF/admin/content/_index_include.html

@@ -41,12 +41,6 @@
 
 		<div class="row content-row">
 			<ul class="list-inline" style="float: left">
-				<!--<li class="all">-->
-					<!--<a class="current" href="${CPATH}/admin/content?m=${m!}&p=${p!}&c=${c!}">-->
-						<!--全部 <span class="count">(${count!"0"})</span>-->
-					<!--</a>-->
-					<!--|-->
-				<!--</li>-->
 				<li class="publish">
 					<a href="${CPATH}/admin/content?m=${m!}&p=${p!}&c=${c!}&s=normal">
 						已发布 <span class="count">(${normal_count!"0"})</span>
@@ -74,43 +68,6 @@
 				</div>
 			</form>
 		</div>
-
-		<!--<div class="row content-row">-->
-			<!--<div class="jp-left">-->
-				<!--<select class="form-control input-sm jp-width120" name="action">-->
-					<!--<option value="">==批量操作==</option>-->
-					<!--<option value="delete">删除</option>-->
-				<!--</select>-->
-			<!--</div>-->
-			<!--<div class="jp-left  ">-->
-				<!--<button class="btn btn-block btn-sm btn-default" type="button" onclick="batchAction()">应用</button>-->
-			<!--</div>-->
-
-			<!--<#if _taxonomyMap ??>-->
-				<!--<#list  _taxonomyMap.keySet() as _title>-->
-					<!--<div class="jp-left">-->
-						<!--<select class="form-control input-sm jp-width120 jp-selected"  >-->
-							<!--<option value="">全部${_title!}</option>-->
-							<!--<#if _taxonomyMap.get(_title) ??>-->
-								<!--<#list _taxonomyMap.get(_title) as taxonomy >-->
-									<!--<option value="${taxonomy.id!}" ${taxonomy._selected!}>${taxonomy.layerString!}${taxonomy.title!}</option>-->
-								<!--</#list>-->
-							<!--</#if>-->
-						<!--</select>-->
-					<!--</div>-->
-				<!--</#list>-->
-			<!--</#if>-->
-
-			<!--<#if _taxonomyMap ??>-->
-				<!--<div class="jp-left  ">-->
-					<!--<form action="${CPATH}/admin/content?m=${m!}&p=${p!}&c=${c!}&s=${s!}&k=${k!}" method="POST">-->
-						<!--<input type="hidden"  class="tids" name="tids" >-->
-						<!--<input type="submit" class="btn btn-block btn-sm btn-default" value="筛选" />-->
-					<!--</form>-->
-				<!--</div>-->
-			<!--</#if>-->
-		<!--</div>-->
-
 		<div class="box">
 			<!-- /.box-header -->
 			<div class="box-body">
@@ -123,16 +80,9 @@
 							<th width="340">标题</th>
 							<th width="195">日期</th>
 							<th width="100">作者</th>
-							<!--<#if (module.taxonomyTypes) ??>-->
-								<!--<#list module.taxonomyTypes as taxonomyType>-->
-									<!--<th style="width:15%">${(taxonomyType.title)!}</th>-->
-								<!--</#list>-->
-							<!--</#if>-->
 							<th width="130">版权</th>
 							<th width="85">类别</th>
 							<th width="80">留言条数</th>
-							<!--<th style="width:5%"><i class="fa fa-commenting"></i></th>-->
-							<!--<th style="width:90px;">发布日期</th>-->
 						</tr>
 						</thead>
 						<tbody class="bodyUas">
@@ -198,7 +148,7 @@
 
 
 						<#if page??> <#list page.getList() as bean>
-						<tr>
+						<tr class="jp-onmouse">
 							<td class="titleUas"><input name="dataItem" type="checkbox" value="${bean.id}"></td>
 							<td>
 								<strong>
@@ -222,7 +172,7 @@
 									</p>
 								</div>
 							</td>
-							<td>${bean.created!}</td>
+							<td>${(bean.metadata("push_time"))!}</td>
 							<td>${(bean.author)!}</td>
 							<td>${(bean.metadata("copy_right"))!}</td>
 							<td>新闻</td>
@@ -230,58 +180,8 @@
 						</tr>
 						</#list>
 						</#if>
-						<!--<#if page??> <#list page.getList() as bean>-->
-							<!--<tr class="jp-onmouse">-->
-								<!--<td><input name="dataItem" type="checkbox" value="${bean.id}"></td>-->
-								<!--<td><strong><a href="${CPATH}/admin/content/edit?id=${bean.id}&c=edit&p=${p!}">-->
-									<!--<span class="article-title">${bean.title!}</span></a> <#if "draft" == bean.status!>(草稿)</#if></strong>-->
-									<!--<div class="jp-flash-comment">-->
-										<!--<p class="row-actions jp-cancel-pad">-->
-											<!--<#if "delete" != s!>-->
-												<!--<span class="approve"> <a class="vim-a" href="${CPATH}/admin/content/edit?id=${bean.id}&c=edit&p=${p!}&m=${m!}">编辑</a></span>-->
-												<!--<#if "draft" != bean.status!>-->
-													<!--<span class="approve">|<a class="vim-a" href="javascript:draft('${bean.id}')">草稿</a></span>-->
-												<!--</#if>-->
-												<!--<span class="spam">|<a class="vim-s vim-destructive" href="javascript:trash('${bean.id}')">垃圾箱</a></span>-->
-												<!--<span class="trash">|<a class="delete vim-d vim-destructive" href="${bean.url!}" target="_blank">查看</a>-->
-											<!--</span>-->
-												<!--<#else>-->
-													<!--<span class="approve"> <a class="vim-a" href="javascript:restore('${bean.id}')">还原</a></span>-->
-													<!--<span class="spam">|<a class="vim-s vim-destructive" href="javascript:del('${bean.id}')">永久删除</a></span>-->
-											<!--</#if>-->
-										<!--</p>-->
-									<!--</div>-->
-								<!--</td>-->
-								<!--<td>${(bean.username)!}</td>-->
-								<!--<#if (module.taxonomyTypes) ??>-->
-									<!--<#list module.taxonomyTypes as taxonomyType>-->
-										<!--<td>${(bean.getTaxonomyAsUrl(taxonomyType.name,"target=\"_blank\""))!}</td>-->
-									<!--</#list>-->
-								<!--</#if>-->
-								<!--<td>-->
-									<!--<a href="${CPATH}/admin/comment?t=comment&c=comment&m=${m!}&p=${p!}&cid=${bean.id!}">-->
-										<!--${bean.commentCount!}-->
-									<!--</a>-->
-								<!--</td>-->
-								<!--<td>${bean.created!}</td>-->
-							<!--</tr>-->
-						<!--</#list>-->
-						<!--</#if>-->
 						</tbody>
 						<tfoot>
-						<!--<tr>-->
-							<!--<th style="width:20px;"><input name="dataItem" onclick="checkAll(this)" type="checkbox" value="0"></th>-->
-							<!--<th >标题</th>-->
-							<!--<th style="width:10%">作者</th>-->
-							<!--<#if (module.taxonomyTypes) ??>-->
-								<!--<#list module.taxonomyTypes as taxonomyType>-->
-									<!--<th style="width:15%">${(taxonomyType.title)!}</th>-->
-								<!--</#list>-->
-							<!--</#if>-->
-							<!--<th style="width:5%"><i class="fa fa-commenting"></i></th>-->
-							<!--<th style="width:90px;">发布日期</th>-->
-						<!--</tr>-->
-						</tfoot>
 					</table>
 				</form>
 			</div>

+ 1 - 1
jpress-web-admin/src/main/webapp/WEB-INF/admin/content/edit.html

@@ -13,7 +13,7 @@ function commentable(){
 	}
 }
 
-function getPushDate(){
+function getPushTime(){
 	//var now = new Date();
 	//格式化日,如果小于9,前面补0
 	//var day = ("0" + now.getDate()).slice(-2);