소스 파일명 : items_table.php
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
057
058
059
060
061
062
063
064
065
066
067
068
069
070
071
072
073
074
075
076
077
078
079
080
081
082
083
084
085
086
087
088
089
090
091
092
093
094
095
096
097
098
099
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<?php // (2018.1.29, 차재복, Cha Jae Bok, cjbword@gmailcom) 

# style
	echo "<link rel='stylesheet' type='text/css' href='items_table.css'>";

# table 형태
	echo "<table id='items'>";

		echo "<tr>";

			echo "</td><td>";
				echo "<div id='source_id' data-id=''>"; // 버튼 클릭시 폼 측으로 가져올 정보가 저장됨
					echo " 분류 선택 ";
				echo "</div>";
			echo "</td><td>";
				// source id 버튼
				echo "<form action='items.php' method='POST' id='id_source_form' style='display:inline; position:relative;'>"; // 하부 요소들의 위치 기준을 위해, position:relative 사용

						echo "<button id='id_delete' class='id_src_mani' disabled>삭제</button>";

						echo " ";
						echo "<button id='id_rename' class='id_sub_button' disabled>명칭변경</button>";
						echo "<button id='id_gen_before' class='id_sub_button' disabled>직전생성</button>";
						echo "<button id='id_gen_after' class='id_sub_button' disabled>직후생성</button>";
						echo "<button id='id_gen_child' class='id_sub_button' disabled>자식생성</button>";

							echo "<div style='display:none;'>";
								echo "<input type='text' size='8' name='para[title]' >"; 
								echo "<button class='id_src_sub_mani' style='display:inline-block;'>Submit</button>";
							echo "</div>";

						echo "<input type='hidden' name='para[source_id]' value=''>";
						echo "<input type='hidden' name='action' value=''>";
				echo "</form>";

			echo "</td><td rowspan=2>";
					echo "<div id='target_id' data-id=''>";
						echo " 목적지 선택 ";
					echo "</div>";
			echo "</td><td>";
					// target id 버튼
					echo "<form action='items.php' method='POST' id='id_target_form' style='display:inline;'>";

						echo "<button id='id_before' class='id_button' disabled>직전이동</button>"; 
						echo "<button id='id_after' class='id_button' disabled>직후이동</button>";
						echo "<button id='id_child' class='id_button' disabled>자식이동</button>";

						echo "<input type='hidden' name='para[source_id]' value=''>";
						echo "<input type='hidden' name='para[target_id]' value=''>";
						echo "<input type='hidden' name='action' value=''>";

					echo "</form>";

		echo "</tr><tr>";

			echo "<td>";
				echo "<div id='source_no' data-id='' data-no='' data-no-list=''>";
					echo " 용어 선택 ";
				echo "</div>";
			echo "</td>";
			echo "<td>";
					// source no 버튼
					echo "<form action='items.php' method='POST' id='no_source_form' style='display:inline; position:relative;'>"; // 하부 요소들의 위치 기준을 위해, position:relative 사용

						echo "<button id='no_up' class='no_src_mani' disabled>Up</button>";
						echo "<button id='no_down' class='no_src_mani' disabled>Down</button>";
						echo "<button id='no_delete' class='no_src_mani' disabled>삭제</button>"; 

						echo " <button id='no_rename' class='no_sub_button' disabled>명칭변경</button>";
							echo "<div style='display:none;'>";  
								echo "<input type='text' size='8' name='para[title]' >"; 
								echo "<button class='no_src_sub_mani' style='display:inline-block;'>Submit</button>";
							echo "</div>";

						echo "<input type='hidden' name='para[source_id]' value=''>";
						echo "<input type='hidden' name='para[source_no]' value=''>";
						echo "<input type='hidden' name='action' value=''>";

//					echo "</span>";
					echo "</form>";
			echo "</td>";
			echo "<td>";
					// tagrget no 버튼
					echo "<form action='items.php' method='POST' id='no_target_form' style='display:inline;'>";

						echo "<button id='no_designate' class='no_button' disabled>지정</button>"; 
						echo "<button id='no_change' class='no_button' disabled>변경</button>";

						echo "<input type='hidden' name='para[source_id]' value=''>";
						echo "<input type='hidden' name='para[source_no]' value=''>";
						echo "<input type='hidden' name='para[target_id]' value=''>";
						echo "<input type='hidden' name='action' value=''>";

					echo "</form>";
			echo "</td>";

		echo "</tr>";

		echo "<tr>";
			// 선택형 목록이냐, 검색형 목록이냐를 구분하여 줌
			echo "<td align='center' style='height:20px;'>"; // 목록 보이기 링크 (items_display_left)
				echo "<button type='submit' class='ajax_page' style='font-weight:normal;'>초기목록</button>";
			echo "</td>";
			echo "<td align='center' style='height:20px;'>"; // 검색 input
				echo "항목명 검색 : ";
				echo "<input type='text' id='srch_input' name='sh' size='12'>";
				echo "<button type='submit' id='srch_submit'>검색</button>";
			echo "</td>";

			// 오른쪽 목록 보이기
			echo "<td id='items_display_right' valign='top' colspan=3 rowspan=2>";
				$left_right='right';
				include "items_display.php";
			echo "</td>";
		echo "</tr>";

		echo "<tr>";
			// 왼쪽 목록 보이기
			echo "<td id='items_display_left' valign='top' colspan=2>";
				$left_right='left';
				include "items_display.php";
			echo "</td>";
		echo "</tr>";

	echo "</table>";

?>