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

📄 module.php

📁 是一个教学内容管理系统
💻 PHP
字号:
<?php
/** snippit to use when extending Modules
class PropertiesModule extends Module {

	function PropertiesModule($row) {
		parent::Module($row);

		define('AT_PRIV_ADMIN', $row['privilege']);
	}

	function delete() {

	}
}
return;
**/

if (!defined('AT_INCLUDE_PATH')) { exit; }
if (!isset($this) || (isset($this) && (strtolower(get_class($this)) != 'module'))) { exit(__FILE__ . ' is not a Module'); }

define('AT_PRIV_ADMIN', $this->getPrivilege());

//admin pages
$this->_pages['admin/edit_course.php']['title_var'] = 'course_properties';
$this->_pages['admin/edit_course.php']['parent']    = 'admin/courses.php';

$this->_pages['admin/delete_course.php']['title_var'] = 'delete_course';
$this->_pages['admin/delete_course.php']['parent']    = 'admin/courses.php';


//instructor pages
$this->_pages['tools/course_properties.php']['title_var'] = 'properties';
$this->_pages['tools/course_properties.php']['parent']    = 'tools/index.php';
$this->_pages['tools/course_properties.php']['children']  = array('tools/delete_course.php', 'tools/access.php');
$this->_pages['tools/course_properties.php']['guide']     = 'instructor/?p=properties.php';

	$this->_pages['tools/delete_course.php']['title_var'] = 'delete_course';
	$this->_pages['tools/delete_course.php']['parent']    = 'tools/course_properties.php';

	$this->_pages['tools/access.php']['title_var'] = 'authenticated_access';
	$this->_pages['tools/access.php']['parent']    = 'tools/course_properties.php';
	$this->_pages['tools/access.php']['guide']     = 'instructor/?p=authenticated_access.php';

?>

⌨️ 快捷键说明

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