phpcms v9自带的相关文章、专题等模块不支持order排序,调用的相关文章、专题默认为升序,这样就造成了一个问题,调出来的相关文章是最早的文章,没有时效性。我们只能通过修改程序文件,只需简单修改一个文件,就能达到我们的需求。
修改相关文章排序的方法:
打开根目录下的phpcms/modules/content/classes/content_tag.class.php,找到
$r...
分类:
Web程序 时间:
2014-07-29 18:08:32
阅读次数:
215
//保持屏幕常亮
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP, LOCK_TAG);
mWakeLo...
分类:
移动开发 时间:
2014-07-29 18:04:13
阅读次数:
236
由于测试FreeSWITCH不同版本的需要,研究了下Git的使用,通过Git来管理所有的版本,方便了测试。以下就总结下具体的使用方法:其中:git clone ..是现在git仓库;git tag 是查看freeswitch的版本 ; git checkout v.. 是切换到指定的v.. 版本.....
分类:
其他好文 时间:
2014-07-29 13:48:28
阅读次数:
220
由于测试FreeSWITCH不同版本的需要,研究了下Git的使用,通过Git来管理所有的版本,方便了测试。以下就总结下具体的使用方法:其中:git clone ..是现在git仓库;git tag 是查看freeswitch的版本 ; git checkout v.. 是切换到指定的v.. 版本.....
分类:
其他好文 时间:
2014-07-29 13:47:38
阅读次数:
190
??
Description
Keeping track of all the cows can be a tricky task so Farmer John has installed a system to automate it. He has installed on each cow an electronic ID tag that the system will read ...
分类:
其他好文 时间:
2014-07-29 13:22:46
阅读次数:
212
路径:phpcms/module/content/classes/content_tag.class.php 添加如下方法 /** * 列表页标签:主要返回的是主表中数据与附表中数据 * @param $data */ public function lists_al...
分类:
Web程序 时间:
2014-07-29 12:20:08
阅读次数:
240
1 2 3 4 5 6 7 8 My JSP '1.jsp' starting page 9 10 11 12 13 您的IP是:14 15 16 JSP 1 package cn.itcast.web.tag; 2 3 im...
分类:
其他好文 时间:
2014-07-29 12:02:36
阅读次数:
198
并查集是一种树型的数据结构,用于处理一些不相交集合(Disjoint Sets)的合并及查询问题。常常在使用中以森林来表示。集就是让每个元素构成一个单元素的集合,也就是按一定顺序将属于同一组的元素所在的集合合并。Find:确定元素属于哪一个子集。它可以被用来确定两个元素是否属于同一子集合。Union...
分类:
其他好文 时间:
2014-07-29 10:41:06
阅读次数:
270
spin.js,ruby上使用例子<divid="spinBody">
<div>
<%form_tag"/login",:id=>"login_form"do-%>
<tablewidth="100%"cellpadding="3"style="margin-top:15px;">
<tr>
<thstyle="width:80px;"><%=t"a.loginid"%></th>
<td..
分类:
Web程序 时间:
2014-07-28 16:47:24
阅读次数:
294
先建立一个table的基类:
public abstract class DbBaseTable {
private static final String TAG = "DbBaseTable";
/**
* @return the DB table name
*/
abstract String getName();
/**
* Creates the DB table ...
分类:
移动开发 时间:
2014-07-27 23:54:19
阅读次数:
478