本文整理汇总了PHP中w2PfindImage函数的典型用法代码示例。如果您正苦于以下问题:PHP w2PfindImage函数的具体用法?PHP w2PfindImage怎么用?PHP w2PfindImage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了w2PfindImage函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:eureka2,项目名称:web2project,代码行数:32,代码来源:keys.php
示例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;
}
开发者ID:illuminate3,项目名称:web2project,代码行数:11,代码来源:ViewHelper.class.php
示例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;
}
开发者ID:illuminate3,项目名称:web2project,代码行数:46,代码来源:TaskTable.class.php
示例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>';
}
开发者ID:eureka2,项目名称:web2project,代码行数:21,代码来源:vw_depts.php
示例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;
}
开发者ID:joly,项目名称:web2project,代码行数:21,代码来源:billingcode.php
示例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
开发者ID:eureka2,项目名称:web2project,代码行数:31,代码来源:viewmods.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>
开发者ID:viniciusbudines,项目名称:sisnuss,代码行数:31,代码来源:header.php
示例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;
?>
/>
开发者ID:illuminate3,项目名称:web2project,代码行数:31,代码来源:tasksperuser.php
示例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" />
开发者ID:eureka2,项目名称:web2project,代码行数:31,代码来源:tasks.php
示例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;
}
开发者ID:joly,项目名称:web2project,代码行数:45,代码来源:tasks.class.php
示例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>
开发者ID:viniciusbudines,项目名称:sisnuss,代码行数:31,代码来源:vw_actions.php
示例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;
}
开发者ID:caseysoftware,项目名称:web2project-planner,代码行数:47,代码来源:vw_project_tools.php
示例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'] . '%');
}
开发者ID:viniciusbudines,项目名称:sisnuss,代码行数:31,代码来源:tasklist.php
示例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'] . '%');
开发者ID:illuminate3,项目名称:web2project,代码行数:31,代码来源:tasklist.php
示例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);
?>
开发者ID:eureka2,项目名称:web2project,代码行数:31,代码来源:view.php
示例16: void
<?php
echo '<a href="javascript: void(0);" name="fbt" style="display:block" onclick="expand_collapse(\'files\', \'tblProjects\');update_workspace(\'files\');">';
?>
<?php
echo '<strong>' . $AppUI->_('Files') . '<strong></font>';
?>
<?php
echo '</a>';
?>
</td>
<td width="12" align="right" colspan="1">
<?php
echo '<a href="javascript: void(0);" name="fbt" style="display:block" onclick="expand_collapse(\'files\', \'tblProjects\');update_workspace(\'files\');">';
?>
<?php
echo '<img id="files_expand" src="' . w2PfindImage('icons/expand.gif', $m) . '" width="12" height="12" border="0" ' . (isset($view_options[0]['pd_option_view_files']) ? $view_options[0]['pd_option_view_files'] ? 'style="display:none"' : 'style="display:"' : 'style="display:none"') . '><img id="files_collapse" src="' . w2PfindImage('icons/collapse.gif', $m) . '" width="12" height="12" border="0" ' . (isset($view_options[0]['pd_option_view_files']) ? $view_options[0]['pd_option_view_files'] ? 'style="display:"' : 'style="display:none"' : 'style="display:"') . '></a>';
?>
</td>
</tr>
<?php
echo '</a>';
?>
</table>
</td>
</tr>
<tr id="files" <?php
echo isset($view_options[0]['pd_option_view_files']) ? $view_options[0]['pd_option_view_files'] ? 'style="visibility:visible;display:"' : 'style="visibility:collapse;display:none"' : 'style="visibility:visible;display:"';
?>
>
<td colspan="2" class="hilite">
<?php
开发者ID:joly,项目名称:web2project,代码行数:31,代码来源:index.php
示例17: show
function show($extra = '', $js_tabs = false, $alignment = 'left', $opt_flat = true)
{
global $AppUI, $w2Pconfig, $currentTabId, $currentTabName, $m, $a;
$this->loadExtras($m, $a);
$uistyle = $AppUI->getPref('UISTYLE') ? $AppUI->getPref('UISTYLE') : $w2Pconfig['host_style'];
if (!$uistyle) {
$uistyle = 'web2project';
}
if (($a == 'addedit' || $a == 'view' || $a == 'viewuser') && function_exists('styleRenderBoxBottom')) {
echo styleRenderBoxBottom();
}
reset($this->tabs);
$s = '';
// tabbed / flat view options
if ($AppUI->getPref('TABVIEW') == 0) {
if ($opt_flat) {
$s .= '<table border="0" cellpadding="2" cellspacing="0" width="100%">';
$s .= '<tr>';
$s .= '<td width="54" nowrap="nowrap">';
$s .= '<a class="button" href="' . $this->baseHRef . 'tab=0"><span>' . $AppUI->_('tabbed') . '</span></a>';
$s .= '</td>';
$s .= '<td nowrap="nowrap">';
$s .= '<a class="button" href="' . $this->baseHRef . 'tab=-1"><span>' . $AppUI->_('flat') . '</span></a>';
$s .= '</td>' . $extra . '</tr></table>';
echo $s;
}
} else {
if ($extra) {
echo '<table border="0" cellpadding="2" cellspacing="0" width="100%"><tr>' . $extra . '</tr>' . '</table>';
} else {
# echo "<img src=\"".w2PfindImage('shim.gif')."\" height=\"10\" width=\"1\" alt=\"\" />";
}
}
if ($this->active < 0 || $AppUI->getPref('TABVIEW') == 2) {
// flat view, active = -1
echo '<table border="0" cellpadding="2" cellspacing="0" width="100%">';
foreach ($this->tabs as $k => $v) {
echo '<tr><td><strong>' . ($v[2] ? $v[1] : $AppUI->_($v[1])) . '</strong></td></tr><tr><td>';
$currentTabId = $k;
$currentTabName = $v[1];
include $this->baseInc . $v[0] . '.php';
echo '</td></tr>';
}
echo '</table>';
} else {
// tabbed view
$s = '<table width="100%" border="0" cellpadding="0" cellspacing="0">';
$s .= '<tr><td><table align="' . $alignment . '" border="0" cellpadding="0" cellspacing="0">';
if (count($this->tabs) - 1 < $this->active) {
//Last selected tab is not available in this view. eg. Child tasks
$this->active = 0;
}
foreach ($this->tabs as $k => $v) {
$class = $k == $this->active ? 'tabon' : 'taboff';
$sel = $k == $this->active ? 'Selected' : '';
$s .= '<td valign="middle"><img src="./style/' . $uistyle . '/bar_top_' . $sel . 'left.gif" id="lefttab_' . $k . '" border="0" alt="" /></td>';
$s .= '<td id="toptab_' . $k . '" valign="middle" nowrap="nowrap" class="' . $class . '"> <a href="';
if ($this->javascript) {
$s .= 'javascript:' . $this->javascript . '(' . $this->active . ', ' . $k . ')';
} elseif ($js_tabs) {
$s .= 'javascript:show_tab(' . $k . ')';
} else {
$s .= $this->baseHRef . 'tab=' . $k;
}
$s .= '">' . ($v[2] ? $v[1] : $AppUI->_($v[1])) . '</a> </td>';
$s .= '<td valign="middle" ><img id="righttab_' . $k . '" src="./style/' . $uistyle . '/bar_top_' . $sel . 'right.gif" border="0" alt="" /></td>';
$s .= '<td class="tabsp"><img src="' . w2PfindImage('shim.gif') . '"/></td>';
}
$s .= '</table></td></tr>';
//round the right top of the tab box
$s .= '<tr><td>';
$s .= '<table width="100%" cellspacing="0" cellpadding="0" border="0">';
$s .= '<tbody>';
$s .= '<tr>';
$s .= ' <td valign="bottom" width="100%" background="./style/' . $uistyle . '/tabbox_top.jpg" align="left">';
$s .= ' <img src="./style/' . $uistyle . '/tabbox_top.jpg"/>';
$s .= ' </td>';
$s .= '</tr>';
$s .= '</tbody>';
$s .= '</table>';
$s .= '</td></tr>';
$s .= '<tr><td width="100%" colspan="' . (count($this->tabs) * 4 + 1) . '" class="tabox">';
echo $s;
//Will be null if the previous selection tab is not available in the new window eg. Children tasks
if ($this->tabs[$this->active][0] != '') {
$currentTabId = $this->active;
$currentTabName = $this->tabs[$this->active][1];
if (!$js_tabs) {
require $this->baseInc . $this->tabs[$this->active][0] . '.php';
}
}
if ($js_tabs) {
foreach ($this->tabs as $k => $v) {
echo '<div class="tab" id="tab_' . $k . '">';
$currentTabId = $k;
$currentTabName = $v[1];
require $this->baseInc . $v[0] . '.php';
echo '</div>';
echo '<script language="JavaScript" type="text/javascript">
<!--
//.........这里部分代码省略.........
开发者ID:joly,项目名称:web2project,代码行数:101,代码来源:overrides.php
示例18: w2p_Utilities_Date
$df .= ' ' . $AppUI->getPref('TIMEFORMAT');
$contact_updatekey = $carr[$z][$x]['contact_updatekey'];
$contact_lastupdate = $carr[$z][$x]['contact_lastupdate'];
$contact_updateasked = $carr[$z][$x]['contact_updateasked'];
$last_ask = new w2p_Utilities_Date($contact_updateasked);
$lastAskFormatted = $last_ask->format($df);
if (count($projectList) > 0) {
echo '<a href="" onclick=" window.open(\'./index.php?m=public&a=selector&dialog=1&callback=goProject&table=projects&user_id=' . $carr[$z][$x]['contact_id'] . '\', \'selector\', \'left=50,top=50,height=250,width=400,resizable\');return false;">' . w2PshowImage('projects.png', '', '', $m, 'click to view projects associated with this contact') . '</a>';
}
if ($contact_updateasked && (!$contact_lastupdate || $contact_lastupdate == 0) && $contact_updatekey) {
echo w2PtoolTip('info', 'Waiting for Contact Update Information. (Asked on: ' . $lastAskFormatted . ')') . '<img src="' . w2PfindImage('log-info.gif') . '" style="float: right;">' . w2PendTip();
} elseif ($contact_updateasked && (!$contact_lastupdate || $contact_lastupdate == 0) && !$contact_updatekey) {
echo w2PtoolTip('info', 'Waiting for too long! (Asked on ' . $lastAskFormatted . ')') . '<img src="' . w2PfindImage('log-error.gif') . '" style="float: right;">' . w2PendTip();
} elseif ($contact_updateasked && !$contact_updatekey) {
$last_ask = new w2p_Utilities_Date($contact_lastupdate);
echo w2PtoolTip('info', 'Update sucessfully done on: ' . $last_ask->format($df) . '') . '<img src="' . w2PfindImage('log-notice.gif') . '" style="float: right;">' . w2PendTip();
}
?>
</span>
</th>
</table>
</td>
</tr>
<tr>
<?php
reset($showfields);
$s = '';
while (list($key, $val) = each($showfields)) {
if (mb_strlen($carr[$z][$x][$key]) > 0) {
if ($val == 'contact_email') {
$s .= '<td class="hilite" colspan="2">' . w2p_email($carr[$z][$x][$key]) . '</td></tr>';
开发者ID:viniciusbudines,项目名称:sisnuss,代码行数:31,代码来源:index.php
示例19: array
<?php
$options = array();
if ($object->contact_private) {
$options['checked'] = 'checked';
}
?>
<?php
$form->showField('contact_private', $object->contact_private, $options);
?>
</p>
<p>
<?php
$form->showLabel('Contact Methods');
?>
<?php
echo w2PtoolTip('Contact Method', 'add new', false, 'add_contact_method');
?>
<a href="javascript:addContactMethod();"><img src="<?php
echo w2PfindImage('icons/edit_add.png');
?>
" style="border: 0;" alt="" /></a><?php
echo w2PendTip();
?>
</p>
<p id="custom_fields"></p>
<?php
$form->showSaveButton();
?>
</div>
</div>
</form>
开发者ID:victorrod,项目名称:web2project,代码行数:31,代码来源:addedit.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
|
请发表评论