组保留的标签 余下为需要删除的标签
unset($oldtag[$key]);
}
}
}
if (!empty($oldtag)) {
$tagids = array();
foreach ($oldtag as $tagid => $tagname) {
$tagids[] = $tagid;
}
well_oldtag_delete($tagids, $tid);
}
$r = well_tag_process($tid, $fid, $create_tag, $tagarr);
return $r;
}
// 删除标签和绑定的主题
function well_oldtag_delete($tagids, $tid)
{
$pagesize = count($tagids);
$arrlist = well_tag_find_by_tagids($tagids, 1, $pagesize);
$delete_tagids = array(); // 删除
$tagids = array();
$n = 0;
foreach ($arrlist as $val) {
++$n;
if (1 == $val['count']) {
// 只有一个主题
$delete_tagids[] = $val['tagid'];
} else {
$tagids[] = $val['tagid'];
}
}
!empty($delete_tagids) and well_tag_delete($delete_tagids);
$arlist = well_tag_thread_find_by_tid($tid, 1, $n);
if ($arlist) {
$ids = array();
foreach ($arlist as $val) $ids[] = $val['id'];
well_tag_thread_delete($ids);
}
!empty($tagids) and well_tag_update($tagids, array('count-' => 1));
}
// 标签数据处理 $arr=新提交的数组 $tagarr=保留的旧标签
function well_tag_process($tid, $fid, $new_tags = array(), $tagarr = array())
{
if (empty($tid)) return '';
// 新标签处理入库
if ($new_tags) {
$threadarr = array();
$tagids = array();
$i = 0;
$size = 5;
$n = count($tagarr);
$n = $n > $size ? $size : $size - $n;
foreach ($new_tags as $name) {
++$i;
$name = trim($name);
$name = stripslashes($name);
$name = strip_tags($name);
$name = str_replace(array(' ', '#', "@", "$", "%", "^", '&', '·', '<', '>', ';', '`', '~', '!', '¥', '……', ';', '?', '?', '-', '—', '_', '=', '+', '.', '{', '}', '|', ':', ':', '、', '/', '。', '[', ']', '【', '】', '‘', ' ', ' ', ' ', ' ', ' '), '', $name);
$name = htmlspecialchars($name, ENT_QUOTES);
if ($name && $i <= $n) {
// 查询标签
$read = well_tag_read_name($name);
if ($read) {
// 存在 count+1
$tagids[] = $read['tagid'];
} else {
// 入库
$arr = array('name' => $name, 'count' => 1);
$tagid = well_tag_create($arr);
FALSE === $tagid and message(-1, lang('create_failed'));
$read = array('tagid' => $tagid, 'name' => $name);
}
$tag_thread = array('tagid' => $read['tagid'], 'tid' => $tid);
$threadarr[] = $tag_thread;
$tagarr[$read['tagid']] = $read['name'];
}
}
!empty($threadarr) and tag_thread_big_insert($threadarr);
!empty($tagids) and well_tag_update($tagids, array('count+' => 1));
}
$json = empty($tagarr) ? '' : xn_json_encode($tagarr);
return $json;
}
?> $v = implode(",", $v);
$temp[] = $v;
}
// 去掉重复的字符串,也就是重复的一维数组
$temp = array_unique($temp);
// 再将拆开的数组重新组装
$output = array();
foreach ($temp as $k => $v) {
if ($stkeep) $k = $starr[$k];
if ($ndformat) {
$temparr = explode(",", $v);
foreach ($temparr as $ndkey => $ndval) $output[$k][$ndarr[$ndkey]] = $ndval;
} else $output[$k] = explode(",", $v);
}
return $output;
}
// 合并二维数组 如重复 值以第一个数组值为准
function array2_merge($array1, $array2, $key = '')
{
if (empty($array1) || empty($array2)) return NULL;
$arr = array();
foreach ($array1 as $k => $v) {
isset($v[$key]) ? $arr[$v[$key]] = array_merge($v, $array2[$k]) : $arr[] = array_merge($v, $array2[$k]);
}
return $arr;
}
/*
* 对二维数组排序 两个数组必须有一个相同的键值
* $array1 需要排序数组
* $array2 按照该数组key排序
* */
function array2_sort_key($array1, $array2, $key = '')
{
if (empty($array1) || empty($array2)) return NULL;
$arr = array();
foreach ($array2 as $k => $v) {
if (isset($v[$key]) && $v[$key] == $array1[$v[$key]][$key]) {
$arr[$v[$key]] = $array1[$v[$key]];
} else {
$arr[] = $v;
}
}
return $arr;
}
?>
班牌、处室功能牌(英文翻译)编程频道|福州电脑网
班牌、处室功能牌(英文翻译)
系统教程1390
更新时间:2026-04-03 20:25:03 2024年5月31日发(作者:)
名称
标准教室(7年级一个
班以此类推)
Physics Laboratory
物理实验室
物理探究实验室
准备室
Preparation Room
化学实验室
Chemical Laboratory
生物实验室
Biological Laboratory
实验员办公室
Experimenter Office
Record and Play Classroom
录播教室
计算机教室
3Computer Classroom
个别辅导室
8Individual Tutorial Room
电气间
5Electrical Room
交流空间
Communication Space
卫生间
Rest Room
语文组
Chinese Dept.
数学组
Mathematics Dept.
英语组
English Dept.
史地生微组
History,Geography,Biology and Computer Dept.
理化组
Physics and Chemistry Dept.
政治组
Politics Dept.
教师之家
Teacher's Home
备课室
Lesson-preparing Office
文印室
Printing Room
党员活动室/道德讲堂
Party Members Activity Room/Morale Lecture Room
计算机教室
Computer Classroom
准备室
Preparation Room
个别辅导室
Individual Tutorial Room
电气间
Electrical Room
心理咨询室
Psychology Counsulting Room
副校长室
Deputy Principal's Office
学校办公室
School Office
校长室
Principal's Office
接待室
Reception Room
会议室
Conference Room
广播/器材室
Broadcasting Equipment Room
支部工会
Party Branch of the Union
计算机教室
Computer Classroom
电气间
Electrical Room
卫生间(男/女)
9男9女Rest Room (Male/Female)
政教主任室、政教处
Office of Political Education
教导处
Office of Educational Administration
教导主任室
Dean's Office
团委/学生会
Youth League Committee
名称个数英文
总务处
Office of General Affairs
会计室
Accounting Office
保管室
Store Room
音美组
Music and Art Dept.
体育组
P.E. Dept.
个数
每个年级12
个班,共36
个
2
1
8
2
2
英文
网控室
Ipad教室
音乐教室
家长接待室
个别辅导室
校史荣誉室
传达室
卫生保健室
图书馆/阅览室
教工阅览室
团队活动室
档案室
体育馆
餐厅
餐厅管理办公室
体育活动室
多功能教室
更衣室/淋浴间
体能测试室
器材室
化学危险品库
技术教室1/海洋教室
技术教室2/器乐排练室
音乐教室
舞蹈教室
美术教室
书法教室
机器人实验室
教工之家
史地教室
器材室
合班教室
校园电视台
科技活动室
准备室
排气机房
语言实验室
生物园
2
7
2
2
2
Network Control Room
Ipad Room
Music Room
Parents Reception Room
Individual Tutorial Room
School History Room
Reception Office
Health Care Room
Library/Reading Room
Teacher's Reading Room
League Activity Room
Archives Office
Gymnasium
Dining Hall
Canteen Management Office
Sports Room
Multi-functional classroom
Locker Room
Physical Testing Room
Equipment Room
Dangerous Chemicals Warehouse
Technology RoomⅠ
Technology RoomⅡ
Music Room
Dance Room
Art Room
Calligraphy Room
Robotics Lab
Teacher's Room
History & Geography Room
Equipment Room
Joint Classroom
Campus TV
Technology Activity Room
Preparation Room
Exhaustor Room
Language Laboratory
本文发布于:2024-05-31,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:教室实验室活动室办公室阅览室
发布评论