asort($sprojects); $sprojects = array('O' => '(' . $AppUI->_('Move to Project', UI_OUTPUT_RAW) . ')') + array('0' => '(' . $AppUI->_('All Projects', UI_OUTPUT_RAW) . ')') + $sprojects; ?> <tr> <td colspan="50" align="right"> <form name='frm_bulk' method='POST' action='?m=files&a=do_files_bulk_aed'> <input type="hidden" name="redirect" value="<?php echo $current_uri; ?> " /> <table id="tbl_bulk" name="tbl_bulk"> <tr> <td><?php echo arraySelect($sprojects, 'bulk_file_project', 'style="width:180px" class="text"', 'O'); ?> </td> <td><?php echo arraySelectTree($folders, 'bulk_file_folder', 'style="width:180px;" class="text"', 'O'); ?> </td> <td align="right"><input type="button" class="button" value="<?php echo $AppUI->_('Go'); ?> " onclick="if (confirm('Are you sure you wish to apply the options on the selected files?')) document.frm_bulk.submit();" /></td> </tr> </table> </form> </td> </tr> </table>
?> ]</a> </td> </tr> <?php if (count($depts)) { ?> <tr> <td align="right" nowrap><?php echo $AppUI->_('Department Parent'); ?> :</td> <td> <?php echo arraySelectTree($depts, 'dept_parent', 'class=text size=1', @$drow["dept_parent"]); ?> </td> </tr> <?php } else { echo '<input type="hidden" name="dept_parent" value="0">'; } ?> <tr> <td align="right"><?php echo $AppUI->_('Owner'); ?> :</td> <td> <?php
?> ]</a> </td> </tr> <?php if (count($depts)) { ?> <tr> <td align="right" nowrap="nowrap"><?php echo $AppUI->_('Department Parent'); ?> :</td> <td> <?php echo arraySelectTree($depts, 'dept_parent', 'class="text" size="1"', @$drow["dept_parent"]); ?> </td> </tr> <?php } else { echo '<input type="hidden" name="dept_parent" value="0" />'; } ?> <tr> <td align="right"><?php echo $AppUI->_('Owner'); ?> :</td> <td> <?php
<td colspan="50" align="right"> <form name='frm_bulk' method='POST' action='?m=files&a=do_files_bulk_aed'> <input type="hidden" name="redirect" value="<?php echo $current_uri; ?> " /> <table id="tbl_bulk" name="tbl_bulk"> <tr> <td> <?php echo "\t\t\t\t\t\t" . arraySelect($projects_list, 'bulk_file_project', 'style="width:180px" class="text"', 'O'); ?> </td> <td> <?php echo "\t\t\t\t\t\t" . arraySelectTree($folders_list, 'bulk_file_folder', 'style="width:180px;" class="text"', 'O'); ?> </td> <td align="right"> <input type="button" class="button" value="<?php echo $AppUI->_('Go'); ?> " onclick="goCheck();" /> </td> </tr> </table> </form> </td> </tr> </table>
<td align="right" nowrap="nowrap"><?php echo $AppUI->_('Folder'); ?> :</td> <td align="left"> <?php if ($file_id == 0 && !$ci) { ?> <?php echo arraySelectTree($folders, 'file_folder', 'style="width:175px;" class="text"', $file_helpdesk_item ? getHelpdeskFolder() : $folder); ?> <?php } else { ?> <?php echo arraySelectTree($folders, 'file_folder', 'style="width:175px;" class="text"', $file_helpdesk_item ? getHelpdeskFolder() : $file->file_folder); ?> <?php } ?> </td> </tr> <?php if ($file->file_id) { ?> <tr> <td align="right" nowrap="nowrap"><?php echo $AppUI->_('File Name'); ?> :</td> <td align="left" class="hilite"><?php
<input type="hidden" name="file_helpdesk_item" value="<?php echo $file_helpdesk_item; ?> " /> <table width="100%" border="0" cellpadding="3" cellspacing="3" class="std"> <tr> <td width="100%" valign="top" align="center"> <table cellspacing="1" cellpadding="2" width="60%"> <tr> <td align="right" nowrap="nowrap"><?php echo $AppUI->_('Folder'); ?> :</td> <td align="left"><?php echo arraySelectTree($folders, 'file_folder', 'style="width:175px;" class="text"', $file_helpdesk_item ? getHelpdeskFolder() : ($file_id == 0 && !$ci ? $folder : $obj->file_folder)); ?> </td> </tr><?php if ($file_id) { ?> <tr> <td align="right" nowrap="nowrap"><?php echo $AppUI->_('File Name'); ?> :</td> <td align="left" class="hilite"><?php echo mb_strlen($obj->file_name) == 0 ? "n/a" : $obj->file_name; ?> </td> <td>
</td> <td width="100%" colspan="2"> <input type="text" name="project_name" id="project_name" value="<?php echo htmlspecialchars($project->project_name, ENT_QUOTES); ?> " size="25" maxlength="255" onblur="setShort();" class="text" /> * </td> </tr> <tr> <td align="right" nowrap="nowrap"><?php echo $AppUI->_('Parent Project'); ?> </td> <td colspan="2"> <?php echo arraySelectTree($structprojects, 'project_parent', 'style="width:250px;" class="text"', $project->project_parent ? $project->project_parent : 0); ?> </td> </tr> <tr> <td align="right" nowrap="nowrap"><?php echo $AppUI->_('Project Owner'); ?> </td> <td colspan="2"> <?php // pull users $users = $perms->getPermittedUsers('projects'); echo arraySelect($users, 'project_owner', 'size="1" style="width:200px;" class="text"', $project->project_owner ? $project->project_owner : $AppUI->user_id); ?> </td>
echo $referrer; ?> " /> <table width="100%" border="0" cellpadding="3" cellspacing="3" class="std"> <tr> <td width="100%" valign="top" align="center"> <table cellspacing="1" cellpadding="2" width="60%"> <tr> <td align="right" nowrap="nowrap"><?php echo $AppUI->_('Subfolder of'); ?> :</td> <td align="left"> <?php $parent_folder = $folder > 0 ? $obj->file_folder_parent : $file_folder_parent; echo arraySelectTree($folders, 'file_folder_parent', 'style="width:175px;" class="text"', $parent_folder); ?> </td> </tr> <tr> <td align="right" nowrap="nowrap"><?php echo $AppUI->_('Folder Name'); ?> :</td> <td align="left"><input type="text" class="text" id="ffn" name="file_folder_name" value="<?php echo $obj->file_folder_name; ?> " maxlength="64" /></td> </tr> <tr>
<td width="100%" valign="top" align="center"> <table cellspacing="1" cellpadding="2" width="60%"> <tr> <td align="right" nowrap="nowrap"><?php echo $AppUI->_('Folder'); ?> :</td> <td align="left"><?php //Modifed by HaTaX to check for passed folder destination and if selection is disabled //Negative value of folder id disables selection ability $folder_sel = intval(dPgetParam($_GET, 'folder_sel', 0)); $disabled = ''; if ($folder_sel < 0) { $disabled = ' disabled="disabled"'; } echo arraySelectTree($folders, 'file_folder', 'style="width:175px;" class="text"' . $disabled, $folder_sel ? abs($folder_sel) : ($file_id == 0 && !$ci ? $folder : $obj->file_folder)); ?> </td> </tr><?php if ($file_id) { ?> <tr> <td align="right" nowrap="nowrap"><?php echo $AppUI->_('File Name'); ?> :</td> <td align="left" class="hilite"><?php echo mb_strlen($obj->file_name) == 0 ? "n/a" : $obj->file_name; ?> </td> <td>