묻고답하기

며칠째 바이오리듬 소스 때문에 고생하고 있는데요..

아래 소스를 얻었는데 아마 nzeo싸이트에 먼저 떳던 소스 같아요..

회원의 바이오리듬을 로그인할시에 볼수 있게 하는 소스인데요..

이걸 로그인형식이 아닌 웹에서 직접 입력방식으로 고치려면 도대체 어떻게 하나요;(제로보드를 쓰긴 합니다)

[예]    년    월     일

            입력 버튼
도저히 폼이라는걸 써야 한다는데 잘 모르겠어요...

조금이라도 도와주실분은 착한마음을 베풀어 주세요.천천히 해도 되면 제가 공부해서 해볼텐데 이번 주말까지 다해야 되서요..

여기부터는 소스 내용입니다..

-----------------------------------------------------------------------------------------------------------

$_zb_path="/home/users/계정아이디/zboard/"; //제로보드 절대경로

include $_zb_path."lib.php";
if(!$connect) $connect=dbConn();  
$member=member_info();
if(!$member[no]||$member[level]>10) Error("로그인하세요."); //레벨과 에러 메세지만 수정하시면 됩니다.
$name = $member[name];
$birth = $member[birth];






/////////////// 이하 설정 안하셔도 됩니다 ////////////////


$birthtype = $member[lunar];
//음력생일을 받을 경우 DB 필드를 lunar 로 했음. 양력:공백, 음력:1
//그냥 양력 생일만 사용하시는 분들은 변경 안하셔도 무관
        

include "sollun.inc";
$height = "50";//바이오리듬 그래프 높이 설정


$by = date("Y",$birth);
$bm = date("m",$birth);
$bd = date("d",$birth);
if ($birthtype == "")
{
        $sy = "$by";
        $sm = "$bm";
        $sd = "$bd";
        $sollun = Solar2Lunar($by, $bm, $bd);
        $lunar = explode("-", "$sollun");
        $ly = $lunar[0];
        $lm = $lunar[1];
        $ld = $lunar[2];
        $ll = $lunar[3];
}
elseif ($birthtype == "1")
{
        $isLeap = "0";
        $ly = "$by";
        $lm = "$bm";
        $ld = "$bd";        
        $sollun = Lunar2Solar($by, $bm, $bd, $isLeap);
        $solar = explode("-", "$sollun");
        $sy = $solar[0];
        $sm = $solar[1];
        $sd = $solar[2];
}


$yr = date("Y");
$mnth = date("m");
$dy = date("d");
$total=gmmktime(0,0,0,$mnth,$dy,$yr);
$total/=60*60*24;

$my_total=gmmktime(0,0,0,$sm,$sd,$sy);
$my_total/=60*60*24;
$totalday = $total - $my_total;

$pis = 3.141592654;
$physical = sin(($totalday / 23) * 2 * $pis) * 100;
$emotional = sin(($totalday / 28) * 2 * $pis) * 100;
$mental = sin(($totalday / 33) * 2 * $pis) * 100;
$intuitive = sin(($totalday / 38) * 2 * $pis) * 100;

$p = (int)$physical;
$e = (int)$emotional;
$m = (int)$mental;
$i = (int)$intuitive;

$p1 = (int)$physical;
$e1 = (int)$emotional;
$m1 = (int)$mental;
$i1 = (int)$intuitive;

$p2 = (int)$physical/100 * "$height";
$e2 = (int)$emotional/100 * "$height";
$m2 = (int)$mental/100 * "$height";
$i2 = (int)$intuitive/100 * "$height";

$p3 = -$p2;
$e3 = -$e2;
$m3 = -$m2;
$i3 = -$i2;

echo ("
        <html><head><title>바이오리듬</title><body topmargin='3' marginheight='3'>
        <div align=center><font size=2 color='#006600'><b>$name</b></font>");?><? echo("<font color='#006600'><span style='font-size:9pt;'>님의 Biorhythm</span></font><br>
        <table width='150' cellspacing='1' cellpadding='0' align='center' bgcolor='black'>
                <tr>
                        <td bgcolor='white'>
                                <table width='+ '+ '100%' cellpadding='0' cellspacing='0' bgcolor='white' valign='+ 'bottom'>
                                        <tr>
                                                <td width='25%' valign='bottom' align='center' border='0'+ ' height='$height'>
        ");
if ($p>0) {echo ("<img src=./images/bio1.gif width='20' height='$p2' align='absbottom'>");}
                echo("</td><td width='25%' valign='bottom'+ ' align='center' height='$height'>");
if ($e>0) {echo ("<img src=./images/bio2.gif width='20' height='$e2' align='absbottom'>");}
                echo("</td><td width='25%' valign='bottom' align='center'+ ' height='$height'>");
if ($m>0) {echo ("<img src=./images/bio3.gif width='20' height='$m2' align='absbottom'>");}
                echo("</td><td width='25%' valign='bottom' align='center' height='$height'>");
if ($i>0) {echo ("<img src=./images/bio4.gif width='20' height='$i2' align='absbottom'>");}
                echo("</td></tr></table></td>
                </tr>
                      <tr>
                        <td bgcolor='white'>
                                    <table width='100%' cellpadding='0' cellspacing='0' bgcolor='white'>
                                        <tr>
                                                <td width='25%' valign='top' align='center' height='$height'>");
if ($p<0) {$p=-$p; echo ("<img src=./images/bio5.gif width='20' height='$p3'>");}
                echo("</td><td width='25%' valign='top' align='center' height='+ '$height'>");
if ($e<0) {$e=-$e;echo ("<img src=./images/bio6.gif width='20' height='$e3'>");}
                echo("</td><td width='25%'+ ' valign='top' align='center' height='$height'>");
if ($m<0) {$m=-$m;echo ("<img src=./images/bio7.gif width='20' height='$m3'>");}
                echo("</td><td width='25%' valign='top' align='center' height='$height'>");
if ($i<0) {$i=-$i;echo ("<img src=./images/bio8.gif width='20' height='$i3'>");}
                echo("</td></tr></tr></table></td>
                ");
?>
                <tr>
                        <td bgcolor='white'>
                                    <table width='100%' cellpadding='0' cellspacing='0' bgcolor='white'>
                                        <tr>
                                                <td width='40' height='20'+ '>
                                                        <div align='center'><font size=2pt><b>체력</b></div></font>
                                                </td>
                                                <td width='40'>
                                                        <div align='center'><font size=2pt><b>감성</b></div></font>
                                                </td>
                                                <td width='40'>
                                                        <div align='center'><font size=2pt><b>지성</b></div></font>
                                                </td>
                                                <td width='40'>
                                                        <div align='center'><font size=2pt><b>지각</b></div></font>
                                                </td>
                                        </tr>
                                </table>
                        </td>
                </tr>
        </table>
        <table width='150' bordercolordark='+ 'white' bordercolorlight='black' border='0' cellspacing='0' cellpadding='0' align='center'>
                <tr bgcolor='#E7F0FA'>
                        <td>
                                <font size=2pt>  오늘 : <?echo "$yr.$mnth.$dy";?><br>
                                  양력 : <?echo "$sy.$sm.$sd";?>
                                <?
                                if (!$birthtype){
                                echo "";
                                }else{
                                echo "<br>  음력 : $ly.$lm.$ld$ll";
                                }
                                ?><br>
                                  살아온날 : <?echo "$totalday";?>일<br>
                                <b>체력</b> : <font color=blue><?echo "$p1";?></font>%<br>
                                <b>감성</b> : <font color=blue><?echo "$e1";?></font>%<br>
                                <b>지성</b> : <font color=blue><?echo "$m1";?></font>%<br>
                                <b>지각</b> : <font color=blue><?echo "$i1";?></font>%</font>
                        </td>
                </tr>
        </table>
</body>
</html>
글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
dladusgml 왼쪽에 들어가는 두줄을 지우고싶어요~ [1] file 2009.10.22 by 뒷뜰에핀행복
뉴클리어 Content 위젯  
JINJINLI xquared에디터 창크기변경  
아모란 로그인 스킨 스타일 시트 적용 문제... [1] file 2009.10.22 by lattente
육성규 index.php와 index.html의 충돌? 문제에 대해 문의드립니다 [1] 2009.10.22 by lattente
나파이디니아 제로보드 게시판에 복사-> 붙여넣기 하면 스크립트 오류 태크 문제  
sdfew 게시판 뒤 배경이미지 보이게 하는 방법?? [1] file 2009.10.22 by lattente
싸이코앨리스 익스프레스 엔진 알려주세요 [1] 2009.10.22 by 종스
youdw www.xpressengine.com 사이트 첫화면 상단의 그림은 어떻게?? [1] file 2009.10.22 by ememo
서피현 외부페이지 [1] 2009.10.22 by 종스
생~초보 XE의 보안성에 대해 문의 드립니다. [1] 2009.10.22 by mc뷰
늘푸른나무2 프로젝트에 다운로드 파일 등록은 어떻게 해야합니까? [1] 2009.10.22 by 새봄아빠
배미화 게시판 댓글 [1] file 2009.10.22 by 뒷뜰에핀행복
돈아 위젯 코드생성 안돼요. file  
한정헌189 메인페이지 [1] 2009.10.22 by 백성찬
죽암 xe 1.2.4 에서 처음으로 http://localhost/myadmin 입력하고 아이디 암호 를 입력 하면 화면 뜨다 사라집니다. 컴이 다운이 아니고 .. 고수님 부탁 드림니다  
킹야 Cooliris를 분류를 사용하여 나타낼 수 있나요 [1] 2009.10.22 by 라르게덴
sdfew 스크롤을 내려도 배경이미지 고정되게 하는 방법?? [1] 2009.10.22 by 뒷뜰에핀행복
찰리콘트롤 자료실을 만들었는데요.잘 안나옵니다. [1] file 2009.10.22 by ememo
박성현868 게시판 기능에대해 질문좀 드립니다! [1] 2009.10.22 by ememo