인클루트 간격 질문
본문
직원 연차명부 소스입니다. 소스 하단에 include_once(G5_PATH.'/intranet/tail.php'); 를 불러오면 명부와 하단 카피랑 겹쳐집니다.
소스와 하단 인틀루트랑 일정 간격을 유지하려면 어찌해야해요?
<?php
include_once('./_common.php');
// 권한체크
if(!$is_admin) {
$current_urls = get_current_urls();
check_user_permissions($current_urls, $member['mb_id']);
}
//테이블이 있는지 검사한다.
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);
}
$g5['title'] = '직원명부 연차 설정';
include_once(G5_PATH.'/intranet/head.php');
$where = " where tk_id != '' and ";
$sql_common = " from g5_position3 ";
$sql_is = " select * $sql_common order by tk_num desc ";
$result_is = sql_query($sql_is);
?>
<div class="body_tit_box font-naver-EB mb-30">
<ul class="body_tit"><?php echo $g5['title'] ?></ul>
<div class="cb"></div>
</div>
<form name="fitemqalist" method="post" action="./set_position3_update.php" onsubmit="return fitemqalist_submit(this);" autocomplete="off">
<div class="fl70">
<div class="talbes_wrap" id="bo_list">
<div class="tables_div">
<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>
<tbody>
<?php
for ($i=0; $rowss=sql_fetch_array($result_is); $i++) {
$bg = 'bg'.($i%2);
?>
<tr>
<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>';
}
?>
</tbody>
</table>
</div>
</div>
<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>
</div>
</div>
</form>
<script>
function check_all(f)
{
var chk = document.getElementsByName("chk[]");
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;
}
}
if(document.pressed == "선택삭제") {
if(!confirm("선택한 자료를 정말 삭제하시겠습니까?")) {
return false;
}
}
if(document.pressed == "전체삭제") {
if(!confirm("전체 데이터를 삭제하시겠습니까?\n삭제된 데이터는 복구되지 않습니다.")) {
return false;
}
}
return true;
}
</script>
<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">
<colgroup>
<col width="30%">
<col width="70%">
</colgroup>
<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>
</table>
</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>
<?php
include_once(G5_PATH.'/intranet/tail.php');
답변을 작성하시기 전에 로그인 해주세요.