묻고답하기

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

아래 소스를 얻었는데 아마 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 남기남
ㅇ1슬♪ 테이블테두리; 다시질문이요ㅠ  
NeMo 서서히 나타나고 사라지는 레이어창..(조그만 도와주세요 ..) [1] 2007.08.10
이진언 플레쉬 버튼 갱신안되요 ㅠㅠ  
taeho 플레시 - 무비를 다른 무비의 중간에 로드를 할려면...  
naBya 로그인폼부분 간격 줄이는 방법 알려주세여~  
조우현 [플래시] 다른 파일 제어하기 [1] 2007.08.10
unique 제발 조금이라도 도와주세요..  
조병수 아파치는 실행이 잘되는데 mysql서버가 동작이 안되네요..  
백수진 익스플로러의 ''기록'' 에 주소 남지않게하는 소스?  
정영철 이미지가 정렬되는 검색페이지 어케 만드나요? [1] 2007.08.10
^야리꾸리^ MySQL 에서 select문 좀 가르쳐 주세요... [2] 2007.08.10
정근훈 안녕하세요 [1] 2007.08.10
피아체 php 표에관해서 질문좀.... [1] 2007.08.10
guest 아이피 차단 관련 문의 드립니다. 회신 주시면 감사하겠습니다 ! [1] 2007.08.10
히드라웜즈 폰트를 못읽는다고 나옵니다.  
정종호 정말 미치겠어요 ㅠㅠ 도와주세요 (최근게시물) [1] 2007.08.10
hansol 권한 설정에 대한 질문입니다. [1] 2007.08.10
Drag-1 다른 웹문서 내의 플래쉬를 특정 프레임부터...  
장태영 최근게시물의 갤러리 불러오는 방법입니다..가로형태로 배열좀 하고 싶은데요^^??  
『SkУ☆™』 PHP 에서 그림은.. [1] 2007.08.10
kasiyas 질문이요.. 시원한 답변 부탁드립니다.(내용 일부 수정pm) [3] 2007.08.10
신희준 고수님들이거좀 알려주세요 ㅠㅠ [1] 2007.08.10
홍순재 이런 홈피 만들때도 여기 제로보드 스킨이 있나요? [1] 2007.08.10
이영수 form으로 값을 넘겨줄때... [2] 2007.08.10
남기목 홈페이지를 만드는데 큰 장애물에 부딪쳤습니다. [1] 2007.08.10
juntalife 홈페이지 만드는법 좀..(과정말구요;) [6] 2007.08.10
Soled PHP에서 허용된 IP만 접속하게 하기??????? [2] 2015.06.23
박명근 클릭하면 새창이 닫히는 소스좀 알려주세요.. [1] 2007.08.10
이정훈 php로 랭킹...  
Drag-1 링크된 페이지 열 때 링크될 페이지 내의 프레임에 내용 나타내기... [5] 2007.08.10