订单表设计:订单对应几条商品:一对多:订单主键,订单号,配送区域,详细地址,邮编,收货人姓名电子邮件地址,电话,手机,标志建筑,最佳送货时间下单时间,订单总金额,支付方式createtableorderinfo(order_idintunsignedauto_incrementprimarykey,order_snchar(15)notnul..
分类:
其他 时间:
2014-04-14 01:20:25
收藏:
0 评论:
0 赞:
0 阅读:
647
购买东西,产生几个订单,每个订单中商品有几个订单表orderinfo,订单对应商品表ordergoods即之向orderinfo插入一条数据,向ordergoods插入多条数据/*订单入库从表单读取送货地址,等信息,从购物车读取总价格信息写入orderinfo表*/$OI=newOIModel();if(!$OI->_validate($_P..
分类:
其他 时间:
2014-04-14 01:09:35
收藏:
0 评论:
0 赞:
0 阅读:
470
在OIModel.class.php增加自动生成订单号功能:/*生成随机订单号*/publicfunctionorderSn(){$sn=‘OI‘.date(‘ymd‘).mt_rand(10000,99999);$sql=‘selectcount(*)from‘.$this->table.‘whereorder_sn=‘."‘".$sn."‘";return$this->db->getOne($sql)?$this->orderSn():$sn..
分类:
其他 时间:
2014-04-14 01:19:26
收藏:
0 评论:
0 赞:
0 阅读:
497
总条数为:$total每页条数为:$perpage当前页:$page总页数为:$cnt=ceil($total/$perpage)向上取整第$page页,前面已经有$page-1页,每页显示$perpage条已经跳过($page-1)*$perpage条即从($page-1)*$perpage+1开始取,再取出$perpage条分页导航:根据总页数,生成页码:在page..
分类:
其他 时间:
2014-04-14 01:24:17
收藏:
0 评论:
0 赞:
0 阅读:
499
HTTP服务重要基础概念1.1http协议超文本传输协议(http,hypertexttransprotocol.)是互联网上使用最广泛的一种网络协议。所有的www都必须遵守这个标准。设计HTTP最初的目的是为了提供一种发布和接受HTML页面的方法。www(worldwideweb),简称为WEB,中文常翻译为“万维网”或“环..
分类:
其他 时间:
2014-04-14 01:12:35
收藏:
0 评论:
0 赞:
0 阅读:
419
Nginx源码编译安装下载nginx包[root@server79~]#tarzxfnginx-1.4.2.tar.gz[root@server79core]#pwd/root/nginx-1.4.2/src/core[root@server79core]#vimnginx.h#defineNGINX_VER"linux"注释掉gcc编译时的debug[root@server79nginx-1.4.2]#vimauto/cc/gcc#debug#CFLAGS="$CFLAGS-..
分类:
其他 时间:
2014-04-14 01:16:27
收藏:
0 评论:
0 赞:
0 阅读:
587
本文浅谈了俩个鸡蛋问题...
分类:
其他 时间:
2014-04-14 04:02:12
收藏:
0 评论:
0 赞:
0 阅读:
630
Red John has committed another murder. But this time, he doesn’t leave a red smiley behind. What he leaves behind is a puzzle for
Patrick Jane to solve. He also texts Teresa Lisbon that if Patrick is...
分类:
其他 时间:
2014-04-14 02:26:32
收藏:
0 评论:
0 赞:
0 阅读:
474
.h文件
#include
#include
struct node{
int data;
struct node * next;
};
struct queue{
struct node * front;
struct node * rear;
};
struct queue * initQueue();
struct queue * enQueue(struct queu...
分类:
其他 时间:
2014-04-14 04:13:09
收藏:
0 评论:
0 赞:
0 阅读:
442
.h文件
#include
#include
struct queue{
int data[MAXQSIZE];
int front;
int rear;
};
int initQueue(struct queue * q);
int enQueue(struct queue * q,int elem);
int deQueue(struct queue * q);
voi...
分类:
其他 时间:
2014-04-14 02:25:33
收藏:
0 评论:
0 赞:
0 阅读:
476
@echo off
SETLOCAL ENABLEDELAYEDEXPANSION
set delPath=D:\PathWantToDelete
set suffix=.svn
for /f %%i in ('dir /s /b /A:H %delPath%') do (
if "%%~xi" == "%suffix%" (
del "%%i\*" /q /a
rd "%%...
分类:
其他 时间:
2014-04-14 02:52:17
收藏:
0 评论:
0 赞:
0 阅读:
385
山东省第一届ACM省赛C题,数学题,排序...
分类:
其他 时间:
2014-04-14 04:12:09
收藏:
0 评论:
0 赞:
0 阅读:
590
Balloons
Time Limit: 1000ms Memory limit: 65536K 有疑问?点这里^_^
题目描述
Both
Saya and Kudo like balloons. One day, they heard that in the central park, there will be thousands of peop...
分类:
其他 时间:
2014-04-14 02:03:37
收藏:
0 评论:
0 赞:
0 阅读:
389
基本使用:
配置代码中使用日志文件输出路径配置方式。
补充知识点配置文件总结示例
Log4j由三个重要的组件构成:日志信息的优先级,日志信息的输出目的地,日志信息的输出格式。
日志信息的优先级从高到低有ERROR、WARN、INFO、DEBUG,分别用来指定这条日志信息的重要程度;
日志信息的输出目的地指定了日志将打印到控制台还是文件或数据库或email或其他等中;
而输出...
分类:
其他 时间:
2014-04-14 02:24:35
收藏:
0 评论:
0 赞:
0 阅读:
419
在hadoop-0.23及现在的版本中,MapReduce经历一个完全的修改。这个被我们称为MapReduce2.0(MRv2)或者YARN。...
分类:
其他 时间:
2014-04-14 03:56:10
收藏:
0 评论:
0 赞:
0 阅读:
413
apache commons Logging 是一种JCL ,java commons Logging.
它的宗旨在于取消各种日志框架实现之间的差异,以统一的一致地接口API来操作日志。从而实现高度的日志系统抽象,你无需从新编码就可以切换不同的日志框架实现。所以所commons Loging屏蔽了具体日志实现了之间的差异。(思路上类似于JDBC的抽象)。我们只需要面对Commons Loggin...
分类:
其他 时间:
2014-04-14 02:06:39
收藏:
0 评论:
0 赞:
0 阅读:
464
SLF4j----Simple Logging Facade for Java:简单日志门户。是一种JCL体系。类似于apache commons Logging,但是比commons logging使用更方便,更为强大。它是由Log4j的作者开发的,还有用于取代log4j的logback.
使用SLF4J,通常由两种组合SLF4J+Log4j; SLF4J+logback,目前推荐的是SL...
分类:
其他 时间:
2014-04-14 04:24:05
收藏:
0 评论:
0 赞:
0 阅读:
504
OpenSSH:open Secure Shell,一般用于管理远程主机:
它的服务器进程为sshd,配置文件为/etc/ssh/sshd_config
在服务器上安装服务套件:#apt-get install openssh-server
(远程)客户端套件的安装:#apt-get install openssh-client(可选,如果远程机为linux,则安装,windows下可使用p...
分类:
其他 时间:
2014-04-14 03:55:13
收藏:
0 评论:
0 赞:
0 阅读:
417
There is a strange lift.The lift can stop can at every floor as you want, and there is a number Ki(0 <= Ki <= N) on every floor.The lift have just two buttons: up and down.When you at floor i,if you press the button "UP" , you will go up Ki floor,i.e,you w...
分类:
其他 时间:
2014-04-14 02:33:33
收藏:
0 评论:
0 赞:
0 阅读:
538
Composite
一、定义:
Compose objects into tree structures to represent part-whole hierarchies.Composite let clients treat individual objects and compositions of objects uniformly.
将物件组成/构成树状结构,用以表示“局部-全部”的阶层体系。Composite可以让client以一致的方式对待个别物件和合成物件。
...
分类:
其他 时间:
2014-04-14 02:10:44
收藏:
0 评论:
0 赞:
0 阅读:
467