Beispiel #1
0
	<a href="index.php?group_id=<?php 
        echo $group_id;
        ?>
&amp;addgroup=1"><?php 
        echo _('Add/Edit Document Groups');
        ?>
</a>
	</p>
	<?php 
        $selected_stateid = getIntFromRequest('selected_stateid');
        if (!$d_arr || count($d_arr) < 1) {
            print "<p><strong>" . _('This project has no visible documents') . ".</strong></p>";
        } else {
            // get a list of used document states
            $states = $df->getUsedStates();
            $nested_groups =& $dgf->getNested();
            echo "<ul>";
            foreach ($states as $state) {
                echo "<li><strong>" . $state["name"] . "</strong>";
                docman_display_documents($nested_groups, $df, true, $state['stateid'], true);
                echo "</li>";
            }
            echo "</ul>";
        }
        docman_footer(array());
    }
}
// Local Variables:
// mode: php
// c-file-style: "bsd"
// End:
Beispiel #2
0
				</td>
			</tr>
			<tr>
				<td>
				<strong>' . _('Group that document belongs in') . ' :</strong><br />';
    $dgf = new DocumentGroupFactory($g);
    if ($dgf->isError()) {
        exit_error('Error', $dgf->getErrorMessage());
    }
    $dgh = new DocumentGroupHTML($g);
    if ($dgh->isError()) {
        exit_error('Error', $dgh->getErrorMessage());
    }
    //display_groups_option($group_id);
    $selected_doc_group = getIntFromRequest('selected_doc_group');
    $dgh->showSelectNestedGroups($dgf->getNested(), 'doc_group', false, $selected_doc_group);
    echo '
				</td>
			</tr>
		</table>
		<input type="submit" name="submit" value="' . _('Submit Information') . ' " />
			</form>';
    docman_footer(array());
    /*
    } else {
    	docman_header(_('Document Manager: Submit New Documentation'),_('Project: %1$s'));
    	?>
    	
    	<?php
    	echo '<form name="select_opt" action="'. getStringFromServer('PHP_SELF').'?group_id='.$group_id.'" method="post">';
    	$vals['httpupload'] = _('Http Upload');