테스트 사이트 - 개발 중인 베타 버전입니다

인클루트 간격 질문 채택완료

직원 연차명부 소스입니다.  소스 하단에 include_once(G5_PATH.'/intranet/tail.php');    를 불러오면 명부와 하단 카피랑 겹쳐집니다.

 

http://sir.kr/data/editor/2501/237187600_1736928929.841.png" width="100%" />

소스와 하단 인틀루트랑 일정 간격을 유지하려면 어찌해야해요?

 

</strong></p>

<p><strong><?php

include_once('./_common.php');</strong></p>

<p><strong>// 권한체크

if(!$is_admin) { 

    $current_urls = get_current_urls();

    check_user_permissions($current_urls, $member['mb_id']);

}</strong></p>

<p><strong>//테이블이 있는지 검사한다.

if(!sql_query(" DESCRIBE g5_position3 ", false)) {

       $query_cp2 = sql_query(" CREATE TABLE IF NOT EXISTS `g5_position3` (

        `tk_id` int(11) NOT NULL AUTO_INCREMENT,

        `tk_num` int(11) NOT NULL COMMENT '정렬순서',

        `tk_ea` int(15) NOT NULL COMMENT '연차개수',

        `tk_name` varchar(255) NOT NULL COMMENT '직원명', 

        PRIMARY KEY (`tk_id`) 

      ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ", true);

}</strong></p>

<p>

<strong>$g5['title'] = '직원명부 연차 설정';

include_once(G5_PATH.'/intranet/head.php');</strong></p>

<p><strong>$where = " where tk_id != '' and ";

$sql_common = " from g5_position3 ";</strong></p>

<p><strong>$sql_is  = " select * $sql_common order by tk_num desc ";

$result_is = sql_query($sql_is);</strong></p>

<p><strong>?></strong></p>

<p><strong><div class="body_tit_box font-naver-EB mb-30">

    <ul class="body_tit"><?php echo $g5['title'] ?></ul>

    <div class="cb"></div>

</div></strong></p>

<p><strong><form name="fitemqalist" method="post" action="./set_position3_update.php" onsubmit="return fitemqalist_submit(this);" autocomplete="off"></strong></p>

<p><strong><div class="fl70">

<div class="talbes_wrap" id="bo_list"></strong></p>

<p><strong>    <div class="tables_div"></strong></p>

<p><strong>        <div class="">

            <table width="100%" border="0" cellspacing="0" cellpadding="0">

                <thead>

                    <tr>

                        <th nowrap="" class="tb_chkbox">

                            <input type="checkbox" name="chkall" class="magic-checkbox" value="1" id="chkall" onclick="check_all(this.form)">

                            <label for="chkall" class=""></label>

                        </th>

                        <th scope="col">직원명</th>

                        <th scope="col">연차개수</th>

                        <th scope="col">정렬순서</th>

                    </tr>

                </thead></strong></p>

<p><strong>                <tbody>

                    <?php

                    for ($i=0; $rowss=sql_fetch_array($result_is); $i++) {

                        $bg = 'bg'.($i%2);

                     ?>

                    <tr></strong></p>

<p><strong>                        <td nowrap>

                            

                            <input type="checkbox" name="chk[]" class="magic-checkbox" value="<?php echo $i ?>" id="chk_<?php echo $i; ?>">

                            <label for="chk_<?php echo $i; ?>"></label>

                            <input type="hidden" name="tk_id[<?php echo $i; ?>]" value="<?php echo $rowss['tk_id']; ?>">

                        </td>

                        

                        <td nowrap class="tb_inps">

                            <input type="text" name="tk_name[<?php echo $i; ?>]" value="<?php echo $rowss['tk_name'] ?>" id="tk_name_<?php echo $i; ?>" required class="tb_inps_inp">

                        </td>

                         <td nowrap class="tb_inps">

                            <input type="text" name="tk_ea[<?php echo $i; ?>]" value="<?php echo $rowss['tk_ea'] ?>" id="tk_ea_<?php echo $i; ?>" required class="tb_inps_inp">

                        </td>

                        <td nowrap class="tb_inps">

                            <input type="text" name="tk_num[<?php echo $i; ?>]" value="<?php echo $rowss['tk_num'] ?>" id="tk_num_<?php echo $i; ?>" required class="tb_inps_inp">

                         </td>

                        

                    </tr>

                    

                    <?php

                    }

                    if ($i == 0) {

                            echo '<tr><td colspan="3" class="empty_table"><span>데이터가 없습니다.</span></td></tr>';

                    }

                    ?></strong></p>

<p><strong>                </tbody></strong></p>

<p><strong>            </table>

        </div>

    </div></strong></p>

<p><strong>    <div class="tables_div_tail">

        <ul class="op_left paging_mobile_mb">

        </ul>

        <ul class="op_right op_right_not">

            <button type="submit" name="act_button" value="전체삭제" onclick="document.pressed=this.value" class="top_opt_btn">전체삭제</button>

            <button type="submit" name="act_button" value="선택삭제" onclick="document.pressed=this.value" class="top_opt_btn">선택삭제</button>

            <button type="submit" name="act_button" value="선택수정" onclick="document.pressed=this.value" class="top_opt_btn">선택수정</button>

        </ul>

        <div class="cb"></div>

    </div></strong></p>

<p><strong></div>

</div></strong></p>

<p><strong></form></strong></p>

<p>

<strong><script>

    

function check_all(f)

{

    var chk = document.getElementsByName("chk[]");</strong></p>

<p><strong>    for (i=0; i<chk.length; i++)

        chk[i].checked = f.chkall.checked;

}

    

function is_checked(elements_name)

{

    var checked = false;

    var chk = document.getElementsByName(elements_name);

    for (var i=0; i<chk.length; i++) {

        if (chk[i].checked) {

            checked = true;

        }

    }

    return checked;

}

    

function fitemqalist_submit(f)

{

    

    if(document.pressed == "선택수정") {

        if (!is_checked("chk[]")) {

            alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");

            return false;

        }

    }

    

    if(document.pressed == "선택삭제") {

        if (!is_checked("chk[]")) {

            alert(document.pressed+" 하실 항목을 하나 이상 선택하세요.");

            return false;

        }

    }</strong></p>

<p><strong>    if(document.pressed  == "선택삭제") {

        if(!confirm("선택한 자료를 정말 삭제하시겠습니까?")) {

            return false;

        }

    }

    

    if(document.pressed  == "전체삭제") {

        if(!confirm("전체 데이터를 삭제하시겠습니까?\n삭제된 데이터는 복구되지 않습니다.")) {

            return false;

        }

    }</strong></p>

<p><strong>    return true;

}</strong></p>

<p>

<strong></script></strong></p>

<p>

<strong><form name="seo_form" id="seo_form" action="./set_position3_update.php" method="post" enctype="multipart/form-data">

<div class="fr30">

    <div class="view_wraps view_wraps_bbs respons data_tables view_wraps_not">

    

    <div class="">

        <table cellspacing="0" cellpadding="0"></strong></p>

<p><strong>            <colgroup>

                <col width="30%">

                <col width="70%">

            </colgroup></strong></p>

<p><strong>            <tr>

                <th colspan="4" class="po_rel">

                직원명 추가

                </th>

            </tr>

            

            

            <tr>

                <td class="text-center bg_tr">직원명</td>

                <td class="tb_inps"><input type="text" name="tk_name" value="" id="tk_name" class="tb_inps_inp text-left" placeholder="직원명" required></td>

            </tr>

            <tr>

                <td class="text-center bg_tr">연차</td>

                <td class="tb_inps"><input type="text" name="tk_ea" value="" id="tk_ea" class="tb_inps_inp text-left" placeholder="연차(숫자)" required></td>

            </tr>

            <tr>

                <td class="text-center bg_tr">정렬순서</td>

                <td class="tb_inps"><input type="number" name="tk_num" value="" id="tk_num" class="tb_inps_inp text-left" placeholder="정렬순서(숫자)"></td>

            </tr></strong></p>

<p>

<strong>        </table></strong></p>

<p><strong>    </div>

    </div>

    

    <div class="view_btm_btns popup_view_btm_btns">

        <ul class="">

            <button type="submit" accesskey="s" class="top_opt_btn on">추가</button>

        </ul>

        <div class="cb"></div>

    </div>

</div>

</form>

    </strong></p>

<p><strong><?php

include_once(G5_PATH.'/intranet/tail.php');</strong></p>

<p><strong>

댓글을 작성하려면 로그인이 필요합니다.

답변 1개

채택된 답변
+20 포인트

css 로 해결 하시면 되겠네요, 

padding, margin 등으로

로그인 후 평가할 수 있습니다

답변에 대한 댓글 1개

답변 참고하여 해 보겠습니다.

댓글을 작성하려면 로그인이 필요합니다.

답변을 작성하려면 로그인이 필요합니다.

로그인
🐛 버그신고