Esempio n. 1
0
    <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) {
    ?>
<th nowrap="nowrap">
<!--                <a href="?m=projects&a=view&project_id=<?php 
    echo $project_id;
    ?>
&sort=<?php 
    echo $fieldList[$index];
    ?>
#task_logs-tasks_view" class="hdr">-->
                    <?php 
    echo $AppUI->_($fieldNames[$index]);
Esempio n. 2
0
            <?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">
                    <a href="?m=projects&orderby=<?php 
    echo $fieldList[$index];
    ?>
" class="hdr">
                        <?php 
    echo $AppUI->_($fieldNames[$index]);
    ?>
                    </a>
                </th><?php 
}
?>
Esempio n. 3
0
    <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) {
    ?>
<th nowrap="nowrap">
<!--                <a href="?m=links&orderby=<?php 
    echo $fieldList[$index];
    ?>
" class="hdr">-->
                    <?php 
    echo $AppUI->_($fieldNames[$index]);
    ?>
<!--                </a>-->
            </th><?php 
Esempio n. 4
0
        <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">
                    <a href="?m=forums&a=viewer&forum_id=<?php 
    echo $forum_id;
    ?>
&orderby=<?php 
    echo $fieldList[$index];
    ?>
" class="hdr">
                        <?php 
    echo $AppUI->_($fieldNames[$index]);
    ?>