本文整理汇总了PHP中w2PendTip函数 的典型用法代码示例。如果您正苦于以下问题:PHP w2PendTip函数的具体用法?PHP w2PendTip怎么用?PHP w2PendTip使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了w2PendTip函数 的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: getEventLinks
/**
* Sub-function to collect events within a period
* @param Date the starting date of the period
* @param Date the ending date of the period
* @param array by-ref an array of links to append new items to
* @param int the length to truncate entries by
* @author Andrew Eddie <[email protected] >
*/
function getEventLinks($startPeriod, $endPeriod, &$links, $strMaxLen, $minical = false)
{
global $event_filter;
$events = CEvent::getEventsForPeriod($startPeriod, $endPeriod, $event_filter);
$cwd = explode(',', w2PgetConfig('cal_working_days'));
// assemble the links for the events
foreach ($events as $row) {
$start = new CDate($row['event_start_date']);
$end = new CDate($row['event_end_date']);
$date = $start;
for ($i = 0, $i_cmp = $start->dateDiff($end); $i <= $i_cmp; $i++) {
// the link
// optionally do not show events on non-working days
if ($row['event_cwd'] && in_array($date->getDayOfWeek(), $cwd) || !$row['event_cwd']) {
if ($minical) {
$link = array();
} else {
$url = '?m=calendar&a=view&event_id=' . $row['event_id'];
$link['href'] = '';
$link['alt'] = '';
$link['text'] = w2PtoolTip($row['event_title'], getEventTooltip($row['event_id']), true) . w2PshowImage('event' . $row['event_type'] . '.png', 16, 16, '', '', 'calendar') . '</a> ' . '<a href="' . $url . '"><span class="event">' . $row['event_title'] . '</span></a>' . w2PendTip();
}
$links[$date->format(FMT_TIMESTAMP_DATE)][] = $link;
}
$date = $date->getNextDay();
}
}
}
开发者ID:joly, 项目名称:web2project, 代码行数:36, 代码来源:links_events.php
示例2: buildRow
public function buildRow($rowData, $customLookups = array())
{
if (!$this->showRow($rowData)) {
return '';
}
$this->stageRowData($rowData);
$class = w2pFindTaskComplete($rowData['task_start_date'], $rowData['task_end_date'], $rowData['task_percent_complete']);
$row = '<tr class="' . $class . '">';
$row .= $this->_buildCells(array('edit' => 'task_id', 'pin' => 'task_id', 'log' => 'task_id'));
foreach ($this->_fieldKeys as $column) {
if ('task_name' == $column) {
$prefix = $suffix = '';
if ($rowData['depth'] > 1) {
$prefix .= str_repeat(' ', ($rowData['depth'] - 1) * 4) . '<img src="' . w2PfindImage('corner-dots.gif') . '" />';
}
if ($rowData['children'] > 0) {
$prefix .= '<img src="' . w2PfindImage('icons/collapse.gif') . '" /> ';
}
if ('' != $rowData['task_description']) {
$prefix .= w2PtoolTip($this->_AppUI->_('Task Description'), $rowData['task_description']);
$suffix .= w2PendTip();
}
if ($rowData['task_milestone']) {
$suffix .= ' ' . '<img src="' . w2PfindImage('icons/milestone.gif') . '" />';
}
if (1 == $rowData['task_dynamic'] || $rowData['task_milestone']) {
$rowData[$column] = '<b>' . $rowData[$column] . '</b>';
}
$rowData[$column] = $prefix . $rowData[$column] . $suffix;
}
if ('task_assignees' == $column) {
$parsed = array();
$assignees = $this->task->assignees($rowData['task_id']);
foreach ($assignees as $assignee) {
$parsed[] = '<a href="?m=users&a=view&user_id=' . $assignee['user_id'] . '">' . $assignee['contact_name'] . '</a>';
}
$rowData[$column] = implode(', ', $parsed);
}
$row .= $this->createCell($column, $rowData[$column], $customLookups);
}
if ('projectdesigner' == $this->module) {
$row .= '<td class="data"><input type="checkbox" name="selected_task[]" value="' . $rowData['task_id'] . '"/></td>';
}
$row .= '</tr>';
return $row;
}
开发者ID:illuminate3, 项目名称:web2project, 代码行数:46, 代码来源:TaskTable.class.php
示例3: showtask
function showtask(&$arr, $level = 0, $is_opened = true, $today_view = false, $hideOpenCloseLink = false, $allowRepeat = false)
{
global $AppUI, $query_string, $durnTypes, $userAlloc, $showEditCheckbox;
global $m, $a, $history_active, $expanded;
//Check for Tasks Access
$canAccess = canTaskAccess($arr['task_id'], $arr['task_access'], $arr['task_owner']);
if (!$canAccess) {
return false;
}
$now = new CDate();
$tf = $AppUI->getPref('TIMEFORMAT');
$df = $AppUI->getPref('SHDATEFORMAT');
$perms =& $AppUI->acl();
$fdf = $df . ' ' . $tf;
$show_all_assignees = w2PgetConfig('show_all_task_assignees', false);
$start_date = intval($arr['task_start_date']) ? new CDate($arr['task_start_date']) : null;
$end_date = intval($arr['task_end_date']) ? new CDate($arr['task_end_date']) : null;
$last_update = isset($arr['last_update']) && intval($arr['last_update']) ? new CDate($arr['last_update']) : null;
// prepare coloured highlight of task time information
$sign = 1;
$style = '';
if ($start_date) {
if (!$end_date) {
/*
** end date calc has been moved to calcEndByStartAndDuration()-function
** called from array_csort and tasks.php
** perhaps this fallback if-clause could be deleted in the future,
** didn't want to remove it shortly before the 2.0.2
*/
$end_date = new CDate('0000-00-00 00:00:00');
}
if ($now->after($start_date) && $arr['task_percent_complete'] == 0) {
$style = 'background-color:#ffeebb';
} elseif ($now->after($start_date) && $arr['task_percent_complete'] < 100) {
$style = 'background-color:#e6eedd';
}
if ($now->after($end_date)) {
$sign = -1;
$style = 'background-color:#cc6666;color:#ffffff';
}
if ($arr['task_percent_complete'] == 100) {
$style = 'background-color:#aaddaa; color:#00000';
}
$days = $now->dateDiff($end_date) * $sign;
}
// $s = "\n<tr id=\"project_".$arr['task_project'].'_level>'.$level.'<task_'.$arr['task_id']."_\" ".((($level>0 && !($m=='tasks' && $a=='view')) || ($m=='tasks' && ($a=='' || $a=='index'))) ? 'style="display:none"' : '').'>';
if ($expanded) {
$s = '<tr id="project_' . $arr['task_project'] . '_level>' . $level . '<task_' . $arr['task_id'] . '_" >';
} else {
$s = '<tr id="project_' . $arr['task_project'] . '_level>' . $level . '<task_' . $arr['task_id'] . '_" ' . ($level > 0 && !($m == 'tasks' && $a == 'view') ? 'style="display:none"' : '') . '>';
}
// edit icon
$s .= '<td align="center">';
$canEdit = true;
$canViewLog = true;
if ($canEdit) {
$s .= w2PtoolTip('edit task', 'click to edit this task') . '<a href="?m=tasks&a=addedit&task_id=' . $arr['task_id'] . '">' . w2PshowImage('icons/pencil.gif', 12, 12) . '</a>' . w2PendTip();
}
$s .= '</td>';
// pinned
$pin_prefix = $arr['task_pinned'] ? '' : 'un';
$s .= '<td align="center"><a href="?m=tasks&pin=' . ($arr['task_pinned'] ? 0 : 1) . '&task_id=' . $arr['task_id'] . '">' . w2PtoolTip('Pin', 'pin/unpin task') . '<img src="' . w2PfindImage('icons/' . $pin_prefix . 'pin.gif') . '" border="0" />' . w2PendTip() . '</a></td>';
// New Log
if ($arr['task_log_problem'] > 0) {
$s .= '<td align="center" valign="middle"><a href="?m=tasks&a=view&task_id=' . $arr['task_id'] . '&tab=0&problem=1">' . w2PshowImage('icons/dialog-warning5.png', 16, 16, 'Problem', 'Problem!') . '</a></td>';
} elseif ($canViewLog && $arr['task_dynamic'] != 1) {
$s .= '<td align="center"><a href="?m=tasks&a=view&task_id=' . $arr['task_id'] . '&tab=1">' . w2PtoolTip('Add Log', 'create a new log record against this task') . w2PshowImage('edit_add.png') . w2PendTip() . '</a></td>';
} else {
$s .= '<td align="center">' . $AppUI->_('-') . '</td>';
}
// percent complete and priority
$s .= '<td align="right">' . intval($arr['task_percent_complete']) . '%</td><td align="center" nowrap="nowrap">';
if ($arr['task_priority'] < 0) {
$s .= '<img src="' . w2PfindImage('icons/priority-' . -$arr['task_priority'] . '.gif') . '" />';
} elseif ($arr['task_priority'] > 0) {
$s .= '<img src="' . w2PfindImage('icons/priority+' . $arr['task_priority'] . '.gif') . '" />';
}
$s .= ($arr['file_count'] > 0 ? '<img src="' . w2PfindImage('clip.png') . '" alt="F" />' : '') . '</td>';
// dots
$s .= '<td width="' . ($today_view ? '50%' : '90%') . '">';
//level
if ($level == -1) {
$s .= '...';
}
for ($y = 0; $y < $level; $y++) {
if ($y + 1 == $level) {
$s .= '<img src="' . w2PfindImage('corner-dots.gif') . '" width="16" height="12" border="0">';
} else {
$s .= '<img src="' . w2PfindImage('shim.gif') . '" width="16" height="12" border="0">';
}
}
if ($arr['task_description']) {
$s .= w2PtoolTip('Task Description', $arr['task_description'], true);
}
$open_link = '<a href="javascript: void(0);"><img onclick="expand_collapse(\'project_' . $arr['task_project'] . '_level>' . $level . '<task_' . $arr['task_id'] . '_\', \'tblProjects\',\'\',' . ($level + 1) . ');" id="project_' . $arr['task_project'] . '_level>' . $level . '<task_' . $arr['task_id'] . '__collapse" src="' . w2PfindImage('icons/collapse.gif') . '" border="0" align="center" ' . (!$expanded ? 'style="display:none"' : '') . ' /><img onclick="expand_collapse(\'project_' . $arr['task_project'] . '_level>' . $level . '<task_' . $arr['task_id'] . '_\', \'tblProjects\',\'\',' . ($level + 1) . ');" id="project_' . $arr['task_project'] . '_level>' . $level . '<task_' . $arr['task_id'] . '__expand" src="' . w2PfindImage('icons/expand.gif') . '" border="0" align="center" ' . ($expanded ? 'style="display:none"' : '') . ' /></a>';
if ($arr['task_nr_of_children']) {
$is_parent = true;
} else {
$is_parent = false;
}
//.........这里部分代码省略.........
开发者ID:joly, 项目名称:web2project, 代码行数:101, 代码来源:tasks.class.php
示例4: str_repeat
if (strpos($c['config_name'], '_pass') !== false) {
$c['config_type'] = 'password';
$value = str_repeat('x', strlen($value));
$entry = '<input class="text" type="password" name="w2Pcfg[' . $c['config_name'] . ']" value="' . $value . '" ' . $extra . ' onClick="document.getElementById(\'' . $c['config_name'] . '_mod\').value=\'1\';" />';
$entry .= '<input type="hidden" name="' . $c['config_name'] . '_mod" id="' . $c['config_name'] . '_mod" value="" />';
} else {
$entry = '<input class="text" type="' . $c['config_type'] . '" name="w2Pcfg[' . $c['config_name'] . ']" id="w2Pcfg[' . $c['config_name'] . ']" value="' . $value . '" ' . $extra . '/>';
}
break;
}
if ($c['config_group'] != $last_group) {
$output .= '<tr><td colspan="2"><b>' . $AppUI->_($c['config_group'] . '_group_title') . '</b></td></tr>';
$last_group = $c['config_group'];
}
$output .= '<tr>
<td class="item" width="20%"><a name="' . $c['config_name'] . '"> </a>' . $AppUI->_($c['config_name'] . '_title') . '</td>' . '<td align="left" width="5%">' . $entry . '<input class="button" type="hidden" name="w2PcfgId[' . $c['config_name'] . ']" value="' . $c['config_id'] . '" />' . '</td>' . '<td align="left" width="16">' . w2PtoolTip($AppUI->_($c['config_name'] . '_title'), $tooltip, true) . w2PshowImage('log-info.gif') . w2PendTip() . '</td>
<td align="left" width="100%"> </td>
</tr>';
}
?>
<form name="cfgFrm" action="index.php?m=system&a=systemconfig" method="post" accept-charset="utf-8">
<input type="hidden" name="dosql" value="do_systemconfig_aed" />
<table cellspacing="0" cellpadding="3" border="0" class="std" width="100%" align="center">
<tr><td colspan="4"><?php
echo $AppUI->_('syscfg_intro');
?>
</td></tr>
<?php
echo $output;
?>
<tr>
开发者ID:viniciusbudines, 项目名称:sisnuss, 代码行数:31, 代码来源:systemconfig.php
示例5: showtask_pd
function showtask_pd(&$a, $level = 0, $today_view = false)
{
global $AppUI, $w2Pconfig, $done, $query_string, $durnTypes, $userAlloc, $showEditCheckbox;
global $task_access, $task_priority, $PROJDESIGN_CONFIG, $m, $expanded;
$types = w2Pgetsysval('TaskType');
$now = new w2p_Utilities_Date();
$tf = $AppUI->getPref('TIMEFORMAT');
$df = $AppUI->getPref('SHDATEFORMAT');
$fdf = $df . ' ' . $tf;
$perms =& $AppUI->acl();
$show_all_assignees = $w2Pconfig['show_all_task_assignees'] ? true : false;
$done[] = $a['task_id'];
$start_date = intval($a['task_start_date']) ? new w2p_Utilities_Date($AppUI->formatTZAwareTime($a['task_start_date'], '%Y-%m-%d %T')) : null;
$end_date = intval($a['task_end_date']) ? new w2p_Utilities_Date($AppUI->formatTZAwareTime($a['task_end_date'], '%Y-%m-%d %T')) : null;
$last_update = isset($a['last_update']) && intval($a['last_update']) ? new w2p_Utilities_Date($AppUI->formatTZAwareTime($a['last_update'], '%Y-%m-%d %T')) : null;
// prepare coloured highlight of task time information
$sign = 1;
$style = '';
if ($start_date) {
if (!$end_date) {
$end_date = new w2p_Utilities_Date('0000-00-00 00:00:00');
}
if ($now->after($start_date) && $a['task_percent_complete'] == 0) {
$style = 'background-color:#ffeebb';
} elseif ($now->after($start_date) && $a['task_percent_complete'] < 100) {
$style = 'background-color:#e6eedd';
}
if ($now->after($end_date)) {
$sign = -1;
$style = 'background-color:#cc6666;color:#ffffff';
}
if ($a['task_percent_complete'] == 100) {
$style = 'background-color:#aaddaa; color:#00000';
}
$days = $now->dateDiff($end_date) * $sign;
}
$jsTaskId = 'task_proj_' . $a['task_project'] . '_level-' . $level . '-task_' . $a['task_id'] . '_';
if ($expanded) {
$s = '<tr id="' . $jsTaskId . '" onmouseover="highlight_tds(this, true, ' . $a['task_id'] . ')" onmouseout="highlight_tds(this, false, ' . $a['task_id'] . ')" onclick="select_box(\'selected_task\', \'' . $a['task_id'] . '\', \'' . $jsTaskId . '\',\'frm_tasks\')">';
// edit icon
} else {
$s = '<tr id="' . $jsTaskId . '" onmouseover="highlight_tds(this, true, ' . $a['task_id'] . ')" onmouseout="highlight_tds(this, false, ' . $a['task_id'] . ')" onclick="select_box(\'selected_task\', \'' . $a['task_id'] . '\', \'' . $jsTaskId . '\',\'frm_tasks\')" ' . ($level ? 'style="display:none"' : '') . '>';
// edit icon
}
$s .= '<td>';
$canEdit = $a['task_represents_project'] ? false : true;
$canViewLog = true;
if ($canEdit) {
$s .= '<a href="?m=tasks&a=addedit&task_id=' . $a['task_id'] . '">' . w2PtoolTip('edit tasks panel', 'click to edit this task') . w2PshowImage('icons/pencil.gif', 12, 12) . w2PendTip() . '</a>';
}
$s .= '</td>';
// percent complete
$s .= '<td align="right">' . (int) $a['task_percent_complete'] . '%</td>';
// priority
$s .= '<td align="center" nowrap="nowrap">';
if ($a['task_priority'] < 0) {
$s .= '<img src="' . w2PfindImage('icons/priority-' . -$a['task_priority'] . '.gif') . '" width="13" height="16" alt="" />';
} elseif ($a['task_priority'] > 0) {
$s .= '<img src="' . w2PfindImage('icons/priority+' . $a['task_priority'] . '.gif') . '" width="13" height="16" alt="" />';
}
$s .= '</td><td align="center" nowrap="nowrap">';
if ($a['user_task_priority'] < 0) {
$s .= '<img src="' . w2PfindImage('icons/priority-' . -$a['user_task_priority'] . '.gif') . '" alt="" />';
} elseif ($a['user_task_priority'] > 0) {
$s .= '<img src="' . w2PfindImage('icons/priority+' . $a['user_task_priority'] . '.gif') . '" alt="" />';
}
$s .= '</td>';
// access
$s .= '<td nowrap="nowrap">';
$s .= mb_substr($task_access[$a['task_access']], 0, 3);
$s .= '</td>';
// type
$s .= '<td nowrap="nowrap">';
$s .= mb_substr($types[$a['task_type']], 0, 3);
$s .= '</td>';
// type
$s .= '<td nowrap="nowrap">';
$s .= $a['queue_id'] ? 'Yes' : '';
$s .= '</td>';
// inactive
$s .= '<td nowrap="nowrap">';
$s .= $a['task_status'] == '-1' ? 'Yes' : '';
$s .= '</td>';
// add log
$s .= '<td align="center" nowrap="nowrap">';
if ($a['task_dynamic'] != 1 && 0 == $a['task_represents_project']) {
$s .= '<a href="?m=tasks&a=view&tab=1&project_id=' . $a['task_project'] . '&task_id=' . $a['task_id'] . '">' . w2PtoolTip('tasks', 'add work log to this task') . w2PshowImage('edit_add.png') . w2PendTip() . '</a>';
}
$s .= '</td>';
// dots
if ($today_view) {
$s .= '<td>';
} else {
$s .= '<td width="20%">';
}
for ($y = 0; $y < $level; $y++) {
if ($y + 1 == $level) {
$image = w2PfindImage('corner-dots.gif', $m);
} else {
$image = w2PfindImage('shim.gif', $m);
//.........这里部分代码省略.........
开发者ID:viniciusbudines, 项目名称:sisnuss, 代码行数:101, 代码来源:cleanup_functions.php
示例6: foreach
</tr>
<?php
// do the modules that are installed on the system
foreach ($modules as $row) {
// clear the file system entry
if (isset($modFiles[$row['mod_directory']])) {
$modFiles[$row['mod_directory']] = '';
}
$query_string = '?m=' . $m . '&a=domodsql&mod_id=' . $row['mod_id'];
$s = '';
$s .= '<td width="64" align="center">';
if ($canEdit) {
$s .= w2PtoolTip('', 'Move to First') . '<a href="' . $query_string . '&cmd=movefirst"><img src="' . w2PfindImage('icons/2uparrow.png') . '" border="0" alt=""/></a>' . w2PendTip();
$s .= w2PtoolTip('', 'Move Up') . '<a href="' . $query_string . '&cmd=moveup"><img src="' . w2PfindImage('icons/1uparrow.png') . '" border="0" alt=""/></a>' . w2PendTip();
$s .= w2PtoolTip('', 'Move Down') . '<a href="' . $query_string . '&cmd=movedn"><img src="' . w2PfindImage('icons/1downarrow.png') . '" border="0" alt=""/></a>' . w2PendTip();
$s .= w2PtoolTip('', 'Move to Last') . '<a href="' . $query_string . '&cmd=movelast"><img src="' . w2PfindImage('icons/2downarrow.png') . '" border="0" alt=""/></a>' . w2PendTip();
}
$s .= '</td>';
$s .= '<td width="1%" nowrap="nowrap">' . $AppUI->_($row['mod_name']) . '</td>';
$s .= '<td>';
$s .= '<img src="' . w2PfindImage('obj/dot' . ($row['mod_active'] ? 'green' : 'yellowanim') . '.gif') . '" alt="" /> ';
if ($canEdit) {
$s .= '<a href="' . $query_string . '&cmd=toggle&">';
}
$s .= $row['mod_active'] ? $AppUI->_('active') : $AppUI->_('disabled');
if ($canEdit) {
$s .= '</a>';
}
if ($row['mod_type'] != 'core' && $canEdit) {
$s .= ' | <a href="' . $query_string . '&cmd=remove" onclick="return window.confirm(' . "'" . $AppUI->_('This will delete all data associated with the module!') . "\\n\\n" . $AppUI->_('Are you sure?') . "\\n" . "'" . ');">' . $AppUI->_('remove') . '</a>';
}
开发者ID:eureka2, 项目名称:web2project, 代码行数:31, 代码来源:viewmods.php
示例7: showtask_pd_ed
function showtask_pd_ed(&$arr, $level = 0, $today_view = false)
{
global $AppUI, $w2Pconfig, $done, $userAlloc, $showEditCheckbox;
global $task_access, $PROJDESIGN_CONFIG, $m, $expanded;
$durnTypes = w2PgetSysVal('TaskDurationType');
//Check for Tasks Access
$tmpTask = new CTask();
$tmpTask->load($arr['task_id']);
$canAccess = $tmpTask->canAccess();
if (!$canAccess) {
return false;
}
$htmlHelper = new w2p_Output_HTMLHelper($AppUI);
$htmlHelper->df .= ' ' . $AppUI->getPref('TIMEFORMAT');
$htmlHelper->stageRowData($arr);
$types = w2Pgetsysval('TaskType');
$show_all_assignees = $w2Pconfig['show_all_task_assignees'] ? true : false;
$done[] = $arr['task_id'];
// prepare coloured highlight of task time information
$class = w2pFindTaskComplete($arr['task_start_date'], $arr['task_end_date'], $arr['task_percent_complete']);
$jsTaskId = 'task_proj_' . $arr['task_project'] . '_level-' . $level . '-task_' . $arr['task_id'] . '_';
if ($expanded) {
$s = '<tr id="' . $jsTaskId . '" class="' . $class . '" onclick="select_row(\'selected_task\', \'' . $arr['task_id'] . '\', \'frm_tasks\')">';
// edit icon
} else {
$s = '<tr id="' . $jsTaskId . '" class="' . $class . '" onclick="select_row(\'selected_task\', \'' . $arr['task_id'] . '\', \'frm_tasks\')" ' . ($level ? 'style="display:none"' : '') . '>';
// edit icon
}
$s .= '<td class="data _edit">';
$canEdit = $arr['task_represents_project'] ? false : true;
if ($canEdit) {
$s .= '<a href="?m=tasks&a=addedit&task_id=' . $arr['task_id'] . '">' . w2PshowImage('icons/pencil.gif', 12, 12) . '</a>';
}
$s .= '</td>';
$s .= $htmlHelper->createCell('task_percent_complete', $arr['task_percent_complete']);
$s .= $htmlHelper->createCell('task_priority', $arr['task_priority']);
$s .= $htmlHelper->createCell('user_task_priority', $arr['user_task_priority']);
$s .= $htmlHelper->createCell('other', mb_substr($task_access[$arr['task_access']], 0, 3));
$s .= $htmlHelper->createCell('other', mb_substr($types[$arr['task_type']], 0, 3));
// reminders set
$s .= $htmlHelper->createCell('other', $arr['queue_id'] ? 'Yes' : '');
$s .= $htmlHelper->createCell('other', $arr['task_status'] == -1 ? 'Yes' : '');
// add log
$s .= '<td align="center" nowrap="nowrap">';
if ($arr['task_dynamic'] != 1 && 0 == $arr['task_represents_project']) {
$s .= '<a href="?m=tasks&a=view&tab=1&project_id=' . $arr['task_project'] . '&task_id=' . $arr['task_id'] . '">' . w2PtoolTip('tasks', 'add work log to this task') . w2PshowImage('edit_add.png') . w2PendTip() . '</a>';
}
$s .= '</td>';
// dots
$s .= '<td style="width: ' . ($today_view ? '20%' : '50%') . '" class="data _name">';
for ($y = 0; $y < $level; $y++) {
if ($y + 1 == $level) {
$image = w2PfindImage('corner-dots.gif', $m);
} else {
$image = w2PfindImage('shim.gif', $m);
}
$s .= '<img src="' . $image . '" width="16" height="12" border="0" alt="" />';
}
// name link
if ($arr['task_description']) {
$s .= w2PtoolTip('Task Description', $arr['task_description'], true);
}
$jsTaskId = 'task_proj_' . $arr['task_project'] . '_level-' . $level . '-task_' . $arr['task_id'] . '_';
$open_link = '<a href="javascript: void(0);" onclick="selected_task_' . $arr['task_id'] . '.checked=true"><img onclick="expand_collapse(\'' . $jsTaskId . '\', \'tblProjects\',\'\',' . ($level + 1) . ');" id="' . $jsTaskId . '_collapse" src="' . w2PfindImage('icons/collapse.gif', $m) . '" border="0" align="center" ' . (!$expanded ? 'style="display:none"' : '') . ' alt="" /><img onclick="expand_collapse(\'' . $jsTaskId . '\', \'tblProjects\',\'\',' . ($level + 1) . ');" id="' . $jsTaskId . '_expand" src="' . w2PfindImage('icons/expand.gif', $m) . '" border="0" align="center" ' . ($expanded ? 'style="display:none"' : '') . ' alt="" /></a>';
$taskObj = new CTask();
$taskObj->load($arr['task_id']);
if (count($taskObj->getChildren())) {
$is_parent = true;
} else {
$is_parent = false;
}
if ($arr['task_milestone'] > 0) {
$s .= ' <a href="./index.php?m=tasks&a=view&task_id=' . $arr['task_id'] . '" ><b>' . $arr['task_name'] . '</b></a> <img src="' . w2PfindImage('icons/milestone.gif', $m) . '" border="0" alt="" /></td>';
} elseif ($arr['task_dynamic'] == '1' || $is_parent) {
$s .= $open_link;
if ($arr['task_dynamic'] == '1') {
$s .= ' <a href="./index.php?m=tasks&a=view&task_id=' . $arr['task_id'] . '" ><b><i>' . $arr['task_name'] . '</i></b></a></td>';
} else {
$s .= ' <a href="./index.php?m=tasks&a=view&task_id=' . $arr['task_id'] . '" >' . $arr['task_name'] . '</a></td>';
}
} else {
$s .= ' <a href="./index.php?m=tasks&a=view&task_id=' . $arr['task_id'] . '" >' . $arr['task_name'] . '</a></td>';
}
if ($arr['task_description']) {
$s .= w2PendTip();
}
// task description
if ($PROJDESIGN_CONFIG['show_task_descriptions']) {
$s .= '<td align="justified">' . $arr['task_description'] . '</td>';
}
// task owner
$s .= $htmlHelper->createCell('task_owner', $arr['contact_name']);
$s .= $htmlHelper->createCell('task_start_datetime', $arr['task_start_date']);
// duration or milestone
$s .= $htmlHelper->createCell('task_duration', $arr['task_duration'] . ' ' . mb_substr($AppUI->_($durnTypes[$arr['task_duration_type']]), 0, 1));
$s .= $htmlHelper->createCell('task_end_datetime', $arr['task_end_date']);
if (isset($arr['task_assigned_users']) && ($assigned_users = $arr['task_assigned_users'])) {
$a_u_tmp_array = array();
if ($show_all_assignees) {
$s .= '<td align="left">';
//.........这里部分代码省略.........
开发者ID:caseysoftware, 项目名称:web2project-planner, 代码行数:101, 代码来源:vw_project_tools.php
示例8: count
$html .= '<td width="1%" align="right" nowrap="nowrap">' . ($this_day->getMinute() ? $tm : '<b>' . $tm . '</b>') . '</td>';
$timeStamp = $this_day->format('%H%M%S');
if (isset($events2[$timeStamp])) {
$count = count($events2[$timeStamp]);
for ($j = 0; $j < $count; $j++) {
$row = $events2[$timeStamp][$j];
$et = new CDate($row['event_end_date']);
$rows = ($et->getHour() * 60 + $et->getMinute() - ($this_day->getHour() * 60 + $this_day->getMinute())) / $inc;
$href = '?m=calendar&a=view&event_id=' . $row['event_id'];
$alt = $row['event_description'];
$html .= '<td class="event" rowspan="' . $rows . '" valign="top">';
$html .= '<table cellspacing="0" cellpadding="0" border="0"><tr>';
$html .= '<td>' . w2PshowImage('event' . $row['event_type'] . '.png', 16, 16, '', '', 'calendar');
$html .= '</td><td> <b>' . $AppUI->_($types[$row['event_type']]) . '</b></td></tr></table>';
$html .= w2PtoolTip($row['event_title'], getEventTooltip($row['event_id']), true);
$html .= $href ? '<a href="' . $href . '" class="event">' : '';
$html .= $row['event_title'];
$html .= $href ? '</a>' : '';
$html .= w2PendTip();
$html .= '</td>';
}
} else {
if (--$rows <= 0) {
$html .= '<td></td>';
}
}
$html .= '</tr>';
$this_day->addSeconds(60 * $inc);
}
$html .= '</table>';
echo $html;
开发者ID:joly, 项目名称:web2project, 代码行数:31, 代码来源:vw_day_events.php
示例9: str_repeat
if ($level) {
$s .= str_repeat(' ', $level - 1);
$s .= '<img src="' . w2PfindImage('corner-dots.gif') . '" width="16" height="12" border="0"> ';
$s .= '<a href="./index.php?m=projects&a=view&project_id=' . $row["project_id"] . '">';
$s .= nl2br($row['project_description']) ? w2PtoolTip($row['project_name'], nl2br($row['project_description']), true) : w2PtoolTip($row['project_name'], $AppUI->_('No information available'), true);
$s .= $row["project_name"] . (nl2br($row['project_description']) ? w2PendTip() : '') . '</a>';
} elseif ($count_projects > 0 && !$level) {
$s .= w2PtoolTip($row["project_name"], nl2br($row['project_description']) . '<br />' . '<i>' . $AppUI->_('this project is a parent on a multi-project structure') . '</i><br />' . '<i>' . $AppUI->_('click to show/hide its children') . '</i>');
$s .= '<a href="javascript: void(0);" onclick="expand_collapse(\'multiproject_tr_' . $row["project_id"] . '_\', \'tblProjects\')">';
$s .= '<img id="multiproject_tr_' . $row["project_id"] . '__expand" src="' . w2PfindImage('icons/expand.gif') . '" width="12" height="12" border="0">';
$s .= '<img id="multiproject_tr_' . $row["project_id"] . '__collapse" src="' . w2PfindImage('icons/collapse.gif') . '" width="12" height="12" border="0" style="display:none"></a> ';
$s .= '<a href="./index.php?m=projects&a=view&project_id=' . $row["project_id"] . '">' . (nl2br($row['project_description']) ? w2PtoolTip($row['project_name'], nl2br($row['project_description']), true) : '') . $row['project_name'] . (nl2br($row['project_description']) ? w2PendTip() : '') . '</a>' . w2PendTip();
} else {
$s .= '<a href="./index.php?m=projects&a=view&project_id=' . $row["project_id"] . '">';
$s .= nl2br($row['project_description']) ? w2PtoolTip($row['project_name'], nl2br($row['project_description']), true) : w2PtoolTip($row['project_name'], $AppUI->_('No information available'), true);
$s .= $row["project_name"] . (nl2br($row['project_description']) ? w2PendTip() : '') . '</a>';
}
$s .= '</td><td width="30%"><a href="?m=companies&a=view&company_id=' . $row['project_company'] . '" ><span title="' . (nl2br(htmlspecialchars($row['company_description'])) ? htmlspecialchars($row['company_name'], ENT_QUOTES) . '::' . nl2br(htmlspecialchars($row['company_description'])) : '') . '" >' . htmlspecialchars($row['company_name'], ENT_QUOTES) . '</span></a></td>';
$s .= '<td nowrap="nowrap" align="center">' . ($start_date ? $start_date->format($df) : '-') . '</td>';
$s .= '<td nowrap="nowrap" align="center">' . ($end_date ? $end_date->format($df) : '-') . '</td>';
$s .= '<td nowrap="nowrap" align="center">';
$s .= $actual_end_date ? '<a href="?m=tasks&a=view&task_id=' . $row['critical_task'] . '">' : '';
$s .= $actual_end_date ? '<span ' . $style . '>' . $actual_end_date->format($df) . '</span>' : '-';
$s .= $actual_end_date ? '</a>' : '';
$s .= '</td><td align="center">';
$s .= $row['task_log_problem'] ? '<a href="?m=tasks&a=index&f=all&project_id=' . $row['project_id'] . '">' : '';
$s .= $row['task_log_problem'] ? w2PshowImage('icons/dialog-warning5.png', 16, 16, 'Problem', 'Problem') : '-';
$s .= $row['task_log_problem'] ? '</a>' : '';
$s .= '</td><td nowrap="nowrap">' . htmlspecialchars($row['owner_name'], ENT_QUOTES) . '</td><td align="center" nowrap="nowrap">';
$s .= $row['project_task_count'] . ($row['my_tasks'] ? ' (' . $row['my_tasks'] . ')' : '');
$s .= '</td><td align="center"><input type="checkbox" name="project_id[]" value="' . $row['project_id'] . '" /></td>';
开发者ID:joly, 项目名称:web2project, 代码行数:31, 代码来源:vw_idx_projects.php
示例10: w2PtoolTip
$extra = $c['config_value'] == 'true' ? 'checked="checked"' : '';
$value = 'true';
// allow to fallthrough
// allow to fallthrough
default:
if (!$value) {
$value = $c['config_value'];
}
$entry = '<input class="text" type="' . $c['config_type'] . '" name="w2Pcfg[' . $c['config_name'] . ']" value="' . $value . '" ' . $extra . '/>';
break;
}
if ($c['config_group'] != $last_group) {
$output .= '<tr><td colspan="2"><b>' . $AppUI->_($c['config_group'] . '_group_title') . '</b></td></tr>';
$last_group = $c['config_group'];
}
$output .= '<tr><td class="item" width="20%">' . $AppUI->_($c['config_name'] . '_title') . '</td><td align="left">' . $entry . w2PtoolTip($AppUI->_($c['config_name'] . '_title'), $tooltip, true) . w2PshowImage('log-info.gif') . w2PendTip() . '
<input class="button" type="hidden" name="w2PcfgId[' . $c['config_name'] . ']" value="' . $c['config_id'] . '" />
</td>
</tr>
';
}
?>
<form name="cfgFrm" action="index.php?m=system&a=systemconfig" method="post" accept-charset="utf-8">
<input type="hidden" name="dosql" value="do_systemconfig_aed" />
<table cellspacing="0" cellpadding="3" border="0" class="std" width="100%" align="center">
<tr><td colspan="2"><?php
echo $AppUI->_('syscfg_intro');
?>
</td></tr>
<?php
echo $output;
开发者ID:joly, 项目名称:web2project, 代码行数:31, 代码来源:systemconfig.php
示例11: w2PtoolTip
</tr>
<?php
}
?>
</table>
</td>
</tr>
<?php
//lets add the subprojects table
$canReadMultiProjects = $perms->checkModule('admin', 'view');
if ($project->hasChildProjects() && $canReadMultiProjects) {
?>
<tr>
<td colspan="2">
<?php
echo w2PtoolTip('Multiproject', 'Click to Show/Hide Structure', true) . '<a href="javascript: void(0);" onclick="expand_collapse(\'multiproject\', \'tblProjects\')"><img id="multiproject_expand" src="' . w2PfindImage('icons/expand.gif') . '" width="12" height="12" border="0"><img id="multiproject_collapse" src="' . w2PfindImage('icons/collapse.gif') . '" width="12" height="12" border="0" style="display:none"></a> ' . w2PendTip();
echo '<strong>' . $AppUI->_('This Project is Part of the Following Multi-Project Structure') . ':<strong>';
?>
</td>
</tr>
<tr id="multiproject" style="visibility:collapse;display:none;">
<td colspan="2" class="hilite">
<?php
require w2PgetConfig('root_dir') . '/modules/projects/vw_sub_projects.php';
?>
</td>
</tr>
<?php
}
//here finishes the subproject structure
?>
开发者ID:joly, 项目名称:web2project, 代码行数:31, 代码来源:view.php
示例12: array
$fieldNames = array('Company Name', 'Active Projects', 'Archived Projects', 'Type');
foreach ($fieldNames as $index => $name) {
?>
<th nowrap="nowrap">
<a href="?m=companies&orderby=<?php
echo $fieldList[$index];
?>
" class="hdr">
<?php
echo $AppUI->_($fieldNames[$index]);
?>
</a>
</th><?php
}
?>
</tr>
<?php
if (count($companyList) > 0) {
foreach ($companyList as $company) {
echo '<tr>';
echo '<td>' . (mb_trim($company['company_description']) ? w2PtoolTip($company['company_name'], $company['company_description']) : '') . '<a href="./index.php?m=companies&a=view&company_id=' . $company['company_id'] . '" >' . $company['company_name'] . '</a>' . (mb_trim($company['company_description']) ? w2PendTip() : '') . '</td>';
echo '<td width="125" align="right" nowrap="nowrap">' . $company['countp'] . '</td>';
echo '<td width="125" align="right" nowrap="nowrap">' . $company['inactive'] . '</td>';
echo '<td align="left" nowrap="nowrap">' . $AppUI->_($types[$company['company_type']]) . '</td>';
echo '</tr>';
}
} else {
echo '<tr><td colspan="5">' . $AppUI->_('No companies available') . '</td></tr>';
}
?>
</table>
开发者ID:viniciusbudines, 项目名称:sisnuss, 代码行数:31, 代码来源:vw_companies.php
示例13: getTaskLinks
/**
* Sub-function to collect tasks within a period
*
* @param Date the starting date of the period
* @param Date the ending date of the period
* @param array by-ref an array of links to append new items to
* @param int the length to truncate entries by
* @param int the company id to filter by
* @author Andrew Eddie <[email protected] >
*/
function getTaskLinks($startPeriod, $endPeriod, &$links, $strMaxLen, $company_id = 0, $minical = false)
{
global $a, $AppUI, $w2Pconfig;
$tasks = CTask::getTasksForPeriod($startPeriod, $endPeriod, $company_id, 0);
$df = $AppUI->getPref('SHDATEFORMAT');
$tf = $AppUI->getPref('TIMEFORMAT');
//subtract one second so we don't have to compare the start dates for exact matches with the startPeriod which is 00:00 of a given day.
$startPeriod->subtractSeconds(1);
$link = array();
$sid = 3600 * 24;
// assemble the links for the tasks
foreach ($tasks as $row) {
// the link
$link['task'] = true;
if (!$minical) {
$link['href'] = '?m=tasks&a=view&task_id=' . $row['task_id'];
// the link text
if (mb_strlen($row['task_name']) > $strMaxLen) {
$row['short_name'] = mb_substr($row['task_name'], 0, $strMaxLen) . '...';
} else {
$row['short_name'] = $row['task_name'];
}
$link['text'] = '<span style="color:' . bestColor($row['color']) . ';background-color:#' . $row['color'] . '">' . $row['short_name'] . ($row['task_milestone'] ? ' ' . w2PshowImage('icons/milestone.gif') : '') . '</span>';
}
// determine which day(s) to display the task
$start = new w2p_Utilities_Date($AppUI->formatTZAwareTime($row['task_start_date'], '%Y-%m-%d %T'));
$end = $row['task_end_date'] ? new w2p_Utilities_Date($AppUI->formatTZAwareTime($row['task_end_date'], '%Y-%m-%d %T')) : null;
// First we test if the Tasks Starts and Ends are on the same day, if so we don't need to go any further.
if ($start->after($startPeriod) && ($end && $end->after($startPeriod) && $end->before($endPeriod) && !$start->dateDiff($end))) {
if ($minical) {
$temp = array('task' => true);
} else {
$temp = $link;
if ($a != 'day_view') {
$temp['text'] = w2PtoolTip($row['task_name'], getTaskTooltip($row['task_id'], true, true, $tasks), true) . w2PshowImage('block-start-16.png') . $start->format($tf) . ' ' . $temp['text'] . ' ' . $end->format($tf) . w2PshowImage('block-end-16.png') . w2PendTip();
$temp['text'] .= '<a href="?m=tasks&a=view&task_id=' . $row['task_id'] . '&tab=1&date=' . $AppUI->formatTZAwareTime($row['task_end_date'], '%Y%m%d') . '">' . w2PtoolTip('Add Log', 'create a new log record against this task') . w2PshowImage('edit_add.png') . w2PendTip() . '</a>';
}
}
$links[$end->format(FMT_TIMESTAMP_DATE)][] = $temp;
} else {
// If they aren't, we will now need to see if the Tasks Start date is between the requested period
if ($start->after($startPeriod) && $start->before($endPeriod)) {
if ($minical) {
$temp = array('task' => true);
} else {
$temp = $link;
if ($a != 'day_view') {
$temp['text'] = w2PtoolTip($row['task_name'], getTaskTooltip($row['task_id'], true, false, $tasks), true) . w2PshowImage('block-start-16.png') . $start->format($tf) . ' ' . $temp['text'] . w2PendTip();
$temp['text'] .= '<a href="?m=tasks&a=view&task_id=' . $row['task_id'] . '&tab=1&date=' . $AppUI->formatTZAwareTime($row['task_start_date'], '%Y%m%d') . '">' . w2PtoolTip('Add Log', 'create a new log record against this task') . w2PshowImage('edit_add.png') . w2PendTip() . '</a>';
}
}
$links[$start->format(FMT_TIMESTAMP_DATE)][] = $temp;
}
// And now the Tasks End date is checked if it is between the requested period too.
if ($end && $end->after($startPeriod) && $end->before($endPeriod) && $start->before($end)) {
if ($minical) {
$temp = array('task' => true);
} else {
$temp = $link;
if ($a != 'day_view') {
$temp['text'] = w2PtoolTip($row['task_name'], getTaskTooltip($row['task_id'], false, true, $tasks), true) . ' ' . $temp['text'] . ' ' . $end->format($tf) . w2PshowImage('block-end-16.png') . w2PendTip();
$temp['text'] .= '<a href="?m=tasks&a=view&task_id=' . $row['task_id'] . '&tab=1&date=' . $AppUI->formatTZAwareTime($row['task_end_date'], '%Y%m%d') . '">' . w2PtoolTip('Add Log', 'create a new log record against this task') . w2PshowImage('edit_add.png') . w2PendTip() . '</a>';
}
}
$links[$end->format(FMT_TIMESTAMP_DATE)][] = $temp;
}
}
}
}
开发者ID:eureka2, 项目名称:web2project, 代码行数:79, 代码来源:links_tasks.php
NanoMichael/MicroTeX: A dynamic, cross-platform, and embeddable LaTeX rendering
阅读:882| 2022-08-12
bradtraversy/iweather: Ionic 3 mobile weather app
阅读:1583| 2022-08-30
joaomh/curso-de-matlab
阅读:1147| 2022-08-17
魔兽世界怀旧服已经开启两个多月了,但作为一个猎人玩家,抓到“断牙”,已经成为了一
阅读:1001| 2022-11-06
rugk/mastodon-simplified-federation: Simplifies following and interacting with r
阅读:1079| 2022-08-17
An issue was discovered in Inductive Automation Ignition before 7.9.20 and 8.x b
阅读:916| 2022-07-29
Tangshitao/Dense-Scene-Matching: Learning Camera Localization via Dense Scene Ma
阅读:759| 2022-08-16
json4s/json4s: JSON library
阅读:775| 2022-08-15
相信不少果粉在对自己的设备进行某些操作时,都会碰到Respring,但这个 Respring 到底
阅读:361| 2022-11-06
lightningtgc/MProgress.js: Material Progress —Google Material Design Progress l
阅读:405| 2022-08-17
请发表评论