2007년 11월 29일 목요일
scp sample
scp class_E300.php pimz8:/home/ezadmin/public_html/3pl/class/
2007년 11월 28일 수요일
재고 상태 정의
접수 상태인 상품의 개수,
실 재고: 배송 기준으로 실제 창고에 있는 상품의 개수
출고대기: 실재고 + 송장 뽑은 건들(출고 예정 수량)
가 재고: 송장 출력 + 미배송 상태의 건들을 모두 포함한 건
2007년 11월 12일 월요일
날짜 연산....관련
intval((strtotime("2005-01-10")-strtotime("2005-01-02"))/86400) => 8
strtotime 사용...
strtotime("+3 day")
2007년 11월 2일 금요일
swapClass() 요거 재미남
# css 설정
<style type="text/css">
.roll {
background-color: #7f7f7f;
color: #3366cc;
}
.over {
background-color: #3355cc;
color: #3366cc;
cursor: hand;
}
</style>
# html에서 사용
OnMouseOver="swapClass(this, 'over')"
OnMouseOut="swapClass(this, 'roll')"
# javascript 설정
function swapClass(obj, cls) {
obj.className = cls
}
2007년 10월 31일 수요일
[jquery] input을 위한 parameter만들어 주기
params = build_params( "#mail_menu .search_form", params );
$.get("xxx.htm", params,
function(data){
alert ( data )
}
);
//===================================
// 전송해야할 form의 내용 만들어 줌
// date: 2007.10.1
function build_params( obj , params)
{
// params가 없을 경우
if ( !params )
var params = {};
// input 값을 검색해서 입력
// parameter list
//
$( obj )
.find("input[@type=text],option[@selected],input[@type='hidden']")
.each( function() {
params[this.name || this.parentNode.name || this.id] = this.value
} )
return params;
}
query한 결과를 table에 넣기
예제:
insert into aa ( id )
select user_name as id from user;
>>-INSERT INTO--table_name--+-----------------------+---------->
| .-,-----------. |
| V | |
'-(----column_name-+--)-'
.-,-----------.
V |
>--+-VALUES--(----+-literal-+-+--)-+---------------------------><
| +-NULL----+ |
| '-DEFAULT-' |
+-select_statement--------------+
'-DEFAULT VALUES----------------'
table 생성
create table Q1_00_Sales (product char(30), month char(5), dollars dec(7,2));
값 입력
insert into Q1_00_Sales (product, month, dollars) select prod_name, month, dollars from sales natural join product natural join period natural join store where qtr = 'Q1_00' and city like 'Los Gatos%'