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


PHP alt_var函数代码示例

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


在下文中一共展示了alt_var函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: IN

}
if (isset($_GET['so']) && !strcasecmp($_GET['so'], 'asc')) {
    $SORT_ORDER = 'ASC';
    $SORT_ORDER_R = 'DESC';
} else {
    $SORT_ORDER = 'DESC';
    $SORT_ORDER_R = 'ASC';
}
$post_entry = '';
if ($usr->users_opt & 1048576 || $fids) {
    $qry_limit = $usr->users_opt & 1048576 ? '' : 'f.id IN (' . $fids . ') AND ';
    /* we need the total for the pager & we don't trust the user to pass it via GET or POST */
    $total = q_singleval("SELECT count(*)\n\t\t\t\t\tFROM phpgw_fud_msg m\n\t\t\t\t\tINNER JOIN phpgw_fud_thread t ON m.thread_id=t.id\n\t\t\t\t\tINNER JOIN phpgw_fud_forum f ON t.forum_id=f.id\n\t\t\t\t\tINNER JOIN phpgw_fud_cat c ON c.id=f.cat_id\n\t\t\t\t\tWHERE " . $qry_limit . " m.apr=1 AND m.poster_id=" . $uid);
    $c = uq("SELECT f.name, f.id, m.subject, m.id, m.post_stamp\n\t\t\tFROM phpgw_fud_msg m\n\t\t\tINNER JOIN phpgw_fud_thread t ON m.thread_id=t.id\n\t\t\tINNER JOIN phpgw_fud_forum f ON t.forum_id=f.id\n\t\t\tINNER JOIN phpgw_fud_cat c ON c.id=f.cat_id\n\t\t\tWHERE " . $qry_limit . " m.apr=1 AND m.poster_id=" . $uid . "\n\t\t\tORDER BY m.post_stamp " . $SORT_ORDER . " LIMIT " . qry_limit($THREADS_PER_PAGE, $start));
    while ($r = db_rowarr($c)) {
        $post_entry .= '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText"><a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=' . d_thread_view . '&amp;goto=' . $r[3] . '&amp;' . _rsid . '">' . $r[2] . '</a></td><td class="GenText" nowrap><a href="/egroupware/fudforum/3814588639/index.php?t=' . t_thread_view . '&amp;frm_id=' . $r[1] . '&amp;' . _rsid . '" class="GenLink">' . htmlspecialchars($r[0]) . '</a></td><td class="DateText" nowrap>' . strftime("%a, %d %B %Y %H:%M", $r[4]) . '</td></tr>';
    }
    $pager = tmpl_create_pager($start, $THREADS_PER_PAGE, $total, '/egroupware/fudforum/3814588639/index.php?t=showposts&amp;id=' . $uid . '&amp;' . _rsid);
}
if ($FUD_OPT_2 & 2) {
    $page_gen_end = gettimeofday();
    $page_gen_time = sprintf('%.5f', $page_gen_end['sec'] - $PAGE_TIME['sec'] + ($page_gen_end['usec'] - $PAGE_TIME['usec']) / 1000000);
    $page_stats = '<br /><div align="left" class="SmallText">Total time taken to generate the page: ' . $page_gen_time . ' seconds</div>';
} else {
    $page_stats = '';
}
echo $GLOBALS['fud_egw_hdr'];
?>
<table width="100%" border="0" cellspacing="3" cellpadding="5"><tr><td class="ForumBackground">
<table border="0" cellspacing="1" cellpadding="2" class="ContentTable">
<tr><th colspan=3>User Information</th></tr>
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:showposts.php

示例2: alt_var

		<select name="forum_limiter"><option value="">Search all Forums</option>
		<?php 
echo $forum_limit_data;
?>
		</select>
	</td>
</tr>
<tr class="<?php 
echo alt_var('color_alt', 'RowStyleA', 'RowStyleB');
?>
"><td class="GenText">Search Logic:</td><td colspan=2><select name="search_logic"><?php 
echo $logic_options;
?>
</select></td></tr>
<tr class="<?php 
echo alt_var('color_alt', 'RowStyleA', 'RowStyleB');
?>
"><td class="GenText">Sort Results By Date In:</td><td colspan=2><select name="sort_order"><?php 
echo $sort_options;
?>
</select></td></tr>
<tr class="RowStyleC"><td class="GenText" align="right" colspan=3><input type="submit" class="button" name="btn_submit" value="Search"></td></tr>
</table></form>
<?php 
echo $search_data;
?>
<div align="left"><?php 
echo $page_pager;
?>
</div>
<?php 
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:search.php

示例3: uq

    if ($k['p'] == $k['t']) {
        $k['p'] = 0;
    }
    return $k['v'][$k['p']++];
}
$TITLE_EXTRA = ': Avatar Selection Form';
/* here we draw the avatar control */
$icons_per_row = 5;
$c = uq('SELECT id, descr, img FROM phpgw_fud_avatar ORDER BY id');
$avatars_data = '';
$col = 0;
while ($r = db_rowarr($c)) {
    if (!($col++ % $icons_per_row)) {
        $avatars_data .= '</tr><tr>';
    }
    $avatars_data .= '<td class="' . alt_var('avatarsel_cl', 'Av1', 'Av2') . '">
<a class="GenLink" href="javascript: window.opener.document.fud_register.reg_avatar.value=\'' . $r[0] . '\'; window.opener.document.reg_avatar_img.src=\'images/avatars/' . $r[2] . '\'; window.close();"><img src="images/avatars/' . $r[2] . '" alt="" /><br /><font class="SmallText">' . $r[1] . '</font></a></td>';
}
if (!$avatars_data) {
    $avatars_data = '<td class="NoAvatar">No Avatars available</td>';
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-15">
<title><?php 
echo $GLOBALS['FORUM_TITLE'] . $TITLE_EXTRA;
?>
</title>
<script language="JavaScript" src="<?php 
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:avatarsel.php

示例4: alt_var

		LEFT JOIN phpgw_fud_users u ON ui.ignore_id=u.id
		WHERE ui.user_id=' . _uid);
$ignore_list = '';
if ($r = @db_rowarr($c)) {
    do {
        if ($r[0]) {
            $homepage_link = $r[6] ? '<a class="GenLink" href="' . $r[6] . '" target="_blank"><img src="/egroupware/fudforum/3814588639/theme/default/images/homepage.gif" alt="" /></a>' : '';
            $email_link = $FUD_OPT_2 & 1073741824 ? '<a href="/egroupware/fudforum/3814588639/index.php?t=email&amp;toi=' . $r[2] . '&amp;' . _rsid . '" class="GenLink"><img src="/egroupware/fudforum/3814588639/theme/default/images/msg_email.gif" alt="" /></a>' : '';
            $ignore_list .= '<tr class="' . alt_var('ignore_alt', 'RowStyleA', 'RowStyleB') . '">
	<td width="100%" class="GenText"><a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=usrinfo&amp;id=' . $r[2] . '&amp;' . _rsid . '">' . $r[3] . '</a>&nbsp;<font class="SmallText">(<a href="/egroupware/fudforum/3814588639/index.php?t=ignore_list&amp;del=' . $r[0] . '&amp;' . _rsid . '" class="GenLink">remove</a>)</font></td>
	<td align="center">' . $r[5] . '</td>
	<td align="center" nowrap>' . strftime("%a, %d %B %Y %H:%M", $r[4]) . '</td>
	<td class="GenText" nowrap><a href="/egroupware/fudforum/3814588639/index.php?t=showposts&amp;' . _rsid . '&amp;id=' . $r[2] . '" class="GenLink"><img src="/egroupware/fudforum/3814588639/theme/default/images/show_posts.gif" alt="" /></a> ' . $email_link . ' ' . $homepage_link . '</td>
</tr>';
        } else {
            $ignore_list .= '<tr class="' . alt_var('ignore_alt', 'RowStyleA', 'RowStyleB') . '">
	<td width="100%" colspan=4 class="GenText"><font class="anon">' . $GLOBALS['ANON_NICK'] . '</font>&nbsp;<font class="SmallText">(<a href="/egroupware/fudforum/3814588639/index.php?t=ignore_list&amp;del=' . $r[1] . '&amp;' . _rsid . '" class="GenLink">remove</a>)</font></td>
</tr>';
        }
    } while ($r = db_rowarr($c));
    $ignore_list = '<table border="0" cellspacing="1" cellpadding="2" class="ContentTable">
<tr><th>Ignored Users</th><th nowrap align="center">Post Count</th><th nowrap align="center">Registered On</th><th nowrap align="center">Action</th></tr>
' . $ignore_list . '
</table>';
}
if ($FUD_OPT_2 & 2) {
    $page_gen_end = gettimeofday();
    $page_gen_time = sprintf('%.5f', $page_gen_end['sec'] - $PAGE_TIME['sec'] + ($page_gen_end['usec'] - $PAGE_TIME['usec']) / 1000000);
    $page_stats = '<br /><div align="left" class="SmallText">Total time taken to generate the page: ' . $page_gen_time . ' seconds</div>';
} else {
    $page_stats = '';
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:ignore_list.php

示例5: make_email_message

function make_email_message(&$body, &$obj, $iemail_unsub)
{
    $TITLE_EXTRA = $iemail_poll = $iemail_attach = '';
    if ($obj->poll_cache) {
        $pl = @unserialize($obj->poll_cache);
        if (is_array($pl) && count($pl)) {
            foreach ($pl as $k => $v) {
                $length = $v[1] && $obj->total_votes ? round($v[1] / $obj->total_votes * 100) : 0;
                $iemail_poll .= '<tr class="' . alt_var('msg_poll_alt_clr', 'RowStyleB', 'RowStyleA') . '"><td>' . $i . '.</td><td>' . $v[0] . '</td><td><img src="/egroupware/fudforum/3814588639/theme/default/images/poll_pix.gif" alt="" height="10" width="' . $length . '" /> ' . $v[1] . ' / ' . $length . '%</td></tr>';
            }
            $iemail_poll = '<table border=0 cellspacing=1 cellpadding=2 class="PollTable">
<tr><th nowrap colspan=3>' . $obj->poll_name . '<img src="blank.gif" alt="" height=1 width=10 /><font size="-1">[ ' . $obj->total_votes . ' vote(s) ]</font></th></tr>
' . $iemail_poll . '
</table><p>';
        }
    }
    if ($obj->attach_cnt && $obj->attach_cache) {
        $atch = @unserialize($obj->attach_cache);
        if (is_array($atch) && count($atch)) {
            foreach ($atch as $v) {
                $sz = $v[2] / 1024;
                $sz = $sz < 1000 ? number_format($sz, 2) . 'KB' : number_format($sz / 1024, 2) . 'MB';
                $iemail_attach .= '<tr>
<td valign="middle"><a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=getfile&amp;id=' . $v[0] . '&amp;' . _rsid . '"><img alt="" src="' . $GLOBALS['WWW_ROOT'] . 'images/mime/' . $v[4] . '" /></a></td>
<td><font class="GenText"><b>Attachment:</b></font> <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=getfile&amp;id=' . $v[0] . '&amp;' . _rsid . '">' . $v[1] . '</a><br />
<font class="SmallText">(Size: ' . $sz . ', Downloaded ' . $v[3] . ' time(s))</font></td></tr>';
            }
            $iemail_attach = '<p>
<table border=0 cellspacing=0 cellpadding=2>
' . $iemail_attach . '
</table>';
        }
    }
    return '<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-15">
<title>' . $GLOBALS['FORUM_TITLE'] . $TITLE_EXTRA . '</title>
<script language="JavaScript" src="' . $GLOBALS['WWW_ROOT'] . '/lib.js" type="text/javascript"></script>
<link rel="StyleSheet" href="/egroupware/fudforum/3814588639/theme/default/forum.css" type="text/css">
</head>
<body>
<table width="100%" border="0" cellspacing="3" cellpadding="5"><tr><td class="ForumBackground">
<table border="0" cellspacing="1" cellpadding="2" class="ContentTable">
<tr class="RowStyleB">
	<td width="33%"><b>Subject:</b> ' . $obj->subject . '</td>
	<td width="33%"><b>Author:</b> ' . $obj->alias . '</td>
	<td width="33%"><b>Date:</b> ' . strftime("%a, %d %B %Y %H:%M", $obj->post_stamp) . '</td>
</tr>
<tr class="RowStyleA">
	<td colspan="3">
	' . $iemail_poll . '
	' . $body . '
	' . $iemail_attach . '
	</td>
</tr>
<tr class="RowStyleB">
	<td colspan="3">
	[ <a href="/egroupware/fudforum/3814588639/index.php?t=post&reply_to=' . $obj->id . '">Reply</a> ][ <a href="/egroupware/fudforum/3814588639/index.php?t=post&reply_to=' . $obj->id . '&quote=true">Quote</a> ][ <a href="/egroupware/fudforum/3814588639/index.php?t=rview&goto=' . $obj->id . '">View Topic/Message</a> ]' . $iemail_unsub . '
	</td>
</tr>
</table>
</td></tr></table></body></html>';
}
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:64,代码来源:mmod.php

示例6: date

if ($r = @db_rowarr($c)) {
    do {
        $homepage_link = $r[7] ? '<a class="GenLink" href="' . $r[7] . '" target="_blank"><img src="/egroupware/fudforum/3814588639/theme/default/images/homepage.gif" alt="" /></a>' : '';
        if (!($r[5] & 32768) && $FUD_OPT_2 & 32 || $usr->users_opt & 1048576) {
            $online_status = $r[8] + $LOGEDIN_TIMEOUT * 60 > __request_timestamp__ ? '<img src="/egroupware/fudforum/3814588639/theme/default/images/online.gif" title="' . $r[2] . ' is currently online" alt="' . $r[2] . ' is currently online" />' : '<img src="/egroupware/fudforum/3814588639/theme/default/images/offline.gif" title="' . $r[2] . ' is currently offline" alt="' . $r[2] . ' is currently offline" />';
        } else {
            $online_status = '';
        }
        if ($r[5] && substr($r[4], 4) == date('md')) {
            $age = date('Y') - substr($r[4], 0, 4);
            $bday_indicator = '<img src="blank.gif" alt="" width=10 height=1 /><img src="/egroupware/fudforum/3814588639/theme/default/images/bday.gif" alt="" />Today ' . $r[2] . ' turns ' . $age;
        } else {
            $bday_indicator = '';
        }
        $contact_link = $FUD_OPT_1 & 1024 ? '<a href="/egroupware/fudforum/3814588639/index.php?t=ppost&amp;' . _rsid . '&amp;toi=' . urlencode($r[0]) . '" class="GenLink">' . $r[2] . '</a>' : '<a href="/egroupware/fudforum/3814588639/index.php?t=email&amp;toi=' . $r[1] . '&amp;' . _rsid . '" class="GenLink">' . $r[2] . '</a>';
        $buddies .= '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '">
	<td align="center">' . $online_status . '</td>
	<td width="100%" class="GenText">' . $contact_link . '&nbsp;<font class="SmallText">(<a href="/egroupware/fudforum/3814588639/index.php?t=buddy_list&amp;' . _rsid . '&amp;del=' . $r[0] . '" class="GenLink">remove</a>)</font>&nbsp;' . $bday_indicator . '</td>
	<td align="center">' . $r[6] . '</td>
	<td align="center" nowrap>' . strftime("%a, %d %B %Y %H:%M", $r[3]) . '</td>
	<td class="GenText" nowrap><a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=usrinfo&amp;id=' . $r[1] . '&amp;' . _rsid . '"><img src="/egroupware/fudforum/3814588639/theme/default/images/msg_about.gif" alt="" /></a>&nbsp;<a href="/egroupware/fudforum/3814588639/index.php?t=showposts&amp;' . _rsid . '&amp;id=' . $r[1] . '" class="GenLink"><img src="/egroupware/fudforum/3814588639/theme/default/images/show_posts.gif" alt="" /></a> ' . $homepage_link . '</td>
</tr>';
    } while ($r = db_rowarr($c));
    $buddies = '<table border="0" cellspacing="1" cellpadding="2" class="ContentTable">
<tr><th>Status</th><th>My Buddies</th><th nowrap align="center">Post Count</th><th nowrap align="center">Registered On</th><th nowrap align="center">Action</th></tr>
' . $buddies . '
</table>';
}
if ($FUD_OPT_2 & 2) {
    $page_gen_end = gettimeofday();
    $page_gen_time = sprintf('%.5f', $page_gen_end['sec'] - $PAGE_TIME['sec'] + ($page_gen_end['usec'] - $PAGE_TIME['usec']) / 1000000);
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:buddy_list.php

示例7: uq

$buddies = '';
if ($all) {
    $all_v = '';
    $all_d = 'none';
} else {
    $all_v = '1';
    $all_d = 'all';
}
$c = uq('SELECT u.alias FROM phpgw_fud_buddy b INNER JOIN phpgw_fud_users u ON b.bud_id=u.id WHERE b.user_id=' . _uid . ' AND b.user_id>1');
while ($r = db_rowarr($c)) {
    $checked = $all ? ' checked' : '';
    $buddies .= '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText">' . $r[0] . '</td><td align="center"><input type="checkbox" name="names[]" value="' . $r[0] . '"' . $checked . '></td></tr>';
}
$qbud_data = $buddies ? '<tr><th width="100%">Nick Name</th><th nowrap>Selected [<a class="thLnk" href="/egroupware/fudforum/3814588639/index.php?t=qbud&amp;' . _rsid . '&amp;all=' . $all_v . '">' . $all_d . '</a>]</th></tr>
' . $buddies . '
<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td colspan=2 class="GenText" align="right"><input type="submit" class="button" name="submit" value="Add Selected"></td></tr>' : '<tr class="RowStyleA"><td class="GenText" align="center">No buddies to choose from</td></tr>';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-15">
<title><?php 
echo $GLOBALS['FORUM_TITLE'] . $TITLE_EXTRA;
?>
</title>
<script language="JavaScript" src="<?php 
echo $GLOBALS['WWW_ROOT'];
?>
/lib.js" type="text/javascript"></script>
<link rel="StyleSheet" href="/egroupware/fudforum/3814588639/theme/default/forum.css" type="text/css">
</head>
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:qbud.php

示例8: alt_var

}
if (!$subscribed_forum_data) {
    $subscribed_forum_data = '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td colspan=2>Non sei iscritto ad alcun forum</td></tr>';
}
/* Since a person can have MANY subscribed threads, we need a pager & for the pager we need a entry count */
$total = q_singleval('SELECT count(*) FROM phpgw_fud_thread_notify tn LEFT JOIN phpgw_fud_thread t ON tn.thread_id=t.id INNER JOIN phpgw_fud_msg m ON t.root_msg_id=m.id WHERE tn.user_id=' . _uid . ' ' . $lmt);
if (!isset($_GET['start']) || !($start = (int) $_GET['start'])) {
    $start = 0;
}
$subscribed_thread_data = '';
$c = uq('SELECT t.id, m.subject FROM phpgw_fud_thread_notify tn INNER JOIN phpgw_fud_thread t ON tn.thread_id=t.id INNER JOIN phpgw_fud_msg m ON t.root_msg_id=m.id WHERE tn.user_id=' . _uid . ' ' . $lmt . ' ORDER BY t.last_post_id DESC LIMIT ' . qry_limit($THREADS_PER_PAGE, $start));
while ($r = db_rowarr($c)) {
    $subscribed_thread_data .= '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td width="100%"><a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=' . d_thread_view . '&amp;th=' . $r[0] . '&amp;' . _rsid . '">' . $r[1] . '</a></td><td nowrap><a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=subscribed&amp;th=' . $r[0] . '&amp;' . _rsid . '">Cancella iscrizione</a> | <a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=' . d_thread_view . '&amp;th=' . $r[0] . '&amp;' . _rsid . '" target="_blank">Visualizza topic</a></td></tr>';
}
if (!$subscribed_thread_data) {
    $subscribed_thread_data = '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td colspan=2>Non sei iscritto ad alcun topic</td></tr>';
}
$pager = tmpl_create_pager($start, $THREADS_PER_PAGE, $total, '/egroupware/fudforum/3814588639/index.php?t=subscribed&a=1&' . _rsid, '#fff');
if ($FUD_OPT_2 & 2) {
    $page_gen_end = gettimeofday();
    $page_gen_time = sprintf('%.5f', $page_gen_end['sec'] - $PAGE_TIME['sec'] + ($page_gen_end['usec'] - $PAGE_TIME['usec']) / 1000000);
    $page_stats = '<br /><div align="left" class="SmallText">Tempo totale richiesto per generare la pagina: ' . $page_gen_time . ' secondi</div>';
} else {
    $page_stats = '';
}
echo $GLOBALS['fud_egw_hdr'];
?>
<table width="100%" border="0" cellspacing="3" cellpadding="5"><tr><td class="ForumBackground">
<?php 
echo $tabs;
?>
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:subscribed.php

示例9: alt_var

    if ($obj->user_id == '0') {
        $member_name = '<font class="anon">Anonimo</font>';
        $group_members_list .= '<tr class="' . alt_var('mem_list_alt', 'RowStyleA', 'RowStyleB') . '">
<td nowrap>' . $member_name . '</td>
' . $perm_table . '
<td nowrap>[<a href="/egroupware/fudforum/3814588639/index.php?t=groupmgr&amp;' . _rsid . '&amp;edit=' . $obj->mmid . '&amp;group_id=' . $obj->group_id . '">Modifica</a>]</td></tr>';
    } else {
        if ($obj->user_id == '2147483647') {
            $member_name = '<font class="reg">Tutti gli utenti registrati</font>';
            $group_members_list .= '<tr class="' . alt_var('mem_list_alt', 'RowStyleA', 'RowStyleB') . '">
<td nowrap>' . $member_name . '</td>
' . $perm_table . '
<td nowrap>[<a href="/egroupware/fudforum/3814588639/index.php?t=groupmgr&amp;' . _rsid . '&amp;edit=' . $obj->mmid . '&amp;group_id=' . $obj->group_id . '">Modifica</a>]</td></tr>';
        } else {
            $member_name = $obj->alias;
            $group_members_list .= '<tr class="' . alt_var('mem_list_alt', 'RowStyleA', 'RowStyleB') . '">
<td nowrap>' . $member_name . '</td>
' . $perm_table . '
<td nowrap>[<a href="/egroupware/fudforum/3814588639/index.php?t=groupmgr&amp;' . _rsid . '&amp;edit=' . $obj->mmid . '&amp;group_id=' . $obj->group_id . '">Modifica</a>] [<a href="/egroupware/fudforum/3814588639/index.php?t=groupmgr&amp;' . _rsid . '&amp;del=' . $obj->user_id . '&amp;group_id=' . $obj->group_id . '">Cancella</a>]</td></tr>';
        }
    }
}
$group_control_panel = '' . $group_selection . '
<br />
' . $indicator . '
<br />
<form method="post" action="/egroupware/fudforum/3814588639/index.php?t=groupmgr" name="groupmgr">
<table border="0" cellspacing="1" cellpadding="2" class="ContentTable">
' . $member_input . '
<tr class="RowStyleB">
	<td colspan=2>
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:groupmgr.php

示例10: substr_replace

        $last_post = 'n.d.';
    }
    if (!$r[2] || ($usr->users_opt & 1048576 || !empty($limit[$r[2]]) || $r[12])) {
        if (($p = strpos($r[0], '?')) !== false) {
            $action = substr_replace($r[0], '?' . _rsid . '&', $p, 1);
        } else {
            if (($p = strpos($r[0], '.php')) !== false) {
                $action = substr_replace($r[0], '.php?' . _rsid . '&', $p, 4);
            } else {
                $action = $r[0];
            }
        }
    } else {
        $action = 'Non disponi dei permessi necessari per visualizzare questo topic.';
    }
    $action_data .= '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '">
	<td class="GenText">' . $user_login . '</td>
	<td class="GenText">' . $action . '</td>
	<td class="DateText">' . strftime("%H:%M:%S", $r[5]) . '</td>
	<td class="SmallText">' . $last_post . '</td>
</tr>';
}
if ($FUD_OPT_2 & 2) {
    $page_gen_end = gettimeofday();
    $page_gen_time = sprintf('%.5f', $page_gen_end['sec'] - $PAGE_TIME['sec'] + ($page_gen_end['usec'] - $PAGE_TIME['usec']) / 1000000);
    $page_stats = '<br /><div align="left" class="SmallText">Tempo totale richiesto per generare la pagina: ' . $page_gen_time . ' secondi</div>';
} else {
    $page_stats = '';
}
echo $GLOBALS['fud_egw_hdr'];
?>
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:actions.php

示例11: alt_var

        }
        $vote_lnk = '';
        if (!$obj->cant_vote && (!$obj->poll_expiry_date || $obj->poll_expiry_date < __request_timestamp__)) {
            if ($obj->md || $obj->gco & 512 && (!($obj->thread_opt & 1) || $obj->gco & 4096)) {
                if (!$obj->max_votes || $obj->total_votes < $obj->max_votes) {
                    $vote_lnk = '&nbsp;<b>::</b>&nbsp;<a href="/egroupware/fudforum/3814588639/index.php?t=' . d_thread_view . '&amp;goto=' . $obj->id . '&amp;' . _rsid . '">Vota</a>&nbsp;<b>::</b>&nbsp;';
                }
            }
        }
        $view_res_lnk = $obj->total_votes ? '<a href="/egroupware/fudforum/3814588639/index.php?t=' . d_thread_view . '&amp;goto=' . $obj->id . '&amp;pl_view=' . $obj->poid . '&amp;' . _rsid . '">Vedi risultati</a>&nbsp;<b>::</b>&nbsp;' : '';
        if ($obj->owner && (!($obj->users_opt & 32768) || $usr->users_opt & 1048576) && $FUD_OPT_2 & 32) {
            $online_indicator = $obj->last_visit > __request_timestamp__ ? '<img src="/egroupware/fudforum/3814588639/theme/italian/images/online.gif" title="' . $user_login . ' è attualmente online" alt="' . $user_login . ' è attualmente online" />&nbsp;' : '<img src="/egroupware/fudforum/3814588639/theme/italian/images/offline.gif" title="' . $user_login . '  è attualmente offline" alt="' . $user_login . '  è attualmente offline" />&nbsp;';
        } else {
            $online_indicator = '';
        }
        $poll_entries .= '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '">
	<td width="100%">' . $obj->name . '</td>
	<td nowrap>' . strftime("%a, %d %B %Y %H:%M", $obj->creation_date) . '</td>
	<td nowrap>' . $online_indicator . '<a href="/egroupware/fudforum/3814588639/index.php?t=usrinfo&amp;id=' . $obj->owner . '&amp;' . _rsid . '">' . $obj->alias . '</a></td>
	<td align="center" nowrap>' . $obj->total_votes . '</td>
	<td align="center" nowrap>' . $vote_lnk . $view_res_lnk . '</td>
</tr>';
    }
    if ($ttl > $POLLS_PER_PAGE) {
        $pager = tmpl_create_pager($start, $POLLS_PER_PAGE, $ttl, '/egroupware/fudforum/3814588639/index.php?t=polllist&amp;oby=' . $oby . '&amp;uid=' . $uid);
    }
} else {
    $poll_entries = '<tr><td colspan="5" align="center">There are no accessible polls.</td></tr>';
}
if ($FUD_OPT_2 & 2) {
    $page_gen_end = gettimeofday();
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:polllist.php

示例12: uq

    $find_user_data = '';
    $c = uq('SELECT alias FROM phpgw_fud_users ' . $qry . ' AND id>1');
    $i = 0;
    while ($r = db_rowarr($c)) {
        if ($overwrite) {
            $retlink = 'javascript: window.opener.document.' . $js_redr . '.value=\'' . addcslashes($r[0], "'\\") . '\'; window.close();';
        } else {
            $retlink = 'javascript:
						if (!window.opener.document.' . $js_redr . '.value) {
							window.opener.document.' . $js_redr . '.value = \'' . addcslashes($r[0], "'\\") . '\';
						} else {
							window.opener.document.' . $js_redr . '.value = window.opener.document.' . $js_redr . '.value + \'; \' + \'' . addcslashes($r[0], "'\\") . '; \';
						}
					window.close();';
        }
        $find_user_data .= '<tr class="' . alt_var('pmuserloc_alt', 'RowStyleA', 'RowStyleB') . '"><td><a href="' . $retlink . '">' . $r[0] . '</a></td></tr>';
        $i++;
    }
    if (!$find_user_data) {
        $find_user_data = '<tr><td colspan=2>No Result</td>';
    }
} else {
    $find_user_data = '';
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-15">
<title><?php 
echo $GLOBALS['FORUM_TITLE'] . $TITLE_EXTRA;
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:pmuserloc.php

示例13: qry_limit

}
$lmt = ' LIMIT ' . qry_limit($count, $start);
$admin_opts = $adm ? '<th>Admin Opts.</th>' : '';
$find_user_data = '';
$c = uq('SELECT home_page, users_opt, alias, join_date, posted_msg_count, id FROM phpgw_fud_users WHERE ' . $qry . ' id>1 ORDER BY ' . $ord . ' ' . $lmt);
while ($r = db_rowobj($c)) {
    $pm_link = $FUD_OPT_1 & 1024 && _uid ? '<a href="/egroupware/index.php?menuaction=messenger.uimessenger.compose&message_to=;' . _rsid . '&amp;message_to=' . $u->alias . '" class="GenLink"><img src="/egroupware/fudforum/3814588639/theme/italian/images/msg_pm.gif" alt="" /></a>' : '';
    $homepage_link = $r->home_page ? '<a class="GenLink" href="' . $r->home_page . '" target="_blank"><img alt="" src="/egroupware/fudforum/3814588639/theme/italian/images/homepage.gif" /></a>' : '';
    $email_link = $FUD_OPT_2 & 1073741824 && $r->users_opt & 16 ? '<a href="/egroupware/fudforum/3814588639/index.php?t=email&amp;toi=' . $r->id . '&amp;' . _rsid . '" class="GenLink"><img src="/egroupware/fudforum/3814588639/theme/italian/images/msg_email.gif" alt="" /></a>' : '';
    if ($adm) {
        $admi = $r->users_opt & 65536 ? '<a href="' . $GLOBALS['WWW_ROOT'] . 'adm/admuser.php?act=block&usr_id=' . $r->id . '&' . _rsid . '">UnBan</a>' : '<a href="' . $GLOBALS['WWW_ROOT'] . 'adm/admuser.php?act=block&usr_id=' . $r->id . '&' . _rsid . '">Ban</a>';
        $admi = '<td class="SmallText" nowrap><a href="' . $GLOBALS['WWW_ROOT'] . 'adm/admuser.php?usr_id=' . $r->id . '&' . _rsid . '&act=1">Edit</a> || ' . $admi . '</td>';
    } else {
        $admi = '';
    }
    $find_user_data .= '<tr class="' . alt_var('finduser_alt', 'RowStyleA', 'RowStyleB') . '"><td nowrap class="GenText"><a class="GenLink" href="/egroupware/fudforum/3814588639/index.php?t=usrinfo&amp;id=' . $r->id . '&amp;' . _rsid . '">' . $r->alias . '</a></td><td align="center" nowrap>' . $r->posted_msg_count . '</td><td class="DateText" nowrap>' . strftime("%a, %d %B %Y", $r->join_date) . '</td><td nowrap class="GenText"><a href="/egroupware/fudforum/3814588639/index.php?t=showposts&amp;id=' . $r->id . '&amp;' . _rsid . '" class="GenLink"><img alt="" src="/egroupware/fudforum/3814588639/theme/italian/images/show_posts.gif" /></a>
' . $email_link . '
' . $pm_link . '
' . $homepage_link . '</td>' . $admi . '</tr>';
}
if (!$find_user_data) {
    $colspan = $adm ? 5 : 4;
    $find_user_data = '<tr class="RowStyleA"><td colspan="' . $colspan . '" width="100%" class="GenText">Nessun utente trovato</td></tr>';
}
$pager = '';
if (!$qry) {
    $total = q_singleval('SELECT count(*) FROM phpgw_fud_users ' . $qry);
    if ($total > $count) {
        $pg = '/egroupware/fudforum/3814588639/index.php?t=finduser&amp;' . _rsid . '&amp;';
        if ($usr_login) {
            $pg .= urlencode($usr_login) . '&amp;';
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:finduser.php

示例14: get_err

    $subject_error = get_err('subj');
    $body_error = get_err('body');
    $fname = isset($_POST['fname']) ? $_POST['fname'] : '';
    $femail = isset($_POST['femail']) ? $_POST['femail'] : '';
    $subject = isset($_POST['subject']) ? htmlspecialchars($_POST['subject']) : $data->subject;
    $form_data = '<tr class="' . alt_var('page_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText" nowrap>Your Name:</td><td width="100%">' . $usr->alias . '</td></tr>
<tr class="' . alt_var('page_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText" nowrap>Your Email:</td><td width="100%">' . $usr->email . '</td></tr>
<tr class="' . alt_var('page_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText" nowrap>Friend&#39;s Name:</td><td width="100%"><input type="text" name="fname" value="' . htmlspecialchars($fname) . '"></td></tr>
<tr class="' . alt_var('page_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText" valign="top" nowrap><font class="SmallText">Friend&#39;s Email:<br /><i>required</i></font></td><td valign="top"><input type="text" name="femail" value="' . htmlspecialchars($femail) . '">' . $femail_error . '</td></tr>
<tr class="' . alt_var('page_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText" valign="top" nowrap><font class="SmallText">Subject:<br /><i>required</i></font></td><td nowrap valign="top"><input type="text" name="subj" value="' . $subject . '">' . $subject_error . '</td></tr>
<tr class="' . alt_var('page_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText" valign="top" nowrap>Message:<font class="SmallText"><br /><i>required</i></font></td><td valign="top" nowrap><textarea name="body" rows="19" cols="78" wrap="PHYSICAL">' . $body . '</textarea>' . $body_error . '</td></tr>
<tr class="' . alt_var('page_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText" colspan=2 align="right"><input type="submit" class="button" name="submit" value="Send Email Now"></td></tr>';
} else {
    $form_data = '<tr class="' . alt_var('page_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText" align="center"><font class="SmallText">Copy this message into a mail client of your choice to send it to your friend(s).</font></td></tr>
<tr class="' . alt_var('page_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText"><textarea name="body" rows="19" cols="78">' . $body . '</textarea></td></tr>
<tr class="' . alt_var('page_alt', 'RowStyleA', 'RowStyleB') . '"><td class="GenText" align="right"><input type="submit" class="button" name="done" value="Done"></td></tr>';
}
$form_data = str_replace('\\n', "\n", $form_data);
echo $GLOBALS['fud_egw_hdr'];
?>
<table width="100%" border="0" cellspacing="3" cellpadding="5"><tr><td class="ForumBackground">
<div align=center>
<?php 
echo $remail_error;
?>
<form action="/egroupware/fudforum/3814588639/index.php?t=remail" name="remail" method="post"><input type="hidden" name="posted" value="1">
<table border="0" cellspacing="1" cellpadding="2" class="ContentTable">
<tr><th colspan=2>Email This Topic To A Friend</th></tr>
<?php 
echo $form_data;
?>
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:remail.php

示例15: alt_var

			<tr><td colspan=2 align=right><input type="submit" class="button" name="Send" value="Invia"></td></tr>
			</form>
			</table>
			</td></tr>' : '';
$im_jabber = $u->jabber ? '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td nowrap class="GenText">Jabber:</td><td class="GenText">' . $u->jabber . '</td></tr>' : '';
$im_aim = $u->aim ? '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td nowrap class="GenText">AIM Handle:</td><td class="GenText"><a href="aim:goim?screenname=' . $u->aim . '&amp;message=Hello+Are+you+there?" class="GenLink">' . $u->aim . '</a></td></tr>' : '';
$im_yahoo = $u->yahoo ? '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td nowrap class="GenText">Yahoo Messenger:</td><td class="GenText"><a href="http://edit.yahoo.com/config/send_webmesg?.target=' . $u->yahoo . '&amp;.src=pg" class="GenLink">' . $u->yahoo . '</a></td></tr>' : '';
$im_msnm = $u->msnm ? '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td nowrap class="GenText">MSN Messenger:</td><td class="GenText">' . $u->msnm . '</td></tr>' : '';
if ($u->bday) {
    $bday = convert_bdate($u->bday, '%B');
    $birth_date = '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td nowrap class="GenText">Data di nascita:</td><td class="GenText">' . $bday['month'] . ' ' . $bday['day'] . ', ' . $bday['year'] . '</td></tr>';
} else {
    $birth_date = '';
}
if ($FUD_OPT_2 & 2048 && $u->affero) {
    $im_affero = '<tr class="' . alt_var('search_alt', 'RowStyleA', 'RowStyleB') . '"><td nowrap class="GenText">Affero Username</td><td class="GenText"><a href="http://svcs.affero.net/user-history.php?u=' . $u->affero . '" target="_blank">' . htmlspecialchars(urldecode($u->affero)) . '</a></td></tr>';
} else {
    $im_affero = '';
}
if ($FUD_OPT_2 & 2) {
    $page_gen_end = gettimeofday();
    $page_gen_time = sprintf('%.5f', $page_gen_end['sec'] - $PAGE_TIME['sec'] + ($page_gen_end['usec'] - $PAGE_TIME['usec']) / 1000000);
    $page_stats = '<br /><div align="left" class="SmallText">Tempo totale richiesto per generare la pagina: ' . $page_gen_time . ' secondi</div>';
} else {
    $page_stats = '';
}
echo $GLOBALS['fud_egw_hdr'];
?>
<table width="100%" border="0" cellspacing="3" cellpadding="5"><tr><td class="ForumBackground">
<table border="0" cellspacing="1" cellpadding="2" class="ContentTable">
<tr><th colspan=2 width="100%">Profilo <?php 
开发者ID:BackupTheBerlios,项目名称:milaninegw-svn,代码行数:31,代码来源:usrinfo.php


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