묻고답하기

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

아래 소스를 얻었는데 아마 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] 2013.10.18 by sejin7940
Coke Kim 실시간 환율정보  
참치찌개 무조건 비밀글로 저장하기 [1] 2013.10.18 by sejin7940
플러스투 포인트와 레벨에 관한 질문입니다. [1] 2013.10.18 by sejin7940
BonaSera 싹 다 지우고 새로 깔고 싶을 때 디비도 처리해야 되나요? [1] 2013.10.18 by sejin7940
레몬시 query ID 값이 잘못되었습니다. 라고 뜹니다. [1] file 2013.10.18 by sejin7940
aiminae.myid.net 비로긴 상태로 게시판에 들어가면 권한이 없다고 뜹니다 [1] file 2013.10.18 by 똑디
호스케치 서버접속프로그램 SSH에 대해서 [1] 2013.10.18 by Ruatic™
키르엘 검색어 일치하는 것만 출력하고 싶어요 [1] 2013.10.18 by sejin7940
하지니 확장변수를 카테고리처럼 보이게 할때 확장변수 여러개도 가능할까요? [1] 2013.10.18 by sejin7940
소라s xe 비밀글 관련 질문 입니다 [1] 2013.10.18 by sejin7940
새늘 홈페이지가 접속이 안됩니다. file  
해맑은하늘 서버 과부하로 계정이 차단되었습니다. [1] 2013.10.18 by 똑디
파워뭉치 확장변수내용 관리자메일로 전송하는 방법 질문^^  
송실장 반응형 레이아웃과 스케치북 게시판 조합시 질문입니다. [1] file 2013.10.19 by 딸꾹질
최윤한 댓글달렸을때 쪽지로 안받을려면 어떻게 해야할까요? [1] 2013.10.19 by 딸꾹질
mglkiss 웹호스팅 신청 문이 [1] 2013.10.19 by 강하레
참치찌개 가입폼 필수항목 삭제하기 file  
socialskyo 알림센타 쪽찌 알림말고 멘션 기능만 사용하고 싶으면 어떻게 해야 할까요? [1] 2013.10.19 by KrteamENT
glider1975 게시판에 파일 첨부가 안 됩니다. 도와 주세요. [2] file 2013.10.19 by glider1975
glider1975 인증메일, 이메일 주소로 계정 찾기  
쿠러기 글쓰기 버튼이 자꾸 사라집니다ㅠ  
mro 게시판 사진 보여주기..  
우분포 nginx rewrite가 작동을 안합니다. [2] 2013.10.19 by 우분포
iceman237 홈페이지 언어? 에러 모든게 깨집니다.compiled.php 에러관련 file  
꿈틀잉 게시판 제목을 누루면 바로 수정되게 할수 있나요? [1] 2013.10.19 by 꿈틀잉
jinelove 1.4.4.4에서 회원정보 수정 후 다른 외부페이지로 연결하는 방법...  
오락실주인 그룹 이미지 마크 삭제 어떻게 ?? [1] 2013.10.19 by 딸꾹질
후후후늬 사용자가 프로필을 써서 저장하면 관리자에게 제출되게하는 방법..  
꿈틀잉 확장변수에서 날짜형식을 오늘날짜 자동선택말고 +2일 자동선택되게 file