1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<?php
/**
* 词集编集
* $Id: word_theme_edit.inc,v 1.1 2015/10/08 11:18:53 wanggb Exp $
* @author wanggb
* @access public
* @package manager.templates
**/
global $upload_thumbnail;
global $thumbnail_error_msg;
?>
<style>
#theme_word_list {
overflow-y:scroll;
float:left;
width:200px;
height:420px;
border:1px solid #000;
display:flex;
flex-direction:column;
justify-content:flex-start;
align-items:center;
}
.theme_word_item {
margin-top:2px;
width:180px;
height:20px;
line-height:20px;
background:#EBEBEB;
text-align:left;
border:1px solid #EBEBEB;
}
.theme_word_item:hover {
background:#FFF;
border:1px solid #EBEBEB;
cursor:pointer;
}
#search_word_area {
margin-left:50px;
float:left;
width:200px;
height:420px;
border:1px solid #000;
display:flex;
flex-direction:column;
justify-content:flex-start;
align-items:center;
}
#search_word_list {
overflow-y:scroll;
float:left;
margin-top:10px;
width:100%;
display:flex;
flex-direction:column;
justify-content:flex-start;
align-items:center;
}
.search_word_item {
margin-top:2px;
width:180px;
height:20px;
line-height:20px;
text-align:left;
border:1px solid #D4D4D4;
}
.search_word_item:hover {
background:#EBEBEB;
border:1px solid #EBEBEB;
cursor:pointer;
}
.search_row {
margin-top:5px;
}
.input_key {
width:180px;
}
</style>
<b>词集单词设定</b><br />
<br />
<div id="result_list">
<div id="theme_word_list">
<?
$index = 0;
foreach($theme_word_list as $theme_word) {
$index++;
$word_dat = WordDat::getById($theme_word->word_id);
?>
<div class="theme_word_item" onClick="removeWord('<?=$theme_word->theme_id?>','<?=$theme_word->word_id?>');"><?=$index?>.<?=$word_dat->word?></div>
<?
}
?>
</div>
<div id="search_word_area">
<div class="search_row">
<input type="text" id="key_word" name="key_word" value="" class="input_key" onchange="searchWords('<?=$id?>');">
</div>
<div id="search_word_list">
<?
$index = 0;
foreach($search_word_list as $word_dat) {
$index++;
?>
<div class="theme_word_item" onClick="addWord('<?=$id?>','<?=$word_dat->id?>');"><?=$index?>.<?=$word_dat->word?></div>
<?
}
?>
</div>
<div>
</div>
<br />