전체 글
-
영카트 상품 텍스트 필드 파일 추가 하기그누보드 2020. 4. 22. 10:28
https://sir.kr/yc5_tip/183 /adm/config_form.php 파일에 넣었습니다만, 필드추가를 위한 부분이니 아무데나 넣고 웹에서 실행시켜줍니다. // 주문시 추가내용/파일 입력위한 추가 sql_query(" ALTER TABLE `{$g5['g5_shop_cart_table']}` ADD `ct_msg` varchar(255) NOT NULL DEFAULT '' AFTER `ct_select`, ADD `ct_file` varchar(255) NOT NULL DEFAULT '' AFTER `ct_msg` ", true); 이제 mysql 은 준비되었으니, 주문하는 페이지부터 시작입니다. /skin/shop/basic/item.form.skin.php 약 8번째줄
-
달력 캘린더JAVA 2020. 4. 22. 10:26
package test02; import java.util.Calendar; public class Calendar01 { public static void main(String[] args) { // TODO Auto-generated method stub Calendar today = Calendar.getInstance(); // 싱글톤 방식의 클래스. 생성자가 private 으로 접근 차단되어 있고, // 유일한 new Calendar() 가 실행되는 getInstance() 메서드(static 메서드)를 통해 // 인스턴스의 주소를 리턴 받고 today 에 저장. // 이후 다시 getInstance() 메서드가 실행되도 현재 HEAP 에 있는 인스턴스의 주소가 리턴 됩니다. System.out..
-
super, this 구분JAVA 2020. 4. 22. 10:24
package test01; class SuperE { int x = 10; SuperE(int a) { x = a; } void superEMethod() { System.out.println("superEMethod exe"); System.out.println("this.x = " + this.x); } public void loadTest() { System.out.println("superTest 실행"); } } class SubE extends SuperE { int y = 20; SubE(int a, int b) { super(a); y = b; } void subEMethod() { System.out.println("subEMethod exe"); System.out.println("t..
-
fullcalendar 이벤트 추가 및 ajax event 등록JQUERY 2020. 4. 22. 10:20
$(document).ready(function() { $('#calendar').fullCalendar({ header: { left: 'prevYear,prev,next,nextYear', center: 'title', right: '' }, height: 'parent', contentHeight:"auto", lang:'ko', googleCalendarApiKey : "AIzaSyDcnW6WejpTOCffshGDDb4neIrXVUA1EAE", defaultDate: '', events: function(start, end, timezone, callback){ var events = []; var tmpDateS = start.unix() * 1000; var dateS = new Date(tm..
-
리다이렉트 총 정리그누보드 2020. 4. 22. 10:19
www 제거 if (preg_match("/www/i", $_SERVER['HTTP_HOST']) == true) header("Location: http://".str_replace("www.","",$_SERVER['HTTP_HOST']).$_SERVER['REQUEST_URI'].""); www 추가 * IP형태는 동작 하지 않습니다. if ( (preg_match("/www/i", $_SERVER['HTTP_HOST']) == false) && !is_numeric(str_replace('.', '', $J3KL35LK)) && $_SERVER['REMOTE_ADDR'] != $_SERVER['HTTP_HOST'] ) header("Location: http://www.".$_SERVER['HTT..