当前位置: 首页>>代码示例>>PHP>>正文


PHP w2PshowImage函数代码示例

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


在下文中一共展示了w2PshowImage函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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 <eddieajau@users.sourceforge.net>
 */
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]my@mail.net[/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


注:本文中的w2PshowImage函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。