묻고답하기

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

아래 소스를 얻었는데 아마 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 남기남
guest 아이피 차단 관련 문의 드립니다. 회신 주시면 감사하겠습니다 ! [1] 2007.08.10
피아체 php 표에관해서 질문좀.... [1] 2007.08.10
정근훈 안녕하세요 [1] 2007.08.10
^야리꾸리^ MySQL 에서 select문 좀 가르쳐 주세요... [2] 2007.08.10
정영철 이미지가 정렬되는 검색페이지 어케 만드나요? [1] 2007.08.10
백수진 익스플로러의 ''기록'' 에 주소 남지않게하는 소스?  
조병수 아파치는 실행이 잘되는데 mysql서버가 동작이 안되네요..  
unique 제발 조금이라도 도와주세요..  
조우현 [플래시] 다른 파일 제어하기 [1] 2007.08.10
naBya 로그인폼부분 간격 줄이는 방법 알려주세여~  
taeho 플레시 - 무비를 다른 무비의 중간에 로드를 할려면...  
이진언 플레쉬 버튼 갱신안되요 ㅠㅠ  
NeMo 서서히 나타나고 사라지는 레이어창..(조그만 도와주세요 ..) [1] 2007.08.10
ㅇ1슬♪ 테이블테두리; 다시질문이요ㅠ  
김영민 템플릿의 스타일과 제로보드의 스타일을 서로 다르게 적용하는 방법좀  
patti 제스티 카운터를 쓰는데요..  
노란꽃이야기 웹에 트래픽 현황을 보여주는 소스없을까요 [1] 2007.08.10
이준형 각 게시판의 이동에 관해서 질문드립니다.  
taeho 플레시 - 숫자를 크게 줌(zoom)시키기 알켜주세요..  
김기도 홈페이지 배경음악 질문 입니다 도와주세요~  
싸이친구™ 세션 관련 질문입니다. ㄱ- [1] 2007.08.10
bornljg 고수님들 이것좀 도와주세요 벌써 5일째 진도가 안나가요 ㅋ [1] 2007.08.10
aji 제로보드 서버이전 후 패스워드 문제.. [1] 2007.08.10
naBya 플래시에서 만든 mail액션을 php와 연동 시키려면 어떠캐 해야 되나여?  
James 두가지 화면의 움직이는 gif에서 링크를 각기 다르게 어떻게 거나요? [3] 2007.08.10
박철순 sub menu가 게시판과 중복되는 문제...  
BadFriends 불규칙 다차원배열  
PAIN 크롬리스 윈도우 창 테두리 수정하는 법좀 알려주세요~~  
kasiyas 디자인.. 질문이요.. [2] 2007.08.10
unique 혹시 바이오리듬 소스 가지신분 없나요!!