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

옵션님의 인명관리 스킨리스트 순차 정열 문의 드립니다.

· 15년 전 · 1062 · 2
인명관리_1.gif
실력도 없는 놈이 정말,정말,정말(ㅠ.ㅠ) 우여곡절 끝에 옵션님의 인명관리 스킨을 설치를 했습니다.
먼저 광명의 자료를 올려주신 옵션님에게 감사드리구요. ^^

설치는 모두 했고 그누보드에 잘 돌아 갑니다. ^^

사람의 욕심이 끝이 없는지라....
한가지 아쉬운 점이 있어서요.
등급--분류1--분류2--분류3 이렇게 순차적으로
내려 가면서 정렬 및 추줄하는 것을 구현해 보고 싶습니다.

뭐 아는게 없고 막막해서 질문드려 봅니다.

아래는 제가 수정한 파일 첨부했습니다.

링크는 옵션님 인명관리 스킨입니다.

제가 수정한 소스

<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가

$colspan = 5;

//if ($is_category) $colspan++;
if ($is_checkbox) $colspan++;
if ($is_good) $colspan++;
if ($is_nogood) $colspan++;

include_once "$board_skin_path/skin.exe.php";

function get_bo_n_option($bo_n='')
{
global $g4, $board;

$arr = explode("|", $board[$bo_n]); // 구분자가 | 로 되어 있음
$str = "";
for ($i=0; $i<count($arr); $i++)
if (trim($arr[$i]))
$str .= "<option value='$arr[$i]'>$arr[$i]</option>\n";

return $str;
}

// 카테고리 분할
if ($is_category = true) {
$bo_7_option = get_bo_n_option('bo_7'); // SELECT OPTION 태그로 넘겨받음
$bo_8_option = get_bo_n_option('bo_8'); // SELECT OPTION 태그로 넘겨받음
$bo_9_option = get_bo_n_option('bo_9'); // SELECT OPTION 태그로 넘겨받음
}

// 이미지 보이기 전체 보이기는 0
$all_view = 0;
// 미리보기 이미지크기
$img_w = 80;
$img_h = 60;
// 넓이로 맞췄을때 높이의 중간지점에서 80%로 복구시킨다.
$Percent = 80;

?>
<style type="text/css">
<!--
.list_sort_title {font-family:돋움;font-size:12px;color:#567a9c;text-decoration:none;}
.list_sort_arrow {font-family:돋움;font-size:10px;color:#000000;}

-->
a.1:link, a.1:visited, a.1:active { font-size:12px; text-decoration:none; color:#454545; }
a.1:hover { font-size:12px; text-decoration:none; }

a.2:link, a.2:visited, a.2:active { font-size:12px; text-decoration:none; color:#f96400; }
a.2:hover { font-size:12px; text-decoration:none; }

a.3:link, a.3:visited, a.3:active { font-size:12px; text-decoration:none; color:#429e05; }
a.3:hover { font-size:12px; text-decoration:none; }
</style>
<!-- 게시판 목록 시작 -->

<table width="<?=$width?>" align=center cellpadding=0 cellspacing=0><tr><td><!-- 분류 셀렉트 박스, 게시물 몇건, 관리자화면 링크 -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!-- 제목 -->
<table width="100%" border="0" cellpadding="0" cellspacing="2" bgcolor="#a2c0e7">
<tr>
<form name="fcategory" method="get">
<td style='padding:0px 5px 0px 10px;'>

<? if ($is_category) { ?>
<select name=sca onChange="location='<?=$category_location?>'+this.value;">
<option value=''>전체사건</option>
<?=$category_option?>
</select>
<? } ?>

<select name=wr_7 onChange="location='<?=$category_location?>&sca='+this.form.sca.value+'&wr_7='+this.value+'&wr_8='+this.form.wr_8.value+'&wr_9='+this.form.wr_9.value;">
<option value=''><?=$board[bo_7_subj]?></option><?=$bo_7_option?></select>

<select name=wr_8 onChange="location='<?=$category_location?>&sca='+this.form.sca.value+'&wr_7='+this.form.wr_7.value+'&wr_8='+this.value+'&wr_9='+this.form.wr_9.value;">
<option value=''><?=$board[bo_8_subj]?></option><?=$bo_8_option?></select>

<select name=wr_9 onChange="location='<?=$category_location?>&sca='+this.form.sca.value+'&wr_7='+this.form.wr_7.value+'&wr_8='+this.form.wr_8.value+'&wr_9='+this.value;">
<option value=''><?=$board[bo_9_subj]?></option><?=$bo_9_option?></select>

</td></form>
<form name=fsearch method=get style="margin:0px;">
<td style='padding:0px 5px 0px 10px;'>
<div align="right">
<input type=hidden name=bo_table value="<?=$bo_table?>">
<input type=hidden name=sca value="<?=$sca?>">
<input type=hidden name=wr_3 value="<?=$wr_3?>">
<input type=hidden name=wr_4 value="<?=$wr_4?>">
<select name=sfl>
<option value="wr_subject">고객명</option>
<option value="wr_17">사건번호</option>
<option value="wr_3">사건개요</option>
<option value="wr_12,1">핸드폰</option>
</select>
<input name=stx maxlength=15 size=20 itemname="검색어" required value='<?=$stx?>'>
<input type=hidden name=sop value=and>
<input type=image src="<?=$board_skin_path?>/img/search_btn.gif" border=0 align=absmiddle>
</div></td></form>

</tr>
</table>
<div style="font-size:1px; line-height:1px; background-color:rgb(208,208,208); height:1px; clear:both;">&nbsp;</div>
<table background="<?=$board_skin_path?>/img/bar_bg.gif" width=100% border="0" cellpadding=0 cellspacing="0">
<tr align=center>
<td width=2><img src="<?=$board_skin_path?>/img/bar_left.gif" width="2" height="23"></td>
<td width=40><?=subject_sort_link('wr_num', $qstr2, 1)?><span class="list">번호▼</span></a></td>

<td width=3><img src="<?=$board_skin_path?>/img/bar_line.gif" width="3" height="23"></td>
<td width=30><INPUT onClick="if (this.checked) all_checked(true); else all_checked(false);" type=checkbox></td>
<td width=3><img src="<?=$board_skin_path?>/img/bar_line.gif" width="3" height="23"></td>

<td width="80">고객명</td>
<td width=3><img src="<?=$board_skin_path?>/img/bar_line.gif" width="3" height="23"></td>

<td width="90">사건번호</td>
<td width=3><img src="<?=$board_skin_path?>/img/bar_line.gif" width="3" height="23"></td>

<td>사건개요</td>
<td width=3><img src="<?=$board_skin_path?>/img/bar_line.gif" width="3" height="23"></td>

<td width="90">담당사무장</td>
<td width=3><img src="<?=$board_skin_path?>/img/bar_line.gif" width="3" height="23"></td>

<td width="90">관할법원</td>
<td width=3><img src="<?=$board_skin_path?>/img/bar_line.gif" width="3" height="23"></td>

<td width="90">휴대전화</td>
<td width=3><img src="<?=$board_skin_path?>/img/bar_line.gif" width="3" height="23"></td>

<td width="90">자택전화</td>
<td width=3><img src="<?=$board_skin_path?>/img/bar_line.gif" width="3" height="23"></td>

<td width="70">작성자</td>
<td width=3><img src="<?=$board_skin_path?>/img/bar_line.gif" width="3" height="23"></td>

<td width=30>수정</a></td>
<td width=2><img src="<?=$board_skin_path?>/img/bar_right.gif" width="2" height="23"></td>
</tr>
</table>
<script language="javascript">

function fwrite_check(f)
{
var s = "";
if (typeof(f.wr_subject) != 'undefined') {
if (f.wr_subject.value == '') {
f.wr_subject.focus();
return;
}
}
f.action = "./write_update.php";
f.submit();
}

var v = document.fwrite;

function sendit() {
v.w.value = "";
v.wr_id.value = "";

if(!v.wr_content.value) v.wr_content.value = "_";
fwrite_check(v)
}

function FocusColor(This) { This.style.backgroundColor = "#FFF4DA"; }
function BlurColor(This) { This.style.backgroundColor = "#FFFFFF";}


//=====한영 체크 로직 끝=============

function text_check(text,total){
// text : 문자 필드명 , total : 총 문자길이
var obj = eval("document.forms[0]."+text)
var len = obj.value.length;
var count = 0;
var one_ch="";
var total2 = 0;
for (i = 0; i < len ; i++){
one_ch = obj.value.charAt(i); //한문자만 추출
if (escape(one_ch).length > 4) {
count = count + 2; //한글
}else {
count = count + 1; //영문
}
}
total2 = Math.floor(total/2);
if (count > total) {
alert("입력하신 내용은 한글 "+total2+", 영문 "+total+"자까지 쓰실 수 있습니다.\n\n문자 수를 확인하여 주시기 바랍니다.");
obj.value = obj.value.substring(0,total2);
obj.focus();
return false;
}
}
</script>
<form name="fboardlist" method="post" style="margin:0px;">
<input type='hidden' name='bo_table' value='<?=$bo_table?>'>
<input type='hidden' name='sfl' value='<?=$sfl?>'>
<input type='hidden' name='stx' value='<?=$stx?>'>
<input type='hidden' name='spt' value='<?=$spt?>'>
<input type='hidden' name='page' value='<?=$page?>'>
<input type='hidden' name='sw' value=''>
<table width=100% height="23" border="0" cellpadding=0 cellspacing="0">
<!-- 목록 -->
<? for ($i=0; $i<count($list); $i++) {?>

<tr bgcolor=<? if ($list[$i]['ca_name'] == '전문직') {
echo "ffe398";
}
else if ($list[$i]['ca_name'] == '기업회생') {
echo "ffeebf";
}
else if ($list[$i]['ca_name'] == '가사소송') {
echo "fff7e1";
}
else if ($list[$i]['ca_name'] == '개인파산') {
echo "fffdf9";
}
else if ($list[$i]['ca_name'] == '') {
echo "ffffff";
}
?>
onmouseover=this.style.backgroundColor='#DCF7FF' onmouseout=this.style.backgroundColor=''>
<td width=2><img src="<?=$board_skin_path?>/img/list_left.gif" width="2" height="23"></td>
<td width=40><div align="center"><?
if ($list[$i][is_notice]) // 공지사항
echo "<img src=\"$board_skin_path/img/icon_notice.gif\">";
else if ($wr_id == $list[$i][wr_id]) // 현재위치
echo "<span style='font:bold 11px tahoma; color:#E15916;'>{$list[$i][num]}</span>";
else
echo "<span style='font:normal 11px tahoma; color:#BABABA;'>{$list[$i][num]}</span>";
?>
</div></td>
<td width=3><img src="<?=$board_skin_path?>/img/list_line.gif" width="3" height="23"></td>
<td width="30" align="center"><input type=checkbox name=chk_wr_id[] value="<?=$list[$i][wr_id]?>"></td>
<td width=3><img src="<?=$board_skin_path?>/img/list_line.gif" width="3" height="23"></td>
<td width="80" align=center>
<a href="<?=$list[$i][href]?>" class="1">
<?
echo $nobr_begin;
echo $list[$i][reply];
echo $style = "";
if ($list[$i][is_notice]) $style = " style='font-weight:bold;'";
// echo $list[$i][subject];
echo "<span style='font-family:{$list[$i][wr_1]};color:{$list[$i][wr_2]};font-size:{$list[$i][wr_3]};'>{$list[$i][subject]}</span>"; //ssh 태그효과

if ($list[$i][wr_nogood]==-1) echo "<font color='#FF0000'>비승인</font>"; //ssh

// if ($list[$i]['link']['count']) { echo "[{$list[$i]['link']['count']}]"; }
// if ($list[$i]['file']['count']) { echo "<{$list[$i]['file']['count']}>"; }

//echo " " . $list[$i][icon_new];
//echo " " . $list[$i][icon_file];
//echo " " . $list[$i][icon_link];
//echo " " . $list[$i][icon_hot];
//echo " " . $list[$i][icon_secret];
echo $nobr_end;
?></a></td>

<td width=3><img src="<?=$board_skin_path?>/img/list_line.gif" width="3" height="23"></td>
<td width="90"><a href="<?=$list[$i][href]?>" class="1"><?=$list[$i][wr_17]?></a></td>

<td width=3><img src="<?=$board_skin_path?>/img/list_line.gif" width="3" height="23"></td>
<td align=left style='word-break:break-all;'>
<a href="<?=$list[$i][href]?>" class="1"><?=$list[$i][icon_file]?> <?=$list[$i][wr_3]?></a>
<?
if ($list[$i][comment_cnt])
echo " <a href=\"{$list[$i][comment_href]}\"><span style='font-family:Tahoma;font-size:10px;color:#EE5A00;'>{$list[$i][comment_cnt]}</span></a>";
?>
</td>

<td width=3><img src="<?=$board_skin_path?>/img/list_line.gif" width="3" height="23"></td>
<td align=left style='word-break:break-all;' width="90">
<a href="<?=$list[$i][href]?>" class="1"><?=$list[$i][wr_9]?></a></td>

<td width=3><img src="<?=$board_skin_path?>/img/list_line.gif" width="3" height="23"></td>
<td width="90" align=left style='word-break:break-all;'>
<div align="center"><a href="<?=$list[$i][href]?>" class="1"><?=$list[$i][wr_18]?></a> </div></td>

<td width=3><img src="<?=$board_skin_path?>/img/list_line.gif" width="3" height="23"></td>
<td width="90" align=left style='word-break:break-all;'>
<div align="center"><a href="<?=$list[$i][href]?>" class="1"><?=$list[$i][wr_11]?>-<?=$list[$i][wr_12]?></a> </div></td>

<td width=3><img src="<?=$board_skin_path?>/img/list_line.gif" width="3" height="23"></td>
<td width="90" align=left style='word-break:break-all;'>
<div align="center"><a href="<?=$list[$i][href]?>" class="1"><?=$list[$i][wr_13]?>-<?=$list[$i][wr_14]?></a> </div></td>

<td width=3><img src="<?=$board_skin_path?>/img/list_line.gif" width="3" height="23"></td>
<td align=left style='word-break:break-all;' width="70">
<div align="center"><a href="<?=$list[$i][href]?>" class="1"><?=$list[$i][name]?></a></div></td>

<td width=3><img src="<?=$board_skin_path?>/img/list_line.gif" width="3" height="23"></td>
<td width="30" align=left style='word-break:break-all;'><div align="center"><a href="<?=$g4[bbs_path]?>/write.php?w=u&bo_table=<?=$bo_table?>&wr_id=<?=$list[$i][wr_id]?>&page=<?=$page?>" class="1"><img src="<?=$board_skin_path?>/img/icon_delete.gif" border=0></a>
</div></td>
<td width=2><img src="<?=$board_skin_path?>/img/list_right.gif" width="2" height="23"></td>
</tr>
<tr><td colspan="22" bgcolor="#EDEDED" height="1"></td></tr>
<? }?>

<? if (count($list) == 0) { echo "<tr><td colspan='$colspan' height=100 align=center>게시물이 없습니다.</td></tr>"; } ?>
</table>
</form>

<!-- 페이지 -->
<div id="pagingNew"> <?=$write_pages?></div>

<div style="margin-top:7px; height:31px; clear:both;">
<div style="float:left;">
<? if ($list_href) { ?>
<a href="<?=$list_href?>"><img src="<?=$board_skin_path?>/img/btn_list.gif" align=absmiddle></a>
<? } ?>
<? if ($write_href) { ?><a href="<?=$write_href?>"><img src="<?=$board_skin_path?>/img/btn_write.gif" border="0"></a><? } ?>
<a href="javascript:select_delete();"><img src="<?=$board_skin_path?>/img/btn_select_delete.gif" align=absmiddle></a>
</div>

<div style="float:right;">

</div>
</div>

</td>
</tr></table>
</td>
</tr></table>

<script language="JavaScript">
if ('<?=$sca?>') document.fcategory.sca.value = '<?=$sca?>';
if ('<?=$wr_7?>') document.fcategory.wr_7.value = '<?=$wr_7?>';
if ('<?=$wr_8?>') document.fcategory.wr_8.value = '<?=$wr_8?>';
if ('<?=$wr_9?>') document.fcategory.wr_9.value = '<?=$wr_9?>';
if ('<?=$stx?>') {
document.fsearch.sfl.value = '<?=$sfl?>';
document.fsearch.sop.value = '<?=$sop?>';
}
</script>

<? if ($is_checkbox) { ?>
<script language="JavaScript">
function all_checked(sw) {
var f = document.fboardlist;

for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]")
f.elements[i].checked = sw;
}
}

function check_confirm(str) {
var f = document.fboardlist;
var chk_count = 0;

for (var i=0; i<f.length; i++) {
if (f.elements[i].name == "chk_wr_id[]" && f.elements[i].checked)
chk_count++;
}

if (!chk_count) {
alert(str + "할 게시물을 하나 이상 선택하세요.");
return false;
}
return true;
}

// 선택한 게시물 삭제
function select_delete() {
var f = document.fboardlist;

str = "삭제";
if (!check_confirm(str))
return;

if (!confirm("선택한 게시물을 정말 "+str+" 하시겠습니까?\n\n한번 "+str+"한 자료는 복구할 수 없습니다"))
return;

f.action = "./delete_all.php";
f.submit();
}

// 선택한 게시물 복사 및 이동
function select_copy(sw) {
var f = document.fboardlist;

if (sw == "copy")
str = "복사";
else
str = "이동";

if (!check_confirm(str))
return;

var sub_win = window.open("", "move", "left=50, top=50, width=500, height=550, scrollbars=1");

f.sw.value = sw;
f.target = "move";
f.action = "./move.php";
f.submit();
}
</script>
<? } ?>
<!-- 게시판 목록 끝 -->

댓글 작성

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

로그인하기

댓글 2개

등급+분류1
등급+분류1+분류2
등급+분류1+분류2+분류3
등급+분류1+분류3
.........
이런 검색은 스킨에서 할 수 있는 것이 아닙니다
bbs/list.php에서 대대적으로 수정을 해야 됩니다
15년 전
답변 감사합니다.
시간이 걸리더라도 꼭 해보고 싶습니다.

게시글 목록

번호 제목
284508
284499
284492
284490
284484
284481
284478
284476
284474
284472
284470
284458
284457
284454
284453
284447
284446
284444
284441
284440