示例#1
0
    die('You should not access this file directly.');
}
global $search_string, $owner_filter_id, $currentTabId, $orderby, $orderdir;
$types = w2PgetSysVal('DepartmentType');
$dept_type_filter = $currentTabId - 1;
// get any records denied from viewing
$dept = new CDepartment();
$depts = $dept->getFilteredDepartmentList(null, $dept_type_filter, $search_string, $owner_filter_id, $orderby, $orderdir);
?>
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl list">
    <tr>
        <?php 
$fieldList = array();
$fieldNames = array();
$module = new w2p_Core_Module();
$fields = $module->loadSettings('departments', 'index_list');
if (count($fields) > 0) {
    $fieldList = array_keys($fields);
    $fieldNames = array_values($fields);
} 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('dept_name', 'countp', 'inactive', 'dept_type');
    $fieldNames = array('Department Name', 'Active Projects', 'Archived Projects', 'Type');
}
//TODO: The link below is commented out because this module doesn't support sorting... yet.
foreach ($fieldNames as $index => $name) {
    ?>
<th nowrap="nowrap">
<!--                <a href="?m=departments&orderby=<?php 
示例#2
0
    $row['task_number'] = $i;
    $row['node_id'] = 'node_' . $i . '-' . $row['task_id'];
    if (strpos($row['task_duration'], '.') && $row['task_duration_type'] == 1) {
        $row['task_duration'] = floor($row['task_duration']) . ':' . round(60 * ($row['task_duration'] - floor($row['task_duration'])));
    }
    //pull the final task row into array
    $projects[$row['task_project']]['tasks'][] = $row;
}
$showEditCheckbox = isset($canEditTasks) && $canEditTasks || canView('admin');
$durnTypes = w2PgetSysVal('TaskDurationType');
$tempoTask = new CTask();
$userAlloc = $tempoTask->getAllocation('user_id');
$fieldList = array();
$fieldNames = array();
$module = new w2p_Core_Module();
$fields = $module->loadSettings('projectdesigner', 'task_list_print');
if (count($fields) > 0) {
    $fieldList = array_keys($fields);
    $fieldNames = array_values($fields);
} 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('task_name', 'task_percent_complete', 'task_start_date', 'task_end_date', 'task_updated');
    $fieldNames = array('Task Name', 'Work', 'Start', 'Finish', 'Last Update');
    //$module->storeSettings('projectdesigner', 'task_list_print', $fieldList, $fieldNames);
}
echo '<table width="100%" border="0" cellpadding="1" cellspacing="3" class="prjprint tbl list"><tr class="prjprint">';
foreach ($fieldNames as $index => $name) {
    ?>
<th nowrap="nowrap">
示例#3
0
?>
</script>
<form name="frmDelete2" action="./index.php?m=tasks" method="post" accept-charset="utf-8">
	<input type="hidden" name="dosql" value="do_updatetask" />
	<input type="hidden" name="del" value="1" />
	<input type="hidden" name="task_log_id" value="0" />
</form>

<a name="task_logs-tasks_view"> </a>
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl list">
    <tr>
        <?php 
$fieldList = array();
$fieldNames = array();
$module = new w2p_Core_Module();
$fields = $module->loadSettings('tasks', 'task_logs_tasks_view');
if (count($fields) > 0) {
    $fieldList = array_keys($fields);
    $fieldNames = array_values($fields);
} 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('task_log_date', 'task_log_reference', 'task_log_name', 'task_log_related_url', 'task_log_creator', 'task_log_hours', 'task_log_costcode', 'task_log_description');
    $fieldNames = array('Date', 'Ref', 'Summary', 'URL', 'User', 'Hours', 'Cost Code', 'Comments', '');
    $module->storeSettings('tasks', 'task_logs_tasks_view', $fieldList, $fieldNames);
}
//TODO: The link below is commented out because this module doesn't support sorting... yet.
echo '<th></th>';
foreach ($fieldNames as $index => $name) {
    ?>
示例#4
0
}
$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($links);
$pageNav = buildPaginationNav($AppUI, $m, $tab, $xpg_totalrecs, $xpg_pagesize, $page);
echo $pageNav;
?>
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="tbl list">
    <tr>
        <?php 
$fieldList = array();
$fieldNames = array();
$module = new w2p_Core_Module();
$fields = $module->loadSettings('links', 'index_list');
if (count($fields) > 0) {
    $fieldList = array_keys($fields);
    $fieldNames = array_values($fields);
} 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('link_name', 'link_description', 'link_category', 'link_task', 'link_owner', 'link_date');
    $fieldNames = array('Link Name', 'Description', 'Category', 'Task Name', 'Owner', 'Date');
    $module->storeSettings('links', 'index_list', $fieldList, $fieldNames);
}
//TODO: The link below is commented out because this module doesn't support sorting... yet.
echo '<th></th>';
foreach ($fieldNames as $index => $name) {
    ?>
示例#5
0
        $project_status_filter = $projectStatuses[0] ? $currentTabId : $currentTabId + 1;
    }
    $xpg_totalrecs = count($projects);
    $xpg_pagesize = count($projects);
}
?>

<form action="./index.php" method="get" accept-charset="utf-8">

	<table id="tblProjects-list" width="100%" border="0" cellpadding="3" cellspacing="1" class="tbl list">
		<tr>
            <?php 
$fieldList = array();
$fieldNames = array();
$module = new w2p_Core_Module();
$fields = $module->loadSettings('projects', 'index_list');
if (count($fields) > 0) {
    $fieldList = array_keys($fields);
    $fieldNames = array_values($fields);
} else {
    // TODO: This is only in place to provide an pre-upgrade-safe
    //   state for versions earlier than v2.3
    //   At some point at/after v4.0, this should be deprecated
    $fieldList = array('project_color_identifier', 'project_priority', 'project_name', 'company_name', 'project_start_date', 'project_end_date', 'project_actual_end_date', 'task_log_problem', 'user_username', 'project_task_count');
    $fieldNames = array('Color', 'P', 'Project Name', 'Company', 'Start', 'End', 'Actual', 'LP', 'Owner', 'Tasks');
    $module = new w2p_Core_Module();
    $module->storeSettings('projects', 'index_list', $fieldList, $fieldNames);
}
foreach ($fieldNames as $index => $name) {
    ?>
<th nowrap="nowrap">
示例#6
0
    echo $forum_id;
    ?>
&post_message=1';" />
                <?php 
}
?>
                </td>
            </tr>
            </table>
        </td></tr>
        <tr>
            <?php 
$fieldList = array();
$fieldNames = array();
$module = new w2p_Core_Module();
$fields = $module->loadSettings('forums', 'view_topics');
if (count($fields) > 0) {
    $fieldList = array_keys($fields);
    $fieldNames = array_values($fields);
} 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('watch_user', 'message_name', 'message_author', 'replies', 'latest_reply');
    $fieldNames = array('Watch', 'Topics', 'Author', 'Replies', 'Last Post');
    $module->storeSettings('forums', 'view_topics', $fieldList, $fieldNames);
}
echo '<th></th>';
foreach ($fieldNames as $index => $name) {
    ?>
<th nowrap="nowrap">