<?php if ($assignment['date_due'] != '0000-00-00 00:00:00'): ?> <option value="<?php echo $assignment['assignment_id']; ?>"><?php echo $assignment['title']; ?> - <?php echo _AT('due') . ': ' . AT_date(_AT('filemanager_date_format'), $assignment['date_due'], AT_DATE_MYSQL_DATETIME); ?></option> <?php else: ?> <option value="<?php echo $assignment['assignment_id']; ?>"><?php echo $assignment['title']; ?> - <?php echo _AT('no_due_date'); ?></option> <?php endif; ?> <?php endforeach; ?> </select> </div> <div class="row"> <?php echo _AT('files'); ?> <ul style="list-style: none; margin: 0px; padding: 0px 10px;"> <?php $file_list = implode(',', $_GET['files']); $sql = "SELECT file_name FROM ".TABLE_PREFIX."files WHERE file_id IN ($file_list) AND owner_type=$owner_type AND owner_id=$owner_id ORDER BY file_name"; $result = mysql_query($sql, $db); ?> <?php while ($row = mysql_fetch_assoc($result)): ?> <li><img src="images/file_types/<?php echo fs_get_file_type_icon($row['file_name']); ?>.gif" height="16" width="16" alt="" title="" /> <?php echo $row['file_name']; ?></li> <?php endwhile; ?> </ul> </div> <div class="buttons row"> <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>" /> <input type="submit" name="cancel" value="<?php echo _AT('cancel'); ?>" /> </div> </div> </form> <?php require(AT_INCLUDE_PATH.'footer.inc.php'); ?>
echo $file_info['file_id']; ?> '].checked, 'checkbuttons(false)');" id="r_<?php echo $file_info['file_id']; ?> _0"> <td valign="top" width="10"><input type="checkbox" name="files[]" value="<?php echo $file_info['file_id']; ?> " id="r<?php echo $file_info['file_id']; ?> " onmouseup="this.checked=!this.checked" /></td> <td valign="top"> <img src="images/file_types/<?php echo fs_get_file_type_icon($file_info['file_name']); ?> .gif" height="16" width="16" alt="" title="" /> <label for="r<?php echo $file_info['file_id']; ?> " onmousedown="document.form['r<?php echo $file_info['file_id']; ?> '].checked = !document.form['r<?php echo $file_info['file_id']; ?> '].checked; rowselectbox(this, document.form['r<?php echo $file_info['file_id']; ?> '].checked, 'checkbuttons(false)');"><?php echo htmlspecialchars($file_info['file_name']);
<tr onmousedown="document.form['f<?php echo $folder_info['folder_id']; ?>'].checked = !document.form['f<?php echo $folder_info['folder_id']; ?>'].checked; rowselectbox(this, document.form['f<?php echo $folder_info['folder_id']; ?>'].checked, 'checkbuttons(false)');" id="r_<?php echo $folder_info['folder_id']; ?>_1"> <td width="10"><input type="checkbox" name="folders[]" value="<?php echo $folder_info['folder_id']; ?>" id="f<?php echo $folder_info['folder_id']; ?>" onmouseup="this.checked=!this.checked" /></td> <td><img src="images/folder.gif" height="18" width="20" alt="" /> <label for="f<?php echo $folder_info['folder_id']; ?>"><a href="<?php echo url_rewrite($_SERVER['PHP_SELF'].$owner_arg_prefix.'folder='. $folder_info['folder_id']); ?>"><?php echo AT_print($folder_info['title'], 'input.text'); ?></a></label></td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> <?php endforeach; ?> <?php foreach ($files as $file_info): ?> <tr onmousedown="document.form['r<?php echo $file_info['file_id']; ?>'].checked = !document.form['r<?php echo $file_info['file_id']; ?>'].checked; rowselectbox(this, document.form['r<?php echo $file_info['file_id']; ?>'].checked, 'checkbuttons(false)');" id="r_<?php echo $file_info['file_id']; ?>_0"> <td valign="top" width="10"><input type="checkbox" name="files[]" value="<?php echo $file_info['file_id']; ?>" id="r<?php echo $file_info['file_id']; ?>" onmouseup="this.checked=!this.checked" /></td> <td valign="top"> <img src="images/file_types/<?php echo fs_get_file_type_icon($file_info['file_name']); ?>.gif" height="16" width="16" alt="" title="" /> <label for="r<?php echo $file_info['file_id']; ?>" onmousedown="document.form['r<?php echo $file_info['file_id']; ?>'].checked = !document.form['r<?php echo $file_info['file_id']; ?>'].checked; rowselectbox(this, document.form['r<?php echo $file_info['file_id']; ?>'].checked, 'checkbuttons(false)');"><?php echo htmlspecialchars($file_info['file_name']); ?></label> <?php if ($file_info['description']): ?> <p class="fm-desc"><?php echo htmlspecialchars($file_info['description']); ?></p> <?php endif; ?> </td> <td valign="top"><?php echo get_display_name($file_info['member_id']); ?></td> <td valign="top"> <?php if ($_config['fs_versioning']): ?> <?php if ($file_info['num_revisions']): if ($file_info['num_revisions'] == 1) { $lang_var = 'fs_revision'; } else { $lang_var = 'fs_revisions'; } ?>
<div class="row"> <?php echo _AT('files'); ?> <ul style="list-style: none; margin: 0px; padding: 0px 10px;"> <?php $file_list = implode(',', $_GET['files']); $sql = "SELECT file_name FROM %sfiles WHERE file_id IN (%s) AND owner_type=%d AND owner_id=%d ORDER BY file_name"; $rows_filenames = queryDB($sql, array(TABLE_PREFIX, $file_list, $owner_type, $owner_id)); ?> <?php foreach ($rows_filenames as $row) { ?> <li><img src="images/file_types/<?php echo fs_get_file_type_icon($row['file_name']); ?> .gif" height="16" width="16" alt="" title="" /> <?php echo $row['file_name']; ?> </li> <?php } ?> </ul> </div> <div class="buttons row"> <input type="submit" name="submit" value="<?php echo _AT('submit'); ?>
</tr> </tfoot> <tbody> <?php if (mysql_num_rows($result) == 0) { ?> <tr> <td colspan="5"><?php echo _AT('none_found'); ?></td> </tr> <?php } else { while ($file_info = mysql_fetch_assoc($result)) {?> <tr onmousedown="document.form<?php echo $assignment_row['assignment_id']; ?>['r<?php echo $assignment_row['assignment_id']; ?>_<?php echo $file_info['file_id']; ?>'].checked = !document.form<?php echo $assignment_row['assignment_id']; ?>['r<?php echo $assignment_row['assignment_id']; ?>_<?php echo $file_info['file_id']; ?>'].checked; togglerowhighlight(this, 'r<?php echo $assignment_row['assignment_id']; ?>_<?php echo $file_info['file_id']; ?>');" id="r<?php echo $assignment_row['assignment_id']; ?>_<?php echo $file_info['file_id']; ?>_0"> <td valign="top" width="10"> <input type="checkbox" name="files<?php echo $assignment_row['assignment_id']; ?>[]" value="<?php echo $file_info['file_id']; ?>" id="r<?php echo $assignment_row['assignment_id']; ?>_<?php echo $file_info['file_id']; ?>" onmouseup="this.checked=!this.checked" /> </td> <td valign="top"> <img src="images/file_types/<?php echo fs_get_file_type_icon($file_info['file_name']); ?>.gif" height="16" width="16" alt="" title="" /> <label for="r<?php echo $assignment_row['assignment_id']; ?>_<?php echo $file_info['file_id']; ?>" onmousedown="document.form<?php echo $assignment_row['assignment_id']; ?>['r<?php echo $assignment_row['assignment_id']; ?>_<?php echo $file_info['file_id']; ?>'].checked = !document.form<?php echo $assignment_row['assignment_id']; ?>['r<?php echo $assignment_row['assignment_id']; ?>_<?php echo $file_info['file_id']; ?>'].checked; togglerowhighlight(this, 'r<?php echo $assignment_row['assignment_id']; ?>_<?php echo $file_info['file_id']; ?>');"><?php echo htmlspecialchars($file_info['file_name']); ?></label> <?php if ($file_info['description']): ?> <p class="fm-desc"><?php echo htmlspecialchars($file_info['description']); ?></p> <?php endif; ?> </td> <!-- <td valign="top"> <?php if ($_config['fs_versioning']): ?> <?php if ($file_info['num_revisions']): if ($file_info['num_revisions'] == 1) { $lang_var = 'fs_revision'; } else { $lang_var = 'fs_revisions'; } ?> <a href="<?php echo url_rewrite('mods/_standard/file_storage/revisions.php'.$owner_arg_prefix.'id='.$file_info['file_id']); ?>"><?php echo _AT($lang_var, $file_info['num_revisions']); ?></a>