2008-06-27 08:52:54 +00:00
|
|
|
<?php
|
2008-07-11 06:15:21 +00:00
|
|
|
/*******************************************************\
|
|
|
|
|
|
|
|
This is page is deprecated, we are developing ajax
|
|
|
|
File Picker in the future. This page won't work.
|
|
|
|
|
|
|
|
\*******************************************************/
|
2008-06-27 08:52:54 +00:00
|
|
|
require_once('../config.php');
|
|
|
|
require_once('lib.php');
|
2008-06-30 05:24:00 +00:00
|
|
|
$id = required_param('id', PARAM_INT);
|
2008-07-01 07:37:41 +00:00
|
|
|
$action = optional_param('action', '', PARAM_RAW);
|
2008-06-30 05:24:00 +00:00
|
|
|
if(!$repository = $DB->get_record('repository', array('id'=>$id))) {
|
|
|
|
print_error('invalidrepostoryid');
|
|
|
|
}
|
2008-06-30 07:10:13 +00:00
|
|
|
|
|
|
|
if(is_file($CFG->dirroot.'/repository/'.$repository->repositorytype.'/repository.class.php')) {
|
|
|
|
require_once($CFG->dirroot.'/repository/'.$repository->repositorytype.'/repository.class.php');
|
|
|
|
$classname = 'repository_' . $repository->repositorytype;
|
|
|
|
$repo = new $classname($id, SITEID);
|
|
|
|
} else {
|
|
|
|
print_error('invalidplugin', 'repository');
|
|
|
|
}
|
2008-06-27 08:52:54 +00:00
|
|
|
?>
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
|
|
<html>
|
|
|
|
<head>
|
2008-06-30 07:10:13 +00:00
|
|
|
<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
|
|
|
|
<title>File Picker</title>
|
|
|
|
<link href="style.css" rel="stylesheet" type="text/css"/>
|
2008-06-27 08:52:54 +00:00
|
|
|
</head>
|
|
|
|
<body>
|
2008-07-11 06:15:21 +00:00
|
|
|
<h1>This page is deprecated, please access ajax.php.</h1>
|
2008-06-27 08:52:54 +00:00
|
|
|
<table border="0" cellspacing="10" cellpadding="10">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<h3>Repository</h3>
|
|
|
|
<ul id='repolist'>
|
|
|
|
<li><a href="###" class="link">Local Server</a></li>
|
|
|
|
<li><a href="###">Remote Moodle</a></li>
|
|
|
|
<li class='line'>------------------------------</li>
|
2008-07-01 07:37:41 +00:00
|
|
|
<li><a href="?id=1">Box.net</a></li>
|
|
|
|
<li><a href="?id=2">Flickr</a></li>
|
|
|
|
<li><a href="###"><strike>Briefcase</strike></a></li>
|
|
|
|
<li><a href="###"><strike>Door</strike></a></li>
|
|
|
|
<li><a href="###"><strike>Google Docs</strike></a></li>
|
|
|
|
<li><a href="###"><strike>Mahara</strike></a></li>
|
|
|
|
<li><a href="###"><strike>Merlot</strike></a></li>
|
|
|
|
<li><a href="###"><strike>Myspace</strike></a></li>
|
|
|
|
<li><a href="###"><strike>Oki</strike></a></li>
|
|
|
|
<li><a href="###"><strike>Skydrive</strike></a></li>
|
|
|
|
<li><a href="###"><strike>Youtube</strike></a></li>
|
2008-06-27 08:52:54 +00:00
|
|
|
<li class='line'>------------------------------</li>
|
|
|
|
</ul>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<table>
|
|
|
|
<tr>
|
|
|
|
<td class="header">
|
|
|
|
<img src="<?php echo $CFG->pixpath.'/moodlelogo.gif';?>" alt="Manage Google Docs" />
|
|
|
|
</td>
|
|
|
|
<td class="header">
|
2008-07-01 07:37:41 +00:00
|
|
|
<?php
|
|
|
|
$repo->print_search();
|
|
|
|
?>
|
2008-06-27 08:52:54 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2008-06-30 05:24:00 +00:00
|
|
|
<div>
|
|
|
|
<?php
|
2008-07-01 07:37:41 +00:00
|
|
|
if($action == 'list') {
|
2008-06-30 07:10:13 +00:00
|
|
|
$repo->print_listing();
|
|
|
|
} else {
|
|
|
|
$repo->print_login();
|
|
|
|
}
|
2008-06-30 05:24:00 +00:00
|
|
|
?>
|
|
|
|
</div>
|
|
|
|
<!--
|
2008-07-01 07:37:41 +00:00
|
|
|
<iframe src="ibrowse.php" width="100%" height='250px' class="frame"></iframe>
|
2008-06-27 08:52:54 +00:00
|
|
|
<div class="right">
|
|
|
|
<input type="submit" value="Select" name="select" />
|
|
|
|
|
|
|
|
<input type="submit" value="Cancel" name="cancel"/>
|
|
|
|
</div>
|
2008-07-01 07:37:41 +00:00
|
|
|
-->
|
2008-06-27 08:52:54 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</body>
|
|
|
|
</html>
|