• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP w2PshowImage函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中w2PshowImage函数的典型用法代码示例。如果您正苦于以下问题:PHP w2PshowImage函数的具体用法?PHP w2PshowImage怎么用?PHP w2PshowImage使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了w2PshowImage函数的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>&nbsp;' . '<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: showchilddept_comp

function showchilddept_comp(&$a, $level = 0)
{
    global $AppUI;
    $s = '
	<td>
		<a href="./index.php?m=departments&amp;a=addedit&amp;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


示例3: w2PshowImage

    ?>
&a=addedit_folder&folder=<?php 
    echo $cfObj->file_folder_id;
    ?>
" title="edit the <?php 
    echo $cfObj->file_folder_name;
    ?>
 folder"><?php 
    echo w2PshowImage('filesaveas.png', '22', '22', 'folder icon', 'edit folder', 'files');
    ?>
</a></li>
                <?php 
}
?>
                <li class="info-text"><?php 
echo w2PshowImage('folder5_small.png', '22', '22', '', '', 'files');
?>
 <strong><?php 
echo isset($cfObj) && $cfObj->file_folder_name ? $cfObj->file_folder_name : "Root";
?>
</strong></li>
                <?php 
if (isset($cfObj) && $cfObj->file_folder_description != '') {
    ?>
                    <li class="info-text"><?php 
    echo w2p_textarea($cfObj->file_folder_description);
    ?>
</li>
                <?php 
}
?>
开发者ID:illuminate3,项目名称:web2project,代码行数:31,代码来源:folders_table.php


示例4: foreach

											<td align="right">
												<select name="add_users" style="width:200px" size="2" multiple="multiple" class="text" ondblclick="javascript:chAssignment(<?php 
                echo $p['project_id'];
                ?>
, 0, false)">
													<?php 
                foreach ($userAlloc as $v => $u) {
                    echo '<option value="' . $u['user_id'] . '">' . w2PformSafe($u['userFC']) . "</option>\n";
                }
                ?>
												</select>
											</td>
											<td align="center">
												<?php 
                echo '<a href="javascript:chAssignment(' . $p['project_id'] . ', 0, 0);">' . w2PshowImage('add.png', 16, 16, 'Assign Users', 'Assign selected Users to selected Tasks', 'tasks') . "</a>\n";
                echo '<a href="javascript:chAssignment(' . $p['project_id'] . ', 1, 1);">' . w2PshowImage('remove.png', 16, 16, 'Unassign Users', 'Unassign Users from Task', 'tasks') . "</a>\n";
                ?>
												<br />
												<select class="text" name="percentage_assignment" title="<?php 
                echo $AppUI->_('Assign with Percentage');
                ?>
" >
													<?php 
                for ($i = 0; $i <= 100; $i += 5) {
                    echo "\t" . '<option ' . ($i == 30 ? 'selected="true"' : '') . ' value="' . $i . '">' . $i . '%</option>';
                }
                ?>
												</select>
											</td>
									  </tr>
								  </table>
开发者ID:eureka2,项目名称:web2project,代码行数:31,代码来源:tasks.php


示例5: w2PshowImage

            <td>
            </td>
            <td align="left">
                <small><b><?php 
echo $AppUI->_('BBCode Ready');
?>
!</b></small>
                <?php 
echo w2PshowImage('log-info.gif', '', '', 'BBCode Tags Accepted', '
                [b][/b] Bold. Example: [b]<b>This text will be bold</b>[/b]<br />
                [i][/i] Italic. Example: [i]<i>This text will be in italic</i>[/i]<br />
                [u][/u] Underlined. Example: [u]<u>This text will be underlined</u>[/u]<br />
                [s][/s] Scratched. Example: [s]<del>This text will be scratched</del>[/s]<br />
                [sub][/sub] Subscript. Example: [sub]<sub>This text will be subscript</sub>[/sub]<br />
                [sup][/sup] Superscript. Example: [sup]<sup>This text will be superscript</sup>[/sup]<br />
                [email][/email] Email Address. Example: [email][email protected][/email]<br />
                [color=color_name][/color] Colorized Text. Example: [color=blue]I am Blue[/color]<br />
                [size=size_value][/size], [font=font_name][/font] and [align=left|center|right][align] Format Text. Example: [align=right]I am on the Right[/align]<br />
                [url=url_address][/url] Link. Example: [url=http://web2project.net]web2Project[/url]<br />
                [list][/list],[ulist][/ulist] and [li][/li] Lists.<br />
                [quote][/quote] Quoted Text. Example: [quote]<q>This text will be superscript</q>[/quote]<br />
                [code][/code] Text in code format. Example: [code]//This is a code comment;[/code]<br />
                ');
?>
            </td>
        </tr>
        <tr>
            <td>
                <input type="button" value="<?php 
echo $AppUI->_('back');
?>
开发者ID:eureka2,项目名称:web2project,代码行数:31,代码来源:post_message.php


示例6: showchilddept_comp

function showchilddept_comp(&$a, $level = 0)
{
    trigger_error("The showchilddept_comp function has been deprecated and will be removed in v4.0. There is no replacement.", E_USER_NOTICE);
    global $AppUI;
    $s = '
    <td>
        <a href="./index.php?m=departments&amp;a=addedit&amp;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>';
    return '<tr>' . $s . '</tr>';
}
开发者ID:illuminate3,项目名称:web2project,代码行数:22,代码来源:deprecated_functions.php


示例7: CDate

$other_users = false;
$no_modify = false;
$start_date = new CDate('0000-00-00 00:00:00');
$end_date = new CDate('9999-12-31 23:59:59');
// assemble the links for the events
$events = CEvent::getEventsForPeriod($start_date, $end_date, 'all', 0, 0, $company_id);
$start_hour = w2PgetConfig('cal_day_start');
$end_hour = w2PgetConfig('cal_day_end');
$tf = $AppUI->getPref('TIMEFORMAT');
$df = $AppUI->getPref('SHDATEFORMAT');
$types = w2PgetSysVal('EventType');
$html = '<table cellspacing="1" cellpadding="2" border="0" width="100%" class="tbl">';
$html .= '<tr><th>' . $AppUI->_('Date') . '</th><th>' . $AppUI->_('Type') . '</th><th>' . $AppUI->_('Event') . '</th></tr>';
foreach ($events as $row) {
    $html .= '<tr>';
    $start = new CDate($row['event_start_date']);
    $end = new CDate($row['event_end_date']);
    $html .= '<td width="25%" nowrap="nowrap">' . $start->format($df . ' ' . $tf) . '&nbsp;-&nbsp;';
    $html .= $end->format($df . ' ' . $tf) . '</td>';
    $href = '?m=calendar&a=view&event_id=' . $row['event_id'];
    $alt = $row['event_description'];
    $html .= '<td width="10%" nowrap="nowrap">';
    $html .= w2PshowImage('event' . $row['event_type'] . '.png', 16, 16, '', '', 'calendar');
    $html .= '&nbsp;<b>' . $AppUI->_($types[$row['event_type']]) . '</b><td>';
    $html .= $href ? '<a href="' . $href . '" class="event" title="' . $alt . '">' : '';
    $html .= $row['event_title'];
    $html .= $href ? '</a>' : '';
    $html .= '</td></tr>';
}
$html .= '</table>';
echo $html;
开发者ID:joly,项目名称:web2project,代码行数:31,代码来源:companies_tab.view.events.php


示例8: printf

        print '		<p>w2P Old Queries executed: ' . $w2p_performance_old_dbqueries . ' queries</p>';
        print '		<p>w2P Total Queries executed: ' . (int) ($w2p_performance_old_dbqueries + $w2p_performance_dbqueries) . ' queries</p>';
        printf('		<p><b>Page generated in %.3f seconds</b></p>', array_sum(explode(' ', microtime())) - $w2p_performance_time);
        print '	</td>';
        print '	</tr>';
        print '	</table>';
        print '</td>';
        print '</tr>';
        print '</table>';
    }
    echo '
		<!--AJAX loading messagebox -->
		<div id="loadingMessage" style="alpha(opacity=100);opacity:1;position: fixed; left: 0px; top: 1px;display: none;">
		<table width="80" cellpadding="1" cellspacing="1" border="0">
		<tr>
			<td>';
    echo w2PshowImage('ajax-loader.gif', '', '', 'sisNUSS', 'Server Connection Running, Please wait...');
    echo '
			</td>
			<td>
				<b>' . $AppUI->_('Loading') . '</b>
			</td>
		</tr>
		</table>
		</div>
		<!--End AJAX loading messagebox -->';
    //close the body and html here, instead of on the theme footer.
    echo '</body>
          </html>';
}
ob_end_flush();
开发者ID:viniciusbudines,项目名称:sisnuss,代码行数:31,代码来源:index.php


示例9: w2PshowImage

    if ($row["message_parent"] < 0) {
        ?>
<tr>
	<td nowrap="nowrap" align="center" width="1%">
		<input type="checkbox" name="forum_<?php 
        echo $row['message_id'];
        ?>
" <?php 
        echo $row['watch_user'] ? 'checked="checked"' : '';
        ?>
 />
	</td>
	<td>
		<?php 
        if ($row['visit_user'] != $AppUI->user_id || $row['reply_visits'] != $row['replies']) {
            echo w2PshowImage('icons/stock_new_small.png', false, false, 'You have unread posts in this topic');
        }
        ?>
		<span style="font-size:10pt;">
		<a href="?m=forums&a=viewer&forum_id=<?php 
        echo $forum_id . '&message_id=' . $row["message_id"];
        ?>
"><?php 
        echo $row['message_title'];
        ?>
</a>
		</span>
	</td>
	<td bgcolor="#dddddd" width="10%"><?php 
        echo $row['contact_first_name'] . ' ' . $row['contact_last_name'];
        ?>
开发者ID:joly,项目名称:web2project,代码行数:31,代码来源:view_topics.php


示例10: _drawTitle

 /**
  * CMonthCalendar::_drawTitle()
  *
  * { Description }
  *
  */
 private function _drawTitle()
 {
     global $AppUI, $m, $a;
     $url = 'index.php?m=' . $m;
     $url .= $a ? '&amp;a=' . $a : '';
     $url .= isset($_GET['dialog']) ? '&amp;dialog=1' : '';
     $s = '<table border="0" cellspacing="0" cellpadding="3" width="100%" class="' . $this->styleTitle . '">';
     $s .= '<tr>';
     if ($this->showArrows) {
         $href = $url . '&amp;date=' . $this->prev_month->format(FMT_TIMESTAMP_DATE) . ($this->callback ? '&amp;callback=' . $this->callback : '') . (count($this->highlightedDays) > 0 ? '&uts=' . key($this->highlightedDays) : '');
         $s .= '<td align="left">';
         $s .= '<a href="' . $href . '">' . w2PshowImage('prev.gif', 16, 16, $AppUI->_('previous month')) . '</a>';
         $s .= '</td>';
     }
     $s .= '<th width="99%" align="center">';
     if ($this->clickMonth) {
         $s .= '<a href="index.php?m=' . $m . '&amp;date=' . $this->this_month->format(FMT_TIMESTAMP_DATE) . '">';
     }
     setlocale(LC_TIME, 'C');
     $s .= $AppUI->_($this->this_month->format('%B')) . ' ' . $this->this_month->format('%Y') . ($this->clickMonth ? '</a>' : '');
     setlocale(LC_ALL, $AppUI->user_lang);
     $s .= '</th>';
     if ($this->showArrows) {
         $href = $url . '&amp;date=' . $this->next_month->format(FMT_TIMESTAMP_DATE) . ($this->callback ? '&amp;callback=' . $this->callback : '') . (count($this->highlightedDays) > 0 ? '&amp;uts=' . key($this->highlightedDays) : '');
         $s .= '<td align="right">';
         $s .= '<a href="' . $href . '">' . w2PshowImage('next.gif', 16, 16, $AppUI->_('next month')) . '</a>';
         $s .= '</td>';
     }
     $s .= '</tr>';
     $s .= '</table>';
     return $s;
 }
开发者ID:viniciusbudines,项目名称:sisnuss,代码行数:38,代码来源:MonthCalendar.class.php


示例11: createCell


//.........这里部分代码省略.........
         // The above are all contact/user display names, the below are numbers.
         case '_count':
         case '_hours':
             $cell = $value;
             break;
         case '_duration':
             $durnTypes = w2PgetSysVal('TaskDurationType');
             $cell = $value . ' ' . $this->AppUI->_($durnTypes[$this->tableRowData['task_duration_type']]);
             break;
         case '_size':
             $cell = file_size($value);
             break;
         case '_budget':
             $cell = w2PgetConfig('currency_symbol');
             $cell .= formatCurrency($value, $this->AppUI->getPref('CURRENCYFORM'));
             break;
         case '_url':
             $value = str_replace(array('"', '"', '<', '>'), '', $value);
             $cell = w2p_url($value);
             break;
         case '_email':
             $cell = w2p_email($value);
             break;
         case '_birthday':
         case '_date':
             $myDate = intval($value) ? new w2p_Utilities_Date($value) : null;
             $cell = $myDate ? $myDate->format($this->df) : '-';
             break;
         case '_actual':
             $end_date = intval($this->tableRowData['project_end_date']) ? new w2p_Utilities_Date($this->tableRowData['project_end_date']) : null;
             $actual_end_date = intval($this->tableRowData['project_actual_end_date']) ? new w2p_Utilities_Date($this->tableRowData['project_actual_end_date']) : null;
             $style = $actual_end_date < $end_date && !empty($end_date) ? 'style="color:red; font-weight:bold"' : '';
             if ($actual_end_date) {
                 $cell = '<a href="?m=tasks&a=view&task_id=' . $this->tableRowData['project_last_task'] . '" ' . $style . '>' . $actual_end_date->format($this->df) . '</a>';
             } else {
                 $cell = '-';
             }
             break;
         case '_created':
         case '_datetime':
         case '_update':
         case '_updated':
             $myDate = intval($value) ? new w2p_Utilities_Date($this->AppUI->formatTZAwareTime($value, '%Y-%m-%d %T')) : null;
             $cell = $myDate ? $myDate->format($this->dtf) : '-';
             break;
         case '_description':
             $cell = w2p_textarea($value);
             break;
         case '_priority':
             $mod = $value > 0 ? '+' : '-';
             $image = '<img src="' . w2PfindImage('icons/priority' . $mod . abs($value) . '.gif') . '" width="13" height="16" alt="">';
             $cell = $value != 0 ? $image : '';
             break;
         case '_complete':
         case '_assignment':
         case '_allocated':
         case '_allocation':
             $cell = round($value) . '%';
             break;
         case '_password':
             $cell = '(' . $this->AppUI->_('hidden') . ')';
             break;
         case '_version':
             $value = (int) (100 * $value);
             $cell = number_format($value / 100, 2);
             break;
         case '_identifier':
             $additional = 'style="background-color:#' . $value . '; color:' . bestColor($value) . '" ';
             $cell = $this->tableRowData['project_percent_complete'] . '%';
             break;
         case '_project':
             $module = substr($suffix, 1);
             $class = 'C' . ucfirst($module);
             $obj = new $class();
             $obj->load($value);
             $color = $obj->project_color_identifier;
             $link = '?m=' . w2p_pluralize($module) . '&a=view&' . $module . '_id=' . $value;
             $cell = '<span style="background-color:#' . $color . '; padding: 3px"><a href="' . $link . '" style="color:' . bestColor($color) . '">' . $obj->{"{$module}" . '_name'} . '</a></span>';
             $suffix .= ' _name';
             break;
         case '_assignees':
             $cell = $value;
             break;
         case '_problem':
             if ($value) {
                 $cell = '<a href="?m=tasks&a=index&f=all&project_id=' . $this->tableRowData['project_id'] . '">';
                 $cell .= w2PshowImage('icons/dialog-warning5.png', 16, 16, 'Problem', 'Problem');
                 $cell .= '</a>';
             } else {
                 $cell = '-';
             }
             break;
         default:
             $value = isset($custom[$fieldName]) ? $custom[$fieldName][$value] : $value;
             $cell = htmlspecialchars($value, ENT_QUOTES);
     }
     $begin = '<td ' . $additional . 'class="' . $suffix . '">';
     $end = '</td>';
     return $begin . $cell . $end;
 }
开发者ID:illuminate3,项目名称:web2project,代码行数:101,代码来源:HTMLHelper.class.php


示例12: w2PshowImage

				<input type="hidden" name="rm" value="0" />
				<input type="hidden" name="store" value="0" />
				<input type="hidden" name="dosql" value="do_task_assign_aed" />
				<input type="hidden" name="user_id" value="' . $user_id . '" />
				<input type="hidden" name="hassign" />
				<input type="hidden" name="htasks" />
				<tr>';
    $tmpuser .= '<td bgcolor="#D0D0D0"><input onclick="javascript:checkAll(' . $user_id . ');" type="checkbox" name="master" value="true"/></td>
				<td colspan="2" align="left" nowrap="nowrap" bgcolor="#D0D0D0">
				<font color="black">
				<b><a href="index.php?m=calendar&a=day_view&user_id=' . $user_id . '&tab=1">' . $AppUI->_('Orphaned Tasks') . '</a></b></font></td>';
    for ($w = 0; $w <= 4 + weekCells($display_week_hours, $sss, $sse); $w++) {
        $tmpuser .= '<td bgcolor="#D0D0D0"></td>';
    }
    $tmpuser .= '<td bgcolor="#D0D0D0"><table width="100%"><tr>';
    $tmpuser .= '<td align="left">' . '<a href="javascript:chAssignment(' . $user_id . ', 0, 0);">' . w2PshowImage('add.png', 16, 16, 'Assign Users', 'Assign selected Users to selected Tasks', 'tasks') . '</a></td>';
    $tmpuser .= '<td align="center"><select class="text" name="percentage_assignment" title="' . $AppUI->_('Assign with Percentage') . '">';
    for ($i = 0; $i <= 100; $i += 5) {
        $tmpuser .= '<option ' . ($i == 30 ? 'selected="true"' : '') . ' value="' . $i . '">' . $i . '%</option>';
    }
    $tmpuser .= '</select></td>';
    $tmpuser .= '<td align="center">' . arraySelect($taskPriority, 'task_priority', 'onchange="javascript:chPriority(' . $user_id . ');" size="1" class="text" title="' . $AppUI->_('Change Priority of selected Tasks') . '"', 0, true);
    $tmpuser .= '</td></tr></table></td>';
    $tmpuser .= '</tr>';
    $orphTasks = array_diff(array_map('getOrphanedTasks', $task_list), array(null));
    $tmptasks = '';
    $actual_date = $start_date;
    $zi = 0;
    foreach ($orphTasks as $task) {
        $tmptasks .= displayTask($orphTasks, $task, 0, $display_week_hours, $sss, $sse, $user_id);
    }
开发者ID:eureka2,项目名称:web2project,代码行数:31,代码来源:tasksperuser_sub.php


示例13: date

			<tr>
				<td><?php 
    echo $AppUI->_('Welcome') . ' ' . ($AppUI->user_id > 0 ? $AppUI->user_first_name . ' ' . $AppUI->user_last_name . '. ' . $AppUI->_('Server time is') . ' ' . date($df) : $outsider);
    ?>
</td>
			</tr>
			</table>
		</td>
<?php 
    if ($AppUI->user_id > 0) {
        //Just show this stuff if there is a user logged in
        ?>
		<td width="170" valign="middle" nowrap="nowrap"><table><tr><form name="frm_search" action="?m=smartsearch" method="POST" accept-charset="utf-8"><td>
             	     <?php 
        if ($perms->checkModule('smartsearch', 'access')) {
            echo w2PshowImage('search.png');
            ?>
&nbsp;<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 '&nbsp;';
        }
        ?>
 
        </td></form></tr></table></td>
开发者ID:joly,项目名称:web2project,代码行数:31,代码来源:header.php


示例14: _buildCells

 protected function _buildCells($array = array())
 {
     $cells = '';
     /**
      * Note: We can't refactor the actual td/class stuff out to the return statement because we may have multiple
      *   inserted cells processed together.. and we need them to remain separate cells.
      */
     foreach ($array as $type => $value) {
         switch ($type) {
             case 'edit':
                 // @note This module determination *only* works if you've followed our naming conventions.
                 $pieces = explode('_', $value);
                 $module = w2p_pluralize($pieces[0]);
                 $contents = '<td class="_' . $type . '">';
                 $contents .= '<a href="./index.php?m=' . $module . '&a=addedit&' . $value . '=' . $this->tableRowData[$value] . '">' . w2PshowImage('icons/stock_edit-16.png', '16', '16') . '</a>';
                 $contents .= '</td>';
                 break;
             case 'select':
                 $contents = '<td class="_' . $type . '">';
                 $contents .= '<input type="checkbox" value="' . $this->tableRowData[$value] . '" name="' . $value . '[]" />';
                 $contents .= '</td>';
                 break;
             case 'log':
                 $pieces = explode('_', $value);
                 $module = w2p_pluralize($pieces[0]);
                 $contents = '<td class="_' . $type . '">';
                 $contents .= '<a href="./index.php?m=' . $module . '&a=view&tab=1&' . $value . '=' . $this->tableRowData[$value] . '">' . w2PshowImage('icons/edit_add.png', '16', '16') . '</a>';
                 $contents .= '</td>';
                 break;
             case 'pin':
                 $image = $this->tableRowData['task_pinned'] ? 'pin.gif' : 'unpin.gif';
                 $pieces = explode('_', $value);
                 $module = w2p_pluralize($pieces[0]);
                 $contents = '<td class="_' . $type . '">';
                 $contents .= '<a href="./index.php?m=' . $module . '&pin=1&' . $value . '=' . $this->tableRowData[$value] . '">' . w2PshowImage('icons/' . $image, '16', '16') . '</a>';
                 $contents .= '</td>';
                 break;
             case 'url':
                 $contents = '<td class="_' . $type . '">';
                 $contents .= '<a href="' . $this->tableRowData[$value] . '" target="_blank">' . w2PshowImage('forward.png', '16', '16') . '</a>';
                 $contents .= '</td>';
                 break;
             case 'watch':
                 $contents = '<td class="_' . $type . '">';
                 $contents .= '<input type="checkbox" name="forum_' . $this->tableRowData[$value] . '"' . ($this->tableRowData['watch_user'] ? 'checked="checked"' : '') . ' />';
                 $contents .= '</td>';
                 break;
             default:
                 $contents = '<td></td>';
         }
         $cells .= $contents;
     }
     return $cells;
 }
开发者ID:victorrod,项目名称:web2project,代码行数:54,代码来源:ListTable.class.php


示例15: w2PshowImage

                $s .= '<a href="?m=projects&a=view&project_id=' . $row['link_project'] . '">' . $row['project_name'] . '</a>';
            } else {
                $s .= $row['project_name'];
            }
            $s .= '</font>';
            $s .= '</td></tr>';
            echo $s;
        }
    }
    $fp = $row['link_project'];
    ?>
<tr>
	<td nowrap="nowrap" width="20">
	<?php 
    if ($canEdit) {
        echo '<a href="./index.php?m=' . $m . '&a=addedit&link_id=' . $row['link_id'] . '">' . w2PshowImage('icons/stock_edit-16.png', '16', '16') . '</a>';
    }
    ?>
	</td>
	<td nowrap="8%">
		<?php 
    echo '<a href="' . $row['link_url'] . '" target="_blank">' . $row['link_name'] . '</a>';
    ?>
	</td>
	<td width="20%"><?php 
    echo $row['link_description'];
    ?>
</td>
        <td width="10%" nowrap="nowrap" align="center"><?php 
    echo $link_types[$row['link_category']];
    ?>
开发者ID:viniciusbudines,项目名称:sisnuss,代码行数:31,代码来源:index_table.php


示例16: w2PshowImage

        if (empty($user_display)) {
            $user_display = $row['user_username'];
        }
        ?>
				<a href="javascript:delMe(<?php 
        echo $row['user_id'];
        ?>
, '<?php 
        echo $user_display;
        ?>
')" title="<?php 
        echo $AppUI->_('delete');
        ?>
">
					<?php 
        echo w2PshowImage('icons/stock_delete-16.png', 16, 16, '');
        ?>
				</a>
			</td>
		</tr>
		</table>
<?php 
    }
    ?>
	</td>
	<?php 
    if (w2PgetParam($_REQUEST, 'tab', 0) == 0) {
        ?>
	<td>
	       <?php 
        $q = new w2p_Database_Query();
开发者ID:viniciusbudines,项目名称:sisnuss,代码行数:31,代码来源:vw_usr.php


示例17: showRow

function showRow($id = '', $key = 0, $title = '', $value = '')
{
    global $canEdit, $sysval_id, $AppUI, $keys;
    global $fixedSysVals;
    $s = '';
    if ($sysval_id == $title && $canEdit) {
        // edit form
        $s .= '<tr><td><input type="hidden" name="sysval_id" value="' . $title . '" />&nbsp;</td>';
        $s .= '<td valign="top"><a name="' . $title . '"> </a>' . arraySelect($keys, 'sysval_key_id', 'size="1" class="text"', $key) . '</td>';
        $s .= '<td valign="top"><input type="text" name="sysval_title" value="' . w2PformSafe($title) . '" class="text" /></td>';
        $s .= '<td valign="top"><textarea name="sysval_value" class="small" rows="5" cols="40">' . $value . '</textarea></td>';
        $s .= '<td><input type="submit" value="' . $AppUI->_($id ? 'save' : 'add') . '" class="button" /></td><td>&nbsp;</td>';
    } else {
        $s = '<tr><td width="12" valign="top">';
        if ($canEdit) {
            $s .= '<a href="?m=system&u=syskeys&sysval_id=' . $title . '#' . $title . '" title="' . $AppUI->_('edit') . '">' . w2PshowImage('icons/stock_edit-16.png', 16, 16, '') . '</a></td>';
        }
        $s .= '<td valign="top">' . $keys[$key] . '</td>';
        $s .= '<td valign="top">' . w2PformSafe($title) . '</td>';
        $s .= '<td valign="top" colspan="2">' . $value . '</td>';
        $s .= '<td valign="top" width="16">';
        if ($canEdit && !in_array($title, $fixedSysVals)) {
            $s .= '<a href="javascript:delIt(\'' . $title . '\')" title="' . $AppUI->_('delete') . '">' . w2PshowImage('icons/stock_delete-16.png', 16, 16, '') . '</a>';
        }
        $s .= '</td>';
    }
    $s .= '</tr>';
    return $s;
}
开发者ID:viniciusbudines,项目名称:sisnuss,代码行数:29,代码来源:cleanup_functions.php


示例18: 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


示例19: showtask_pr_ed

该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP w2PtoolTip函数代码示例发布时间:2022-05-23
下一篇:
PHP w2PgetSysVal函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap