⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glossary.inc.php

📁 是一个教学内容管理系统
💻 PHP
字号:
<?php/****************************************************************//* ATutor														*//****************************************************************//* Copyright (c) 2002-2006 by Greg Gay & Joel Kronenberg        *//* Adaptive Technology Resource Centre / University of Toronto  *//* http://atutor.ca												*//*                                                              *//* This program is free software. You can redistribute it and/or*//* modify it under the terms of the GNU General Public License  *//* as published by the Free Software Foundation.				*//****************************************************************/// $Id: glossary.inc.php 5866 2005-12-15 16:16:03Z joel $if (!defined('AT_INCLUDE_PATH')) { exit; }?><div class="row"><?php	if ($num_terms == 0) {		echo _AT('no_terms_found');	}	$num_glossary = count($glossary_ids);	for ($i=0; $i<$num_terms; $i++) {		for ($j=0;$j<$i;$j++) {			if (strtolower($word[$j]) == strtolower($word[$i])) {				/* skip multiple occurances of the same word: */				continue 2;			}		}		?><table cellspacing="1" cellpadding="0" border="0" class="bodyline" summary="" align="center">		<tr>			<td align="right" class="row1"><strong><?php 				$key = in_array_cin($word[$i], $glossary_ids);				if ($key === false) {					echo '<em>'._AT('new').'</em> ';					$current_word = $word[$i];					$current_defn = $_POST['glossary_defs'][$word[$i]];				} else {					$current_word = $glossary_ids[$key];					if (!$_POST['glossary_defs'][$word[$i]]) {						$current_defn = $glossary[$glossary_ids[$key]];					} else {						$current_defn = $_POST['glossary_defs'][$word[$i]];					}				}				echo _AT('glossary_term'); ?>:</strong></td>			<td class="row1"><?php echo AT_print(urldecode($current_word), 'glossary.word'); ?></td>		</tr>		<?php if (strlen(urldecode($current_word)) > 60): ?>		<tr>			<td>&nbsp;</td>			<td><em><?php echo _AT('glossary_term_limit'); ?></em></td>		</tr>		<?php else: ?>		<tr>			<td valign="top" align="right" class="row1"><label for="body<?php echo $i; ?>"><strong><?php echo _AT('glossary_definition');  ?>:</strong></label></td>			<td class="row1">				<textarea name="glossary_defs[<?php echo $word[$i]; ?>]" class="formfield" cols="55" rows="4" id="body<?php echo $i; ?>"><?php 					echo ContentManager::cleanOutput($current_defn); 				?></textarea></td>		</tr>		<tr>			<td valign="top" align="right" class="row1"><label for="r<?php echo $i; ?>"><strong><?php echo _AT('glossary_related');  ?>:</strong></label></td>			<td class="row1"><?php				if ($num_glossary > 1) {					echo '<select name="related_term['.$word[$i].']" id="r'.$i.'">';					echo '<option value="0"></option>';					foreach ($glossary_ids as $id => $term) {						if ($term == $word[$i]) {							continue;						}						echo '<option value="'.$id.'"';						if ($_POST['related_term'][$word[$i]] == $id) {							echo ' selected="selected"';						}						echo '>'.urldecode($term).'</option>';					}					echo '</select>';				} else {					echo _AT('none_available');				}				?></td>		</tr>		<?php endif; ?>		</table><br />	<?php } ?>			</div>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -