Ignore:
Timestamp:
2008/03/12 22:01:51 (16 years ago)
Author:
adachi
Message:

calendar bloc by Yammy (merge r17073, r17076, r17087, r17091)

Location:
branches/version-2/html
Files:
5 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/version-2/html/frontparts/bloc/calendar.php

    r17073 r17143  
    2828// {{{ generate page 
    2929 
    30 $objPage = new LC_Page_FrontParts_BLoc_Calendar_Ex(); 
     30$objPage = new LC_Page_FrontParts_Bloc_Calendar_Ex(); 
    3131register_shutdown_function(array($objPage, "destroy")); 
    3232$objPage->init(); 
  • branches/version-2/html/install/sql/create_table_mysql.sql

    r16926 r17143  
    2121    creator_id int NOT NULL, 
    2222    create_date datetime NOT NULL , 
     23    update_date datetime NOT NULL, 
     24    del_flg  smallint NOT NULL DEFAULT 0 
     25) TYPE=InnoDB ; 
     26 
     27CREATE TABLE dtb_holiday ( 
     28    holiday_id int auto_increment primary key NOT NULL, 
     29    title text NOT NULL, 
     30    month smallint NOT NULL, 
     31    day smallint NOT NULL, 
     32    rank int NOT NULL DEFAULT 0, 
     33    creator_id int NOT NULL, 
     34    create_date datetime NOT NULL, 
    2335    update_date datetime NOT NULL, 
    2436    del_flg  smallint NOT NULL DEFAULT 0 
  • branches/version-2/html/install/sql/create_table_pgsql.sql

    r16867 r17143  
    1818    kiyaku_title text NOT NULL, 
    1919    kiyaku_text text NOT NULL, 
     20    rank int4 NOT NULL DEFAULT 0, 
     21    creator_id int4 NOT NULL, 
     22    create_date timestamp NOT NULL DEFAULT now(), 
     23    update_date timestamp NOT NULL, 
     24    del_flg  int2 NOT NULL DEFAULT 0 
     25); 
     26 
     27CREATE TABLE dtb_holiday ( 
     28    holiday_id serial NOT NULL, 
     29    title text NOT NULL, 
     30    month int2 NOT NULL, 
     31    day int2 NOT NULL, 
    2032    rank int4 NOT NULL DEFAULT 0, 
    2133    creator_id int4 NOT NULL, 
  • branches/version-2/html/install/sql/drop_table.sql

    r16862 r17143  
    9292DROP TABLE mtb_ownersstore_err; 
    9393DROP TABLE mtb_ownersstore_ips; 
     94DROP TABLE dtb_holiday; 
  • branches/version-2/html/install/sql/insert_data.sql

    r17123 r17143  
    1313insert into dtb_bloc ( bloc_name, tpl_path, filename, php_path, del_flg, create_date, update_date ) values ('ログイン', 'bloc/login.tpl', 'login','frontparts/bloc/login.php', 1, now(), now()); 
    1414insert into dtb_bloc ( bloc_name, tpl_path, filename, php_path, del_flg, create_date, update_date ) values ('オススメ商品', 'bloc/best5.tpl', 'best5','frontparts/bloc/best5.php', 1, now(), now()); 
     15INSERT INTO dtb_bloc ( bloc_name, tpl_path, filename, php_path, del_flg, create_date, update_date ) VALUES ('カレンダー', 'bloc/calendar.tpl', 'calendar', 'frontparts/bloc/calendar.php', 1, now(), now()); 
     16 
    1517 
    1618insert into dtb_pagelayout (page_name,url,php_dir,tpl_dir,filename,edit_flg, create_date, update_date)values('TOPページ','index.php',' ','user_data/templates/','top',2,now(),now()); 
     
    453455VALUES ('第12条(準拠法、管轄裁判所)','本規約に関して紛争が生じた場合、当社本店所在地を管轄する地方裁判所を第一審の専属的合意管轄裁判所とします。 ', 
    4544561,0,Now(),0, now()); 
     457 
     458 
     459INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     460VALUES ('元旦(1月1日)','1', '1' ,100, 0, now(), 0, now()); 
     461INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     462VALUES ('成人の日(1月第2月曜日)','1', '14' ,98, 0, now(), 0, now()); 
     463INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     464VALUES ('建国記念の日(2月11日)','2', '11' ,96, 0, now(), 0, now()); 
     465INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     466VALUES ('春分の日(3月21日)','3', '21' ,94, 0, now(), 0, now()); 
     467INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     468VALUES ('昭和の日(4月29日)','4', '29' ,92, 0, now(), 0, now()); 
     469INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     470VALUES ('憲法記念日(5月3日)','5', '3' ,90, 0, now(), 0, now()); 
     471INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     472VALUES ('みどりの日(5月4日)','5', '4' ,88, 0, now(), 0, now()); 
     473INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     474VALUES ('こどもの日(5月5日)','5', '5' ,86, 0, now(), 0, now()); 
     475INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     476VALUES ('海の日(7月第3月曜日)','7', '21' ,84, 0, now(), 0, now()); 
     477INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     478VALUES ('敬老の日(9月第3月曜日)','9', '15' ,82, 0, now(), 0, now()); 
     479INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     480VALUES ('秋分の日(9月23日)','9', '23' ,80, 0, now(), 0, now()); 
     481INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     482VALUES ('体育の日(10月第2月曜日)','10', '13' ,78, 0, now(), 0, now()); 
     483INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     484VALUES ('文化の日(11月3日)','11', '3' ,76, 0, now(), 0, now()); 
     485INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     486VALUES ('勤労感謝の日(11月23日)','11', '23' ,74, 0, now(), 0, now()); 
     487INSERT INTO dtb_holiday (title, month, day, rank, creator_id, update_date, del_flg, create_date) 
     488VALUES ('天皇誕生日(12月23日)','12', '23' ,72, 0, now(), 0, now()); 
     489 
    455490 
    456491INSERT INTO mtb_pref (pref_id, pref_name, rank) VALUES ('1', '北海道', '1'); 
  • branches/version-2/html/user_data/packages/default/css/index.css

    r16708 r17143  
    1 @charset "utf-8"; 
     1@charset "utf-8"; 
    22 
    33 
     
    1010 
    1111 
    12 /* ニュース 
     12/* 繝九Η繝シ繧ケ 
    1313----------------------------------------------- */ 
    1414div#newsarea { 
     
    3434 
    3535 
    36 /* おすすめ 
     36/* 縺翫☆縺吶a 
    3737----------------------------------------------- */ 
    3838div#recomendarea { 
     
    8181    font-size: 100%; 
    8282} 
     83 
     84/* ブロック - カレンダー 
     85----------------------------------------------- */ 
     86#block-calendar {border: 1px solid #CCCCCC;padding: 0 0 10px;} 
     87#block-calendar h2 { 
     88/* 
     89    height: 29px; 
     90    text-indent: -9999em; 
     91    background: url(../images/tit-calendar.gif) 0 0 no-repeat; 
     92*/ 
     93} 
     94#block-calendar table { 
     95    border-collapse: collapse; 
     96    margin: 0 auto 10px; 
     97    text-align:center; 
     98} 
     99#block-calendar th, #block-calendar td { 
     100    padding: 2px; 
     101    border: 1px solid #CCCCCC; 
     102} 
     103#block-calendar th { 
     104    background: #FF8144; 
     105    color: #FFFFFF; 
     106} 
     107#block-calendar .off { 
     108    background: #FFEECC; 
     109    color: #E04A00; 
     110} 
     111#block-calendar caption {color: #DD4400;} 
Note: See TracChangeset for help on using the changeset viewer.