<br />
<?php 
echo $AppUI->getTheme()->styleRenderBoxTop();
?>
<form name="watcher" action="?m=forums&a=viewer&forum_id=<?php 
echo $forum_id;
?>
&f=<?php 
echo $f;
?>
" method="post" accept-charset="utf-8">
    <input type="hidden" name="dosql" value="do_watch_forum" />
    <input type="hidden" name="watch" value="topic" />
    <?php 
$listHelper = new w2p_Output_ListTable($AppUI);
$listHelper->addBefore('watch', 'message_id');
echo $listHelper->startTable();
echo $listHelper->buildHeader($fields);
echo $listHelper->buildRows($items);
?>
        <tr>
            <td colspan="12">
                <div class="left">
                    <input type="submit" class="button" value="<?php 
echo $AppUI->_('update watches');
?>
" />
                </div>

                <?php 
if ($canAuthor) {
$projectStatus = w2PgetSysVal('ProjectStatus');
$original_project_id = $project->project_original_parent;
$project->project_status = -1;
$st_projects_arr = $project->getStructuredProjects();
$module = new w2p_System_Module();
$fields = $module->loadSettings('projects', 'subproject_list');
if (0 == count($fields)) {
    $fieldList = array('project_name', 'project_company', 'project_start_date', 'project_end_date', 'project_priority', 'project_status');
    $fieldNames = array('Project', 'Company', 'Start', 'End', 'P', 'Status');
    $module->storeSettings('projects', 'subproject_list', $fieldList, $fieldNames);
    $fields = array_combine($fieldList, $fieldNames);
}
$fieldList = array_keys($fields);
$fieldNames = array_values($fields);
$listTable = new w2p_Output_ListTable($AppUI);
$listTable->addBefore('edit', 'project_id');
echo $listTable->startTable('list subprojects');
echo $listTable->buildHeader($fields);
$s = '';
$customLookups = array('project_status' => $projectStatus, 'project_priority' => $projectPriority);
if (is_array($st_projects_arr)) {
    foreach ($st_projects_arr as $project) {
        $line = $project[0];
        $level = $project[1];
        if ($line['project_id']) {
            $s_project = new CProject();
            $s_project->load($line['project_id']);
            $row = get_object_vars($s_project);
            $row['company_id'] = $row['project_company'];
            $listTable->stageRowData($row);
            $s = '<tr>';
    $project_id = (int) w2PgetParam($_POST, 'project_id', 0);
}
$link = new CLink();
$items = $link->getProjectTaskLinksByCategory(null, $project_id, $task_id, $type_filter, $search_string);
$module = new w2p_System_Module();
$fields = $module->loadSettings('links', 'index_list');
if (0 == count($fields)) {
    $fieldList = array('link_name', 'link_description', 'link_category', 'link_project', 'link_task', 'link_owner', 'link_date');
    $fieldNames = array('Link Name', 'Description', 'Category', 'Project Task', 'Task Name', 'Owner', 'Date');
    $module->storeSettings('links', 'index_list', $fieldList, $fieldNames);
    $fields = array_combine($fieldList, $fieldNames);
}
$xpg_pagesize = w2PgetConfig('page_size', 50);
$xpg_min = $xpg_pagesize * ($page - 1);
// This is where we start our record set from
// counts total recs from selection
$xpg_totalrecs = count($items);
$items = array_slice($items, $xpg_min, $xpg_pagesize);
$pageNav = buildPaginationNav($AppUI, $m, $tab, $xpg_totalrecs, $xpg_pagesize, $page);
echo $pageNav;
$link_types = w2PgetSysVal('LinkType');
$customLookups = array('link_category' => $link_types);
$listTable = new w2p_Output_ListTable($AppUI);
$listTable->df .= ' ' . $AppUI->getPref('TIMEFORMAT');
$listTable->addBefore('edit', 'link_id');
$listTable->addBefore('url', 'link_url');
echo $listTable->startTable();
echo $listTable->buildHeader($fields);
echo $listTable->buildRows($items, $customLookups);
echo $listTable->endTable();
echo $pageNav;
Exemple #4
0
    $fieldNames = array('Project', 'Forum Name', 'Description', 'Owner', 'Topics', 'Replies', 'Last Post Info');
    $module->storeSettings('forums', 'index_list', $fieldList, $fieldNames);
    $fields = array_combine($fieldList, $fieldNames);
}
?>

<form name="watcher" action="./index.php?m=forums&f=<?php 
echo $f;
?>
" method="post" accept-charset="utf-8">
	<input type="hidden" name="dosql" value="do_watch_forum" />
	<input type="hidden" name="watch" value="forum" />

    <?php 
$listTable = new w2p_Output_ListTable($AppUI);
$listTable->addBefore('watch', 'forum_id');
echo $listTable->startTable();
echo $listTable->buildHeader($fields, true, 'forums&f=' . $f);
echo $listTable->buildRows($items);
?>
    <tr>
        <td colspan="<?php 
echo $listTable->cellCount;
?>
">
            <input type="submit" class="button" value="<?php 
echo $AppUI->_('update watches');
?>
" />
        </td>
    </tr>
Exemple #5
0
} else {
    // TODO: This is only in place to provide an pre-upgrade-safe
    //   state for versions earlier than v3.0
    //   At some point at/after v4.0, this should be deprecated
    $fieldList = array('contact_display_name', 'user_username', 'company_name', 'dept_name');
    $fieldNames = array('Real Name', 'Login Name', 'Company', 'Department');
    //TODO: This doesn't save the columns yet as we can't allow customization yet.
}
if ($display_last_login) {
    array_unshift($fieldList, '');
    array_unshift($fieldNames, 'Login History');
}
$fields = array_combine($fieldList, $fieldNames);
$listTable = new w2p_Output_ListTable($AppUI);
echo $listTable->startTable();
$listTable->addBefore(1);
echo $listTable->buildHeader($fields, false, $m);
$types = w2PgetSysVal('UserType');
$customLookups = array('user_type' => $types);
$perms =& $AppUI->acl();
foreach ($users as $row) {
    if ($perms->isUserPermitted($row['user_id']) != $canLogin) {
        continue;
    }
    $listTable->stageRowData($row);
    ?>
<tr>
    <td>
        <a href="./index.php?m=users&a=addedit&user_id=<?php 
    echo $row['user_id'];
    ?>