本文整理汇总了PHP中w2PfindImage函数的典型用法代码示例。如果您正苦于以下问题:PHP w2PfindImage函数的具体用法?PHP w2PfindImage怎么用?PHP w2PfindImage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了w2PfindImage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showRow
function showRow($id = 0, $name = '', $label = '')
{
global $canEdit, $syskey_id, $CR, $AppUI;
$s = '';
if ($syskey_id == $id && $canEdit) {
$s .= '<form name="sysKeyFrm" method="post" action="?m=system&u=syskeys&a=do_syskey_aed" accept-charset="utf-8">';
$s .= '<input type="hidden" name="del" value="0" />';
$s .= '<input type="hidden" name="syskey_id" value="' . $id . '" />';
$s .= '<tr>';
$s .= '<td> </td>';
$s .= '<td><input type="text" name="syskey_name" value="' . $name . '" class="text" /></td>';
$s .= '<td><textarea name="syskey_label" class="small" rows="2" cols="40">' . $label . '</textarea></td>';
$s .= '<td><input type="submit" value="' . $AppUI->_($id ? 'edit' : 'add') . '" class="button" /></td>';
$s .= '<td> </td>';
} else {
$s .= '<tr>';
$s .= '<td width="12">';
if ($canEdit) {
$s .= '<a href="?m=system&u=syskeys&a=keys&syskey_id=' . $id . '"><img src="' . w2PfindImage('icons/pencil.gif') . '" alt="edit" border="0"></a>';
$s .= '</td>' . $CR;
}
$s .= '<td>' . $name . '</td>' . $CR;
$s .= '<td colspan="2">' . $label . '</td>' . $CR;
$s .= '<td width="16">';
if ($canEdit) {
$s .= '<a href="javascript:delIt(' . $id . ')"><img align="absmiddle" src="' . w2PfindImage('icons/trash.gif') . '" width="16" height="16" alt="' . $AppUI->_('delete') . '" border="0"></a>';
}
$s .= '</td>' . $CR;
}
$s .= '</tr>' . $CR;
return $s;
}
示例2: showAddress
public function showAddress($name, $object)
{
$countries = w2PgetSysVal('GlobalCountries');
$output = '<div style="margin-left: 11em;">';
$output .= '<a href="http://maps.google.com/maps?q=' . $object->{$name . '_address1'} . '+' . $object->{$name . '_address2'} . '+' . $object->{$name . '_city'} . '+' . $object->{$name . '_state'} . '+' . $object->{$name . '_zip'} . '+' . $object->{$name . '_country'} . '" target="_blank">';
$output .= '<img src="' . w2PfindImage('googlemaps.gif') . '" class="right" alt="Find It on Google" />';
$output .= '</a>';
$output .= $object->{$name . '_address1'} . ($object->{$name . '_address2'} ? '<br />' . $object->{$name . '_address2'} : '') . ($object->{$name . '_city'} ? '<br />' . $object->{$name . '_city'} : '') . ($object->{$name . '_state'} ? ' ' . $object->{$name . '_state'} : '') . ($object->{$name . '_zip'} ? ', ' . $object->{$name . '_zip'} : '') . ($object->{$name . '_country'} ? '<br />' . $countries[$object->{$name . '_country'}] : '');
$output .= '</div>';
echo $output;
}
示例3: 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;
}
示例4: showchilddept_comp
function showchilddept_comp(&$a, $level = 0)
{
global $AppUI;
$s = '
<td>
<a href="./index.php?m=departments&a=addedit&dept_id=' . $a["dept_id"] . '" title="' . $AppUI->_('edit') . '">
' . w2PshowImage('icons/stock_edit-16.png', 16, 16, '') . '
</td>
<td>';
for ($y = 0; $y < $level; $y++) {
if ($y + 1 == $level) {
$s .= '<img src="' . w2PfindImage('corner-dots.gif') . '" width="16" height="12" border="0" alt="">';
} else {
$s .= '<img src="' . w2PfindImage('shim.gif') . '" width="16" height="12" border="0" alt="">';
}
}
$s .= '<a href="./index.php?m=departments&a=view&dept_id=' . $a['dept_id'] . '">' . $a['dept_name'] . '</a>';
$s .= '</td>';
$s .= '<td align="center">' . ($a['dept_users'] ? $a['dept_users'] : '') . '</td>';
echo '<tr>' . $s . '</tr>';
}
示例5: showcodes
function showcodes(&$a)
{
global $AppUI, $company_id;
$alt = htmlspecialchars($a['billingcode_desc']);
$s = '
<tr>
<td width=40>
<a href="?m=system&a=billingcode&company_id=' . $company_id . '&billingcode_id=' . $a['billingcode_id'] . '" title="' . $AppUI->_('edit') . '">
<img src="' . w2PfindImage('icons/stock_edit-16.png') . '" border="0" alt="Edit" /></a>';
if ($a['billingcode_status'] == 0) {
$s .= '<a href="javascript:delIt2(' . $a['billingcode_id'] . ');" title="' . $AppUI->_('delete') . '">
<img src="' . w2PfindImage('icons/stock_delete-16.png') . '" border="0" alt="Delete" /></a>';
}
$s .= '
</td>
<td align="left"> ' . $a['billingcode_name'] . ($a['billingcode_status'] == 1 ? ' (deleted)' : '') . '</td>
<td nowrap="nowrap" align="center">' . $a['billingcode_value'] . '</td>
<td nowrap="nowrap">' . $a['billingcode_desc'] . '</td>
</tr>';
echo $s;
}
示例6: foreach
$s .= $row['mod_ui_active'] ? $AppUI->_('visible') : $AppUI->_('hidden');
if ($canEdit) {
$s .= '</a>';
}
$s .= '</td>';
$s .= '<td align="right">' . $row['mod_ui_order'] . '</td>';
echo '<tr>' . $s . '</tr>';
}
foreach ($modFiles as $v) {
// clear the file system entry
if ($v && !in_array($v, $hidden_modules)) {
$s = '';
$s .= '<td></td>';
$s .= '<td>' . $AppUI->_($v) . '</td>';
$s .= '<td>';
$s .= '<img src="' . w2PfindImage('obj/dotgrey.gif') . '" alt="" /> ';
if ($canEdit) {
$s .= '<a href="?m=' . $m . '&a=domodsql&cmd=install&mod_directory=' . $v . '">';
}
$s .= $AppUI->_('install');
if ($canEdit) {
$s .= '</a>';
}
$s .= '</td>';
echo '<tr>' . $s . '</tr>';
}
}
?>
<tr>
<td colspan="9" style="text-align: center;">
<?php
示例7: w2PfindImage
echo $AppUI->_('Server time is') . ' ' . $AppUI->getTZAwareTime();
}
?>
</td>
</tr>
</table>
</td>
<?php
if ($AppUI->user_id > 0) {
?>
<td width="170" valign="middle" nowrap="nowrap"><table><tr><td><form name="frm_search" action="?m=smartsearch" method="post" accept-charset="utf-8">
<?php
if (canAccess('smartsearch')) {
?>
<img src="<?php
echo w2PfindImage('search.png');
?>
" style="border: 0;" alt="" /> <input class="text" size="20" type="text" id="keyword" name="keyword" value="<?php
echo $AppUI->_('Global Search') . '...';
?>
" onclick="document.frm_search.keyword.value=''" onblur="document.frm_search.keyword.value='<?php
echo $AppUI->_('Global Search') . '...';
?>
'" />
<?php
} else {
echo ' ';
}
?>
</form></td></tr></table>
</td>
示例8: void
</td>
<td>
<input type="hidden" name="log_end_date" id="log_end_date" value="<?php
echo $end_date ? $end_date->format(FMT_TIMESTAMP_DATE) : '';
?>
" />
<input type="text" name="end_date" id="end_date" onchange="setDate_new('editFrm', 'end_date');" value="<?php
echo $end_date ? $end_date->format($df) : '';
?>
" class="text" />
<a href="javascript: void(0);" onclick="return showCalendar('end_date', '<?php
echo $df;
?>
', 'editFrm', null, true, true)">
<img src="<?php
echo w2PfindImage('calendar.gif');
?>
" alt="<?php
echo $AppUI->_('Calendar');
?>
" />
</a>
</td>
<td>
<?php
echo $AppUI->_('Levels to display');
?>
<input type="text" name="max_levels" size="10" maxlength="3" <?php
$max_levels;
?>
/>
示例9: reset
</tr>
<?php
reset($projects);
if ($w2Pconfig['direct_edit_assignment']) {
// get Users with all Allocation info (e.g. their freeCapacity)
// but do it only when direct_edit_assignment is on and only once.
$tempoTask = new CTask();
$userAlloc = $tempoTask->getAllocation('user_id', null, true);
}
foreach ($projects as $k => $p) {
$tnums = isset($p['tasks']) ? count($p['tasks']) : 0;
if ($tnums > 0 || $project_id == $p['project_id']) {
//echo '<pre>'; print_r($p); echo '</pre>';
if (!$min_view) {
// not minimal view
$open_link = w2PtoolTip($m, 'Click to Expand/Collapse the Tasks for this Project.') . '<a href="javascript: void(0);"><img onclick="expand_collapse(\'project_' . $p['project_id'] . '_\', \'tblProjects\',\'collapse\',0,2);" id="project_' . $p['project_id'] . '__collapse" src="' . w2PfindImage('up22.png', $m) . '" border="0" width="22" height="22" align="center" ' . (!$expanded ? 'style="display:none"' : '') . ' alt="" /><img onclick="expand_collapse(\'project_' . $p['project_id'] . '_\', \'tblProjects\',\'expand\',0,2);" id="project_' . $p['project_id'] . '__expand" src="' . w2PfindImage('down22.png', $m) . '" border="0" width="22" height="22" align="center" ' . ($expanded ? 'style="display:none"' : '') . ' alt="" /></a>' . w2PendTip();
?>
<tr>
<td>
<form name="assFrm<?php
echo $p['project_id'];
?>
" action="index.php?m=<?php
echo $m;
?>
&=<?php
echo $a;
?>
" method="post" accept-charset="utf-8">
<input type="hidden" name="del" value="1" />
<input type="hidden" name="rm" value="0" />
示例10: sort_by_item_title
function sort_by_item_title($title, $item_name, $item_type, $a = '')
{
global $AppUI, $project_id, $task_id, $min_view, $m;
global $task_sort_item1, $task_sort_type1, $task_sort_order1;
global $task_sort_item2, $task_sort_type2, $task_sort_order2;
if ($task_sort_item2 == $item_name) {
$item_order = $task_sort_order2;
}
if ($task_sort_item1 == $item_name) {
$item_order = $task_sort_order1;
}
$s = '';
if (isset($item_order)) {
$show_icon = true;
} else {
$show_icon = false;
$item_order = SORT_DESC;
}
/* flip the sort order for the link */
$item_order = $item_order == SORT_ASC ? SORT_DESC : SORT_ASC;
if ($m == 'tasks') {
$s .= '<a href="./index.php?m=tasks' . ($task_id > 0 ? '&a=view&task_id=' . $task_id : $a);
} elseif ($m == 'calendar') {
$s .= '<a href="./index.php?m=calendar&a=day_view';
} else {
$s .= '<a href="./index.php?m=projects&bypass=1' . ($project_id > 0 ? '&a=view&project_id=' . $project_id : '');
}
$s .= '&task_sort_item1=' . $item_name;
$s .= '&task_sort_type1=' . $item_type;
$s .= '&task_sort_order1=' . $item_order;
if ($task_sort_item1 == $item_name) {
$s .= '&task_sort_item2=' . $task_sort_item2;
$s .= '&task_sort_type2=' . $task_sort_type2;
$s .= '&task_sort_order2=' . $task_sort_order2;
} else {
$s .= '&task_sort_item2=' . $task_sort_item1;
$s .= '&task_sort_type2=' . $task_sort_type1;
$s .= '&task_sort_order2=' . $task_sort_order1;
}
$s .= '" class="hdr">' . $AppUI->_($title);
if ($show_icon) {
$s .= ' <img src="' . w2PfindImage('arrow-' . ($item_order == SORT_ASC ? 'up' : 'down') . '.gif') . '" border="0" /></a>';
}
echo $s;
}
示例11: arraySelect
?>
" border="0" />
</a>
<?php
echo arraySelect($sassign, 'bulk_task_user', 'style="width:130px" class="text"', '');
?>
<select name="bulk_task_assign_perc" class="text">
<?php
for ($i = 5; $i <= 100; $i += 5) {
echo '<option ' . ($i == 100 ? 'selected="true"' : '') . ' value="' . $i . '">' . $i . '%</option>';
}
?>
</select><br /><br />
<a href="javascript: void(0);" onclick="removeUser(document.frm_bulk)">
<img src="<?php
echo w2PfindImage('remove.png', $m);
?>
" width="16" height="16" title="<?php
echo $AppUI->_('Remove Assignment');
?>
" alt="<?php
echo $AppUI->_('Remove Assignment');
?>
" border="0" />
</a>
<select name="bulk_task_assign[]" id="bulk_task_assign" style="width:200px" size="6" class="text" multiple="multiple">
</select>
</td>
</tr>
</table>
</div>
示例12: showtask_pr_ed
function showtask_pr_ed(&$arr, $level = 0, $today_view = false)
{
global $AppUI, $done;
//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');
$done[] = $arr['task_id'];
$s = '<tr>';
// 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
$alt = mb_strlen($arr['task_description']) > 80 ? mb_substr($arr['task_description'], 0, 80) . '...' : $arr['task_description'];
// instead of the statement below
$alt = mb_str_replace('"', """, $alt);
$alt = mb_str_replace("\r", ' ', $alt);
$alt = mb_str_replace("\n", ' ', $alt);
$open_link = w2PshowImage('collapse.gif');
if ($arr['task_milestone'] > 0) {
$s .= ' <b>' . $arr["task_name"] . '</b><!--</a>--> <img src="' . w2PfindImage('icons/milestone.gif', $m) . '" border="0" alt="" />';
} elseif ($arr['task_dynamic'] == '1') {
$s .= $open_link;
$s .= '<strong>' . $arr['task_name'] . '</strong>';
} else {
$s .= $arr['task_name'];
}
$s .= '</td>';
$s .= $htmlHelper->createCell('task_percent_complete', $arr['task_percent_complete']);
$s .= $htmlHelper->createCell('task_start_date', $arr['task_start_date']);
$s .= $htmlHelper->createCell('task_end_date', $arr['task_end_date']);
$s .= $htmlHelper->createCell('last_update', $arr['last_update']);
$s .= '</tr>';
return $s;
}
示例13: db_fetch_assoc
$q->addTable('users', 'u');
$q->addTable('contacts', 'c');
$q->addQuery('contact_first_name, contact_last_name');
$q->addWhere('u.user_contact = c.contact_id');
$q->addWhere('user_id = ' . (int) $Task_User['user_id']);
$sql_user_array = $q->exec();
$q->clear();
$user_list = db_fetch_assoc($sql_user_array);
$users .= $user_list['contact_first_name'] . ' ' . $user_list['contact_last_name'];
}
$str = '<tr>';
if ($project_id == 0) {
$str .= '<td>' . $Tasks['project_name'] . '</td>';
}
$str .= '<td>';
$str .= $Tasks['task_id'] == $Tasks['task_parent'] ? '' : '<img src="' . w2PfindImage('corner-dots.gif') . '" width="16" height="12" border="0" alt="" />';
$str .= ' <a href="?m=tasks&a=view&task_id=' . $Tasks['task_id'] . '">' . $Tasks['task_name'] . '</a></td>';
$str .= '<td>' . nl2br($Tasks['task_description']) . '</td>';
$str .= '<td>' . $users . '</td>';
$str .= '<td align="center">';
$start_date != ' ' ? $str .= $start_date->format($df) . '</td>' : ($str .= ' </td>');
$str .= '<td align="center">';
$end_date != ' ' ? $str .= $end_date->format($df) . '</td>' : ($str .= ' ' . '</td>');
$str .= '<td align="right">' . $Tasks['task_percent_complete'] . '%</td>';
$str .= '</tr>';
echo $str;
if ($project_id == 0) {
$pdfdata[] = array($Tasks['project_name'], $Tasks['task_name'], $Tasks['task_description'], $users, $start_date != ' ' ? $start_date->format($df) : ' ', $end_date != ' ' ? $end_date->format($df) : ' ', $Tasks['task_percent_complete'] . '%');
} else {
$pdfdata[] = array($Tasks['task_name'], $Tasks['task_description'], $users, $start_date != ' ' ? $start_date->format($df) : ' ', $end_date != ' ' ? $end_date->format($df) : ' ', $Tasks['task_percent_complete'] . '%');
}
示例14: array_keys
$projects = $myProject->getAllowedProjects($AppUI->user_id);
$project_ids = array_keys($projects);
} else {
$project_ids = array($project_id);
}
$obj = new CTask();
foreach ($project_ids as $project_id) {
$taskTree = $obj->getTaskTree($project_id, 0);
foreach ($taskTree as $task) {
$str = '<tr>';
if (count($project_ids) > 1) {
$str .= '<td>' . $task['project_name'] . '</td>';
}
$str .= '<td>';
$indent_count = substr_count($task['task_path_enumeration'], '/') * 3;
$str .= $task['task_id'] == $task['task_parent'] ? '' : str_repeat(' ', $indent_count) . '<img src="' . w2PfindImage('corner-dots.gif') . '" />';
$str .= ' <a href="?m=tasks&a=view&task_id=' . $task['task_id'] . '">' . $task['task_name'] . '</a></td>';
$str .= '<td>' . nl2br($task['task_description']) . '</td>';
$users = array();
$assignees = $obj->assignees($task['task_id']);
foreach ($assignees as $assignee) {
$users[] = $assignee['contact_name'];
}
$str .= '<td>' . implode($users, ', ') . '</td>';
$str .= $htmlHelper->createCell('task_start_date', $task['task_start_date']);
$str .= $htmlHelper->createCell('task_end_date', $task['task_end_date']);
$str .= $htmlHelper->createCell('task_percent_complete', $task['task_percent_complete']);
$str .= '</tr>';
echo $str;
if ($project_id == 0) {
$pdfdata[] = array($task['project_name'], $task['task_name'], $task['task_description'], $users, $start_date != ' ' ? $start_date->format($df) : ' ', $end_date != ' ' ? $end_date->format($df) : ' ', $task['task_percent_complete'] . '%');
示例15: w2PfindImage
?>
+<?php
echo $company->company_city;
?>
+<?php
echo $company->company_state;
?>
+<?php
echo $company->company_zip;
?>
+<?php
echo $company->company_country;
?>
" target="_blank">
<img align="right" border="0" src="<?php
echo w2PfindImage('googlemaps.gif');
?>
" width="55" height="22" alt="Find It on Google" /></a>
<?php
echo $company->company_address1 . ($company->company_address2 ? '<br />' . $company->company_address2 : '') . ($company->company_city ? '<br />' . $company->company_city : '') . ($company->company_state ? '<br />' . $company->company_state : '') . ($company->company_zip ? '<br />' . $company->company_zip : '') . ($company->company_country ? '<br />' . $countries[$company->company_country] : '');
?>
</td>
</tr>
<tr>
<td align="right" nowrap="nowrap"><?php
echo $AppUI->_('URL');
?>
:</td>
<td class="hilite"><?php
echo w2p_url($company->company_primary_url);
?>