3 define('AT_INCLUDE_PATH', '../../../include/');
4 require(AT_INCLUDE_PATH.'vitals.inc.php');
6 if ((isset($_REQUEST['popup']) && $_REQUEST['popup']) &&
7 (!isset($_REQUEST['framed']) || !$_REQUEST['framed'])) {
10 } elseif (isset($_REQUEST['framed']) && $_REQUEST['framed'] && isset($_REQUEST['popup']) && $_REQUEST['popup']) {
19 $_REQUEST['cid'] = intval($_REQUEST['cid']); //uses request 'cause after 'saved', the cid will become $_GET.
21 $cid = intval($_REQUEST['cid']);
23 require(AT_INCLUDE_PATH.'header.inc.php');
26 $tool_file= AT_INCLUDE_PATH.'../'.$_REQUEST['tool_file']; // viene prelevato il path del file necessario per prelevare le informazioni relative ai sottocontenuti
27 $tool_list = require($tool_file); //si richiede la lista ei contenuti per lo strumento. i contenuti trovati potranno essere inseriti all'interno del materiale didattico come collegamento.
29 <div class="input-form">
30 <fieldset class="group_form"><legend class="group_form"><?php echo _AT('tools_manager'); ?></legend>
32 <?php echo _AT('tool_man_comment');?>
34 <?php echo $msg->printFeedbacks();
36 $sql = "SELECT forum_id FROM ".TABLE_PREFIX."content_forums_assoc WHERE content_id='$cid'";
37 if(isset($tool_list)) {?>
38 <form name="datagrid" action="<?php AT_INCLUDE_PATH.'../'.$_REQUEST['tool_file'];?>" method="POST">
39 <table class="data" summary="" style="width: 90%" rules="cols">
42 <th scope="col" style="width:5%"> </th>
43 <th scope="col"><?php echo _AT('Title'); ?></th>
47 <?php foreach($tool_list as $tool) {
49 $result = mysql_query($sql, $db);
50 while($row = mysql_fetch_assoc($result)){
51 if($tool['id'] == $row['forum_id']){
61 <input name="check[]" value="<?php echo $tool['id'];?>" id="<?php echo $i; ?>" type="checkbox" <?php echo $checked;?> />
62 <?php echo $files;?>
64 <td valign="top"><label for="<?php echo $i; ?>"><?php echo $tool['title']; ?></label></td>
71 <input type="hidden" name="cid" value="<?php echo $cid;?>" />
72 <input type="submit" name="save" value="<?php echo _AT('save');?>" class="button" />
79 <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>