'저장용'에 해당되는 글 58건

  1. 2014.09.30 [php] textarea 표시내용 줄바꿈
  2. 2011.11.08 php 현재 열려있는 파일명 보기
  3. 2011.05.12 [javascript] html readonly true/false
  4. 2011.05.12 도분,도
  5. 2010.03.10 sin_return_policy

[php] textarea 표시내용 줄바꿈

|

textarea 에 입력한 값을 <br> 태그로 변경.

$remove_character = array("\n", "\r\n", "\r");

resultString = str_replace($remove_character,"<br>",orignalString);

'저장용' 카테고리의 다른 글

[git] 로컬에 삭제된 파일 저장소에 적용하기  (0) 2014.12.03
[php] $_SERVER  (0) 2014.10.16
php 현재 열려있는 파일명 보기  (0) 2011.11.08
도분,도  (0) 2011.05.12
sin_return_policy  (0) 2010.03.10
And

php 현재 열려있는 파일명 보기

|
//현재 열려있는 파일의 이름을 확인 할 수 있다.
$php_self=explode("/",$_SERVER[PHP_SELF]);
$url_cnt=count($php_self)-1;
$this_page=$php_self[$url_cnt];
echo $this_page;

물품관리 페이지 만들다가...

필요해서 추가해놨던 부분 

'저장용' 카테고리의 다른 글

[php] $_SERVER  (0) 2014.10.16
[php] textarea 표시내용 줄바꿈  (0) 2014.09.30
도분,도  (0) 2011.05.12
sin_return_policy  (0) 2010.03.10
서버 내 php찾기.. 스크립트  (0) 2009.04.30
And

[javascript] html readonly true/false

|
html :
document.getElementById("purchaseYear").readOnly=true; //readonly 켬

document.getElementById("purchaseYear").readOnly=false;  //readonly 끔

document.getElementById("purchaseYear").style.backgroundColor="#ccccff"; //해당ID의 배경색을 변경

'저장용 > javascript' 카테고리의 다른 글

[javascript] 함수 오버로딩하기  (0) 2015.01.08
And

도분,도

|

경도 3728.58436

위도 12702.46604

위경도를 표시하는 방법은 세가지

도, (xx.xxxxxx)

도분, (xxxx.xxxxx)

도분초,(xxxxxx.x) 가 있는데,

GPS에서 가져온 값은, 딱봐도 도분 공식,

구글맵에서 위경도로 위치찾는걸 보면

http://maps.google.com/maps?q=37.771008,+-122.41175+(You+can+insert+your+text+here)&iwloc=A&hl=en

도 방식이다.

도분을 도로 변환하는 공식이 필요한거,,,,

도분 -> 도,

(3728.58436)

37도 28.58436 분

37 + 28.58436/60 = 37.476406

도분의 분을 60으로 나눠서  도에 더해주면 된다,

펌 

'저장용' 카테고리의 다른 글

[php] textarea 표시내용 줄바꿈  (0) 2014.09.30
php 현재 열려있는 파일명 보기  (0) 2011.11.08
sin_return_policy  (0) 2010.03.10
서버 내 php찾기.. 스크립트  (0) 2009.04.30
webalizer  (0) 2009.04.24
And

sin_return_policy

|


////////////////////////////////////////////////////////////////////////////////
        String query1 = "select matnr,from_date,to_date ";
        query1 += "from SIN_RETURN_POLICY_DETAIL , SIN_RETURN_POLICY ";
        query1 += "where SIN_RETURN_POLICY_DETAIL.idx=SIN_RETURN_POLICY.idx";       
        ParameterList param1 = new ParameterList();
        param1.setQuery(query1);
        ParameterList res1 = mc.execute(ICode.MSSQL_SQL_QUERY,"",param1,sesUserId);
        if(res1 != null)
        {
            Table table1 = res1.getTable("RESULT");
            int tmpCnt = table1.getNumRow();
            tmpData = new String [tmpCnt][3];
            if(table1 != null)
            {
                int cnt = table1.getNumRow();
                for(int tmpi = 0 ; tmpi < cnt ; tmpi++)
                {
                    Row row1 = table1.getRow(tmpi);
                    //tmpData[tmpi][0] = row1.getValue("idx");
                    tmpData[tmpi][0] = row1.getValue("matnr");
                    tmpData[tmpi][1] = row1.getValue("from_date");
                    tmpData[tmpi][2] = row1.getValue("to_date");
                }
            }
        }
////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////// 값이 같은지 비교해서 해당 row의 설정을 변경
                        Calendar cal1 = Calendar.getInstance();          // 현재 날짜를 지정한 포맷에 맞춰 문자열로 긁어온다.
                        Date currentTime = cal1.getTime();
                        SimpleDateFormat formatter = new SimpleDateFormat("yyyyMMdd");
                        String ndate = formatter.format(currentTime);
                        int int_tmpDate = Integer.parseInt(ndate);          // 긁어온 날짜값을 비교를 위해 int 형으로 변환

                        for(int count = 0 ; count < tmpData.length ; count++ )
                        {
                            int int_fromDate = Integer.parseInt(tmpData[count][1]);    // DB에서 긁어온 문자열값을 비교를 위해 int 형으로 변환시킨다.
                            int int_toDate = Integer.parseInt(tmpData[count][2]);       // 위는 이전날짜 , 아래는 마지막 날짜
                            if(vData[i][0].equals(tmpData[count][0]))                    // 조건이 같을 경우에 날짜끼리의 비교 후. 참이면 컬럼의 설정을 변경.
                            {
                                if(int_fromDate <= int_tmpDate && int_tmpDate <= int_toDate)
                                {
                                    out.write("dss.Row = "+(realCnt+1)+"\n");
                                    out.write("dss.Col = 3\n");
                                    out.write("dss.BackColor = &hffccff\n");
                                    out.write("dss.ForeColor = &hff0000\n");
                                    out.write("dss.BlockMode = false\n");
                                }
                             }
                        }
////////////////////////////////////////////////

'저장용' 카테고리의 다른 글

php 현재 열려있는 파일명 보기  (0) 2011.11.08
도분,도  (0) 2011.05.12
서버 내 php찾기.. 스크립트  (0) 2009.04.30
webalizer  (0) 2009.04.24
APM..  (0) 2009.04.20
And
prev | 1 | ··· | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ··· | 12 | next