code
stringlengths 1
2.01M
| repo_name
stringlengths 3
62
| path
stringlengths 1
267
| language
stringclasses 231
values | license
stringclasses 13
values | size
int64 1
2.01M
|
|---|---|---|---|---|---|
{template header}
<!--{if empty($_REQUEST['inajax'])}-->
<div class="container">
<div class="ajax rtninfo">
<div class="ajaxbg">
<h4>{lang message_title}:</h4>
<p>$message</p>
<!--{if $redirect == 'BACK'}-->
<p><a href="###" onclick="history.back();">{lang message_back}</a></p>
<!--{elseif $redirect}-->
<p><a href="$redirect">{lang message_redirect}</a></p>
<script type="text/javascript">
function redirect(url, time) {
setTimeout("window.location='" + url + "'", time * 1000);
}
redirect('$redirect', 3);
</script>
<!--{/if}-->
</div>
</div>
</div>
<!--{else}-->
$message
<!--{/if}-->
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/message.htm
|
HTML
|
asf20
| 704
|
{template header}
<script src="js/common.js" type="text/javascript"></script>
<div class="container">
<div class="note">
<p class="i">{lang creditexchange_tips}</p>
</div>
<!--{if $status}-->
<div class="{if $status > 0}correctmsg{else}errormsg{/if}"><p>{if $status == 1}{lang creditexchange_updated}{elseif $status == -1}{lang creditexchange_invalid}{/if}</p></div>
<!--{/if}-->
<div class="hastabmenu">
<ul class="tabmenu">
<li class="tabcurrent"><a href="#" class="tabcurrent">{lang creditexchange_update}</a></li>
</ul>
<div class="tabcontentcur">
<form id="creditform" action="admin.php?m=credit&a=ls&addexchange=yes" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="dbtb">
<tr>
<td class="tbtitle">{lang creditexchange_fromto}:</td>
<td>
<select onchange="switchcredit('src', this.value)" name="appsrc">
<option>{lang creditexchange_select}</option>$appselect
</select><span id="src"></span>
>
<select onchange="switchcredit('desc', this.value)" name="appdesc">
<option>{lang creditexchange_select}</option>$appselect
</select><span id="desc"></span>
</td>
</tr>
<tr>
<td class="tbtitle">{lang creditexchange_ratio}:</td>
<td>
<input name="ratiosrc" size="3" value="$ratiosrc" class="txt" style="margin-right:0" />
:
<input name="ratiodesc" size="3" value="$ratiodesc" class="txt" />
</td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" value="{lang submit}" class="btn" />
<input type="button" value="{lang creditexchange_syncappcredits}" class="btn" onclick="location.href='admin.php?m=credit&a=sync&sid=$sid'" />
</td>
</tr>
</table>
<div style="display: none">
<script type="text/javascript">
var credit = new Array();
<!--{loop $creditselect $select}-->$select<!--{/loop}-->
<!--{if $appsrc}-->
setselect($('creditform').appsrc, $appsrc);
switchcredit('src', $appsrc);
<!--{/if}-->
<!--{if $appdesc}-->
setselect($('creditform').appdesc, $appdesc);
switchcredit('desc', $appdesc);
<!--{/if}-->
<!--{if $creditsrc}-->
setselect($('creditform').creditsrc, $creditsrc);
<!--{/if}-->
<!--{if $creditdesc}-->
setselect($('creditform').creditdesc, $creditdesc);
<!--{/if}-->
</script>
</div>
</form>
</div>
</div>
<br />
<h3>{lang creditexchange}</h3>
<div class="mainbox">
<!--{if $creditexchange}-->
<form action="admin.php?m=credit&a=ls&delexchange=yes" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
<tr>
<th><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">{lang badword_delete}</label></th>
<th style="padding-right: 11px; text-align: right">{lang creditexchange_fromto}</th>
<th></th>
<th style="text-align: center">{lang creditexchange_ratio}</th>
</tr>
<!--{loop $creditexchange $key $exchange}-->
<tr>
<td class="option"><input type="checkbox" name="delete[]" value="$key" class="checkbox" /></td>
<td align="right">$exchange[appsrc] $exchange[creditsrc]</td>
<td> > $exchange[appdesc] $exchange[creditdesc]</td>
<td align="center">$exchange[ratiosrc] : $exchange[ratiodesc]</td>
</tr>
<!--{/loop}-->
<tr class="nobg">
<td><input type="submit" value="{lang submit}" class="btn" /></td>
</tr>
</table>
</form>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_credit.htm
|
HTML
|
asf20
| 3,854
|
{template header}
<script src="js/common.js" type="text/javascript"></script>
<div class="container">
<h3 class="marginbot">
{lang feed_list}
<!--{if $user['allowadminnote'] || $user['isfounder']}--><a href="admin.php?m=note&a=ls" class="sgbtn">{lang note_list}</a><!--{/if}-->
<!--{if $user['allowadminlog'] || $user['isfounder']}--><a href="admin.php?m=log&a=ls" class="sgbtn">{lang menu_log}</a><!--{/if}-->
<a href="admin.php?m=mail&a=ls" class="sgbtn">{lang mail_queue}</a>
</h3>
<div class="mainbox">
<!--{if $feedlist}-->
<form action="admin.php?m=note&a=ls" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="datalist" style="table-layout:fixed">
<tr>
<th width="100">{lang dateline}</th>
<th> </th>
</tr>
<!--{loop $feedlist $feed}-->
<tr>
<td>$feed[dateline]</td>
<td>$feed[title_template]</td>
</tr>
<!--{/loop}-->
<tr class="nobg">
<td></td>
<td class="tdpage">$multipage</td>
</tr>
</table>
</form>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
</div>
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_feed.htm
|
HTML
|
asf20
| 1,221
|
{template header}
<script src="js/common.js" type="text/javascript"></script>
<div class="container">
<h3 class="marginbot">
<a href="admin.php?m=feed&a=ls" class="sgbtn">{lang feed_list}</a>
{lang note_list}
<!--{if $user['allowadminlog'] || $user['isfounder']}--><a href="admin.php?m=log&a=ls" class="sgbtn">{lang menu_log}</a><!--{/if}-->
<a href="admin.php?m=mail&a=ls" class="sgbtn">{lang mail_queue}</a>
</h3>
<!--{if $status == 2}-->
<div class="correctmsg"><p>{lang note_list_updated}</p></div>
<!--{/if}-->
<div class="mainbox">
<!--{if $notelist}-->
<form action="admin.php?m=note&a=ls" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="datalist" onmouseover="addMouseEvent(this);" style="table-layout:fixed">
<tr>
<th width="60"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">{lang note_delete}</label></th>
<th width="130">{lang note_operation}</th>
<th width="60">{lang note_times}</th>
<th width="50">{lang note_param}</th>
<th width="140">{lang note_last_note_time}</th>
<!--{loop $applist $app}-->
<!--{if $app['recvnote']}-->
<th width="100">$app[name]</th>
<!--{/if}-->
<!--{/loop}-->
</tr>
<!--{loop $notelist $note}-->
{eval $debuginfo = htmlspecialchars(str_replace(array("\n", "\r", "'"), array('', '', "\'"), $note[getdata].$note[postdata2])); }
<tr>
<td><input type="checkbox" name="delete[]" value="$note[noteid]" class="checkbox" /></td>
<td><strong>$note[operation]</strong></td>
<td>$note[totalnum]</td>
<td><a href="###" onclick="alert('$debuginfo');">{lang note_view}</a></td>
<td>$note[dateline]</td>
<!--{loop $applist $appid $app}-->
<!--{if $app['recvnote']}-->
<td>$note[status][$appid]</td>
<!--{/if}-->
<!--{/loop}-->
</tr>
<!--{/loop}-->
<tr class="nobg">
<td><input type="submit" value="{lang submit}" class="btn" /></td>
<td class="tdpage" colspan="{eval echo count($applist) + 4;}">$multipage</td>
</tr>
</table>
</form>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
</div>
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_note.htm
|
HTML
|
asf20
| 2,364
|
{template header}
<div class="container">
<h3 class="marginbot">
<a href="admin.php?m=feed&a=ls" class="sgbtn">{lang feed_list}</a>
<!--{if $user['allowadminnote'] || $user['isfounder']}--><a href="admin.php?m=note&a=ls" class="sgbtn">{lang note_list}</a><!--{/if}-->
{lang menu_log}
<a href="admin.php?m=mail&a=ls" class="sgbtn">{lang mail_queue}</a>
</h3>
<div class="mainbox">
<!--{if $loglist}-->
<table class="datalist">
<tr>
<th>{lang log_operator}</th>
<th>{lang log_ip}</th>
<th>{lang log_time}</th>
<th>{lang log_operation}</th>
<th>{lang log_extra}</th>
</tr>
<!--{loop $loglist $log}-->
<tr>
<td><strong>$log[1]</strong></td>
<td>$log[2]</td>
<td>$log[3]</td>
<td>$log[4]</td>
<td>$log[5]</td>
</tr>
<!--{/loop}-->
<tr class="nobg">
<td class="tdpage" colspan="5">$multipage</td>
</tr>
</table>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
</div>
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_log.htm
|
HTML
|
asf20
| 1,097
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset={UC_CHARSET}">
<meta name="keywords" content="">
<meta name="description" content="">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta http-equiv="MSThemeCompatible" content="Yes">
<link rel="stylesheet" type="text/css" href="{UC_API}/images/default/style.css" />
</head>
<body><div id="append"></div>
<div class="ucbody">
<h1>{lang pm_central}</h1>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/header_client.htm
|
HTML
|
asf20
| 625
|
{template header_client}
{template pm_nav}
<div class="ucinfo">
<form method="post" action="index.php?m=pm_client&a=delete&folder=$folder&filter=$filter&$extra">
<input type="hidden" name="formhash" value="{FORMHASH}" />
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="pmlist">
{eval $pmrange = 0;}
<!--{if $pmlist}-->
<!--{if $filter != 'announcepm'}-->
<tr class="ctrlbar">
<td class="sel"><input type="checkbox" name="chkall" onclick="checkall(this.form, 'delete')" /></td>
<td class="ava"><button name="pmsend" type="submit">{lang delete}</button></td>
<td class="pef"></td>
<td class="">
<!--{if $folder != 'newbox' && $multipage}-->$multipage<!--{/if}-->
</td>
</tr>
<!--{/if}-->
<!--{loop $pmlist $pm}-->
<tr<!--{if $folder != 'newbox' && $pm[newstatus] == 1}--> class="onset"<!--{/if}-->>
<td class="sel"><!--{if $filter != 'announcepm'}--><input type="checkbox" name="delete[]" value="{if $folder != 'savebox'}$pm[avataruid]{else}$pm[pmid]{/if}" /><!--{/if}--></td>
<!--{if $filter != 'announcepm' && $folder != 'savebox'}-->
<td class="ava">
<!--{if $pm[avataruid]}--><img src="avatar.php?uid=$pm[avataruid]&size=small" /><!--{/if}-->
</td>
<td class="per">
<!--{if $folder == 'inbox' || $folder == 'announcebox'}-->
<!--{if $pm[msgfromid]}-->$pm[msgfrom]<!--{else}--><b>{lang pm_system_pm}</b><!--{/if}-->
<!--{elseif $folder == 'newbox'}-->
<!--{if $pm[newstatus] == 1}--><!--{if $pm[msgfromid]}-->$pm[msgfrom]<!--{else}--><b>{lang pm_system_pm}</b><!--{/if}--><!--{else}-->$pm[msgto]<!--{/if}-->
<!--{else}-->
$pm[msgto]
<!--{/if}-->
<p>$pm['daterangetext'] <!--{if $pm['daterange'] <= 3}-->$pm[datelinetime]<!--{else}-->$pm[dateline]<!--{/if}--></p>
</td>
<td class="title"><h2>
<!--{if $pm[avataruid]}-->
<!--{if $folder == 'newbox'}-->
<!--{if $pm[newstatus] == 1}-->
<a class="boldtext" href="index.php?m=pm_client&a=view&touid=$pm[avataruid]&folder=inbox&filter=$filter&from=newbox&scroll=bottom&$extra" id="pm_view_$pm[pmid]">$pm[subject]</a>
<!--{else}-->
<a class="boldtext" href="index.php?m=pm_client&a=view&touid=$pm[avataruid]&folder=outbox&filter=$filter&from=newbox&scroll=bottom&$extra" id="pm_view_$pm[pmid]">$pm[subject]</a>
<!--{/if}-->
<!--{else}-->
<a <!--{if $pm[newstatus]}-->class="boldtext" <!--{/if}-->href="index.php?m=pm_client&a=view&touid=$pm[avataruid]&folder=$folder&filter=$filter&scroll=bottom&$extra" id="pm_view_$pm[pmid]">$pm[subject]</a>
<!--{/if}-->
<!--{else}-->
<a <!--{if $pm[newstatus]}-->class="boldtext" <!--{/if}-->href="index.php?m=pm_client&a=view&pmid=$pm[pmid]&folder=$folder&filter=$filter&scroll=bottom&$extra" id="pm_view_$pm[pmid]">$pm[subject]</a>
<!--{/if}-->
</h2><p>$pm[message]</p>
<!--{else}-->
<td colspan="3" class="savetitle"><h2>
<!--{if $folder == 'savebox'}-->
<a href="index.php?m=pm_client&a=send&pmid=$pm[pmid]&do=savebox&folder=savebox&$extra">$pm[subject]</a>
<!--{else}-->
<a href="index.php?m=pm_client&a=view&pmid=$pm[pmid]&folder=$folder&filter=$filter&scroll=bottom&$extra" id="pm_view_$pm[pmid]">$pm[subject]</a>
<!--{/if}-->
<em>[{$pm[dateline]}]</em></h2>
<p>$pm[message]</p>
<!--{/if}-->
</td>
</tr>
<!--{/loop}-->
</tbody>
<!--{if $filter != 'announcepm'}-->
<tfoot>
<tr class="ctrlbar">
<td class="sel"><input type="checkbox" onclick="this.form.chkall.click()" /></td>
<td class="ava"><button onclick="this.form.pmsend.click()" type="button">{lang delete}</button></td>
<td class="pef"></td>
<td class="">
<!--{if $folder != 'newbox' && $multipage}-->$multipage<!--{/if}-->
</td>
</tr>
</tfoot>
<!--{/if}-->
</table>
<!--{else}-->
<tr>
<td colspan="4">{lang pm_none_record}</td>
</tr>
</table>
<!--{/if}-->
</form>
</div>
{template footer_client}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/pm_ls.htm
|
HTML
|
asf20
| 4,015
|
{template header}
<script src="js/common.js" type="text/javascript"></script>
<div class="container">
<h3 class="marginbot">
<a href="admin.php?m=feed&a=ls" class="sgbtn">{lang feed_list}</a>
<!--{if $user['allowadminnote'] || $user['isfounder']}--><a href="admin.php?m=note&a=ls" class="sgbtn">{lang note_list}</a><!--{/if}-->
<!--{if $user['allowadminlog'] || $user['isfounder']}--><a href="admin.php?m=log&a=ls" class="sgbtn">{lang menu_log}</a><!--{/if}-->
{lang mail_queue}
</h3>
<!--{if $status == 2}-->
<div class="correctmsg"><p>{lang mail_list_updated}</p></div>
<!--{/if}-->
<div class="mainbox">
<!--{if $maillist}-->
<form action="admin.php?m=mail&a=ls" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="datalist" onmouseover="addMouseEvent(this);" style="table-layout:fixed">
<tr>
<th width="60"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">{lang mail_delete}</label></th>
<th width="130">{lang mail_subject}</th>
<th width="60">{lang mail_to_username}</th>
<th width="80">{lang mail_add_time}</th>
<th width="140">{lang mail_failures}</th>
<th width="100">{lang mail_from_app}</th>
<th width="60">{lang mail_operate}</th>
</tr>
<!--{loop $maillist $mail}-->
<tr>
<td><input type="checkbox" name="delete[]" value="$mail[mailid]" class="checkbox" /></td>
<td>{$mail[subject]}</td>
<td><a href="mailto:{$mail[email]}">{if $mail[username]}{$mail[username]}{else}{lang anonymity}{/if}</td>
<td>{$mail[dateline]}</td>
<td>{$mail[failures]}</td>
<td>{$mail[appname]}</td>
<td><a href="admin.php?m=mail&a=send&mailid={$mail[mailid]}">{lang mail_send}</a></td>
</tr>
<!--{/loop}-->
<tr class="nobg">
<td><input type="submit" value="{lang submit}" class="btn" /></td>
<td class="tdpage" colspan="{eval echo count($applist) + 4;}">$multipage</td>
</tr>
</table>
</form>
<!--{else}-->
<div class="mail">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
</div>
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_mail.htm
|
HTML
|
asf20
| 2,224
|
{template header}
<script src="js/common.js" type="text/javascript"></script>
<script type="text/javascript">
var apps = new Array();
var run = 0;
function testlink() {
if(apps[run]) {
$('status_' + apps[run]).innerHTML = '{lang app_link}';
$('link_' + apps[run]).src = $('link_' + apps[run]).getAttribute('testlink') + '&sid=$sid';
}
run++;
}
window.onload = testlink;
</script>
<div class="container">
<!--{if $a == 'ls'}-->
<h3 class="marginbot">{lang app_list}<a href="admin.php?m=app&a=add" class="sgbtn">{lang app_add}</a></h3>
<!--{if !$status}-->
<div class="note fixwidthdec">
<p class="i">{lang app_list_tips}</p>
</div>
<!--{elseif $status == '2'}-->
<div class="correctmsg"><p>{lang app_list_updated}</p></div>
<!--{/if}-->
<div class="mainbox">
<!--{if $applist}-->
<form action="admin.php?m=app&a=ls" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
<tr>
<th nowrap="nowrap"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">{lang app_delete}</label></th>
<th nowrap="nowrap">{lang app_id}</th>
<th nowrap="nowrap">{lang app_name}</th>
<th nowrap="nowrap">{lang app_url}</th>
<th nowrap="nowrap">{lang app_linkstatus}</th>
<th nowrap="nowrap">{lang app_detail}</th>
</tr>
<!--{eval $i = 0;}-->
<!--{loop $applist $app}-->
<tr>
<td width="50"><input type="checkbox" name="delete[]" value="$app[appid]" class="checkbox" /></td>
<td width="35">$app[appid]</td>
<td><a href="admin.php?m=app&a=detail&appid=$app[appid]"><strong>$app[name]</strong></a></td>
<td><a href="$app[url]" target="_blank">$app[url]</a></td>
<td width="90"><div id="status_$app[appid]"></div><script id="link_$app[appid]" testlink="admin.php?m=app&a=ping&inajax=1&url={eval echo urlencode($app['url']);}&ip={eval echo urlencode($app['ip']);}&appid=$app[appid]&random={eval echo rand()}"></script><script>apps[$i] = '$app[appid]';</script></td>
<td width="40"><a href="admin.php?m=app&a=detail&appid=$app[appid]">{lang app_edit}</a></td>
</tr>
<!--{eval $i++}-->
<!--{/loop}-->
<tr class="nobg">
<td colspan="9"><input type="submit" value="{lang submit}" class="btn" /></td>
</tr>
</table>
<div class="margintop"></div>
</form>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
<!--{elseif $a == 'add'}-->
<h3 class="marginbot">{lang app_add}<a href="admin.php?m=app&a=ls" class="sgbtn">{lang app_list_return}</a></h3>
<div class="mainbox">
<table class="opt">
<tr>
<th>{lang app_install_type}:</th>
</tr>
<tr>
<td>
<input type="radio" name="installtype" class="radio" checked="checked" onclick="$('url').style.display='';$('custom').style.display='none';" />{lang app_install_by_url}
<input type="radio" name="installtype" class="radio" onclick="$('url').style.display='none';$('custom').style.display='';" />{lang app_install_by_custom}
</td>
</tr>
</table>
<div id="url">
<form method="post" action="" target="_blank" onsubmit="document.appform.action=document.appform.appurl.value;" name="appform">
<table class="opt">
<tr>
<th>{lang app_install_url}:</th>
</tr>
<tr>
<td><input type="text" name="appurl" size="50" value="http://domainname/install/index.php" style="width:300px;" /></td>
</tr>
</table>
<div class="opt">
<input type="hidden" name="ucapi" value="{UC_API}" />
<input type="hidden" name="ucfounderpw" value="$md5ucfounderpw" />
<input type="submit" name="installsubmit" value="{lang app_install_submit}" class="btn" />
</div>
</form>
</div>
<div id="custom" style="display:none;">
<form action="admin.php?m=app&a=add" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="opt">
<tr>
<th colspan="2">{lang app_name}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="name" value="" /></td>
<td>{lang app_name_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_url}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="url" value="" /></td>
<td>{lang app_url_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_ip}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="ip" value="" /></td>
<td>{lang app_ip_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_key}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="authkey" value="" /></td>
<td>{lang app_key_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_type}:</th>
</tr>
<tr>
<td>
<select name="type">
<!--{loop $typelist $typeid $typename}-->
<option value="$typeid"> $typename </option>
<!--{/loop}-->
</select>
</td>
<td></td>
</tr>
<tr>
<th colspan="2">{lang app_path}:</th>
</tr>
<tr>
<td>
<input type="text" class="txt" name="apppath" value="" />
</td>
<td>{lang app_path_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_viewpro_url}:</th>
</tr>
<tr>
<td>
<input type="text" class="txt" name="viewprourl" value="" />
</td>
<td>{lang app_viewpro_url_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_api_filename}:</th>
</tr>
<tr>
<td>
<input type="text" class="txt" name="apifilename" value="uc.php" />
</td>
<td>{lang app_api_filename_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_tagtemplates}:</th>
</tr>
<tr>
<td><textarea class="area" name="tagtemplates"></textarea></td>
<td valign="top">{lang app_tagtemplates_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_tagfields}:</th>
</tr>
<tr>
<td><textarea class="area" name="tagfields">$tagtemplates[fields]</textarea></td>
<td valign="top">{lang app_tagfields_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_login}:</th>
</tr>
<tr>
<td>
<input type="radio" class="radio" id="yes" name="synlogin" value="1" /><label for="yes">{lang yes}</label>
<input type="radio" class="radio" id="no" name="synlogin" value="0" checked="checked" /><label for="no">{lang no}</label>
</td>
<td>{lang app_login_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_recvnote}:</th>
</tr>
<tr>
<td>
<input type="radio" class="radio" id="yes" name="recvnote" value="1"/><label for="yes">{lang yes}</label>
<input type="radio" class="radio" id="no" name="recvnote" value="0" checked="checked" /><label for="no">{lang no}</label>
</td>
<td></td>
</tr>
</table>
<div class="opt"><input type="submit" name="submit" value=" {lang submit} " class="btn" tabindex="3" /></div>
</form>
</div>
</div>
<!--{else}-->
<h3 class="marginbot">{lang app_setting}<a href="admin.php?m=app&a=ls" class="sgbtn">{lang app_list_return}</a></h3>
<!--{if $updated}-->
<div class="correctmsg"><p>{lang update_succeed}</p></div>
<!--{elseif $addapp}-->
<div class="correctmsg"><p>{lang app_add_succeed}</p></div>
<!--{/if}-->
<div class="mainbox">
<form action="admin.php?m=app&a=detail&appid=$appid" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="opt">
<tr>
<th colspan="2">{lang app_id}: $appid</th>
</tr>
<tr>
<th colspan="2">{lang app_name}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="name" value="$name" /></td>
<td>{lang app_name_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_url}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="url" value="$url" /></td>
<td>{lang app_url_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_ip}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="ip" value="$ip" /></td>
<td>{lang app_ip_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_key}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="authkey" value="$authkey" /></td>
<td>{lang app_key_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_type}:</th>
</tr>
<tr>
<td>
<select name="type">
<!--{loop $typelist $typeid $typename}-->
<option value="$typeid" {if $typeid == $type}selected="selected"{/if}> $typename </option>
<!--{/loop}-->
</select>
</td>
<td></td>
</tr>
<tr>
<th colspan="2">{lang app_path}:</th>
</tr>
<tr>
<td>
<input type="text" class="txt" name="apppath" value="$apppath" />
</td>
<td>{lang app_path_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_viewpro_url}:</th>
</tr>
<tr>
<td>
<input type="text" class="txt" name="viewprourl" value="$viewprourl" />
</td>
<td>{lang app_viewpro_url_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_api_filename}:</th>
</tr>
<tr>
<td>
<input type="text" class="txt" name="apifilename" value="$apifilename" />
</td>
<td>{lang app_api_filename_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_tagtemplates}:</th>
</tr>
<tr>
<td><textarea class="area" name="tagtemplates">$tagtemplates[template]</textarea></td>
<td valign="top">{lang app_tagtemplates_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_tagfields}:</th>
</tr>
<tr>
<td><textarea class="area" name="tagfields">$tagtemplates[fields]</textarea></td>
<td valign="top">{lang app_tagfields_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_login}:</th>
</tr>
<tr>
<td>
<input type="radio" class="radio" id="yes" name="synlogin" value="1" $synlogin[1] /><label for="yes">{lang yes}</label>
<input type="radio" class="radio" id="no" name="synlogin" value="0" $synlogin[0] /><label for="no">{lang no}</label>
</td>
<td>{lang app_login_comment}</td>
</tr>
<tr>
<th colspan="2">{lang app_recvnote}:</th>
</tr>
<tr>
<td>
<input type="radio" class="radio" id="yes" name="recvnote" value="1" $recvnotechecked[1] /><label for="yes">{lang yes}</label>
<input type="radio" class="radio" id="no" name="recvnote" value="0" $recvnotechecked[0] /><label for="no">{lang no}</label>
</td>
<td></td>
</tr>
</table>
<div class="opt"><input type="submit" name="submit" value=" {lang submit} " class="btn" tabindex="3" /></div>
<!--{if $isfounder}-->
<table class="opt">
<tr>
<th colspan="2">{lang app_code}:</th>
</tr>
<tr>
<th>
<textarea class="area" onFocus="this.select()">
define('UC_CONNECT', 'mysql');
define('UC_DBHOST', '{UC_DBHOST}');
define('UC_DBUSER', '{UC_DBUSER}');
define('UC_DBPW', '{UC_DBPW}');
define('UC_DBNAME', '{UC_DBNAME}');
define('UC_DBCHARSET', '{UC_DBCHARSET}');
define('UC_DBTABLEPRE', '`{UC_DBNAME}`.{UC_DBTABLEPRE}');
define('UC_DBCONNECT', '0');
define('UC_KEY', '$authkey');
define('UC_API', '{UC_API}');
define('UC_CHARSET', '{UC_CHARSET}');
define('UC_IP', '');
define('UC_APPID', '$appid');
define('UC_PPP', '20');
</textarea>
</th>
<td>{lang app_code_comment}</td>
</tr>
</table>
<!--{/if}-->
</form>
</div>
<!--{/if}-->
</div>
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_app.htm
|
HTML
|
asf20
| 12,334
|
</div>
</body>
</html>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/footer_client.htm
|
HTML
|
asf20
| 24
|
{template header}
<script src="js/common.js" type="text/javascript"></script>
<script src="js/calendar.js" type="text/javascript"></script>
<!--{if $a == 'ls'}-->
<script type="text/javascript">
function switchbtn(btn) {
$('srchuserdiv').style.display = btn == 'srch' ? '' : 'none';
$('srchuserdiv').className = btn == 'srch' ? 'tabcontentcur' : '' ;
$('srchuserbtn').className = btn == 'srch' ? 'tabcurrent' : '';
$('adduserdiv').style.display = btn == 'srch' ? 'none' : '';
$('adduserdiv').className = btn == 'srch' ? '' : 'tabcontentcur';
$('adduserbtn').className = btn == 'srch' ? '' : 'tabcurrent';
}
</script>
<div class="container">
<!--{if $status}-->
<div class="{if $status > 0}correctmsg{else}errormsg{/if}"><p>{if $status < 0}<em>{lang user_add_failed}:</em> {/if}{if $status == 2}{lang user_delete_succeed}{elseif $status == 1}{lang user_add_succeed}{elseif $status == -1}{lang user_add_username_ignore}{elseif $status == -2}{lang user_add_username_badwords}{elseif $status == -3}{lang user_add_username_exists}{elseif $status == -4}{lang user_add_email_formatinvalid}{elseif $status == -5}{lang user_add_email_ignore}{elseif $status == -6}{lang user_add_email_exists}{/if}</p></div>
<!--{/if}-->
<div class="hastabmenu">
<ul class="tabmenu">
<li id="srchuserbtn" class="tabcurrent"><a href="#" onclick="switchbtn('srch')">{lang user_search}</a></li>
<li id="adduserbtn"><a href="#" onclick="switchbtn('add')">{lang user_add}</a></li>
</ul>
<div id="adduserdiv" class="tabcontent" style="display:none;">
<form action="admin.php?m=user&a=ls&adduser=yes" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table width="100%">
<tr>
<td>{lang user_name}:</td>
<td><input type="text" name="addname" class="txt" /></td>
<td>{lang user_password}:</td>
<td><input type="text" name="addpassword" class="txt" /></td>
<td>{lang email}:</td>
<td><input type="text" name="addemail" class="txt" /></td>
<td><input type="submit" value="{lang submit}" class="btn" /></td>
</tr>
</table>
</form>
</div>
<div id="srchuserdiv" class="tabcontentcur">
<form action="admin.php?m=user&a=ls" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table width="100%">
<tr>
<td>{lang user_name}:</td>
<td><input type="text" name="srchname" value="$srchname" class="txt" /></td>
<td>UID:</td>
<td><input type="text" name="srchuid" value="$srchuid" class="txt" /></td>
<td>{lang email}:</td>
<td><input type="text" name="srchemail" value="$srchemail" class="txt" /></td>
<td rowspan="2"><input type="submit" value="{lang submit}" class="btn" /></td>
</tr>
<tr>
<td>{lang user_regdate}:</td>
<td colspan="3"><input type="text" name="srchregdatestart" onclick="showcalendar();" value="$srchregdatestart" class="txt" /> {lang to} <input type="text" name="srchregdateend" onclick="showcalendar();" value="$srchregdateend" class="txt" /></td>
<td>{lang user_regip}:</td>
<td><input type="text" name="srchregip" value="$srchregip" class="txt" /></td>
</tr>
</table>
</form>
</div>
</div>
<!--{if $adduser}--><script type="text/javascript">switchbtn('add');</script><!--{/if}-->
<br />
<h3>{lang user_list}</h3>
<div class="mainbox">
<!--{if $userlist}-->
<form action="admin.php?m=user&a=ls&srchname=$srchname&srchregdate=$srchregdate" onsubmit="return confirm('{lang user_delete_confirm}');" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
<tr>
<th><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">{lang delete}</label></th>
<th>{lang user_name}</th>
<th>{lang email}</th>
<th>{lang user_regdate}</th>
<th>{lang user_regip}</th>
<th>{lang edit}</th>
</tr>
<!--{loop $userlist $user}-->
<tr>
<td class="option"><input type="checkbox" name="delete[]" value="$user[uid]" class="checkbox" /></td>
<td>$user[smallavatar] <strong>$user[username]</strong></td>
<td>$user[email]</td>
<td>$user[regdate]</td>
<td>$user[regip]</td>
<td><a href="admin.php?m=user&a=edit&uid=$user[uid]">{lang edit}</a></td>
</tr>
<!--{/loop}-->
<tr class="nobg">
<td><input type="submit" value="{lang submit}" class="btn" /></td>
<td class="tdpage" colspan="6">$multipage</td>
</tr>
</table>
</form>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
</div>
<!--{else}-->
<div class="container">
<h3 class="marginbot">{lang user_edit_profile}
{if getgpc('fromadmin')}
<a href="admin.php?m=admin&a=ls" class="sgbtn">{lang admin_return_admin_ls}</a>
{else}
<a href="admin.php?m=user&a=ls" class="sgbtn">{lang admin_return_user_ls}</a>
{/if}
</h3>
<!--{if $status == 1}-->
<div class="correctmsg"><p>{lang user_edit_profile_sucessfully}</p></div>
<!--{elseif $status == -1}-->
<div class="correctmsg"><p>{lang user_edit_profile_failed}</p></div>
<!--{else}-->
<div class="note"><p class="i">{lang user_keep_blank}</p></div>
<!--{/if}-->
<div class="mainbox">
<form action="admin.php?m=user&a=edit&uid=$uid" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="opt">
<tr>
<th>{lang user_avatar}: <input name="delavatar" class="checkbox" type="checkbox" value="1" /> {lang delete_avatar}</th>
</tr>
<tr>
<th>{lang user_avatar_virtual}:</th>
</tr>
<tr>
<td>$user[bigavatar]</td>
</tr>
<tr>
<th>{lang user_avatar_real}:</th>
</tr>
<tr>
<td>$user[bigavatarreal]</td>
</tr>
<tr>
<th>{lang login_username}:</th>
</tr>
<tr>
<td>
<input type="text" name="newusername" value="$user[username]" class="txt" />
<input type="hidden" name="username" value="$user[username]" class="txt" />
</td>
</tr>
<tr>
<th>{lang login_password}:</th>
</tr>
<tr>
<td>
<input type="text" name="password" value="" class="txt" />
</td>
</tr>
<tr>
<th>{lang login_secques}: <input type="checkbox" class="checkbox" name="rmrecques" value="1" /> {lang login_remove_secques}</th>
</tr>
<tr>
<th>Email:</th>
</tr>
<tr>
<td>
<input type="text" name="email" value="$user[email]" class="txt" />
</td>
</tr>
</table>
<div class="opt"><input type="submit" name="submit" value=" {lang submit} " class="btn" tabindex="3" /></div>
</form>
</div>
</div>
<!--{/if}-->
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_user.htm
|
HTML
|
asf20
| 7,079
|
{template header}
<script src="js/common.js" type="text/javascript"></script>
<!--{if $a == 'ls'}-->
<div class="container">
<!--{if $status}-->
<div class="correctmsg"><p>{if $status == 1}{lang announcepm_deleted}{/if}</p></div>
<!--{/if}-->
<h3 class="marginbot">
{lang announcepm}
<a href="admin.php?m=pm&a=send" class="sgbtn">{lang pm_send_announce}</a>
<a href="admin.php?m=pm&a=clear" class="sgbtn">{lang clear_pm}</a>
</h3>
<div class="mainbox">
<!--{if $pmlist}-->
<form action="admin.php?m=pm&a=ls" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
<tr>
<th><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">{lang badword_delete}</label></th>
<th>{lang title}</th>
<th>{lang pm_from}</th>
<th>{lang dateline}</th>
</tr>
<!--{loop $pmlist $pm}-->
<tr>
<td class="option"><input type="checkbox" name="delete[]" value="$pm[pmid]" class="checkbox" /></td>
<td><a href="admin.php?m=pm&a=view&pmid=$pm[pmid]&$extra">{if $pm['subject']}$pm[subject]{else}{lang pm_notitle}{/if}</a></td>
<td>$pm[msgfrom]</td>
<td>$pm[dateline]</td>
</tr>
<!--{/loop}-->
<tr class="nobg">
<td><input type="submit" value="{lang submit}" class="btn" /></td>
<td class="tdpage" colspan="4">$multipage</td>
</tr>
</table>
</form>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
</div>
<!--{elseif $a == 'view'}-->
<div class="container">
<h3 class="marginbot">{lang announcepm}<a href="admin.php?m=pm&a=ls&$extra" class="sgbtn">{lang return}</a></h3>
<div class="mainbox">
<!--{if $pms}-->
<table class="datalist fixwidth">
<tr><th>{lang pm_from}</th><td>$pms[msgfrom]</td></tr>
<tr><th>{lang dateline}</th><td>$pms[dateline]</td></tr>
<tr><th>{lang title}</th><td>{if $pms['subject']}$pms[subject]{else}{lang pm_notitle}{/if}</td></tr>
<tr class="nobg"><td colspan="2">$pms[message]</td></tr>
</table>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
</div>
<!--{/if}-->
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_pm.htm
|
HTML
|
asf20
| 2,341
|
{template header}
<script src="js/common.js" type="text/javascript"></script>
<div class="container">
<!--{if $status}-->
<div class="{if $status > 0}correctmsg{else}errormsg{/if}"><p>{if $status == 2}{lang domain_list_updated}{elseif $status == 1}{lang domain_add_succeed}{/if}</p></div>
<!--{/if}-->
<div class="hastabmenu">
<ul class="tabmenu">
<li class="tabcurrent"><a href="#" class="tabcurrent">{lang domain_add}</a></li>
</ul>
<div class="tabcontentcur">
<form action="admin.php?m=domain&a=ls" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table>
<tr>
<td>{lang domain}:</td>
<td><input type="text" name="domainnew" class="txt" /></td>
<td>{lang ip}:</td>
<td><input type="text" name="ipnew" class="txt" /></td>
<td><input type="submit" value="{lang submit}" class="btn" /></td>
</tr>
</table>
</form>
</div>
</div>
<h3>{lang domain_list}</h3>
<div class="mainbox">
<!--{if $domainlist}-->
<form action="admin.php?m=domain&a=ls" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="datalist fixwidth">
<tr>
<th width="10%"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" class="checkbox" /><label for="chkall">{lang delete}</label></th>
<th width="60%">{lang domain}</th>
<th width="30%">{lang ip}</th>
</tr>
<!--{loop $domainlist $domain}-->
<tr>
<td><input type="checkbox" name="delete[]" value="$domain[id]" class="checkbox" /></td>
<td><input type="text" name="domain[{$domain[id]}]" value="$domain[domain]" title="{lang shortcut_tips}" class="txtnobd" onblur="this.className='txtnobd'" onfocus="this.className='txt'" style="text-align:left;" /></td>
<td><input type="text" name="ip[{$domain[id]}]" value="$domain[ip]" title="{lang shortcut_tips}" class="txtnobd" onblur="this.className='txtnobd'" onfocus="this.className='txt'" style="text-align:left;" /></td>
</tr>
<!--{/loop}-->
<tr class="nobg">
<td><input type="submit" value="{lang submit}" class="btn" /></td>
<td class="tdpage" colspan="2">$multipage</td>
</tr>
</table>
</form>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
</div>
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_domain.htm
|
HTML
|
asf20
| 2,412
|
<?php
$lang = array(
'other' => '其他',
'app_connent_ok' => '通信成功',
'app_connent_false' => '通信失败',
'note_deleteuser' => '删除用户',
'note_renameuser' => '重命名用户',
'note_deletefriend' => '删除好友',
'note_gettag' => '获取TAG',
'note_getcreditsettings' => '获取应用积分设置',
'note_updatecreditsettings' => '更新应用积分设置',
'note_updateclient' => '更新应用缓存',
'note_updatepw' => '更新用户密码',
'note_updatebadwords' => '更新词语过滤列表',
'note_updatehosts' => '更新域名解析列表',
'note_updateapps' => '更新应用列表',
'note_updatetagtemplate' => '更新标签模板设置',
'note_list' => '通知列表',
'note_test' => '测试',
'note_delete' => '删除',
'note_succeed' => '通知成功',
'note_na' => '未通知',
'note_false' => '通知失败',
'note_times' => '次',
'pm_from' => '来自',
'pm_to' => '发送到',
'pm_system' => '系统消息',
'pm_date' => '时间',
'pm_daterange_1' => '今天',
'pm_daterange_2' => '昨天',
'pm_daterange_3' => '前天',
'pm_daterange_4' => '上周',
'pm_daterange_5' => '更早',
'pm_notitle' => '[无标题]',
'user_add' => '添加用户',
'user_delete' => '删除用户',
'login' => '登录',
'logout' => '退出',
'app_add' => '添加新应用',
'app_delete' => '删除应用',
'app_edit' => '编辑应用',
'setting_update' => '更新基本设置',
'setting_register_update' => '更新注册设置',
'pm_send' => '发送公共消息',
'pm_delete' => '删除公共消息',
'pm_clear' => '清理短消息',
'badword_add' => '添加词语过滤',
'badword_delete' => '删除词语过滤',
'admin_add' => '添加管理员',
'admin_pw_edit' => '修改创始人密码',
'admin_priv_edit' => '修改管理员权限',
'domain_add' => '添加域名解析',
'domain_delete' => '删除域名解析',
'credit_addexchange' => '更新积分兑换方案',
'credit_deleteexchange' => '删除积分兑换方案',
'credit_sync' => '同步应用的积分设置',
'db_export' => '备份数据',
'db_import' => '恢复数据',
'db_delete' => '删除数据',
'note_delete' => '删除通知',
'note_send' => '补发通知',
'dumpfile_exists' => '备份存在',
'dumpfile_not_exists' => '备份不存在',
);
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/main.lang.php
|
PHP
|
asf20
| 2,357
|
{template header_client}
<br />
<table cellpadding="0" cellspacing="0" class="msg" style="width: 65%" align="center">
<thead>
<tr>
<th>{lang message_title}</th>
</tr>
</thead>
<tbody>
<tr>
<td>$message<br />
<!--{if $redirect == 'BACK'}-->
<a href="###" onclick="history.back();"> {lang message_back} </a>
<!--{elseif $redirect}-->
<a href="$redirect"> {lang message_redirect} </a>
<script type="text/javascript">
function redirect(url, time) {
setTimeout("window.location='" + url + "'", time * 1000);
}
redirect('$redirect', 3);
</script>
<!--{/if}-->
</td>
</tr>
</tbody>
</table>
</div>
{template footer_client}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/message_client.htm
|
HTML
|
asf20
| 707
|
{eval @ob_end_clean();}
{eval ob_start();}
{eval @header("Expires: -1");}
{eval @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);}
{eval @header("Pragma: no-cache");}
{eval @header("Content-type: application/xml; charset=$charset");}
{eval echo "<?xml version=\"1.0\" encoding=\"$charset\"?>";}
<root><![CDATA[
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/header_ajax.htm
|
HTML
|
asf20
| 357
|
{template header}
<script src="js/common.js" type="text/javascript"></script>
<div class="container">
<!--{if $operate == 'list'}-->
<h3 class="marginbot">
<a href="admin.php?m=db&a=ls&o=export" class="sgbtn">{lang db_export}</a>
{lang db_list}
</h3>
<div class="note fixwidthdec">
<p class="i">{lang db_list_tips}</p>
</div>
<div class="mainbox">
<form id="theform">
<table class="datalist" onmouseover="addMouseEvent(this);">
<tr>
<th nowrap="nowrap"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('operate[]')" class="checkbox" /><label for="chkall">{lang delete}</label></th>
<th nowrap="nowrap">{lang db_backup_dir}</th>
<th nowrap="nowrap">{lang db_backup_date}</th>
<th nowrap="nowrap">{lang db_operation}</th>
<th nowrap="nowrap"> </th>
<th nowrap="nowrap"> </th>
</tr>
<!--{loop $baklist $bak}-->
<tr>
<td width="50"><input type="checkbox" name="operate[]" value="{$bak[name]}" class="checkbox" /></td>
<td width="200"><a href="admin.php?m=db&a=ls&o=view&dir={$bak[name]}">$bak[name]</a></td>
<td width="120">$bak[date]</td>
<td><a href="admin.php?m=db&a=ls&o=view&dir={$bak[name]}">{lang db_detail}</a></td>
<td id="db_operate_{$bak[name]}"></td>
<td><iframe id="operate_iframe_{$bak[name]}" style="display:none" width="0" height="0"></iframe></td>
</tr>
<!--{/loop}-->
<tr class="nobg">
<td colspan="6"><input type="button" value="{lang submit}" onclick="db_delete($('theform'))" class="btn" /></td>
</tr>
</table>
</form>
</div>
<!--{elseif $operate == 'view'}-->
<h3 class="marginbot">
<a href="admin.php?m=db&a=ls&o=export" class="sgbtn">{lang db_export}</a>
{lang db_list}
</h3>
<div class="note fixwidthdec">
<p class="i">{lang db_import_tips}</p>
</div>
<div class="mainbox">
<form id="theform">
<table class="datalist" onmouseover="addMouseEvent(this);">
<tr>
<th nowrap="nowrap"><input type="checkbox" name="chkall" id="chkall" onclick="checkall('operate[]')" class="checkbox" /><label for="chkall">{lang db_import}</label></th>
<th nowrap="nowrap">{lang app_id}</th>
<th nowrap="nowrap">{lang app_name}</th>
<th nowrap="nowrap">{lang app_url}</th>
<th nowrap="nowrap"> </th>
<th nowrap="nowrap"> </th>
</tr>
<tr>
<td width="50"><input type="checkbox" name="operate_uc" class="checkbox" /></td>
<td width="35"></td>
<td><strong>UCenter</strong></td>
<td></td>
<td id="db_operate_0"><img src="images/correct.gif" border="0" class="statimg" /><span class="green">{lang dumpfile_exists}</span></td>
<td><iframe id="operate_iframe_0" style="display:none" width="0" height="0"></iframe></td>
</tr>
<!--{loop $applist $app}-->
<tr>
<td width="50"><input type="checkbox" name="operate[]" value="$app[appid]" class="checkbox" /></td>
<td width="35">$app[appid]</td>
<td width="160"><a href="admin.php?m=app&a=detail&appid=$app[appid]"><strong>$app[name]</strong></a></td>
<td><a href="$app[url]" target="_blank">$app[url]</a></td>
<td id="db_operate_{$app[appid]}"></td>
<td><iframe id="operate_iframe_{$app[appid]}" src="admin.php?m=db&a=ls&o=ping&appid={$app[appid]}&dir={$dir}" style="display:none" width="0" height="0"></iframe></td>
</tr>
<!--{/loop}-->
<tr class="nobg">
<td colspan="6"><input type="button" value="{lang submit}" onclick="db_operate($('theform'), 'import')" class="btn" /></td>
</tr>
</table>
</form>
</div>
<!--{else}-->
<h3 class="marginbot">
{lang db_export}
<a href="admin.php?m=db&a=ls&o=list" class="sgbtn">{lang db_list}</a>
</h3>
<div class="mainbox">
<form id="theform">
<table class="datalist" onmouseover="addMouseEvent(this);">
<tr>
<th nowrap="nowrap"><input type="checkbox" name="chkall" id="chkall" checked="checked" onclick="checkall('operate[]')" class="checkbox" /><label for="chkall">{lang db_export}</label></th>
<th nowrap="nowrap">{lang app_id}</th>
<th nowrap="nowrap">{lang app_name}</th>
<th nowrap="nowrap">{lang app_url}</th>
<th nowrap="nowrap"> </th>
<th nowrap="nowrap"> </th>
</tr>
<tr>
<td width="50"><input type="checkbox" name="operate_uc" disabled="disabled" checked="checked" class="checkbox" /></td>
<td width="35"></td>
<td><strong>UCenter</strong></td>
<td></td>
<td id="db_operate_0"></td>
<td><iframe id="operate_iframe_0" style="display:none" width="0" height="0"></iframe></td>
</tr>
<!--{loop $applist $app}-->
<tr>
<td width="50"><input type="checkbox" name="operate[]" value="$app[appid]" checked="checked" class="checkbox" /></td>
<td width="35">$app[appid]</td>
<td width="160"><a href="admin.php?m=app&a=detail&appid=$app[appid]"><strong>$app[name]</strong></a></td>
<td><a href="$app[url]" target="_blank">$app[url]</a></td>
<td id="db_operate_{$app[appid]}"></td>
<td><iframe id="operate_iframe_{$app[appid]}" style="display:none" width="0" height="0"></iframe></td>
</tr>
<!--{/loop}-->
<tr class="nobg">
<td colspan="6"><input type="button" value="{lang submit}" onclick="db_operate($('theform'), 'export')" class="btn" /></td>
</tr>
</table>
</form>
</div>
<!--{/if}-->
</div>
<script type="text/javascript">
var import_status = new Array();
function db_delete(theform) {
var lang_tips = '{lang db_start_delete_dumpfile}';
if(!confirm('{lang db_delete_dumpfile_confirm}')) {
return;
}
for(i = 0; theform[i] != null; i++) {
ele = theform[i];
if(/^operate\[/.test(ele.name) && ele.type == "checkbox" && ele.checked) {
show_status(ele.value, lang_tips);
$('operate_iframe_'+ele.value).src = 'admin.php?m=db&a=delete&backupdir='+ele.value;
}
}
}
function db_operate(theform, operate) {
operate = operate == 'import' ? 'import' : 'export';
if(operate == 'export') {
var lang_tips = '{lang db_start_export_dumpfile}';
} else {
if(!confirm('{lang db_import_dumpfile_confirm}')) {
return;
}
if(theform.operate_uc.checked && !confirm('{lang db_import_uc_dumpfile_confirm}')) {
return;
}
var lang_tips = '{lang db_start_import_dumpfile}';
}
if(theform.operate_uc.checked) {
show_status(0, lang_tips);
$('operate_iframe_0').src = 'admin.php?m=db&a=operate&t='+operate+'&appid=0&backupdir={$dir}';
}
for(i = 0; theform[i] != null; i++) {
ele = theform[i];
if(/^operate\[\]$/.test(ele.name) && ele.type == "checkbox" && ele.checked) {
if(operate != 'import' || import_status[ele.value] != false) {
show_status(ele.value, lang_tips);
$('operate_iframe_'+ele.value).src = 'admin.php?m=db&a=operate&t='+operate+'&appid='+ele.value+'&backupdir={$dir}';
}
}
}
}
function show_status(extid, msg) {
var o = $('db_operate_'+extid);
o.innerHTML = msg;
}
</script>
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_db.htm
|
HTML
|
asf20
| 7,162
|
{template header}
<script type="text/javascript">
function $(id) {
return document.getElementById(id);
}
</script>
<div class="container">
<form action="admin.php?m=user&a=login" method="post" id="loginform" {if $iframe}target="_self"{else}target="_top"{/if}>
<input type="hidden" name="formhash" value="{FORMHASH}" />
<input type="hidden" name="seccodehidden" value="$seccodeinit" />
<input type="hidden" name="iframe" value="{$iframe}" />
<table class="mainbox">
<tr>
<td class="loginbox">
<h1>UCenter</h1>
<p>{lang login_tips}</p>
</td>
<td class="login">
<!--{if $errorcode == UC_LOGIN_ERROR_FOUNDER_PW}--><div class="errormsg loginmsg"><p>{lang login_founder_incorrect}</p></div>
<!--{elseif $errorcode == UC_LOGIN_ERROR_ADMIN_PW}--><div class="errormsg loginmsg"><p>{lang login_incorrect}</p></div>
<!--{elseif $errorcode == UC_LOGIN_ERROR_ADMIN_NOT_EXISTS}--><div class="errormsg loginmsg"><p>{lang login_admin_noexists}</p></div>
<!--{elseif $errorcode == UC_LOGIN_ERROR_SECCODE}--><div class="errormsg loginmsg"><p>{lang login_seccode_error}</p></div>
<!--{elseif $errorcode == UC_LOGIN_ERROR_FAILEDLOGIN}--><div class="errormsg loginmsg"><p>{lang login_failedlogin}</p></div>
<!--{/if}-->
<p>
<input type="radio" name="isfounder" value="1" class="radio" {if (isset($_POST['isfounder']) && $isfounder) || !isset($_POST['isfounder'])}checked="checked"{/if} onclick="$('username').value='UCenter Administrator'; $('username').readOnly = true; $('username').disabled = true; $('password').focus();" id="founder" /><label for="founder">{lang founder}</label>
<input type="radio" name="isfounder" value="0" class="radio" {if (isset($_POST['isfounder']) && !$isfounder)}checked="checked"{/if} onclick="$('username').value=''; $('username').readOnly = false; $('username').disabled = false; $('username').focus();" id="admin" /><label for="admin">{lang admin_admin}</label>
</p>
<p id="usernamediv">{lang login_username}:<input type="text" name="username" class="txt" tabindex="1" id="username" value="$username" /></p>
<p>{lang login_password}:<input type="password" name="password" class="txt" tabindex="2" id="password" value="$password" /></p>
<p>{lang login_seccode}:<input type="text" name="seccode" class="txt" tabindex="2" id="seccode" value="" style="margin-right:5px;width:85px;" /><img width="70" height="21" src="admin.php?m=seccode&seccodeauth=$seccodeinit&{eval echo rand();}" /></p>
<p class="loginbtn"><input type="submit" name="submit" value="{lang login_submit}" class="btn" tabindex="3" /></p>
</td>
</tr>
</table>
</form>
</div>
<script type="text/javascript">
{if (isset($_POST['isfounder']) && $isfounder) || !isset($_POST['isfounder'])}
$('username').value='UCenter Administrator';
$('username').disabled = true;
$('username').readOnly = true;
$('password').focus();
{else}
$('username').readOnly = false;
$('username').readOnly = false;
$('username').focus();
{/if}
</script>
<div class="footer">Powered by UCenter {UC_SERVER_VERSION} © 2001 - 2008 <a href="http://www.comsenz.com/" target="_blank">Comsenz</a> Inc.</div>
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_login.htm
|
HTML
|
asf20
| 3,246
|
<?php
$lang = array(
'user_search' => '搜索用户',
'user_name' => '用户名',
'user_regdate' => '注册日期',
'user_regip' => '注册IP',
'user_before' => '之前',
'user_after' => '之后',
'user_search' => '搜 索',
'user_add' => '添加用户',
'user_password' => '密码',
'user_addsubmit' => '添 加',
'delete' => '删除',
'email' => 'Email',
'user_list' => '用户列表',
);
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin.lang.php
|
PHP
|
asf20
| 420
|
<script type="text/javascript">
function checkall(form, prefix, checkall) {
var checkall = checkall ? checkall : 'chkall';
for(var i = 0; i < form.elements.length; i++) {
var e = form.elements[i];
if(e.name && e.name != checkall && (!prefix || (prefix && e.name.match(prefix)))) {
e.checked = form.elements[checkall].checked;
}
}
}
function toggle_collapse(objname, ctrlobj) {
var obj = document.getElementById(objname);
if(obj.style.display == '') {
obj.style.display = 'none';
ctrlobj.innerHTML = '<img src="images/default/spread.gif" />';
} else {
obj.style.display = '';
ctrlobj.innerHTML = '<img src="images/default/shrink.gif" />';
}
}
function ctlent(event) {
if((event.ctrlKey && event.keyCode == 13) || (event.altKey && event.keyCode == 83)) {
document.getElementById('postpmform').saveoutbox.value = 0;
document.getElementById('postpmform').submit();
}
}
</script>
<div class="ucnav">
<a <!--{if $folder == 'inbox' && !$filter}-->class="ucontype" <!--{/if}-->href="index.php?m=pm_client&a=ls&folder=inbox">{lang pm_inbox}<!--{if $pmnum[1]}--><strong>[{$pmnum[1]}]</strong><!--{/if}--></a>
<!--{if $pmnum[4] || $filter == 'announcepm'}-->
<a <!--{if $filter == 'announcepm'}-->class="ucontype" <!--{/if}-->href="index.php?m=pm_client&a=ls&folder=inbox&filter=announcepm">{lang pm_annbox}[{$pmnum[4]}]</a>
<!--{/if}-->
<a <!--{if $folder == 'savebox' || $folder == 'send' && $a == 'savebox'}-->class="ucontype" <!--{/if}-->href="index.php?m=pm_client&a=ls&folder=savebox">{lang pm_savebox}</a>
<a <!--{if $folder == 'blackls'}-->class="ucontype" <!--{/if}-->href="index.php?m=pm_client&a=ls&folder=blackls">{lang pm_ignorelist}</a>
<a <!--{if $type == '' && $folder == 'send' && $a != 'savebox'}-->class="ucontype sendpmontype" <!--{else}--> class="sendpm" <!--{/if}-->href="index.php?m=pm_client&a=send">{lang pm_send}</a>
<!--{if $unreadpmnum || $pmnum[3] || $folder == 'newbox' || $filter == 'systempm'}-->
<span class="navinfo">
<img src="images/default/newpm.gif" />
<!--{if $unreadpmnum || $folder == 'newbox'}--><strong>$unreadpmnum</strong> <a <!--{if $folder == 'newbox'}-->class="ontype" <!--{/if}-->href="index.php?m=pm_client&a=ls&folder=newbox">{lang pm_unread}</a><!--{/if}-->
<!--{if $pmnum[3] || $filter == 'systempm'}--><strong>$pmnum[3]</strong> <a <!--{if $filter == 'systempm'}-->class="ontype" <!--{/if}-->href="index.php?m=pm_client&a=ls&folder=inbox&filter=systempm">{lang pm_sysbox}</a><!--{/if}-->
</span>
<!--{/if}-->
</div>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/pm_nav.htm
|
HTML
|
asf20
| 2,546
|
<!--{if UC_DEBUG}-->
<style type="text/css">
#debuginfo {width: 60%;margin-left: 2em;}
fieldset {margin-top: 2em; display: block;}
</style>
<div style="text-align: left;" id="debuginfo">
Processed in <span id="debug_time"></span> s
<fieldset>
<legend><b>GET:</b></legend>
<!--{eval echo '<pre>'.print_r($_GET, TRUE).'</pre>';}-->
</fieldset>
<fieldset>
<legend><b>POST:</b></legend>
<!--{eval echo '<pre>'.print_r($_POST, TRUE).'</pre>';}-->
</fieldset>
<fieldset>
<legend><b>COOKIE:</b></legend>
<!--{eval echo '<pre>'.print_r($_COOKIE, TRUE).'</pre>';}-->
</fieldset>
<fieldset>
<legend><b>SQL:</b> $dbquerynum</legend>
<!--{loop $dbhistories $dbhistory}-->
<li>$dbhistory</li>
<!--{/loop}-->
</fieldset>
<fieldset>
<legend><b>Include:</b> {eval echo count(get_included_files());}</legend>
<!--{eval echo '<pre>'.print_r(get_included_files(), TRUE).'</pre>';}-->
</fieldset>
</div>
<!--{/if}-->
</body>
</html>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/footer.htm
|
HTML
|
asf20
| 1,012
|
{template header}
<script src="js/common.js" type="text/javascript"></script>
<div class="container">
<!--{if $updated}-->
<div class="correctmsg"><p>{lang update_succeed}</p></div>
<!--{elseif $a == 'register'}-->
<div class="note fixwidthdec"><p class="i">{lang setting_register_tips}</p></div>
<!--{/if}-->
<!--{if $a == 'ls'}-->
<div class="mainbox nomargin">
<form action="admin.php?m=setting&a=ls" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="opt">
<tr>
<th colspan="2">{lang setting_dateformat}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="dateformat" value="$dateformat" /></td>
<td>{lang setting_dateformat_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_timeformat}:</th>
</tr>
<td>
<input type="radio" id="hr24" class="radio" name="timeformat" value="1" $timeformat[1] /><label for="hr24">{lang setting_timeformat_hr24}</label>
<input type="radio" id="hr12" class="radio" name="timeformat" value="0" $timeformat[0] /><label for="hr12">{lang setting_timeformat_hr12}</label>
</td>
</tr>
<tr>
<th colspan="2">{lang setting_timeoffset}:</th>
</tr>
<tr>
<td>
<select name="timeoffset">
<option value="-12" $checkarray['-12']>(GMT -12:00) Eniwetok, Kwajalein</option>
<option value="-11" $checkarray['-11']>(GMT -11:00) Midway Island, Samoa</option>
<option value="-10" $checkarray['-10']>(GMT -10:00) Hawaii</option>
<option value="-9" $checkarray['-9']>(GMT -09:00) Alaska</option>
<option value="-8" $checkarray['-8']>(GMT -08:00) Pacific Time (US & Canada), Tijuana</option>
<option value="-7" $checkarray['-7']>(GMT -07:00) Mountain Time (US & Canada), Arizona</option>
<option value="-6" $checkarray['-6']>(GMT -06:00) Central Time (US & Canada), Mexico City</option>
<option value="-5" $checkarray['-5']>(GMT -05:00) Eastern Time (US & Canada), Bogota, Lima, Quito</option>
<option value="-4" $checkarray['-4']>(GMT -04:00) Atlantic Time (Canada), Caracas, La Paz</option>
<option value="-3.5" $checkarray['-3.5']>(GMT -03:30) Newfoundland</option>
<option value="-3" $checkarray['-3']>(GMT -03:00) Brassila, Buenos Aires, Georgetown, Falkland Is</option>
<option value="-2" $checkarray['-2']>(GMT -02:00) Mid-Atlantic, Ascension Is., St. Helena</option>
<option value="-1" $checkarray['-1']>(GMT -01:00) Azores, Cape Verde Islands</option>
<option value="0" $checkarray['0']>(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia</option>
<option value="1" $checkarray['1']>(GMT +01:00) Amsterdam, Berlin, Brussels, Madrid, Paris, Rome</option>
<option value="2" $checkarray['2']>(GMT +02:00) Cairo, Helsinki, Kaliningrad, South Africa</option>
<option value="3" $checkarray['3']>(GMT +03:00) Baghdad, Riyadh, Moscow, Nairobi</option>
<option value="3.5" $checkarray['3.5']>(GMT +03:30) Tehran</option>
<option value="4" $checkarray['4']>(GMT +04:00) Abu Dhabi, Baku, Muscat, Tbilisi</option>
<option value="4.5" $checkarray['4.5']>(GMT +04:30) Kabul</option>
<option value="5" $checkarray['5']>(GMT +05:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
<option value="5.5" $checkarray['5.5']>(GMT +05:30) Bombay, Calcutta, Madras, New Delhi</option>
<option value="5.75" $checkarray['5.75']>(GMT +05:45) Katmandu</option>
<option value="6" $checkarray['6']>(GMT +06:00) Almaty, Colombo, Dhaka, Novosibirsk</option>
<option value="6.5" $checkarray['6.5']>(GMT +06:30) Rangoon</option>
<option value="7" $checkarray['7']>(GMT +07:00) Bangkok, Hanoi, Jakarta</option>
<option value="8" $checkarray['8']>(GMT +08:00) 北京(Beijing), Hong Kong, Perth, Singapore, Taipei</option>
<option value="9" $checkarray['9']>(GMT +09:00) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</option>
<option value="9.5" $checkarray['9.5']>(GMT +09:30) Adelaide, Darwin</option>
<option value="10" $checkarray['10']>(GMT +10:00) Canberra, Guam, Melbourne, Sydney, Vladivostok</option>
<option value="11" $checkarray['11']>(GMT +11:00) Magadan, New Caledonia, Solomon Islands</option>
<option value="12" $checkarray['12']>(GMT +12:00) Auckland, Wellington, Fiji, Marshall Island</option>
</select>
</td>
<td>{lang setting_timeoffset_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_pmsendregdays}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="pmsendregdays" value="$pmsendregdays" /></td>
<td>{lang setting_pmsendregdays_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_pmlimit1day}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="pmlimit1day" value="$pmlimit1day" /></td>
<td>{lang setting_pmlimit1day_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_pmfloodctrl}:</th>
</tr>
<tr>
<td><input type="text" class="txt" name="pmfloodctrl" value="$pmfloodctrl" /></td>
<td>{lang setting_pmfloodctrl_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_pmcenter}:</th>
</tr>
<tr>
<td>
<input type="radio" id="pmcenteryes" class="radio" name="pmcenter" value="1" $pmcenter[1] onclick="$('hidden1').style.display=''" /><label for="pmcenteryes">{lang yes}</label>
<input type="radio" id="pmcenterno" class="radio" name="pmcenter" value="0" $pmcenter[0] onclick="$('hidden1').style.display='none'" /><label for="pmcenterno">{lang no}</label>
</td>
<td>{lang setting_pmcenter_comment}</td>
</tr>
<tbody id="hidden1" $pmcenter[display]>
<tr>
<th colspan="2">{lang setting_sendpmseccode}:</th>
</tr>
<tr>
<td>
<input type="radio" id="sendpmseccodeyes" class="radio" name="sendpmseccode" value="1" $sendpmseccode[1] /><label for="sendpmseccodeyes">{lang yes}</label>
<input type="radio" id="sendpmseccodeno" class="radio" name="sendpmseccode" value="0" $sendpmseccode[0] /><label for="sendpmseccodeno">{lang no}</label>
</td>
<td>{lang setting_sendpmseccode_comment}</td>
</tr>
</tbody>
</table>
<div class="opt"><input type="submit" name="submit" value=" {lang submit} " class="btn" tabindex="3" /></div>
</form>
</div>
<!--{elseif $a == 'register'}-->
<div class="mainbox nomargin">
<form action="admin.php?m=setting&a=register" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="opt">
<tr>
<th colspan="2">{lang setting_register_doublee}:</th>
</tr>
<tr>
<td>
<input type="radio" id="yes" class="radio" name="doublee" value="1" $doublee[1] /><label for="yes">{lang yes}</label>
<input type="radio" id="no" class="radio" name="doublee" value="0" $doublee[0] /><label for="no">{lang no}</label>
</td>
</tr>
<tr>
<th colspan="2">{lang setting_register_accessemail}:</th>
</tr>
<tr>
<td><textarea class="area" name="accessemail">$accessemail</textarea></td>
<td valign="top">{lang setting_register_accessemail_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_register_censoremail}:</th>
</tr>
<tr>
<td><textarea class="area" name="censoremail">$censoremail</textarea></td>
<td valign="top">{lang setting_register_censoremail_comment}</td>
</tr>
<tr>
<th colspan="2">{lang setting_forbidden_username}:</th>
</tr>
<tr>
<td><textarea class="area" name="censorusername">$censorusername</textarea></td>
<td valign="top">{lang setting_ceonsor_comment}</td>
</tr>
</table>
<div class="opt"><input type="submit" name="submit" value=" {lang submit} " class="btn" tabindex="3" /></div>
</form>
</div>
<!--{else}-->
<div class="mainbox nomargin">
<form action="admin.php?m=setting&a=mail" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="opt">
<tr>
<th colspan="2">{lang settings_mail_settings_emailfrom}:</th>
</tr>
<tr>
<td><input name="maildefault" value="{$maildefault}" type="text"></td>
<td>{lang settings_mail_settings_emailfrom_comment}</td>
<tr>
<th colspan="2">{lang settings_mail_settings_send}:</th>
</tr>
<tr>
<td colspan="2">
<label><input class="radio" name="mailsend" value="1"{if $mailsend == 1} checked="checked"{/if} onclick="$('hidden1').style.display = 'none';$('hidden2').style.display = 'none';" type="radio"> {lang settings_mail_settings_send_1}</label><br />
<label><input class="radio" name="mailsend" value="2"{if $mailsend == 2} checked="checked"{/if} onclick="$('hidden1').style.display = '';$('hidden2').style.display = '';" type="radio"> {lang settings_mail_settings_send_2}</label><br />
<label><input class="radio" name="mailsend" value="3"{if $mailsend == 3} checked="checked"{/if} onclick="$('hidden1').style.display = '';$('hidden2').style.display = 'none';" type="radio"> {lang settings_mail_settings_send_3}</label>
</td>
</tr>
<tbody id="hidden1"{if $mailsend == 1} style="display:none"{/if}>
<tr>
<td colspan="2">{lang settings_mail_settings_server}:</td>
</tr>
<tr>
<td>
<input name="mailserver" value="{$mailserver}" class="txt" type="text">
</td>
<td valign="top">{lang settings_mail_settings_server_comment}</td>
</tr>
<tr>
<td colspan="2">{lang settings_mail_settings_port}:</td>
</tr>
<tr>
<td>
<input name="mailport" value="{$mailport}" type="text">
</td>
<td valign="top">{lang settings_mail_settings_port_comment}</td>
</tr>
</tbody>
<tbody id="hidden2"{if $mailsend == 1 || $mailsend == 3} style="display:none"{/if}>
<tr>
<td colspan="2">{lang settings_mail_settings_auth}:</td>
</tr>
<tr>
<td>
<label><input type="radio" class="radio" name="mailauth"{if $mailauth == 1} checked="checked"{/if} value="1" />{lang yes}</label>
<label><input type="radio" class="radio" name="mailauth"{if $mailauth == 0} checked="checked"{/if} value="0" />{lang no}</label>
</td>
<td valign="top">{lang settings_mail_settings_auth_comment}</td>
</tr>
<tr>
<td colspan="2">{lang settings_mail_settings_from}:</td>
</tr>
<tr>
<td>
<input name="mailfrom" value="{$mailfrom}" class="txt" type="text">
</td>
<td valign="top">{lang settings_mail_settings_from_comment}</td>
</tr>
<tr>
<td colspan="2">{lang settings_mail_settings_username}:</td>
</tr>
<tr>
<td>
<input name="mailauth_username" value="{$mailauth_username}" type="text">
</td>
<td valign="top"></td>
</tr>
<tr>
<td colspan="2">{lang settings_mail_settings_password}:</td>
</tr>
<tr>
<td>
<input name="mailauth_password" value="{$mailauth_password}" type="text">
</td>
<td valign="top"></td>
</tr>
</tbody>
<tr>
<th colspan="2">{lang settings_mail_settings_delimiter}:</th>
</tr>
<tr>
<td>
<label><input class="radio" name="maildelimiter"{if $maildelimiter == 1} checked="checked"{/if} value="1" type="radio"> {lang settings_mail_settings_delimiter_crlf}</label><br />
<label><input class="radio" name="maildelimiter"{if $maildelimiter == 0} checked="checked"{/if} value="0" type="radio"> {lang settings_mail_settings_delimiter_lf}</label><br />
<label><input class="radio" name="maildelimiter"{if $maildelimiter == 2} checked="checked"{/if} value="2" type="radio"> {lang settings_mail_settings_delimiter_cr}</label>
</td>
<td>
{lang settings_mail_settings_delimiter_comment}
</td>
</tr>
<tr>
<th colspan="2">{lang settings_mail_settings_includeuser}:</th>
</tr>
<tr>
<td>
<label><input type="radio" class="radio" name="mailusername"{if $mailusername == 1} checked="checked"{/if} value="1" />{lang yes}</label>
<label><input type="radio" class="radio" name="mailusername"{if $mailusername == 0} checked="checked"{/if} value="0" />{lang no}</label>
</td>
<td valign="top">{lang settings_mail_settings_includeuser_comment}</td>
</tr>
<tr>
<th colspan="2">{lang settings_mail_settings_silent}:</th>
</tr>
<tr>
<td>
<label><input type="radio" class="radio" name="mailsilent"{if $mailsilent == 1} checked="checked"{/if} value="1" />{lang yes}</label>
<label><input type="radio" class="radio" name="mailsilent"{if $mailsilent == 0} checked="checked"{/if} value="0" />{lang no}</label>
</td>
<td valign="top"> </td>
</tr>
</table>
<div class="opt"><input type="submit" name="submit" value=" {lang submit} " class="btn" tabindex="3" /></div>
</form>
</div>
<!--{/if}-->
</div>
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_setting.htm
|
HTML
|
asf20
| 13,451
|
</div>
</div>
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/plugin_footer.htm
|
HTML
|
asf20
| 35
|
<?php
$languages = array(
'title'=>'标题',
'return'=>'返回',
'dateline'=>'时间',
'delete'=>'删除',
'checkall'=>'全选',
'submit' => '提 交',
'yes' => '是',
'no' => '否',
'tips' => '提示',
'list_empty' => '目前没有相关记录!',
'shortcut_tips' => '点击编辑,提交后保存',
'welcome' => '您好',
'edit' => '编辑',
'plugin' => '插件',
'to' => '到',
'menu' => '菜单',
'founder'=>'创始人',
'login_username'=>'用户名',
'login_password'=>'密 码',
'login_submit'=>'登 录',
'login_seccode'=>'验证码',
'login_incorrect' => '<em>登录失败!</em><br />用户名无效,或密码错误。',
'login_founder_incorrect' => '创始人密码错误',
'login_admin_noexists' => '该管理员不存在',
'login_seccode_error' => '验证码输入错误',
'login_failedlogin' => '密码重试次数过多,请十五分钟后再重新尝试',
'login_tips' => 'UCenter 是一个能沟通多个应用的桥梁,使各应用共享一个用户数据库,实现统一登录,注册,用户管理。',
'login_seccode_tips' => '如果您无法识别验证码,请点图片更换',
'login_secques' => '安全提问',
'login_remove_secques' => '清除安全提问',
'menu_index'=>'首页',
'menu_basic_setting'=>'基本设置',
'menu_register_setting'=>'注册设置',
'menu_mail_setting' => '邮件设置',
'menu_manager_user'=>'用户管理',
'menu_pm'=>'短消息',
'menu_credit_exchange'=>'积分兑换',
'menu_censor_word'=>'词语过滤',
'menu_application'=>'应用管理',
'menu_data_list'=>'数据列表',
'menu_domain_list' =>'域名解析',
'menu_db' => '数据备份',
'menu_update_cache'=>'更新缓存',
'menu_log' => '日志列表',
'menu_logout'=>'退出',
'menu_otheradmincp' => '其他管理平台',
'menu_admin_user' => '管理员',
'pm_from'=>'发件人',
'pm_to'=>'收件人',
'pm_none_record'=>'没有短消息',
'pm_total_pm'=>'共 $pmnum[$pmnumindex] 条消息',
'pm_system_pm'=>'系统消息',
'pm_ignore_list'=>'忽略列表',
'pm_ignore_list_comment'=>'添加到该列表中的用户给您发送短消息时将不予接收<br />添加多个忽略人员名单时用逗号 "," 隔开,如“张三,李四,王五”<br />如需禁止所有用户发来的短消息,请设置为 "{ALL}"',
'save'=>'保存',
'pm_central'=>'短消息中心',
'pm_send'=>'发送短消息',
'pm_send_announce'=>'发送公共消息',
'pm_unread'=>'条未读消息',
'pm_history'=>'历史短消息',
'pm_sysbox'=>'条系统消息',
'pm_annbox'=>'公共消息',
'pm_savebox'=>'草稿箱',
'pm_outbox'=>'发件箱',
'pm_ignorelist'=>'忽略列表',
'pm_preview'=>'短消息预览',
'back'=>'返回',
'pm_tofriends'=>'好友',
'pm_subject'=>'消息标题',
'pm_notitle'=>'[无标题]',
'pm_message'=>'消息内容',
'pm_replymessage' => '回复内容',
'pm_sendpm'=>'发送',
'pm_recv'=>'收信人',
'pm_transmit'=>'转发',
'pm_mark_unread'=>'标记未读',
'pm_swith_friendls'=>'打开/关闭 好友列表',
'reply'=>'回复',
'upload'=>'上传',
'pm_inbox'=>'短消息',
'pm_inboxnew'=>'收件箱有',
'pm_current'=>'当前短消息',
'pm_system' => '系统消息',
'pm_preview' => '预览短消息',
'pm_date' => '时间',
'pm_daterange_1' => '今天',
'pm_daterange_2' => '昨天',
'pm_daterange_3' => '前天',
'pm_daterange_4' => '上周',
'pm_daterange_5' => '更早',
'pm_prompt_list' => '输入一个列表项目.\r\n留空或者点击取消完成此列表.',
'pm_prompt_img' => '请输入图片链接地址:',
'pm_prompt_url' => '请输入链接的地址:',
'pm_prompt_email' => '请输入此链接的邮箱地址:',
'pm_confirm_delete' => '您确定要删除所有短消息吗?',
'editor_b' => '粗体',
'editor_i' => '斜体',
'editor_u' => '下划线',
'editor_list1' => '排序的列表',
'editor_lista' => '未排序列表',
'editor_indent' => '增加缩进',
'editor_color' => '颜色',
'editor_alignleft' => '居左',
'editor_aligncenter' => '居中',
'editor_alignright' => '居右',
'editor_floatleft' => '左浮动',
'editor_floatright' => '右浮动',
'editor_code' => '插入代码',
'editor_quote' => '插入引用',
'editor_img' => '插入图片',
'editor_url' => '插入链接',
'editor_email' => '插入邮箱链接',
'app_list' => '应用列表',
'app_list_updated' => '应用列表成功更新。',
'app_list_return' => '返回应用列表',
'app_list_tips' => '如果出现“通信失败”,请点击“编辑”尝试设置应用域名对应的 IP。',
'app_add' => '添加新应用',
'app_add_succeed' => '成功添加应用。',
'app_delete' => '删除',
'app_id' => 'ID',
'app_name' => '应用名称',
'app_name_comment' => '限 20 字节。',
'app_url' => '应用的 URL',
'app_url_comment' => '该应用与 UCenter 通信的接口 URL,结尾请不要加“/” ',
'app_ip' => '应用 IP',
'app_ip_comment' => '正常情况下留空即可。如果由于域名解析问题导致 UCenter 与该应用通信失败,请尝试设置为该应用所在服务器的 IP 地址。',
'app_key' => '通信密钥',
'app_key_comment' => '只允许使用英文字母及数字,限 64 字节。应用端的通信密钥必须与此设置保持一致,否则该应用将无法与 UCenter 正常通信。',
'app_login' => '是否开启同步登录',
'app_login_comment' => '开启同步登录后,当用户在登录其他应用时,同时也会登录该应用。',
'app_charset' => '字符集',
'app_dbcharset' => '数据库字符集',
'app_detail' => '详情',
'app_detail_tips' => '如果出现 <img src="images/error.gif" /> <font color="red">通信失败</font>,请点击“编辑”尝试设置应用域名对应的 IP。',
'app_edit' => '编辑',
'app_setting' => '编辑应用',
'app_type' => '应用类型',
'app_linkstatus' => '通信情况',
'app_link' => '正在连接...',
'app_recvnote' => '是否接受通知',
'app_tagtemplates' => '标签单条显示模板',
'app_tagtemplates_comment' => '当前应用的标签数据显示在其它应用时的单条数据模板。',
'app_tagfields' => '标签模板标记说明',
'app_tagfields_comment' => '一行一个标记说明条目,用逗号分割标记和说明文字。如:<br />subject,主题标题<br />url,主题地址',
'app_install_type' => '选择安装方式',
'app_install_url' => '应用程序安装地址',
'app_install_by_url' => 'URL 安装 (推荐)',
'app_install_by_custom' => '自定义安装',
'app_install_submit' => ' 安 装 ',
'app_path' => '应用的物理路径',
'app_path_comment' => '默认请留空,如果填写的为相对路径(相对于UC),程序会自动转换为绝对路径,如 ../',
'app_viewpro_url' => '查看个人资料页面地址',
'app_viewpro_url_comment' => 'URL中域名后面的部分,如:/space.php?uid=%s 这里的 %s 代表uid',
'app_api_filename' => '应用接口文件名称',
'app_api_filename_comment' => '应用接口文件名称,不含路径,默认为uc.php',
'app_code' => '应用的 UCenter 配置信息',
'app_code_comment' => '当应用的 UCenter 配置信息丢失时可复制左侧的代码到应用的配置文件中',
'tag_tips' => '设置当前应用获取其他应用标签数据的比例以及扩展数据模板。模板中“{xxx}”表示标签数据的索引,代表相应的数据。',
'tag_global_template' => '全局模板',
'tag_percent' => '比例',
'tag_template' => '模板',
'tag_edit' => '编辑',
'tag_template_comment' => '包含单条数据的模板',
'badword_list' => '词语过滤',
'badword_list_updated' => '词语过滤成功更新。',
'badword_add' => '添加词语过滤',
'badword_add_succeed' => '词语过滤添加成功。',
'badword_delete' => '删除',
'badword_keyword' => '不良词语',
'badword_replace' => '替换为',
'badword_admin' => '操作人',
'badword_multi_add' => '批量添加',
'badword_multi_add_comment' => '<li>每行一组,不良词语和替换词语之间使用“=”进行分割。</li>
<li>如果想将某个词语直接替换成 **,只输入词语即可。</li>
<li><strong>例如:</strong></li>
<li>toobad</li>
<li>badword=good</li>',
'badword_skip' => '当冲突时,跳过原来的词表',
'badword_overwrite' => '当冲突时,覆盖原来的词表',
'badword_truncate' => '清空当前词表,后导入新词语(此操作不可恢复,建议首先<a href="admin.php?m=badword&a=export" target="_blanks">导出词表</a>,做好备份)',
'announcepm' => '公共消息管理',
'announcepm_deleted' => '成功删除公共消息',
'clear_pm' => '清理短消息',
'clearpm_deleted' => '成功清理的短消息数',
'clearpm_totalnum' => '短消息中心消息总数',
'clearpm_delunread' => '不删除未读信息',
'clearpm_cleardays' => '删除多少天以前的短消息',
'clearpm_cleardays_comment' => '不限制时间请输入 0',
'clearpm_usernames' => '清理某用户的短消息',
'clearpm_usernames_comment' => '输入用户名,多个用户名用半角逗号“,”分隔',
'announcepm_send_succeed'=>'公共消息成功发送',
'creditexchange_updated' => '成功更新积分兑换方案。',
'creditexchange_invalid' => '兑换前后应用相同,请重新设置。',
'creditexchange_update' => '更新积分兑换方案',
'creditexchange_fromto' => '兑换方向',
'creditexchange_select' => '请选择',
'creditexchange_ratio' => '兑换比率',
'creditexchange' => '积分兑换',
'creditexchange_syncappcredits' => '同步应用的积分设置',
'creditexchange_tips' => '点击“同步应用的积分设置”可以获取应用的积分设置,并且把当前设置结果通知给应用',
'note_deleteuser' => '删除用户',
'note_deletefriend' => '删除好友',
'note_gettag' => '获取TAG',
'note_updateclient' => '更新应用缓存',
'note_list' => '通知列表',
'note_list_updated' => '通知列表成功更新。',
'note_test' => '测试',
'note_delete' => '删除',
'note_operation' => '操作',
'note_times' => '通知次数',
'note_param' => '参数',
'note_last_note_time' => '最后通知时间',
'note_view' => '查看',
'setting_forbidden_username' => '禁止的用户名',
'setting_ceonsor_comment' => '可以设置通配符,每个关键字一行,可使用通配符 "*" 如 "*版主*"(不含引号)。',
'note_view' => '查看',
'note_status' => '通知状态',
'note_fail_apps' => '通知失败的应用',
'feed_list'=>'事件列表',
'tag_list'=>'标签列表',
'mail_queue' => '邮件队列',
'mail_delete' => '删除',
'mail_subject' => '邮件标题',
'mail_to_username' => '接收者',
'mail_add_time' => '加入时间',
'mail_failures' => '失败次数',
'mail_from_app' => '来源',
'mail_operate' => '操作',
'anonymity' => '匿名',
'mail_send' => '发送邮件',
'mail_list_updated' => '邮件列表成功更新。',
'mail_send' => '邮件发送',
'setting' => '设置',
'setting_tips' => '',
'setting_dateformat' => '日期格式',
'setting_dateformat_comment' => '使用 yyyy(yy) 表示年,mm 表示月,dd 表示天。如 yyyy-mm-dd 表示 2000-1-1',
'setting_timeformat' => '时间格式',
'setting_timeformat_hr24' => '24 小时制',
'setting_timeformat_hr12' => '12 小时制',
'setting_timeoffset' => '时区',
'setting_timeoffset_comment' => '默认为: GMT +08:00',
'setting_pmsendregdays' => '发短消息最少注册天数',
'setting_pmsendregdays_comment' => '注册天数少于次设置的,不允许发送短消息,0为不限制,此举为了限制机器人发广告',
'setting_pmcenter' => '启用短消息中心',
'setting_pmcenter_comment' => '是否启用短消息中心功能,不影响使用短消息接口应用程序的使用',
'setting_sendpmseccode' => '开启发送短消息验证码',
'setting_sendpmseccode_comment' => '是否开启短消息中心发送短消息验证码,可以防止使用机器狂发短消息',
'setting_pmlimit1day' => '同一用户在 24 小时允许发送短消息的最大数目',
'setting_pmlimit1day_comment' => ' 同一用户在 24 小时内可以发送的短消息的极限,建议在 30 - 100 范围内取值,0 为不限制,此举为了限制通过机器批量发广告',
'setting_pmfloodctrl' => '发短消息灌水预防',
'setting_pmfloodctrl_comment' => '两次发短消息间隔小于此时间,单位秒,0 为不限制,此举为了限制通过机器批量发广告',
'setting_register' => '注册设置',
'setting_register_tips' => '允许/禁止的 Email 地址只需填写 Email 的域名部分,每行一个域名,例如 @hotmail.com',
'setting_register_doublee' => '是否允许同一 Email 地址注册多个用户',
'setting_register_accessemail' => '允许的 Email 地址',
'setting_register_accessemail_comment' => '只允许使用这些域名结尾的 Email 地址注册。',
'setting_register_censoremail' => '禁止的 Email 地址',
'setting_register_censoremail_comment' => '禁止使用这些域名结尾的 Email 地址注册。',
'settings_mail_settings_emailfrom' => '邮件来源地址',
'settings_mail_settings_emailfrom_comment' => '当发送邮件不指定邮件来源时,默认使用此地址作为邮件来源',
'settings_mail_settings_silent' => '屏蔽邮件发送中的全部错误提示',
'settings_mail_settings_send' => '邮件发送方式',
'settings_mail_settings_send_1' => '通过 PHP 函数的 sendmail 发送(推荐此方式)',
'settings_mail_settings_send_2' => '通过 SOCKET 连接 SMTP 服务器发送(支持 ESMTP 验证)',
'settings_mail_settings_send_3' => '通过 PHP 函数 SMTP 发送 Email(仅 Windows 主机下有效, 不支持 ESMTP 验证)',
'settings_mail_settings_server' => 'SMTP 服务器',
'settings_mail_settings_server_comment' => '设置 SMTP 服务器的地址',
'settings_mail_settings_port' => 'SMTP 端口',
'settings_mail_settings_port_comment' => '设置 SMTP 服务器的端口,默认为 25',
'settings_mail_settings_auth' => 'SMTP 服务器要求身份验证',
'settings_mail_settings_auth_comment' => '如果 SMTP 服务器要求身份验证才可以发信,请选择“是”',
'settings_mail_settings_from' => '发信人邮件地址',
'settings_mail_settings_from_comment' => '如果需要验证, 必须为本服务器的邮件地址。邮件地址中如果要包含用户名,格式为“username <user@domain.com>”',
'settings_mail_settings_username' => 'SMTP 身份验证用户名',
'settings_mail_settings_password' => 'SMTP 身份验证密码',
'settings_mail_settings_delimiter' => '邮件头的分隔符',
'settings_mail_settings_delimiter_comment' => '请根据您邮件服务器的设置调整此参数',
'settings_mail_settings_delimiter_crlf' => '使用 CRLF 作为分隔符',
'settings_mail_settings_delimiter_lf' => '使用 LF 作为分隔符',
'settings_mail_settings_delimiter_cr' => '使用 CR 作为分隔符',
'settings_mail_settings_includeuser' => '收件人地址中包含用户名',
'settings_mail_settings_includeuser_comment' => '选择“是”将在收件人的邮件地址中包含论坛用户名',
'domain_list' => '域名解析列表',
'domain_list_updated' => '域名解析列表成功更新。',
'domain_add' => '添加域名解析',
'domain_add_succeed' => '域名解析添加成功。',
'delete' => '删除',
'domain' => '域名',
'ip' => 'IP',
'user_search' => '搜索用户',
'user_name' => '用户名',
'user_regdate' => '注册日期',
'user_regip' => '注册IP',
'user_before' => '之前',
'user_after' => '之后',
'user_add' => '添加用户',
'user_password' => '密码',
'user_addsubmit' => '添 加',
'user_avatar' => '头像',
'user_avatar_virtual' => '虚拟头像',
'user_avatar_real' => '真实头像',
'delete_avatar' => '删除头像',
'delete' => '删除',
'email' => 'Email',
'user_list' => '用户列表',
'user_add_succeed' => '成功添加用户。',
'user_delete_confirm' => '该操作不可恢复,您确认要删除这些用户吗?',
'user_delete_succeed' => '成功删除用户',
'user_add_failed' => '添加用户失败',
'user_add_username_ignore' => '用户名不合法',
'user_add_username_badwords' => '用户名包含敏感字符',
'user_add_username_exists' => '该用户名已经被注册',
'user_add_email_formatinvalid' => 'Email 地址不合法',
'user_add_email_ignore' => 'Email 包含不可使用的邮箱域名',
'user_add_email_exists' => '该 Email 地址已经被注册',
'user_edit_profile' => '编辑用户资料',
'user_edit_profile_sucessfully' => '编辑用户资料成功',
'user_edit_profile_failed' => '编辑用户资料失败',
'user_keep_blank' => '密码留空,保持不变。',
'cache_update' => '更新缓存',
'cache_update_data' => '更新数据缓存',
'cache_update_tpl' => '更新模板缓存',
'db_export' => '数据备份',
'db_export_filename' => '备份文件名',
'db_export_volumesize' => '分卷长度(kb)',
'db_import' => '导入',
'db_list' => '数据恢复',
'db_filename' => '文件名',
'db_version' => '版本',
'db_dateline' => '时间',
'db_size' => '尺寸',
'db_volume' => '卷号',
'db_operation' => '操作',
'db_delete_succeed' => '指定备份文件成功删除。',
'db_backup_dir' => '备份所在目录',
'db_backup_date' => '备份日期',
'db_detail' => '详情',
'db_start_delete_dumpfile' => '开始删除备份数据,请等待,请勿关闭浏览器',
'db_delete_dumpfile_confirm' => '删除数据库备份会同时删除UCenter 下所有应用的同目录下的备份,您确定要删除吗?',
'db_start_import_dumpfile' => '开始恢复数据,请等待,请勿关闭浏览器',
'db_import_uc_dumpfile_confirm' => '导入备份数据将会覆盖现有用户中心的数据,您确定导入吗?',
'db_import_dumpfile_confirm' => '导入备份数据会覆盖现有的数据,您确定导入吗?',
'db_start_export_dumpfile' => '开始备份数据,请等待,请勿关闭浏览器',
'db_list_tips' => '根据备份日期选择要恢复的备份,点击“详情”进入之后选择要恢复的应用备份',
'db_import_tips' => '在需要恢复的应用前面勾选,之后点击“提交”按钮即可恢复备份数据',
'dumpfile_exists' => '备份存在',
'message_title'=>'提示信息',
'message_back'=>'点击这里返回',
'message_redirect'=>'页面将在 3 秒后自动跳转到下一页,点击这里直接跳转...',
'update_succeed' => '更新成功。',
'log_list' => '日志列表',
'log_operator' => '操作者',
'log_ip' => 'IP',
'log_time' => '时间',
'log_operation' => '操作',
'log_extra' => '其他 ',
'home_version' => 'UCenter 程序版本',
'home_environment' => '操作系统及 PHP',
'home_server_software' => '服务器软件',
'home_server_ip' => '主机名',
'home_database' => 'MySQL 版本',
'home_note_count' => '未发送的通知数',
'home_pm_count' => '短消息数',
'home_friend_count' => '好友记录数',
'home_upload_perm' => '上传许可',
'home_database_size' => '当前数据库尺寸',
'home_attach_size' => '当前附件尺寸',
'home_dev' => 'Discuz! 开发团队',
'home_dev_copyright' => '版权所有',
'home_dev_manager' => '总策划兼项目经理',
'home_dev_team' => '开发团队',
'home_safe_team' => '安全团队',
'home_supported_team' => '支持团队',
'home_supported_ui' => '界面与用户体验团队',
'home_supported_thanks' => '感谢贡献者',
'home_dev_addons' => 'Hack 与插件设计',
'home_dev_skins' => '界面美工设计',
'home_dev_enterprise_site' => '公司网站',
'home_dev_project_site' => '产品官方网站',
'home_dev_community' => '产品官方论坛',
'home_stats' => 'UCenter 统计信息',
'home_member_count' => '用户总数',
'home_app_count' => '应用总数',
'home_env' => '系统信息',
'home_team' => 'UCenter 开发团队',
'admin_add_succeed' => '添加 $addname 为管理员成功',
'admin_already_is_administrator' => '$addname 已经是管理员了',
'admin_failed' => '添加 $addname 为管理员失败',
'admin_user_nonexistance' => '无此用户: $addname',
'admin_config_unwritable' => '/data/config.inc.php 文件不可写',
'admin_founder_pw_incorrect' => '创始人账号密码输入错误',
'admin_pw_incorrect' => '两次输入的密码不一致',
'admin_pw_oldpw' => '请输入原创始人密码',
'admin_pw_newpw' => '请输入新密码',
'admin_pw_newpw2' => '请重复输入新密码',
'admin_pw_too_short' => '您的密码太短,可能会不安全,您确定设定此密码吗?',
'admin_founder_pw_modified' => '创始人账号密码修改成功',
'admin_add_admin' => '添加管理员',
'admin_modify_founder_pw' => '修改创始人密码',
'admin_privilege' => '权 限',
'admin_allow_setting' => '允许改变设置',
'admin_allow_app' => '允许管理应用',
'admin_allow_user' => '允许管理用户',
'admin_allow_badwords' => '允许管理词语过滤',
'admin_allow_tag' => '允许管理TAG',
'admin_allow_pm' => '允许管理短消息',
'admin_allow_credits' => '允许管理积分',
'admin_allow_hosts' => '允许管理域名解析',
'admin_allow_database' => '允许管理数据',
'admin_allow_cache' => '允许管理缓存',
'admin_allow_log' => '允许查看日志',
'admin_allow_note' => '允许管理数据列表',
'oldpw' => '旧密码',
'newpw' => '新密码',
'repeatpw' => '重复新密码',
'admin_list' => '管理员列表',
'confirm_delete' => '您确定删除吗?',
'profile' => '资料',
'privilege' => '权限',
'admin_edit_priv' => '编辑管理员权限',
'admin_priv_modified_successfully' => '编辑管理员权限成功',
'admin_priv_modified_failed' => '编辑管理员权限失败',
'admin_modification_notice' => '请谨慎开放“管理应用”,“管理用户”、“管理数据”权限',
'admin_allow_pm' => '允许管理短消息',
'admin_admin' => '管理员',
'admin_return_admin_ls' => '返回管理员列表',
'admin_return_user_ls' => '返回用户列表',
'view_new_version' => '查看最新版本',
);
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/templates.lang.php
|
PHP
|
asf20
| 22,587
|
{template header}
{if $iframe}
<script type="text/javascript">
var uc_menu_data = new Array();
o = document.getElementById('header_menu_menu');
elems = o.getElementsByTagName('A');
for(i = 0; i<elems.length; i++) {
uc_menu_data.push(elems[i].innerHTML);
uc_menu_data.push(elems[i].href);
}
try {
parent.uc_left_menu(uc_menu_data);
parent.uc_modify_sid('{$sid}');
} catch(e) {}
</script>
{/if}
<div class="container">
<h3>{lang home_stats}</h3>
<ul class="memlist fixwidth">
<li><em><!--{if $user['allowadminapp'] || $user['isfounder']}--><a href="admin.php?m=app&a=ls">{lang home_app_count}</a><!--{else}-->{lang home_app_count}<!--{/if}-->:</em>$apps</li>
<li><em><!--{if $user['allowadminuser'] || $user['isfounder']}--><a href="admin.php?m=user&a=ls">{lang home_member_count}</a><!--{else}-->{lang home_member_count}<!--{/if}-->:</em>$members</li>
<li><em><!--{if $user['allowadminpm'] || $user['isfounder']}--><a href="admin.php?m=pm&a=ls">{lang home_pm_count}</a><!--{else}-->{lang home_pm_count}<!--{/if}-->:</em>$pms</li>
<li><em>{lang home_friend_count}:</em>$friends</li>
</ul>
<h3>{lang note_status}</h3>
<ul class="memlist fixwidth">
<li><em><!--{if $user['allowadminnote'] || $user['isfounder']}--><a href="admin.php?m=note&a=ls">{lang home_note_count}</a><!--{else}-->{lang home_note_count}<!--{/if}-->:</em>$notes</li>
<!--{if $errornotes}-->
<li><em><!--{if $user['allowadminnote'] || $user['isfounder']}--><a href="admin.php?m=note&a=ls">{lang note_fail_apps}</a><!--{else}-->{lang note_fail_apps}<!--{/if}-->:</em>
<!--{loop $errornotes $appid $error}-->
$applist[$appid][name]
<!--{/loop}-->
<!--{/if}-->
</ul>
<h3>{lang home_env}</h3>
<ul class="memlist fixwidth">
<li><em>{lang home_version}:</em>UCenter {UC_SERVER_VERSION} Release {UC_SERVER_RELEASE} <a href="http://www.discuz.net/forumdisplay.php?fid=151" target="_blank">{lang view_new_version}</a>
<li><em>{lang home_environment}:</em>$serverinfo</li>
<li><em>{lang home_server_software}:</em>$_SERVER[SERVER_SOFTWARE]</li>
<li><em>{lang home_database}:</em>$dbversion</li>
<li><em>{lang home_upload_perm}:</em>$fileupload</li>
<li><em>{lang home_database_size}:</em>$dbsize</li>
<li><em>{lang home_server_ip}:</em>$_SERVER[SERVER_NAME] ($_SERVER[SERVER_ADDR]:$_SERVER[SERVER_PORT])</li>
<li><em>magic_quote_gpc:</em>$magic_quote_gpc</li>
<li><em>allow_url_fopen:</em>$allow_url_fopen</li>
</ul>
<h3>{lang home_team}</h3>
<ul class="memlist fixwidth">
<li>
<em>{lang home_dev_copyright}:</em>
<em class="memcont"><a href="http://www.comsenz.com" target="_blank">康盛创想(北京)科技有限公司 (Comsenz Inc.)</a></em>
</li>
<li>
<em>{lang home_dev_manager}:</em>
<em class="memcont"><a href="http://www.discuz.net/space.php?uid=1" target="_blank">戴志康 (Kevin 'Crossday' Day)</a></em>
</li>
<li>
<em>{lang home_dev_team}:</em>
<em class="memcont">
<a href="http://www.discuz.net/space.php?uid=859" target="_blank">Hypo 'cnteacher' Wang</a>,
<a href="http://www.discuz.net/space.php?uid=16678" target="_blank">Yang 'Dokho' Song</a>,
<a href="http://www.discuz.net/space.php?uid=10407" target="_blank">Qiang Liu</a>,
<a href="http://www.discuz.net/space.php?uid=80629" target="_blank">Ning 'Monkey' Hou</a>,
<a href="http://www.discuz.net/space.php?uid=15104" target="_blank">Xiongfei 'Redstone' Zhao</a>
</em>
</li>
<li>
<em>{lang home_safe_team}:</em>
<em class="memcont">
<a href="http://www.discuz.net/space.php?uid=859" target="_blank">Hypo 'cnteacher' Wang</a>,
<a href="http://www.discuz.net/space.php?uid=210272" target="_blank">XiaoDun 'Kenshine' Fang</a>,
<a href="http://www.discuz.net/space.php?uid=492114" target="_blank">Liang 'Metthew' Xu</a>,
<a href="http://www.discuz.net/space.php?uid=285706" target="_blank">Wei (Sniffer) Yu</a>
</em>
</li>
<li>
<em>{lang home_supported_team}:</em>
<em class="memcont">
<a href="http://www.discuz.net/space.php?uid=2691" target="_blank">Liang 'Readme' Chen</a>,
<a href="http://www.discuz.net/space.php?uid=1519" target="_blank">Yang 'Summer' Xia</a>,
<a href="http://www.discuz.net/space.php?uid=1904" target="_blank">Tao 'FengXue' Cheng</a>
</em>
</li>
<li>
<em>{lang home_supported_ui}:</em>
<em class="memcont">
<a href="http://www.discuz.net/space.php?uid=294092" target="_blank">Fangming 'Lushnis' Li</a>,
<a href="http://www.discuz.net/space.php?uid=717854" target="_blank">Ruitao 'Pony.M' Ma</a>
</em>
</li>
<li>
<em>{lang home_supported_thanks}:</em>
<em class="memcont">
<a href="http://www.discuz.net/space.php?uid=122246" target="_blank">Heyond</a>
</em>
</li>
<li>
<em>{lang home_dev_enterprise_site}:</em>
<em class="memcont"><a href="http://www.comsenz.com" target="_blank">http://www.Comsenz.com</a></em>
</li>
<li>
<em>{lang home_dev_project_site}:</em>
<em class="memcont"><a href="http://www.discuz.com" target="_blank">http://www.Discuz.com</a></em>
</li>
<li>
<em>{lang home_dev_community}:</em>
<em class="memcont"><a href="http://www.discuz.net" target="_blank">http://www.Discuz.net</a></em>
</li>
</ul>
</div>
$ucinfo
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_frame_main.htm
|
HTML
|
asf20
| 5,459
|
{template header_client}
{template pm_nav}
<script type="text/javascript">
function switchfirendls() {
if(document.getElementById('friendls').style.display == '') {
document.getElementById('friendls').style.display = 'none';
document.getElementById('pmcontent').className = 'pmcontent noside';
} else {
document.getElementById('friendls').style.display = '';
document.getElementById('pmcontent').className = 'pmcontent';
}
}
</script>
<div class="ucinfo">
<!--{if $do == 'savebox' && $messagepreview}--><h1>$subject<!--{/if}-->
<!--{if $pmid && $do == 'forward'}-->
<h1><span><button onclick="location.href='index.php?m=pm_client&a=view&pmid=$pmid&folder=inbox&$extra'">{lang back}</button></span></h1>
<!--{elseif $pmid && $do == 'savebox'}-->
<span><button onclick="location.href='index.php?m=pm_client&a=ls&folder=savebox&$extraret'">{lang back}</button></span>
<!--{/if}-->
<!--{if $do == 'savebox' && $messagepreview}-->
</h1>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="newpm">
<tbody>
<tr<!--{if $pm[new]}--> class="onset"<!--{/if}-->>
<td class="sel"></td>
<td class="ava">{lang pm_preview}</td>
<td class="title">$messagepreview</td>
<td class="ava"><img src="avatar.php?uid=$user[uid]&size=small" /></td>
</tr>
</tbody>
</table>
<!--{/if}-->
<form method="post" id="postpmform" name="postpmform" action="index.php?m=pm_client&a=send<!--{if $pmid && $do == 'savebox'}-->&pmid=$pmid<!--{/if}-->&$extra">
<input type="hidden" name="formhash" value="{FORMHASH}">
<input type="hidden" name="saveoutbox" value="0">
<input type="hidden" name="related" value="$related">
<!--{if $sendpmseccode}--><input type="hidden" name="seccodehidden" value="$seccodeinit" /><!--{/if}-->
<div class="pmcontent{if !$friends} noside{/if}" id="pmcontent">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="newpm">
<tbody>
<tr>
<td class="sel"></td>
<th>{lang pm_subject}:</th>
<td><input class="ucinput" type="text" name="subject" size="65" maxlength="75" value="$subject" />
<!--{if $friends}-->
<a class="moreuser" href="###" onclick="switchfirendls()" title="{lang pm_swith_friendls}">close</a>
<!--{/if}-->
</td>
</tr>
<tr>
<td class="sel"></td>
<th>{lang pm_to}:</th>
<td>
<input class="ucinput" type="text" name="msgto" size="65" value="$touser" />
</td>
</tr>
<tr>
<td class="sel"></td>
<th>{lang pm_message}:</th>
<td>
{template pm_editorbar}
<textarea class="listarea" id="pm_textarea" rows="15" cols="10" style="height: 210px" name="message" onKeyDown="ctlent(event)">$message</textarea>
</td>
</tr>
<!--{if $sendpmseccode}-->
<tr>
<td class="sel"></td>
<th>{lang login_seccode}:</th>
<td>
<label><input type="text" name="seccode" value="" size="5" /> <img width="70" height="21" src="admin.php?m=seccode&seccodeauth=$seccodeinit&{eval echo rand();}" /></label>
</td>
</tr>
<!--{/if}-->
</tbody>
<tfoot>
<tr>
<td class="sel"></td>
<th></th>
<td>
<button name="pmsubmit" type="submit" class="pmsubmit" onclick="this.form.saveoutbox.value = 0">{lang pm_sendpm}</button>
<!--{if $a == 'savebox'}--><button name="pmsubmit" type="button" onclick="location='index.php?m=pm_client&a=delete&pmid=$pmid&folder=savebox&$extra'">{lang delete}</button><!--{/if}-->
<button name="pmsavesubmit" type="button" onclick="this.form.saveoutbox.value = 1;this.form.submit()">{lang save}</button>
</td>
</tr>
</tfoot>
</table>
</div>
<!--{if $friends}-->
<div class="pmside" id="friendls">
<h3><input type="checkbox" name="chkall" onclick="checkall(this.form, 'friend')" value="$pm[pmid]" /> {lang pm_tofriends}</h3>
<ul>
<!--{loop $friends $friend}-->
<li><input type="checkbox" name="friend[]" value="$friend[friendid]"> $friend[username]</li>
<!--{/loop}-->
</ul>
</div>
<!--{/if}-->
</form>
</div>
{template footer_client}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/pm_send.htm
|
HTML
|
asf20
| 4,105
|
{template header}
<!--{if $a == 'ls'}-->
<script src="js/common.js" type="text/javascript"></script>
<script src="js/calendar.js" type="text/javascript"></script>
<script type="text/javascript">
function switchbtn(btn) {
$('addadmindiv').className = btn == 'addadmin' ? 'tabcontentcur' : '' ;
$('editpwdiv').className = btn == 'addadmin' ? '' : 'tabcontentcur';
$('addadmin').className = btn == 'addadmin' ? 'tabcurrent' : '';
$('editpw').className = btn == 'addadmin' ? '' : 'tabcurrent';
$('addadmindiv').style.display = btn == 'addadmin' ? '' : 'none';
$('editpwdiv').style.display = btn == 'addadmin' ? 'none' : '';
}
function chkeditpw(theform) {
if(theform.oldpw.value == '') {
alert('{lang admin_pw_oldpw}');
theform.oldpw.focus();
return false;
}
if(theform.newpw.value == '') {
alert('{lang admin_pw_newpw}');
theform.newpw.focus();
return false;
}
if(theform.newpw2.value == '') {
alert('{lang admin_pw_newpw2}');
theform.newpw2.focus();
return false;
}
if(theform.newpw.value != theform.newpw2.value) {
alert('{lang admin_pw_incorrect}');
theform.newpw2.focus();
return false;
}
if(theform.newpw.value.length < 6 && !confirm('{lang admin_pw_too_short}')) {
theform.newpw.focus();
return false;
}
return true;
}
</script>
<div class="container">
<!--{if $status}-->
<div class="{if $status > 0}correctmsg{else}errormsg{/if}">
<p>
{if $status == 1} {lang admin_add_succeed}
{elseif $status == -1} {lang admin_add_succeed}
{elseif $status == -2} {lang admin_failed}
{elseif $status == -3}{lang admin_user_nonexistance}
{elseif $status == -4} {lang admin_config_unwritable}
{elseif $status == -5} {lang admin_founder_pw_incorrect}
{elseif $status == -6} {lang admin_pw_incorrect}
{elseif $status == 2} {lang admin_founder_pw_modified}
{/if}
</p>
</div>
<!--{/if}-->
<div class="hastabmenu" style="height:175px;">
<ul class="tabmenu">
<li id="addadmin" class="tabcurrent"><a href="#" onclick="switchbtn('addadmin');">{lang admin_add_admin}</a></li>
<!--{if $user['isfounder']}--><li id="editpw"><a href="#" onclick="switchbtn('editpw');">{lang admin_modify_founder_pw}</a></li><!--{/if}-->
</ul>
<div id="addadmindiv" class="tabcontentcur">
<form action="admin.php?m=admin&a=ls" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="dbtb">
<tr>
<td class="tbtitle">{lang user_name}:</td>
<td><input type="text" name="addname" class="txt" /></td>
</tr>
<tr>
<td valign="top" class="tbtitle">{lang admin_privilege}:</td>
<td>
<ul class="dblist">
<li><input type="checkbox" name="allowadminsetting" value="1" class="checkbox" checked="checked" />{lang admin_allow_setting}</li>
<li><input type="checkbox" name="allowadminapp" value="1" class="checkbox" />{lang admin_allow_app}</li>
<li><input type="checkbox" name="allowadminuser" value="1" class="checkbox" />{lang admin_allow_user}</li>
<li><input type="checkbox" name="allowadminbadword" value="1" class="checkbox" checked="checked" />{lang admin_allow_badwords}</li>
<li><input type="checkbox" name="allowadmintag" value="1" class="checkbox" checked="checked" />{lang admin_allow_tag}</li>
<li><input type="checkbox" name="allowadminpm" value="1" class="checkbox" checked="checked" />{lang admin_allow_pm}</li>
<li><input type="checkbox" name="allowadmincredits" value="1" class="checkbox" checked="checked" />{lang admin_allow_credits}</li>
<li><input type="checkbox" name="allowadmindomain" value="1" class="checkbox" checked="checked" />{lang admin_allow_hosts}</li>
<li><input type="checkbox" name="allowadmindb" value="1" class="checkbox" />{lang admin_allow_database}</li>
<li><input type="checkbox" name="allowadminnote" value="1" class="checkbox" checked="checked" />{lang admin_allow_note}</li>
<li><input type="checkbox" name="allowadmincache" value="1" class="checkbox" checked="checked" />{lang admin_allow_cache}</li>
<li><input type="checkbox" name="allowadminlog" value="1" class="checkbox" checked="checked" />{lang admin_allow_log}</li>
</ul>
</td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" name="addadmin" value="{lang submit}" class="btn" />
</td>
</tr>
</table>
</form>
</div>
<!--{if $user['isfounder']}-->
<div id="editpwdiv" class="tabcontent" style="display:none;">
<form action="admin.php?m=admin&a=ls" onsubmit="return chkeditpw(this)" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="dbtb" style="height:123px;">
<tr>
<td class="tbtitle">{lang oldpw}:</td>
<td><input type="password" name="oldpw" class="txt" /></td>
</tr>
<tr>
<td class="tbtitle">{lang newpw}:</td>
<td><input type="password" name="newpw" class="txt" /></td>
</tr>
<tr>
<td class="tbtitle">{lang repeatpw}:</td>
<td><input type="password" name="newpw2" class="txt" /></td>
</tr>
<tr>
<td></td>
<td>
<input type="submit" name="editpwsubmit" value="{lang submit}" class="btn" />
</td>
</tr>
</table>
</form>
</div>
<!--{/if}-->
</div>
<h3>{lang admin_list}</h3>
<div class="mainbox">
<!--{if $userlist}-->
<form action="admin.php?m=admin&a=ls" onsubmit="return confirm('{lang confirm_delete}');" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="datalist fixwidth" onmouseover="addMouseEvent(this);">
<tr>
<th><input type="checkbox" name="chkall" id="chkall" onclick="checkall('delete[]')" value="1" class="checkbox" /><label for="chkall">{lang delete}</label></th>
<th>{lang user_name}</th>
<th>{lang email}</th>
<th>{lang user_regdate}</th>
<th>{lang user_regip}</th>
<th>{lang profile}</th>
<th>{lang privilege}</th>
</tr>
<!--{loop $userlist $user}-->
<tr>
<td class="option"><input type="checkbox" name="delete[]" value="$user[uid]" value="1" class="checkbox" /></td>
<td class="username">$user[username]</td>
<td>$user[email]</td>
<td class="date">$user[regdate]</td>
<td class="ip">$user[regip]</td>
<td class="ip"><a href="admin.php?m=user&a=edit&uid=$user[uid]&fromadmin=yes">{lang profile}</a></td>
<td class="ip"><a href="admin.php?m=admin&a=edit&uid=$user[uid]">{lang privilege}</a></td>
</tr>
<!--{/loop}-->
<tr class="nobg">
<td><input type="submit" value="{lang submit}" class="btn" /></td>
<td class="tdpage" colspan="4">$multipage</td>
</tr>
</table>
</form>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
</div>
<!--{if $_POST['editpwsubmit']}-->
<script type="text/javascript">
switchbtn('editpw');
</script>
<!--{else}-->
<script type="text/javascript">
switchbtn('addadmin');
</script>
<!--{/if}-->
<!--{else}-->
<div class="container">
<h3 class="marginbot">{lang admin_edit_priv}<a href="admin.php?m=admin&a=ls" class="sgbtn">{lang admin_return_admin_ls}</a></h3>
<!--{if $status == 1}-->
<div class="correctmsg"><p>{lang admin_priv_modified_successfully}</p></div>
<!--{elseif $status == -1}-->
<div class="correctmsg"><p>{lang admin_priv_modified_failed}</p></div>
<!--{else}-->
<div class="note">{lang admin_modification_notice}</div>
<!--{/if}-->
<div class="mainbox">
<form action="admin.php?m=admin&a=edit&uid=$uid" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="opt">
<tr>
<th>{lang admin_admin} $admin[username]:</th>
</tr>
<tr>
<td>
<ul>
<li><input type="checkbox" name="allowadminsetting" value="1" class="checkbox" {if $admin[allowadminsetting]} checked="checked" {/if}/>{lang admin_allow_setting}</li>
<li><input type="checkbox" name="allowadminapp" value="1" class="checkbox" {if $admin[allowadminapp]} checked="checked" {/if}/>{lang admin_allow_app}</li>
<li><input type="checkbox" name="allowadminuser" value="1" class="checkbox" {if $admin[allowadminuser]} checked="checked" {/if}/>{lang admin_allow_user}</li>
<li><input type="checkbox" name="allowadminbadword" value="1" class="checkbox" {if $admin[allowadminbadword]} checked="checked" {/if}/>{lang admin_allow_badwords}</li>
<li><input type="checkbox" name="allowadmintag" value="1" class="checkbox" {if $admin[allowadmintag]} checked="checked" {/if}/>{lang admin_allow_tag}</li>
<li><input type="checkbox" name="allowadminpm" value="1" class="checkbox" {if $admin[allowadminpm]} checked="checked" {/if}/>{lang admin_allow_pm}</li>
<li><input type="checkbox" name="allowadmincredits" value="1" class="checkbox" {if $admin[allowadmincredits]} checked="checked" {/if}/>{lang admin_allow_credits}</li>
<li><input type="checkbox" name="allowadmindomain" value="1" class="checkbox" {if $admin[allowadmindomain]} checked="checked" {/if}/>{lang admin_allow_hosts}</li>
<li><input type="checkbox" name="allowadmindb" value="1" class="checkbox" {if $admin[allowadmindb]} checked="checked" {/if}/>{lang admin_allow_database}</li>
<li><input type="checkbox" name="allowadminnote" value="1" class="checkbox" {if $admin[allowadminnote]} checked="checked" {/if}/>{lang admin_allow_note}</li>
<li><input type="checkbox" name="allowadmincache" value="1" class="checkbox" {if $admin[allowadmincache]} checked="checked" {/if}/>{lang admin_allow_cache}</li>
<li><input type="checkbox" name="allowadminlog" value="1" class="checkbox" {if $admin[allowadminlog]} checked="checked" {/if}/>{lang admin_allow_log}</li>
</ul>
</td>
</tr>
</table>
<div class="opt"><input type="submit" name="submit" value=" {lang submit} " class="btn" tabindex="3" /></div>
</form>
</div>
</div>
<!--{/if}-->
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_admin.htm
|
HTML
|
asf20
| 10,404
|
<?php
$lang = array(
'please_login' => '请重新登录',
'receiver_no_exists' => '收件人不存在,请重新填写',
'pm_save_succeed' => '短消息已保存到草稿箱',
'pm_send_succeed' => '$sent 条短消息成功发送',
'pm_send_announce_succeed' => '公共消息成功发送',
'pm_send_ignore' => '短消息发送失败',
'pm_delete_succeed' => '短消息成功删除',
'pm_delete_invalid' => '短消息无法删除',
'pm_unread' => '当前短消息标记为未读状态',
'blackls_updated' => '忽略列表已更新',
'db_export_filename_invalid' => '您没有输入备份文件名或文件名中使用了敏感的扩展名,请返回修改。',
'db_export_file_invalid' => '数据文件无法保存到服务器,请检查目录属性。',
'db_export_multivol_redirect' => '分卷备份: 数据文件 #$volume 成功创建,程序将自动继续。',
'db_export_multivol_succeed' => '恭喜您,全部备份文件成功创建,备份完成。',
'db_import_multivol_succeed' => '分卷数据成功导入数据库。',
'db_import_file_illegal' => '数据文件不存在: 可能服务器不允许上传文件或尺寸超过限制。',
'db_import_multivol_redirect' => '分卷数据 #$volume 成功导入数据库,程序将自动导入本次备份的其他分卷。',
'db_back_api_url_invalid' => '无法访问到该应用的备份接口,请拷贝 UCenter 根目录下api/dbbak.php 到该应用的api目录下',
'delete_dumpfile_success' => '删除数据备份文件成功',
'delete_dumpfile_redirect' => '#$appname 下同名备份文件删除成功,程序将自动删除其他应用下的。',
'dbback_error_code_1' => '无法创建目录',
'dbback_error_code_2' => '备份文件写入失败',
'dbback_error_code_3' => 'sql执行错误',
'dbback_error_code_4' => '目录为空或者目录不存在',
'dbback_error_code_5' => '指定目录没有找到合法的备份文件',
'dbback_error_code_6' => '备份文件缺失',
'dbback_error_code_7' => '指定备份目录不存在',
'dbback_error_code_8' => '删除指定的数据库备份文件错误',
'dbback_error_code_9' => '备份接口程序暂不支持此种应用的备份',
'undefine_error' => '未知错误',
'app_add_url_invalid' => '接口 URL 地址不合法',
'app_add_ip_invalid' => 'IP 地址不合法',
'read_plugin_invalid' => '读取插件失败',
'syncappcredits_updated' => '成功同步应用的积分设置',
'note_succeed' => '通知成功',
'note_false' => '通知失败',
'no_permission_for_this_module' => '没有权限管理改模块',
'admin_user_exists' => '该用户名已经存在,请返回尝试使用其他用户名。',
'mail_succeed' => '邮件发送成功',
'mail_false' => '邮件发送失败',
'user_edit_noperm' => '您没权限编辑此用户',
'appid_invalid' => '应用id不合法',
'app_apifile_not_exists' => '文件 #$apifile 不存在,请返回检查应用的路径是否正确。',
'app_apifile_too_low' => '接口文件 #$apifile 版本太低',
'app_path_not_exists' => '该路径不存在,请返回检查',
'pm_send_seccode_error' => '验证码输入错误',
'pm_send_regdays_error' => '注册 #$pmsendregdays 天之内不能发送短消息',
'pm_send_limit1day_error' => '对不起,超出了您24小时最大发送短消息数,请返回。',
'pm_send_floodctrl_error' => '对不起,您两次发送短消息间隔太短,请返回。',
);
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/messages.lang.php
|
PHP
|
asf20
| 3,485
|
{template header}
<script src="js/common.js" type="text/javascript"></script>
<div class="container">
<!--{if $a == 'ls'}-->
<h3 class="marginbot">{lang menu_tag_templates}</h3>
<div class="mainbox">
<!--{if $applist}-->
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="datalist fixwidth">
<tr>
<th nowrap>{lang app_id}</th>
<th nowrap>{lang app_name}</th>
</tr>
<!--{loop $applist $app}-->
<tr>
<td width="35">$app[appid]</td>
<td><a href="admin.php?m=tag&a=detail&appid=$app[appid]"><strong>$app[name]</strong></a></td>
</tr>
<!--{/loop}-->
</table>
<div class="margintop"></div>
<!--{else}-->
<div class="note">
<p class="i">{lang list_empty}</p>
</div>
<!--{/if}-->
</div>
<!--{elseif $a == 'detail'}-->
<h3 class="marginbot">{lang menu_tag_templates}<a href="admin.php?m=tag&a=ls" class="sgbtn">{lang app_list_return}</a></h3>
<div class="note fixwidthdec">
<p>{lang tag_tips}</p></div>
<div class="mainbox">
<form action="admin.php?m=tag&a=detail&appid=$appid" method="post">
<input type="hidden" name="formhash" value="{FORMHASH}">
<table class="opt">
<tr>
<th colspan="2">{lang app_name}: $appname</th>
</th>
<tr>
<th colspan="2">{lang tag_global_template}:</th>
</tr>
<tr>
<td valign="top"><textarea class="bigarea" style="float:left;width:400px;height:200px" name="templatenew">$template</textarea></td>
<td valign="top">
<!--{loop $fields $field $memo}-->
<b>{$field}</b> $memo<br />
<!--{/loop}-->
<b>[node]...[/node]</b> {lang tag_template_comment}<br />
</td>
</tr>
<tr class="nobg">
<td colspan="2"><input type="submit" value="{lang submit}" class="btn" /></td>
</tr>
</table>
</form>
<!--{/if}-->
</div>
{template footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/view/default/admin_tag.htm
|
HTML
|
asf20
| 1,901
|
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Common Style ~~~~ */
* { word-wrap: break-word; }
body { background: #FFF; text-align: center; }
* html body { width: expression(document.body.scrollHeight >= document.documentElement.clientHeight ? '780px' : ''); }
body, td, input, textarea, select, button { color: #000; font: 12px/1.6em Helvetica, Arial, sans-serif; }
body, ul, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset { margin: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 { font-size: 1em; }
#menu li, .popupmenu_popup li, #announcement li, .portalbox li, .tabs li, .postmessage fieldset li, .side li, .formbox li, .notice li { list-style: none; }
a { color: #000; text-decoration: none; }
a:hover { text-decoration: underline; }
a img { border: none; }
em, cite, strong, th { font-style: normal; font-weight: normal; }
table { empty-cells: show; border-collapse: collapse; }
.bold { font-weight: bold; }
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ucbox~~~~ */
.ucbody { text-align: left; }
h1 { height: 32px; line-height: 32px; background: url(headerbg.gif) repeat-x 50%; border-bottom: 1px solid #CAD9EA; color: #005C89; font-size: 1.13em; padding-left: 1em; }
.ucnav { height: 35px; line-height: 35px; margin: 10px 10px 0; color:#666; background: url(navbg.gif) repeat-x 50%; border: solid #DEDEDE; border-width: 1px 1px 0; }
.ucnav a { float: left; height: 29px; line-height: 29px; margin: 4px 0 0 4px; padding: 0 10px; background: #EFEFEF; border: solid #D1D1D1; border-width: 1px 1px 0; color: #555; }
.ucnav a:hover { border: solid #999; border-width: 1px 1px 0; }
.ucnav a.ucontype { height: 30px; background: #FFF; border: solid #999; border-width: 1px 1px 0; font-weight: bold; color:#000; }
.ucnav a.sendpmontype { padding-left: 32px; background: #FFF url(sendpm.gif) no-repeat 10px 50%; }
.ucnav a.sendpm { padding-left: 32px; background: #EFEFEF url(sendpm.gif) no-repeat 10px 50%; }
.navinfo { float: right; margin-right: 10px; }
* html .navinfo { padding-top: 8px;}
.navinfo img { vertical-align: middle; margin-right: 10px; }
.navinfo a { float: none; background: none; padding: 0; border: none; }
.navinfo a:hover { border: none; }
.navinfo a.ontype { font-weight: bold; color:#000; }
.ucinfo { margin: 0 10px 10px; border: solid #A4B2BD; border-width: 0 1px 1px; padding: 6px; overflow: hidden; }
* html .ucinfo { height: 1%; }
.ucinfo a { color: #0871b3; }
.ucinfo a.boldtext { font-weight: bold; }
.ucinfo h1 { height: 62px; line-height: 32px; border-bottom: 2px solid #A3A3A3; margin: 10px auto; padding-left: 0px; }
.ucinfo h1 img { vertical-align: middle; }
.ucinfo h1 span { float: right; }
.ucinfo table { table-layout: fixed; width: 100%; }
.ucinfo form { overflow: hidden; }
* html .ucinfo form { height: 1%; }
.pmlist td, .pmlist th, .newpm td, .newpm th { text-align: left; border-top: none; border-bottom: 1px solid #CAD9EA; color: #666; padding: 5px 0; }
.pmlist td, .pmlist th { height: 56px; }
.pmlist tfoot td, .newpm tfoot td, .newpm tfoot th { border-bottom: none; }
tr.onmsgtitle td, tr.onmsgtitle th { background: #E8F3FD; font-weight: 700; }
.pmlist h2, .newpm h2 { font-weight: 100; font-size: 14px; }
tr.onset td, tr.ontouser td { background: #F4F9FE; }
.newpm em.new { display: block; float: right; background: url(selectpm.gif) no-repeat; padding-left: 20px; width: 46px; height: 16px; }
.onset td h2 { font-weight: 700; }
.sel { width: 40px; text-align: center; vertical-align: top; }
.ava { width: 60px; }
.newpm td.ava { vertical-align: top; }
td.ava img { margin-left: 6px;width: 48px; height: 48px; }
.pef { width: 160px; vertical-align: top; }
.title { width: 490px;}
.title ul { list-style-position : inside; }
.title .pages { float: right; }
.title p { font-weight: bold; }
.newpm tbody th { width: 70px; text-align: right; padding-right: 10px; }
.savetitle em { margin-left: 10px; font-size: 11px; color: #BBB; }
.ctrlbar td { height: 10px; }
.listtype td.selector, .ucinfo td.selector { width: 50px; text-align: center; vertical-align: middle; }
.msgtitle { width: 420px; }
.msgfrom { width: 150px; }
.msgtime { width: 130px;}
.ucinfo .quote, .ucinfo .blockcode { background: #FBFBFB url(citeicon.gif) no-repeat 5px 5px; padding: 30px 20px 10px; border: 1px solid #CCC; margin: 20px 0; }
.ucinfo .blockcode { background: #FBFBFB url(codeicon.gif) no-repeat 8px 6px; }
.ucinfo .blockcode h5 { border: 1px solid #CAD9EA; padding-left: 1em; margin: 4px 2em 2px 0px; background: #F5F5F5; }
.ucinfo .quote h5 { border: 1px solid #CAD9EA; padding-left: 1em; margin: 4px 2em 0px 0px; border-width: 1px 1px 0px 1px; background: url(navonbg.gif) repeat-x 40%; height: 27px; line-height:27px; }
.ucinfo .quote blockquote { margin: 0px 2em 2px 0px; padding: 6px; }
.ucinfo .sl { padding-left: 1.2em; }
.ucinfo .sl span { float: right; margin: -20px 10px 0 0; font-weight: 700; }
.ucinput { border: 1px solid #A4B2BD; padding: 4px 6px;}
.ucnote { border: solid #CAD9EA; border-width: 1px 0; padding: 10px; margin: 10px 3px; background: #F5F5F5; line-height: 1.8em; }
.listarea { border: 1px solid #A4B2BD; width: 99%; }
.linkbox { height: 28px; line-height: 28px; margin: 5px auto; background: #FEFEFE; border: 1px solid #CAD9EA; }
.linkbtn { display: block; float: left; height: 18px; line-height: 18px; padding: 0 10px; margin: 4px 0 0 10px; background: #E8F3FD; border: 1px solid #CAD9EA; }
.right { float: right; margin-right: 10px; color: #999; }
.pmcontent { width: 80%; float: left; }
.noside { width: 100%; }
.pmside { width: 19%; float: right; color: #666666; }
a.moreuser { background: #FFF url(moreuser.gif) no-repeat; width: 16px; height: 16px; margin-top: -24px; float: right; text-indent: 9999px; overflow: hidden; }
.pmside h3 { height: 36px; *height: 37px; line-height: 36px; border-bottom: 1px solid #CAD9EA; }
.pmside ul { list-style: none; height: 300px; display: block; overflow-y: auto; }
.pmside ul li { list-style: none; padding: 3px 0; overflow: hidden; }
.msg { background: #E8F3FD; border: 1px solid #CAD9EA; width: 100%; }
.msg thead th { color: #005C89; padding: 0.5em; color: #666; }
.msg a { color: #666; }
.msg tbody th { background: #FFFFFF; padding: 0.5em; }
.msg tbody td { background: #FFFFFF; padding: 0.5em; }
.msg tbody em { color: #005C89; font-weight: normal; }
.message strong { font-weight: bold; }
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ pages_btns~~~~ */
.pages_btns { padding: 0 0 10px; overflow: hidden; margin-top: 10px; }
.postbtn { float: right; }
button { border: 1px solid; border-color: #E6E6E6 #898989 #898989 #E6E6E6; padding: 0 8px; margin-right: 6px;height: 24px; line-height: 24px; background: #E8E8E8;}
.postbtn { cursor: pointer; }
.pmsubmit { background: #005C89; color: #FFF; }
.pages_btns .pages em { line-height: 26px; border: 1px solid; border-color: #E6E6E6 #898989 #898989 #E6E6E6; }
.pages, .threadflow { float: left; border: 1px solid #CAD9EA; background: #F7F7F7; height: 24px; line-height: 26px; color: #999; overflow: hidden; }
.pages a, .pages strong, .pages em, .pages kbd, #multipage .pages em { float: left; padding: 0 8px; line-height:26px; }
.pages a:hover { background-color: #FFF; }
.pages strong { font-weight: bold; color: #090; background: #CAD9EA; }
.pages a.prev, .pages a.next { line-height: 24px; font-family: Verdana, Arial, Helvetica, sans-serif; }
.pages a.next { padding: 0 15px; }
.pages kbd { border-left: 1px solid #CAD9EA; margin: 0; }
* html .pages kbd { padding: 1px 8px; }
.pages kbd input { border: 1px solid #CAD9EA; margin-top: 3px !important; * > margin-top: 1px !important; margin: 1px 4px 0 3px; padding: 0 2px; height: 17px; }
.pages kbd>input { margin-bottom: 2px; }
/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ editor~~~~ */
.editor a { margin: 6px 2px 6px 0; float: left; text-decoration: none; display: block; height: 20px; width: 21px; background: #E8F3FD url(editor.gif) no-repeat 0 21px; border: 1px solid #D1D1D1; }
.editor a:hover { border: 1px solid #999; }
#editor_b { background-position: 0 0; }
#editor_u { background-position: 0 -19px; }
#editor_i { background-position: 0 -40px; }
#editor_alignleft { background-position: 0 -60px; }
#editor_aligncenter { background-position: 0 -80px; }
#editor_alignright { background-position: 0 -100px; }
#editor_url { background-position: 0 -120px; }
#editor_email { background-position: 0 -140px; }
#editor_floatleft { background-position: 0 -160px; }
#editor_floatright { background-position: 0 -180px; }
#editor_img { background-position: 0 -200px; }
#editor_indent { background-position: 0 -220px; }
#editor_lista { background-position: 0 -240px; }
#editor_list1 { background-position: 0 -260px; }
#editor_color { background-position: 0 -280px; }
#editor_code { background-position: 0 -300px; }
#editor_quote { background-position: 0 -320px; }
#editor_color_menu { width: 113px; height: 71px; background-color: #fff; border: 1px solid #9DB3C5; }
#editor_color_menu input { margin: 2px; padding: 0px; float:left; cursor: pointer; width: 10px; height: 10px; border: 0; }
#editor_color_menu input:hover { border: 1px solid #999; }
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/images/default/style.css
|
CSS
|
asf20
| 9,502
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: index.php 918 2009-01-21 01:24:29Z zhaoxiongfei $
*/
define('UC_SERVER_VERSION', '1.5.0');
define('UC_SERVER_RELEASE', '20090121');
error_reporting(0);
set_magic_quotes_runtime(0);
$mtime = explode(' ', microtime());
$starttime = $mtime[1] + $mtime[0];
define('IN_UC', TRUE);
define('UC_ROOT', dirname(__FILE__).'/');
define('UC_API', strtolower(($_SERVER['HTTPS'] == 'on' ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))));
define('UC_DATADIR', UC_ROOT.'data/');
define('UC_DATAURL', UC_API.'/data');
define('MAGIC_QUOTES_GPC', get_magic_quotes_gpc());
unset($GLOBALS, $_ENV, $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_ENV_VARS);
$_GET = daddslashes($_GET, 1, TRUE);
$_POST = daddslashes($_POST, 1, TRUE);
$_COOKIE = daddslashes($_COOKIE, 1, TRUE);
$_SERVER = daddslashes($_SERVER);
$_FILES = daddslashes($_FILES);
$_REQUEST = daddslashes($_REQUEST, 1, TRUE);
if(!@include UC_DATADIR.'config.inc.php') {
exit('The file <b>data/config.inc.php</b> does not exist, perhaps because of UCenter has not been installed, <a href="install/index.php"><b>Please click here to install it.</b></a>.');
}
$m = getgpc('m');
$a = getgpc('a');
$release = getgpc('release');
if(empty($m) && empty($a)) {
header('Location: admin.php');
exit;
}
if(empty($release)) {
define('RELEASE_ROOT', "release/20080429/");
} elseif(intval($release) != UC_SERVER_RELEASE) {
define('RELEASE_ROOT', "release/$release/");
} else {
define('RELEASE_ROOT', '');
}
if(file_exists(UC_ROOT.RELEASE_ROOT.'model/base.php')) {
require UC_ROOT.RELEASE_ROOT.'model/base.php';
} else {
require UC_ROOT.'model/base.php';
}
if(in_array($m, array('app', 'frame', 'user', 'pm', 'pm_client', 'tag', 'feed', 'friend', 'domain', 'credit', 'mail', 'version'))) {
if(file_exists(UC_ROOT.RELEASE_ROOT."control/$m.php")) {
include UC_ROOT.RELEASE_ROOT."control/$m.php";
} else {
include UC_ROOT."control/$m.php";
}
$classname = $m.'control';
$control = new $classname();
$method = 'on'.$a;
if(method_exists($control, $method) && $a{0} != '_') {
$data = $control->$method();
echo is_array($data) ? $control->serialize($data, 1) : $data;
exit;
} elseif(method_exists($control, '_call')) {
$data = $control->_call('on'.$a, '');
echo is_array($data) ? $control->serialize($data, 1) : $data;
exit;
} else {
exit('Action not found!');
}
} else {
exit('Module not found!');
}
$mtime = explode(' ', microtime());
$endtime = $mtime[1] + $mtime[0];
function daddslashes($string, $force = 0, $strip = FALSE) {
if(!MAGIC_QUOTES_GPC || $force) {
if(is_array($string)) {
foreach($string as $key => $val) {
$string[$key] = daddslashes($val, $force, $strip);
}
} else {
$string = addslashes($strip ? stripslashes($string) : $string);
}
}
return $string;
}
function getgpc($k, $var='R') {
switch($var) {
case 'G': $var = &$_GET; break;
case 'P': $var = &$_POST; break;
case 'C': $var = &$_COOKIE; break;
case 'R': $var = &$_REQUEST; break;
}
return isset($var[$k]) ? $var[$k] : NULL;
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/index.php
|
PHP
|
asf20
| 3,334
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: admin.php 918 2009-01-21 01:24:29Z zhaoxiongfei $
*/
define('UC_SERVER_VERSION', '1.5.0');
define('UC_SERVER_RELEASE', '20090121');
error_reporting(0);
set_magic_quotes_runtime(0);
$mtime = explode(' ', microtime());
$starttime = $mtime[1] + $mtime[0];
define('IN_UC', TRUE);
define('UC_ROOT', substr(__FILE__, 0, -9));
define('UC_API', strtolower((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))));
define('UC_DATADIR', UC_ROOT.'data/');
define('UC_DATAURL', UC_API.'/data');
define('MAGIC_QUOTES_GPC', get_magic_quotes_gpc());
unset($GLOBALS, $_ENV, $HTTP_GET_VARS, $HTTP_POST_VARS, $HTTP_COOKIE_VARS, $HTTP_SERVER_VARS, $HTTP_ENV_VARS);
$_GET = daddslashes($_GET, 1, TRUE);
$_POST = daddslashes($_POST, 1, TRUE);
$_COOKIE = daddslashes($_COOKIE, 1, TRUE);
$_SERVER = daddslashes($_SERVER);
$_FILES = daddslashes($_FILES);
$_REQUEST = daddslashes($_REQUEST, 1, TRUE);
require UC_DATADIR.'config.inc.php';
require UC_ROOT.'model/base.php';
require UC_ROOT.'model/admin.php';
$m = empty($_REQUEST['m']) ? 'frame' : $_REQUEST['m'];
$a = empty($_REQUEST['a']) ? 'index' : $_REQUEST['a'];
define('RELEASE_ROOT', '');
if(in_array($m, array('admin', 'app', 'badword', 'pm', 'cache', 'db', 'domain', 'frame', 'log', 'note', 'feed', 'mail', 'setting', 'user', 'credit', 'seccode', 'tool', 'plugin'))) {
include UC_ROOT."control/admin/$m.php";
$control = new control();
$method = 'on'.$a;
if(method_exists($control, $method) && $a{0} != '_') {
$control->$method();
} elseif(method_exists($control, '_call')) {
$control->_call('on'.$a, '');
} else {
exit('Action not found!');
}
} else {
exit('Module not found!');
}
$mtime = explode(' ', microtime());
$endtime = $mtime[1] + $mtime[0];
//echo '<script>document.getElementById(\'debug_time\').innerHTML = \''.number_format($endtime - $starttime, 5).'\'</script>'."\n";
function daddslashes($string, $force = 0, $strip = FALSE) {
if(!MAGIC_QUOTES_GPC || $force) {
if(is_array($string)) {
foreach($string as $key => $val) {
$string[$key] = daddslashes($val, $force);
}
} else {
$string = addslashes($strip ? stripslashes($string) : $string);
}
}
return $string;
}
function getgpc($k, $t='R') {
switch($t) {
case 'P': $var = &$_POST; break;
case 'G': $var = &$_GET; break;
case 'C': $var = &$_COOKIE; break;
case 'R': $var = &$_REQUEST; break;
}
return isset($var[$k]) ? (is_array($var[$k]) ? $var[$k] : trim($var[$k])) : NULL;
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/admin.php
|
PHP
|
asf20
| 2,752
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: dbbak.php 17033 2008-12-04 02:24:03Z zhaoxiongfei $
*/
error_reporting(0);
define('IN_COMSENZ', TRUE);
define('ROOT_PATH', dirname(__FILE__).'/../');
define('EXPLOR_SUCCESS', 0);
define('IMPORT_SUCCESS', 0);
define('DELETE_SQLPATH_SUCCESS', 4);
define('MKDIR_ERROR', 1);
define('DATABASE_EXPORT_FILE_INVALID', 2);
define('RUN_SQL_ERROR', 3);
define('SQLPATH_NULL_NOEXISTS', 4);
define('SQLPATH_NOMATCH_BAKFILE', 5);
define('BAK_FILE_LOSE', 6);
define('DIR_NO_EXISTS', 7);
define('DELETE_DUMPFILE_ERROR', 8);
define('DB_API_NO_MATCH', 9);
$sizelimit = 2000;
$usehex = true;
$code = @$_GET['code'];
$apptype = @$_GET['apptype'];
$apptype = strtolower($apptype);
if($apptype == 'discuz') {
require ROOT_PATH.'./config.inc.php';
} elseif($apptype == 'uchome' || $apptype == 'supesite' || $apptype == 'supev') {
require ROOT_PATH.'./config.php';
} elseif($apptype == 'ucenter') {
require ROOT_PATH.'./data/config.inc.php';
} elseif($apptype == 'ecmall') {
require ROOT_PATH.'./data/inc.config.php';
} elseif($apptype == 'ecshop') {
require ROOT_PATH.'./data/config.php';
} else {
api_msg('db_api_no_match', $apptype);
}
parse_str(_authcode($code, 'DECODE', UC_KEY), $get);
if(get_magic_quotes_gpc()) {
$get = _stripslashes($get);
}
if(empty($get)) {
exit('Invalid Request');
}
$timestamp = time();
if($timestamp - $get['time'] > 3600) {
exit('Authracation has expiried');
}
$get['time'] = $timestamp;
class dbstuff {
var $querynum = 0;
var $link;
var $histories;
var $time;
var $tablepre;
function connect($dbhost, $dbuser, $dbpw, $dbname = '', $dbcharset, $pconnect = 0, $tablepre='', $time = 0) {
$this->time = $time;
$this->tablepre = $tablepre;
if($pconnect) {
if(!$this->link = mysql_pconnect($dbhost, $dbuser, $dbpw)) {
$this->halt('Can not connect to MySQL server');
}
} else {
if(!$this->link = mysql_connect($dbhost, $dbuser, $dbpw, 1)) {
$this->halt('Can not connect to MySQL server');
}
}
if($this->version() > '4.1') {
if($dbcharset) {
mysql_query("SET character_set_connection=".$dbcharset.", character_set_results=".$dbcharset.", character_set_client=binary", $this->link);
}
if($this->version() > '5.0.1') {
mysql_query("SET sql_mode=''", $this->link);
}
}
if($dbname) {
mysql_select_db($dbname, $this->link);
}
}
function fetch_array($query, $result_type = MYSQL_ASSOC) {
return mysql_fetch_array($query, $result_type);
}
function result_first($sql) {
$query = $this->query($sql);
return $this->result($query, 0);
}
function fetch_first($sql) {
$query = $this->query($sql);
return $this->fetch_array($query);
}
function fetch_all($sql) {
$arr = array();
$query = $this->query($sql);
while($data = $this->fetch_array($query)) {
$arr[] = $data;
}
return $arr;
}
function cache_gc() {
$this->query("DELETE FROM {$this->tablepre}sqlcaches WHERE expiry<$this->time");
}
function query($sql, $type = '', $cachetime = FALSE) {
$func = $type == 'UNBUFFERED' && @function_exists('mysql_unbuffered_query') ? 'mysql_unbuffered_query' : 'mysql_query';
if(!($query = $func($sql, $this->link)) && $type != 'SILENT') {
$this->halt('MySQL Query Error', $sql);
}
$this->querynum++;
$this->histories[] = $sql;
return $query;
}
function affected_rows() {
return mysql_affected_rows($this->link);
}
function error() {
return (($this->link) ? mysql_error($this->link) : mysql_error());
}
function errno() {
return intval(($this->link) ? mysql_errno($this->link) : mysql_errno());
}
function result($query, $row) {
$query = @mysql_result($query, $row);
return $query;
}
function num_rows($query) {
$query = mysql_num_rows($query);
return $query;
}
function num_fields($query) {
return mysql_num_fields($query);
}
function free_result($query) {
return mysql_free_result($query);
}
function insert_id() {
return ($id = mysql_insert_id($this->link)) >= 0 ? $id : $this->result($this->query("SELECT last_insert_id()"), 0);
}
function fetch_row($query) {
$query = mysql_fetch_row($query);
return $query;
}
function fetch_fields($query) {
return mysql_fetch_field($query);
}
function version() {
return mysql_get_server_info($this->link);
}
function close() {
return mysql_close($this->link);
}
function halt($message = '', $sql = '') {
api_msg('run_sql_error', $message.'<br /><br />'.$sql.'<br /> '.mysql_error());
}
}
$db = new dbstuff();
$version = '';
if($apptype == 'discuz') {
define('BACKUP_DIR', ROOT_PATH.'forumdata/');
$tablepre = $tablepre;
if(empty($dbcharset)) {
$dbcharset = in_array(strtolower($charset), array('gbk', 'big5', 'utf-8')) ? str_replace('-', '', $charset) : '';
}
$db->connect($dbhost, $dbuser, $dbpw, $dbname, $dbcharset, $pconnect, $tablepre);
define('IN_DISCUZ', true);
include ROOT_PATH.'discuz_version.php';
$version = DISCUZ_VERSION;
} elseif($apptype == 'uchome' || $apptype == 'supesite') {
define('BACKUP_DIR', ROOT_PATH.'./data/');
$tablepre = $_SC['tablepre'];
$dbcharset = $_SC['dbcharset'];
$db->connect($_SC['dbhost'], $_SC['dbuser'], $_SC['dbpw'], $_SC['dbname'], $dbcharset, $_SC['pconnect'], $tablepre);
} elseif($apptype == 'ucenter') {
define('BACKUP_DIR', ROOT_PATH.'./data/backup/');
$tablepre = UC_DBTABLEPRE;
$dbcharset = UC_DBCHARSET;
$db->connect(UC_DBHOST, UC_DBUSER, UC_DBPW, UC_DBNAME, $dbcharset, UC_DBCONNECT, $tablepre);
} elseif($apptype == 'ecmall') {
define('BACKUP_DIR', ROOT_PATH.'./data/backup/');
$tablepre = DB_PREFIX;
$dbcharset = strtolower(str_replace('-', '', strstr(LANG, '-')));
$cfg = parse_url(DB_CONFIG);
if(empty($cfg['pass'])) {
$cfg['pass'] = '';
} else {
$cfg['pass'] = urldecode($cfg['pass']);
}
$cfg['user'] = urldecode($cfg['user']);
$cfg['path'] = str_replace('/', '', $cfg['path']);
$db->connect($cfg['host'].':'.$cfg['port'], $cfg['user'], $cfg['pass'], $cfg['path'], $dbcharset, 0, $tablepre);
} elseif($apptype == 'supev') {
define('BACKUP_DIR', ROOT_PATH.'data/backup/');
$tablepre = $tablepre;
if(empty($dbcharset)) {
$dbcharset = in_array(strtolower($charset), array('gbk', 'big5', 'utf-8')) ? str_replace('-', '', $charset) : '';
}
$db->connect($dbhost, $dbuser, $dbpw, $dbname, $dbcharset, $pconnect, $tablepre);
} elseif($apptype == 'ecshop') {
define('BACKUP_DIR', ROOT_PATH.'data/backup/');
$tablepre = $prefix;
$dbcharset = 'utf8';
$db->connect($db_host, $db_user, $db_pass, $db_name, $dbcharset, 0, $tablepre);
}
if($get['method'] == 'export') {
$db->query('SET SQL_QUOTE_SHOW_CREATE=0', 'SILENT');
$time = date("Y-m-d H:i:s", $timestamp);
$tables = array();
$tables = arraykeys2(fetchtablelist($tablepre), 'Name');
if($apptype == 'discuz') {
$query = $db->query("SELECT datatables FROM {$tablepre}plugins WHERE datatables<>''");
while($plugin = $db->fetch_array($query)) {
foreach(explode(',', $plugin['datatables']) as $table) {
if($table = trim($table)) {
$tables[] = $table;
}
}
}
}
$get['volume'] = isset($get['volume']) ? intval($get['volume']) : 0;
$get['volume'] = $get['volume'] + 1;
$version = $version ? $version : $apptype;
$idstring = '# Identify: '.base64_encode("$timestamp,$version,$apptype,multivol,$get[volume]")."\n";
if(!isset($get['sqlpath']) || empty($get['sqlpath'])) {
$get['sqlpath'] = 'backup_'.date('ymd', $timestamp).'_'.random(6);
if(!mkdir(BACKUP_DIR.'./'.$get['sqlpath'], 0777)) {
api_msg('mkdir_error', 'make dir error:'.BACKUP_DIR.'./'.$get['sqlpath']);
}
} elseif(!is_dir(BACKUP_DIR.'./'.$get['sqlpath'])) {
if(!mkdir(BACKUP_DIR.'./'.$get['sqlpath'], 0777)) {
api_msg('mkdir_error', 'make dir error:'.BACKUP_DIR.'./'.$get['sqlpath']);
}
}
if(!isset($get['backupfilename']) || empty($get['backupfilename'])) {
$get['backupfilename'] = date('ymd', $timestamp).'_'.random(6);
}
$sqldump = '';
$get['tableid'] = isset($get['tableid']) ? intval($get['tableid']) : 0;
$get['startfrom'] = isset($get['startfrom']) ? intval($get['startfrom']) : 0;
$complete = TRUE;
for(; $complete && $get['tableid'] < count($tables) && strlen($sqldump) + 500 < $sizelimit * 1000; $get['tableid']++) {
$sqldump .= sqldumptable($tables[$get['tableid']], strlen($sqldump));
if($complete) {
$get['startfrom'] = 0;
}
}
!$complete && $get['tableid']--;
$dumpfile = BACKUP_DIR.$get['sqlpath'].'/'.$get['backupfilename'].'-'.$get['volume'].'.sql';
if(trim($sqldump)) {
$sqldump = "$idstring".
"# <?exit();?>\n".
"# $apptype Multi-Volume Data Dump Vol.$get[volume]\n".
"# Time: $time\n".
"# Type: $apptype\n".
"# Table Prefix: $tablepre\n".
"# $dbcharset\n".
"# $apptype Home: http://www.comsenz.com\n".
"# Please visit our website for newest infomation about $apptype\n".
"# --------------------------------------------------------\n\n\n".
$sqldump;
@$fp = fopen($dumpfile, 'wb');
@flock($fp, 2);
if(@!fwrite($fp, $sqldump)) {
@fclose($fp);
api_msg('database_export_file_invalid', $dumpfile);
} else {
fclose($fp);
auto_next($get, $dumpfile);
}
} else {
@touch(ROOT_PATH.$get['sqlpath'].'/index.htm');
api_msg('explor_success', 'explor_success');
}
} elseif($get['method'] == 'import') {
if(!isset($get['dumpfile']) || empty($get['dumpfile'])) {
$get['dumpfile'] = get_dumpfile_by_path($get['sqlpath']);
$get['volume'] = 0;
}
$get['volume']++;
$next_dumpfile = preg_replace('/^(\d+)\_(\w+)\-(\d+)\.sql$/', '\\1_\\2-'.$get['volume'].'.sql', $get['dumpfile']);
if(!is_file(BACKUP_DIR.$get['sqlpath'].'/'.$get['dumpfile'])) {
if(is_file(BACKUP_DIR.$get['sqlpath'].'/'.$next_dumpfile)) {
api_msg('bak_file_lose', $get['dumpfile']);
} else {
api_msg('import_success', 'import_success');
}
}
$sqldump = file_get_contents(BACKUP_DIR.$get['sqlpath'].'/'.$get['dumpfile']);
$sqlquery = splitsql($sqldump);
unset($sqldump);
foreach($sqlquery as $sql) {
$sql = syntablestruct(trim($sql), $db->version() > '4.1', $dbcharset);
if($sql != '') {
$db->query($sql, 'SILENT');
if(($sqlerror = $db->error()) && $db->errno() != 1062) {
$db->halt('MySQL Query Error', $sql);
}
}
}
$cur_file = $get['dumpfile'];
$get['dumpfile'] = $next_dumpfile;
auto_next($get, BACKUP_DIR.$get['sqlpath'].'/'.$cur_file);
} elseif($get['method'] == 'ping') {
if($get['dir'] && is_dir(BACKUP_DIR.$get['dir'])) {
echo "1";exit;
} else {
echo "-1";exit;
}
} elseif($get['method'] == 'list') {
$str = "<root>\n";
$directory = dir(BACKUP_DIR);
while($entry = $directory->read()) {
$filename = BACKUP_DIR.$entry;
if(is_dir($filename) && preg_match('/backup_(\d+)_\w+$/', $filename, $match)) {
$str .= "\t<dir>\n";
$str .= "\t\t<dirname>$filename</dirname>\n";
$str .= "\t\t<dirdate>$match[1]</dirdate>\n";
$str .= "\t</dir>\n";
}
}
$directory->close();
$str .= "</root>";
echo $str;
exit;
} elseif($get['method'] == 'view') {
$sqlpath = trim($get['sqlpath']);
if(empty($sqlpath) || !is_dir(BACKUP_DIR.$sqlpath)) {
api_msg('dir_no_exists', $sqlpath);
}
$str = "<root>\n";
$directory = dir(BACKUP_DIR.$sqlpath);
while($entry = $directory->read()) {
$filename = BACKUP_DIR.$sqlpath.'/'.$entry;
if(is_file($filename) && preg_match('/\d+_\w+\-(\d+).sql$/', $filename, $match)) {
$str .= "\t<file>\n";
$str .= "\t\t<file_name>$match[0]</file_name>\n";
$str .= "\t\t<file_size>".filesize($filename)."</file_size>\n";
$str .= "\t\t<file_num>$match[1]</file_num>\n";
$str .= "\t\t<file_url>".str_replace(ROOT_PATH, 'http://'.$_SERVER['HTTP_HOST'].'/', $filename)."</file_url>\n";
$str .= "\t\t<last_modify>".filemtime($filename)."</last_modify>\n";
$str .= "\t</file>\n";
}
}
$directory->close();
$str .= "</root>";
echo $str;
exit;
} elseif($get['method'] == 'delete') {
$sqlpath = trim($get['sqlpath']);
if(empty($sqlpath) || !is_dir(BACKUP_DIR.$sqlpath)) {
api_msg('dir_no_exists', $sqlpath);
}
$directory = dir(BACKUP_DIR.$sqlpath);
while($entry = $directory->read()) {
$filename = BACKUP_DIR.$sqlpath.'/'.$entry;
if(is_file($filename) && preg_match('/\d+_\w+\-(\d+).sql$/', $filename) && !@unlink($filename)) {
api_msg('delete_dumpfile_error', $filename);
}
}
$directory->close();
@rmdir(BACKUP_DIR.$sqlpath);
api_msg('delete_sqlpath_success', 'delete_sqlpath_success');
}
function syntablestruct($sql, $version, $dbcharset) {
if(strpos(trim(substr($sql, 0, 18)), 'CREATE TABLE') === FALSE) {
return $sql;
}
$sqlversion = strpos($sql, 'ENGINE=') === FALSE ? FALSE : TRUE;
if($sqlversion === $version) {
return $sqlversion && $dbcharset ? preg_replace(array('/ character set \w+/i', '/ collate \w+/i', "/DEFAULT CHARSET=\w+/is"), array('', '', "DEFAULT CHARSET=$dbcharset"), $sql) : $sql;
}
if($version) {
return preg_replace(array('/TYPE=HEAP/i', '/TYPE=(\w+)/is'), array("ENGINE=MEMORY DEFAULT CHARSET=$dbcharset", "ENGINE=\\1 DEFAULT CHARSET=$dbcharset"), $sql);
} else {
return preg_replace(array('/character set \w+/i', '/collate \w+/i', '/ENGINE=MEMORY/i', '/\s*DEFAULT CHARSET=\w+/is', '/\s*COLLATE=\w+/is', '/ENGINE=(\w+)(.*)/is'), array('', '', 'ENGINE=HEAP', '', '', 'TYPE=\\1\\2'), $sql);
}
}
function splitsql($sql) {
$sql = str_replace("\r", "\n", $sql);
$ret = array();
$num = 0;
$queriesarray = explode(";\n", trim($sql));
unset($sql);
foreach($queriesarray as $query) {
$ret[$num] = isset($ret[$num]) ? $ret[$num] : '';
$queries = explode("\n", trim($query));
foreach($queries as $query) {
$ret[$num] .= isset($query[0]) && $query[0] == "#" ? NULL : $query;
}
$num++;
}
return($ret);
}
function get_dumpfile_by_path($path) {
if(empty($path) || !is_dir(BACKUP_DIR.$path)) {
api_msg('sqlpath_null_noexists', $path);
}
$directory = dir(BACKUP_DIR.$path);
while($entry = $directory->read()) {
$filename = BACKUP_DIR.$path.'/'.$entry;
if(is_file($filename)) {
if(preg_match('/^\d+\_\w+\-\d+\.sql$/', $entry)) {
$file_bakfile = preg_replace('/^(\d+)\_(\w+)\-(\d+)\.sql$/', '\\1_\\2-1.sql', $entry);
if(is_file(BACKUP_DIR.$path.'/'.$file_bakfile)) {
return $file_bakfile;
} else {
api_msg('sqlpath_nomatch_bakfile', $path);
}
}
}
}
$directory->close();
api_msg('sqlpath_nomatch_bakfile', $path);
}
function api_msg($code, $msg) {
$out = "<root>\n";
$out .= "\t<error errorCode=\"".constant(strtoupper($code))."\" errorMessage=\"$msg\" />\n";
$out .= "\t<fileinfo>\n";
$out .= "\t\t<file_num></file_num>\n";
$out .= "\t\t<file_size></file_size>\n";
$out .= "\t\t<file_name></file_name>\n";
$out .= "\t\t<file_url></file_url>\n";
$out .= "\t\t<last_modify></last_modify>\n";
$out .= "\t</fileinfo>\n";
$out .= "\t<nexturl></nexturl>\n";
$out .= "</root>";
echo $out;
exit;
}
function arraykeys2($array, $key2) {
$return = array();
foreach($array as $val) {
$return[] = $val[$key2];
}
return $return;
}
function auto_next($get, $sqlfile) {
$next_url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?apptype='.$GLOBALS['apptype'].'&code='.urlencode(encode_arr($get));
$out = "<root>\n";
$out .= "\t<error errorCode=\"0\" errorMessage=\"ok\" />\n";
$out .= "\t<fileinfo>\n";
$out .= "\t\t<file_num>$get[volume]</file_num>\n";
$out .= "\t\t<file_size>".filesize($sqlfile)."</file_size>\n";
$out .= "\t\t<file_name>".basename($sqlfile)."</file_name>\n";
$out .= "\t\t<file_url>".str_replace(ROOT_PATH, 'http://'.$_SERVER['HTTP_HOST'].'/', $sqlfile)."</file_url>\n";
$out .= "\t\t<last_modify>".filemtime($sqlfile)."</last_modify>\n";
$out .= "\t</fileinfo>\n";
$out .= "\t<nexturl><![CDATA[$next_url]]></nexturl>\n";
$out .= "</root>";
echo $out;
exit;
}
function encode_arr($get) {
$tmp = '';
foreach($get as $key => $val) {
$tmp .= '&'.$key.'='.$val;
}
return _authcode($tmp, 'ENCODE', UC_KEY);
}
function sqldumptable($table, $currsize = 0) {
global $get, $db, $sizelimit, $startrow, $extendins, $sqlcompat, $sqlcharset, $dumpcharset, $usehex, $complete, $excepttables;
$offset = 300;
$tabledump = '';
$tablefields = array();
$query = $db->query("SHOW FULL COLUMNS FROM $table", 'SILENT');
if(strexists($table, 'adminsessions')) {
return ;
} elseif(!$query && $db->errno() == 1146) {
return;
} elseif(!$query) {
$usehex = FALSE;
} else {
while($fieldrow = $db->fetch_array($query)) {
$tablefields[] = $fieldrow;
}
}
if(!$get['startfrom']) {
$createtable = $db->query("SHOW CREATE TABLE $table", 'SILENT');
if(!$db->error()) {
$tabledump = "DROP TABLE IF EXISTS $table;\n";
} else {
return '';
}
$create = $db->fetch_row($createtable);
if(strpos($table, '.') !== FALSE) {
$tablename = substr($table, strpos($table, '.') + 1);
$create[1] = str_replace("CREATE TABLE $tablename", 'CREATE TABLE '.$table, $create[1]);
}
$tabledump .= $create[1];
$tablestatus = $db->fetch_first("SHOW TABLE STATUS LIKE '$table'");
$tabledump .= ($tablestatus['Auto_increment'] ? " AUTO_INCREMENT=$tablestatus[Auto_increment]" : '').";\n\n";
}
$tabledumped = 0;
$numrows = $offset;
$firstfield = $tablefields[0];
while($currsize + strlen($tabledump) + 500 < $sizelimit * 1000 && $numrows == $offset) {
if($firstfield['Extra'] == 'auto_increment') {
$selectsql = "SELECT * FROM $table WHERE $firstfield[Field] > $get[startfrom] LIMIT $offset";
} else {
$selectsql = "SELECT * FROM $table LIMIT $get[startfrom], $offset";
}
$tabledumped = 1;
$rows = $db->query($selectsql);
$numfields = $db->num_fields($rows);
$numrows = $db->num_rows($rows);
while($row = $db->fetch_row($rows)) {
$comma = $t = '';
for($i = 0; $i < $numfields; $i++) {
$t .= $comma.($usehex && !empty($row[$i]) && (strexists($tablefields[$i]['Type'], 'char') || strexists($tablefields[$i]['Type'], 'text')) ? '0x'.bin2hex($row[$i]) : '\''.mysql_escape_string($row[$i]).'\'');
$comma = ',';
}
if(strlen($t) + $currsize + strlen($tabledump) + 500 < $sizelimit * 1000) {
if($firstfield['Extra'] == 'auto_increment') {
$get['startfrom'] = $row[0];
} else {
$get['startfrom']++;
}
$tabledump .= "INSERT INTO $table VALUES ($t);\n";
} else {
$complete = FALSE;
break 2;
}
}
}
$tabledump .= "\n";
return $tabledump;
}
function random($length, $numeric = 0) {
PHP_VERSION < '4.2.0' && mt_srand((double)microtime() * 1000000);
if($numeric) {
$hash = sprintf('%0'.$length.'d', mt_rand(0, pow(10, $length) - 1));
} else {
$hash = '';
$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
$max = strlen($chars) - 1;
for($i = 0; $i < $length; $i++) {
$hash .= $chars[mt_rand(0, $max)];
}
}
return $hash;
}
function fetchtablelist($tablepre = '') {
global $db;
$arr = explode('.', $tablepre);
$dbname = isset($arr[1]) && $arr[1] ? $arr[0] : '';
$sqladd = $dbname ? " FROM $dbname LIKE '$arr[1]%'" : "LIKE '$tablepre%'";
!$tablepre && $tablepre = '*';
$tables = $table = array();
$query = $db->query("SHOW TABLE STATUS $sqladd");
while($table = $db->fetch_array($query)) {
$table['Name'] = ($dbname ? "$dbname." : '').$table['Name'];
$tables[] = $table;
}
return $tables;
}
function _stripslashes($string) {
if(is_array($string)) {
foreach($string as $key => $val) {
$string[$key] = _stripslashes($val);
}
} else {
$string = stripslashes($string);
}
return $string;
}
function _authcode($string, $operation = 'DECODE', $key = '', $expiry = 0) {
$ckey_length = 4;
$key = md5($key ? $key : UC_KEY);
$keya = md5(substr($key, 0, 16));
$keyb = md5(substr($key, 16, 16));
$keyc = $ckey_length ? ($operation == 'DECODE' ? substr($string, 0, $ckey_length): substr(md5(microtime()), -$ckey_length)) : '';
$cryptkey = $keya.md5($keya.$keyc);
$key_length = strlen($cryptkey);
$string = $operation == 'DECODE' ? base64_decode(substr($string, $ckey_length)) : sprintf('%010d', $expiry ? $expiry + time() : 0).substr(md5($string.$keyb), 0, 16).$string;
$string_length = strlen($string);
$result = '';
$box = range(0, 255);
$rndkey = array();
for($i = 0; $i <= 255; $i++) {
$rndkey[$i] = ord($cryptkey[$i % $key_length]);
}
for($j = $i = 0; $i < 256; $i++) {
$j = ($j + $box[$i] + $rndkey[$i]) % 256;
$tmp = $box[$i];
$box[$i] = $box[$j];
$box[$j] = $tmp;
}
for($a = $j = $i = 0; $i < $string_length; $i++) {
$a = ($a + 1) % 256;
$j = ($j + $box[$a]) % 256;
$tmp = $box[$a];
$box[$a] = $box[$j];
$box[$j] = $tmp;
$result .= chr(ord($string[$i]) ^ ($box[($box[$a] + $box[$j]) % 256]));
}
if($operation == 'DECODE') {
if((substr($result, 0, 10) == 0 || substr($result, 0, 10) - time() > 0) && substr($result, 10, 16) == substr(md5(substr($result, 26).$keyb), 0, 16)) {
return substr($result, 26);
} else {
return '';
}
} else {
return $keyc.str_replace('=', '', base64_encode($result));
}
}
function strexists($haystack, $needle) {
return !(strpos($haystack, $needle) === FALSE);
}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/api/dbbak.php
|
PHP
|
asf20
| 21,709
|
<?php
!defined('IN_UC') && exit('Access Denied');
class control extends pluginbase {
var $md5data = array();
function control() {
$this->pluginbase();
}
function onindex() {
if(!$ucfiles = @file(UC_ROOT.'./control/admin/ucfiles.md5')) {
$this->message('校验文件不存在,无法校验');
}
$this->load('app');
$applist = $_ENV['app']->get_apps();
$this->view->assign('applist', $applist);
$this->checkfiles('./', '\.php', 0, '\.php|\.xml');
$this->checkfiles('control/', '\.php');
$this->checkfiles('model/', '\.php');
$this->checkfiles('lib/', '\.php');
$this->checkfiles('view/', '\.php|\.htm');
$this->checkfiles('js/', '\.js');
foreach($ucfiles as $line) {
$file = trim(substr($line, 34));
$md5datanew[$file] = substr($line, 0, 32);
if($md5datanew[$file] != $this->md5data[$file]) {
$modifylist[$file] = $this->md5data[$file];
}
$md5datanew[$file] = $this->md5data[$file];
}
$weekbefore = $timestamp - 604800;
$addlist = @array_diff_assoc($this->md5data, $md5datanew);
$dellist = @array_diff_assoc($md5datanew, $this->md5data);
$modifylist = @array_diff_assoc($modifylist, $dellist);
$showlist = @array_merge($this->md5data, $md5datanew);
$doubt = 0;
$dirlist = $dirlog = array();
foreach($showlist as $file => $md5) {
$dir = dirname($file);
if(@array_key_exists($file, $modifylist)) {
$fileststus = 'modify';
} elseif(@array_key_exists($file, $dellist)) {
$fileststus = 'del';
} elseif(@array_key_exists($file, $addlist)) {
$fileststus = 'add';
} else {
$filemtime = @filemtime($file);
if($filemtime > $weekbefore) {
$fileststus = 'doubt';
$doubt++;
} else {
$fileststus = '';
}
}
if(file_exists($file)) {
$filemtime = @filemtime($file);
$fileststus && $dirlist[$fileststus][$dir][basename($file)] = array(number_format(filesize($file)).' Bytes', $this->date($filemtime));
} else {
$fileststus && $dirlist[$fileststus][$dir][basename($file)] = array('', '');
}
}
$result = $resultjs = '';
$dirnum = 0;
foreach($dirlist as $status => $filelist) {
$dirnum++;
$result .= '<div id="status_'.$status.'" style="display:'.($status != 'modify' ? 'none' : '').'">';
foreach($filelist as $dir => $files) {
$result .= '<br /><br /><u><b><a>'.$dir.'</a></b></u><br />';
foreach($files as $filename => $file) {
$result .= '<div style="clear:both"><b style="float:left;width: 30%">'.$filename.'</b><div style="float:left;width: 20%">'.$file[0].'</div><div style="float:left;width: 20%">'.$file[1].'</div></div>';
}
}
$result .= '<br /><br /></div>';
$resultjs .= '$(\'status_'.$status.'\').style.display=\'none\';';
}
$modifiedfiles = count($modifylist);
$deletedfiles = count($dellist);
$unknownfiles = count($addlist);
$result .= '<script>function showresult(o) {'.$resultjs.'$(\'status_\' + o).style.display=\'\';}</script>';
$this->view->assign('result', $result);
$this->view->assign('modifiedfiles', $modifiedfiles);
$this->view->assign('deletedfiles', $deletedfiles);
$this->view->assign('unknownfiles', $unknownfiles);
$this->view->assign('doubt', $doubt);
$this->view->display('plugin_filecheck');
}
function checkfiles($currentdir, $ext = '', $sub = 1, $skip = '') {
$dir = @opendir(UC_ROOT.$currentdir);
$exts = '/('.$ext.')$/i';
$skips = explode(',', $skip);
while($entry = @readdir($dir)) {
$file = $currentdir.$entry;
if($entry != '.' && $entry != '..' && (preg_match($exts, $entry) || $sub && is_dir($file)) && !in_array($entry, $skips)) {
if($sub && is_dir($file)) {
$this->checkfiles($file.'/', $ext, $sub, $skip);
} else {
$this->md5data[$file] = md5_file($file);
}
}
}
}
}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/plugin/filecheck/plugin.php
|
PHP
|
asf20
| 3,877
|
{template plugin_header}
<!--{if $modifiedfiles > 0}-->
<a href="###" onclick="showresult('modify')"><em class="edited">{lang plugin_filecheck_modifed}: $modifiedfiles</em></a>
<!--{/if}-->
<!--{if $deletedfiles > 0}-->
<a href="###" onclick="showresult('del')"><em class="edited">{lang plugin_filecheck_deleted}: $deletedfiles</em></a>
<!--{/if}-->
<!--{if $unknownfiles > 0}-->
<a href="###" onclick="showresult('add')"><em class="edited">{lang plugin_filecheck_unknow}: $unknownfiles</em></a>
<!--{/if}-->
<!--{if $doubt > 0}-->
<a href="###" onclick="showresult('doubt')"><em class="edited">{lang plugin_filecheck_modifed_in_aweek}: $doubt</em></a>
<!--{/if}-->
$result
{template plugin_footer}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/plugin/filecheck/plugin_filecheck.htm
|
HTML
|
asf20
| 768
|
/*
(C) 2001-2009 Comsenz Inc.
*/
/* common */
*{ word-wrap:break-word; }
body{ padding:5px 0; background:#FFF; text-align:center; }
body, td, input, textarea, select, button{ color:#666; font:12px Verdana, Tahoma, Arial, sans-serif; }
ul, dl, dd, p, h1, h2, h3, h4, h5, h6, form, fieldset { margin:0; padding:0; }
h1, h2, h3, h4, h5, h6{ font-size:12px; }
a{ color:#2366A8; text-decoration:none; }
a:hover { text-decoration:underline; }
a img{ border:none; }
em, cite, strong, th{ font-style:normal; font-weight:normal; }
table{ border-collapse:collapse; }
/* box */
.container{ overflow:hidden; margin:0 auto; width:700px; height:auto !important;text-align:left; border:1px solid #B5CFD9; }
.header{ height:194px; background:url(images/bg_repx.gif) repeat-x; }
.header h1{ text-indent:-9999px; width:270px; height:48px; background:url(images/bg_repno.gif) no-repeat 26px 22px; }
.header span { float: right; padding-right: 10px; }
.main{ padding:20px 20px 0; background:#F7FBFE url(images/bg_repx.gif) repeat-x 0 -194px; }
.main h3{ margin:10px auto; width:75%; color:#6CA1B4; font-weight:700; }
.desc{ margin:0 auto; width:82.6%; line-height:180%; }
.desc ul{ margin-left:20px; }
.desc1{ margin:10px 0; width:100%; }
.desc1 ul{ margin-left:25px; }
.desc1 li{ margin:3px 0; }
.tb, .tb2{ margin:15px 0 15px 67px; }
.tb th{ padding:5px; color:#6CA1B4; font-weight:700; }
.tb td{ padding:3px 5px; }
.tb .w, .tb .nw, .tb .padleft{ padding-left:45px; }
.tb .pdleft1{ padding-left:67px; }
.tb2{}
.tb2 th, .tb2 td{ padding:3px 5px; }
.tbopt{ width:120px; }
.btnbox{ text-align:center; }
.btnbox input{ margin:0 2px; }
.btnbox textarea{ margin-bottom:10px; height:150px; }
.btn{ margin-top:10px; }
.footer{ line-height:40px; text-align:center; background:url(images/bg_footer.gif) repeat-x; font-size:11px; }
/* form */
.txt{ width:200px; }
/* step num */
.setup{ margin:46px 0 0 200px; padding-left:70px; }
.setup h2{ padding-top:0; *padding-top:6px; color:#6CA1B4; font-size:36px; }
.setup p{ margin-left:6px; color:#999; }
.step1{ background:url(images/stepnum.gif) no-repeat 0 8px; }
.step2{ background:url(images/stepnum.gif) no-repeat 0 -92px; }
.step3{ background:url(images/stepnum.gif) no-repeat 0 -192px; }
.step4{ background:url(images/stepnum.gif) no-repeat 0 -292px; }
/* step status */
.stepstat{ position:relative; bottom:-15px; left:80px; *width:593px; height:30px; }
.stepstatbg{ position:absolute; top:18px; z-index:90; width:535px; height:9px; overflow:hidden; background:#81C6F0 url(images/bg_stepstatus.gif) no-repeat; }
.stepstat ul{ position:absolute; top:3px; left:-2px; z-index:100; list-style:none; width:600px; white-space:nowrap; overflow:hidden; }
.stepstat li{ float:left; text-indent:-9999px; width:175px; height:30px; background:url(images/bg_repno.gif) no-repeat 0 -38px; }
.stepstat .current{ background:url(images/bg_repno.gif) no-repeat 0 -71px; }
.stepstat .unactivated{ background:url(images/bg_repno.gif) no-repeat 0 -103px; }
.stepstat .last{ width:20px; }
.stepstat1{ background-position:-750px 0; }
.stepstat2{ background-position:-570px 0; }
.stepstat3{ background-position:-390px 0; }
.stepstat4{ background-position:-210px 0; }
/* file status */
.w{ background:url(images/bg_repno.gif) no-repeat 45px -148px; }
.nw{ background:url(images/bg_repno.gif) no-repeat 45px -197px; }
/* space */
.marginbot{ margin-bottom:20px; }
.margintop{ margin-top:20px; }
.red{ color:red; }
.licenseblock{ margin-bottom:15px; padding:8px; height:280px; border:1px solid #EEE; background:#FFF; overflow:scroll; overflow-x:hidden; }
.license{}
.license h1{ padding-bottom:10px; font-size:14px; text-align:center; }
.license h3{ margin:0; color:#666; }
.license p{ line-height:150%; margin:10px 0; text-indent:25px; }
.license li{ line-height:150%; margin:5px 0; }
.title{ margin:5px 0 -15px 60px; }
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/install/style.css
|
CSS
|
asf20
| 3,944
|
<?php
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: db.class.php 753 2008-11-14 06:48:25Z cnteacher $
*/
if(!defined('IN_COMSENZ')) {
exit('Access Denied');
}
class dbstuff {
var $querynum = 0;
var $link;
var $histories;
var $time;
var $tablepre;
function connect($dbhost, $dbuser, $dbpw, $dbname = '', $dbcharset, $pconnect = 0, $tablepre='', $time = 0) {
$this->time = $time;
$this->tablepre = $tablepre;
if($pconnect) {
if(!$this->link = mysql_pconnect($dbhost, $dbuser, $dbpw)) {
$this->halt('Can not connect to MySQL server');
}
} else {
if(!$this->link = mysql_connect($dbhost, $dbuser, $dbpw, 1)) {
$this->halt('Can not connect to MySQL server');
}
}
if($this->version() > '4.1') {
if($dbcharset) {
mysql_query("SET character_set_connection=".$dbcharset.", character_set_results=".$dbcharset.", character_set_client=binary", $this->link);
}
if($this->version() > '5.0.1') {
mysql_query("SET sql_mode=''", $this->link);
}
}
if($dbname) {
mysql_select_db($dbname, $this->link);
}
}
function fetch_array($query, $result_type = MYSQL_ASSOC) {
return mysql_fetch_array($query, $result_type);
}
function result_first($sql, &$data) {
$query = $this->query($sql);
$data = $this->result($query, 0);
}
function fetch_first($sql, &$arr) {
$query = $this->query($sql);
$arr = $this->fetch_array($query);
}
function fetch_all($sql, &$arr) {
$query = $this->query($sql);
while($data = $this->fetch_array($query)) {
$arr[] = $data;
}
}
function cache_gc() {
$this->query("DELETE FROM {$this->tablepre}sqlcaches WHERE expiry<$this->time");
}
function query($sql, $type = '', $cachetime = FALSE) {
$func = $type == 'UNBUFFERED' && @function_exists('mysql_unbuffered_query') ? 'mysql_unbuffered_query' : 'mysql_query';
if(!($query = $func($sql, $this->link)) && $type != 'SILENT') {
$this->halt('MySQL Query Error', $sql);
}
$this->querynum++;
$this->histories[] = $sql;
return $query;
}
function affected_rows() {
return mysql_affected_rows($this->link);
}
function error() {
return (($this->link) ? mysql_error($this->link) : mysql_error());
}
function errno() {
return intval(($this->link) ? mysql_errno($this->link) : mysql_errno());
}
function result($query, $row) {
$query = @mysql_result($query, $row);
return $query;
}
function num_rows($query) {
$query = mysql_num_rows($query);
return $query;
}
function num_fields($query) {
return mysql_num_fields($query);
}
function free_result($query) {
return mysql_free_result($query);
}
function insert_id() {
return ($id = mysql_insert_id($this->link)) >= 0 ? $id : $this->result($this->query("SELECT last_insert_id()"), 0);
}
function fetch_row($query) {
$query = mysql_fetch_row($query);
return $query;
}
function fetch_fields($query) {
return mysql_fetch_field($query);
}
function version() {
return mysql_get_server_info($this->link);
}
function close() {
return mysql_close($this->link);
}
function halt($message = '', $sql = '') {
api_msg('run_sql_error', $message.'<br /><br />'.$sql.'<br /> '.mysql_error(), 0);
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/install/db.class.php
|
PHP
|
asf20
| 3,367
|
<?php
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: index.php 843 2008-12-05 08:02:58Z zhaoxiongfei $
*/
error_reporting(E_ERROR | E_WARNING | E_PARSE);
@set_time_limit(1000);
set_magic_quotes_runtime(0);
define('IN_COMSENZ', TRUE);
define('ROOT_PATH', dirname(__FILE__).'/../');
require ROOT_PATH.'./install/var.inc.php';
require ROOT_PATH.'./install/lang.inc.php';
require ROOT_PATH.'./install/db.class.php';
require ROOT_PATH.'./install/func.inc.php';
file_exists(ROOT_PATH.'./install/extvar.inc.php') && require ROOT_PATH.'./install/extvar.inc.php';
$view_off = getgpc('view_off');
define('VIEW_OFF', $view_off ? TRUE : FALSE);
$allow_method = array('show_license', 'env_check', 'db_init', 'ext_info', 'install_check', 'tablepre_check');
$step = intval(getgpc('step', 'R')) ? intval(getgpc('step', 'R')) : 0;
$method = getgpc('method');
if(empty($method) || !in_array($method, $allow_method)) {
$method = isset($allow_method[$step]) ? $allow_method[$step] : '';
}
if(empty($method)) {
show_msg('method_undefined', $method, 0);
}
if(!ini_get('short_open_tag')) {
show_msg('short_open_tag_invalid', '', 0);
} elseif(file_exists($lockfile)) {
show_msg('install_locked', '', 0);
} elseif(!class_exists('dbstuff')) {
show_msg('database_nonexistence', '', 0);
}
if($method == 'show_license') {
show_license();
} elseif($method == 'env_check') {
VIEW_OFF && function_check($func_items);
env_check($env_items);
dirfile_check($dirfile_items);
show_env_result($env_items, $dirfile_items, $func_items);
} elseif($method == 'db_init') {
@include CONFIG;
$submit = true;
$error_msg = array();
if(isset($form_db_init_items) && is_array($form_db_init_items)) {
foreach($form_db_init_items as $key => $items) {
$$key = getgpc($key, 'p');
if(!isset($$key) || !is_array($$key)) {
$submit = false;
break;
}
foreach($items as $k => $v) {
$tmp = $$key;
$$k = $tmp[$k];
if(empty($$k) || !preg_match($v['reg'], $$k)) {
if(empty($$k) && !$v['required']) {
continue;
}
$submit = false;
VIEW_OFF or $error_msg[$key][$k] = 1;
}
}
}
} else {
$submit = false;
}
if(!VIEW_OFF && $_SERVER['REQUEST_METHOD'] == 'POST') {
if($ucfounderpw != $ucfounderpw2) {
$error_msg['admininfo']['ucfounderpw2'] = 1;
$submit = false;
}
$forceinstall = isset($_POST['dbinfo']['forceinstall']) ? $_POST['dbinfo']['forceinstall'] : '';
$dbname_not_exists = true;
if(!empty($dbhost) && empty($forceinstall)) {
$dbname_not_exists = check_db($dbhost, $dbuser, $dbpw, $dbname, $tablepre);
if(!$dbname_not_exists) {
$form_db_init_items['dbinfo']['forceinstall'] = array('type' => 'checkbox', 'required' => 0, 'reg' => '/^.*+/');
$error_msg['dbinfo']['forceinstall'] = 1;
$submit = false;
$dbname_not_exists = false;
}
}
}
if($submit) {
$step = $step + 1;
if(empty($dbname)) {
show_msg('dbname_invalid', $dbname, 0);
} else {
if(!@mysql_connect($dbhost, $dbuser, $dbpw)) {
$errno = mysql_errno();
$error = mysql_error();
if($errno == 1045) {
show_msg('database_errno_1045', $error, 0);
} elseif($errno == 2003) {
show_msg('database_errno_2003', $error, 0);
} else {
show_msg('database_connect_error', $error, 0);
}
}
if(mysql_get_server_info() > '4.1') {
mysql_query("CREATE DATABASE IF NOT EXISTS `$dbname` DEFAULT CHARACTER SET ".DBCHARSET);
} else {
mysql_query("CREATE DATABASE IF NOT EXISTS `$dbname`");
}
if(mysql_errno()) {
show_msg('database_errno_1044', mysql_error(), 0);
}
mysql_close();
}
if(strpos($tablepre, '.') !== false || intval($tablepre{0})) {
show_msg('tablepre_invalid', $tablepre, 0);
}
config_edit();
$db = new dbstuff;
$db->connect($dbhost, $dbuser, $dbpw, $dbname, DBCHARSET);
$sql = file_get_contents($sqlfile);
$sql = str_replace("\r\n", "\n", $sql);
if(!VIEW_OFF) {
show_header();
show_install();
}
runquery($sql);
VIEW_OFF && show_msg('initdbresult_succ');
if(!VIEW_OFF) {
echo '<script type="text/javascript">document.getElementById("laststep").disabled=false;document.getElementById("laststep").value = \''.lang('install_succeed').'\';</script>'."\r\n";
show_footer();
}
}
if(VIEW_OFF) {
show_msg('missing_parameter', '', 0);
} else {
show_form($form_db_init_items, $error_msg);
}
} elseif($method == 'ext_info') {
@touch($lockfile);
@touch(ROOT_PATH.'./data/upgrade.lock');
if(VIEW_OFF) {
show_msg('ext_info_succ');
} else {
include CONFIG;
$md5password = UC_FOUNDERPW;
setcookie('uc_founderauth', authcode("|$md5password|".md5($_SERVER['HTTP_USER_AGENT'])."|1", 'ENCODE', UC_KEY), time() + 3600, '/');
header("Location:../admin.php?m=frame&a=index&mainurl=".urlencode('admin.php?m=app&a=add'));
}
} elseif($method == 'install_check') {
if(file_exists($lockfile)) {
@touch(ROOT_PATH.'./data/upgrade.lock');
show_msg('installstate_succ');
} else {
show_msg('lock_file_not_touch', $lockfile, 0);
}
} elseif($method == 'tablepre_check') {
$dbinfo = getgpc('dbinfo');
extract($dbinfo);
if(check_db($dbhost, $dbuser, $dbpw, $dbname, $tablepre)) {
show_msg('tablepre_not_exists', 0);
} else {
show_msg('tablepre_exists', $tablepre, 0);
}
}
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/install/index.php
|
PHP
|
asf20
| 5,526
|
<?php
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: forum.func.php 14122 2008-08-20 06:06:33Z cnteacher $
*/
if(!defined('IN_COMSENZ')) {
exit('Access Denied');
}
define('SOFT_NAME', 'UCenter');
define('SOFT_VERSION', '1.5.0');
define('SOFT_RELEASE', '20090121');
define('INSTALL_LANG', 'SC_UTF8');
define('CONFIG', ROOT_PATH.'./data/config.inc.php');
$sqlfile = ROOT_PATH.'./install/uc.sql';
$lockfile = ROOT_PATH.'./data/install.lock';
define('CHARSET', 'utf-8');
define('DBCHARSET', 'utf8');
define('ORIG_TABLEPRE', 'uc_');
define('METHOD_UNDEFINED', 255);
define('ENV_CHECK_RIGHT', 0);
define('ERROR_CONFIG_VARS', 1);
define('SHORT_OPEN_TAG_INVALID', 2);
define('INSTALL_LOCKED', 3);
define('DATABASE_NONEXISTENCE', 4);
define('PHP_VERSION_TOO_LOW', 5);
define('MYSQL_VERSION_TOO_LOW', 6);
define('UC_URL_INVALID', 7);
define('UC_DNS_ERROR', 8);
define('UC_URL_UNREACHABLE', 9);
define('UC_VERSION_INCORRECT', 10);
define('UC_DBCHARSET_INCORRECT', 11);
define('UC_API_ADD_APP_ERROR', 12);
define('UC_ADMIN_INVALID', 13);
define('UC_DATA_INVALID', 14);
define('DBNAME_INVALID', 15);
define('DATABASE_ERRNO_2003', 16);
define('DATABASE_ERRNO_1044', 17);
define('DATABASE_ERRNO_1045', 18);
define('DATABASE_CONNECT_ERROR', 19);
define('TABLEPRE_INVALID', 20);
define('CONFIG_UNWRITEABLE', 21);
define('ADMIN_USERNAME_INVALID', 22);
define('ADMIN_EMAIL_INVALID', 25);
define('ADMIN_EXIST_PASSWORD_ERROR', 26);
define('ADMININFO_INVALID', 27);
define('LOCKFILE_NO_EXISTS', 28);
define('TABLEPRE_EXISTS', 29);
define('ERROR_UNKNOW_TYPE', 30);
define('ENV_CHECK_ERROR', 31);
define('UNDEFINE_FUNC', 32);
define('MISSING_PARAMETER', 33);
define('LOCK_FILE_NOT_TOUCH', 34);
$func_items = array('mysql_connect', 'fsockopen', 'gethostbyname', 'file_get_contents', 'xml_parser_create');
$env_items = array
(
'os' => array('c' => 'PHP_OS', 'r' => 'notset', 'b' => 'unix'),
'php' => array('c' => 'PHP_VERSION', 'r' => '4.0', 'b' => '5.0'),
'attachmentupload' => array('r' => 'notset', 'b' => '2M'),
'gdversion' => array('r' => '1.0', 'b' => '2.0'),
'diskspace' => array('r' => '10M', 'b' => 'notset'),
);
$dirfile_items = array
(
'config' => array('type' => 'file', 'path' => './data/config.inc.php'),
'data' => array('type' => 'dir', 'path' => './data'),
'cache' => array('type' => 'dir', 'path' => './data/cache'),
'view' => array('type' => 'dir', 'path' => './data/view'),
'avatar' => array('type' => 'dir', 'path' => './data/avatar'),
'logs' => array('type' => 'dir', 'path' => './data/logs'),
'backup' => array('type' => 'dir', 'path' => './data/backup'),
'tmp' => array('type' => 'dir', 'path' => './data/tmp')
);
$form_db_init_items = array
(
'dbinfo' => array
(
'dbhost' => array('type' => 'text', 'required' => 1, 'reg' => '/^.*$/', 'value' => array('type' => 'string', 'var' => 'localhost')),
'dbname' => array('type' => 'text', 'required' => 1, 'reg' => '/^.*$/', 'value' => array('type' => 'string', 'var' => 'ucenter')),
'dbuser' => array('type' => 'text', 'required' => 0, 'reg' => '/^.*$/', 'value' => array('type' => 'string', 'var' => 'root')),
'dbpw' => array('type' => 'password', 'required' => 0, 'reg' => '/^.*$/', 'value' => array('type' => 'string', 'var' => '')),
'tablepre' => array('type' => 'text', 'required' => 0, 'reg' => '/^.*$/', 'value' => array('type' => 'string', 'var' => 'uc_')),
),
'admininfo' => array
(
'ucfounderpw' => array('type' => 'password', 'required' => 1, 'reg' => '/^.*$/'),
'ucfounderpw2' => array('type' => 'password', 'required' => 1, 'reg' => '/^.*$/'),
)
);
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/install/var.inc.php
|
PHP
|
asf20
| 3,709
|
<?php
define('UC_VERNAME', '中文版');
$lang = array(
'SC_GBK' => '简体中文版',
'TC_BIG5' => '繁体中文版',
'SC_UTF8' => '简体中文 UTF8 版',
'TC_UTF8' => '繁体中文 UTF8 版',
'EN_ISO' => 'ENGLISH ISO8859',
'EN_UTF8' => 'ENGLIST UTF-8',
'title_install' => SOFT_NAME.' 安装向导',
'agreement_yes' => '我同意',
'agreement_no' => '我不同意',
'notset' => '不限制',
'message_title' => '提示信息',
'error_message' => '错误信息',
'message_return' => '返回',
'return' => '返回',
'install_wizard' => '安装向导',
'config_nonexistence' => '配置文件不存在',
'nodir' => '目录不存在',
'short_open_tag_invalid' => '对不起,请将 php.ini 中的 short_open_tag 设置为 On,否则无法继续安装。',
'redirect' => '浏览器会自动跳转页面,无需人工干预。<br>除非当您的浏览器没有自动跳转时,请点击这里',
'database_errno_2003' => '无法连接数据库,请检查数据库是否启动,数据库服务器地址是否正确',
'database_errno_1044' => '无法创建新的数据库,请检查数据库名称填写是否正确',
'database_errno_1045' => '无法连接数据库,请检查数据库用户名或者密码是否正确',
'database_errno_1064' => 'SQL 语法错误',
'dbpriv_createtable' => '没有CREATE TABLE权限,无法继续安装',
'dbpriv_insert' => '没有INSERT权限,无法继续安装',
'dbpriv_select' => '没有SELECT权限,无法继续安装',
'dbpriv_update' => '没有UPDATE权限,无法继续安装',
'dbpriv_delete' => '没有DELETE权限,无法继续安装',
'dbpriv_droptable' => '没有DROP TABLE权限,无法安装',
'db_not_null' => '数据库中已经安装过 UCenter, 继续安装会清空原有数据。',
'db_drop_table_confirm' => '继续安装会清空全部原有数据,您确定要继续吗?',
'writeable' => '可写',
'unwriteable' => '不可写',
'old_step' => '上一步',
'new_step' => '下一步',
'database_errno_2003' => '无法连接数据库,请检查数据库是否启动,数据库服务器地址是否正确',
'database_errno_1044' => '无法创建新的数据库,请检查数据库名称填写是否正确',
'database_errno_1045' => '无法连接数据库,请检查数据库用户名或者密码是否正确',
'step_env_check_title' => '开始安装',
'step_env_check_desc' => '环境以及文件目录权限检查',
'step_db_init_title' => '安装数据库',
'step_db_init_desc' => '正在执行数据库安装',
'step1_file' => '目录文件',
'step1_need_status' => '所需状态',
'step1_status' => '当前状态',
'not_continue' => '请将以上红叉部分修正再试',
'tips_dbinfo' => '填写数据库信息',
'tips_dbinfo_comment' => '',
'tips_admininfo' => '填写管理员信息',
'tips_admininfo_comment' => '请牢记 UCenter 创始人密码,凭该密码登陆 UCenter。',
'step_ext_info_title' => '安装成功',
'step_ext_info_desc' => '点击进入登陆',
'ext_info_succ' => '安装成功',
'install_locked' => '安装锁定,已经安装过了,如果您确定要重新安装,请到服务器上删除<br /> '.str_replace(ROOT_PATH, '', $lockfile),
'error_quit_msg' => '您必须解决以上问题,安装才可以继续',
'step_app_reg_title' => '设置运行环境',
'step_app_reg_desc' => '检测服务器环境以及设置 UCenter',
'tips_ucenter' => '请填写 UCenter 相关信息',
'tips_ucenter_comment' => 'UCenter 是 Comsenz 公司产品的核心服务程序,Discuz! Board 的安装和运行依赖此程序。如果您已经安装了 UCenter,请填写以下信息。否则,请到 <a href="http://www.discuz.com/" target="blank">Comsenz 产品中心</a> 下载并且安装,然后再继续。',
'advice_mysql_connect' => '请检查 mysql 模块是否正确加载',
'advice_fsockopen' => '该函数需要 php.ini 中 allow_url_fopen 选项开启。请联系空间商,确定开启了此项功能',
'advice_gethostbyname' => '是否php配置中禁止了gethostbyname函数。请联系空间商,确定开启了此项功能',
'advice_file_get_contents' => '该函数需要 php.ini 中 allow_url_fopen 选项开启。请联系空间商,确定开启了此项功能',
'advice_xml_parser_create' => '该函数需要 PHP 支持 XML。请联系空间商,确定开启了此项功能',
'ucurl' => 'UCenter 的 URL',
'ucpw' => 'UCenter 创始人密码',
'tips_siteinfo' => '请填写站点信息',
'sitename' => '站点名称',
'siteurl' => '站点 URL',
'forceinstall' => '强制安装',
'dbinfo_forceinstall_invalid' => '当前数据库当中已经含有同样表前缀的数据表,您可以修改“表名前缀”来避免删除旧的数据,或者选择强制安装。强制安装会删除旧数据,且无法恢复',
'click_to_back' => '点击返回上一步',
'adminemail' => '系统信箱 Email',
'adminemail_comment' => '用于发送程序错误报告',
'dbhost_comment' => '数据库服务器地址, 一般为 localhost',
'tablepre_comment' => '同一数据库运行多个论坛时,请修改前缀',
'forceinstall_check_label' => '我要删除数据,强制安装 !!!',
'uc_url_empty' => '您没有填写 UCenter 的 URL,请返回填写',
'uc_url_invalid' => 'URL 格式错误',
'uc_url_unreachable' => 'UCenter 的 URL 地址可能填写错误,请检查',
'uc_ip_invalid' => '无法解析该域名,请填写站点的 IP</font>',
'uc_admin_invalid' => 'UC创始人密码错误,请重新填写',
'uc_data_invalid' => '通信失败,请检查 UC的URL 地址是否正确 ',
'ucenter_ucurl_invalid' => 'UC的URL为空,或者格式错误,请检查',
'ucenter_ucpw_invalid' => 'UC的创始人密码为空,或者格式错误,请检查',
'siteinfo_siteurl_invalid' => '站点URL为空,或者格式错误,请检查',
'siteinfo_sitename_invalid' => '站点名称为空,或者格式错误,请检查',
'dbinfo_dbhost_invalid' => '数据库服务器为空,或者格式错误,请检查',
'dbinfo_dbname_invalid' => '数据库名为空,或者格式错误,请检查',
'dbinfo_dbuser_invalid' => '数据库用户名为空,或者格式错误,请检查',
'dbinfo_dbpw_invalid' => '数据库密码为空,或者格式错误,请检查',
'dbinfo_adminemail_invalid' => '系统邮箱为空,或者格式错误,请检查',
'dbinfo_tablepre_invalid' => '表名前缀不能包含字符".",不能以数字开头',
'admininfo_username_invalid' => '管理员用户名为空,或者格式错误,请检查',
'admininfo_email_invalid' => '管理员Email为空,或者格式错误,请检查',
'admininfo_ucfounderpw_invalid' => '管理员密码为空,请填写',
'admininfo_ucfounderpw2_invalid' => '两次密码不一致,请检查',
'username' => '管理员账号',
'email' => '管理员 Email',
'password' => '管理员密码',
'password_comment' => '管理员密码不能为空',
'password2' => '重复密码',
'admininfo_invalid' => '管理员信息不完整,请检查管理员账号,密码,邮箱',
'dbname_invalid' => '数据库名为空,请填写数据库名称',
'admin_username_invalid' => '非法用户名,用户名长度不应当超过 15 个英文字符,且不能包含特殊字符,一般是中文,字母或者数字',
'admin_password_invalid' => '密码和上面不一致,请重新输入',
'admin_email_invalid' => 'Email 地址错误,此邮件地址已经被使用或者格式无效,请更换为其他地址',
'admin_invalid' => '您的信息管理员信息没有填写完整,请仔细填写每个项目',
'admin_exist_password_error' => '该用户已经存在,如果您要设置此用户为论坛的管理员,请正确输入该用户的密码,或者请更换论坛管理员的名字',
'tagtemplates_subject' => '标题',
'tagtemplates_uid' => '用户 ID',
'tagtemplates_username' => '发帖者',
'tagtemplates_dateline' => '日期',
'tagtemplates_url' => '主题地址',
'uc_version_incorrect' => '您的 UCenter 服务端版本过低,请升级 UCenter 服务端到最新版本,并且升级,下载地址:http://www.comsenz.com/ 。',
'config_unwriteable' => '安装向导无法写入配置文件, 请设置 config.inc.php 程序属性为可写状态(777)',
'install_in_processed' => '正在安装...',
'install_succeed' => '安装用户中心成功,点击进入下一步',
'license' => '<div class="license"><h1>中文版授权协议 适用于中文用户</h1>
<p>版权所有 (c) 2001-2009,康盛创想(北京)科技有限公司保留所有权利。</p>
<p>感谢您选择 UCenter 产品。希望我们的努力能为您提供一个高效快速和强大的站点解决方案。</p>
<p>康盛创想(北京)科技有限公司为 UCenter 产品的开发商,依法独立拥有 UCenter 产品著作权。康盛创想(北京)科技有限公司网址为 http://www.comsenz.com,UCenter 官方网站网址为 http://www.discuz.com,UCenter 官方讨论区网址为 http://www.discuz.net。</p>
<p>UCenter 著作权已在中华人民共和国国家版权局注册,著作权受到法律和国际公约保护。使用者:无论个人或组织、盈利与否、用途如何(包括以学习和研究为目的),均需仔细阅读本协议,在理解、同意、并遵守本协议的全部条款后,方可开始使用 UCenter 软件。</p>
<p>本授权协议适用且仅适用于 UCenter 1.x 版本,康盛创想(北京)科技有限公司拥有对本授权协议的最终解释权。</p>
<h3>I. 协议许可的权利</h3>
<ol>
<li>您可以在完全遵守本最终用户授权协议的基础上,将本软件应用于非商业用途,而不必支付软件版权授权费用。</li>
<li>您可以在协议规定的约束和限制范围内修改 UCenter 源代码(如果被提供的话)或界面风格以适应您的网站要求。</li>
<li>您拥有使用本软件构建的网站中全部会员资料、文章及相关信息的所有权,并独立承担与文章内容的相关法律义务。</li>
<li>获得商业授权之后,您可以将本软件应用于商业用途,同时依据所购买的授权类型中确定的技术支持期限、技术支持方式和技术支持内容,自购买时刻起,在技术支持期限内拥有通过指定的方式获得指定范围内的技术支持服务。商业授权用户享有反映和提出意见的权力,相关意见将被作为首要考虑,但没有一定被采纳的承诺或保证。</li>
</ol>
<h3>II. 协议规定的约束和限制</h3>
<ol>
<li>未获商业授权之前,不得将本软件用于商业用途(包括但不限于企业网站、经营性网站、以营利为目或实现盈利的网站)。购买商业授权请登陆http://www.discuz.com参考相关说明,也可以致电8610-51657885了解详情。</li>
<li>不得对本软件或与之关联的商业授权进行出租、出售、抵押或发放子许可证。</li>
<li>无论如何,即无论用途如何、是否经过修改或美化、修改程度如何,只要使用 UCenter 的整体或任何部分,未经书面许可,页面页脚处的 UCenter 名称和康盛创想(北京)科技有限公司下属网站(http://www.comsenz.com、http://www.discuz.com 或 http://www.discuz.net) 的链接都必须保留,而不能清除或修改。</li>
<li>禁止在 UCenter 的整体或任何部分基础上以发展任何派生版本、修改版本或第三方版本用于重新分发。</li>
<li>如果您未能遵守本协议的条款,您的授权将被终止,所被许可的权利将被收回,并承担相应法律责任。</li>
</ol>
<h3>III. 有限担保和免责声明</h3>
<ol>
<li>本软件及所附带的文件是作为不提供任何明确的或隐含的赔偿或担保的形式提供的。</li>
<li>用户出于自愿而使用本软件,您必须了解使用本软件的风险,在尚未购买产品技术服务之前,我们不承诺提供任何形式的技术支持、使用担保,也不承担任何因使用本软件而产生问题的相关责任。</li>
<li>康盛创想(北京)科技有限公司不对使用本软件构建的网站中的文章或信息承担责任。</li>
</ol>
<p>有关 UCenter 最终用户授权协议、商业授权与技术服务的详细内容,均由 UCenter 官方网站独家提供。康盛创想(北京)科技有限公司拥有在不事先通知的情况下,修改授权协议和服务价目表的权力,修改后的协议或价目表对自改变之日起的新授权用户生效。</p>
<p>电子文本形式的授权协议如同双方书面签署的协议一样,具有完全的和等同的法律效力。您一旦开始安装 UCenter,即被视为完全理解并接受本协议的各项条款,在享有上述条款授予的权力的同时,受到相关的约束和限制。协议许可范围以外的行为,将直接违反本授权协议并构成侵权,我们有权随时终止授权,责令停止损害,并保留追究相关责任的权力。</p></div>',
'uc_installed' => '您已经安装过 UCenter,如果需要重新安装,请删除 data/install.lock 文件',
'i_agree' => '我已仔细阅读,并同意上述条款中的所有内容',
'supportted' => '支持',
'unsupportted' => '不支持',
'max_size' => '支持/最大尺寸',
'project' => '项目',
'ucenter_required' => 'UCenter 所需配置',
'ucenter_best' => 'UCenter 最佳',
'curr_server' => '当前服务器',
'env_check' => '环境检查',
'os' => '操作系统',
'php' => 'PHP 版本',
'attachmentupload' => '附件上传',
'unlimit' => '不限制',
'version' => '版本',
'gdversion' => 'GD 库',
'allow' => '允许',
'unix' => '类Unix',
'diskspace' => '磁盘空间',
'priv_check' => '目录、文件权限检查',
'func_depend' => '函数依赖性检查',
'func_name' => '函数名称',
'check_result' => '检查结果',
'suggestion' => '建议',
'advice_mysql' => '请检查 mysql 模块是否正确加载',
'advice_fopen' => '该函数需要 php.ini 中 allow_url_fopen 选项开启。请联系空间商,确定开启了此项功能',
'advice_file_get_contents' => '该函数需要 php.ini 中 allow_url_fopen 选项开启。请联系空间商,确定开启了此项功能',
'advice_xml' => '该函数需要 PHP 支持 XML。请联系空间商,确定开启了此项功能',
'none' => '无',
'dbhost' => '数据库服务器',
'dbuser' => '数据库用户名',
'dbpw' => '数据库密码',
'dbname' => '数据库名',
'tablepre' => '数据表前缀',
'ucfounderpw' => '创始人密码',
'ucfounderpw2' => '重复创始人密码',
'create_table' => '建立数据表',
'succeed' => '成功',
);
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/install/lang.inc.php
|
PHP
|
asf20
| 14,938
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: uccode.class.php 753 2008-11-14 06:48:25Z cnteacher $
*/
class uccode {
var $uccodes;
function __construct() {
$this->uccode();
}
function uccode() {
$this->uccode = array(
'pcodecount' => -1,
'codecount' => 0,
'codehtml' => ''
);
}
function codedisp($code) {
$this->uccode['pcodecount']++;
$code = str_replace('\\"', '"', preg_replace("/^[\n\r]*(.+?)[\n\r]*$/is", "\\1", $code));
$this->uccode['codehtml'][$this->uccode['pcodecount']] = $this->tpl_codedisp($code);
$this->uccode['codecount']++;
return "[\tUCENTER_CODE_".$this->uccode[pcodecount]."\t]";
}
function complie($message) {
$message = htmlspecialchars($message);
if(strpos($message, '[/code]') !== FALSE) {
$message = preg_replace("/\s*\[code\](.+?)\[\/code\]\s*/ies", "\$this->codedisp('\\1')", $message);
}
if(strpos($message, '[/url]') !== FALSE) {
$message = preg_replace("/\[url(=((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|ed2k|thunder|synacast){1}:\/\/|www\.)([^\[\"']+?))?\](.+?)\[\/url\]/ies", "\$this->parseurl('\\1', '\\5')", $message);
}
if(strpos($message, '[/email]') !== FALSE) {
$message = preg_replace("/\[email(=([a-z0-9\-_.+]+)@([a-z0-9\-_]+[.][a-z0-9\-_.]+))?\](.+?)\[\/email\]/ies", "\$this->parseemail('\\1', '\\4')", $message);
}
$message = str_replace(array(
'[/color]', '[/size]', '[/font]', '[/align]', '[b]', '[/b]',
'[i]', '[/i]', '[u]', '[/u]', '[list]', '[list=1]', '[list=a]',
'[list=A]', '[*]', '[/list]', '[indent]', '[/indent]', '[/float]'
), array(
'</font>', '</font>', '</font>', '</p>', '<strong>', '</strong>', '<i>',
'</i>', '<u>', '</u>', '<ul>', '<ul type="1">', '<ul type="a">',
'<ul type="A">', '<li>', '</ul>', '<blockquote>', '</blockquote>', '</span>'
), preg_replace(array(
"/\[color=([#\w]+?)\]/i",
"/\[size=(\d+?)\]/i",
"/\[size=(\d+(\.\d+)?(px|pt|in|cm|mm|pc|em|ex|%)+?)\]/i",
"/\[font=([^\[\<]+?)\]/i",
"/\[align=(left|center|right)\]/i",
"/\[float=(left|right)\]/i"
), array(
"<font color=\"\\1\">",
"<font size=\"\\1\">",
"<font style=\"font-size: \\1\">",
"<font face=\"\\1 \">",
"<p align=\"\\1\">",
"<span style=\"float: \\1;\">"
), $message));
if(strpos($message, '[/quote]') !== FALSE) {
$message = preg_replace("/\s*\[quote\][\n\r]*(.+?)[\n\r]*\[\/quote\]\s*/is", $this->tpl_quote(), $message);
}
if(strpos($message, '[/img]') !== FALSE) {
$message = preg_replace(array(
"/\[img\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ies",
"/\[img=(\d{1,4})[x|\,](\d{1,4})\]\s*([^\[\<\r\n]+?)\s*\[\/img\]/ies"
), array(
"\$this->bbcodeurl('\\1', '<img src=\"%s\" border=\"0\" alt=\"\" />')",
"\$this->bbcodeurl('\\3', '<img width=\"\\1\" height=\"\\2\" src=\"%s\" border=\"0\" alt=\"\" />')"
), $message);
}
for($i = 0; $i <= $this->uccode['pcodecount']; $i++) {
$message = str_replace("[\tUCENTER_CODE_$i\t]", $this->uccode['codehtml'][$i], $message);
}
return nl2br(str_replace(array("\t", ' ', ' '), array(' ', ' ', ' '), $message));
}
function parseurl($url, $text) {
if(!$url && preg_match("/((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|ed2k|thunder|synacast){1}:\/\/|www\.)[^\[\"']+/i", trim($text), $matches)) {
$url = $matches[0];
$length = 65;
if(strlen($url) > $length) {
$text = substr($url, 0, intval($length * 0.5)).' ... '.substr($url, - intval($length * 0.3));
}
return '<a href="'.(substr(strtolower($url), 0, 4) == 'www.' ? 'http://'.$url : $url).'" target="_blank">'.$text.'</a>';
} else {
$url = substr($url, 1);
if(substr(strtolower($url), 0, 4) == 'www.') {
$url = 'http://'.$url;
}
return '<a href="'.$url.'" target="_blank">'.$text.'</a>';
}
}
function parseemail($email, $text) {
if(!$email && preg_match("/\s*([a-z0-9\-_.+]+)@([a-z0-9\-_]+[.][a-z0-9\-_.]+)\s*/i", $text, $matches)) {
$email = trim($matches[0]);
return '<a href="mailto:'.$email.'">'.$email.'</a>';
} else {
return '<a href="mailto:'.substr($email, 1).'">'.$text.'</a>';
}
}
function bbcodeurl($url, $tags) {
if(!preg_match("/<.+?>/s", $url)) {
if(!in_array(strtolower(substr($url, 0, 6)), array('http:/', 'https:', 'ftp://', 'rtsp:/', 'mms://'))) {
$url = 'http://'.$url;
}
return str_replace(array('submit', 'logging.php'), array('', ''), sprintf($tags, $url, addslashes($url)));
} else {
return ' '.$url;
}
}
function tpl_codedisp($code) {
return '<div class="blockcode"><code id="code'.$this->uccodes['codecount'].'">'.$code.'</code></div>';
}
function tpl_quote() {
return '<div class="quote"><blockquote>\\1</blockquote></div>';
}
}
/*
Usage:
$str = <<<EOF
1
2
3
EOF;
require_once 'lib/uccode.class.php';
$this->uccode = new uccode();
echo $this->uccode->complie($str);
*/
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/lib/uccode.class.php
|
PHP
|
asf20
| 5,073
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: db.class.php 753 2008-11-14 06:48:25Z cnteacher $
*/
class db {
var $querynum = 0;
var $link;
var $histories;
var $dbhost;
var $dbuser;
var $dbpw;
var $dbcharset;
var $pconnect;
var $tablepre;
var $time;
var $goneaway = 5;
function connect($dbhost, $dbuser, $dbpw, $dbname = '', $dbcharset = '', $pconnect = 0, $tablepre='', $time = 0) {
$this->dbhost = $dbhost;
$this->dbuser = $dbuser;
$this->dbpw = $dbpw;
$this->dbname = $dbname;
$this->dbcharset = $dbcharset;
$this->pconnect = $pconnect;
$this->tablepre = $tablepre;
$this->time = $time;
if($pconnect) {
if(!$this->link = mysql_pconnect($dbhost, $dbuser, $dbpw)) {
$this->halt('Can not connect to MySQL server');
}
} else {
if(!$this->link = mysql_connect($dbhost, $dbuser, $dbpw)) {
$this->halt('Can not connect to MySQL server');
}
}
if($this->version() > '4.1') {
if($dbcharset) {
mysql_query("SET character_set_connection=".$dbcharset.", character_set_results=".$dbcharset.", character_set_client=binary", $this->link);
}
if($this->version() > '5.0.1') {
mysql_query("SET sql_mode=''", $this->link);
}
}
if($dbname) {
mysql_select_db($dbname, $this->link);
}
}
function fetch_array($query, $result_type = MYSQL_ASSOC) {
return mysql_fetch_array($query, $result_type);
}
function result_first($sql) {
$query = $this->query($sql);
return $this->result($query, 0);
}
function fetch_first($sql) {
$query = $this->query($sql);
return $this->fetch_array($query);
}
function fetch_all($sql, $id = '') {
$arr = array();
$query = $this->query($sql);
while($data = $this->fetch_array($query)) {
$id ? $arr[$data[$id]] = $data : $arr[] = $data;
}
return $arr;
}
function cache_gc() {
$this->query("DELETE FROM {$this->tablepre}sqlcaches WHERE expiry<$this->time");
}
function query($sql, $type = '', $cachetime = FALSE) {
$func = $type == 'UNBUFFERED' && @function_exists('mysql_unbuffered_query') ? 'mysql_unbuffered_query' : 'mysql_query';
if(!($query = $func($sql, $this->link)) && $type != 'SILENT') {
$this->halt('MySQL Query Error', $sql);
}
$this->querynum++;
$this->histories[] = $sql;
return $query;
}
function affected_rows() {
return mysql_affected_rows($this->link);
}
function error() {
return (($this->link) ? mysql_error($this->link) : mysql_error());
}
function errno() {
return intval(($this->link) ? mysql_errno($this->link) : mysql_errno());
}
function result($query, $row) {
$query = @mysql_result($query, $row);
return $query;
}
function num_rows($query) {
$query = mysql_num_rows($query);
return $query;
}
function num_fields($query) {
return mysql_num_fields($query);
}
function free_result($query) {
return mysql_free_result($query);
}
function insert_id() {
return ($id = mysql_insert_id($this->link)) >= 0 ? $id : $this->result($this->query("SELECT last_insert_id()"), 0);
}
function fetch_row($query) {
$query = mysql_fetch_row($query);
return $query;
}
function fetch_fields($query) {
return mysql_fetch_field($query);
}
function version() {
return mysql_get_server_info($this->link);
}
function close() {
return mysql_close($this->link);
}
function halt($message = '', $sql = '') {
$error = mysql_error();
$errorno = mysql_errno();
if($errorno == 2006 && $this->goneaway-- > 0) {
$this->connect($this->dbhost, $this->dbuser, $this->dbpw, $this->dbname, $this->dbcharset, $this->pconnect, $this->tablepre, $this->time);
$this->query($sql);
} else {
$s = '<b>Error:</b>'.$error.'<br />';
$s .= '<b>Errno:</b>'.$errorno.'<br />';
$s .= '<b>SQL:</b>:'.$sql;
exit($s);
}
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/lib/db.class.php
|
PHP
|
asf20
| 3,977
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: template.class.php 845 2008-12-08 05:36:51Z zhaoxiongfei $
*/
class template {
var $tpldir;
var $objdir;
var $tplfile;
var $objfile;
var $langfile;
var $vars;
var $force = 0;
var $var_regexp = "\@?\\\$[a-zA-Z_]\w*(?:\[[\w\.\"\'\[\]\$]+\])*";
var $vtag_regexp = "\<\?=(\@?\\\$[a-zA-Z_]\w*(?:\[[\w\.\"\'\[\]\$]+\])*)\?\>";
var $const_regexp = "\{([\w]+)\}";
var $languages = array();
var $sid;
function __construct() {
$this->template();
}
function template() {
ob_start();
$this->defaulttpldir = UC_ROOT.'./view/default';
$this->tpldir = UC_ROOT.'./view/default';
$this->objdir = UC_DATADIR.'./view';
$this->langfile = UC_ROOT.'./view/default/templates.lang.php';
if (version_compare(PHP_VERSION, '5') == -1) {
register_shutdown_function(array(&$this, '__destruct'));
}
}
function assign($k, $v) {
$this->vars[$k] = $v;
}
function display($file) {
extract($this->vars, EXTR_SKIP);
include $this->gettpl($file);
}
function gettpl($file) {
isset($_REQUEST['inajax']) && ($file == 'header' || $file == 'footer') && $file = $file.'_ajax';
isset($_REQUEST['inajax']) && ($file == 'admin_header' || $file == 'admin_footer') && $file = substr($file, 6).'_ajax';
$this->tplfile = $this->tpldir.'/'.$file.'.htm';
$this->objfile = $this->objdir.'/'.$file.'.php';
$tplfilemtime = @filemtime($this->tplfile);
if($tplfilemtime === FALSE) {
$this->tplfile = $this->defaulttpldir.'/'.$file.'.htm';
}
if($this->force || !file_exists($this->objfile) || @filemtime($this->objfile) < filemtime($this->tplfile)) {
if(empty($this->language)) {
@include $this->langfile;
if(is_array($languages)) {
$this->languages += $languages;
}
}
$this->complie();
}
return $this->objfile;
}
function complie() {
$template = file_get_contents($this->tplfile);
$template = preg_replace("/\<\!\-\-\{(.+?)\}\-\-\>/s", "{\\1}", $template);
$template = preg_replace("/\{lang\s+(\w+?)\}/ise", "\$this->lang('\\1')", $template);
$template = preg_replace("/\{($this->var_regexp)\}/", "<?=\\1?>", $template);
$template = preg_replace("/\{($this->const_regexp)\}/", "<?=\\1?>", $template);
$template = preg_replace("/(?<!\<\?\=|\\\\)$this->var_regexp/", "<?=\\0?>", $template);
$template = preg_replace("/\<\?=(\@?\\\$[a-zA-Z_]\w*)((\[[\\$\[\]\w]+\])+)\?\>/ies", "\$this->arrayindex('\\1', '\\2')", $template);
$template = preg_replace("/\{\{eval (.*?)\}\}/ies", "\$this->stripvtag('<? \\1?>')", $template);
$template = preg_replace("/\{eval (.*?)\}/ies", "\$this->stripvtag('<? \\1?>')", $template);
$template = preg_replace("/\{for (.*?)\}/ies", "\$this->stripvtag('<? for(\\1) {?>')", $template);
$template = preg_replace("/\{elseif\s+(.+?)\}/ies", "\$this->stripvtag('<? } elseif(\\1) { ?>')", $template);
for($i=0; $i<2; $i++) {
$template = preg_replace("/\{loop\s+$this->vtag_regexp\s+$this->vtag_regexp\s+$this->vtag_regexp\}(.+?)\{\/loop\}/ies", "\$this->loopsection('\\1', '\\2', '\\3', '\\4')", $template);
$template = preg_replace("/\{loop\s+$this->vtag_regexp\s+$this->vtag_regexp\}(.+?)\{\/loop\}/ies", "\$this->loopsection('\\1', '', '\\2', '\\3')", $template);
}
$template = preg_replace("/\{if\s+(.+?)\}/ies", "\$this->stripvtag('<? if(\\1) { ?>')", $template);
$template = preg_replace("/\{template\s+(\w+?)\}/is", "<? include \$this->gettpl('\\1');?>", $template);
$template = preg_replace("/\{template\s+(.+?)\}/ise", "\$this->stripvtag('<? include \$this->gettpl(\\1); ?>')", $template);
$template = preg_replace("/\{else\}/is", "<? } else { ?>", $template);
$template = preg_replace("/\{\/if\}/is", "<? } ?>", $template);
$template = preg_replace("/\{\/for\}/is", "<? } ?>", $template);
$template = preg_replace("/$this->const_regexp/", "<?=\\1?>", $template);
$template = "<? if(!defined('UC_ROOT')) exit('Access Denied');?>\r\n$template";
$template = preg_replace("/(\\\$[a-zA-Z_]\w+\[)([a-zA-Z_]\w+)\]/i", "\\1'\\2']", $template);
$fp = fopen($this->objfile, 'w');
fwrite($fp, $template);
fclose($fp);
}
function arrayindex($name, $items) {
$items = preg_replace("/\[([a-zA-Z_]\w*)\]/is", "['\\1']", $items);
return "<?=$name$items?>";
}
function stripvtag($s) {
return preg_replace("/$this->vtag_regexp/is", "\\1", str_replace("\\\"", '"', $s));
}
function loopsection($arr, $k, $v, $statement) {
$arr = $this->stripvtag($arr);
$k = $this->stripvtag($k);
$v = $this->stripvtag($v);
$statement = str_replace("\\\"", '"', $statement);
return $k ? "<? foreach((array)$arr as $k => $v) {?>$statement<?}?>" : "<? foreach((array)$arr as $v) {?>$statement<? } ?>";
}
function lang($k) {
return !empty($this->languages[$k]) ? $this->languages[$k] : "{ $k }";
}
function _transsid($url, $tag = '', $wml = 0) {
$sid = $this->sid;
$tag = stripslashes($tag);
if(!$tag || (!preg_match("/^(http:\/\/|mailto:|#|javascript)/i", $url) && !strpos($url, 'sid='))) {
if($pos = strpos($url, '#')) {
$urlret = substr($url, $pos);
$url = substr($url, 0, $pos);
} else {
$urlret = '';
}
$url .= (strpos($url, '?') ? ($wml ? '&' : '&') : '?').'sid='.$sid.$urlret;
}
return $tag.$url;
}
function __destruct() {
if($_COOKIE['sid']) {
return;
}
$sid = rawurlencode($this->sid);
$searcharray = array(
"/\<a(\s*[^\>]+\s*)href\=([\"|\']?)([^\"\'\s]+)/ies",
"/(\<form.+?\>)/is"
);
$replacearray = array(
"\$this->_transsid('\\3','<a\\1href=\\2')",
"\\1\n<input type=\"hidden\" name=\"sid\" value=\"".rawurldecode(rawurldecode(rawurldecode($sid)))."\" />"
);
$content = preg_replace($searcharray, $replacearray, ob_get_contents());
ob_end_clean();
echo $content;
}
}
/*
Usage:
require_once 'lib/template.class.php';
$this->view = new template();
$this->view->assign('page', $page);
$this->view->assign('userlist', $userlist);
$this->view->display("user_ls");
*/
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/lib/template.class.php
|
PHP
|
asf20
| 6,193
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: upload.class.php 845 2008-12-08 05:36:51Z zhaoxiongfei $
*/
Class upload{
var $dir;
var $thumb_width;
var $thumb_height;
var $thumb_ext;
var $watermark_file;
var $watermark_pos;
var $watermark_alpha;
var $time;
var $filetypedata = array();
var $filetypeids = array();
var $filetypes = array();
function upload($time = 0) {
$this->time = $time ? $time : time();
$this->filetypedata = array(
'av' => array('av', 'wmv', 'wav'),
'real' => array('rm', 'rmvb'),
'binary' => array('dat'),
'flash' => array('swf'),
'html' => array('html', 'htm'),
'image' => array('gif', 'jpg', 'jpeg', 'png', 'bmp'),
'office' => array('doc', 'xls', 'ppt'),
'pdf' => array('pdf'),
'rar' => array('rar', 'zip'),
'text' => array('txt'),
'bt' => array('bt'),
'zip' => array('tar', 'rar', 'zip', 'gz'),
);
$this->filetypeids = array_keys($this->filetypedata);
foreach($this->filetypedata as $data) {
$this->filetypes = array_merge($this->filetypes, $data);
}
}
function set_dir($dir) {
$this->dir = $dir;
}
function set_thumb($width, $height, $ext = '') {
$this->thumb_width = $width;
$this->thumb_height = $height;
$this->thumb_ext = $ext;
}
function set_watermark($file, $pos = 9, $alpha = 100) {
$this->watermark_file = $file;
$this->watermark_pos = $pos;
$this->watermark_alpha = $alpha;
}
function execute() {
$arr = array();
$keys = array_keys($_FILES['attach']['name']);
foreach($keys as $key) {
if(!$_FILES['attach']['name'][$key]) {
continue;
}
$file = array(
'name' => $_FILES['attach']['name'][$key],
'tmp_name' => $_FILES['attach']['tmp_name'][$key]
);
$fileext = $this->fileext($file['name']);
if(!in_array($fileext, $this->filetypes)) {
$fileext = '_'.$fileext;
}
$tfilename = $this->time.rand(100, 999);
$filename = '1'.$tfilename.'.'.$fileext;
$filethumb = '0'.$tfilename.'.'.($this->thumb_ext ? $this->thumb_ext : $fileext);
$this->copy($file['tmp_name'], $this->dir.'/'.$filename);
$arr[$key]['file'] = $filename;
if(in_array($fileext, array('jpg', 'gif', 'png'))) {
if($this->thumb_width) {
if($this->thumb($this->thumb_width, $this->thumb_height, $this->dir.'/'.$filename, $this->dir.'/'.$filethumb, ($this->thumb_ext ? $this->thumb_ext : $fileext))) {
$arr[$key]['thumb'] = $filethumb;
}
}
if($this->watermark_file) {
$this->waterfile($this->dir.'/'.$filename, $this->watermark_file, $fileext, $this->watermark_pos, $this->watermark_alpha);
}
}
}
return $arr;
}
function mkdir_by_date($date, $dir = '.') {
list($y, $m, $d) = explode('-', date('Y-m-d', $date));
!is_dir("$dir/$y") && mkdir("$dir/$y", 0777);
!is_dir("$dir/$y/$m$d") && mkdir("$dir/$y/$m$d", 0777);
return "$y/$m$d";
}
function mkdir_by_hash($s, $dir = '.') {
$s = md5($s);
!is_dir($dir.'/'.$s[0]) && mkdir($dir.'/'.$s[0], 0777);
!is_dir($dir.'/'.$s[0].'/'.$s[1]) && mkdir($dir.'/'.$s[0].'/'.$s[1], 0777);
!is_dir($dir.'/'.$s[0].'/'.$s[1].'/'.$s[2]) && mkdir($dir.'/'.$s[0].'/'.$s[1].'/'.$s[2], 0777);
return $s[0].'/'.$s[1].'/'.$s[2];
}
function mkdir_by_uid($uid, $dir = '.') {
$uid = sprintf("%09d", $uid);
$dir1 = substr($uid, 0, 3);
$dir2 = substr($uid, 3, 2);
$dir3 = substr($uid, 5, 2);
!is_dir($dir.'/'.$dir1) && mkdir($dir.'/'.$dir1, 0777);
!is_dir($dir.'/'.$dir1.'/'.$dir2) && mkdir($dir.'/'.$dir1.'/'.$dir2, 0777);
!is_dir($dir.'/'.$dir1.'/'.$dir2.'/'.$dir3) && mkdir($dir.'/'.$dir1.'/'.$dir2.'/'.$dir3, 0777);
return $dir1.'/'.$dir2.'/'.$dir3;
}
function copy($sourcefile, $destfile) {
move_uploaded_file($sourcefile, $destfile);
@unlink($sourcefile);
}
function watermark($target, $watermark_file, $ext, $watermarkstatus=9, $watermarktrans=50) {
$gdsurporttype = array();
if(function_exists('imageAlphaBlending') && function_exists('getimagesize')) {
if(function_exists('imageGIF')) $gdsurporttype[]='gif';
if(function_exists('imagePNG')) $gdsurporttype[]='png';
if(function_exists('imageJPEG')) {
$gdsurporttype[]='jpg';
$gdsurporttype[]='jpeg';
}
}
if($gdsurporttype && in_array($ext, $gdsurporttype) ) {
$attachinfo = getimagesize($target);
$watermark_logo = imageCreateFromGIF($watermark_file);
$logo_w = imageSX($watermark_logo);
$logo_h = imageSY($watermark_logo);
$img_w = $attachinfo[0];
$img_h = $attachinfo[1];
$wmwidth = $img_w - $logo_w;
$wmheight = $img_h - $logo_h;
$animatedgif = 0;
if($attachinfo['mime'] == 'image/gif') {
$fp = fopen($target, 'rb');
$targetcontent = fread($fp, 9999999);
fclose($fp);
$animatedgif = strpos($targetcontent, 'NETSCAPE2.0') === FALSE ? 0 : 1;
}
if($watermark_logo && $wmwidth > 10 && $wmheight > 10 && !$animatedgif) {
switch ($attachinfo['mime']) {
case 'image/jpeg':
$dst_photo = imageCreateFromJPEG($target);
break;
case 'image/gif':
$dst_photo = imageCreateFromGIF($target);
break;
case 'image/png':
$dst_photo = imageCreateFromPNG($target);
break;
}
switch($watermarkstatus) {
case 1:
$x = +5;
$y = +5;
break;
case 2:
$x = ($logo_w + $img_w) / 2;
$y = +5;
break;
case 3:
$x = $img_w - $logo_w-5;
$y = +5;
break;
case 4:
$x = +5;
$y = ($logo_h + $img_h) / 2;
break;
case 5:
$x = ($logo_w + $img_w) / 2;
$y = ($logo_h + $img_h) / 2;
break;
case 6:
$x = $img_w - $logo_w;
$y = ($logo_h + $img_h) / 2;
break;
case 7:
$x = +5;
$y = $img_h - $logo_h-5;
break;
case 8:
$x = ($logo_w + $img_w) / 2;
$y = $img_h - $logo_h;
break;
case 9:
$x = $img_w - $logo_w-5;
$y = $img_h - $logo_h-5;
break;
}
imageAlphaBlending($watermark_logo, FALSE);
imagesavealpha($watermark_logo,TRUE);
imageCopyMerge($dst_photo, $watermark_logo, $x, $y, 0, 0, $logo_w, $logo_h, $watermarktrans);
switch($attachinfo['mime']) {
case 'image/jpeg':
imageJPEG($dst_photo, $target);
break;
case 'image/gif':
imageGIF($dst_photo, $target);
break;
case 'image/png':
imagePNG($dst_photo, $target);
break;
}
}
}
}
function thumb($forcedwidth, $forcedheight, $sourcefile, $destfile, $destext, $imgcomp = 0) {
$g_imgcomp=100-$imgcomp;
$g_srcfile=$sourcefile;
$g_dstfile=$destfile;
$g_fw=$forcedwidth;
$g_fh=$forcedheight;
$ext = strtolower(substr(strrchr($sourcefile, '.'), 1, 10));
if(file_exists($g_srcfile)) {
$g_is = getimagesize($g_srcfile);
if($g_is[0] < $forcedwidth && $g_is[1] < $forcedheight) {
copy($sourcefile, $destfile);
return filesize($destfile);;
}
if (($g_is[0] - $g_fw) >= ($g_is[1] - $g_fh)){
$g_iw=$g_fw;
$g_ih=($g_fw/$g_is[0])*$g_is[1];
} else {
$g_ih=$g_fh;
$g_iw=($g_ih/$g_is[1])*$g_is[0];
}
switch ($ext) {
case 'jpg':
$img_src = @imagecreatefromjpeg($g_srcfile);
!$img_src && $img_src = imagecreatefromgif($g_srcfile);
break;
case 'gif':
$img_src = imagecreatefromgif($g_srcfile);
break;
case 'png':
$img_src = imagecreatefrompng($g_srcfile);
break;
}
$img_dst = imagecreatetruecolor($g_iw, $g_ih);
imagecopyresampled($img_dst, $img_src, 0, 0, 0, 0, $g_iw, $g_ih, $g_is[0], $g_is[1]);
switch($destext) {
case 'jpg':
imagejpeg($img_dst, $g_dstfile, $g_imgcomp);
break;
case 'gif':
imagegif($img_dst, $g_dstfile, $g_imgcomp);
break;
}
imagedestroy($img_dst);
return filesize($destfile);
} else {
return false;
}
}
function fileext($filename) {
return substr(strrchr($filename, '.'), 1, 10);
}
function get_filetype($ext) {
foreach($this->filetypedata as $k => $v) {
if(in_array($ext, $v)) {
return $k;
}
}
return 'common';
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/lib/upload.class.php
|
PHP
|
asf20
| 8,315
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: sendmail.inc.php 753 2008-11-14 06:48:25Z cnteacher $
*/
!defined('IN_UC') && exit('Access Denied');
if($mail_setting['mailsilent']) {
error_reporting(0);
}
$maildelimiter = $mail_setting['maildelimiter'] == 1 ? "\r\n" : ($mail_setting['maildelimiter'] == 2 ? "\r" : "\n");
$mailusername = isset($mail_setting['mailusername']) ? $mail_setting['mailusername'] : 1;
$appname = $this->base->cache['apps'][$mail['appid']]['name'];
$mail['subject'] = '=?'.$mail['charset'].'?B?'.base64_encode(str_replace("\r", '', str_replace("\n", '', '['.$appname.'] '.$mail['subject']))).'?=';
$mail['message'] = chunk_split(base64_encode(str_replace("\r\n.", " \r\n..", str_replace("\n", "\r\n", str_replace("\r", "\n", str_replace("\r\n", "\n", str_replace("\n\r", "\r", $mail['message'])))))));
$email_from = $mail['frommail'] == '' ? '=?'.$mail['charset'].'?B?'.base64_encode($appname)."?= <$mail_setting[maildefault]>" : (preg_match('/^(.+?) \<(.+?)\>$/',$email_from, $from) ? '=?'.$mail['charset'].'?B?'.base64_encode($from[1])."?= <$from[2]>" : $mail['frommail']);
foreach(explode(',', $mail['email_to']) as $touser) {
$tousers[] = preg_match('/^(.+?) \<(.+?)\>$/',$touser, $to) ? ($mailusername ? '=?'.$mail['charset'].'?B?'.base64_encode($to[1])."?= <$to[2]>" : $to[2]) : $touser;
}
$mail['email_to'] = implode(',', $tousers);
$headers = "From: $email_from{$maildelimiter}X-Priority: 3{$maildelimiter}X-Mailer: Discuz! $version{$maildelimiter}MIME-Version: 1.0{$maildelimiter}Content-type: text/".($mail['htmlon'] ? 'html' : 'plain')."; charset=$mail[charset]{$maildelimiter}Content-Transfer-Encoding: base64{$maildelimiter}";
$mail_setting['mailport'] = $mail_setting['mailport'] ? $mail_setting['mailport'] : 25;
if($mail_setting['mailsend'] == 1 && function_exists('mail')) {
return @mail($mail['email_to'], $mail['subject'], $mail['message'], $headers);
} elseif($mail_setting['mailsend'] == 2) {
if(!$fp = fsockopen($mail_setting['mailserver'], $mail_setting['mailport'], $errno, $errstr, 30)) {
return false;
}
stream_set_blocking($fp, true);
$lastmessage = fgets($fp, 512);
if(substr($lastmessage, 0, 3) != '220') {
return false;
}
fputs($fp, ($mail_setting['mailauth'] ? 'EHLO' : 'HELO')." discuz\r\n");
$lastmessage = fgets($fp, 512);
if(substr($lastmessage, 0, 3) != 220 && substr($lastmessage, 0, 3) != 250) {
return false;
}
while(1) {
if(substr($lastmessage, 3, 1) != '-' || empty($lastmessage)) {
break;
}
$lastmessage = fgets($fp, 512);
}
if($mail_setting['mailauth']) {
fputs($fp, "AUTH LOGIN\r\n");
$lastmessage = fgets($fp, 512);
if(substr($lastmessage, 0, 3) != 334) {
return false;
}
fputs($fp, base64_encode($mail_setting['mailauth_username'])."\r\n");
$lastmessage = fgets($fp, 512);
if(substr($lastmessage, 0, 3) != 334) {
return false;
}
fputs($fp, base64_encode($mail_setting['mailauth_password'])."\r\n");
$lastmessage = fgets($fp, 512);
if(substr($lastmessage, 0, 3) != 235) {
return false;
}
$email_from = $mail_setting['mailfrom'];
}
fputs($fp, "MAIL FROM: <".preg_replace("/.*\<(.+?)\>.*/", "\\1", $email_from).">\r\n");
$lastmessage = fgets($fp, 512);
if(substr($lastmessage, 0, 3) != 250) {
fputs($fp, "MAIL FROM: <".preg_replace("/.*\<(.+?)\>.*/", "\\1", $email_from).">\r\n");
$lastmessage = fgets($fp, 512);
if(substr($lastmessage, 0, 3) != 250) {
return false;
}
}
$email_tos = array();
foreach(explode(',', $mail['email_to']) as $touser) {
$touser = trim($touser);
if($touser) {
fputs($fp, "RCPT TO: <".preg_replace("/.*\<(.+?)\>.*/", "\\1", $touser).">\r\n");
$lastmessage = fgets($fp, 512);
if(substr($lastmessage, 0, 3) != 250) {
fputs($fp, "RCPT TO: <".preg_replace("/.*\<(.+?)\>.*/", "\\1", $touser).">\r\n");
$lastmessage = fgets($fp, 512);
return false;
}
}
}
fputs($fp, "DATA\r\n");
$lastmessage = fgets($fp, 512);
if(substr($lastmessage, 0, 3) != 354) {
return false;
}
$headers .= 'Message-ID: <'.gmdate('YmdHs').'.'.substr(md5($mail['message'].microtime()), 0, 6).rand(100000, 999999).'@'.$_SERVER['HTTP_HOST'].">{$maildelimiter}";
fputs($fp, "Date: ".gmdate('r')."\r\n");
fputs($fp, "To: ".$mail['email_to']."\r\n");
fputs($fp, "Subject: ".$mail['subject']."\r\n");
fputs($fp, $headers."\r\n");
fputs($fp, "\r\n\r\n");
fputs($fp, "$mail[message]\r\n.\r\n");
$lastmessage = fgets($fp, 512);
if(substr($lastmessage, 0, 3) != 250) {
return false;
}
fputs($fp, "QUIT\r\n");
return true;
} elseif($mail_setting['mailsend'] == 3) {
ini_set('SMTP', $mail_setting['mailserver']);
ini_set('smtp_port', $mail_setting['mailport']);
ini_set('sendmail_from', $email_from);
return @mail($mail['email_to'], $mail['subject'], $mail['message'], $headers);
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/lib/sendmail.inc.php
|
PHP
|
asf20
| 5,010
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: xml.class.php 845 2008-12-08 05:36:51Z zhaoxiongfei $
*/
function xml_unserialize(&$xml, $isnormal = FALSE) {
$xml_parser = new XML($isnormal);
$data = $xml_parser->parse($xml);
$xml_parser->destruct();
return $data;
}
function xml_serialize($arr, $htmlon = FALSE, $isnormal = FALSE, $level = 1) {
$s = $level == 1 ? "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\r\n<root>\r\n" : '';
$space = str_repeat("\t", $level);
foreach($arr as $k => $v) {
if(!is_array($v)) {
$s .= $space."<item id=\"$k\">".($htmlon ? '<![CDATA[' : '').$v.($htmlon ? ']]>' : '')."</item>\r\n";
} else {
$s .= $space."<item id=\"$k\">\r\n".xml_serialize($v, $htmlon, $isnormal, $level + 1).$space."</item>\r\n";
}
}
$s = preg_replace("/([\x01-\x09\x0b-\x0c\x0e-\x1f])+/", ' ', $s);
return $level == 1 ? $s."</root>" : $s;
}
class XML {
var $parser;
var $document;
var $stack;
var $data;
var $last_opened_tag;
var $isnormal;
var $attrs = array();
var $failed = FALSE;
function __construct($isnormal) {
$this->XML($isnormal);
}
function XML($isnormal) {
$this->isnormal = $isnormal;
$this->parser = xml_parser_create('ISO-8859-1');
xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, false);
xml_set_object($this->parser, $this);
xml_set_element_handler($this->parser, 'open','close');
xml_set_character_data_handler($this->parser, 'data');
}
function destruct() {
xml_parser_free($this->parser);
}
function parse(&$data) {
$this->document = array();
$this->stack = array();
return xml_parse($this->parser, $data, true) && !$this->failed ? $this->document : '';
}
function open(&$parser, $tag, $attributes) {
$this->failed = FALSE;
if(!$this->isnormal) {
if(isset($attributes['id']) && !is_string($this->document[$attributes['id']])) {
$this->document = &$this->document[$attributes['id']];
} else {
$this->failed = TRUE;
}
} else {
if(!isset($this->document[$tag]) || !is_string($this->document[$tag])) {
$this->document = &$this->document[$tag];
} else {
$this->failed = TRUE;
}
}
$this->stack[] = &$this->document;
$this->last_opened_tag = $tag;
$this->attrs = $attributes;
}
function data(&$parser, $data) {
if($this->last_opened_tag != NULL) {
$this->data = $data;
} else {
$this->data = '';
}
}
function close(&$parser, $tag) {
if($this->last_opened_tag == $tag) {
$this->document = $this->data;
$this->last_opened_tag = NULL;
}
array_pop($this->stack);
if($this->stack) {
$this->document = &$this->stack[count($this->stack)-1];
}
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/lib/xml.class.php
|
PHP
|
asf20
| 2,804
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: badword.php 847 2008-12-08 05:43:24Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class badwordmodel {
var $db;
var $base;
function __construct(&$base) {
$this->badwordmodel($base);
}
function badwordmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function add_badword($find, $replacement, $admin, $type = 1) {
if($find) {
$find = trim($find);
$replacement = trim($replacement);
$findpattern = $this->pattern_find($find);
if($type == 1) {
$this->db->query("REPLACE INTO ".UC_DBTABLEPRE."badwords SET find='$find', replacement='$replacement', admin='$admin', findpattern='$findpattern'");
} elseif($type == 2) {
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."badwords SET find='$find', replacement='$replacement', admin='$admin', findpattern='$findpattern'", 'SILENT');
}
}
return $this->db->insert_id();
}
function get_total_num() {
$data = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."badwords");
return $data;
}
function get_list($page, $ppp, $totalnum) {
$start = $this->base->page_get_start($page, $ppp, $totalnum);
$data = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."badwords LIMIT $start, $ppp");
return $data;
}
function delete_badword($arr) {
$badwordids = $this->base->implode($arr);
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."badwords WHERE id IN ($badwordids)");
return $this->db->affected_rows();
}
function truncate_badword() {
$this->db->query("TRUNCATE ".UC_DBTABLEPRE."badwords");
}
function update_badword($find, $replacement, $id) {
$findpattern = $this->pattern_find($find);
$this->db->query("UPDATE ".UC_DBTABLEPRE."badwords SET find='$find', replacement='$replacement', findpattern='$findpattern' WHERE id='$id'");
return $this->db->affected_rows();
}
function pattern_find($find) {
$find = preg_quote($find, "/'");
$find = str_replace("\\", "\\\\", $find);
$find = str_replace("'", "\\'", $find);
return '/'.preg_replace("/\\\{(\d+)\\\}/", ".{0,\\1}", $find).'/is';
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/badword.php
|
PHP
|
asf20
| 2,244
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: mail.php 847 2008-12-08 05:43:24Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
define('UC_MAIL_REPEAT', 5);
class mailmodel {
var $db;
var $base;
var $apps;
function __construct(&$base) {
$this->mailmodel($base);
}
function mailmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
$this->apps = &$this->base->cache['apps'];
}
function get_total_num() {
$data = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."mailqueue");
return $data;
}
function get_list($page, $ppp, $totalnum) {
$start = $this->base->page_get_start($page, $ppp, $totalnum);
$data = $this->db->fetch_all("SELECT m.*, u.username, u.email FROM ".UC_DBTABLEPRE."mailqueue m LEFT JOIN ".UC_DBTABLEPRE."members u ON m.touid=u.uid ORDER BY dateline DESC LIMIT $start, $ppp");
foreach((array)$data as $k => $v) {
$data[$k]['subject'] = htmlspecialchars($v['subject']);
$data[$k]['tomail'] = empty($v['tomail']) ? $v['email'] : $v['tomail'];
$data[$k]['dateline'] = $v['dateline'] ? $this->base->date($data[$k]['dateline']) : '';
$data[$k]['appname'] = $this->base->cache['apps'][$v['appid']]['name'];
}
return $data;
}
function delete_mail($ids) {
$ids = $this->base->implode($ids);
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."mailqueue WHERE mailid IN ($ids)");
return $this->db->affected_rows();
}
function add($mail) {
if($mail['level']) {
$sql = "INSERT INTO ".UC_DBTABLEPRE."mailqueue (touid, tomail, subject, message, frommail, charset, htmlon, level, dateline, failures, appid) VALUES ";
$values_arr = array();
foreach($mail['uids'] as $uid) {
if(empty($uid)) continue;
$values_arr[] = "('$uid', '', '$mail[subject]', '$mail[message]', '$mail[frommail]', '$mail[charset]', '$mail[htmlon]', '$mail[level]', '$mail[dateline]', '0', '$mail[appid]')";
}
foreach($mail['emails'] as $email) {
if(empty($email)) continue;
$values_arr[] = "('', '$email', '$mail[subject]', '$mail[message]', '$mail[frommail]', '$mail[charset]', '$mail[htmlon]', '$mail[level]', '$mail[dateline]', '0', '$mail[appid]')";
}
$sql .= implode(',', $values_arr);
$this->db->query($sql);
$insert_id = $this->db->insert_id();
$insert_id && $this->db->query("REPLACE INTO ".UC_DBTABLEPRE."vars SET name='mailexists', value='1'");
return $insert_id;
} else {
$mail['email_to'] = array();
$uids = 0;
foreach($mail['uids'] as $uid) {
if(empty($uid)) continue;
$uids .= ','.$uid;
}
$users = $this->db->fetch_all("SELECT uid, username, email FROM ".UC_DBTABLEPRE."members WHERE uid IN ($uids)");
foreach($users as $v) {
$mail['email_to'][] = $v['username'].'<'.$v['email'].'>';
}
foreach($mail['emails'] as $email) {
if(empty($email)) continue;
$mail['email_to'][] = $email;
}
$mail['message'] = str_replace('\"', '"', $mail['message']);
$mail['email_to'] = implode(',', $mail['email_to']);
return $this->send_one_mail($mail);
}
}
function send() {
register_shutdown_function(array($this, '_send'));
}
function _send() {
$mail = $this->_get_mail();
if(empty($mail)) {
$this->db->query("REPLACE INTO ".UC_DBTABLEPRE."vars SET name='mailexists', value='0'");
return NULL;
} else {
$mail['email_to'] = $mail['tomail'] ? $mail['tomail'] : $mail['username'].'<'.$mail['email'].'>';
if($this->send_one_mail($mail)) {
$this->_delete_one_mail($mail['mailid']);
return true;
} else {
$this->_update_failures($mail['mailid']);
return false;
}
}
}
function send_by_id($mailid) {
if ($this->send_one_mail($this->_get_mail_by_id($mailid))) {
$this->_delete_one_mail($mailid);
return true;
}
}
function send_one_mail($mail) {
if(empty($mail)) return;
$mail['email_to'] = $mail['email_to'] ? $mail['email_to'] : $mail['username'].'<'.$mail['email'].'>';
$mail_setting = $this->base->settings;
return include UC_ROOT.'lib/sendmail.inc.php';
}
function _get_mail() {
$data = $this->db->fetch_first("SELECT m.*, u.username, u.email FROM ".UC_DBTABLEPRE."mailqueue m LEFT JOIN ".UC_DBTABLEPRE."members u ON m.touid=u.uid WHERE failures<'".UC_MAIL_REPEAT."' ORDER BY level DESC, mailid ASC LIMIT 1");
return $data;
}
function _get_mail_by_id($mailid) {
$data = $this->db->fetch_first("SELECT m.*, u.username, u.email FROM ".UC_DBTABLEPRE."mailqueue m LEFT JOIN ".UC_DBTABLEPRE."members u ON m.touid=u.uid WHERE mailid='$mailid'");
return $data;
}
function _delete_one_mail($mailid) {
$mailid = intval($mailid);
return $this->db->query("DELETE FROM ".UC_DBTABLEPRE."mailqueue WHERE mailid='$mailid'");
}
function _update_failures($mailid) {
$mailid = intval($mailid);
return $this->db->query("UPDATE ".UC_DBTABLEPRE."mailqueue SET failures=failures+1 WHERE mailid='$mailid'");
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/mail.php
|
PHP
|
asf20
| 5,074
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: setting.php 845 2008-12-08 05:36:51Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class settingmodel {
var $db;
var $base;
function __construct(&$base) {
$this->settingmodel($base);
}
function settingmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function get_settings($keys = '') {
if($keys) {
$keys = $this->base->implode($keys);
$sqladd = "k IN ($keys)";
} else {
$sqladd = '1';
}
$arr = array();
$arr = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."settings WHERE $sqladd");
if($arr) {
foreach($arr as $k => $v) {
$arr[$v['k']] = $v['v'];
unset($arr[$k]);
}
}
return $arr;
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/setting.php
|
PHP
|
asf20
| 839
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: pm.php 907 2008-12-26 07:27:40Z monkey $
*/
!defined('IN_UC') && exit('Access Denied');
class pmmodel {
var $db;
var $base;
var $lang;
function __construct(&$base) {
$this->pmmodel($base);
}
function pmmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function pmintval($pmid) {
return @is_numeric($pmid) ? $pmid : 0;
}
function get_pm_by_pmid($uid, $pmid) {
$arr = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."pms WHERE pmid='$pmid' AND (msgtoid IN ('$uid','0') OR msgfromid='$uid')");
return $arr;
}
function get_pm_by_touid($uid, $touid, $starttime, $endtime) {
$arr1 = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."pms WHERE msgfromid='$uid' AND msgtoid='$touid' AND dateline>='$starttime' AND dateline<'$endtime' AND related>'0' AND delstatus IN (0,2) ORDER BY dateline");
$arr2 = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."pms WHERE msgfromid='$touid' AND msgtoid='$uid' AND dateline>='$starttime' AND dateline<'$endtime' AND related>'0' AND delstatus IN (0,1) ORDER BY dateline");
$arr = array_merge($arr1, $arr2);
uasort($arr, 'pm_datelinesort');
return $arr;
}
function get_pmnode_by_pmid($uid, $pmid, $type = 0) {
$arr = array();
if($type == 1) {
$arr = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."pms WHERE msgfromid='$uid' and folder='inbox' ORDER BY dateline DESC LIMIT 1");
} elseif($type == 2) {
$arr = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."pms WHERE msgtoid='$uid' and folder='inbox' ORDER BY dateline DESC LIMIT 1");
} else {
$arr = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."pms WHERE pmid='$pmid'");
}
return $arr;
}
function set_pm_status($uid, $touid, $pmid = 0, $status = 0) {
if(!$status) {
$oldstatus = 1;
$newstatus = 0;
} else {
$oldstatus = 0;
$newstatus = 1;
}
if($touid) {
$ids = is_array($touid) ? $this->base->implode($touid) : $touid;
$this->db->query("UPDATE ".UC_DBTABLEPRE."pms SET new='$newstatus' WHERE msgfromid IN ($ids) AND msgtoid='$uid' AND new='$oldstatus'", 'UNBUFFERED');
}
if($pmid) {
$ids = is_array($pmid) ? $this->base->implode($pmid) : $pmid;
$this->db->query("UPDATE ".UC_DBTABLEPRE."pms SET new='$newstatus' WHERE pmid IN ($ids) AND msgtoid='$uid' AND new='$oldstatus'", 'UNBUFFERED');
}
}
function get_pm_num($uid, $folder, $filter, $a) {
$folder = $folder;
$get_pm_num = 0;
$pm_num = isset($_COOKIE['uc_pmnum']) && ($pm_num = explode('|', $_COOKIE['uc_pmnum'])) && $pm_num[0] == $uid ? $pm_num : array(0,0,0,0);
switch($folder) {
case 'newbox':
$get_pm_num = $this->get_num($uid, 'newbox');
break;
case 'inbox':
if(!$filter && $a != 'view') {
$get_pm_num = $this->get_num($uid, 'inbox');
} else {
$get_pm_num = $pm_num[1];
}
break;
}
if($a == 'ls') {
$get_announcepm_num = $this->get_num($uid, 'inbox', 'announcepm');
$get_systempm_num = $this->get_num($uid, 'inbox', 'systempm');
$get_newinbox_num = $this->get_num($uid, 'inbox', 'newpm');
} else {
list(, $get_newinbox_num, $get_systempm_num, $get_announcepm_num) = $pm_num;
}
if($pm_num[2] != $get_newinbox_num || $pm_num[3] != $get_systempm_num || $pm_num[4] != $get_announcepm_num) {
header('P3P: CP="CURa ADMa DEVa PSAo PSDo OUR BUS UNI PUR INT DEM STA PRE COM NAV OTC NOI DSP COR"');
$this->base->setcookie('uc_pmnum', $uid.'|'.$get_pm_num.'|'.$get_systempm_num.'|'.$get_announcepm_num, 3600);
}
return array($get_pm_num, $get_newinbox_num, 0, $get_systempm_num, $get_announcepm_num);
}
function get_num($uid, $folder, $filter = '') {
switch($folder) {
case 'newbox':
$sql = "SELECT count(*) FROM ".UC_DBTABLEPRE."pms WHERE msgtoid='$uid' AND (related='0' AND msgfromid>'0' OR msgfromid='0') AND folder='inbox' AND new='1'";
$num = $this->db->result_first($sql);
return $num;
case 'inbox':
if($filter == 'newpm') {
$filteradd = "msgtoid='$uid' AND (related='0' AND msgfromid>'0' OR msgfromid='0') AND folder='inbox' AND new='1'";
} elseif($filter == 'systempm') {
$filteradd = "msgtoid='$uid' AND msgfromid='0' AND folder='inbox'";
} elseif($filter == 'privatepm') {
$filteradd = "msgtoid='$uid' AND related='0' AND msgfromid>'0' AND folder='inbox'";
} elseif($filter == 'announcepm') {
$filteradd = "msgtoid='0' AND folder='inbox'";
} else {
$filteradd = "msgtoid='$uid' AND related='0' AND folder='inbox'";
}
$sql = "SELECT count(*) FROM ".UC_DBTABLEPRE."pms WHERE $filteradd";
break;
case 'savebox':
$sql = "SELECT count(*) FROM ".UC_DBTABLEPRE."pms WHERE related='0' AND msgfromid='$uid' AND folder='outbox'";
break;
}
$num = $this->db->result_first($sql);
return $num;
}
function get_pm_list($uid, $pmnum, $folder, $filter, $page, $ppp = 10, $new = 0) {
$ppp = $ppp ? $ppp : 10;
if($folder != 'searchbox') {
$start_limit = $this->base->page_get_start($page, $ppp, $pmnum);
} else {
$start_limit = ($page - 1) * $ppp;
}
switch($folder) {
case 'newbox':
$folder = 'inbox';
$filter = 'newpm';
case 'inbox':
if($filter == 'newpm') {
$filteradd = "pm.msgtoid='$uid' AND (pm.related='0' AND pm.msgfromid>'0' OR pm.msgfromid='0') AND pm.folder='inbox' AND pm.new='1'";
} elseif($filter == 'systempm') {
$filteradd = "pm.msgtoid='$uid' AND pm.msgfromid='0' AND pm.folder='inbox'";
} elseif($filter == 'privatepm') {
$filteradd = "pm.msgtoid='$uid' AND pm.related='0' AND pm.msgfromid>'0' AND pm.folder='inbox'";
} elseif($filter == 'announcepm') {
$filteradd = "pm.msgtoid='0' AND pm.folder='inbox'";
} else {
$filteradd = "pm.msgtoid='$uid' AND pm.related='0' AND pm.folder='inbox'";
}
$sql = "SELECT pm.*,m.username as msgfrom FROM ".UC_DBTABLEPRE."pms pm
LEFT JOIN ".UC_DBTABLEPRE."members m ON pm.msgfromid = m.uid
WHERE $filteradd ORDER BY pm.dateline DESC LIMIT $start_limit, $ppp";
break;
case 'searchbox':
$filteradd = "msgtoid='$uid' AND folder='inbox' AND message LIKE '%".(str_replace('_', '\_', addcslashes($filter, '%_')))."%'";
$sql = "SELECT * FROM ".UC_DBTABLEPRE."pms
WHERE $filteradd ORDER BY dateline DESC LIMIT $start_limit, $ppp";
break;
case 'savebox':
$sql = "SELECT p.*, m.username AS msgto FROM ".UC_DBTABLEPRE."pms p
LEFT JOIN ".UC_DBTABLEPRE."members m ON m.uid=p.msgtoid
WHERE p.related='0' AND p.msgfromid='$uid' AND p.folder='outbox'
ORDER BY p.dateline DESC LIMIT $start_limit, $ppp";
break;
}
$query = $this->db->query($sql);
$array = array();
$today = $this->base->time - ($this->base->time + $this->base->settings['timeoffset']) % 86400;
while($data = $this->db->fetch_array($query)) {
$daterange = 5;
if($data['dateline'] >= $today) {
$daterange = 1;
} elseif($data['dateline'] >= $today - 86400) {
$daterange = 2;
} elseif($data['dateline'] >= $today - 172800) {
$daterange = 3;
} elseif($data['dateline'] >= $today - 604800) {
$daterange = 4;
}
$data['daterange'] = $daterange;
$data['daterangetext'] = !empty($this->lang['pm_daterange_'.$daterange]) ? $this->lang['pm_daterange_'.$daterange] : $daterange;
$data['dbdateline'] = $data['dateline'];
$data['datelinetime'] = $this->base->date($data['dateline'], 1);
$data['dateline'] = $this->base->date($data['dateline']);
$data['subject'] = $data['subject'] != '' ? htmlspecialchars($data['subject']) : $this->lang['pm_notitle'];
$data['newstatus'] = $data['new'];
$data['touid'] = $data['avataruid'] = $uid == $data['msgfromid'] ? $data['msgtoid'] : $data['msgfromid'];
$data['message'] = $this->removecode($data['message'], 80);
$array[] = $data;
}
if(in_array($folder, array('inbox', 'outbox'))) {
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."newpm WHERE uid='$uid'", 'UNBUFFERED');
}
return $array;
}
function sendpm($subject, $message, $msgfrom, $msgto, $pmid = 0, $savebox = 0, $related = 0) {
$_CACHE['badwords'] = $this->base->cache('badwords');
if($_CACHE['badwords']['findpattern']) {
$subject = @preg_replace($_CACHE['badwords']['findpattern'], $_CACHE['badwords']['replace'], $subject);
$message = @preg_replace($_CACHE['badwords']['findpattern'], $_CACHE['badwords']['replace'], $message);
}
if($savebox && $pmid) {
$this->db->query("UPDATE ".UC_DBTABLEPRE."pms SET msgtoid= '$msgto', subject='$subject', dateline='".$this->base->time."', related='$related', message='$message'
WHERE pmid='$pmid' AND folder='outbox' AND msgfromid='".$msgfrom['uid']."'");
} else {
if($msgfrom['uid'] && $msgfrom['uid'] == $msgto) {
return 0;
}
$box = $savebox ? 'outbox' : 'inbox';
$subject = trim($subject);
if($subject == '' && !$related) {
$subject = $this->removecode(trim($message), 75);
} else {
$subject = $this->base->cutstr(trim($subject), 75, ' ');
}
if($msgfrom['uid']) {
if($msgto) {
$sessionexist = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."pms WHERE msgfromid='$msgfrom[uid]' AND msgtoid='$msgto' AND folder='inbox' AND related='0'");
} else {
$sessionexist = 0;
}
if(!$sessionexist || $sessionexist > 1) {
if($sessionexist > 1) {
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."pms WHERE msgfromid='$msgfrom[uid]' AND msgtoid='$msgto' AND folder='inbox' AND related='0'");
}
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."pms (msgfrom,msgfromid,msgtoid,folder,new,subject,dateline,related,message,fromappid) VALUES
('".$msgfrom['username']."','".$msgfrom['uid']."','$msgto','$box','1','$subject','".$this->base->time."','0','$message','".$this->base->app['appid']."')");
$lastpmid = $this->db->insert_id();
} else {
$this->db->query("UPDATE ".UC_DBTABLEPRE."pms SET subject='$subject', message='$message', dateline='".$this->base->time."', new='1', fromappid='".$this->base->app['appid']."'
WHERE msgfromid='$msgfrom[uid]' AND msgtoid='$msgto' AND folder='inbox' AND related='0'");
}
if($msgto && !$savebox) {
$sessionexist = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."pms WHERE msgfromid='$msgto' AND msgtoid='$msgfrom[uid]' AND folder='inbox' AND related='0'");
if($msgfrom['uid'] && !$sessionexist) {
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."pms (msgfrom,msgfromid,msgtoid,folder,new,subject,dateline,related,message,fromappid) VALUES
('".$msgfrom['username']."','$msgto','".$msgfrom['uid']."','$box','0','$subject','".$this->base->time."','0','$message','0')");
}
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."pms (msgfrom,msgfromid,msgtoid,folder,new,subject,dateline,related,message,fromappid) VALUES
('".$msgfrom['username']."','".$msgfrom['uid']."','$msgto','$box','1','$subject','".$this->base->time."','".($msgfrom['uid'] ? 1 : 0)."','$message','".$this->base->app['appid']."')");
$lastpmid = $this->db->insert_id();
}
if($msgto) {
$this->db->query("REPLACE INTO ".UC_DBTABLEPRE."newpm (uid) VALUES ('$msgto')");
}
} else {
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."pms (msgfrom,msgfromid,msgtoid,folder,new,subject,dateline,related,message,fromappid) VALUES
('".$msgfrom['username']."','".$msgfrom['uid']."','$msgto','$box','1','$subject','".$this->base->time."','0','$message','".$this->base->app['appid']."')");
$lastpmid = $this->db->insert_id();
}
}
return $lastpmid;
}
function set_ignore($uid) {
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."newpm WHERE uid='$uid'");
}
function check_newpm($uid, $more) {
if($more < 2) {
$newpm = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."newpm WHERE uid='$uid'");
if($newpm) {
$newpm = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."pms WHERE (related='0' AND msgfromid>'0' OR msgfromid='0') AND msgtoid='$uid' AND folder='inbox' AND new='1'");
if($more) {
$newprvpm = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."pms WHERE related='0' AND msgfromid>'0' AND msgtoid='$uid' AND folder='inbox' AND new='1'");
return array('newpm' => $newpm, 'newprivatepm' => $newprvpm);
} else {
return $newpm;
}
}
} else {
$newpm = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."pms WHERE (related='0' AND msgfromid>'0' OR msgfromid='0') AND msgtoid='$uid' AND folder='inbox' AND new='1'");
$newprvpm = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."pms WHERE related='0' AND msgfromid>'0' AND msgtoid='$uid' AND folder='inbox' AND new='1'");
if($more == 2 || $more == 3) {
$annpm = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."pms WHERE related='0' AND msgtoid='0' AND folder='inbox'");
$syspm = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."pms WHERE related='0' AND msgtoid='$uid' AND folder='inbox' AND msgfromid='0'");
}
if($more == 2) {
return array('newpm' => $newpm, 'newprivatepm' => $newprvpm, 'announcepm' => $annpm, 'systempm' => $syspm);
} if($more == 4) {
return array('newpm' => $newpm, 'newprivatepm' => $newprvpm);
} else {
$pm = $this->db->fetch_first("SELECT pm.dateline,pm.msgfromid,m.username as msgfrom,pm.message FROM ".UC_DBTABLEPRE."pms pm LEFT JOIN ".UC_DBTABLEPRE."members m ON pm.msgfromid = m.uid WHERE (pm.related='0' OR pm.msgfromid='0') AND pm.msgtoid='$uid' AND pm.folder='inbox' ORDER BY pm.dateline DESC LIMIT 1");
return array('newpm' => $newpm, 'newprivatepm' => $newprvpm, 'announcepm' => $annpm, 'systempm' => $syspm, 'lastdate' => $pm['dateline'], 'lastmsgfromid' => $pm['msgfromid'], 'lastmsgfrom' => $pm['msgfrom'], 'lastmsg' => $pm['message']);
}
}
}
function deletepm($uid, $pmids) {
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."pms WHERE msgtoid='$uid' AND pmid IN (".$this->base->implode($pmids).")");
$delnum = $this->db->affected_rows();
return $delnum;
}
function deleteuidpm($uid, $ids, $folder = 'inbox', $filter = '') {
$delnum = 0;
if($folder == 'inbox' || $folder == 'newbox') {
if($filter == 'announcepm' && $this->base->user['admin']) {
$pmsadd = "pmid IN (".$this->base->implode($ids).")";
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."pms WHERE folder='inbox' AND msgtoid='0' AND $pmsadd", 'UNBUFFERED');
} elseif($ids) {
$delnum = 1;
$deluids = $this->base->implode($ids);
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."pms
WHERE msgfromid IN ($deluids) AND msgtoid='$uid' AND folder='inbox' AND related='0'", 'UNBUFFERED');
$this->db->query("UPDATE ".UC_DBTABLEPRE."pms SET delstatus=2
WHERE msgfromid IN ($deluids) AND msgtoid='$uid' AND folder='inbox' AND delstatus=0", 'UNBUFFERED');
$this->db->query("UPDATE ".UC_DBTABLEPRE."pms SET delstatus=1
WHERE msgtoid IN ($deluids) AND msgfromid='$uid' AND folder='inbox' AND delstatus=0", 'UNBUFFERED');
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."pms
WHERE msgfromid IN ($deluids) AND msgtoid='$uid' AND delstatus=1 AND folder='inbox'", 'UNBUFFERED');
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."pms
WHERE msgtoid IN ($deluids) AND msgfromid='$uid' AND delstatus=2 AND folder='inbox'", 'UNBUFFERED');
}
} elseif($folder == 'savebox') {
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."pms
WHERE pmid IN (".$this->base->implode($ids).") AND folder='outbox' AND msgfromid='$uid'", 'UNBUFFERED');
$delnum = 1;
}
return $delnum;
}
function get_blackls($uid, $uids = array()) {
if(!$uids) {
$blackls = $this->db->result_first("SELECT blacklist FROM ".UC_DBTABLEPRE."memberfields WHERE uid='$uid'");
} else {
$uids = $this->base->implode($uids);
$blackls = array();
$query = $this->db->query("SELECT uid, blacklist FROM ".UC_DBTABLEPRE."memberfields WHERE uid IN ($uids)");
while($data = $this->db->fetch_array($query)) {
$blackls[$data['uid']] = explode(',', $data['blacklist']);
}
}
return $blackls;
}
function set_blackls($uid, $blackls) {
$this->db->query("UPDATE ".UC_DBTABLEPRE."memberfields SET blacklist='$blackls' WHERE uid='$uid'");
return $this->db->affected_rows();
}
function update_blackls($uid, $username, $action = 1) {
$username = !is_array($username) ? array($username) : $username;
if($action == 1) {
if(!in_array('{ALL}', $username)) {
$usernames = $this->base->implode($username);
$query = $this->db->query("SELECT username FROM ".UC_DBTABLEPRE."members WHERE username IN ($usernames)");
$usernames = array();
while($data = $this->db->fetch_array($query)) {
$usernames[addslashes($data['username'])] = addslashes($data['username']);
}
if(!$usernames) {
return 0;
}
$blackls = addslashes($this->db->result_first("SELECT blacklist FROM ".UC_DBTABLEPRE."memberfields WHERE uid='$uid'"));
if($blackls) {
$list = explode(',', $blackls);
foreach($list as $k => $v) {
if(in_array($v, $usernames)) {
unset($usernames[$v]);
}
}
}
if(!$usernames) {
return 1;
}
$listnew = implode(',', $usernames);
$blackls .= $blackls !== '' ? ','.$listnew : $listnew;
} else {
$blackls = addslashes($this->db->result_first("SELECT blacklist FROM ".UC_DBTABLEPRE."memberfields WHERE uid='$uid'"));
$blackls .= ',{ALL}';
}
} else {
$blackls = addslashes($this->db->result_first("SELECT blacklist FROM ".UC_DBTABLEPRE."memberfields WHERE uid='$uid'"));
$list = $blackls = explode(',', $blackls);
foreach($list as $k => $v) {
if(in_array($v, $username)) {
unset($blackls[$k]);
}
}
$blackls = implode(',', $blackls);
}
$this->db->query("UPDATE ".UC_DBTABLEPRE."memberfields SET blacklist='$blackls' WHERE uid='$uid'");
return 1;
}
function removecode($str, $length) {
return trim($this->base->cutstr(preg_replace(array(
"/\[(email|code|quote|img)=?.*\].*?\[\/(email|code|quote|img)\]/siU",
"/\[\/?(b|i|url|u|color|size|font|align|list|indent|float)=?.*\]/siU",
"/\r\n/",
), '', $str), $length));
}
function count_pm_by_fromuid($uid, $timeoffset = 86400) {
$dateline = $this->base->time - intval($timeoffset);
return $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."pms WHERE msgfromid='$uid' AND dateline>'$dateline'");
}
function is_reply_pm($uid, $touids) {
$touid_str = implode("', '", $touids);
$pm_reply = $this->db->fetch_all("SELECT msgfromid, msgtoid FROM ".UC_DBTABLEPRE."pms WHERE msgfromid IN ('$touid_str') AND msgtoid='$uid' AND related=1", 'msgfromid');
foreach($touids as $val) {
if(!isset($pm_reply[$val])) {
return false;
}
}
return true;
}
}
function pm_datelinesort($a, $b) {
if ($a['dateline'] == $b['dateline']) {
return 0;
}
return ($a['dateline'] < $b['dateline']) ? -1 : 1;
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/pm.php
|
PHP
|
asf20
| 19,367
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: domain.php 847 2008-12-08 05:43:24Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class domainmodel {
var $db;
var $base;
function __construct(&$base) {
$this->domainmodel($base);
}
function domainmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function add_domain($domain, $ip) {
if($domain) {
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."domains SET domain='$domain', ip='$ip'");
}
return $this->db->insert_id();
}
function get_total_num() {
$data = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."domains");
return $data;
}
function get_list($page, $ppp, $totalnum) {
$start = $this->base->page_get_start($page, $ppp, $totalnum);
$data = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."domains LIMIT $start, $ppp");
return $data;
}
function delete_domain($arr) {
$domainids = $this->base->implode($arr);
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."domains WHERE id IN ($domainids)");
return $this->db->affected_rows();
}
function update_domain($domain, $ip, $id) {
$this->db->query("UPDATE ".UC_DBTABLEPRE."domains SET domain='$domain', ip='$ip' WHERE id='$id'");
return $this->db->affected_rows();
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/domain.php
|
PHP
|
asf20
| 1,389
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: note.php 915 2009-01-19 05:55:43Z monkey $
*/
!defined('IN_UC') && exit('Access Denied');
define('UC_NOTE_REPEAT', 5);
define('UC_NOTE_TIMEOUT', 15);
define('UC_NOTE_GC', 10000);
define('API_RETURN_FAILED', '-1');
class notemodel {
var $db;
var $base;
var $apps;
var $operations = array();
var $notetype = 'HTTP';
function __construct(&$base) {
$this->notemodel($base);
}
function notemodel(&$base) {
$this->base = $base;
$this->db = $base->db;
$this->apps = $this->base->cache('apps');
$this->operations = array(
'test'=>array('', 'action=test'),
'deleteuser'=>array('', 'action=deleteuser'),
'renameuser'=>array('', 'action=renameuser'),
'deletefriend'=>array('', 'action=deletefriend'),
'gettag'=>array('', 'action=gettag', 'tag', 'updatedata'),
'getcreditsettings'=>array('', 'action=getcreditsettings'),
'getcredit'=>array('', 'action=getcredit'),
'updatecreditsettings'=>array('', 'action=updatecreditsettings'),
'updateclient'=>array('', 'action=updateclient'),
'updatepw'=>array('', 'action=updatepw'),
'updatebadwords'=>array('', 'action=updatebadwords'),
'updatehosts'=>array('', 'action=updatehosts'),
'updateapps'=>array('', 'action=updateapps'),
'updatecredit'=>array('', 'action=updatecredit'),
);
}
function get_total_num($all = TRUE) {
$closedadd = $all ? '' : ' WHERE closed=\'0\'';
$data = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."notelist $closedadd");
return $data;
}
function get_list($page, $ppp, $totalnum, $all = TRUE) {
$start = $this->base->page_get_start($page, $ppp, $totalnum);
$closedadd = $all ? '' : ' WHERE closed=\'0\'';
$data = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."notelist $closedadd ORDER BY dateline DESC LIMIT $start, $ppp");
foreach((array)$data as $k => $v) {
$data[$k]['postdata2'] = addslashes(str_replace('"', '', $data[$k]['postdata']));
$data[$k]['getdata2'] = addslashes(str_replace('"', '', $v['getdata']));
$data[$k]['dateline'] = $v['dateline'] ? $this->base->date($data[$k]['dateline']) : '';
}
return $data;
}
function delete_note($ids) {
$ids = $this->base->implode($ids);
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."notelist WHERE noteid IN ($ids)");
return $this->db->affected_rows();
}
function add($operation, $getdata='', $postdata='', $appids=array(), $pri = 0) {
$extra = $varextra = '';
foreach((array)$this->apps as $appid => $app) {
$appid = $app['appid'];
if($appid == intval($appid)) {
if($appids && !in_array($appid, $appids)) {
$appadd[] = 'app'.$appid."='1'";
} else {
$varadd[] = "('noteexists{$appid}', '1')";
}
}
}
if($appadd) {
$extra = implode(',', $appadd);
$extra = $extra ? ', '.$extra : '';
}
if($varadd) {
$varextra = implode(', ', $varadd);
$varextra = $varextra ? ', '.$varextra : '';
}
$getdata = addslashes($getdata);
$postdata = addslashes($postdata);
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."notelist SET getdata='$getdata', operation='$operation', pri='$pri', postdata='$postdata'$extra");
$insert_id = $this->db->insert_id();
$insert_id && $this->db->query("REPLACE INTO ".UC_DBTABLEPRE."vars (name, value) VALUES ('noteexists', '1')$varextra");
return $insert_id;
}
function send() {
register_shutdown_function(array($this, '_send'));
}
function _send() {
$note = $this->_get_note();
if(empty($note)) {
$this->db->query("REPLACE INTO ".UC_DBTABLEPRE."vars SET name='noteexists', value='0'");
return NULL;
}
$closenote = TRUE;
foreach((array)$this->apps as $appid => $app) {
$appnotes = $note['app'.$appid];
if($app['recvnote'] && $appnotes != 1 && $appnotes > -UC_NOTE_REPEAT) {
$this->sendone($appid, 0, $note);
$closenote = FALSE;
break;
}
}
if($closenote) {
$this->db->query("UPDATE ".UC_DBTABLEPRE."notelist SET closed='1' WHERE noteid='$note[noteid]'");
}
$this->_gc();
}
function sendone($appid, $noteid = 0, $note = '') {
require_once UC_ROOT.'./lib/xml.class.php';
$return = FALSE;
$app = $this->apps[$appid];
if($noteid) {
$note = $this->_get_note_by_id($noteid);
}
$this->base->load('misc');
$apifilename = isset($app['apifilename']) && $app['apifilename'] ? $app['apifilename'] : 'uc.php';
if($app['extra']['apppath'] && @include $app['extra']['apppath'].'./api/'.$apifilename) {
$uc_note = new uc_note();
$method = $note['operation'];
if(is_string($method) && !empty($method)) {
parse_str($note['getdata'], $note['getdata']);
if(get_magic_quotes_gpc()) {
$note['getdata'] = $this->base->dstripslashes($note['getdata']);
}
$note['postdata'] = xml_unserialize($note['postdata']);
$response = $uc_note->$method($note['getdata'], $note['postdata']);
}
unset($uc_note);
} else {
$url = $this->get_url_code($note['operation'], $note['getdata'], $appid);
$note['postdata'] = str_replace(array("\n", "\r"), '', $note['postdata']);
$response = trim($_ENV['misc']->dfopen2($url, 0, $note['postdata'], '', 1, $app['ip'], UC_NOTE_TIMEOUT, TRUE));
}
$returnsucceed = $response != '' && ($response == 1 || is_array(xml_unserialize($response)));
$closedsqladd = $this->_close_note($note, $this->apps, $returnsucceed, $appid) ? ",closed='1'" : '';//
if($returnsucceed) {
if($this->operations[$note['operation']][2]) {
$this->base->load($this->operations[$note['operation']][2]);
$func = $this->operations[$note['operation']][3];
$_ENV[$this->operations[$note['operation']][2]]->$func($appid, $response);
}
$this->db->query("UPDATE ".UC_DBTABLEPRE."notelist SET app$appid='1', totalnum=totalnum+1, succeednum=succeednum+1, dateline='{$this->base->time}' $closedsqladd WHERE noteid='$note[noteid]'", 'SILENT');
$return = TRUE;
} else {
$this->db->query("UPDATE ".UC_DBTABLEPRE."notelist SET app$appid = app$appid-'1', totalnum=totalnum+1, dateline='{$this->base->time}' $closedsqladd WHERE noteid='$note[noteid]'", 'SILENT');
$return = FALSE;
}
return $return;
}
function _get_note() {
$data = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."notelist WHERE closed='0' ORDER BY pri DESC, noteid ASC LIMIT 1");
return $data;
}
function _gc() {
rand(0, UC_NOTE_GC) == 0 && $this->db->query("DELETE FROM ".UC_DBTABLEPRE."notelist WHERE closed='1'");
}
function _close_note($note, $apps, $returnsucceed, $appid) {
$note['app'.$appid] = $returnsucceed ? 1 : $note['app'.$appid] - 1;
$appcount = count($apps);
foreach($apps as $key => $app) {
$appstatus = $note['app'.$app['appid']];
if(!$app['recvnote'] || $appstatus == 1 || $appstatus <= -UC_NOTE_REPEAT) {
$appcount--;
}
}
if($appcount < 1) {
return TRUE;
//$closedsqladd = ",closed='1'";
}
}
function _get_note_by_id($noteid) {
$data = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."notelist WHERE noteid='$noteid'");
return $data;
}
function get_url_code($operation, $getdata, $appid) {
$app = $this->apps[$appid];
$authkey = $app['authkey'];
$url = $app['url'];
$apifilename = isset($app['apifilename']) && $app['apifilename'] ? $app['apifilename'] : 'uc.php';
$action = $this->operations[$operation][1];
$code = urlencode($this->base->authcode("$action&".($getdata ? "$getdata&" : '')."time=".$this->base->time, 'ENCODE', $authkey));
return $url."/api/$apifilename?code=$code";
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/note.php
|
PHP
|
asf20
| 7,748
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: user.php 879 2008-12-15 03:28:36Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class usermodel {
var $db;
var $base;
function __construct(&$base) {
$this->usermodel($base);
}
function usermodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function get_user_by_uid($uid) {
$arr = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."members WHERE uid='$uid'");
return $arr;
}
function get_user_by_username($username) {
$arr = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."members WHERE username='$username'");
return $arr;
}
function check_username($username) {
$guestexp = '\xA1\xA1|\xAC\xA3|^Guest|^\xD3\xCE\xBF\xCD|\xB9\x43\xAB\xC8';
$len = strlen($username);
if($len > 15 || $len < 3 || preg_match("/\s+|^c:\\con\\con|[%,\*\"\s\<\>\&]|$guestexp/is", $username)) {
return FALSE;
} else {
return TRUE;
}
}
function check_mergeuser($username) {
$data = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."mergemembers WHERE appid='".$this->base->app['appid']."' AND username='$username'");
return $data;
}
function check_usernamecensor($username) {
$_CACHE['badwords'] = $this->base->cache('badwords');
$censorusername = $this->base->get_setting('censorusername');
$censorusername = $censorusername['censorusername'];
$censorexp = '/^('.str_replace(array('\\*', "\r\n", ' '), array('.*', '|', ''), preg_quote(($censorusername = trim($censorusername)), '/')).')$/i';
$usernamereplaced = isset($_CACHE['badwords']['findpattern']) && !empty($_CACHE['badwords']['findpattern']) ? @preg_replace($_CACHE['badwords']['findpattern'], $_CACHE['badwords']['replace'], $username) : $username;
if(($usernamereplaced != $username) || ($censorusername && preg_match($censorexp, $username))) {
return FALSE;
} else {
return TRUE;
}
}
function check_usernameexists($username) {
$data = $this->db->result_first("SELECT username FROM ".UC_DBTABLEPRE."members WHERE username='$username'");
return $data;
}
function check_emailformat($email) {
return strlen($email) > 6 && preg_match("/^[\w\-\.]+@[\w\-\.]+(\.\w+)+$/", $email);
}
function check_emailaccess($email) {
$setting = $this->base->get_setting(array('accessemail', 'censoremail'));
$accessemail = $setting['accessemail'];
$censoremail = $setting['censoremail'];
$accessexp = '/('.str_replace("\r\n", '|', preg_quote(trim($accessemail), '/')).')$/i';
$censorexp = '/('.str_replace("\r\n", '|', preg_quote(trim($censoremail), '/')).')$/i';
if($accessemail || $censoremail) {
if(($accessemail && !preg_match($accessexp, $email)) || ($censoremail && preg_match($censorexp, $email))) {
return FALSE;
} else {
return TRUE;
}
} else {
return TRUE;
}
}
function check_emailexists($email, $username = '') {
$sqladd = $username !== '' ? "AND username<>'$username'" : '';
$email = $this->db->result_first("SELECT email FROM ".UC_DBTABLEPRE."members WHERE email='$email' $sqladd");
return $email;
}
function check_login($username, $password, &$user) {
$user = $this->get_user_by_username($username);
if(empty($user['username'])) {
return -1;
} elseif($user['password'] != md5(md5($password).$user['salt'])) {
return -2;
}
return $user['uid'];
}
function add_user($username, $password, $email, $uid = 0, $questionid = '', $answer = '') {
$salt = substr(uniqid(rand()), -6);
$password = md5(md5($password).$salt);
$sqladd = $uid ? "uid='".intval($uid)."'," : '';
$sqladd .= $questionid > 0 ? " secques='".$this->quescrypt($questionid, $answer)."'," : " secques='',";
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."members SET $sqladd username='$username', password='$password', email='$email', regip='".$this->base->onlineip."', regdate='".$this->base->time."', salt='$salt'");
$uid = $this->db->insert_id();
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."memberfields SET uid='$uid'");
return $uid;
}
function edit_user($username, $oldpw, $newpw, $email, $ignoreoldpw = 0, $questionid = '', $answer = '') {
$data = $this->db->fetch_first("SELECT username, uid, password, salt FROM ".UC_DBTABLEPRE."members WHERE username='$username'");
if($ignoreoldpw) {
$isprotected = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."protectedmembers WHERE uid = '$data[uid]'");
if($isprotected) {
return -8;
}
}
if(!$ignoreoldpw && $data['password'] != md5(md5($oldpw).$data['salt'])) {
return -1;
}
$sqladd = $newpw ? "password='".md5(md5($newpw).$data['salt'])."'" : '';
$sqladd .= $email ? ($sqladd ? ',' : '')." email='$email'" : '';
if($questionid !== '') {
if($questionid > 0) {
$sqladd .= ($sqladd ? ',' : '')." secques='".$this->quescrypt($questionid, $answer)."'";
} else {
$sqladd .= ($sqladd ? ',' : '')." secques=''";
}
}
if($sqladd || $emailadd) {
$this->db->query("UPDATE ".UC_DBTABLEPRE."members SET $sqladd WHERE username='$username'");
return $this->db->affected_rows();
} else {
return -7;
}
}
function delete_user($uidsarr) {
$uidsarr = (array)$uidsarr;
$uids = $this->base->implode($uidsarr);
$arr = $this->db->fetch_all("SELECT uid FROM ".UC_DBTABLEPRE."protectedmembers WHERE uid IN ($uids)");
$puids = array();
foreach((array)$arr as $member) {
$puids[] = $member['uid'];
}
$uids = $this->base->implode(array_diff($uidsarr, $puids));
if($uids) {
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."members WHERE uid IN($uids)");
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."memberfields WHERE uid IN($uids)");
$this->delete_useravatar($uidsarr);
$this->base->load('note');
$_ENV['note']->add('deleteuser', "ids=$uids");
return $this->db->affected_rows();
} else {
return 0;
}
}
function delete_useravatar($uidsarr) {
$uidsarr = (array)$uidsarr;
foreach((array)$uidsarr as $uid) {
file_exists($avatar_file = UC_DATADIR.'./avatar/'.$this->base->get_avatar($uid, 'big', 'real')) && unlink($avatar_file);
file_exists($avatar_file = UC_DATADIR.'./avatar/'.$this->base->get_avatar($uid, 'middle', 'real')) && unlink($avatar_file);
file_exists($avatar_file = UC_DATADIR.'./avatar/'.$this->base->get_avatar($uid, 'small', 'real')) && unlink($avatar_file);
file_exists($avatar_file = UC_DATADIR.'./avatar/'.$this->base->get_avatar($uid, 'big')) && unlink($avatar_file);
file_exists($avatar_file = UC_DATADIR.'./avatar/'.$this->base->get_avatar($uid, 'middle')) && unlink($avatar_file);
file_exists($avatar_file = UC_DATADIR.'./avatar/'.$this->base->get_avatar($uid, 'small')) && unlink($avatar_file);
}
}
function get_total_num($sqladd = '') {
$data = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."members $sqladd");
return $data;
}
function get_list($page, $ppp, $totalnum, $sqladd) {
$start = $this->base->page_get_start($page, $ppp, $totalnum);
$data = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."members $sqladd LIMIT $start, $ppp");
return $data;
}
function name2id($usernamesarr) {
$usernamesarr = daddslashes($usernamesarr, 1, TRUE);
$usernames = $this->base->implode($usernamesarr);
$query = $this->db->query("SELECT uid FROM ".UC_DBTABLEPRE."members WHERE username IN($usernames)");
$arr = array();
while($user = $this->db->fetch_array($query)) {
$arr[] = $user['uid'];
}
return $arr;
}
function quescrypt($questionid, $answer) {
return $questionid > 0 && $answer != '' ? substr(md5($answer.md5($questionid)), 16, 8) : '';
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/user.php
|
PHP
|
asf20
| 7,843
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: friend.php 772 2008-11-26 08:44:48Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class friendmodel {
var $db;
var $base;
function __construct(&$base) {
$this->friendmodel($base);
}
function friendmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function add($uid, $friendid, $comment='') {
$direction = $this->db->result_first("SELECT direction FROM ".UC_DBTABLEPRE."friends WHERE uid='$friendid' AND friendid='$uid' LIMIT 1");
if($direction == 1) {
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."friends SET uid='$uid', friendid='$friendid', comment='$comment', direction='3'", 'SILENT');
$this->db->query("UPDATE ".UC_DBTABLEPRE."friends SET direction='3' WHERE uid='$friendid' AND friendid='$uid'");
return 1;
} elseif($direction == 2) {
return 1;
} elseif($direction == 3) {
return -1;
} else {
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."friends SET uid='$uid', friendid='$friendid', comment='$comment', direction='1'", 'SILENT');
return $this->db->insert_id();
}
}
function delete($uid, $friendids) {
$friendids = $this->base->implode($friendids);
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."friends WHERE uid='$uid' AND friendid IN ($friendids)");
$affectedrows = $this->db->affected_rows();
if($affectedrows > 0) {
$this->db->query("UPDATE ".UC_DBTABLEPRE."friends SET direction=1 WHERE uid IN ($friendids) AND friendid='$uid' AND direction='3'");
}
return $affectedrows;
}
function get_totalnum_by_uid($uid, $direction = 0) {
$sqladd = '';
if($direction == 0) {
$sqladd = "uid='$uid'";
} elseif($direction == 1) {
$sqladd = "uid='$uid' AND direction='1'";
} elseif($direction == 2) {
$sqladd = "friendid='$uid' AND direction='1'";
} elseif($direction == 3) {
$sqladd = "uid='$uid' AND direction='3'";
}
$totalnum = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."friends WHERE $sqladd");
return $totalnum;
}
function get_list($uid, $page, $pagesize, $totalnum, $direction = 0) {
$start = $this->base->page_get_start($page, $pagesize, $totalnum);
$sqladd = '';
if($direction == 0) {
$sqladd = "f.uid='$uid'";
} elseif($direction == 1) {
$sqladd = "f.uid='$uid' AND f.direction='1'";
} elseif($direction == 2) {
$sqladd = "f.friendid='$uid' AND f.direction='1'";
} elseif($direction == 3) {
$sqladd = "f.uid='$uid' AND f.direction='3'";
}
if($sqladd) {
$data = $this->db->fetch_all("SELECT f.*, m.username FROM ".UC_DBTABLEPRE."friends f LEFT JOIN ".UC_DBTABLEPRE."members m ON f.friendid=m.uid WHERE $sqladd LIMIT $start, $pagesize");
return $data;
} else {
return array();
}
}
function is_friend($uid, $friendids, $direction = 0) {
$friendid_str = implode("', '", $friendids);
$sqladd = '';
if($direction == 0) {
$sqladd = "uid='$uid'";
} elseif($direction == 1) {
$sqladd = "uid='$uid' AND friendid IN ('$friendid_str') AND direction='1'";
} elseif($direction == 2) {
$sqladd = "friendid='$uid' AND uid IN ('$friendid_str') AND direction='1'";
} elseif($direction == 3) {
$sqladd = "uid='$uid' AND friendid IN ('$friendid_str') AND direction='3'";
}
if($this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."friends WHERE $sqladd") == count($friendids)) {
return true;
} else {
return false;
}
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/friend.php
|
PHP
|
asf20
| 3,574
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: admin.php 753 2008-11-14 06:48:25Z cnteacher $
*/
!defined('IN_UC') && exit('Access Denied');
class adminbase extends base {
var $cookie_status = 1;
function __construct() {
$this->adminbase();
}
function adminbase() {
parent::__construct();
$this->cookie_status = isset($_COOKIE['sid']) ? 1 : 0;
$sid = $this->cookie_status ? getgpc('sid', 'C') : rawurlencode(getgpc('sid', 'R'));
$this->view->sid = $sid;
$this->view->assign('sid', $this->view->sid);
$this->view->assign('iframe', getgpc('iframe'));
$a = getgpc('a');
if(getgpc('m') !='user' && $a != 'login' && $a != 'logout') {
$this->check_priv();
}
}
function check_priv() {
$username = $this->sid_decode($this->view->sid);
if(empty($username)) {
header('Location: '.UC_API.'/admin.php?m=user&a=login&iframe='.getgpc('iframe', 'G').($this->cookie_status ? '' : '&sid='.$this->view->sid));
exit;
} else {
$this->user['isfounder'] = $username == 'UCenterAdministrator' ? 1 : 0;
if(!$this->user['isfounder']) {
$admin = $this->db->fetch_first("SELECT a.*, m.* FROM ".UC_DBTABLEPRE."admins a LEFT JOIN ".UC_DBTABLEPRE."members m USING(uid) WHERE a.username='$username'");
if(empty($admin)) {
header('Location: '.UC_API.'/admin.php?m=user&a=login&iframe='.getgpc('iframe', 'G').($this->cookie_status ? '' : '&sid='.$this->view->sid));
exit;
} else {
$this->user = $admin;
$this->user['username'] = $username;
$this->user['admin'] = 1;
$this->view->sid = $this->sid_encode($username);
$this->setcookie('sid', $this->view->sid, 86400);
}
} else {
$this->user['username'] = 'UCenterAdministrator';
$this->user['admin'] = 1;
}
$this->view->assign('user', $this->user);
}
}
function is_founder($username) {
return $this->user['isfounder'];
}
function writelog($action, $extra = '') {
$log = htmlspecialchars($this->user['username']."\t".$this->onlineip."\t".$this->time."\t$action\t$extra");
$logfile = UC_ROOT.'./data/logs/'.gmdate('Ym', $this->time).'.php';
if(@filesize($logfile) > 2048000) {
PHP_VERSION < '4.2.0' && mt_srand((double)microtime() * 1000000);
$hash = '';
$chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz';
for($i = 0; $i < 4; $i++) {
$hash .= $chars[mt_rand(0, 61)];
}
@rename($logfile, UC_ROOT.'./data/logs/'.gmdate('Ym', $this->time).'_'.$hash.'.php');
}
if($fp = @fopen($logfile, 'a')) {
@flock($fp, 2);
@fwrite($fp, "<?PHP exit;?>\t".str_replace(array('<?', '?>'), '', $log)."\n");
@fclose($fp);
}
}
function fetch_plugins() {
$plugindir = UC_ROOT.'./plugin';
$d = opendir($plugindir);
while($f = readdir($d)) {
if($f != '.' && $f != '..' && is_dir($plugindir.'/'.$f)) {
$pluginxml = $plugindir.$f.'/plugin.xml';
$plugins[] = xml_unserialize($pluginxml);
}
}
}
function _call($a, $arg) {
if(method_exists($this, $a) && $a{0} != '_') {
$this->$a();
} else {
exit('Method does not exists');
}
}
function sid_encode($username) {
$ip = $this->onlineip;
$agent = $_SERVER['HTTP_USER_AGENT'];
$authkey = md5($ip.$agent.UC_KEY);
$check = substr(md5($ip.$agent), 0, 8);
return rawurlencode($this->authcode("$username\t$check", 'ENCODE', $authkey, 1800));
}
function sid_decode($sid) {
$ip = $this->onlineip;
$agent = $_SERVER['HTTP_USER_AGENT'];
$authkey = md5($ip.$agent.UC_KEY);
$s = $this->authcode(rawurldecode($sid), 'DECODE', $authkey, 1800);
if(empty($s)) {
return FALSE;
}
@list($username, $check) = explode("\t", $s);
if($check == substr(md5($ip.$agent), 0, 8)) {
return $username;
} else {
return FALSE;
}
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/admin.php
|
PHP
|
asf20
| 3,911
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: user.php 753 2008-11-14 06:48:25Z cnteacher $
*/
!defined('IN_UC') && exit('Access Denied');
class versionmodel {
var $db;
var $base;
function __construct(&$base) {
$this->versionmodel($base);
}
function versionmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function check() {
$data = $this->db->result_first("SELECT v FROM ".UC_DBTABLEPRE."settings WHERE k='version'");
return $data;
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/version.php
|
PHP
|
asf20
| 575
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: app.php 844 2008-12-08 02:06:04Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class appmodel {
var $db;
var $base;
function __construct(&$base) {
$this->appmodel($base);
}
function appmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function get_apps($col = '*', $where = '') {
$arr = $this->db->fetch_all("SELECT $col FROM ".UC_DBTABLEPRE."applications".($where ? ' WHERE '.$where : ''), 'appid');
foreach($arr as $k => $v) {
isset($v['extra']) && !empty($v['extra']) && $v['extra'] = unserialize($v['extra']);
if($tmp = $this->base->authcode($v['authkey'], 'DECODE', UC_MYKEY)) {
$v['authkey'] = $tmp;
}
$arr[$k] = $v;
}
return $arr;
}
function get_app_by_appid($appid, $includecert = FALSE) {
$appid = intval($appid);
$arr = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."applications WHERE appid='$appid'");
$arr['extra'] = unserialize($arr['extra']);
if($tmp = $this->base->authcode($arr['authkey'], 'DECODE', UC_MYKEY)) {
$arr['authkey'] = $tmp;
}
if($includecert) {
$this->load('plugin');
$certfile = $_ENV['plugin']->cert_get_file();
$appdata = $_ENV['plugin']->cert_dump_decode($certfile);
if(is_array($appdata[$appid])) {
$arr += $appdata[$appid];
}
}
return $arr;
}
function delete_apps($appids) {
$appids = $this->base->implode($appids);
$this->db->query("DELETE FROM ".UC_DBTABLEPRE."applications WHERE appid IN ($appids)");
return $this->db->affected_rows();
}
/* function update_app($appid, $name, $url, $authkey, $charset, $dbcharset) {
if($name && $appid) {
$this->db->query("UPDATE ".UC_DBTABLEPRE."applications SET name='$name', url='$url', authkey='$authkey', ip='$ip', synlogin='$synlogin', charset='$charset', dbcharset='$dbcharset' WHERE appid='$appid'");
return $this->db->affected_rows();
}
return 0;
}*/
//private
function alter_app_table($appid, $operation = 'ADD') {
if($operation == 'ADD') {
$this->db->query("ALTER TABLE ".UC_DBTABLEPRE."notelist ADD COLUMN app$appid tinyint NOT NULL", 'SILENT');
} else {
$this->db->query("ALTER TABLE ".UC_DBTABLEPRE."notelist DROP COLUMN app$appid", 'SILENT');
}
}
function test_api($url, $ip = '') {
$this->base->load('misc');
if(!$ip) {
$ip = $_ENV['misc']->get_host_by_url($url);
}
if($ip < 0) {
return FALSE;
}
return $_ENV['misc']->dfopen($url, 0, '', '', 1, $ip);
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/app.php
|
PHP
|
asf20
| 2,628
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: feed.php 845 2008-12-08 05:36:51Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class feedmodel {
var $db;
var $base;
var $apps;
var $operations = array();
function __construct(&$base) {
$this->feedmodel($base);
}
function feedmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function get_total_num() {
$data = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."feeds");
return $data;
}
function get_list($page, $ppp, $totalnum) {
$start = $this->base->page_get_start($page, $ppp, $totalnum);
$data = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."feeds LIMIT $start, $ppp");
foreach((array)$data as $k=> $v) {
$searchs = $replaces = array();
$title_data = $_ENV['misc']->string2array($v['title_data']);
foreach(array_keys($title_data) as $key) {
$searchs[] = '{'.$key.'}';
$replaces[] = $title_data[$key];
}
$searchs[] = '{actor}';
$replaces[] = $v['username'];
$searchs[] = '{app}';
$replaces[] = $this->base->apps[$v['appid']]['name'];
$data[$k]['title_template'] = str_replace($searchs, $replaces, $data[$k]['title_template']);
$data[$k]['dateline'] = $v['dateline'] ? $this->base->date($data[$k]['dateline']) : '';
}
return $data;
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/feed.php
|
PHP
|
asf20
| 1,433
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: misc.php 845 2008-12-08 05:36:51Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
define('UC_ARRAY_SEP_1', 'UC_ARRAY_SEP_1');
define('UC_ARRAY_SEP_2', 'UC_ARRAY_SEP_2');
class miscmodel {
var $db;
var $base;
function __construct(&$base) {
$this->miscmodel($base);
}
function miscmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function get_host_by_url($url) {
$m = parse_url($url);
if(!$m['host']) {
return -1;
}
if(!preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/", $m['host'])) {
$ip = @gethostbyname($m['host']);
if(!$ip || $ip == $m['host']) {
return -2;
}
return $ip;
} else {
return $m['host'];
}
}
function check_url($url) {
return preg_match("/(https?){1}:\/\/|www\.([^\[\"']+?)?/i", $url);
}
function check_ip($url) {
return preg_match("/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/", $url);
}
function dfopen2($url, $limit = 0, $post = '', $cookie = '', $bysocket = FALSE, $ip = '', $timeout = 15, $block = TRUE, $encodetype = 'URLENCODE') {
$__times__ = isset($_GET['__times__']) ? intval($_GET['__times__']) + 1 : 1;
if($__times__ > 2) {
return '';
}
$url .= (strpos($url, '?') === FALSE ? '?' : '&')."__times__=$__times__";
return $this->dfopen($url, $limit, $post, $cookie, $bysocket, $ip, $timeout, $block, $encodetype);
}
function dfopen($url, $limit = 0, $post = '', $cookie = '', $bysocket = FALSE , $ip = '', $timeout = 15, $block = TRUE, $encodetype = 'URLENCODE') {
//error_log("[uc_server]\r\nurl: $url\r\npost: $post\r\n\r\n", 3, 'c:/log/php_fopen.txt');
$return = '';
$matches = parse_url($url);
$host = $matches['host'];
$path = $matches['path'] ? $matches['path'].($matches['query'] ? '?'.$matches['query'] : '') : '/';
$port = !empty($matches['port']) ? $matches['port'] : 80;
if($post) {
$out = "POST $path HTTP/1.0\r\n";
$out .= "Accept: */*\r\n";
//$out .= "Referer: $boardurl\r\n";
$out .= "Accept-Language: zh-cn\r\n";
$boundary = $encodetype == 'URLENCODE' ? '' : ';'.substr($post, 0, trim(strpos($post, "\n")));
$out .= $encodetype == 'URLENCODE' ? "Content-Type: application/x-www-form-urlencoded\r\n" : "Content-Type: multipart/form-data$boundary\r\n";
$out .= "User-Agent: $_SERVER[HTTP_USER_AGENT]\r\n";
$out .= "Host: $host\r\n";
$out .= 'Content-Length: '.strlen($post)."\r\n";
$out .= "Connection: Close\r\n";
$out .= "Cache-Control: no-cache\r\n";
$out .= "Cookie: $cookie\r\n\r\n";
$out .= $post;
} else {
$out = "GET $path HTTP/1.0\r\n";
$out .= "Accept: */*\r\n";
//$out .= "Referer: $boardurl\r\n";
$out .= "Accept-Language: zh-cn\r\n";
$out .= "User-Agent: $_SERVER[HTTP_USER_AGENT]\r\n";
$out .= "Host: $host\r\n";
$out .= "Connection: Close\r\n";
$out .= "Cookie: $cookie\r\n\r\n";
}
$fp = @fsockopen(($ip ? $ip : $host), $port, $errno, $errstr, $timeout);
if(!$fp) {
return '';
} else {
stream_set_blocking($fp, $block);
stream_set_timeout($fp, $timeout);
@fwrite($fp, $out);
$status = stream_get_meta_data($fp);
if(!$status['timed_out']) {
while (!feof($fp)) {
if(($header = @fgets($fp)) && ($header == "\r\n" || $header == "\n")) {
break;
}
}
$stop = false;
while(!feof($fp) && !$stop) {
$data = fread($fp, ($limit == 0 || $limit > 8192 ? 8192 : $limit));
$return .= $data;
if($limit) {
$limit -= strlen($data);
$stop = $limit <= 0;
}
}
}
@fclose($fp);
return $return;
}
}
function array2string($arr) {
$s = $sep = '';
if($arr && is_array($arr)) {
foreach($arr as $k => $v) {
$s .= $sep.$k.UC_ARRAY_SEP_1.$v;
$sep = UC_ARRAY_SEP_2;
}
}
return $s;
}
function string2array($s) {
$arr = explode(UC_ARRAY_SEP_2, $s);
$arr2 = array();
foreach($arr as $k => $v) {
list($key, $val) = explode(UC_ARRAY_SEP_1, $v);
$arr2[$key] = $val;
}
return $arr2;
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/misc.php
|
PHP
|
asf20
| 4,198
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: tag.php 753 2008-11-14 06:48:25Z cnteacher $
*/
!defined('IN_UC') && exit('Access Denied');
class tagmodel {
var $db;
var $base;
function __construct(&$base) {
$this->tagmodel($base);
}
function tagmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function get_tag_by_name($tagname) {
$arr = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."tags WHERE tagname='$tagname'");
return $arr;
}
function get_template($appid) {
$result = $this->db->result_first("SELECT tagtemplates FROM ".UC_DBTABLEPRE."applications WHERE appid='$appid'");
return $result;
}
function updatedata($appid, $data) {
$appid = intval($appid);
include_once UC_ROOT.'lib/xml.class.php';
$data = xml_unserialize($data);
$this->base->load('app');
$data[0] = addslashes($data[0]);
$datanew = array();
if(is_array($data[1])) {
foreach($data[1] as $r) {
$datanew[] = $_ENV['misc']->array2string($r);
}
}
$tmp = $_ENV['app']->get_apps('type', "appid='$appid'");
$datanew = addslashes($tmp[0]['type']."\t".implode("\t", $datanew));
if(!empty($data[0])) {
$return = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."tags WHERE tagname='$data[0]' AND appid='$appid'");
if($return) {
$this->db->query("UPDATE ".UC_DBTABLEPRE."tags SET data='$datanew', expiration='".$this->base->time."' WHERE tagname='$data[0]' AND appid='$appid'");
} else {
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."tags (tagname, appid, data, expiration) VALUES ('$data[0]', '$appid', '$datanew', '".$this->base->time."')");
}
}
}
function formatcache($appid, $tagname) {
$return = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."tags WHERE tagname='$tagname' AND appid='$appid'");
if($return) {
$this->db->query("UPDATE ".UC_DBTABLEPRE."tags SET expiration='0' WHERE tagname='$tagname' AND appid='$appid'");
} else {
$this->db->query("INSERT INTO ".UC_DBTABLEPRE."tags (tagname, appid, expiration) VALUES ('$tagname', '$appid', '0')");
}
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/tag.php
|
PHP
|
asf20
| 2,212
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: cron.php 847 2008-12-08 05:43:24Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class cronmodel {
var $db;
var $base;
function __construct(&$base) {
$this->cronmodel($base);
}
function cronmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function note_delete_user() {
//
}
function note_delete_pm() {
//
$data = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."badwords");
return $data;
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/cron.php
|
PHP
|
asf20
| 617
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: cache.php 845 2008-12-08 05:36:51Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
if(!function_exists('file_put_contents')) {
function file_put_contents($filename, $s) {
$fp = @fopen($filename, 'w');
@fwrite($fp, $s);
@fclose($fp);
}
}
class cachemodel {
var $db;
var $base;
var $map;
function __construct(&$base) {
$this->cachemodel($base);
}
function cachemodel(&$base) {
$this->base = $base;
$this->db = $base->db;
$this->map = array(
'settings' => array('settings'),
'badwords' => array('badwords'),
'plugins' => array('plugins'),
'apps' => array('apps'),
);
}
//public
function updatedata($cachefile = '') {
if($cachefile) {
foreach((array)$this->map[$cachefile] as $modules) {
$s = "<?php\r\n";
foreach((array)$modules as $m) {
$method = "_get_$m";
$s .= '$_CACHE[\''.$m.'\'] = '.var_export($this->$method(), TRUE).";\r\n";
}
$s .= "\r\n?>";
@file_put_contents(UC_DATADIR."./cache/$cachefile.php", $s);
}
} else {
foreach((array)$this->map as $file => $modules) {
$s = "<?php\r\n";
foreach($modules as $m) {
$method = "_get_$m";
$s .= '$_CACHE[\''.$m.'\'] = '.var_export($this->$method(), TRUE).";\r\n";
}
$s .= "\r\n?>";
@file_put_contents(UC_DATADIR."./cache/$file.php", $s);
}
}
}
function updatetpl() {
$tpl = dir(UC_DATADIR.'view');
while($entry = $tpl->read()) {
if(preg_match("/\.php$/", $entry)) {
@unlink(UC_DATADIR.'view/'.$entry);
}
}
$tpl->close();
}
//private
function _get_badwords() {
$data = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."badwords");
$return = array();
if(is_array($data)) {
foreach($data as $k => $v) {
$return['findpattern'][$k] = $v['findpattern'];
$return['replace'][$k] = $v['replacement'];
}
}
return $return;
}
//private
function _get_apps() {
$this->base->load('app');
$apps = $_ENV['app']->get_apps();
$apps2 = array();
if(is_array($apps)) {
foreach($apps as $v) {
$apps2[$v['appid']] = $v;
}
}
return $apps2;
}
//private
function _get_settings() {
return $this->base->get_setting();
}
//private
function _get_plugins() {
$this->base->load('plugin');
return $_ENV['plugin']->get_plugins();
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/cache.php
|
PHP
|
asf20
| 2,504
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: plugin.php 845 2008-12-08 05:36:51Z zhaoxiongfei $
*/
!defined('IN_UC') && exit('Access Denied');
class pluginmodel {
var $db;
var $base;
function __construct(&$base) {
$this->pluginmodel($base);
}
function pluginmodel(&$base) {
$this->base = $base;
$this->db = $base->db;
}
function get_plugins() {
include_once UC_ROOT.'./lib/xml.class.php';
$arr = array();
$dir = UC_ROOT.'./plugin';
$d = opendir($dir);
while($f = readdir($d)) {
if($f != '.' && $f != '..' && $f != '.svn' && is_dir($dir.'/'.$f)) {
$s = file_get_contents($dir.'/'.$f.'/plugin.xml');
$arr1 = xml_unserialize($s);
$arr1['dir'] = $f;
unset($arr1['lang']);
$arr[] = $arr1;
}
}
$arr = $this->orderby_tabindex($arr);
return $arr;
}
function get_plugin($pluginname) {
$f = file_get_contents(UC_ROOT."./plugin/$pluginname/plugin.xml");
include_once UC_ROOT.'./lib/xml.class.php';
return xml_unserialize($f);
}
function get_plugin_by_name($pluginname) {
$dir = UC_ROOT.'./plugin';
$s = file_get_contents($dir.'/'.$pluginname.'/plugin.xml');
return xml_unserialize($s, TRUE);
}
function orderby_tabindex($arr1) {
$arr2 = array();
$t = array();
foreach($arr1 as $k => $v) {
$t[$k] = $v['tabindex'];
}
asort($t);
$arr3 = array();
foreach($t as $k => $v) {
$arr3[$k] = $arr1[$k];
}
return $arr3;
}
function cert_get_file() {
return UC_ROOT.'./data/tmp/ucenter_'.substr(md5(UC_KEY), 0, 16).'.cert';
}
function cert_dump_encode($arr, $life = 0) {
$s = "# UCenter Applications Setting Dump\n".
"# Version: UCenter ".UC_SERVER_VERSION."\n".
"# Time: ".$this->time."\n".
"# Expires: ".($this->time + $life)."\n".
"# From: ".UC_API."\n".
"#\n".
"# This file was BASE64 encoded\n".
"#\n".
"# UCenter Community: http://www.discuz.net\n".
"# Please visit our website for latest news about UCenter\n".
"# --------------------------------------------------------\n\n\n".
wordwrap(base64_encode(serialize($arr)), 50, "\n", 1);
return $s;
}
function cert_dump_decode($certfile) {
$s = @file_get_contents($certfile);
if(empty($s)) {
return array();
}
preg_match("/# Expires: (.*?)\n/", $s, $m);
if(empty($m[1]) || $m[1] < $this->time) {
unlink($certfile);
return array();
}
$s = preg_replace("/(#.*\s+)*/", '', $s);
$arr = daddslashes(unserialize(base64_decode($s)), 1);
return $arr;
}
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/model/plugin.php
|
PHP
|
asf20
| 2,621
|
<?php
/*
[UCenter] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: avatar.php 910 2008-12-30 03:51:44Z monkey $
*/
error_reporting(0);
define('UC_API', strtolower(($_SERVER['HTTPS'] == 'on' ? 'https' : 'http').'://'.$_SERVER['HTTP_HOST'].substr($_SERVER['PHP_SELF'], 0, strrpos($_SERVER['PHP_SELF'], '/'))));
$uid = isset($_GET['uid']) ? $_GET['uid'] : 0;
$size = isset($_GET['size']) ? $_GET['size'] : '';
$random = isset($_GET['random']) ? $_GET['random'] : '';
$type = isset($_GET['type']) ? $_GET['type'] : '';
$check = isset($_GET['check_file_exists']) ? $_GET['check_file_exists'] : '';
$avatar = './data/avatar/'.get_avatar($uid, $size, $type);
if(file_exists(dirname(__FILE__).'/'.$avatar)) {
if($check) {
echo 1;
exit;
}
$random = !empty($random) ? rand(1000, 9999) : '';
$avatar_url = empty($random) ? $avatar : $avatar.'?random='.$random;
} else {
if($check) {
echo 0;
exit;
}
$size = in_array($size, array('big', 'middle', 'small')) ? $size : 'middle';
$avatar_url = 'images/noavatar_'.$size.'.gif';
}
if(empty($random)) {
header("HTTP/1.1 301 Moved Permanently");
header("Last-Modified:".date('r'));
header("Expires: ".date('r', time() + 86400));
}
header('Location: '.UC_API.'/'.$avatar_url);
exit;
function get_avatar($uid, $size = 'middle', $type = '') {
$size = in_array($size, array('big', 'middle', 'small')) ? $size : 'middle';
$uid = abs(intval($uid));
$uid = sprintf("%09d", $uid);
$dir1 = substr($uid, 0, 3);
$dir2 = substr($uid, 3, 2);
$dir3 = substr($uid, 5, 2);
$typeadd = $type == 'real' ? '_real' : '';
return $dir1.'/'.$dir2.'/'.$dir3.'/'.substr($uid, -2).$typeadd."_avatar_$size.jpg";
}
?>
|
zyyhong
|
trunk/jiaju001/newbbs/ucenter/avatar.php
|
PHP
|
asf20
| 1,756
|
<?php
/*
[Discuz!] (C)2001-2009 Comsenz Inc.
This is NOT a freeware, use is subject to license terms
$Id: search.php 16688 2008-11-14 06:41:07Z cnteacher $
*/
define('NOROBOT', TRUE);
define('CURSCRIPT', 'search');
require_once './include/common.inc.php';
require_once DISCUZ_ROOT.'./include/forum.func.php';
require_once DISCUZ_ROOT.'./forumdata/cache/cache_forums.php';
require_once DISCUZ_ROOT.'./forumdata/cache/cache_icons.php';
$discuz_action = 111;
$cachelife_time = 300; // Life span for cache of searching in specified range of time
$cachelife_text = 3600; // Life span for cache of text searching
$sdb = loadmultiserver('search');
$srchtype = empty($srchtype) ? '' : trim($srchtype);
$checkarray = array('posts' => '', 'trade' => '', 'qihoo' => '', 'threadsort' => '');
$searchid = isset($searchid) ? intval($searchid) : 0;
if($srchtype == 'trade' || $srchtype == 'threadsort' || $srchtype == 'qihoo') {
$checkarray[$srchtype] = 'checked';
} elseif($srchtype == 'title' || $srchtype == 'fulltext') {
$checkarray['posts'] = 'checked';
} else {
$srchtype = '';
$checkarray['posts'] = 'checked';
}
$keyword = isset($srchtxt) ? htmlspecialchars(trim($srchtxt)) : '';
$threadsorts = '';
if($srchtype == 'threadsort') {
$query = $db->query("SELECT * FROM {$tablepre}threadtypes WHERE special='1' ORDER BY displayorder");
while($type = $db->fetch_array($query)) {
$threadsorts .= '<option value="'.$type['typeid'].'" '.($type['typeid'] == intval($sortid) ? 'selected=selected' : '').'>'.$type['name'].'</option>';
}
}
$forumselect = forumselect();
if(!empty($srchfid) && !is_numeric($srchfid)) {
$forumselect = str_replace('<option value="'.$srchfid.'">', '<option value="'.$srchfid.'" selected="selected">', $forumselect);
}
$disabled = array();
$disabled['title'] = !$allowsearch ? 'disabled' : '';
$disabled['fulltext'] = $allowsearch != 2 ? 'disabled' : '';
if(!submitcheck('searchsubmit', 1)) {
include template('search');
} else {
if($srchtype == 'qihoo') {
require DISCUZ_ROOT.'./include/search_qihoo.inc.php';
exit();
} elseif(!$allowsearch) {
showmessage('group_nopermission', NULL, 'NOPERM');
} elseif($srchtype == 'trade') {
require DISCUZ_ROOT.'./include/search_trade.inc.php';
exit;
} elseif($srchtype == 'threadsort' && $sortid) {
require DISCUZ_ROOT.'./include/search_sort.inc.php';
exit;
}
$orderby = in_array($orderby, array('dateline', 'replies', 'views')) ? $orderby : 'lastpost';
$ascdesc = isset($ascdesc) && $ascdesc == 'asc' ? 'asc' : 'desc';
if(!empty($searchid)) {
require_once DISCUZ_ROOT.'./include/misc.func.php';
$page = max(1, intval($page));
$start_limit = ($page - 1) * $tpp;
$index = $sdb->fetch_first("SELECT searchstring, keywords, threads, tids FROM {$tablepre}searchindex WHERE searchid='$searchid'");
if(!$index) {
showmessage('search_id_invalid');
}
$keyword = htmlspecialchars($index['keywords']);
$keyword = $keyword != '' ? str_replace('+', ' ', $keyword) : '';
$index['keywords'] = rawurlencode($index['keywords']);
$index['searchtype'] = preg_replace("/^([a-z]+)\|.*/", "\\1", $index['searchstring']);
$threadlist = array();
$query = $sdb->query("SELECT * FROM {$tablepre}threads WHERE tid IN ($index[tids]) AND displayorder>='0' ORDER BY $orderby $ascdesc LIMIT $start_limit, $tpp");
while($thread = $sdb->fetch_array($query)) {
$threadlist[] = procthread($thread);
}
$multipage = multi($index['threads'], $tpp, $page, "search.php?searchid=$searchid&orderby=$orderby&ascdesc=$ascdesc&searchsubmit=yes");
$url_forward = 'search.php?'.$_SERVER['QUERY_STRING'];
include template('search');
} else {
!($exempt & 2) && checklowerlimit($creditspolicy['search'], -1);
$srchuname = isset($srchuname) ? trim($srchuname) : '';
if($allowsearch == 2 && $srchtype == 'fulltext') {
periodscheck('searchbanperiods');
} elseif($srchtype != 'title') {
$srchtype = 'title';
}
$forumsarray = array();
if(!empty($srchfid)) {
foreach((is_array($srchfid) ? $srchfid : explode('_', $srchfid)) as $forum) {
if($forum = intval(trim($forum))) {
$forumsarray[] = $forum;
}
}
}
$fids = $comma = '';
foreach($_DCACHE['forums'] as $fid => $forum) {
if($forum['type'] != 'group' && (!$forum['viewperm'] && $readaccess) || ($forum['viewperm'] && forumperm($forum['viewperm']))) {
if(!$forumsarray || in_array($fid, $forumsarray)) {
$fids .= "$comma'$fid'";
$comma = ',';
}
}
}
$specials = $special ? implode(',', $special) : '';
$srchfilter = in_array($srchfilter, array('all', 'digest', 'top')) ? $srchfilter : 'all';
$searchstring = $srchtype.'|'.addslashes($srchtxt).'|'.intval($srchuid).'|'.$srchuname.'|'.addslashes($fids).'|'.intval($srchfrom).'|'.intval($before).'|'.$srchfilter.'|'.$specials;
$searchindex = array('id' => 0, 'dateline' => '0');
$query = $sdb->query("SELECT searchid, dateline,
('$searchctrl'<>'0' AND ".(empty($discuz_uid) ? "useip='$onlineip'" : "uid='$discuz_uid'")." AND $timestamp-dateline<$searchctrl) AS flood,
(searchstring='$searchstring' AND expiration>'$timestamp') AS indexvalid
FROM {$tablepre}searchindex
WHERE ('$searchctrl'<>'0' AND ".(empty($discuz_uid) ? "useip='$onlineip'" : "uid='$discuz_uid'")." AND $timestamp-dateline<$searchctrl) OR (searchstring='$searchstring' AND expiration>'$timestamp')
ORDER BY flood");
while($index = $sdb->fetch_array($query)) {
if($index['indexvalid'] && $index['dateline'] > $searchindex['dateline']) {
$searchindex = array('id' => $index['searchid'], 'dateline' => $index['dateline']);
break;
} elseif($index['flood']) {
showmessage('search_ctrl', 'search.php');
}
}
if($searchindex['id']) {
$searchid = $searchindex['id'];
} else {
if(!$srchtxt && !$srchuid && !$srchuname && !$srchfrom && !in_array($srchfilter, array('digest', 'top')) && !is_array($special)) {
showmessage('search_invalid', 'search.php');
} elseif(isset($srchfid) && $srchfid != 'all' && !(is_array($srchfid) && in_array('all', $srchfid)) && empty($forumsarray)) {
showmessage('search_forum_invalid', 'search.php');
} elseif(!$fids) {
showmessage('group_nopermission', NULL, 'NOPERM');
}
if($maxspm) {
if(($sdb->result_first("SELECT COUNT(*) FROM {$tablepre}searchindex WHERE dateline>'$timestamp'-60")) >= $maxspm) {
showmessage('search_toomany', 'search.php');
}
}
$digestltd = $srchfilter == 'digest' ? "t.digest>'0' AND" : '';
$topltd = $srchfilter == 'top' ? "AND t.displayorder>'0'" : "AND t.displayorder>='0'";
if(!empty($srchfrom) && empty($srchtxt) && empty($srchuid) && empty($srchuname)) {
$searchfrom = $before ? '<=' : '>=';
$searchfrom .= $timestamp - $srchfrom;
$sqlsrch = "FROM {$tablepre}threads t WHERE $digestltd t.fid IN ($fids) $topltd AND t.lastpost$searchfrom";
$expiration = $timestamp + $cachelife_time;
$keywords = '';
} else {
$sqlsrch = $srchtype == 'fulltext' ?
"FROM {$tablepre}posts p, {$tablepre}threads t WHERE $digestltd t.fid IN ($fids) $topltd AND p.tid=t.tid AND p.invisible='0'" :
"FROM {$tablepre}threads t WHERE $digestltd t.fid IN ($fids) $topltd";
if($srchuname) {
$srchuid = $comma = '';
$srchuname = str_replace('*', '%', addcslashes($srchuname, '%_'));
$query = $db->query("SELECT uid FROM {$tablepre}members WHERE username LIKE '".str_replace('_', '\_', $srchuname)."' LIMIT 50");
while($member = $db->fetch_array($query)) {
$srchuid .= "$comma'$member[uid]'";
$comma = ', ';
}
if(!$srchuid) {
$sqlsrch .= ' AND 0';
}
} elseif($srchuid) {
$srchuid = "'$srchuid'";
}
if($srchtxt) {
if(preg_match("(AND|\+|&|\s)", $srchtxt) && !preg_match("(OR|\|)", $srchtxt)) {
$andor = ' AND ';
$sqltxtsrch = '1';
$srchtxt = preg_replace("/( AND |&| )/is", "+", $srchtxt);
} else {
$andor = ' OR ';
$sqltxtsrch = '0';
$srchtxt = preg_replace("/( OR |\|)/is", "+", $srchtxt);
}
$srchtxt = str_replace('*', '%', addcslashes($srchtxt, '%_'));
foreach(explode('+', $srchtxt) as $text) {
$text = trim($text);
if($text) {
$sqltxtsrch .= $andor;
$sqltxtsrch .= $srchtype == 'fulltext' ? "(p.message LIKE '%".str_replace('_', '\_', $text)."%' OR p.subject LIKE '%$text%')" : "t.subject LIKE '%$text%'";
}
}
$sqlsrch .= " AND ($sqltxtsrch)";
}
if($srchuid) {
$sqlsrch .= ' AND '.($srchtype == 'fulltext' ? 'p' : 't').".authorid IN ($srchuid)";
}
if(!empty($srchfrom)) {
$searchfrom = ($before ? '<=' : '>=').($timestamp - $srchfrom);
$sqlsrch .= " AND t.lastpost$searchfrom";
}
if(!empty($specials)) {
$sqlsrch .= " AND special IN (".implodeids($special).")";
}
$keywords = str_replace('%', '+', $srchtxt).(trim($srchuname) ? '+'.str_replace('%', '+', $srchuname) : '');
$expiration = $timestamp + $cachelife_text;
}
$threads = $tids = 0;
$maxsearchresults = $maxsearchresults ? intval($maxsearchresults) : 500;
$query = $sdb->query("SELECT ".($srchtype == 'fulltext' ? 'DISTINCT' : '')." t.tid, t.closed, t.author $sqlsrch ORDER BY tid DESC LIMIT $maxsearchresults");
while($thread = $sdb->fetch_array($query)) {
if($thread['closed'] <= 1 && $thread['author']) {
$tids .= ','.$thread['tid'];
$threads++;
}
}
$db->free_result($query);
$db->query("INSERT INTO {$tablepre}searchindex (keywords, searchstring, useip, uid, dateline, expiration, threads, tids)
VALUES ('$keywords', '$searchstring', '$onlineip', '$discuz_uid', '$timestamp', '$expiration', '$threads', '$tids')");
$searchid = $db->insert_id();
!($exempt & 2) && updatecredits($discuz_uid, $creditspolicy['search'], -1);
}
showmessage('search_redirect', "search.php?searchid=$searchid&orderby=$orderby&ascdesc=$ascdesc&searchsubmit=yes");
}
}
?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/search.php
|
PHP
|
asf20
| 10,230
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/showmessage.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/header.htm', 1250692030, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/showmessage.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/footer.htm', 1250692030, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/showmessage.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/css_script.htm', 1250692030, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/showmessage.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/jsmenu.htm', 1250692030, '2', './templates/uchome')
;?>
<? if(!$inajax) { ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<? } else { include template('header_ajax'); } if(!$inajax) { ?>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> » 提示信息</div>
<div id="wrap" class="wrap s_clear">
<div class="msgfix">
<div class="showmessage">
<h1><?=$bbname提示信息?></h1>
<p><?=$show_message?></p>
<? if($url_forward) { if(empty($forwardtype)) { ?>
<p><a href="<?=$url_forward?>">如果您的浏览器没有自动跳转,请点击此链接</a></p>
<? } else { ?>
<p><a href="<?=$url_forward?>">如果 <?=$refreshtime?> 秒后下载仍未开始,请点击此链接</a></p>
<? } } elseif(stristr($show_message, '返回')) { ?>
<p><a href="javascript:history.back()">[ 点击这里返回上一页 ]</a></p>
<? } ?>
</div>
</div>
</div>
<? } elseif(!empty($infloat) && (empty($_POST) || !empty($nopost))) { ?>
<script type="text/javascript" reload="1">
var nopermst
</script>
<div>
<h3 class="float_ctrl"><em><?=$bbname提示信息?></em><span><a href="javascript:;" class="float_close" onclick="clearTimeout(nopermst);floatwinreset = 1;floatwin('close_<?=$handlekey?>');" title="关闭">关闭</a></span></h3>
<div class="float_message"><?=$show_message?><br /><br />
<? if($messagehandle == 'NOPERM' && !$discuz_uid) { ?>
<script type="text/javascript" reload="1">
nopermst = setTimeout('floatwinreset = 1;floatwin(\'close_<?=$handlekey?>\');floatwin(\'open_login\', \'logging.php?action=login\', 600, 400);', <?=$msgforward['refreshtime']?>);
</script>
<? } else { ?>
<button onclick="floatwinreset = 1;floatwin('close_<?=$handlekey?>');">关闭</button>
<? } ?>
</div>
</div>
<? } else { echo str_replace(array(",请返回", ",请。"), array(",请", "。"), $show_message); if($extra == 'HALTED' || $extra == 'NOPERM' || $extra == 'AJAXERROR') { ?><script type="text/javascript" reload="1">
function ajaxerror() {
alert('<?=$show_message?>');
}
ajaxerror();
</script><? } } if(!$inajax) { ?>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html><? } else { include template('footer_ajax'); } ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_showmessage.tpl.php
|
PHP
|
asf20
| 26,426
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/memcp_profile.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/header.htm', 1250676295, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/memcp_profile.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/seccheck.htm', 1250676295, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/memcp_profile.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/personal_navbar.htm', 1250676295, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/memcp_profile.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/footer.htm', 1250676295, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/memcp_profile.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/css_script.htm', 1250676295, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/memcp_profile.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/jsmenu.htm', 1250676295, '1', './templates/default')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> » 个人资料</div>
<div id="wrap" class="wrap with_side s_clear">
<div class="main">
<div class="content">
<script src="include/js/calendar.js?<?=VERHASH?>" type="text/javascript"></script>
<script src="include/js/bbcode.js?<?=VERHASH?>" type="text/javascript"></script>
<script type="text/javascript">
var charset = '<?=$charset?>';
var maxsigsize = parseInt('<?=$maxsigsize?>');
var maxbiosize = parseInt('<?=$maxbiosize?>');
var allowhtml = 0;
var forumallowhtml = 0;
var allowsmilies = 0;
var allowbbcode = 0;
var allowimgcode = 0;
var allowbiobbcode = parseInt('<?=$allowbiobbcode?>');
var allowbioimgcode = parseInt('<?=$allowbioimgcode?>');
var allowsigbbcode = parseInt('<?=$allowsigbbcode?>');
var allowsigimgcode = parseInt('<?=$allowsigimgcode?>');
function parseurl(str, mode) {
str = str.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp))/ig, mode == 'html' ? '$1<img src="$2" border="0">' : '$1[img]$2[/img]');
str = str.replace(/([^>=\]"'\/@]|^)((((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|ed2k):\/\/)|www\.)([\w\-]+\.)*[:\.@\-\w\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!#]*)*)/ig, mode == 'html' ? '$1<a href="$2" target="_blank">$2</a>' : '$1[url]$2[/url]');
str = str.replace(/([^\w>=\]:"'\.\/]|^)(([\-\.\w]+@[\.\-\w]+(\.\w+)+))/ig, mode == 'html' ? '$1<a href="mailto:$2">$2</a>' : '$1[email]$2[/email]');
return str;
}
function validate(theform) {
<? if($typeid == 2) { if($maxsigsize) { ?>
if(mb_strlen(theform.signaturenew.value) > maxsigsize) {
alert('您的签名长度超过 <?=$maxsigsize?> 字符的限制,请返回修改。');
return false;
}
<? } ?>
if(mb_strlen(theform.bionew.value) > maxbiosize) {
alert('您的自我介绍长度超过 <?=$maxbiosize?> 字符的限制,请返回修改。');
return false;
}
<? if(!$member['signature']) { ?>$('signaturemessage').click();<? } if(!$member['bio']) { ?>$('biomessage').click();<? } } ?>
return true;
}
function updateavatar() {
$('avatar').src='<? echo discuz_uc_avatar($discuz_uid, 'middle', TRUE); ?>?random=1'+Math.random();
$('avatarctrl').style.display = 'none';
}
function updatetextarea(id, msg) {
$(id).updated = 0;
$(id).value = msg;
$(id).style.color = '<?=LIGHTTEXT?>';
$(id).onclick = function(){
this.style.color = '<?=TABLETEXT?>';
this.value = '';
$(id).onclick = null;
}
}
</script>
<form name="reg" method="post" action="memcp.php?action=profile&typeid=<?=$typeid?>" onSubmit="return validate(this)" style="zoom:1">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<? if($typeid == 1) { ?>
<h1>密码和安全问题</h1>
<div class="channelinfo">您必须填写原密码才能修改下面的资料</div>
<table summary="个人资料" cellspacing="0" cellpadding="0" class="formtable">
<? if($secqaacheck || $seccodecheck) { ?>
<tr>
<th><label for="oldpassword">验证</label></th>
<td><? $secchecktype = 3; ?><script type="text/javascript" reload="1">
function updateseccode<?=$secchecktype?>(op) {
if(isUndefined(op)) {
var x = new Ajax();
ajaxget('ajax.php?action=updateseccode&secchecktype=<?=$secchecktype?>', 'seccodeverify<?=$secchecktype?>_menu', 'seccodeverify<?=$secchecktype?>_menu');
} else {
window.document.seccodeplayer.SetVariable("isPlay", "1");
}
$('seccodeverify<?=$secchecktype?>').focus();
}
function updatesecqaa<?=$secchecktype?>() {
var x = new Ajax();
ajaxget('ajax.php?action=updatesecqaa', 'secanswer<?=$secchecktype?>_menu', 'secanswer<?=$secchecktype?>_menu');
}
var secclick<?=$secchecktype?> = new Array();
var seccodefocus = 0;
function opensecwin<?=$secchecktype?>(id, type) {
if(!secclick<?=$secchecktype?>[id]) {
$(id).value = '';
secclick<?=$secchecktype?>[id] = 1;
if(type) {
$(id + '_menu').style.top = (parseInt($(id + '_menu').style.top) - parseInt($(id + '_menu').style.height)) + 'px';
updateseccode<?=$secchecktype?>();
} else {
updatesecqaa<?=$secchecktype?>();
}
}
<? if(empty($secchecktype)) { if(!empty($infloat)) { ?>
InFloat='<?=$seccheckfloat?>';
<? } if($seccheckfloat) { ?>
$(id + '_menu').style.position = 'absolute';
$(id + '_menu').style.top = (-parseInt($(id + '_menu').style.height)) + 'px';
<? if($secqaacheck) { ?>
if(type) {
$(id + '_menu').style.left = $(id).offsetLeft + 'px';
} else {
$(id + '_menu').style.left = '0px';
}
<? } else { ?>
$(id + '_menu').style.left = '0px';
<? } } } elseif($secchecktype == 1) { if(!empty($infloat)) { ?>
InFloat='floatlayout_register';
<? } ?>
showMenu(id, 0, 2, 3);
<? } elseif($secchecktype == 3) { ?>
showMenu(id, 0, 2, 3);
<? } ?>
$(id + '_menu').style.display = '';
$(id).focus();
$(id).unselectable = 'off';
}
</script>
<? if($secqaacheck) { ?>
<input name="secanswer" id="secanswer<?=$secchecktype?>" type="text" autocomplete="off" style="width:50px" value="验证问答" class="txt" onfocus="opensecwin<?=$secchecktype?>(this.id, 0)" onclick="opensecwin<?=$secchecktype?>(this.id, 0)" onblur="display(this.id + '_menu');checksecanswer<?=$secchecktype?>();" tabindex="1">
<span id="checksecanswer<?=$secchecktype?>"><img src="images/common/none.gif" width="16" height="16"></span>
<div id="secanswer<?=$secchecktype?>_menu" class="seccodecontent" style="width:200px;height:80px;display:none"></div>
<? } if($seccodecheck) { ?>
<input name="seccodeverify" id="seccodeverify<?=$secchecktype?>" type="text" autocomplete="off" style="width:50px" value="验证码" class="txt" onfocus="opensecwin<?=$secchecktype?>(this.id, 1)" onclick="opensecwin<?=$secchecktype?>(this.id, 1)" onblur="if(!seccodefocus) {display(this.id + '_menu')}checkseccode<?=$secchecktype?>();" tabindex="1">
<a href="javascript:;" onclick="updateseccode<?=$secchecktype?>()">换一个</a>
<span id="checkseccodeverify<?=$secchecktype?>"><img src="images/common/none.gif" width="16" height="16"></span>
<div id="seccodeverify<?=$secchecktype?>_menu" class="seccodecontent" onmouseover="seccodefocus = 1" onmouseout="seccodefocus = 0" style="cursor: pointer;top: 256px;width:<?=$seccodedata['width']?>px;height:<?=$seccodedata['height']?>px;display:none"></div>
<? } ?>
<script type="text/javascript" reload="1">
var profile_seccode_invalid = '验证码输入错误,请重新填写。';
var profile_secanswer_invalid = '验证问答回答错误,请重新填写。';
var lastseccode = lastsecanswer = '';
function checkseccode<?=$secchecktype?>() {
var seccodeverify = $('seccodeverify<?=$secchecktype?>').value;
if(seccodeverify == lastseccode) {
return;
} else {
lastseccode = seccodeverify;
}
var cs = $('checkseccodeverify<?=$secchecktype?>');
<? if($seccodedata['type'] != 1) { ?>
if(!(/[0-9A-Za-z]{4}/.test(seccodeverify))) {
warning<?=$secchecktype?>(cs, profile_seccode_invalid);
return;
}
<? } else { ?>
if(seccodeverify.length != 2) {
warning<?=$secchecktype?>(cs, profile_seccode_invalid);
return;
}
<? } ?>
ajaxresponse<?=$secchecktype?>('checkseccodeverify<?=$secchecktype?>', 'action=checkseccode&seccodeverify=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(seccodeverify) : seccodeverify));
}
function checksecanswer<?=$secchecktype?>() {
var secanswer = $('secanswer<?=$secchecktype?>').value;
if(secanswer == lastsecanswer) {
return;
} else {
lastsecanswer = secanswer;
}
ajaxresponse<?=$secchecktype?>('checksecanswer<?=$secchecktype?>', 'action=checksecanswer&secanswer=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(secanswer) : secanswer));
}
function ajaxresponse<?=$secchecktype?>(objname, data) {
var x = new Ajax('XML', objname);
x.get('ajax.php?inajax=1&' + data, function(s){
var obj = $(objname);
if(s == 'succeed') {
obj.style.display = '';
obj.innerHTML = '<img src="<?=IMGDIR?>/check_right.gif" width="16" height="16" />';
obj.className = "warning";
} else {
warning(obj, s);
}
});
}
function warning(obj, msg) {
if((ton = obj.id.substr(5, obj.id.length)) != 'password2') {
$(ton).select();
}
obj.style.display = '';
obj.innerHTML = '<img src="<?=IMGDIR?>/check_error.gif" width="16" height="16" />';
obj.className = "warning";
}
</script></td>
<td></td>
</tr>
<? } ?>
<tr>
<th><label for="oldpassword">原密码</label></th>
<td><input type="password" name="oldpassword" id="oldpassword" size="25" class="txt" /></td>
<td>必填</td>
</tr>
<tr>
<th><label for="newpassword">新密码</label></th>
<td><input type="password" name="newpassword" id="newpassword" size="25" class="txt" /></td>
<td>如不需要更改密码,此处请留空</td>
</tr>
<tr>
<th><label for="newpassword2">确认新密码</label></th>
<td><input type="password" name="newpassword2" id="newpassword2" size="25" class="txt" /></td>
<td></td>
</tr>
<tr>
<th><label for="emailnew">Email</label></th>
<td><input type="text" name="emailnew" id="emailnew" size="25" value="<?=$member['email']?>" class="txt" /></td>
<td>
<? if($regverify == 1 && (($grouptype == 'member' && $adminid == 0) && $groupid == 8)) { ?> !如更改地址,系统将修改您的密码并重新验证其有效性,请慎用<? } ?>
</td>
</tr>
<tr>
<th><label for="questionidnew">安全提问</label></th>
<td><select name="questionidnew" id="questionidnew">
<? if($discuz_secques) { ?><option value="">保持原有的安全提问和答案</option><? } ?>
<option value="0">无安全提问</option>
<option value="1">母亲的名字</option>
<option value="2">爷爷的名字</option>
<option value="3">父亲出生的城市</option>
<option value="4">您其中一位老师的名字</option>
<option value="5">您个人计算机的型号</option>
<option value="6">您最喜欢的餐馆名称</option>
<option value="7">驾驶执照的最后四位数字</option>
</select>
</td>
<td>如果您启用安全提问,登录时需填入相应的项目才能登录</td>
</tr>
<tr>
<th><label for="answernew">回答</label></th>
<td><input type="text" name="answernew" id="answernew" size="25" class="txt" /></td>
<td>如您设置新的安全提问,请在此输入答案</td>
</tr>
<? } elseif($typeid == 2) { ?>
<link href="forumdata/cache/style_<?=STYLEID?>_seditor.css?<?=VERHASH?>" rel="stylesheet" type="text/css" />
<h1>个人资料</h1>
<table summary="个人资料" cellspacing="0" cellpadding="0" class="formtable">
<tr>
<th></th>
<td>
<div class="avatararea">
<p><img id="avatar" src="images/common/none.gif" onerror="this.onerror=null;this.src='<?=UC_API?>/images/noavatar_middle.gif'" /></p>
<p><a href="javascript:;" onclick="$('avatarctrl').style.display = '';">修改头像</a></p>
</div>
<div id="avatarctrl" style="display: none"><script type="text/javascript">updateavatar();document.write(AC_FL_RunContent('<? echo implode("','", $uc_avatarflash);; ?>'));</script></div>
</td>
</tr>
<? if($secqaacheck || $seccodecheck) { ?>
<tr>
<th><label for="oldpassword">验证</label></th>
<td><? $secchecktype = 3; include template('seccheck'); ?>
</td>
</tr>
<? } if($allownickname) { ?>
<tr>
<th><label for="nicknamenew">昵称</label></th>
<td><input type="text" name="nicknamenew" id="nicknamenew" size="25" value="<?=$member['nickname']?>" class="txt" /></td>
</tr>
<? } if($allowcstatus) { ?>
<tr>
<th><label for="cstatusnew">自定义头衔</label></th>
<td><input type="text" name="cstatusnew" id="cstatusnew" size="25" value="<?=$member['customstatus']?>" class="txt" /></td>
</tr>
<? } if($maxsigsize) { ?>
<tr>
<th valign="top"><label for="signaturemessage">个人签名<br /><a href="javascript:;" onclick="allowbbcode = allowsigbbcode;allowimgcode = allowsigimgcode;$('signaturepreview').innerHTML = bbcode2html($('signaturemessage').value)">预览</a></label></th>
<td valign="top">
<div id="signaturepreview"></div>
<? if($allowsigbbcode) { ?>
<div class="editor_tb" style="width: 274px">
<div>
<a href="javascript:;" title="粗体" class="tb_bold" onclick="seditor_insertunit('signature', '[b]', '[/b]')">B</a>
<? if($allowsigimgcode) { ?><a href="javascript:;" title="插入图片" class="tb_img" onclick="seditor_insertunit('signature', '[img]', '[/img]')">Image</a><? } ?>
<a href="javascript:;" title="插入链接" class="tb_link" onclick="seditor_insertunit('signature', '[url]', '[/url]')">Link</a>
<? if($member['msn']['1']) { ?>
<a href="javascript:;" title="插入我的 MSN 在线通" class="tb_imme" onclick="seditor_insertunit('signature', '[imme]')">Imme</a>
<? } ?>
</div>
</div>
<? } ?>
<textarea rows="8" cols="30" id="signaturemessage" name="signaturenew" class="txtarea" <? if($allowsigbbcode) { ?>style="margin-top; -1px; border-top: none;"<? } ?>><?=$member['signature']?></textarea>
<span class="left">
<a href="faq.php?action=faq&id=5&messageid=18" target="_blank">Discuz!代码</a> <? if($allowsigbbcode) { ?>可用<? } else { ?>禁用<? } ?><br />
[img] 代码 <? if($allowsigimgcode) { ?>可用<? } else { ?>禁用<? } ?>
</span>
</td>
</tr>
<? } ?>
<tr>
<th valign="top"><label for="biomessage">自我介绍<br /><a href="javascript:;" onclick="allowbbcode = allowbiobbcode;allowimgcode = allowbioimgcode;$('biopreview').innerHTML = bbcode2html($('biomessage').value)">预览</a></label></th>
<td>
<div id="biopreview"></div>
<? if($allowsigbbcode) { ?>
<div class="editor_tb" style="width: 274px">
<div>
<a href="javascript:;" title="粗体" class="tb_bold" onclick="seditor_insertunit('bio', '[b]', '[/b]')">B</a>
<? if($allowsigimgcode) { ?><a href="javascript:;" title="插入图片" class="tb_img" onclick="seditor_insertunit('bio', '[img]', '[/img]')">Image</a><? } ?>
<a href="javascript:;" title="插入链接" class="tb_link" onclick="seditor_insertunit('bio', '[url]', '[/url]')">Link</a>
<? if($member['msn']['1']) { ?>
<a href="javascript:;" title="插入我的 MSN 在线通" class="tb_imme" onclick="seditor_insertunit('bio', '[imme]')">Imme</a>
<? } ?>
</div>
</div>
<? } ?>
<textarea rows="8" cols="30" id="biomessage" name="bionew" class="txtarea" <? if($allowsigbbcode) { ?>style="margin-top; -1px; border-top: none;"<? } ?>><?=$member['bio']?></textarea>
<span class="left">
<a href="faq.php?action=faq&id=5&messageid=18" target="_blank">Discuz!代码</a> <? if($allowbiobbcode) { ?>可用<? } else { ?>禁用<? } ?><br />
[img] 代码 <? if($allowbioimgcode) { ?>可用<? } else { ?>禁用<? } ?>
</span>
</td>
</tr>
<tr>
<th>性别</th>
<td>
<select name="gendernew">
<option value="1" <?=$gendercheck['1']?>>男</option>
<option value="2" <?=$gendercheck['2']?>>女</option>
<option value="0" <?=$gendercheck['0']?>>保密</option>
</select>
</td>
</tr>
<tr>
<th><label for="bdaynew">生日</label></th>
<td><input type="text" name="bdaynew" id="bdaynew" size="25" onclick="showcalendar(event, this)" onfocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" value="<?=$member['bday']?>" class="txt" /></td>
</tr>
<tr>
<th><label for="locationnew">来自</label></th>
<td><input type="text" name="locationnew" id="locationnew" size="25" value="<?=$member['location']?>" class="txt" /></td>
</tr>
<? if(!empty($_DCACHE['fields_required']) || !empty($_DCACHE['fields_optional'])) { if($_DCACHE['fields_required']) { if(is_array($_DCACHE['fields_required'])) { foreach($_DCACHE['fields_required'] as $field) { ?><tr>
<th><?=$field['title']?></th>
<td>
<? if($field['selective']) { ?>
<select name="field_<?=$field['fieldid']?>new" <? if($member['field_'.$field['fieldid']] && $field['unchangeable']) { ?>disabled<? } ?>>
<option value="">- 请选择 -</option><? if(is_array($field['choices'])) { foreach($field['choices'] as $index => $choice) { ?><option value="<?=$index?>" <? if($index == $member['field_'.$field['fieldid']]) { ?>selected="selected"<? } ?>><?=$choice?></option><? } } ?></select>
<? } else { ?>
<input type="text" name="field_<?=$field['fieldid']?>new" size="25" value="<?=$member['field_'.$field['fieldid']]?>" <? if($member['field_'.$field['fieldid']] && $field['unchangeable']) { ?>disabled<? } ?> class="txt" />
<? } if($field['description']) { ?> <?=$field['description']?><? } if($field['unchangeable']) { ?> 请认真填写本项目,一旦确定将不可修改<? } ?>
</td>
</tr><? } } } if($_DCACHE['fields_optional']) { if(is_array($_DCACHE['fields_optional'])) { foreach($_DCACHE['fields_optional'] as $field) { ?><tr>
<th><label for="field_<?=$field['fieldid']?>new"><?=$field['title']?></label></th>
<td>
<? if($field['selective']) { ?>
<select name="field_<?=$field['fieldid']?>new" id="field_<?=$field['fieldid']?>new" <? if($member['field_'.$field['fieldid']] && $field['unchangeable']) { ?>disabled<? } ?>>
<option value="">- 请选择 -</option><? if(is_array($field['choices'])) { foreach($field['choices'] as $index => $choice) { ?><option value="<?=$index?>" <? if($index == $member['field_'.$field['fieldid']]) { ?>selected="selected"<? } ?>><?=$choice?></option><? } } ?></select>
<? } else { ?>
<input type="text" name="field_<?=$field['fieldid']?>new" size="25" value="<?=$member['field_'.$field['fieldid']]?>" <? if($member['field_'.$field['fieldid']] && $field['unchangeable']) { ?>disabled<? } ?> class="txt" />
<? } if($field['description']) { ?> <?=$field['description']?><? } if($field['unchangeable']) { ?> 请认真填写本项目,一旦确定将不可修改<? } ?>
</td>
</tr><? } } } } ?>
<tr class="sep_space"><th colspan="2"></th></tr>
<tr>
<th><label for="sitenew">个人网站</label></th>
<td><input type="text" name="sitenew" id="sitenew" size="25" value="<? if($member['site']) { ?><?=$member['site']?><? } else { ?>http://<? } ?>" class="txt" /></td>
</tr>
<tr>
<th><label for="qqnew">QQ</label></th>
<td><input type="text" name="qqnew" id="qqnew" size="25" value="<?=$member['qq']?>" class="txt" /></td>
</tr>
<tr>
<th><label for="icqnew">ICQ</label></th>
<td><input type="text" name="icqnew" id="icqnew" size="25" value="<?=$member['icq']?>" class="txt" /></td>
</tr>
<tr>
<th><label for="yahoonew">Yahoo</label></th>
<td><input type="text" name="yahoonew" id="yahoonew" size="25" value="<?=$member['yahoo']?>" class="txt" /></td>
</tr>
<tr>
<th><label for="alipaynew">支付宝账号</label></th>
<td><input type="text" name="alipaynew" id="alipaynew" size="25" value="<?=$member['alipay']?>" class="txt" /></td>
</tr>
<tr>
<th><label for="taobaonew">阿里旺旺</label></th>
<td><input type="text" name="taobaonew" id="taobaonew" size="25" value="<?=$member['taobao']?>" class="txt" /></td>
</tr>
<tr class="sep_space"><th colspan="2"></th></tr>
<tr>
<th><label for="msnnew">MSN</label></th>
<td>
<input type="text" name="msnnew" id="msnnew" size="25" value="<?=$member['msn']['0']?>" class="txt" />
</td>
</tr>
<tr>
<th><label for="imme">MSN 在线通</label></th>
<td>
<? if($member['msn']['1']) { ?>
您已经成功绑定了 MSN
<a href="http://settings.messenger.live.com/applications/websignup.aspx?returnurl=<?=$boardurl?>misc.php?action=imme_binding&privacyurl=<?=$boardurl?>" target="_blank" class="emfont">更换绑定的 MSN 帐号</a>
<a href="<?=$boardurl?>misc.php?action=imme_cancelbinding" target="_blank" class="emfont">取消 MSN 绑定</a>
<? } else { ?>
您还没有绑定 MSN
<a href="http://im.live.cn/imme/index.htm" target="_blank">什么是 MSN 在线通</a><br />
<a href="https://domains.live.com/members/signup.aspx?domain=<?=$msn['domain']?>" target="_blank">注册 MSN ID</a>
<a href="http://im.live.cn" target="_blank">下载 MSN</a>
<a href="http://settings.messenger.live.com/applications/websignup.aspx?returnurl=<?=$boardurl?>misc.php?action=imme_binding&privacyurl=<?=$boardurl?>" target="_blank">启用 MSN 在线通</a>
<? } ?>
</td>
</tr>
<? if($typeid == 2) { ?>
<script type="text/javascript">
<? if(!$member['signature'] && $maxsigsize) { ?>updatetextarea('signaturemessage', '<?=$maxsigsize?> 字节以内\n不支持自定义 Discuz! 代码');<? } if(!$member['bio']) { ?>updatetextarea('biomessage', '<?=$maxbiosize?> 字节以内\n不支持自定义 Discuz! 代码');<? } ?>
</script>
<? } } elseif($typeid == 5) { ?>
<h1>论坛个性化设定</h1>
<table summary="个人资料" cellspacing="0" cellpadding="0" class="formtable">
<? if($secqaacheck || $seccodecheck) { ?>
<tr>
<th><label for="oldpassword">验证</label></th>
<td><? $secchecktype = 3; include template('seccheck'); ?>
</td>
</tr>
<? } ?>
<tr>
<th>界面风格</th>
<td>
<select name="styleidnew">
<option value="">使用默认</option>
<?=$styleselect?></select>
</td>
</tr>
<tr>
<th>每页主题数</th>
<td>
<label><input type="radio" name="tppnew" value="0" <?=$tppchecked['0']?>> 使用默认</label>
<label><input type="radio" name="tppnew" value="10" <?=$tppchecked['10']?>> 10</label>
<label><input type="radio" name="tppnew" value="20" <?=$tppchecked['20']?>> 20</label>
<label><input type="radio" name="tppnew" value="30" <?=$tppchecked['30']?>> 30</label>
</td>
</tr>
<tr>
<th>每页帖数</th>
<td>
<label><input type="radio" name="pppnew" value="0" <?=$pppchecked['0']?>> 使用默认</label>
<label><input type="radio" name="pppnew" value="5" <?=$pppchecked['5']?>> 5</label>
<label><input type="radio" name="pppnew" value="10" <?=$pppchecked['10']?>> 10</label>
<label><input type="radio" name="pppnew" value="15" <?=$pppchecked['15']?>> 15</label>
</td>
</tr>
<tr class="sep_space"><th colspan="2"></th></tr>
<tr>
<th>签名显示设置</th>
<td>
<label><input type="radio" name="ssnew" value="2" <?=$sschecked['2']?>> 使用默认</label>
<label><input type="radio" name="ssnew" value="1" <?=$sschecked['1']?>> 显示签名</label>
<label><input type="radio" name="ssnew" value="0" <?=$sschecked['0']?>> 不显示签名</label>
</td>
</tr>
<tr>
<th>头像显示设置</th>
<td>
<label><input type="radio" name="sanew" value="2" <?=$sachecked['2']?>> 使用默认</label>
<label><input type="radio" name="sanew" value="1" <?=$sachecked['1']?>> 显示头像</label>
<label><input type="radio" name="sanew" value="0" <?=$sachecked['0']?>> 不显示头像</label>
</td>
</tr>
<tr>
<th>图片显示设置</th>
<td>
<label><input type="radio" name="sinew" value="2" <?=$sichecked['2']?>> 使用默认</label>
<label><input type="radio" name="sinew" value="1" <?=$sichecked['1']?>> 显示图片</label>
<label><input type="radio" name="sinew" value="0" <?=$sichecked['0']?>> 不显示图片</label>
包括上传的附件图片和 [img] 代码图片
</td>
</tr>
<tr>
<th>编辑器模式</th>
<td>
<label><input type="radio" name="editormodenew" value="2" <?=$emcheck['2']?>> 使用默认</label>
<label><input type="radio" name="editormodenew" value="0" <?=$emcheck['0']?>> Discuz! 代码模式</label>
<label><input type="radio" name="editormodenew" value="1" <?=$emcheck['1']?>> 所见即所得模式</label>
</td>
</tr>
<tr class="sep_space"><th colspan="2"></th></tr>
<tr>
<th>时差设定</th>
<td>
<select name="timeoffsetnew">
<option value="9999" <?=$toselect['9999']?>>使用默认</option>
<option value="-12" <?=$toselect['-12']?>>(GMT -12:00) Eniwetok, Kwajalein</option>
<option value="-11" <?=$toselect['-11']?>>(GMT -11:00) Midway Island, Samoa</option>
<option value="-10" <?=$toselect['-10']?>>(GMT -10:00) Hawaii</option>
<option value="-9" <?=$toselect['-9']?>>(GMT -09:00) Alaska</option>
<option value="-8" <?=$toselect['-8']?>>(GMT -08:00) Pacific Time (US & Canada), Tijuana</option>
<option value="-7" <?=$toselect['-7']?>>(GMT -07:00) Mountain Time (US & Canada), Arizona</option>
<option value="-6" <?=$toselect['-6']?>>(GMT -06:00) Central Time (US & Canada), Mexico City</option>
<option value="-5" <?=$toselect['-5']?>>(GMT -05:00) Eastern Time (US & Canada), Bogota, Lima, Quito</option>
<option value="-4" <?=$toselect['-4']?>>(GMT -04:00) Atlantic Time (Canada), Caracas, La Paz</option>
<option value="-3.5" <?=$toselect['-3.5']?>>(GMT -03:30) Newfoundland</option>
<option value="-3" <?=$toselect['-3']?>>(GMT -03:00) Brassila, Buenos Aires, Georgetown, Falkland Is</option>
<option value="-2" <?=$toselect['-2']?>>(GMT -02:00) Mid-Atlantic, Ascension Is., St. Helena</option>
<option value="-1" <?=$toselect['-1']?>>(GMT -01:00) Azores, Cape Verde Islands</option>
<option value="0" <?=$toselect['0']?>>(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia</option>
<option value="1" <?=$toselect['1']?>>(GMT +01:00) Amsterdam, Berlin, Brussels, Madrid, Paris, Rome</option>
<option value="2" <?=$toselect['2']?>>(GMT +02:00) Cairo, Helsinki, Kaliningrad, South Africa</option>
<option value="3" <?=$toselect['3']?>>(GMT +03:00) Baghdad, Riyadh, Moscow, Nairobi</option>
<option value="3.5" <?=$toselect['3.5']?>>(GMT +03:30) Tehran</option>
<option value="4" <?=$toselect['4']?>>(GMT +04:00) Abu Dhabi, Baku, Muscat, Tbilisi</option>
<option value="4.5" <?=$toselect['4.5']?>>(GMT +04:30) Kabul</option>
<option value="5" <?=$toselect['5']?>>(GMT +05:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
<option value="5.5" <?=$toselect['5.5']?>>(GMT +05:30) Bombay, Calcutta, Madras, New Delhi</option>
<option value="5.75" <?=$toselect['5.75']?>>(GMT +05:45) Katmandu</option>
<option value="6" <?=$toselect['6']?>>(GMT +06:00) Almaty, Colombo, Dhaka, Novosibirsk</option>
<option value="6.5" <?=$toselect['6.5']?>>(GMT +06:30) Rangoon</option>
<option value="7" <?=$toselect['7']?>>(GMT +07:00) Bangkok, Hanoi, Jakarta</option>
<option value="8" <?=$toselect['8']?>>(GMT +08:00) Beijing, Hong Kong, Perth, Singapore, Taipei</option>
<option value="9" <?=$toselect['9']?>>(GMT +09:00) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</option>
<option value="9.5" <?=$toselect['9.5']?>>(GMT +09:30) Adelaide, Darwin</option>
<option value="10" <?=$toselect['10']?>>(GMT +10:00) Canberra, Guam, Melbourne, Sydney, Vladivostok</option>
<option value="11" <?=$toselect['11']?>>(GMT +11:00) Magadan, New Caledonia, Solomon Islands</option>
<option value="12" <?=$toselect['12']?>>(GMT +12:00) Auckland, Wellington, Fiji, Marshall Island</option>
</select>
</td>
</tr>
<tr>
<th>时间格式</th>
<td>
<label><input type="radio" name="timeformatnew" value="0" <?=$tfcheck['0']?>> 使用默认</label>
<label><input type="radio" name="timeformatnew" value="1" <?=$tfcheck['1']?>> 12 小时</label>
<label><input type="radio" name="timeformatnew" value="2" <?=$tfcheck['2']?>> 24 小时</label>
</td>
</tr>
<tr>
<th>日期格式</th>
<td>
<label><input type="radio" name="dateformatnew" <?=$dfcheck['0']?>> 使用默认</label><? if(is_array($dateformatlist)) { foreach($dateformatlist as $key => $value) { ?><label><input type="radio" name="dateformatnew" value="<?=$key?>" <?=$dfcheck[$key]?>> <?=$value?></label><? } } ?></td>
</tr>
<? if($dateconvert) { ?>
<tr>
<th>人性化时间格式</th>
<td>
<label><input type="radio" name="dateconvertnew" value="0" <?=$dateconvertchecked['0']?>> 启用</label>
<label><input type="radio" name="dateconvertnew" value="1" <?=$dateconvertchecked['1']?>> 不启用</label>
</td>
</tr>
<? } else { ?>
<input name="dateconvertnew" type="hidden" value="0" />
<? } ?>
<tr class="sep_space"><th colspan="2"></th></tr>
<? if($creditnotice) { ?>
<tr>
<th>积分变动提示</th>
<td>
<label><input type="radio" name="creditnoticenew" value="1" <?=$creditnoticechecked['1']?>> 是</label>
<label><input type="radio" name="creditnoticenew" value="0" <?=$creditnoticechecked['0']?>> 否</label>
</td>
</tr>
<? } ?>
<tr>
<th>短消息提示音</th>
<td>
<label><input type="radio" value="0" name="pmsoundnew" <?=$pscheck['0']?> /> 无</label>
<label><input type="radio" onclick="soundplayer(1)" value="1" name="pmsoundnew" <?=$pscheck['1']?> /> #1</label>
<label><input type="radio" onclick="soundplayer(2)" value="2" name="pmsoundnew" <?=$pscheck['2']?> /> #2</label>
<label><input type="radio" onclick="soundplayer(3)" value="3" name="pmsoundnew" <?=$pscheck['3']?> /> #3</label>
<div id="soundplayerlayer" style="position:absolute;top:-100000px"></div>
<script type="text/javascript" reload="1">
function soundplayer(file) {
$('soundplayerlayer').innerHTML = AC_FL_RunContent('id', 'pmsoundplayer', 'name', 'pmsoundplayer', 'width', '0', 'height', '0', 'src', '<?=$boardurl?>images/sound/player.swf', 'FlashVars', 'sFile=<?=$boardurl?>images/sound/pm_' + file + '.mp3', 'menu', 'false', 'allowScriptAccess', 'sameDomain', 'swLiveConnect', 'true');
}
</script>
</td>
</tr>
<? if($uchome['addfeed'] && $ucappopen['UCHOME']) { ?>
<tr>
<th>加入事件设置</th>
<td>
<label><input type="radio" value="0" name="customaddfeednew" onclick="$('customaddfeed').style.display = 'none';" <?=$defaultcheck?> class="radio" /> 默认</label>
<label><input type="radio" name="customaddfeednew" onclick="$('customaddfeed').style.display = '';" <?=$customcheck?> class="radio" /> 自定义</label>
<span id="customaddfeed" style="display: <?=$showfeedcheck?>">
<label><input type="checkbox" name="addfeed[1]" value="1" <?=$feedchecks['1']?> class="checkbox" /> 普通主题</label>
<label><input type="checkbox" name="addfeed[2]" value="1" <?=$feedchecks['2']?> class="checkbox" /> 特殊主题</label>
<label><input type="checkbox" name="addfeed[3]" value="1" <?=$feedchecks['3']?> class="checkbox" /> 参与/回复主题</label>
</span>
</td>
</tr>
<? } ?>
<tr>
<th valign="top">其他选项</th>
<td>
<? if($allowinvisible) { ?>
<label><input type="checkbox" name="invisiblenew" value="1" <?=$invisiblechecked?> class="checkbox" /> 在线列表中隐身</label><br />
<? } ?>
<label><input type="checkbox" name="showemailnew" value="1" <?=$emailchecked?> class="checkbox" /> Email 地址可见</label><br />
<label><input type="checkbox" name="newsletternew" value="1" <?=$newschecked?> class="checkbox" /> 同意接收论坛通知 (Email 或短消息)</label><br />
</td>
</tr>
<? } if($typeid != 6) { ?>
<tr>
<th> </th>
<td><button type="submit" class="submit" name="editsubmit" id="editsubmit" value="true">提交</button></td>
</tr>
<? } ?>
</table>
</form>
</div>
</div>
<div class="side"><h2>个人中心</h2>
<div class="sideinner">
<ul class="tabs">
<? if($regverify == 1 && $groupid == 8) { ?>
<li><a href="member.php?action=emailverify">重新验证 Email</a></li>
<? } if($regverify == 2 && $groupid == 8) { ?>
<li><a href="memcp.php?action=validating">账户审核</a></li>
<li><a href="memcp.php?action=profile&typeid=2">个人资料</a></li>
<? } else { ?>
<li><a href="memcp.php?action=profile&typeid=2">个人资料</a></li>
<li><a href="pm.php">短消息</a></li>
<li><a href="my.php?item=buddylist&<?=$extrafid?>">我的好友</a></li>
<? if($regstatus > 1) { ?><li><a href="invite.php">邀请注册</a></li><? } if($ucappopen['UCHOME']) { ?>
<li><a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">我的空间</a></li>
<? } elseif($ucappopen['XSPACE']) { ?>
<li><a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">我的空间</a></li>
<? } } ?>
</ul>
</div>
<? if($groupid != 8) { ?>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="my.php?item=threads<?=$extrafid?>">我的帖子</a></li>
<li><a href="my.php?item=favorites&type=thread<?=$extrafid?>">我的收藏</a></li>
<li><a href="my.php?item=subscriptions<?=$extrafid?>">我的订阅</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="memcp.php?action=credits">积分</a></li>
<li><a href="memcp.php?action=usergroups">用户组&权限</a></li>
<li><a href="task.php">论坛任务</a></li>
<? if($medalstatus) { ?><li><a href="medal.php">勋章</a></li><? } if($magicstatus) { ?><li><a href="magic.php">道具</a></li><? } ?>
</ul>
</div>
<? } ?>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="memcp.php?action=profile&typeid=5">论坛个性化设定</a></li>
<li><a href="memcp.php?action=profile&typeid=1">密码和安全问题</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li>积分: <?=$credits?></li><? if(is_array($extcredits)) { foreach($extcredits as $id => $credit) { ?><li>
<? if($BASESCRIPT == 'invite.php' && $id == $creditstransextra['4'] ||
$BASESCRIPT == 'memcp.php' && $id == $creditstrans) { ?>
<?=$credit['title']?>: <span style="font-weight: bold;"><?=$GLOBALS['extcredits'.$id]?></span> <?=$credit['unit']?>
<? } else { ?>
<?=$credit['title']?>: <?=$GLOBALS['extcredits'.$id]?> <?=$credit['unit']?>
<? } ?>
</li><? } } ?></ul>
</div></div>
</div>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_memcp_profile.tpl.php
|
PHP
|
asf20
| 58,050
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/my.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/header.htm', 1253525249, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/my.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/personal_navbar.htm', 1253525249, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/my.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/footer.htm', 1253525249, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/my.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/css_script.htm', 1253525249, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/my.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/jsmenu.htm', 1253525249, '2', './templates/uchome')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<div id="nav">
<a href="<?=$indexname?>"><?=$bbname?></a> »
<? if($srchfid) { ?><a href="my.php?item=<?=$item?><?=$extra?>"><? } if(empty($item) || in_array($item, array('threads', 'posts', 'polls', 'tradestats', 'selltrades', 'buytrades', 'tradethreads', 'reward', 'activities', 'debate', 'video'))) { ?>我的帖子
<? } elseif($item == 'favorites') { ?>我的收藏
<? } elseif($item == 'subscriptions') { ?>我的订阅
<? } elseif($item == 'buddylist') { ?>我的好友<? } if($srchfid) { ?></a> » <?=$forumname?><? } ?>
</div>
<div id="wrap" class="wrap with_side s_clear">
<div class="main">
<div class="content">
<? if($item != 'buddylist') { ?>
<div class="itemtitle s_clear">
<? if(empty($item) || in_array($item, array('threads', 'posts', 'polls', 'tradestats', 'selltrades', 'buytrades', 'tradethreads', 'reward', 'activities', 'debate', 'video'))) { ?>
<h1>我的帖子</h1>
<ul>
<li<? if(empty($item) || $item == 'threads') { ?> class="current"<? } ?>><a href="my.php?item=threads<?=$extrafid?>" hidefocus="true"><span>主题</span></a></li>
<li<? if($item == 'posts') { ?> class="current"<? } ?>><a href="my.php?item=posts<?=$extrafid?>" hidefocus="true"><span>回复</span></a></li>
<li class="pipe">|</li>
<li id="polls" onmouseover="showMenu(this.id)"<? if($item == 'polls') { ?> class="current"<? } ?>><a href="my.php?item=polls&type=poll<?=$extrafid?>" hidefocus="true" class="dropmenu"><span>投票</span></a></li>
<li id="rewards" onmouseover="showMenu(this.id)"<? if($item == 'reward') { ?> class="current"<? } ?>><a href="my.php?item=reward&type=stats<?=$extrafid?>" hidefocus="true" class="dropmenu"><span>悬赏</span></a></li>
<li id="activities" onmouseover="showMenu(this.id)"<? if($item == 'activities') { ?> class="current"<? } ?>><a href="my.php?item=activities&type=orig<?=$extrafid?>" hidefocus="true" class="dropmenu"><span>活动</span></a></li>
<li id="debates" onmouseover="showMenu(this.id)"<? if($item == 'debate') { ?> class="current"<? } ?>><a href="my.php?item=debate&type=orig<?=$extrafid?>" hidefocus="true" class="dropmenu"><span>辩论</span></a></li>
<? if($videoopen || $tradeopen) { ?><li class="pipe">|</li><? } if($videoopen) { ?><li<? if($item == 'video') { ?> class="current"<? } ?>><a href="my.php?item=video&type=orig<?=$extrafid?>" hidefocus="true"><span>视频</span></a></li><? } if($tradeopen) { ?><li id="trades" onmouseover="showMenu(this.id)"<? if(in_array($item, array('tradestats', 'selltrades', 'buytrades', 'tradethreads'))) { ?> class="current"<? } ?>><a href="my.php?item=tradestats<?=$extrafid?>" hidefocus="true" class="dropmenu"><span>商品</span></a></li><? } ?>
</ul>
<? } elseif($item == 'favorites') { ?>
<h1>我的收藏</h1>
<ul>
<li<? if($type == 'thread') { ?> class="current"<? } ?>><a href="my.php?item=favorites&type=thread<?=$extrafid?>"><span>收藏的主题</span></a></li>
<li<? if($type == 'forum') { ?> class="current"<? } ?>><a href="my.php?item=favorites&type=forum<?=$extrafid?>"><span>收藏的版块</span></a></li>
</ul>
<? } elseif($item == 'subscriptions') { ?>
<h1>我的订阅</h1>
<? } ?>
</div>
<? if($forumname) { ?><div class="c_header"><strong>版块范围: <?=$forumname?></strong> <a href="my.php?item=<?=$item?><? if($type) { ?>&type=<?=$type?><? } ?>" class="lightlink">(显示全部)</a></div><? } } ?>
<div class="<? if(!in_array($item, array('tradestats', 'selltrades', 'buytrades', 'tradethreads'))) { ?>threadlist <? } ?>datalist">
<? if(empty($item) || $item == 'threads') { include template('my_threads'); } elseif($item == 'posts') { include template('my_posts'); } elseif($item == 'polls') { include template('my_polls'); } elseif(in_array($item, array('tradestats', 'selltrades', 'buytrades', 'tradethreads'))) { if($item == 'tradestats') { include template('my_tradestats'); } elseif($item == 'selltrades' || $item == 'buytrades') { include template('my_trades'); } elseif($item == 'tradethreads') { include template('my_tradethreads'); } } elseif($item == 'reward') { include template('my_rewards'); } elseif($item == 'activities') { include template('my_activities'); } elseif($item == 'debate') { include template('my_debate'); } elseif($item == 'video') { include template('my_video'); } elseif($item == 'favorites') { include template('my_favorites'); } elseif($item == 'subscriptions') { include template('my_subscriptions'); } elseif($item == 'buddylist') { include template('my_buddylist'); } ?>
</div>
<ul class="popupmenu_popup titlemenu_popup" id="polls_menu" style="display: none">
<li <? if($type == 'poll') { ?> class="current"<? } ?>><a href="my.php?item=polls&type=poll<?=$extrafid?>">我发起的</a></li>
<li <? if($type == 'join') { ?> class="current"<? } ?>><a href="my.php?item=polls&type=join<?=$extrafid?>">我参与的</a></li>
</ul>
<ul class="popupmenu_popup titlemenu_popup" id="rewards_menu" style="display: none">
<li <? if($type == 'question') { ?> class="current"<? } ?>><a href="my.php?item=reward&type=question<?=$extrafid?>">我发起的</a></li>
<li <? if($type == 'answer') { ?> class="current"<? } ?>><a href="my.php?item=reward&type=answer<?=$extrafid?>">我参与的</a></li>
<li <? if($type == 'stats') { ?> class="current"<? } ?>><a href="my.php?item=reward&type=stats<?=$extrafid?>">统计</a></li>
</ul>
<ul class="popupmenu_popup titlemenu_popup" id="activities_menu" style="display: none">
<li <? if($type == 'orig') { ?> class="current"<? } ?>><a href="my.php?item=activities&type=orig<?=$extrafid?>">我发起的</a></li>
<li <? if($type == 'apply') { ?> class="current"<? } ?>><a href="my.php?item=activities&type=apply<?=$extrafid?>">我参与的</a></li>
</ul>
<ul class="popupmenu_popup titlemenu_popup" id="debates_menu" style="display: none">
<li <? if($item == 'debate' && $type == 'orig') { ?> class="current"<? } ?>><a href="my.php?item=debate&type=orig<?=$extrafid?>">我发起的</a></li>
<li <? if($item == 'debate' && $type == 'reply') { ?> class="current"<? } ?>><a href="my.php?item=debate&type=reply<?=$extrafid?>">我参与的</a></li>
</ul>
<ul class="popupmenu_popup titlemenu_popup" id="trades_menu" style="display: none">
<li <? if($item == 'buytrades') { ?> class="current"<? } ?>><a href="my.php?item=buytrades<?=$extrafid?>">买</a></li>
<li <? if($item == 'tradethreads') { ?> class="current"<? } ?>><a href="my.php?item=tradethreads<?=$extrafid?>">卖</a></li>
<li <? if($item == 'selltrades') { ?> class="current"<? } ?>><a href="my.php?item=selltrades&filter=all">卖家交易记录</a></li>
<li><a href="eccredit.php?uid=<?=$discuz_uid?>" target="_blank">信用评价</a></li>
<li <? if($item == 'tradestats') { ?> class="current"<? } ?>><a href="my.php?item=tradestats<?=$extrafid?>">交易记录</a></li>
</ul>
</div>
</div>
<div class="side"><h2>个人中心</h2>
<div class="sideinner">
<ul class="tabs">
<? if($regverify == 1 && $groupid == 8) { ?>
<li><a href="member.php?action=emailverify">重新验证 Email</a></li>
<? } if($regverify == 2 && $groupid == 8) { ?>
<li><a href="memcp.php?action=validating">账户审核</a></li>
<li><a href="memcp.php?action=profile&typeid=2">个人资料</a></li>
<? } else { ?>
<li><a href="memcp.php?action=profile&typeid=2">个人资料</a></li>
<li><a href="pm.php">短消息</a></li>
<li><a href="my.php?item=buddylist&<?=$extrafid?>">我的好友</a></li>
<? if($regstatus > 1) { ?><li><a href="invite.php">邀请注册</a></li><? } if($ucappopen['UCHOME']) { ?>
<li><a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">我的空间</a></li>
<? } elseif($ucappopen['XSPACE']) { ?>
<li><a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">我的空间</a></li>
<? } } ?>
</ul>
</div>
<? if($groupid != 8) { ?>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="my.php?item=threads<?=$extrafid?>">我的帖子</a></li>
<li><a href="my.php?item=favorites&type=thread<?=$extrafid?>">我的收藏</a></li>
<li><a href="my.php?item=subscriptions<?=$extrafid?>">我的订阅</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="memcp.php?action=credits">积分</a></li>
<li><a href="memcp.php?action=usergroups">用户组&权限</a></li>
<li><a href="task.php">论坛任务</a></li>
<? if($medalstatus) { ?><li><a href="medal.php">勋章</a></li><? } if($magicstatus) { ?><li><a href="magic.php">道具</a></li><? } ?>
</ul>
</div>
<? } ?>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="memcp.php?action=profile&typeid=5">论坛个性化设定</a></li>
<li><a href="memcp.php?action=profile&typeid=1">密码和安全问题</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li>积分: <?=$credits?></li><? if(is_array($extcredits)) { foreach($extcredits as $id => $credit) { ?><li>
<? if($BASESCRIPT == 'invite.php' && $id == $creditstransextra['4'] ||
$BASESCRIPT == 'memcp.php' && $id == $creditstrans) { ?>
<?=$credit['title']?>: <span style="font-weight: bold;"><?=$GLOBALS['extcredits'.$id]?></span> <?=$credit['unit']?>
<? } else { ?>
<?=$credit['title']?>: <?=$GLOBALS['extcredits'.$id]?> <?=$credit['unit']?>
<? } ?>
</li><? } } ?></ul>
</div></div>
</div>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_my.tpl.php
|
PHP
|
asf20
| 34,054
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); ob_end_clean(); ob_start(); @header("Expires: -1"); @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE); @header("Pragma: no-cache"); @header("Content-type: application/xml; charset=$charset"); echo '<?xml version="1.0" encoding="'.$charset.'"?>';; ?><root><![CDATA[
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_header_ajax.tpl.php
|
PHP
|
asf20
| 355
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/footer.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/jsmenu.htm', 1250740646, '2', './templates/uchome')
;?>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_footer.tpl.php
|
PHP
|
asf20
| 3,419
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread_node.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread_pay.htm', 1250689759, '1', './templates/default')
;?>
<div id="post_<?=$post['pid']?>">
<table id="pid<?=$post['pid']?>" summary="pid<?=$post['pid']?>" cellspacing="0" cellpadding="0">
<tr>
<td class="postauthor">
<? if($post['authorid'] && $post['username'] && !$post['anonymous']) { if($authoronleft) { ?>
<div class="postinfo">
<a target="_blank" href="space.php?uid=<?=$post['authorid']?>" style="margin-left: 20px; font-weight: 800"><?=$post['author']?></a>
</div>
<? } ?>
<div class="popupmenu_popup userinfopanel" id="userinfo<?=$post['pid']?>" style="display: none; position: absolute;<? if($authoronleft) { ?>margin-top: -11px;<? } ?>">
<div class="popavatar">
<div id="userinfo<?=$post['pid']?>_ma"></div>
<ul class="profile_side">
<li class="pm"><a href="pm.php?action=new&uid=<?=$post['authorid']?>" onclick="floatwin('open_sendpm', this.href, 600, 410);return false;" title="发短消息">发短消息</a></li>
<? if($post['msn']['1']) { ?>
<li style="text-indent:0"><a target="_blank" href="http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=<?=$post['msn']['1']?>@apps.messenger.live.com&mkt=zh-cn" title="MSN 聊天"><img style="border-style: none; margin-right: 5px; vertical-align: middle;" src="http://messenger.services.live.com/users/<?=$post['msn']['1']?>@apps.messenger.live.com/presenceimage?mkt=zh-cn" width="16" height="16" />MSN 聊天</a></li>
<? } ?>
<li class="buddy"><a href="my.php?item=buddylist&newbuddyid=<?=$post['authorid']?>&buddysubmit=yes" target="_blank" id="ajax_buddy_<?=$post['count']?>" title="加为好友" onclick="ajaxmenu(event, this.id, 3000, 0)">加为好友</a></li>
</ul>
</div>
<div class="popuserinfo">
<p>
<a href="space.php?uid=<?=$post['authorid']?>" target="_blank"><?=$post['author']?></a>
<? if($post['nickname']) { ?><em>(<?=$post['nickname']?>)</em><? } if($vtonlinestatus && $post['authorid']) { if(($vtonlinestatus == 2 && $onlineauthors[$post['authorid']]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])) { ?>
<em>当前在线
<? } else { ?>
<em>当前离线
<? } ?>
</em>
<? } ?>
</p>
<? if($post['customstatus']) { ?><p class="customstatus"><?=$post['customstatus']?></p><? } ?>
<dl class="s_clear"><? @eval('echo "'.$customauthorinfo['2'].'";'); ?></dl>
<div class="imicons">
<? if($post['qq']) { ?><a href="http://wpa.qq.com/msgrd?V=1&Uin=<?=$post['qq']?>&Site=<?=$bbname?>&Menu=yes" target="_blank" title="QQ"><img src="<?=IMGDIR?>/qq.gif" alt="QQ" /></a><? } if($post['icq']) { ?><a href="http://wwp.icq.com/scripts/search.dll?to=<?=$post['icq']?>" target="_blank" title="ICQ"><img src="<?=IMGDIR?>/icq.gif" alt="ICQ" /></a><? } if($post['yahoo']) { ?><a href="http://edit.yahoo.com/config/send_webmesg?.target=<?=$post['yahoo']?>&.src=pg" target="_blank" title="Yahoo"><img src="<?=IMGDIR?>/yahoo.gif" alt="Yahoo!" /></a><? } if($post['taobao']) { ?><a href="javascript:;" onclick="window.open('http://amos.im.alisoft.com/msg.aw?v=2&uid='+encodeURIComponent('<?=$post['taobaoas']?>')+'&site=cntaobao&s=2&charset=utf-8')" title="taobao"><img src="<?=IMGDIR?>/taobao.gif" alt="阿里旺旺" /></a><? } if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$post['authorid']?>" target="_blank" title="个人空间"><img src="<?=IMGDIR?>/home.gif" alt="个人空间" /></a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$post['authorid']?>" target="_blank" title="个人空间"><img src="<?=IMGDIR?>/home.gif" alt="个人空间" /></a>
<? } if($post['site']) { ?><a href="<?=$post['site']?>" target="_blank" title="查看个人网站"><img src="<?=IMGDIR?>/forumlink.gif" alt="查看个人网站" /></a><? } ?>
<a href="space.php?uid=<?=$post['authorid']?>" target="_blank" title="查看详细资料"><img src="<?=IMGDIR?>/userinfo.gif" alt="查看详细资料" /></a>
</div>
<div id="avatarfeed"><span id="threadsortswait"></span></div>
</div>
</div>
<? } ?>
<?=$post['newpostanchor']?> <?=$post['lastpostanchor']?>
<? if($post['authorid'] && $post['username'] && !$post['anonymous']) { ?>
<div id="userinfo<?=$post['pid']?>_a">
<? if($bannedmessages & 2 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1))) { ?>
<div class="avatar">头像被屏蔽</div>
<? } elseif($post['avatar'] && $showavatars) { ?>
<div class="avatar" onmouseover="showauthor(this, 'userinfo<?=$post['pid']?>')"><a href="space.php?uid=<?=$post['authorid']?>" target="_blank"><?=$post['avatar']?></a></div>
<? } ?>
<p><em><?=$post['authortitle']?></em></p>
</div>
<p><? showstars($post['stars']); ?></p>
<? if($customauthorinfo['1']) { ?><dl class="profile s_clear"><? @eval('echo "'.$customauthorinfo['1'].'";'); ?></dl><? } if($post['medals']) { ?><p><? if(is_array($post['medals'])) { foreach($post['medals'] as $medal) { ?><img src="images/common/<?=$medal['image']?>" alt="<?=$medal['name']?>" title="<?=$medal['name']?>" /><? } } ?></p>
<? } } else { ?>
<div class="avatar">
<? if(!$post['authorid']) { ?>
<a href="javascript:;">游客 <em><?=$post['useip']?></em></a>
<? } elseif($post['authorid'] && $post['username'] && $post['anonymous']) { if($forum['ismoderator']) { ?><a href="space.php?uid=<?=$post['authorid']?>" target="_blank">匿名</a><? } else { ?>匿名<? } } else { ?>
<?=$post['author']?> <em>该用户已被删除</em>
<? } ?>
</div>
<? } if($allowedituser || $allowbanuser || ($forum['ismoderator'] && $allowviewip && ($thread['digest'] >= 0 || !$post['first']))) { ?>
<hr class="shadowline" />
<p>
<? if($forum['ismoderator'] && $allowviewip && ($thread['digest'] >= 0 || !$post['first'])) { ?>
<a href="javascript:;" onclick="ajaxget('topicadmin.php?action=getip&fid=<?=$fid?>&tid=<?=$tid?>&pid=<?=$post['pid']?>', 'ajax_getip_<?=$post['count']?>');doane(event)" title="查看 IP" class="lightlink">IP</a>
<? } if($allowedituser) { ?>
<a href="<? if($adminid == 1) { ?>admincp.php?action=members&username=<?=$post['usernameenc']?>&submit=yes&frames=yes<? } else { ?>modcp.php?action=members&op=edit&uid=<?=$post['authorid']?><? } ?>" target="_blank" class="lightlink">编辑此人</a>
<? } if($allowbanuser) { if($adminid == 1) { ?><a href="admincp.php?action=members&operation=ban&username=<?=$post['usernameenc']?>&frames=yes" target="_blank" class="lightlink">禁止此人</a>
<? } else { ?><a href="modcp.php?action=members&op=ban&uid=<?=$post['authorid']?>" target="_blank" class="lightlink">禁止此人</a>
<? } } ?>
</p>
<p id="ajax_getip_<?=$post['count']?>"></p>
<? } ?>
</td>
<td class="postcontent">
<div class="postinfo">
<strong><a title="复制本帖链接" id="postnum<?=$post['pid']?>" href="javascript:;" onclick="setcopy('<?=$boardurl?>viewthread.php?tid=<?=$tid?>&page=<?=$page?><?=$fromuid?>#pid<?=$post['pid']?>', '帖子地址已经复制到剪贴板')"><? if(!empty($postno[$post['number']])) { ?><?=$postno[$post['number']]?><? } else { ?><em><?=$post['number']?></em><?=$postno['0']?><? } ?></a></strong>
<div class="posterinfo">
<div class="pagecontrol">
<? if($post['first']) { ?>
<a href="viewthread.php?action=printable&tid=<?=$tid?>" target="_blank" class="print left">打印</a>
<? if(MSGBIGSIZE) { ?>
<div class="msgfsize right">
<label>字体大小: </label><small onclick="$('postlist').className='mainbox viewthread'" title="正常">t</small><big onclick="$('postlist').className='mainbox viewthread t_bigfont'" title="放大">T</big>
</div>
<? } } elseif($thread['special'] == 5) { ?>
<span class="debatevote poststand_<? echo intval($post['stand']); ?>">
<label><? if($post['stand'] == 1) { ?><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=1" title="只看正方">正方</a>
<? } elseif($post['stand'] == 2) { ?><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=2" title="只看反方">反方</a>
<? } else { ?><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=0" title="只看中立">中立</a><? } ?>
</label>
<? if($post['stand']) { ?>
<span><a href="misc.php?action=debatevote&tid=<?=$tid?>&pid=<?=$post['pid']?>" id="voterdebate_<?=$post['pid']?>" onclick="ajaxmenu(event, this.id)">支持我</a><?=$post['voters']?></span>
<? } ?>
</span>
<? } ?>
</div>
<div class="authorinfo">
<? if($_DCACHE['groupicon'][$post['groupid']]) { ?>
<img class="authicon" id="authicon<?=$post['pid']?>" src="<?=$_DCACHE['groupicon'][$post['groupid']]?>" onclick="showauthor(this, 'userinfo<?=$post['pid']?>')" />
<? } else { ?>
<img class="authicon" id="authicon<?=$post['pid']?>" src="images/common/online_member.gif" onclick="showauthor(this, 'userinfo<?=$post['pid']?>');" />
<? } if($post['authorid'] && !$post['anonymous']) { if(!$authoronleft) { ?><a href="space.php?uid=<?=$post['authorid']?>" class="posterlink" target="_blank"><?=$post['author']?></a><? } ?><em id="authorposton<?=$post['pid']?>">发表于 <?=$post['dateline']?></em>
<? if(!$authorid) { ?>
| <a href="viewthread.php?tid=<?=$post['tid']?>&page=<?=$page?>&authorid=<?=$post['authorid']?>" rel="nofollow">只看该作者</a>
<? } else { ?>
| <a href="viewthread.php?tid=<?=$post['tid']?>&page=<?=$page?>" rel="nofollow">显示全部帖子</a>
<? } } elseif($post['authorid'] && $post['username'] && $post['anonymous']) { ?>
匿名 <em id="authorposton<?=$post['pid']?>">发表于 <?=$post['dateline']?></em>
<? } elseif(!$post['authorid'] && !$post['username']) { ?>
游客 <em id="authorposton<?=$post['pid']?>">发表于 <?=$post['dateline']?></em>
<? } ?>
</div>
</div>
</div>
<div class="defaultpost">
<? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['thread2'][$post['count']])) { ?><div class="ad_textlink2" id="ad_thread2_<?=$post['count']?>"><?=$advlist['thread2'][$post['count']]?></div><? } else { ?><div id="ad_thread2_<?=$post['count']?>"></div><? } if($admode && empty($insenz['hardadstatus']) && !empty($advlist['thread3'][$post['count']])) { ?><div class="ad_pip" id="ad_thread3_<?=$post['count']?>"><?=$advlist['thread3'][$post['count']]?></div><? } else { ?><div id="ad_thread3_<?=$post['count']?>"></div><? } ?><div id="ad_thread4_<?=$post['count']?>"></div>
<div class="postmessage <? if($post['first']) { ?>firstpost<? } ?>">
<? if($post['warned']) { ?>
<span class="postratings"><a href="misc.php?action=viewwarning&tid=<?=$tid?>&uid=<?=$post['authorid']?>" title="受到警告" onclick="floatwin('open_viewwarning', this.href, 600, 410);return false;"><img src="<?=IMGDIR?>/warning.gif" border="0" /></a></span>
<? } if($thread['special'] == 3 && $post['first']) { if($thread['price'] > 0) { ?>
<cite class="re_unsolved">未解决</cite>
<? } elseif($thread['price'] < 0) { ?>
<cite class="re_solved">已解决</cite>
<? } if($activityclose) { ?><cite class="re_solved">活动已结束</cite><? } } if($post['first']) { ?>
<div id="threadtitle">
<? if($thread['readperm']) { ?><em>所需阅读权限 <?=$thread['readperm']?></em><? } ?>
<h1><?=$thread['subject']?></h1>
<? if($thread['tags'] || $relatedkeywords) { ?>
<div class="threadtags">
<? if($thread['tags']) { ?><?=$thread['tags']?><? } if($relatedkeywords) { ?><span class="postkeywords"><?=$relatedkeywords?></span><? } ?>
</div>
<? } ?>
</div>
<? if($thread['special'] == 2 && !$post['message'] && $post['authorid'] == $discuz_uid) { ?>
<p>
<a href="post.php?action=edit&fid=<?=$fid?>&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_edit', this.href, 600, 410, '600,0');return false;">添加柜台介绍</a>
</p>
<? } } elseif($post['subject']) { ?>
<h2><?=$post['subject']?></h2>
<? } if($adminid != 1 && $bannedmessages & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))) { ?>
<div class="locked">提示: <em>作者被禁止或删除 内容自动屏蔽</em></div>
<? } elseif($adminid != 1 && $post['status'] & 1) { ?>
<div class="locked">提示: <em>该帖被管理员或版主屏蔽</em></div>
<? } elseif($post['first'] && $threadpay) { if($thread['freemessage']) { ?>
<div id="postmessage_<?=$pid?>" class="t_msgfont"><?=$thread['freemessage']?></div>
<? } ?>
<div class="locked">
<a href="javascript:;" class="right viewpay" title="购买主题" onclick="floatwin('open_pay', 'misc.php?action=pay&tid=<?=$tid?>&pid=<?=$post['pid']?>', 600, 410)">购买主题</a>
<em class="right">
已购买人数:<?=$thread['payers']?> <a href="misc.php?action=viewpayments&tid=<?=$tid?>" onclick="floatwin('open_pay', this.href, 600, 410);return false;">记录</a>
</em>
<? if($thread['price'] > 0) { ?>本主题需向作者支付 <strong><?=$thread['price']?> <?=$extcredits[$creditstransextra['1']]['title']?> </strong> 才能浏览<? } if($thread['endtime']) { ?>本主题购买截止日期为 <?=$thread['endtime']?>,到期后将免费<? } ?>
</div>
</div><? } else { if($bannedmessages & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))) { ?>
<div class="locked">提示: <em>作者被禁止或删除 内容自动屏蔽,只有管理员可见</em></div>
<? } elseif($post['status'] & 1) { ?>
<div class="locked">提示: <em>该帖被管理员或版主屏蔽,只有管理员可见</em></div>
<? } if($post['first']) { if($thread['price'] > 0 && $thread['special'] == 0) { ?>
<div class="locked"><em class="right"><a href="misc.php?action=viewpayments&tid=<?=$tid?>" onclick="floatwin('open_pay', this.href, 600, 410);return false;">记录</a></em>付费主题, 价格:<strong><?=$extcredits[$creditstransextra['1']]['title']?> <?=$thread['price']?> <?=$extcredits[$creditstransextra['1']]['unit']?> </strong></div>
<? } if($typetemplate) { ?>
<?=$typetemplate?>
<? } elseif($optionlist && !($post['status'] & 1) && !$threadpay) { ?>
<div class="typeoption">
<h4><?=$forum['threadsorts']['types'][$thread['sortid']]?></h4>
<table summary="分类信息" cellpadding="0" cellspacing="0" class="formtable datatable"><? if(is_array($optionlist)) { foreach($optionlist as $option) { ?><tr class="<? echo swapclass('colplural'); ?>">
<th><?=$option['title']?></th>
<td><? if($option['value']) { ?><?=$option['value']?><? } else { ?>-<? } ?></td>
</tr><? } } ?></table>
</div>
<? } if($thread['special'] == 1) { include template('viewthread_poll'); } elseif($thread['special'] == 3) { include template('viewthread_reward_price'); } elseif($thread['special'] == 4) { include template('viewthread_activity_info'); } elseif($thread['special'] == 5) { include template('viewthread_debate_umpire'); } elseif($thread['special'] == 6) { include template('viewthread_video'); } } ?>
<div class="<? if(!$thread['special']) { ?>t_msgfontfix<? } else { ?>specialmsg<? } ?>">
<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_<?=$post['pid']?>"><?=$post['message']?></td></tr></table>
<? if($post['first']) { if($thread['special'] == 2) { include template('viewthread_trade'); } elseif($thread['special'] == 3) { if($bapid) { $bestpost = $postlist[$bapid];unset($postlist[$bapid]); } include template('viewthread_reward'); } elseif($thread['special'] == 4) { include template('viewthread_activity'); } elseif($thread['special'] == 5) { include template('viewthread_debate'); } } if($post['attachment']) { ?>
<div class="locked">附件: <em>您所在的用户组无法下载或查看附件</em></div>
<? } elseif($hideattach[$post['pid']] && $post['attachments']) { ?>
<div class="locked">附件: <em>本帖附件需要回复才可下载或查看</em></div>
<? } elseif($post['imagelist'] || $post['attachlist']) { ?>
<div class="postattachlist">
<? if($post['imagelist']) { ?>
<?=$post['imagelist']?>
<? } if($post['attachlist']) { ?>
<?=$post['attachlist']?>
<? } ?>
</div>
<? } if($relatedthreadlist && !$qihoo['relate']['position'] && $post['first']) { ?>
<div class="tagrelated">
<h3><em><a href="http://search.qihoo.com/sint/qusearch.html?kw=<?=$searchkeywords?>&sort=rdate&ics=<?=$charset?>&domain=<?=$site?>&tshow=1" target="_blank">更多相关主题</a></em>相关主题</h3>
<ul><? if(is_array($relatedthreadlist)) { foreach($relatedthreadlist as $key => $threads) { if($threads['tid'] != $tid) { ?>
<li>
<? if(!$threads['insite']) { ?>
[站外] <a href="topic.php?url=<? echo urlencode($threads['tid']); ?>&md5=<? echo md5($threads['tid']); ?>&statsdata=<?=$fid?>||<?=$tid?>" target="_blank"><?=$threads['title']?></a>
[ <a href="post.php?action=newthread&fid=<?=$fid?>&extra=<?=$extra?>&url=<? echo urlencode($threads['tid']); ?>&md5=<? echo md5($threads['tid']); ?>&from=direct" style="color: #090" target="_blank">转帖</a> ]
<? } else { ?>
<a href="viewthread.php?tid=<?=$threads['tid']?>&statsdata=<?=$fid?>||<?=$tid?>" target="_blank"><?=$threads['title']?></a>
<? } ?>
</li>
<? } } } ?></ul>
</div>
<? } if($post['first'] && $relatedtagstatus) { ?>
<div id="relatedtags"></div>
<script src="tag.php?action=relatetag&rtid=<?=$tid?>" type="text/javascript" reload="1"></script>
<? } ?>
</div>
<? if(!empty($post['ratelog'])) { ?>
<dl class="newrate">
<dt>
<? if(!empty($postlist[$post['pid']]['totalrate'])) { ?>
<strong><a href="misc.php?action=viewratings&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_viewratings', this.href, 600, 410);return false;" title="本帖最近评分记录"><? echo count($postlist[$post['pid']]['totalrate']);; ?></a></strong>
<p>评分次数</p>
<? } ?>
</dt>
<dd>
<ul class="s_clear">
<div id="post_rate_<?=$post['pid']?>"></div><? if(is_array($post['ratelog'])) { foreach($post['ratelog'] as $uid => $ratelog) { ?><li>
<div id="rate_<?=$post['pid']?>_<?=$uid?>_menu" class="attach_popup" style="display: none;">
<p class="cornerlayger"><?=$ratelog['reason']?> <? if(is_array($ratelog['score'])) { foreach($ratelog['score'] as $id => $score) { if($score > 0) { ?>
<em><?=$extcredits[$id]['title']?> + <?=$score?> <?=$extcredits[$id]['unit']?></em>
<? } else { ?>
<?=$extcredits[$id]['title']?> <?=$score?> <?=$extcredits[$id]['unit']?>
<? } } } ?></p>
<p class="minicorner"></p>
</div>
<p id="rate_<?=$post['pid']?>_<?=$uid?>" onmouseover="showMenu(this.id,false,2)" class="rateavatar"><a href="space.php?uid=<?=$uid?>" target="_blank"><? echo discuz_uc_avatar($uid, 'small');; ?></a></p>
<p><a href="space.php?uid=<?=$uid?>" target="_blank"><?=$ratelog['username']?></a></p>
</li><? } } ?></ul>
</dd>
</dl>
<? } else { ?>
<div id="post_rate_div_<?=$post['pid']?>"></div>
<? } } if($post['first']) { if($lastmod['modaction']) { ?><div class="modact"><a href="misc.php?action=viewthreadmod&tid=<?=$tid?>" title="主题操作记录" onclick="floatwin('open_viewthreadmod', this.href, 600, 410);return false;">本主题由 <?=$lastmod['modusername']?> 于 <?=$lastmod['moddateline']?> <?=$lastmod['modaction']?></a></div><? } if($lastmod['magicname']) { ?><div class="modact"><a href="misc.php?action=viewthreadmod&tid=<?=$tid?>" title="主题操作记录" onclick="floatwin('open_viewthreadmod', this.href, 600, 410);return false;">本主题由 <?=$lastmod['modusername']?> 于 <?=$lastmod['moddateline']?> 使用 <?=$lastmod['magicname']?> 道具</a></div><? } ?>
<div class="useraction">
<a id="ajax_favorite" <? if($discuz_uid) { ?>href="my.php?item=favorites&tid=<?=$tid?>" onclick="ajaxmenu(event, this.id, 3000, 0)"<? } else { ?>href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;"<? } ?>>收藏</a>
<a id="emailfriend" href="misc.php?action=emailfriend&tid=<?=$tid?>" onclick="floatwin('open_emailfriend', this.href, 250, <? if($discuz_uid) { ?>380<? } else { ?>200<? } ?>);return false;">分享</a>
<a id="ratelink" <? if($discuz_uid) { ?>href="misc.php?action=rate&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_rate', this.href, 250, 270);return false;"<? } else { ?>href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;"<? } ?>>评分</a>
</div>
<? } ?>
</div>
</div>
<? if($post['signature'] && ($bannedmessages & 4 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1)))) { ?>
<div class="signatures">
<table cellspacing="0" cellpadding="0">
<tr>
<td>签名被屏蔽</td>
</tr>
</table>
</div>
<? } elseif($post['signature'] && !$post['anonymous'] && $showsignatures) { ?>
<div class="signatures" style="maxHeightIE: <?=$maxsigrows?>px;">
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<?=$post['signature']?>
</td>
</tr>
</table>
</div>
<? } if($admode && empty($insenz['hardadstatus']) && !empty($advlist['thread1'][$post['count']])) { ?><div class="ad_textlink1" id="ad_thread1_<?=$post['count']?>"><?=$advlist['thread1'][$post['count']]?></div><? } else { ?><div id="ad_thread1_<?=$post['count']?>"></div><? } ?>
</td>
</tr>
<tr>
<td class="postauthor"></td>
<td class="postcontent">
<div class="postactions">
<? if($forum['ismoderator'] && ($allowdelpost || $allowbanpost)) { ?>
<span class="right">
<label for="manage<?=$post['pid']?>">
<? if($post['first'] && $thread['digest'] == -1) { ?>
<input type="checkbox" id="manage<?=$post['pid']?>" disabled="disabled" />
<? } else { ?>
<input type="checkbox" id="manage<?=$post['pid']?>" <? if(!empty($modclick)) { ?>checked="checked" <? } ?>onclick="pidchecked(this);modclick(this, <?=$post['pid']?>)" value="<?=$post['pid']?>" />
<? } ?>
管理
</label>
</span>
<? } ?>
<div class="postact s_clear">
<em>
<a class="fastreply" href="post.php?action=reply&fid=<?=$fid?>&tid=<?=$tid?>&reppost=<?=$post['pid']?>&extra=<?=$extra?>&page=<?=$page?>" onclick="floatwin('open_reply', this.href, 600, 410, '600,0');return false;">回复</a>
<a class="repquote" href="post.php?action=reply&fid=<?=$fid?>&tid=<?=$tid?>&repquote=<?=$post['pid']?>&extra=<?=$extra?>&page=<?=$page?>" onclick="floatwin('open_reply', this.href, 600, 410, '600,0');return false;">引用</a>
<? if((($forum['ismoderator'] && $alloweditpost && !(in_array($post['adminid'], array(1, 2, 3)) && $adminid > $post['adminid'])) || ($forum['alloweditpost'] && $discuz_uid && $post['authorid'] == $discuz_uid)) && ($thread['digest'] >= 0 || !$post['first'])) { ?>
<a class="editpost" href="post.php?action=edit&fid=<?=$fid?>&tid=<?=$tid?>&pid=<?=$post['pid']?>"<? if(!$post['first'] || !$threadsort && !$thread['special']) { ?> onclick="floatwin('open_edit', this.href, 600, 410, '600,0');return false;"<? } ?>>编辑</a>
<? } ?>
</em>
<p>
<? if($thread['special'] == 3 && ($forum['ismoderator'] || $thread['authorid'] == $discuz_uid) && $discuz_uid != $post['authorid'] && $post['authorid'] != $thread['authorid'] && $post['first'] == 0 && $thread['price'] > 0) { ?>
<a href="javascript:;" onclick="setanswer(<?=$post['pid']?>)">最佳答案</a>
<? } if($post['first']) { ?>
<a href="my.php?item=subscriptions&subadd=<?=$tid?>" id="ajax_subscription" onclick="ajaxmenu(event, this.id, 3000, null, 0)">订阅</a>
<? } elseif($raterange && $post['authorid']) { ?>
<a href="misc.php?action=rate&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_rate', this.href, 250, 270);return false;">评分</a>
<? } if($post['rate'] && $forum['ismoderator']) { ?>
<a href="misc.php?action=removerate&tid=<?=$tid?>&pid=<?=$post['pid']?>&page=<?=$page?>" onclick="floatwin('open_rate', this.href, 600, 410);return false;">撤销评分</a>
<? } if(!$forum['ismoderator'] && $discuz_uid && $reportpost && $discuz_uid != $post['authorid']) { ?>
<a href="misc.php?action=report&fid=<?=$fid?>&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_report', this.href, 250, 215);doane(event);">报告</a>
<? } if($discuz_uid && $magicstatus) { ?>
<a href="magic.php?action=usemagic&type=1&pid=<?=$post['pid']?>" onclick="floatwin('open_magics', this.href, 250, 215);doane(event);">道具</a>
<? } ?>
<a href="javascript:;" onclick="scrollTo(0,0);">TOP</a>
</p>
</div>
</div>
</td>
</tr>
<tr class="threadad">
<td class="postauthor"></td>
<td class="adcontent">
<? if($post['first'] && $thread['replies']) { if($admode && empty($insenz['hardadstatus']) && !empty($advlist['interthread'])) { ?><div class="ad_column" id="ad_interthread"><?=$advlist['interthread']?><? } else { ?><div id="ad_interthread"><? } ?></div><? } ?>
</td>
</tr>
<? if($post['first'] && $thread['special'] == 5 && $stand != '') { ?>
<tr class="threadad stand_select">
<td class="postauthor" style="background: #EBF2F8;"></td>
<td>
<div class="itemtitle s_clear">
<h2>按立场筛选: </h2>
<ul>
<li><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>" hidefocus="true"><span>全部</span></a></li>
<li <? if($stand == 1) { ?>class="current"<? } ?>><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=1" hidefocus="true"><span>正方</span></a></li>
<li <? if($stand == 2) { ?>class="current"<? } ?>><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=2" hidefocus="true"><span>反方</span></a></li>
<li <? if($stand == 0) { ?>class="current"<? } ?>><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=0" hidefocus="true"><span>中立</span></a></li>
</ul>
</div>
<hr class="solidline" />
</td>
</tr>
<? } ?>
</table>
<? if($aimgs[$post['pid']]) { ?>
<script type="text/javascript" reload="1">aimgcount[<?=$post['pid']?>] = [<? echo implode(',', $aimgs[$post['pid']]);; ?>];attachimgshow(<?=$post['pid']?>);</script>
<? } ?>
</div>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_viewthread_node.tpl.php
|
PHP
|
asf20
| 26,069
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/header.htm', 1250675098, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread_node.htm', 1250675098, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread_fastpost.htm', 1250675098, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/footer.htm', 1250675098, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/css_script.htm', 1250675098, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread_pay.htm', 1250675098, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/seditor.htm', 1250675098, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/viewthread.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/jsmenu.htm', 1250675098, '1', './templates/default')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<script src="include/js/viewthread.js?<?=VERHASH?>" type="text/javascript"></script>
<script type="text/javascript">zoomstatus = parseInt(<?=$zoomstatus?>);var imagemaxwidth = '<?=IMAGEMAXWIDTH?>';var aimgcount = new Array();</script>
<div id="nav">
<? if($forumjump == 1) { ?><a href="<?=$indexname?>" id="fjump" onmouseover="showMenu(this.id)" class="dropmenu"><?=$bbname?></a><? } else { ?><a href="<?=$indexname?>"><?=$bbname?></a><? } ?><?=$navigation?>
</div>
<? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['text'])) { ?><div class="ad_text" id="ad_text"><table summary="Text Ad" cellpadding="0" cellspacing="1"><?=$advlist['text']?></table></div><? } else { ?><div id="ad_text"></div><? } ?>
<div id="wrap" class="wrap s_clear threadfix">
<div class="forumcontrol">
<table cellspacing="0" cellpadding="0">
<tr>
<td class="modaction">
<? if($forum['ismoderator']) { ?>
<script type="text/javascript">
function modaction(action, pid, extra) {
if(!action) {
return;
}
var extra = !extra ? '' : '&' + extra;
if(!pid && in_array(action, ['delpost', 'banpost'])) {
var checked = 0;
var pid = '';
for(var i = 0; i < $('modactions').elements.length; i++) {
if($('modactions').elements[i].name.match('topiclist')) {
checked = 1;
break;
}
}
} else {
var checked = 1;
}
if(!checked) {
alert('请选择需要操作的帖子');
} else {
floatwinreset = 1;
$('modactions').action = 'topicadmin.php?action='+ action +'&fid=<?=$fid?>&tid=<?=$tid?>&infloat=yes&nopost=yes' + (!pid ? '' : '&topiclist[]=' + pid) + extra;
floatwin('open_mods', '', 250, action != 'split' ? 215 : 365);
$('floatwin_mods').innerHTML = '';
ajaxpost('modactions', 'floatwin_mods', '');
if(is_ie) {
doane(event);
}
hideMenu();
}
}
function modthreads(optgroup, operation) {
var operation = !operation ? '' : operation;
floatwinreset = 1;
$('modactions').action = 'topicadmin.php?action=moderate&fid=<?=$fid?>&moderate[]=<?=$tid?>&infloat=yes&nopost=yes' + (optgroup != 3 && optgroup != 2 ? '&from=<?=$tid?>' : '');
floatwin('open_mods', '', 250, optgroup < 2 ? 365 : 215);
$('modactions').optgroup.value = optgroup;
$('modactions').operation.value = operation;
$('floatwin_mods').innerHTML = '';
ajaxpost('modactions', 'floatwin_mods', '');
if(is_ie) {
doane(event);
}
}
function pidchecked(obj) {
if(obj.checked) {
if(is_ie && !is_opera) {
var inp = document.createElement('<input name="topiclist[]" />');
} else {
var inp = document.createElement('input');
inp.name = 'topiclist[]';
}
inp.id = 'topiclist_' + obj.value;
inp.value = obj.value;
inp.style.display = 'none';
$('modactions').appendChild(inp);
} else {
$('modactions').removeChild($('topiclist_' + obj.value));
}
}
var modclickcount = 0;
function modclick(obj, pid) {
if(obj.checked) {
modclickcount++;
} else {
modclickcount--;
}
$('modcount').innerHTML = modclickcount;
if(modclickcount > 0) {
var offset = fetchOffset(obj);
$('modlayer').style.top = offset['top'] - 65 + 'px';
$('modlayer').style.left = offset['left'] - 215 + 'px';
$('modlayer').style.display = '';
} else {
$('modlayer').style.display = 'none';
}
}
</script>
<span id="modopt" onclick="$('modopt').id = 'modopttmp';this.id = 'modopt';showMenu(this.id)" class="dropmenu">主题管理</span>
<? } ?>
</td>
<td>
<?=$multipage?>
<span class="pageback"<? if($visitedforums) { ?> id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu(this.id)"<? } ?>><a href="<?=$upnavlink?>">返回列表</a></span>
<span class="replybtn"><a href="post.php?action=reply&fid=<?=$fid?>&tid=<?=$tid?>" onclick="floatwin('open_reply', this.href, 600, 410, '600,0');return false;">回复</a></span>
<span class="postbtn" id="newspecial" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu(this.id)"><a href="post.php?action=newthread&fid=<?=$fid?>" onclick="floatwin('open_newthread', this.href, 600, 410, '600,0');return false;">发帖</a></span>
</td>
</tr>
</table>
</div>
<? if($forum['ismoderator']) { ?>
<ul class="popupmenu_popup headermenu_popup inlinelist" id="modopt_menu" style="width: 180px; display: none">
<? if($thread['digest'] >= 0) { if($allowdelpost) { ?><li class="wide"><a href="javascript:;" onclick="modthreads(3, 'delete')">删除主题</a></li><? } ?>
<li class="wide"><a href="javascript:;" onclick="modthreads(3, 'down')">提升下沉</a></li>
<? if($allowstickthread) { ?>
<li class="wide"><a href="javascript:;" onclick="modthreads(1, 'stick')">主题置顶</a></li>
<? } ?>
<li class="wide"><a href="javascript:;" onclick="modthreads(1, 'highlight')">高亮显示</a></li>
<li class="wide"><a href="javascript:;" onclick="modthreads(1, 'digest')">设置精华</a></li>
<? if($forum['modrecommend']['open'] && $forum['modrecommend']['sort'] != 1) { ?>
<li class="wide"><a href="javascript:;" onclick="modthreads(1, 'recommend')">推荐主题</a></li>
<? } ?>
<li class="wide"><a href="javascript:;" onclick="modthreads(4)">关闭打开</a></li>
<li class="wide"><a href="javascript:;" onclick="modthreads(2, 'move')">移动主题</a></li>
<li class="wide"><a href="javascript:;" onclick="modthreads(2, 'type')">主题分类</a></li>
<? if(!$thread['special']) { ?>
<li class="wide"><a href="javascript:;" onclick="modaction('copy')">复制主题</a></li>
<li class="wide"><a href="javascript:;" onclick="modaction('merge')">合并主题</a></li>
<? if($thread['price'] > 0 && $allowrefund) { ?>
<li class="wide"><a href="javascript:;" onclick="modaction('refund')">强制退款</a></li>
<? } } ?>
<li class="wide"><a href="javascript:;" onclick="modaction('split')">分割主题</a></li>
<li class="wide"><a href="javascript:;" onclick="modaction('repair')">修复主题</a></li>
<? } if($thread['special'] == 3) { ?>
<li class="wide"><a href="javascript:;" onclick="modaction('removereward')">取消悬赏</a></li>
<? } ?>
</ul>
<? if($allowbanpost || $allowdelpost) { ?>
<div id="modlayer" style="display:none;position:position;width:165px;">
<span>选中</span><strong id="modcount"></strong><span>篇: </span>
<? if($allowbanpost) { ?>
<a href="javascript:;" onclick="modaction('warn')">警告</a>
<a href="javascript:;" onclick="modaction('banpost')">屏蔽</a>
<? } if($allowdelpost) { ?>
<a href="javascript:;" onclick="modaction('delpost')">删除</a>
<? } ?>
</div>
<? } } if($allowposttrade || $allowpostpoll || $allowpostreward || $allowpostactivity || $allowpostdebate || $allowpostvideo || $forum['threadsorts'] || $forum['threadtypes'] || !$discuz_uid) { ?>
<ul class="popupmenu_popup postmenu" id="newspecial_menu" style="display: none">
<? if(!$forum['allowspecialonly']) { ?><li><a href="post.php?action=newthread&fid=<?=$fid?>" onclick="floatwin('open_newthread', this.href, 600, 410, '600,0');doane(event)">发新话题</a></li><? } if($allowpostpoll || !$discuz_uid) { ?><li class="poll"><a href="post.php?action=newthread&fid=<?=$fid?>&special=1">发布投票</a></li><? } if($allowpostreward || !$discuz_uid) { ?><li class="reward"><a href="post.php?action=newthread&fid=<?=$fid?>&special=3">发布悬赏</a></li><? } if($allowpostdebate || !$discuz_uid) { ?><li class="debate"><a href="post.php?action=newthread&fid=<?=$fid?>&special=5">发布辩论</a></li><? } if($allowpostactivity || !$discuz_uid) { ?><li class="activity"><a href="post.php?action=newthread&fid=<?=$fid?>&special=4">发布活动</a></li><? } if($allowpostvideo || !$discuz_uid) { ?><li class="video"><a href="post.php?action=newthread&fid=<?=$fid?>&special=6">发布视频</a></li><? } if($allowposttrade || !$discuz_uid) { ?><li class="trade"><a href="post.php?action=newthread&fid=<?=$fid?>&special=2">发布商品</a></li><? } if($forum['threadsorts'] && !$forum['allowspecialonly']) { if(is_array($forum['threadsorts']['types'])) { foreach($forum['threadsorts']['types'] as $id => $threadsorts) { if($forum['threadsorts']['show'][$id]) { ?>
<li class="popupmenu_option"><a href="post.php?action=newthread&fid=<?=$fid?>&extra=<?=$extra?>&sortid=<?=$id?>"><?=$threadsorts?></a></li>
<? } } } if(is_array($forum['typemodels'])) { foreach($forum['typemodels'] as $id => $model) { ?><li class="popupmenu_option"><a href="post.php?action=newthread&fid=<?=$fid?>&extra=<?=$extra?>&modelid=<?=$id?>"><?=$model['name']?></a></li><? } } } ?>
</ul>
<? } ?>
<div id="postlist" class="mainbox viewthread"><? $postcount = 0; if(is_array($postlist)) { foreach($postlist as $post) { ?><div id="post_<?=$post['pid']?>">
<table id="pid<?=$post['pid']?>" summary="pid<?=$post['pid']?>" cellspacing="0" cellpadding="0">
<tr>
<td class="postauthor">
<? if($post['authorid'] && $post['username'] && !$post['anonymous']) { if($authoronleft) { ?>
<div class="postinfo">
<a target="_blank" href="space.php?uid=<?=$post['authorid']?>" style="margin-left: 20px; font-weight: 800"><?=$post['author']?></a>
</div>
<? } ?>
<div class="popupmenu_popup userinfopanel" id="userinfo<?=$post['pid']?>" style="display: none; position: absolute;<? if($authoronleft) { ?>margin-top: -11px;<? } ?>">
<div class="popavatar">
<div id="userinfo<?=$post['pid']?>_ma"></div>
<ul class="profile_side">
<li class="pm"><a href="pm.php?action=new&uid=<?=$post['authorid']?>" onclick="floatwin('open_sendpm', this.href, 600, 410);return false;" title="发短消息">发短消息</a></li>
<? if($post['msn']['1']) { ?>
<li style="text-indent:0"><a target="_blank" href="http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=<?=$post['msn']['1']?>@apps.messenger.live.com&mkt=zh-cn" title="MSN 聊天"><img style="border-style: none; margin-right: 5px; vertical-align: middle;" src="http://messenger.services.live.com/users/<?=$post['msn']['1']?>@apps.messenger.live.com/presenceimage?mkt=zh-cn" width="16" height="16" />MSN 聊天</a></li>
<? } ?>
<li class="buddy"><a href="my.php?item=buddylist&newbuddyid=<?=$post['authorid']?>&buddysubmit=yes" target="_blank" id="ajax_buddy_<?=$post['count']?>" title="加为好友" onclick="ajaxmenu(event, this.id, 3000, 0)">加为好友</a></li>
</ul>
</div>
<div class="popuserinfo">
<p>
<a href="space.php?uid=<?=$post['authorid']?>" target="_blank"><?=$post['author']?></a>
<? if($post['nickname']) { ?><em>(<?=$post['nickname']?>)</em><? } if($vtonlinestatus && $post['authorid']) { if(($vtonlinestatus == 2 && $onlineauthors[$post['authorid']]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])) { ?>
<em>当前在线
<? } else { ?>
<em>当前离线
<? } ?>
</em>
<? } ?>
</p>
<? if($post['customstatus']) { ?><p class="customstatus"><?=$post['customstatus']?></p><? } ?>
<dl class="s_clear"><? @eval('echo "'.$customauthorinfo['2'].'";'); ?></dl>
<div class="imicons">
<? if($post['qq']) { ?><a href="http://wpa.qq.com/msgrd?V=1&Uin=<?=$post['qq']?>&Site=<?=$bbname?>&Menu=yes" target="_blank" title="QQ"><img src="<?=IMGDIR?>/qq.gif" alt="QQ" /></a><? } if($post['icq']) { ?><a href="http://wwp.icq.com/scripts/search.dll?to=<?=$post['icq']?>" target="_blank" title="ICQ"><img src="<?=IMGDIR?>/icq.gif" alt="ICQ" /></a><? } if($post['yahoo']) { ?><a href="http://edit.yahoo.com/config/send_webmesg?.target=<?=$post['yahoo']?>&.src=pg" target="_blank" title="Yahoo"><img src="<?=IMGDIR?>/yahoo.gif" alt="Yahoo!" /></a><? } if($post['taobao']) { ?><a href="javascript:;" onclick="window.open('http://amos.im.alisoft.com/msg.aw?v=2&uid='+encodeURIComponent('<?=$post['taobaoas']?>')+'&site=cntaobao&s=2&charset=utf-8')" title="taobao"><img src="<?=IMGDIR?>/taobao.gif" alt="阿里旺旺" /></a><? } if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$post['authorid']?>" target="_blank" title="个人空间"><img src="<?=IMGDIR?>/home.gif" alt="个人空间" /></a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$post['authorid']?>" target="_blank" title="个人空间"><img src="<?=IMGDIR?>/home.gif" alt="个人空间" /></a>
<? } if($post['site']) { ?><a href="<?=$post['site']?>" target="_blank" title="查看个人网站"><img src="<?=IMGDIR?>/forumlink.gif" alt="查看个人网站" /></a><? } ?>
<a href="space.php?uid=<?=$post['authorid']?>" target="_blank" title="查看详细资料"><img src="<?=IMGDIR?>/userinfo.gif" alt="查看详细资料" /></a>
</div>
<div id="avatarfeed"><span id="threadsortswait"></span></div>
</div>
</div>
<? } ?>
<?=$post['newpostanchor']?> <?=$post['lastpostanchor']?>
<? if($post['authorid'] && $post['username'] && !$post['anonymous']) { ?>
<div id="userinfo<?=$post['pid']?>_a">
<? if($bannedmessages & 2 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1))) { ?>
<div class="avatar">头像被屏蔽</div>
<? } elseif($post['avatar'] && $showavatars) { ?>
<div class="avatar" onmouseover="showauthor(this, 'userinfo<?=$post['pid']?>')"><a href="space.php?uid=<?=$post['authorid']?>" target="_blank"><?=$post['avatar']?></a></div>
<? } ?>
<p><em><?=$post['authortitle']?></em></p>
</div>
<p><? showstars($post['stars']); ?></p>
<? if($customauthorinfo['1']) { ?><dl class="profile s_clear"><? @eval('echo "'.$customauthorinfo['1'].'";'); ?></dl><? } if($post['medals']) { ?><p><? if(is_array($post['medals'])) { foreach($post['medals'] as $medal) { ?><img src="images/common/<?=$medal['image']?>" alt="<?=$medal['name']?>" title="<?=$medal['name']?>" /><? } } ?></p>
<? } } else { ?>
<div class="avatar">
<? if(!$post['authorid']) { ?>
<a href="javascript:;">游客 <em><?=$post['useip']?></em></a>
<? } elseif($post['authorid'] && $post['username'] && $post['anonymous']) { if($forum['ismoderator']) { ?><a href="space.php?uid=<?=$post['authorid']?>" target="_blank">匿名</a><? } else { ?>匿名<? } } else { ?>
<?=$post['author']?> <em>该用户已被删除</em>
<? } ?>
</div>
<? } if($allowedituser || $allowbanuser || ($forum['ismoderator'] && $allowviewip && ($thread['digest'] >= 0 || !$post['first']))) { ?>
<hr class="shadowline" />
<p>
<? if($forum['ismoderator'] && $allowviewip && ($thread['digest'] >= 0 || !$post['first'])) { ?>
<a href="javascript:;" onclick="ajaxget('topicadmin.php?action=getip&fid=<?=$fid?>&tid=<?=$tid?>&pid=<?=$post['pid']?>', 'ajax_getip_<?=$post['count']?>');doane(event)" title="查看 IP" class="lightlink">IP</a>
<? } if($allowedituser) { ?>
<a href="<? if($adminid == 1) { ?>admincp.php?action=members&username=<?=$post['usernameenc']?>&submit=yes&frames=yes<? } else { ?>modcp.php?action=members&op=edit&uid=<?=$post['authorid']?><? } ?>" target="_blank" class="lightlink">编辑此人</a>
<? } if($allowbanuser) { if($adminid == 1) { ?><a href="admincp.php?action=members&operation=ban&username=<?=$post['usernameenc']?>&frames=yes" target="_blank" class="lightlink">禁止此人</a>
<? } else { ?><a href="modcp.php?action=members&op=ban&uid=<?=$post['authorid']?>" target="_blank" class="lightlink">禁止此人</a>
<? } } ?>
</p>
<p id="ajax_getip_<?=$post['count']?>"></p>
<? } ?>
</td>
<td class="postcontent">
<div class="postinfo">
<strong><a title="复制本帖链接" id="postnum<?=$post['pid']?>" href="javascript:;" onclick="setcopy('<?=$boardurl?>viewthread.php?tid=<?=$tid?>&page=<?=$page?><?=$fromuid?>#pid<?=$post['pid']?>', '帖子地址已经复制到剪贴板')"><? if(!empty($postno[$post['number']])) { ?><?=$postno[$post['number']]?><? } else { ?><em><?=$post['number']?></em><?=$postno['0']?><? } ?></a></strong>
<div class="posterinfo">
<div class="pagecontrol">
<? if($post['first']) { ?>
<a href="viewthread.php?action=printable&tid=<?=$tid?>" target="_blank" class="print left">打印</a>
<? if(MSGBIGSIZE) { ?>
<div class="msgfsize right">
<label>字体大小: </label><small onclick="$('postlist').className='mainbox viewthread'" title="正常">t</small><big onclick="$('postlist').className='mainbox viewthread t_bigfont'" title="放大">T</big>
</div>
<? } } elseif($thread['special'] == 5) { ?>
<span class="debatevote poststand_<? echo intval($post['stand']); ?>">
<label><? if($post['stand'] == 1) { ?><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=1" title="只看正方">正方</a>
<? } elseif($post['stand'] == 2) { ?><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=2" title="只看反方">反方</a>
<? } else { ?><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=0" title="只看中立">中立</a><? } ?>
</label>
<? if($post['stand']) { ?>
<span><a href="misc.php?action=debatevote&tid=<?=$tid?>&pid=<?=$post['pid']?>" id="voterdebate_<?=$post['pid']?>" onclick="ajaxmenu(event, this.id)">支持我</a><?=$post['voters']?></span>
<? } ?>
</span>
<? } ?>
</div>
<div class="authorinfo">
<? if($_DCACHE['groupicon'][$post['groupid']]) { ?>
<img class="authicon" id="authicon<?=$post['pid']?>" src="<?=$_DCACHE['groupicon'][$post['groupid']]?>" onclick="showauthor(this, 'userinfo<?=$post['pid']?>')" />
<? } else { ?>
<img class="authicon" id="authicon<?=$post['pid']?>" src="images/common/online_member.gif" onclick="showauthor(this, 'userinfo<?=$post['pid']?>');" />
<? } if($post['authorid'] && !$post['anonymous']) { if(!$authoronleft) { ?><a href="space.php?uid=<?=$post['authorid']?>" class="posterlink" target="_blank"><?=$post['author']?></a><? } ?><em id="authorposton<?=$post['pid']?>">发表于 <?=$post['dateline']?></em>
<? if(!$authorid) { ?>
| <a href="viewthread.php?tid=<?=$post['tid']?>&page=<?=$page?>&authorid=<?=$post['authorid']?>" rel="nofollow">只看该作者</a>
<? } else { ?>
| <a href="viewthread.php?tid=<?=$post['tid']?>&page=<?=$page?>" rel="nofollow">显示全部帖子</a>
<? } } elseif($post['authorid'] && $post['username'] && $post['anonymous']) { ?>
匿名 <em id="authorposton<?=$post['pid']?>">发表于 <?=$post['dateline']?></em>
<? } elseif(!$post['authorid'] && !$post['username']) { ?>
游客 <em id="authorposton<?=$post['pid']?>">发表于 <?=$post['dateline']?></em>
<? } ?>
</div>
</div>
</div>
<div class="defaultpost">
<? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['thread2'][$post['count']])) { ?><div class="ad_textlink2" id="ad_thread2_<?=$post['count']?>"><?=$advlist['thread2'][$post['count']]?></div><? } else { ?><div id="ad_thread2_<?=$post['count']?>"></div><? } if($admode && empty($insenz['hardadstatus']) && !empty($advlist['thread3'][$post['count']])) { ?><div class="ad_pip" id="ad_thread3_<?=$post['count']?>"><?=$advlist['thread3'][$post['count']]?></div><? } else { ?><div id="ad_thread3_<?=$post['count']?>"></div><? } ?><div id="ad_thread4_<?=$post['count']?>"></div>
<div class="postmessage <? if($post['first']) { ?>firstpost<? } ?>">
<? if($post['warned']) { ?>
<span class="postratings"><a href="misc.php?action=viewwarning&tid=<?=$tid?>&uid=<?=$post['authorid']?>" title="受到警告" onclick="floatwin('open_viewwarning', this.href, 600, 410);return false;"><img src="<?=IMGDIR?>/warning.gif" border="0" /></a></span>
<? } if($thread['special'] == 3 && $post['first']) { if($thread['price'] > 0) { ?>
<cite class="re_unsolved">未解决</cite>
<? } elseif($thread['price'] < 0) { ?>
<cite class="re_solved">已解决</cite>
<? } if($activityclose) { ?><cite class="re_solved">活动已结束</cite><? } } if($post['first']) { ?>
<div id="threadtitle">
<? if($thread['readperm']) { ?><em>所需阅读权限 <?=$thread['readperm']?></em><? } ?>
<h1><?=$thread['subject']?></h1>
<? if($thread['tags'] || $relatedkeywords) { ?>
<div class="threadtags">
<? if($thread['tags']) { ?><?=$thread['tags']?><? } if($relatedkeywords) { ?><span class="postkeywords"><?=$relatedkeywords?></span><? } ?>
</div>
<? } ?>
</div>
<? if($thread['special'] == 2 && !$post['message'] && $post['authorid'] == $discuz_uid) { ?>
<p>
<a href="post.php?action=edit&fid=<?=$fid?>&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_edit', this.href, 600, 410, '600,0');return false;">添加柜台介绍</a>
</p>
<? } } elseif($post['subject']) { ?>
<h2><?=$post['subject']?></h2>
<? } if($adminid != 1 && $bannedmessages & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))) { ?>
<div class="locked">提示: <em>作者被禁止或删除 内容自动屏蔽</em></div>
<? } elseif($adminid != 1 && $post['status'] & 1) { ?>
<div class="locked">提示: <em>该帖被管理员或版主屏蔽</em></div>
<? } elseif($post['first'] && $threadpay) { if($thread['freemessage']) { ?>
<div id="postmessage_<?=$pid?>" class="t_msgfont"><?=$thread['freemessage']?></div>
<? } ?>
<div class="locked">
<a href="javascript:;" class="right viewpay" title="购买主题" onclick="floatwin('open_pay', 'misc.php?action=pay&tid=<?=$tid?>&pid=<?=$post['pid']?>', 600, 410)">购买主题</a>
<em class="right">
已购买人数:<?=$thread['payers']?> <a href="misc.php?action=viewpayments&tid=<?=$tid?>" onclick="floatwin('open_pay', this.href, 600, 410);return false;">记录</a>
</em>
<? if($thread['price'] > 0) { ?>本主题需向作者支付 <strong><?=$thread['price']?> <?=$extcredits[$creditstransextra['1']]['title']?> </strong> 才能浏览<? } if($thread['endtime']) { ?>本主题购买截止日期为 <?=$thread['endtime']?>,到期后将免费<? } ?>
</div>
</div><? } else { if($bannedmessages & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))) { ?>
<div class="locked">提示: <em>作者被禁止或删除 内容自动屏蔽,只有管理员可见</em></div>
<? } elseif($post['status'] & 1) { ?>
<div class="locked">提示: <em>该帖被管理员或版主屏蔽,只有管理员可见</em></div>
<? } if($post['first']) { if($thread['price'] > 0 && $thread['special'] == 0) { ?>
<div class="locked"><em class="right"><a href="misc.php?action=viewpayments&tid=<?=$tid?>" onclick="floatwin('open_pay', this.href, 600, 410);return false;">记录</a></em>付费主题, 价格:<strong><?=$extcredits[$creditstransextra['1']]['title']?> <?=$thread['price']?> <?=$extcredits[$creditstransextra['1']]['unit']?> </strong></div>
<? } if($typetemplate) { ?>
<?=$typetemplate?>
<? } elseif($optionlist && !($post['status'] & 1) && !$threadpay) { ?>
<div class="typeoption">
<h4><?=$forum['threadsorts']['types'][$thread['sortid']]?></h4>
<table summary="分类信息" cellpadding="0" cellspacing="0" class="formtable datatable"><? if(is_array($optionlist)) { foreach($optionlist as $option) { ?><tr class="<? echo swapclass('colplural'); ?>">
<th><?=$option['title']?></th>
<td><? if($option['value']) { ?><?=$option['value']?><? } else { ?>-<? } ?></td>
</tr><? } } ?></table>
</div>
<? } if($thread['special'] == 1) { include template('viewthread_poll'); } elseif($thread['special'] == 3) { include template('viewthread_reward_price'); } elseif($thread['special'] == 4) { include template('viewthread_activity_info'); } elseif($thread['special'] == 5) { include template('viewthread_debate_umpire'); } elseif($thread['special'] == 6) { include template('viewthread_video'); } } ?>
<div class="<? if(!$thread['special']) { ?>t_msgfontfix<? } else { ?>specialmsg<? } ?>">
<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_<?=$post['pid']?>"><?=$post['message']?></td></tr></table>
<? if($post['first']) { if($thread['special'] == 2) { include template('viewthread_trade'); } elseif($thread['special'] == 3) { if($bapid) { $bestpost = $postlist[$bapid];unset($postlist[$bapid]); } include template('viewthread_reward'); } elseif($thread['special'] == 4) { include template('viewthread_activity'); } elseif($thread['special'] == 5) { include template('viewthread_debate'); } } if($post['attachment']) { ?>
<div class="locked">附件: <em>您所在的用户组无法下载或查看附件</em></div>
<? } elseif($hideattach[$post['pid']] && $post['attachments']) { ?>
<div class="locked">附件: <em>本帖附件需要回复才可下载或查看</em></div>
<? } elseif($post['imagelist'] || $post['attachlist']) { ?>
<div class="postattachlist">
<? if($post['imagelist']) { ?>
<?=$post['imagelist']?>
<? } if($post['attachlist']) { ?>
<?=$post['attachlist']?>
<? } ?>
</div>
<? } if($relatedthreadlist && !$qihoo['relate']['position'] && $post['first']) { ?>
<div class="tagrelated">
<h3><em><a href="http://search.qihoo.com/sint/qusearch.html?kw=<?=$searchkeywords?>&sort=rdate&ics=<?=$charset?>&domain=<?=$site?>&tshow=1" target="_blank">更多相关主题</a></em>相关主题</h3>
<ul><? if(is_array($relatedthreadlist)) { foreach($relatedthreadlist as $key => $threads) { if($threads['tid'] != $tid) { ?>
<li>
<? if(!$threads['insite']) { ?>
[站外] <a href="topic.php?url=<? echo urlencode($threads['tid']); ?>&md5=<? echo md5($threads['tid']); ?>&statsdata=<?=$fid?>||<?=$tid?>" target="_blank"><?=$threads['title']?></a>
[ <a href="post.php?action=newthread&fid=<?=$fid?>&extra=<?=$extra?>&url=<? echo urlencode($threads['tid']); ?>&md5=<? echo md5($threads['tid']); ?>&from=direct" style="color: #090" target="_blank">转帖</a> ]
<? } else { ?>
<a href="viewthread.php?tid=<?=$threads['tid']?>&statsdata=<?=$fid?>||<?=$tid?>" target="_blank"><?=$threads['title']?></a>
<? } ?>
</li>
<? } } } ?></ul>
</div>
<? } if($post['first'] && $relatedtagstatus) { ?>
<div id="relatedtags"></div>
<script src="tag.php?action=relatetag&rtid=<?=$tid?>" type="text/javascript" reload="1"></script>
<? } ?>
</div>
<? if(!empty($post['ratelog'])) { ?>
<dl class="newrate">
<dt>
<? if(!empty($postlist[$post['pid']]['totalrate'])) { ?>
<strong><a href="misc.php?action=viewratings&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_viewratings', this.href, 600, 410);return false;" title="本帖最近评分记录"><? echo count($postlist[$post['pid']]['totalrate']);; ?></a></strong>
<p>评分次数</p>
<? } ?>
</dt>
<dd>
<ul class="s_clear">
<div id="post_rate_<?=$post['pid']?>"></div><? if(is_array($post['ratelog'])) { foreach($post['ratelog'] as $uid => $ratelog) { ?><li>
<div id="rate_<?=$post['pid']?>_<?=$uid?>_menu" class="attach_popup" style="display: none;">
<p class="cornerlayger"><?=$ratelog['reason']?> <? if(is_array($ratelog['score'])) { foreach($ratelog['score'] as $id => $score) { if($score > 0) { ?>
<em><?=$extcredits[$id]['title']?> + <?=$score?> <?=$extcredits[$id]['unit']?></em>
<? } else { ?>
<?=$extcredits[$id]['title']?> <?=$score?> <?=$extcredits[$id]['unit']?>
<? } } } ?></p>
<p class="minicorner"></p>
</div>
<p id="rate_<?=$post['pid']?>_<?=$uid?>" onmouseover="showMenu(this.id,false,2)" class="rateavatar"><a href="space.php?uid=<?=$uid?>" target="_blank"><? echo discuz_uc_avatar($uid, 'small');; ?></a></p>
<p><a href="space.php?uid=<?=$uid?>" target="_blank"><?=$ratelog['username']?></a></p>
</li><? } } ?></ul>
</dd>
</dl>
<? } else { ?>
<div id="post_rate_div_<?=$post['pid']?>"></div>
<? } } if($post['first']) { if($lastmod['modaction']) { ?><div class="modact"><a href="misc.php?action=viewthreadmod&tid=<?=$tid?>" title="主题操作记录" onclick="floatwin('open_viewthreadmod', this.href, 600, 410);return false;">本主题由 <?=$lastmod['modusername']?> 于 <?=$lastmod['moddateline']?> <?=$lastmod['modaction']?></a></div><? } if($lastmod['magicname']) { ?><div class="modact"><a href="misc.php?action=viewthreadmod&tid=<?=$tid?>" title="主题操作记录" onclick="floatwin('open_viewthreadmod', this.href, 600, 410);return false;">本主题由 <?=$lastmod['modusername']?> 于 <?=$lastmod['moddateline']?> 使用 <?=$lastmod['magicname']?> 道具</a></div><? } ?>
<div class="useraction">
<a id="ajax_favorite" <? if($discuz_uid) { ?>href="my.php?item=favorites&tid=<?=$tid?>" onclick="ajaxmenu(event, this.id, 3000, 0)"<? } else { ?>href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;"<? } ?>>收藏</a>
<a id="emailfriend" href="misc.php?action=emailfriend&tid=<?=$tid?>" onclick="floatwin('open_emailfriend', this.href, 250, <? if($discuz_uid) { ?>380<? } else { ?>200<? } ?>);return false;">分享</a>
<a id="ratelink" <? if($discuz_uid) { ?>href="misc.php?action=rate&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_rate', this.href, 250, 270);return false;"<? } else { ?>href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;"<? } ?>>评分</a>
</div>
<? } ?>
</div>
</div>
<? if($post['signature'] && ($bannedmessages & 4 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1)))) { ?>
<div class="signatures">
<table cellspacing="0" cellpadding="0">
<tr>
<td>签名被屏蔽</td>
</tr>
</table>
</div>
<? } elseif($post['signature'] && !$post['anonymous'] && $showsignatures) { ?>
<div class="signatures" style="maxHeightIE: <?=$maxsigrows?>px;">
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<?=$post['signature']?>
</td>
</tr>
</table>
</div>
<? } if($admode && empty($insenz['hardadstatus']) && !empty($advlist['thread1'][$post['count']])) { ?><div class="ad_textlink1" id="ad_thread1_<?=$post['count']?>"><?=$advlist['thread1'][$post['count']]?></div><? } else { ?><div id="ad_thread1_<?=$post['count']?>"></div><? } ?>
</td>
</tr>
<tr>
<td class="postauthor"></td>
<td class="postcontent">
<div class="postactions">
<? if($forum['ismoderator'] && ($allowdelpost || $allowbanpost)) { ?>
<span class="right">
<label for="manage<?=$post['pid']?>">
<? if($post['first'] && $thread['digest'] == -1) { ?>
<input type="checkbox" id="manage<?=$post['pid']?>" disabled="disabled" />
<? } else { ?>
<input type="checkbox" id="manage<?=$post['pid']?>" <? if(!empty($modclick)) { ?>checked="checked" <? } ?>onclick="pidchecked(this);modclick(this, <?=$post['pid']?>)" value="<?=$post['pid']?>" />
<? } ?>
管理
</label>
</span>
<? } ?>
<div class="postact s_clear">
<em>
<a class="fastreply" href="post.php?action=reply&fid=<?=$fid?>&tid=<?=$tid?>&reppost=<?=$post['pid']?>&extra=<?=$extra?>&page=<?=$page?>" onclick="floatwin('open_reply', this.href, 600, 410, '600,0');return false;">回复</a>
<a class="repquote" href="post.php?action=reply&fid=<?=$fid?>&tid=<?=$tid?>&repquote=<?=$post['pid']?>&extra=<?=$extra?>&page=<?=$page?>" onclick="floatwin('open_reply', this.href, 600, 410, '600,0');return false;">引用</a>
<? if((($forum['ismoderator'] && $alloweditpost && !(in_array($post['adminid'], array(1, 2, 3)) && $adminid > $post['adminid'])) || ($forum['alloweditpost'] && $discuz_uid && $post['authorid'] == $discuz_uid)) && ($thread['digest'] >= 0 || !$post['first'])) { ?>
<a class="editpost" href="post.php?action=edit&fid=<?=$fid?>&tid=<?=$tid?>&pid=<?=$post['pid']?>"<? if(!$post['first'] || !$threadsort && !$thread['special']) { ?> onclick="floatwin('open_edit', this.href, 600, 410, '600,0');return false;"<? } ?>>编辑</a>
<? } ?>
</em>
<p>
<? if($thread['special'] == 3 && ($forum['ismoderator'] || $thread['authorid'] == $discuz_uid) && $discuz_uid != $post['authorid'] && $post['authorid'] != $thread['authorid'] && $post['first'] == 0 && $thread['price'] > 0) { ?>
<a href="javascript:;" onclick="setanswer(<?=$post['pid']?>)">最佳答案</a>
<? } if($post['first']) { ?>
<a href="my.php?item=subscriptions&subadd=<?=$tid?>" id="ajax_subscription" onclick="ajaxmenu(event, this.id, 3000, null, 0)">订阅</a>
<? } elseif($raterange && $post['authorid']) { ?>
<a href="misc.php?action=rate&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_rate', this.href, 250, 270);return false;">评分</a>
<? } if($post['rate'] && $forum['ismoderator']) { ?>
<a href="misc.php?action=removerate&tid=<?=$tid?>&pid=<?=$post['pid']?>&page=<?=$page?>" onclick="floatwin('open_rate', this.href, 600, 410);return false;">撤销评分</a>
<? } if(!$forum['ismoderator'] && $discuz_uid && $reportpost && $discuz_uid != $post['authorid']) { ?>
<a href="misc.php?action=report&fid=<?=$fid?>&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_report', this.href, 250, 215);doane(event);">报告</a>
<? } if($discuz_uid && $magicstatus) { ?>
<a href="magic.php?action=usemagic&type=1&pid=<?=$post['pid']?>" onclick="floatwin('open_magics', this.href, 250, 215);doane(event);">道具</a>
<? } ?>
<a href="javascript:;" onclick="scrollTo(0,0);">TOP</a>
</p>
</div>
</div>
</td>
</tr>
<tr class="threadad">
<td class="postauthor"></td>
<td class="adcontent">
<? if($post['first'] && $thread['replies']) { if($admode && empty($insenz['hardadstatus']) && !empty($advlist['interthread'])) { ?><div class="ad_column" id="ad_interthread"><?=$advlist['interthread']?><? } else { ?><div id="ad_interthread"><? } ?></div><? } ?>
</td>
</tr>
<? if($post['first'] && $thread['special'] == 5 && $stand != '') { ?>
<tr class="threadad stand_select">
<td class="postauthor" style="background: #EBF2F8;"></td>
<td>
<div class="itemtitle s_clear">
<h2>按立场筛选: </h2>
<ul>
<li><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>" hidefocus="true"><span>全部</span></a></li>
<li <? if($stand == 1) { ?>class="current"<? } ?>><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=1" hidefocus="true"><span>正方</span></a></li>
<li <? if($stand == 2) { ?>class="current"<? } ?>><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=2" hidefocus="true"><span>反方</span></a></li>
<li <? if($stand == 0) { ?>class="current"<? } ?>><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=0" hidefocus="true"><span>中立</span></a></li>
</ul>
</div>
<hr class="solidline" />
</td>
</tr>
<? } ?>
</table>
<? if($aimgs[$post['pid']]) { ?>
<script type="text/javascript" reload="1">aimgcount[<?=$post['pid']?>] = [<? echo implode(',', $aimgs[$post['pid']]);; ?>];attachimgshow(<?=$post['pid']?>);</script>
<? } ?>
</div><? } } ?></div>
<div id="postlistreply" class="mainbox viewthread"><div id="post_new" style="display: none"></div></div>
<form method="post" name="modactions" id="modactions">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<input type="hidden" name="optgroup" />
<input type="hidden" name="operation" />
<input type="hidden" name="listextra" value="<?=$extra?>" />
</form>
<?=$tagscript?>
<div class="forumcontrol s_clear">
<table cellspacing="0" cellpadding="0" <? if($fastpost) { ?>class="narrow"<? } ?>>
<tr>
<td class="modaction">
<? if($forum['ismoderator']) { ?>
<span id="modopttmp" onclick="$('modopt').id = 'modopttmp';this.id = 'modopt';showMenu(this.id)" class="dropmenu">主题管理</span>
<? } ?>
</td>
<td>
<?=$multipage?>
<span class="pageback"<? if($visitedforums) { ?> id="visitedforums" onmouseover="$('visitedforums').id = 'visitedforumstmp';this.id = 'visitedforums';showMenu(this.id)"<? } ?>><a href="<?=$upnavlink?>">返回列表</a></span>
<? if(!$fastpost) { ?>
<span class="replybtn"><a href="post.php?action=reply&fid=<?=$fid?>&tid=<?=$tid?>" onclick="floatwin('open_reply', this.href, 600, 410, '600,0');return false;">回复</a></span>
<span class="postbtn" id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu(this.id)"><a href="post.php?action=newthread&fid=<?=$fid?>" onclick="floatwin('open_newthread', this.href, 600, 410, '600,0');return false;">发帖</a></span>
<? } ?>
</td>
</tr>
</table>
</div>
<? if($fastpost && $allowpostreply) { ?><script type="text/javascript">
var postminchars = parseInt('<?=$minpostsize?>');
var postmaxchars = parseInt('<?=$maxpostsize?>');
var disablepostctrl = parseInt('<?=$disablepostctrl?>');
</script>
<div id="f_post" class="mainbox viewthread">
<form method="post" id="fastpostform" action="post.php?action=reply&fid=<?=$fid?>&tid=<?=$tid?>&extra=<?=$extra?>&replysubmit=yes&infloat=yes&handlekey=fastpost" onSubmit="return fastpostvalidate(this)">
<table cellspacing="0" cellpadding="0">
<tr>
<td class="postauthor">
<? if($discuz_uid) { ?><div class="avatar"><? echo discuz_uc_avatar($discuz_uid); ?></div><? } ?>
</td>
<td class="postcontent">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<input type="hidden" name="subject" value="" />
<input type="hidden" name="usesig" value="<?=$usesigcheck?>" />
<? if($uchome['addfeed'] && $ucappopen['UCHOME'] && $forum['allowfeed']) { ?>
<input type="hidden" name="addfeed" value="1" />
<? } ?>
<span id="fastpostreturn"></span>
<? if($thread['special'] == 5 && empty($firststand)) { ?>
<div class="s_clear">
<label class="left">选择观点: </label>
<div class="float_typeid short_select">
<select id="stand" name="stand">
<option value="0">中立</option>
<option value="1">正方</option>
<option value="2">反方</option>
</select>
</div>
<script type="text/javascript">
loadselect('stand', 0, '', 0, 1);
</script>
</div>
<? } ?>
<div class="editor_tb">
<span class="right">
<a href="post.php?action=reply&fid=<?=$fid?>&tid=<?=$tid?>" onclick="floatwin('open_reply', this.href, 600, 410, '600,0');return false;">高级回复</a>
<span class="pipe">|</span>
<span id="newspecialtmp" onmouseover="$('newspecial').id = 'newspecialtmp';this.id = 'newspecial';showMenu(this.id)"><a href="post.php?action=newthread&fid=<?=$fid?>" onclick="floatwin('open_newthread', this.href, 600, 410, '600,0');return false;">发新话题</a></span>
</span><? $seditor = array('fastpost', array('bold', 'color', 'img', 'link', 'quote', 'code', 'smilies')); ?><link href="forumdata/cache/style_<?=STYLEID?>_seditor.css?<?=VERHASH?>" rel="stylesheet" type="text/css" />
<div>
<? if(in_array('bold', $seditor['1'])) { ?>
<a href="javascript:;" title="粗体" class="tb_bold" onclick="seditor_insertunit('<?=$seditor['0']?>', '[b]', '[/b]')">B</a>
<? } if(in_array('color', $seditor['1'])) { ?>
<a href="javascript:;" title="颜色" class="tb_color" id="<?=$seditor['0']?>forecolor" onclick="showMenu(this.id, true, 0, 2)">Color</a><? $coloroptions = array('Black', 'Sienna', 'DarkOliveGreen', 'DarkGreen', 'DarkSlateBlue', 'Navy', 'Indigo', 'DarkSlateGray', 'DarkRed', 'DarkOrange', 'Olive', 'Green', 'Teal', 'Blue', 'SlateGray', 'DimGray', 'Red', 'SandyBrown', 'YellowGreen','SeaGreen', 'MediumTurquoise','RoyalBlue', 'Purple', 'Gray', 'Magenta', 'Orange', 'Yellow', 'Lime', 'Cyan', 'DeepSkyBlue', 'DarkOrchid', 'Silver', 'Pink', 'Wheat', 'LemonChiffon', 'PaleGreen', 'PaleTurquoise', 'LightBlue', 'Plum', 'White') ?><div class="popupmenu_popup tb_color" id="<?=$seditor['0']?>forecolor_menu" style="display: none"><? if(is_array($coloroptions)) { foreach($coloroptions as $key => $colorname) { ?><input type="button" style="background-color: <?=$colorname?>" onclick="seditor_insertunit('<?=$seditor['0']?>', '[color=<?=$colorname?>]', '[/color]')" /><? if(($key + 1) % 8 == 0) { ?><br /><? } } } ?></div>
<? } if(in_array('img', $seditor['1'])) { ?>
<a href="javascript:;" title="插入图片" class="tb_img" onclick="seditor_insertunit('<?=$seditor['0']?>', '[img]', '[/img]')">Image</a>
<? } if(in_array('link', $seditor['1'])) { ?>
<a href="javascript:;" title="插入链接" class="tb_link" onclick="seditor_insertunit('<?=$seditor['0']?>', '[url]', '[/url]')">Link</a>
<? } if(in_array('quote', $seditor['1'])) { ?>
<a href="javascript:;" title="插入引用" class="tb_quote" onclick="seditor_insertunit('<?=$seditor['0']?>', '[quote]', '[/quote]')">Quote</a>
<? } if(in_array('code', $seditor['1'])) { ?>
<a href="javascript:;" title="插入代码" class="tb_code" onclick="seditor_insertunit('<?=$seditor['0']?>', '[code]', '[/code]')">Code</a>
<? } if(in_array('smilies', $seditor['1'])) { ?>
<a href="javascript:;" class="tb_smilies" id="<?=$seditor['0']?>smilies" onclick="showMenu(this.id, true, 0, 2)">Smilies</a>
<script type="text/javascript">smilies_show('<?=$seditor['0']?>smiliesdiv', <?=$smcols?>, 0, '<?=$seditor['0']?>');</script>
<? } ?>
</div></div>
<textarea rows="5" cols="80" name="message" id="fastpostmessage" onKeyDown="seditor_ctlent(event, 'fastpostvalidate($(\'fastpostform\'))');" tabindex="2" class="txtarea"></textarea>
<? if($secqaacheck || $seccodecheck) { ?><div class="fastcheck"><? $secchecktype = 3; include template('seccheck'); ?>
</div><? } ?>
<p><button type="submit" name="replysubmit" id="fastpostsubmit" value="replysubmit" tabindex="3">发表回复</button></p>
</td>
</tr>
</table>
</form>
</div><? } if($relatedthreadlist && $qihoo['relate']['position']) { include template('viewthread_relatedthread'); } if($visitedforums) { ?>
<ul class="popupmenu_popup" id="visitedforums_menu" style="display: none">
<?=$visitedforums?>
</ul>
<? } if($forumjump) { ?>
<div class="popupmenu_popup" id="fjump_menu" style="display: none">
<?=$forummenu?>
</div>
<? } ?>
<script type="text/javascript">
var maxpage = <? if($maxpage) { ?><?=$maxpage?><? } else { ?>1<? } ?>;
if(maxpage > 1) {
document.onkeyup = function(e){
e = e ? e : window.event;
var tagname = is_ie ? e.srcElement.tagName : e.target.tagName;
if(tagname == 'INPUT' || tagname == 'TEXTAREA') return;
actualCode = e.keyCode ? e.keyCode : e.charCode;
<? if($page < $maxpage) { ?>
if(actualCode == 39) {
window.location = 'viewthread.php?tid=<?=$tid?>&page=<? echo $page+1; ?>';
}
<? } if($page > 1) { ?>
if(actualCode == 37) {
window.location = 'viewthread.php?tid=<?=$tid?>&page=<? echo $page-1; ?>';
}
<? } ?>
}
}
</script>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html><? if($relatedthreadupdate) { ?>
<script src="relatethread.php?tid=<?=$tid?>&subjectenc=<?=$thread['subjectenc']?>&tagsenc=<?=$thread['tagsenc']?>&verifykey=<?=$verifykey?>&up=<?=$qihoo_up?>" type="text/javascript"></script>
<? } if($tagupdate) { ?>
<script src="relatekw.php?tid=<?=$tid?>" type="text/javascript"></script>
<? } if($qihoo['relate']['bbsnum'] && $statsdata) { ?>
<img style="display:none;" src="http://pvstat.qihoo.com/dimana.gif?_pdt=discuz&_pg=s100812&_r=<?=$randnum?>&_dim_k=orgthread&_dim_v=<? echo urlencode($boardurl);; ?>||<?=$statsdata?>||0" width="1" height="1" alt="" />
<img style="display:none;" src="http://pvstat.qihoo.com/dimana.gif?_pdt=discuz&_pg=s100812&_r=<?=$randnum?>&_dim_k=relthread&_dim_v=<?=$statskeywords?>||<?=$statsurl?>" width="1" height="1" alt="" />
<? } ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_viewthread.tpl.php
|
PHP
|
asf20
| 68,121
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
<div class="specialpost s_clear">
<div class="specialinfo">
<h4><label for="affirmpoint">正方:</label></h4>
<div><textarea name="affirmpoint" id="affirmpoint" class="txtarea" tabindex="1"><?=$debate['affirmpoint']?></textarea></div>
<h4><label for="negapoint">反方:</label></h4>
<div><textarea name="negapoint" id="negapoint" class="txtarea" tabindex="1"><?=$debate['negapoint']?></textarea></div>
</div>
<div class="specialaddons">
<label for="endtime">结束时间:</label>
<p class="hasdropdownbtn">
<input onclick="InFloat=InFloat_Editor;showcalendar(event, this, true)" type="text" autocomplete="off" id="endtime" name="endtime" class="txt" value="<?=$debate['endtime']?>" tabindex="1" />
<a href="javascript:;" class="dropdownbtn" onclick="InFloat=InFloat_Editor;showselect(this, 'endtime')">^</a>
</p>
<label for="umpire">裁判:</label>
<p><input type="text" id="umpire" class="splonginput txt" name="umpire" onblur="checkuserexists(this.value, 'checkuserinfo')" value="<?=$debate['umpire']?>" tabindex="1" /></p>
<span id="checkuserinfo"></span>
</div>
</div>
<script type="text/javascript" reload="1">
function checkuserexists(username, objname) {
if(!username) {
$(objname).innerHTML = '';
return;
}
var x = new Ajax();
username = is_ie && document.charset == 'utf-8' ? encodeURIComponent(username) : username;
x.get('ajax.php?inajax=1&action=checkuserexists&username=' + username, function(s){
var obj = $(objname);
obj.innerHTML = s;
});
}
</script>
</div></div>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_post_debate.tpl.php
|
PHP
|
asf20
| 1,568
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/pm.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/pm_node.htm', 1250740646, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/pm.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/seditor.htm', 1250740646, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/pm.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/personal_navbar.htm', 1250740646, '2', './templates/uchome')
;?>
<? include template('header'); ?>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> » 短消息</div>
<div id="wrap" class="wrap with_side s_clear">
<div class="main">
<div class="content">
<div class="itemtitle s_clear">
<form id="pm_search" method="get" action="pm.php" class="right">
<input name="search" type="hidden" value="yes" />
<input name="srchtxt" type="text" value="<? if(!empty($search) && $srchtxt !== '') { ?><?=$srchtxtinput?><? } ?>" class="txt" />
<input type="submit" value="搜索" />
</form>
<h1>消息中心</h1>
</div>
<div class="pm_header colplural itemtitle s_clear">
<a href="pm.php?action=new" onclick="floatwin('open_sendpm', this.href, 600, 410);return false;" class="postpm">+ 发送短消息</a>
<ul>
<li <? if($filter == 'newpm') { ?>class="current"<? } ?>><a href="pm.php?filter=newpm" hidefocus="true"><span>未读消息</span></a></li>
<li <? if($filter == 'privatepm') { ?>class="current"<? } ?>><a href="pm.php?filter=privatepm" hidefocus="true"><span>私人消息</span></a></li>
<li <? if($filter == 'systempm') { ?>class="current"<? } ?>><a href="pm.php?filter=systempm" hidefocus="true"><span>系统消息<? if($systemnewpm) { ?>(<?=$systemnewpm?>)<? } ?></span></a></li>
<li <? if($filter == 'announcepm') { ?>class="current"<? } ?>><a href="pm.php?filter=announcepm" hidefocus="true"><span>公共消息</span></a></li>
<li <? if($action == 'viewblack') { ?>class="current"<? } ?>><a href="pm.php?action=viewblack" hidefocus="true"><span>消息设置</span></a></li>
</ul>
</div>
<? if(!$action) { if($pmlist) { ?>
<form method="post" id="pmform" action="pm.php?action=del&filter=<?=$filter?>&page=<?=$page?>">
<input name="readopt" type="hidden" value="0" />
<ul class="pm_list"><? $range = array('', '今天', '昨天', '前天'); if(is_array($pmlist)) { foreach($pmlist as $key => $pm) { ?><li id="pm_<?=$pm['pmid']?>" class="s_clear <? echo swapclass('colplural'); ?>">
<? if($filter == 'privatepm') { ?>
<a<? if($pm['msgfromurl']) { ?> href="<?=$pm['msgfromurl']?>"<? } ?> target="_blank" class="avatar"><? echo discuz_uc_avatar($pm['touid'], 'small');; ?></a>
<? } else { ?>
<a class="avatar"><? echo discuz_uc_avatar($pm['touid'], 'small');; ?></a>
<? } ?>
<p>
<span class="time right"><? if($range[$pm['daterange']]) { ?><?=$range[$pm['daterange']]?> <?=$pm['time']?><? } else { ?><?=$pm['date']?> <?=$pm['time']?><? } ?></span>
<cite <? if($pm['new'] && $filter != 'announcepm') { ?>class="new"<? } ?>>
<? if($pm['msgfrom']) { ?><a<? if($pm['msgfromurl']) { ?> href="<?=$pm['msgfromurl']?>"<? } ?> target="_blank"><?=$pm['msgfrom']?></a><? } if($filter != 'privatepm') { ?><?=$pm['subject']?><? } ?>
</cite>
</p>
<div class="summary"><? $pm['message'] = $pm['message'] ? $pm['message'] : '点击这里查看此消息'; if($filter != 'announcepm') { if($pm['touid']) { ?>
<a href="pm.php?uid=<?=$pm['touid']?>&filter=<?=$filter?><? if(!empty($search)) { ?>#pm_<?=$pm['pmid']?><? } else { ?>&daterange=<?=$pm['daterange']?>#new<? } ?>"><?=$pm['message']?></a></div>
<span class="action">
<input name="uid[]" class="checkbox" type="checkbox" value="<?=$pm['touid']?>" />
<a href="pm.php?action=del&uid=<?=$pm['touid']?>&filter=<?=$filter?>" id="pmd_<?=$pm['pmid']?>" onclick="deletepm(this, <?=$pm['pmid']?>);return false;" class="delete">删除</a>
</span>
<? } else { ?>
<a href="pm.php?pmid=<?=$pm['pmid']?>&filter=<?=$filter?>"><?=$pm['message']?></a></div>
<span class="action">
<input name="pmid[]" class="checkbox" type="checkbox" value="<?=$pm['pmid']?>" />
<a href="pm.php?action=del&pmid=<?=$pm['pmid']?>&filter=<?=$filter?>" id="pmd_<?=$pm['pmid']?>" onclick="deletepm(this, <?=$pm['pmid']?>);return false;" class="delete">删除</a>
</span>
<? } } else { ?>
<a href="pm.php?pmid=<?=$pm['pmid']?>&filter=<?=$filter?>"><?=$pm['message']?></a></div>
<? } ?>
</li><? } } ?></ul>
<div class="s_clear" style="margin: 10px 0;">
<? if($filter != 'announcepm') { ?>
<span class="right">
<input class="checkbox" type="checkbox" id="chkall" name="chkall" onclick="checkall(this.form);" /> <label for="chkall">全选</label>
<span class="pipe">|</span><a href="javascript:;" onclick="doane(event);$('pmform').readopt.value = 1;$('pmform').submit()" class="lightlink">标记已读</a>
<span class="pipe">|</span><a href="javascript:;" onclick="doane(event);$('pmform').readopt.value = 2;$('pmform').submit()" class="lightlink">标记未读</a>
<span class="pipe">|</span><a href="javascript:;" onclick="doane(event);$('pmform').readopt.value = 0;$('pmform').submit()" class="lightlink">删除</a>
<button type="submit" value="yes" class="button" id="delallpm" style="display: none;">删除</button>
</span>
<? } ?>
共 <?=$ucdata['count']?> 组消息
</div>
<div>
<? if(!empty($search) && $filter !== '') { if($page > 1) { ?><a href="pm.php?search=yes&srchtxt=<?=$srchtxtenc?>">第一页</a><? } ?>
<a href="pm.php?search=yes&srchtxt=<?=$srchtxtenc?>&page=<? echo $page+1; ?>">继续搜索</a>
<? } else { ?>
<?=$multipage?>
<? } ?>
</div>
</form>
<script type="text/javascript">
function deletepm(obj, pmid) {
str = 'ajaxget(\'' + obj.href + '\', \'pm_' + pmid + '\', \'ajaxwaitid\', \'ajaxwaitid\', \'\', \'$(\\\'pm_' + pmid + '\\\').style.display = \\\'none\\\'\');';
dconfirm('确定删除指定的短消息吗?', str);
}
</script>
<? } else { ?>
<p class="nodata">暂无数据</p>
<? } } elseif($action == 'view') { if(empty($pmid)) { ?>
<div class="itemtitle newpm_notice s_clear">
<span class="right">
共有短消息 <? echo count($pmlist);; ?><span class="pipe">|</span><a href="pm.php?uid=<?=$uid?>&daterange=5&export=yes">导出</a>
<span class="pipe">|</span><a href="pm.php?action=del&uid=<?=$uid?>&filter=<?=$filter?>" onclick="return confirm('确认要清空有短消息记录?');">清空</a>
<span class="pipe">|</span><a href="pm.php?action=addblack&formhash=<?=FORMHASH?>&user=<? echo rawurlencode($user);; ?>" class="addblack">加入黑名单</a>
</span>
<span class="left">与 <strong><?=$user?></strong> 的短消息记录:</span>
<ul>
<li<? if($daterange <= 3) { ?> class="current"<? } ?>><a href="pm.php?uid=<?=$uid?>&daterange=3" hidefocus="true"><span>最近三天</span></a></li>
<li<? if($daterange == 4) { ?> class="current"<? } ?>><a href="pm.php?uid=<?=$uid?>&daterange=4" hidefocus="true"><span>本周</span></a></li>
<li<? if($daterange == 5) { ?> class="current"<? } ?>><a href="pm.php?uid=<?=$uid?>&daterange=5" hidefocus="true"><span>全部</span></a></li>
</ul>
</div>
<? } ?>
<div id="pmlist">
<ul class="pm_list">
<? if($pmlist) { $new = 0; if(is_array($pmlist)) { foreach($pmlist as $pm) { if($pm['daterange']) { ?><li class="pm_date"><strong><?=$pm['daterange']?></strong></li><? } ?>
<li id="pm_<?=$pm['pmid']?>" class="s_clear <? if($pm['msgfromid'] == $discuz_uid) { ?>self<? } ?>">
<a name="pm_<?=$pm['pmid']?>"></a>
<? if(!$new && $pm['new']) { ?><a name="new"></a><? $new = 1; } ?>
<a<? if($msgfromurl && $pm['msgfromid'] != $discuz_uid) { ?> href="<?=$msgfromurl?>"<? } ?> class="avatar"><? echo discuz_uc_avatar($pm['msgfromid'], 'small');; ?></a>
<p>
<span class="time right"><?=$pm['dateline']?></span>
<cite<? if($pm['new']) { ?> class="new"<? } ?>><? if($pm['msgfromid'] != $discuz_uid) { ?><?=$pm['msgfrom']?><? } else { ?><?=$discuz_userss?><? } ?></cite>
</p>
<div class="summary"><?=$pm['message']?></div>
<span class="action topact">
<a href="pm.php?action=new&pmid=<?=$pm['pmid']?>" onclick="floatwin('open_sendpm', this.href, 600, 410);return false;">转发</a>
</span>
</li>
<? if($inajax) { ?><script type="text/javascript" reload="1">appendpmnode();</script><? } } } } else { if($daterange == 3) { ?>
<li>最近三天没有新短消息,查看<a href="pm.php?uid=<?=$uid?>&daterange=4">更早时间</a>的短消息历史?</li>
<? } elseif($daterange == 4) { ?>
<li>本周没有新短消息,查看<a href="pm.php?uid=<?=$uid?>&daterange=5">更早时间</a>的短消息历史?</li>
<? } else { ?>
<li>没有新短消息。</li>
<? } } ?>
</ul>
<? if(empty($pmid) && $allowsendpm) { ?>
<div id="pm_list">
<ul id="pm_new" class="pm_list" style="display: none"></ul>
</div>
<form id="pmform" method="post" action="pm.php?action=send&uid=<?=$uid?>&pmsubmit=yes&infloat=yes" class="pmreply">
<input type="hidden" name="formhash" id="formhash" value="<?=FORMHASH?>" />
<input type="hidden" name="handlekey" value="pmreply" />
<input type="hidden" name="lastdaterange" value="<?=$lastdaterange?>" />
<div class="editor_tb" style="width: 514px"><? $seditor = array('pmreply', array('bold', 'img', 'link', 'quote', 'code', 'smilies')); ?><link href="forumdata/cache/style_<?=STYLEID?>_seditor.css?<?=VERHASH?>" rel="stylesheet" type="text/css" />
<div>
<? if(in_array('bold', $seditor['1'])) { ?>
<a href="javascript:;" title="粗体" class="tb_bold" onclick="seditor_insertunit('<?=$seditor['0']?>', '[b]', '[/b]')">B</a>
<? } if(in_array('color', $seditor['1'])) { ?>
<a href="javascript:;" title="颜色" class="tb_color" id="<?=$seditor['0']?>forecolor" onclick="showMenu(this.id, true, 0, 2)">Color</a><? $coloroptions = array('Black', 'Sienna', 'DarkOliveGreen', 'DarkGreen', 'DarkSlateBlue', 'Navy', 'Indigo', 'DarkSlateGray', 'DarkRed', 'DarkOrange', 'Olive', 'Green', 'Teal', 'Blue', 'SlateGray', 'DimGray', 'Red', 'SandyBrown', 'YellowGreen','SeaGreen', 'MediumTurquoise','RoyalBlue', 'Purple', 'Gray', 'Magenta', 'Orange', 'Yellow', 'Lime', 'Cyan', 'DeepSkyBlue', 'DarkOrchid', 'Silver', 'Pink', 'Wheat', 'LemonChiffon', 'PaleGreen', 'PaleTurquoise', 'LightBlue', 'Plum', 'White') ?><div class="popupmenu_popup tb_color" id="<?=$seditor['0']?>forecolor_menu" style="display: none"><? if(is_array($coloroptions)) { foreach($coloroptions as $key => $colorname) { ?><input type="button" style="background-color: <?=$colorname?>" onclick="seditor_insertunit('<?=$seditor['0']?>', '[color=<?=$colorname?>]', '[/color]')" /><? if(($key + 1) % 8 == 0) { ?><br /><? } } } ?></div>
<? } if(in_array('img', $seditor['1'])) { ?>
<a href="javascript:;" title="插入图片" class="tb_img" onclick="seditor_insertunit('<?=$seditor['0']?>', '[img]', '[/img]')">Image</a>
<? } if(in_array('link', $seditor['1'])) { ?>
<a href="javascript:;" title="插入链接" class="tb_link" onclick="seditor_insertunit('<?=$seditor['0']?>', '[url]', '[/url]')">Link</a>
<? } if(in_array('quote', $seditor['1'])) { ?>
<a href="javascript:;" title="插入引用" class="tb_quote" onclick="seditor_insertunit('<?=$seditor['0']?>', '[quote]', '[/quote]')">Quote</a>
<? } if(in_array('code', $seditor['1'])) { ?>
<a href="javascript:;" title="插入代码" class="tb_code" onclick="seditor_insertunit('<?=$seditor['0']?>', '[code]', '[/code]')">Code</a>
<? } if(in_array('smilies', $seditor['1'])) { ?>
<a href="javascript:;" class="tb_smilies" id="<?=$seditor['0']?>smilies" onclick="showMenu(this.id, true, 0, 2)">Smilies</a>
<script type="text/javascript">smilies_show('<?=$seditor['0']?>smiliesdiv', <?=$smcols?>, 0, '<?=$seditor['0']?>');</script>
<? } ?>
</div></div>
<textarea onKeyDown="seditor_ctlent(event, 'pmreplysubmit()')" id="pmreplymessage" name="message" class="txtarea" cols="30" rows="5" style="margin-top: -1px; border-top: none;"></textarea>
<p style="margin: 5px 0;"><button onclick="pmreplysubmit();return false;">回复</button><? $policymsgs = $p = ''; if(is_array($creditspolicy['sendpm'])) { foreach($creditspolicy['sendpm'] as $id => $policy) { ?><?
$policymsg = <<<EOF
EOF;
if($extcredits[$id]['img']) {
$policymsg .= <<<EOF
{$extcredits[$id]['img']}
EOF;
}
$policymsg .= <<<EOF
{$extcredits[$id]['title']} {$policy} {$extcredits[$id]['unit']}
EOF;
?><? $policymsgs .= $p.$policymsg;$p = ', '; } } if($policymsgs) { ?> 每发送一条短消息将扣除 <?=$policymsgs?><? } ?>
</p>
</form>
<? } ?>
</div>
<script type="text/javascript">
function pmreplysubmit() {
$('pmreplymessage').value = parseurl($('pmreplymessage').value);
ajaxpost('pmform', 'pm_new', 'pm_new', 'onerror');
}
function messagehandle_pmreply() {
$('pm_new').style.display = '';
}
function appendpmnode() {
$('pm_new').className = 'pm_list';
$('pm_new').style.display = '';
$('pm_new').id = '';
ul = document.createElement('ul');
ul.id = 'pm_new';
ul.className = 'pm_list';
ul.style.display = 'none';
$('pm_list').appendChild(ul);
$('pmform').message.value = '';
creditnoticewin();
}
</script>
<? } elseif($action == 'viewblack') { ?>
<div class="blacklist">
<form class="allblocked" method="post" action="pm.php?user=%7BALL%7D">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<input type="hidden" name="action" value="" />
<input name="black" type="radio" value="0" onclick="this.form.action.value = 'delblack'"<? if(!$blackall) { ?> checked="checked"<? } ?> /> 接受所有会员消息
<input name="black" type="radio" value="1" onclick="this.form.action.value = 'addblack'"<? if($blackall) { ?> checked="checked"<? } ?> /> 屏蔽所有会员消息
<input type="submit" name="submit" value="提交" />
</form>
<br />
<h3 class="blocktitle lightlink">黑名单: </h3>
<ul class="commonlist inlinelist"><? $dataexist=0; if(is_array($blackls)) { foreach($blackls as $user) { if($user !== '' && $user != chr(0x7B).'ALL'.chr(0x7D)) { $dataexist=1; ?><li style="padding: 4px 0;" onmouseover="this.className='hover'" onmouseout="this.className=''">
<a href="space.php?username=<?=$user?>" target="_blank"><?=$user?></a>
<a href="pm.php?action=delblack&formhash=<?=FORMHASH?>&user=<? echo urlencode($user);; ?>" title="移除" class="remove">移除</a>
</li>
<? } } } if(!$dataexist) { ?>
<li>暂无数据<li>
<? } ?>
</ul>
</div>
<? } ?>
</div>
</div>
<div class="side"><h2>个人中心</h2>
<div class="sideinner">
<ul class="tabs">
<? if($regverify == 1 && $groupid == 8) { ?>
<li><a href="member.php?action=emailverify">重新验证 Email</a></li>
<? } if($regverify == 2 && $groupid == 8) { ?>
<li><a href="memcp.php?action=validating">账户审核</a></li>
<li><a href="memcp.php?action=profile&typeid=2">个人资料</a></li>
<? } else { ?>
<li><a href="memcp.php?action=profile&typeid=2">个人资料</a></li>
<li><a href="pm.php">短消息</a></li>
<li><a href="my.php?item=buddylist&<?=$extrafid?>">我的好友</a></li>
<? if($regstatus > 1) { ?><li><a href="invite.php">邀请注册</a></li><? } if($ucappopen['UCHOME']) { ?>
<li><a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">我的空间</a></li>
<? } elseif($ucappopen['XSPACE']) { ?>
<li><a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">我的空间</a></li>
<? } } ?>
</ul>
</div>
<? if($groupid != 8) { ?>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="my.php?item=threads<?=$extrafid?>">我的帖子</a></li>
<li><a href="my.php?item=favorites&type=thread<?=$extrafid?>">我的收藏</a></li>
<li><a href="my.php?item=subscriptions<?=$extrafid?>">我的订阅</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="memcp.php?action=credits">积分</a></li>
<li><a href="memcp.php?action=usergroups">用户组&权限</a></li>
<li><a href="task.php">论坛任务</a></li>
<? if($medalstatus) { ?><li><a href="medal.php">勋章</a></li><? } if($magicstatus) { ?><li><a href="magic.php">道具</a></li><? } ?>
</ul>
</div>
<? } ?>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="memcp.php?action=profile&typeid=5">论坛个性化设定</a></li>
<li><a href="memcp.php?action=profile&typeid=1">密码和安全问题</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li>积分: <?=$credits?></li><? if(is_array($extcredits)) { foreach($extcredits as $id => $credit) { ?><li>
<? if($BASESCRIPT == 'invite.php' && $id == $creditstransextra['4'] ||
$BASESCRIPT == 'memcp.php' && $id == $creditstrans) { ?>
<?=$credit['title']?>: <span style="font-weight: bold;"><?=$GLOBALS['extcredits'.$id]?></span> <?=$credit['unit']?>
<? } else { ?>
<?=$credit['title']?>: <?=$GLOBALS['extcredits'.$id]?> <?=$credit['unit']?>
<? } ?>
</li><? } } ?></ul>
</div></div>
<? include template('footer'); ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_pm.tpl.php
|
PHP
|
asf20
| 17,135
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); $s = ob_get_contents(); ob_end_clean(); $s = preg_replace("/([\x01-\x08\x0b-\x0c\x0e-\x1f])+/", ' ', $s); $s = str_replace(array(chr(0), ']]>'), array(' ', ']]>'), $s); ?><?=$s?>
]]></root><? exit; ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/TEMPLATEID_footer_ajax.tpl.php
|
PHP
|
asf20
| 256
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
<div id="modlayer" style="display: none;position:position">
<input type="hidden" name="optgroup" />
<input type="hidden" name="operation" />
<a class="collapse" href="javascript:;" onclick="$('modlayer').className='collapsed'"><img src="<?=IMGDIR?>/collapsed_yes.gif" alt="缩小" title="缩小" /></a>
<label><input class="checkbox" type="checkbox" name="chkall" onclick="if(!($('modcount').innerHTML = modclickcount = checkall(this.form, 'moderate'))) {$('modlayer').style.display = 'none';}" /> 全选</label>
<span>选中</span><strong onmouseover="$('moremodoption').style.display='block'" onclick="$('modlayer').className=''" id="modcount"></strong><span>篇: </span>
<strong><a href="javascript:;" onclick="modthreads(3, 'delete');return false;">删除</a></strong>
<span class="pipe">|</span>
<strong><a href="javascript:;" onclick="modthreads(2, 'move');return false;">移动</a></strong>
<span class="pipe">|</span>
<strong><a href="javascript:;" onclick="modthreads(2, 'type');return false;">分类</a></strong>
<div id="moremodoption">
<hr class="solidline" />
<a href="javascript:;" onclick="modthreads(1, 'stick');return false;">置顶</a>
<a href="javascript:;" onclick="modthreads(1, 'highlight');return false;">高亮</a>
<a href="javascript:;" onclick="modthreads(1, 'digest');return false;">精华</a>
<? if($forum['modrecommend']['open'] && $forum['modrecommend']['sort'] != 1) { ?>
<a href="javascript:;" onclick="modthreads(1, 'recommend');return false;">推荐</a>
<? } ?>
<span class="pipe">|</span>
<a href="javascript:;" onclick="modthreads(3, 'bump');return false;">提升下沉</a>
<a href="javascript:;" onclick="modthreads(4);return false;">关闭打开</a>
</div>
</div>
<script type="text/javascript">
modclickcount = 0;
function modclick(obj) {
if(obj.checked) {
modclickcount++;
} else {
modclickcount--;
}
$('modcount').innerHTML = modclickcount;
if(modclickcount > 0) {
var top_offset = obj.offsetTop;
while((obj = obj.offsetParent).id != 'threadlist') {
top_offset += obj.offsetTop;
}
$('modlayer').style.top = top_offset - 7 + 'px';
$('modlayer').style.display = '';
} else {
$('modlayer').style.display = 'none';
}
}
function modthreads(optgroup, operation) {
var checked = 0;
var operation = !operation ? '' : operation;
for(var i = 0; i < $('moderate').elements.length; i++) {
if($('moderate').elements[i].name.match('moderate') && $('moderate').elements[i].checked) {
checked = 1;
break;
}
}
if(!checked) {
alert('请选择需要操作的帖子');
} else {
floatwinreset = 1;
floatwin('open_mods', '', 250, optgroup < 2 ? 365 : 215);
$('moderate').optgroup.value = optgroup;
$('moderate').operation.value = operation;
$('floatwin_mods').innerHTML = '';
ajaxpost('moderate', 'floatwin_mods', '');
}
}
</script>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_topicadmin_modlayer.tpl.php
|
PHP
|
asf20
| 2,816
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
<table cellspacing="0" cellpadding="0" summary="我的主题" class="datatable">
<thead class="colplural">
<tr>
<th> </th>
<td class="forum">版块</td>
<td class="nums">
<select onchange="window.location='my.php?item=threads&filter=' + this.value + '<?=$fidadd?>'">
<option value="">状态</option>
<option value="recyclebin"<? if($filter == 'recyclebin') { ?> selected="selected"<? } ?>>回收站</option>
<option value="aduit"<? if($filter == 'aduit') { ?> selected="selected"<? } ?>>待审核</option>
<option value="close"<? if($filter == 'close') { ?> selected="selected"<? } ?>>关闭</option>
<option value="common"<? if($filter == 'common') { ?> selected="selected"<? } ?>>正常</option>
</option>
</td>
<td class="lastpost"><cite>最后发表</cite></td>
</tr>
</thead>
<? if($threadlist) { ?>
<tbody><? if(is_array($threadlist)) { foreach($threadlist as $thread) { ?><tr>
<th><? if($thread['displayorder'] >= 0) { ?><a href="viewthread.php?tid=<?=$thread['tid']?>" target="_blank"><?=$thread['subject']?></a><? } else { ?><?=$thread['subject']?><? } ?></th>
<td class="forum"><a href="forumdisplay.php?fid=<?=$thread['fid']?>" target="_blank"><?=$thread['forumname']?></a></td>
<td class="nums"><? if($thread['displayorder'] == '-1') { ?>回收站<? } elseif($thread['displayorder'] == '-2') { ?>待审核<? } elseif($thread['closed'] == '1') { ?>关闭<? } else { ?>正常<? } ?></td>
<td class="lastpost">
<cite><? if($thread['lastposter']) { ?><a href="space.php?username=<?=$thread['lastposterenc']?>" target="_blank"><?=$thread['lastposter']?></a><? } else { ?>匿名<? } ?></cite>
<em><a href="redirect.php?tid=<?=$thread['tid']?>&goto=lastpost#lastpost"><?=$thread['lastpost']?></a></em>
</td>
</tr><? } } ?></tbody>
<? } else { ?>
<tr><th colspan="4"><p class="nodata">暂无数据</p></th></tr>
<? } ?>
</table>
<? if(!empty($multipage)) { ?><div class="pages_btns"><?=$multipage?></div><? } ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_my_threads.tpl.php
|
PHP
|
asf20
| 2,010
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/nopermission.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/header.htm', 1250767482, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/nopermission.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/footer.htm', 1250767482, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/nopermission.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/css_script.htm', 1250767482, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/nopermission.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/jsmenu.htm', 1250767482, '2', './templates/uchome')
;?>
<? if(!$inajax) { ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> » 提示信息</div>
<div id="wrap" class="wrap s_clear">
<div class="msgfix">
<div class="showmessage">
<h1><?=$bbname?> 提示信息</h1>
<p>您无权进行当前操作,这可能因以下原因之一造成</p>
<? if($show_message) { ?><p><b><?=$show_message?></b></p><? } if($discuz_uid) { ?><p>您已经登录,但您的帐号或其所在的用户组无权访问当前页面。</p>
<? } else { ?>
<div style="padding-top: 10px;">
<hr class="shadowline" />
<form method="post" name="login" id="loginform" class="gateform" onsubmit="<? if($pwdsafety) { ?>pwmd5('password3');<? } ?>pwdclear = 1;" action="logging.php?action=login&loginsubmit=yes">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<table cellspacing="0" cellpadding="0" class="formtable">
<tr>
<th>
<select name="loginfield" id="loginfield">
<option value="username">用户名</option>
<option value="uid">UID</option>
</select>
</th>
<td><input type="text" name="username" autocomplete="off" size="36" class="txt" tabindex="1" value="" /></td>
</tr>
<tr>
<th><label for="password3">密码</label></th>
<td><input type="password" id="password3" name="password" onkeypress="detectcapslock(event, this)" size="36" class="txt" tabindex="2" /></td>
</tr>
<tr>
<th><label for="questionid">安全提问</label></th>
<td>
<select id="questionid" name="questionid" tabindex="3">
<option value="0">安全提问</option>
<option value="1">母亲的名字</option>
<option value="2">爷爷的名字</option>
<option value="3">父亲出生的城市</option>
<option value="4">您其中一位老师的名字</option>
<option value="5">您个人计算机的型号</option>
<option value="6">您最喜欢的餐馆名称</option>
<option value="7">驾驶执照的最后四位数字</option>
</select>
</td>
</tr>
<tr>
<th><label for="answer">回答</label></th>
<td><input type="text" name="answer" id="answer" autocomplete="off" size="36" class="txt" tabindex="4" /></td>
</tr>
<? if($seccodecheck) { ?>
<tr>
<th><? $seccheckfloat = 2; ?></th>
<td>
<div id="seccodelayer" style="position:relative">
<? include template('seccheck'); ?>
</div>
</td>
</tr>
<? } ?>
<tr>
<th> </th>
<td>
<a class="right" href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;"><?=$reglinkname?></a>
<button class="submit" type="submit" name="loginsubmit" value="true" tabindex="6">登录</button>
<input type="checkbox" class="checkbox" name="cookietime" id="cookietime" tabindex="5" value="2592000" <?=$cookietimecheck?> /> <label for="cookietime">记住我的登录状态</label>
</td>
</tr>
</table>
</form>
</div>
<? } ?>
</div>
</div>
</div>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html><? } else { include template('header'); ?>
<script type="text/javascript">
function ajaxerror() {
<? if(!$discuz_uid) { ?>
alert('<?=$show_message?>');
<? } else { ?>
alert('您已经登录,但您的帐号或其所在的用户组无权访问当前页面。');
<? } ?>
}
ajaxerror();
</script>
<? include template('footer'); } ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_nopermission.tpl.php
|
PHP
|
asf20
| 27,525
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/faq.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/header.htm', 1256015810, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/faq.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/faq_navbar.htm', 1256015810, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/faq.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/footer.htm', 1256015810, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/faq.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/css_script.htm', 1256015810, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/faq.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/jsmenu.htm', 1256015810, '2', './templates/uchome')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> » <? if(empty($action)) { ?>帮助<? } else { ?><a href="faq.php">帮助</a> <?=$navigation?><? } ?></div>
<div id="wrap" class="wrap with_side s_clear">
<div class="side"><h2>帮助</h2>
<div class="sideinner">
<ul class="tabs"><? if(is_array($faqparent)) { foreach($faqparent as $fpid => $parent) { ?><li name="<?=$parent['title']?>"><a href="faq.php?action=faq&id=<?=$fpid?>" ><?=$parent['title']?></a></li><? } } ?><li><a href="faq.php?action=credits">积分说明</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<form method="post" action="faq.php?action=search&searchsubmit=yes">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<input type="hidden" name="searchtype" value="all" />
<input type="text" name="keyword" size="16" value="<?=$keyword?>" class="txt" />
<button type="submit" name="searchsubmit">搜索</button>
</form>
</div></div>
<div class="main">
<div class="content">
<? if(empty($action)) { ?>
<div class="datalist"><? if(is_array($faqparent)) { foreach($faqparent as $fpid => $parent) { ?><h2 class="blocktitle"><a href="faq.php?action=faq&id=<?=$fpid?>" class="lightlink"><?=$parent['title']?></a></h2>
<ul name="<?=$parent['title']?>" class="commonlist"><? if(is_array($faqsub[$parent['id']])) { foreach($faqsub[$parent['id']] as $sub) { ?><li><a href="faq.php?action=faq&id=<?=$sub['fpid']?>&messageid=<?=$sub['id']?>"><?=$sub['title']?></a></li><? } } ?></ul>
<hr class="solidline" /><? } } ?></div>
<? } elseif($action == 'faq') { if(is_array($faqlist)) { foreach($faqlist as $faq) { ?><div class="datalist">
<div id="messageid<?=$faq['id']?>_c" class="c_header<? if($messageid != $faq['id']) { ?> closenode<? } ?>">
<h3 onclick="toggle_collapse('messageid<?=$faq['id']?>', 1, 1);"><?=$faq['title']?></h3>
<div class="c_header_action">
<p class="c_header_ctrlbtn" onclick="toggle_collapse('messageid<?=$faq['id']?>', 1, 1);">[ 展开 ]</p>
</div>
</div>
<div class="faqmessage" id="messageid<?=$faq['id']?>" style="<? if($messageid != $faq['id']) { ?> display: none <? } ?>"><?=$faq['message']?></div>
</div><? } } } elseif($action == 'search') { if(is_array($faqlist)) { foreach($faqlist as $faq) { ?><div class="datalist">
<div class="c_header searchfaq"><h3><?=$faq['title']?></h3></div>
<div class="faqmessage"><?=$faq['message']?></div>
</div><? } } } ?>
</div>
</div>
</div>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_faq.tpl.php
|
PHP
|
asf20
| 27,047
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); ob_end_clean(); ob_start(); @header("Expires: -1"); @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE); @header("Pragma: no-cache"); @header("Content-type: application/xml; charset=$charset"); echo '<?xml version="1.0" encoding="'.$charset.'"?>';; ?><root><![CDATA[
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_header_ajax.tpl.php
|
PHP
|
asf20
| 355
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/post.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/header_nofloat.htm', 1250676350, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/post.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/seccheck.htm', 1250676350, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/post.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/footer_nofloat.htm', 1250676350, '1', './templates/default')
;?>
<? include template('header'); ?><?
$actiontitle = <<<EOF
EOF;
if($action == 'newthread') { if($special == 0) {
$actiontitle .= <<<EOF
发新话题
EOF;
} elseif($special == 1) {
$actiontitle .= <<<EOF
发布投票
EOF;
} elseif($special == 2) {
$actiontitle .= <<<EOF
发布商品
EOF;
} elseif($special == 3) {
$actiontitle .= <<<EOF
发布悬赏
EOF;
} elseif($special == 4) {
$actiontitle .= <<<EOF
发布活动
EOF;
} elseif($special == 5) {
$actiontitle .= <<<EOF
发布辩论
EOF;
} elseif($special == 6) {
$actiontitle .= <<<EOF
发布视频
EOF;
} } elseif($action == 'reply' && !empty($addtrade)) {
$actiontitle .= <<<EOF
添加商品
EOF;
} elseif($action == 'reply') {
$actiontitle .= <<<EOF
参与/回复主题
EOF;
} elseif($action == 'edit') {
$actiontitle .= <<<EOF
编辑帖子
EOF;
}
$actiontitle .= <<<EOF
EOF;
?>
<? if(empty($infloat)) { $navigation .= '» '.$actiontitle; ?><link rel="stylesheet" type="text/css" href="forumdata/cache/style_<?=STYLEID?>_float.css?<?=VERHASH?>" />
<style type="text/css">
.main { overflow: hidden; }
.content { margin: 5px; min-height: 400px; <?=FLOATBGCODE?>; }
* html .content { height: 400px; overflow: auto; }
.fixedbtn { position: static; }
</style>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> <?=$navigation?></div>
<div id="wrap" class="wrap s_clear">
<div class="main"><div class="content"><div class="nojs">
<div id="floatwinnojs"><? } ?>
<script type="text/javascript" reload="1">
var infloat = <? if(!empty($infloat)) { ?>1<? } else { ?>0<? } ?>;
var InFloat_Editor = 'floatlayout_<?=$action?>';
var editoraction = '<?=$action?>';
</script><? $adveditor = $isfirstpost && $special || $special == 2 && ($action == 'newthread' || $action == 'reply' && !empty($addtrade) || $action == 'edit' && $thread['special'] == 2); $advmore = !$showthreadsorts && !$special || $action == 'reply' && empty($addtrade) || $action == 'edit' && !$isfirstpost && ($thread['special'] == 2 && !$special || $thread['special'] != 2); ?><div class="float" id="floatlayout_<?=$action?>" style="<? if(!empty($infloat)) { ?>width: 600px; height: 410px;<? } ?>">
<form method="post" id="postform"
<? if($action == 'newthread') { ?>action="post.php?<? if(!empty($infloat)) { ?>infloat=yes<? } ?>&action=<? if($special != 2) { ?>newthread<? } else { ?>newtrade<? } ?>&fid=<?=$fid?>&extra=<?=$extra?>&topicsubmit=yes"
<? } elseif($action == 'reply') { ?>action="post.php?<? if(!empty($infloat)) { ?>infloat=yes<? } ?>&action=reply&fid=<?=$fid?>&tid=<?=$tid?>&extra=<?=$extra?>&replysubmit=yes"
<? } elseif($action == 'edit') { ?>action="post.php?<? if(!empty($infloat)) { ?>infloat=yes<? } ?>&action=edit&extra=<?=$extra?>&editsubmit=yes&mod=<?=$mod?>"
<? } ?>
<?=$enctype?> onsubmit="return validate(this)">
<input type="hidden" name="formhash" id="formhash" value="<?=FORMHASH?>" />
<? if(!empty($modthreadkey)) { ?><input type="hidden" name="modthreadkey" id="modthreadkey" value="<?=$modthreadkey?>" /><? } if(!empty($infloat)) { ?><input type="hidden" name="handlekey" value="<?=$handlekey?>" /><? } ?>
<input type="hidden" name="wysiwyg" id="<?=$editorid?>_mode" value="<?=$editormode?>" />
<? if($action == 'edit') { ?>
<input type="hidden" name="fid" id="fid" value="<?=$fid?>" />
<input type="hidden" name="tid" value="<?=$tid?>" />
<input type="hidden" name="pid" value="<?=$pid?>" />
<? } if($special) { ?>
<input type="hidden" name="special" value="<?=$special?>" />
<? } if($isfirstpost) { ?>
<input type="hidden" name="iconid" id="iconid" value="<?=$thread['iconid']?>" />
<? } ?>
<input type="hidden" name="updateswfattach" value="0" />
<div style="clear:both;<? if(!empty($infloat)) { ?> width:2500px<? } ?>">
<? if(!empty($infloat)) { ?><div class="floatbox floatbox1" id="extcreditbox1"></div><? } ?>
<div class="floatbox floatbox1"<? if(!$showthreadsorts && !$adveditor) { ?> id="editorbox"<? } ?>>
<h3 class="float_ctrl">
<em id="returnmessage">
<?=$actiontitle?>
<? if($showthreadsorts) { ?> <?=$forum['threadsorts']['types'][$sortid]?><? } ?>
</em>
<? if($action == 'newthread' && $modnewthreads) { ?><em class="needverify">需审核</em><? } if($action == 'reply' && $modnewreplies) { ?><em class="needverify">需审核</em><? } ?>
<span>
<a href="javascript:;" id="creditlink" onclick="pagescrolls('credit1')" title="积分说明">积分说明</a>
<? if(!empty($infloat)) { ?>
<a href="javascript:;" class="float_newwindow" onclick="editorwindowopen('post.php?<?=$posturl?>')" title="新窗口">新窗口</a>
<? if(!$special && !$showthreadsorts) { ?>
<a href="javascript:;" class="float_max" onclick="resizeEditorwin()" title="最大化" id="resizeEditorwin">最大化</a>
<? } ?>
<a href="javascript:;" class="float_close" onclick="closeEditorwin()" title="关闭">关闭</a>
<? } ?>
</span>
</h3>
<div class="postbox" id="postbox">
<div class="float_postinfo s_clear"<? if($action == 'reply') { ?> style="overflow:hidden"<? } ?>>
<? if(!$special && $isfirstpost) { ?>
<em id="icon" class="dropmenu" onmouseover="InFloat='floatlayout_<?=$action?>';showMenu(this.id)"><img id="icon_img" src="images/icons/<? if($action == 'edit' && $thread['iconid']) { ?><?=$_DCACHE['icons'][$thread['iconid']]?><? } else { ?>icon1.gif<? } ?>" /></em>
<ul id="icon_menu" class="popupmenu_popup" style="display:none"><? if(is_array($_DCACHE['icons'])) { foreach($_DCACHE['icons'] as $id => $icon) { ?><li><a href="javascript:;"><img onclick="switchicon(<?=$id?>, this)" src="images/icons/<?=$icon?>" alt="" /></a></li><? } } ?></ul>
<? } if(!$isfirstpost && $thread['special'] == 5 && empty($firststand) && $action != 'edit') { ?>
<div class="float_typeid short_select">
<select id="stand" name="stand">
<option value="0">中立</option>
<option value="1">正方</option>
<option value="2">反方</option>
</select>
</div>
<? } if($action == 'reply' && !empty($addtrade) || $action == 'edit' && $thread['special'] == 2 && !$postinfo['first']) { ?>
<input name="subject" type="hidden" value="" />
<? } else { if($action != 'reply') { ?>
<span><input name="subject" id="subject" class="txt" value="<?=$postinfo['subject']?>" tabindex="1" /></span>
<? } else { ?>
<span id="subjecthide">RE: <?=$thread['subject']?> [<a href="javascript:;" onclick="display('subjecthide');display('subjectbox');$('subject').value='RE: <? echo htmlspecialchars(str_replace('\'', '\\\'', $thread['subject'])); ?>'">修改</a>]</span>
<span id="subjectbox" style="display:none"><input name="subject" id="subject" class="txt" value="" tabindex="1" /></span>
<? } } if($action == 'edit' && ($isfirstpost && $thread['replies'] < 1 || !$isfirstpost && ($isorigauthor || $forum['ismoderator']))) { ?>
<div class="right"><input type="checkbox" name="delete" id="delete" value="1" title="删除本帖<? if($thread['special'] == 3) { ?>,返还悬赏费用,不退还手续费。<? } ?>"><label for="delete">删?</label></div>
<? } ?>
<div class="left">
<? if(!$special && ($threadsorts = $forum['threadsorts']) && ($action == 'newthread' || $action == 'edit' && $isfirstpost && !$thread['sortid'])) { ?>
<div class="float_typeid">
<select name="sortid" id="sortid" change="switchsort()">
<? if(!$sortid) { ?><option value="0">分类信息</option><? } if(is_array($threadsorts['types'])) { foreach($threadsorts['types'] as $tsortid => $name) { if(!empty($modelid) && $threadsorts['modelid'][$tsortid] == $modelid || empty($modelid)) { ?>
<option value="<?=$tsortid?>"<? if($sortid == $tsortid) { ?> selected="selected"<? } ?>><? echo strip_tags($name);; ?></option>
<? } } } ?></select>
</div>
<? } if($action == 'edit' && $isfirstpost && $sortid) { ?>
<input type="hidden" name="sortid" value="<?=$sortid?>" />
<? } if($isfirstpost && $forum['threadtypes']['types']) { ?>
<div class="float_typeid">
<select name="typeid" id="typeid">
<option value="0">分类</option><? if(is_array($forum['threadtypes']['types'])) { foreach($forum['threadtypes']['types'] as $typeid => $name) { ?><option value="<?=$typeid?>"<? if($thread['typeid'] == $typeid) { ?> selected="selected"<? } ?>><? echo strip_tags($name);; ?></option><? } } ?></select>
</div>
<? } ?>
</div>
</div>
<? if($showthreadsorts) { ?>
<div class="classifieds"<? if(empty($infloat)) { ?> style="overflow-y:visible;height:auto;"<? } ?>>
<table cellpadding="0" cellspacing="0" class="formtable">
<tbody id="threadsorts"><span id="threadsortswait"></span></tbody>
</table>
</div>
</div></div></div>
<div style="clear:both;<? if(!empty($infloat)) { ?> width:2500px<? } ?>">
<? if(!empty($infloat)) { ?><div class="floatbox floatbox1" id="extcreditbox3"></div><? } ?>
<div class="floatbox floatbox1" id="editorbox">
<? if(!empty($infloat)) { ?>
<h3 class="float_ctrl">
<em><button id="creditlink" type="button" onclick="pagescrolls('return');return false">返回</button></em>
<span>
<a href="javascript:;" onclick="pagescrolls('credit3')" title="积分说明">积分说明</a>
<? if(!empty($infloat)) { ?>
<a href="javascript:;" class="float_max" onclick="editorwindowopen('post.php?<?=$posturl?>')" title="新窗口">新窗口</a>
<a href="javascript:;" class="float_max" onclick="resizeEditorwin()" title="最大化" id="resizeEditorwin">最大化</a>
<a href="javascript:;" class="float_close" onclick="closeEditorwin()" title="关闭">关闭</a>
<? } ?>
</span>
</h3>
<? } ?>
<div class="postbox">
<? } elseif($adveditor) { if($special == 1) { include template('post_poll'); } elseif($special == 2) { include template('post_trade'); } elseif($special == 3) { include template('post_reward'); } elseif($special == 4) { include template('post_activity'); } elseif($special == 5) { include template('post_debate'); } elseif($special == 6) { include template('post_video'); } ?>
</div>
<div style="clear:both;<? if(!empty($infloat)) { ?> width:2500px<? } ?>">
<? if(!empty($infloat)) { ?><div class="floatbox floatbox1" id="extcreditbox3"></div><? } ?>
<div class="floatbox floatbox1" id="editorbox">
<? if(!empty($infloat)) { ?>
<h3 class="float_ctrl">
<em><button id="creditlink" type="button" onclick="pagescrolls('return');return false">返回</button></em>
<span>
<a href="javascript:;" onclick="pagescrolls('credit3')" title="积分说明">积分说明</a>
<? if(!empty($infloat)) { ?>
<a href="javascript:;" class="float_max" onclick="editorwindowopen('post.php?<?=$posturl?>')" title="新窗口">新窗口</a>
<a href="javascript:;" class="float_max" onclick="resizeEditorwin()" title="最大化" id="resizeEditorwin">最大化</a>
<a href="javascript:;" class="float_close" onclick="closeEditorwin()" title="关闭">关闭</a>
<? } ?>
</span>
</h3>
<? } ?>
<div class="postbox">
<? } ?>
<div id="<?=$editorid?>_controls" class="editorrow">
<div class="editor">
<a id="<?=$editorid?>_switcher" class="plugeditor editormode"><input type="checkbox" name="checkbox" value="0" <? if(!$editormode) { ?>checked="checked"<? } ?> onclick="switchEditor(this.checked?0:1)" />源码</a>
<div class="editorbtn"><? if(is_array($_DCACHE['bbcodes_display'])) { foreach($_DCACHE['bbcodes_display'] as $tag => $bbcode) { if($bbcode['type'] == '1') { if($bbcode['icon'] == 'popup_simple') { ?>
<a id="<?=$editorid?>_cmd_bold" title="粗体"><?=$bbcode['tag']?></a>
<a id="<?=$editorid?>_popup_simple" title="<?=$bbcode['explanation']?>"><?=$bbcode['tag']?></a>
<? } elseif(!($tag == 'media' && !$forum['allowmediacode']) && !($tag == 'hide' && !$allowhidecode)) { ?>
<a id="<?=$editorid?>_<?=$bbcode['icon']?>" title="<?=$bbcode['explanation']?>"><?=$bbcode['tag']?></a>
<? } } elseif($bbcode['type'] == '0' && $forum['allowbbcode'] && $allowcusbbcode) { ?>
<a id="<?=$editorid?>_cmd_custom<?=$bbcode['params']?>_<?=$tag?>" class="customedit" title="<?=$bbcode['explanation']?>"><img src="images/common/<?=$bbcode['icon']?>" title="<?=$bbcode['explanation']?>" alt="<?=$tag?>" /></a>
<? } } } ?></div>
</div>
<div class="editortoolbar">
<div class="popupmenu_popup fontstyle_menu" id="<?=$editorid?>_popup_simple_menu" style="display: none">
<ul unselectable="on">
<li><a id="<?=$editorid?>_cmd_italic" title="斜体">斜体</a></li>
<li><a id="<?=$editorid?>_cmd_underline" title="下划线">下划线</a></li>
</ul>
</div><? $fontoptions = array("仿宋_GB2312", "黑体", "楷体_GB2312", "宋体", "新宋体", "微软雅黑", "Trebuchet MS", "Tahoma", "Arial", "Impact", "Verdana", "Times New Roman") ?><div class="popupmenu_popup fontname_menu" id="<?=$editorid?>_popup_fontname_menu" style="display: none">
<ul unselectable="on"><? if(is_array($fontoptions)) { foreach($fontoptions as $fontname) { ?><li onclick="discuzcode('fontname', '<?=$fontname?>')" style="font-family: <?=$fontname?>" unselectable="on"><?=$fontname?></li><? } } ?></ul>
</div><? $sizeoptions = array(1, 2, 3, 4, 5, 6, 7) ?><div class="popupmenu_popup fontsize_menu" id="<?=$editorid?>_popup_fontsize_menu" style="display: none">
<ul unselectable="on"><? if(is_array($sizeoptions)) { foreach($sizeoptions as $size) { ?><li onclick="discuzcode('fontsize', <?=$size?>)" unselectable="on"><font size="<?=$size?>" unselectable="on"><?=$size?></font></li><? } } ?></ul>
</div><? $coloroptions = array('Black', 'Sienna', 'DarkOliveGreen', 'DarkGreen', 'DarkSlateBlue', 'Navy', 'Indigo', 'DarkSlateGray', 'DarkRed', 'DarkOrange', 'Olive', 'Green', 'Teal', 'Blue', 'SlateGray', 'DimGray', 'Red', 'SandyBrown', 'YellowGreen','SeaGreen', 'MediumTurquoise','RoyalBlue', 'Purple', 'Gray', 'Magenta', 'Orange', 'Yellow', 'Lime', 'Cyan', 'DeepSkyBlue', 'DarkOrchid', 'Silver', 'Pink', 'Wheat', 'LemonChiffon', 'PaleGreen', 'PaleTurquoise', 'LightBlue', 'Plum', 'White') ?><div class="popupmenu_popup" id="<?=$editorid?>_popup_forecolor_menu" style="display: none">
<table cellpadding="0" cellspacing="0" border="0" unselectable="on" style="width: auto;"><tr><? if(is_array($coloroptions)) { foreach($coloroptions as $key => $colorname) { ?><td class="editor_colornormal" onclick="discuzcode('forecolor', '<?=$colorname?>')" unselectable="on"><div style="background-color: <?=$colorname?>" unselectable="on"></div></td><? if(($key + 1) % 8 == 0) { ?></tr><tr><? } } } ?></tr></table></div>
<div class="popupmenu_popup" id="<?=$editorid?>_popup_justify_menu" style="display: none">
<ul unselectable="on">
<li><a id="<?=$editorid?>_cmd_justifyleft" title="居左">居左</a></li>
<li><a id="<?=$editorid?>_cmd_justifycenter" title="居中">居中</a></li>
<li><a id="<?=$editorid?>_cmd_justifyright" title="居右">居右</a></li>
</ul>
</div>
<? if($_DCACHE['bbcodes_display']['smilies']) { ?>
<div class="smilies" id="<?=$editorid?>_popup_smilies_menu" style="display: none">
<div class="smilieslist">
<div id="smiliesdiv"></div>
<script type="text/javascript" reload="1">
smilies_show('smiliesdiv', <?=$smcols?>, 1);
function smilies_onload_smiliesdiv() {
loadselect('smiliesdiv_seltype', 0, 'floatlayout_<?=$action?>');
}
</script>
</div>
</div>
<? } ?>
<div class="popupmenu_popup" id="<?=$editorid?>_popup_dent_menu" style="display: none">
<ul unselectable="on">
<li><a id="<?=$editorid?>_cmd_indent" title="增加缩进">增加缩进</a></li>
<li><a id="<?=$editorid?>_cmd_outdent" title="减少缩进">减少缩进</a></li>
</ul>
</div>
<div class="popupmenu_popup" id="<?=$editorid?>_popup_float_menu" style="display: none">
<ul unselectable="on">
<li><a id="<?=$editorid?>_cmd_floatleft" title="左浮动">左浮动</a></li>
<li><a id="<?=$editorid?>_cmd_floatright" title="右浮动">右浮动</a></li>
</ul>
</div>
<div class="popupmenu_popup" id="<?=$editorid?>_popup_list_menu" style="display: none">
<ul unselectable="on">
<li><a id="<?=$editorid?>_cmd_insertorderedlist" title="排序的列表">排序的列表</a></li>
<li><a id="<?=$editorid?>_cmd_insertunorderedlist" title="未排序列表">未排序列表</a></li>
</ul>
</div>
<div class="popupmenu_popup" id="<?=$editorid?>_popup_hide_menu" style="display: none">
<ul unselectable="on">
<? if($allowhidecode) { ?><li><a id="<?=$editorid?>_popup_hide" title="插入隐藏内容">插入隐藏内容</a></li><? } ?>
<li><a id="<?=$editorid?>_cmd_table" title="插入表格">插入表格</a></li>
<li><a id="<?=$editorid?>_cmd_free" title="插入免费信息">插入免费信息</a></li>
</ul>
</div>
<div class="popupmenu_popup" id="<?=$editorid?>_popup_tools_menu" style="display: none">
<ul unselectable="on">
<a id="<?=$editorid?>_cmd_removeformat" title="清除文本格式">清除文本格式</a>
<a id="<?=$editorid?>_cmd_unlink" title="移除链接">移除链接</a>
<a id="<?=$editorid?>_cmd_undo" title="撤销">撤销</a>
<a id="<?=$editorid?>_cmd_redo" title="重做">重做</a>
<a id="<?=$editorid?>_cmd_checklength" title="字数检查">字数检查</a>
<a id="<?=$editorid?>_cmd_clearcontent" title="清空内容">清空内容</a>
<br />
<a id="<?=$editorid?>_cmd_autosave" title="自动保存">自动保存<em id="autsavet">(已停止)</em></a>
<a id="<?=$editorid?>_cmd_saveData" title="保存数据">保存数据</a>
<a id="<?=$editorid?>_cmd_loadData" title="恢复数据">恢复数据</a>
</ul>
</div>
</div>
</div>
<div class="newediter">
<table cellpadding="0" cellspacing="0" border="0" width="100%" style="table-layout:fixed">
<tr><td><textarea class="autosave<? if(($action != 'edit' || !$attachments) && (!$swfupload || !$swfattachs)) { ?> max<? } ?>" name="message" id="<?=$editorid?>_textarea" tabindex="1"<? if(empty($infloat)) { ?> class="txt" style="height:300px"<? } ?>><? if($action == 'edit') { ?><?=$postinfo['message']?><? } else { ?><?=$message?><? } ?></textarea></td></tr>
</table>
</div>
</div><div class="popupmenu_popup" id="imgpreview_menu" style="position:absolute;width:180px;height:150px;padding:0px;display: none;"></div>
<div class="post_tablelist postbox" id="attachlist"<? if(($action != 'edit' || !$attachments) && (!$swfupload || !$swfattachs)) { ?> style="display: none"<? } ?>>
<? if($allowpostattach) { ?>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr>
<td class="attachnum"></td>
<td class="attachctrl"></td>
<td class="attachname">文件名</td>
<? if($allowsetattachperm) { ?><td class="attachview">阅读权限</td><? } if($maxprice) { ?><td class="attachpr"><? if($extcredits[$creditstransextra['1']]['img']) { ?><?=$extcredits[$creditstransextra['1']]['img']?> <? } ?><?=$extcredits[$creditstransextra['1']]['title']?></td><? } ?>
<td class="attachdel"></td>
</tr>
</table>
<div id="uploadlist" class="upfilelist"<? if(empty($infloat)) { ?> style="height:auto"<? } ?>>
<? if($action == 'edit') { include template('post_attachlist'); } ?>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tbody id="attachbodyhidden" style="display:none"><tr>
<td class="attachnum"><span id="localno[]"><img src="images/attachicons/common_new.gif" /></span></td>
<td class="attachctrl"><span id="cpadd[]"></span></td>
<td class="attachname">
<span id="deschidden[]" style="display:none">
<a href="javascript:;" onclick='parentNode.innerHTML="<input type=\"text\" name=\"attachdesc[]\" size=\"25\" class=\"txt\" />"'>描述</a>
<span id="localfile[]"></span>
<input type="text" name="attachdesc[]" style="display:none" />
</span>
<input type="hidden" name="localid[]" />
</td>
<? if($allowsetattachperm) { ?><td class="attachview"><input type="text" name="attachperm[]" value="0"size="1" class="txt" /></td><? } if($maxprice) { ?><td class="attachpr"><input type="text" name="attachprice[]" value="0" size="1" class="txt" /></td><? } ?>
<td class="attachdel"><span id="cpdel[]"></span></td>
</tr></tbody>
</table>
<? if($swfupload) { ?>
<div id="swfattachlist">
<? if($swfattachs) { ?>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<tr><td class="attachnum"></td><td>您有 <?=$swfattachs?> 个已经上传的附件
<a href="javascript:;" onclick="swfattachlistupdate()">使用</a> <a href="javascript:;" onclick="display('swfattachlist')">忽略</a>
</td></tr>
</table>
<? } ?>
</div>
<? } ?>
<table cellpadding="0" cellspacing="0" summary="post_attachbody" border="0" width="100%"><tbody id="attachbody"></tbody></table>
</div>
<? } ?>
</div>
<div id="img_hidden" alt="1" style="position:absolute;top:-100000px;filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='image');width:<?=$thumbwidth?>px;height:<?=$thumbheight?>px"></div>
</div>
<? if($swfupload) { ?>
<div id="swfuploadbox" class="floatbox floatbox1 floatboxswf" style="display: none">
<h3 class="float_ctrl">
<em<? if(empty($infloat)) { ?> style="display:none"<? } ?>><button type="button" onclick="pagescrolls('swfreturn');return false">返回</button></em>
<? if(empty($infloat)) { ?><em>批量上传</em><? } ?>
<span id="swfclosebtn" style="display:none">
<a href="javascript:;" class="float_close" onclick="swfuploadwin()" title="关闭">关闭</a>
</span>
</h3>
<div id="swfbox" style="display: none">
<script type="text/javascript" reload="1">
$('swfbox').innerHTML = AC_FL_RunContent(
'width', '570', 'height', '318',
'src', 'images/common/upload.swf?site=<?=$boardurl?>misc.php',
'quality', 'high',
'id', 'swfupload',
'menu', 'false',
'allowScriptAccess', 'always'
);
</script>
</div>
</div>
<? } ?>
</div>
<div style="clear:both;<? if(!empty($infloat)) { ?> width:2500px<? } ?>">
<? if(!empty($infloat)) { ?><div class="floatbox floatbox1" id="extcreditbox2"></div><? } ?>
<div class="floatbox floatbox1">
<h3 class="float_ctrl"<? if(empty($infloat)) { ?> style="display:none"<? } ?>>
<em><button type="button" onclick="pagescrolls('editorreturn');return false">返回</button></em>
<span>
<a href="javascript:;" onclick="pagescrolls('credit2')" title="积分说明">积分说明</a>
<? if(!empty($infloat)) { ?>
<a href="javascript:;" class="float_close" onclick="closeEditorwin()" title="关闭">关闭</a>
<? } ?>
</span>
</h3>
<div class="postbox">
<? if($action == 'newthread' || $action == 'edit' && $isfirstpost) { if($tagstatus) { ?>
<div class="posttags">
<p><strong>标签(TAG):</strong> (用逗号或空格隔开多个标签,最多可填写 <strong>5</strong> 个)</p>
<p><input type="text" name="tags" id="tags" class="txt" value="<?=$threadtags?>" tabindex="1" /><button name="addtags" type="button" onclick="relatekw();return false">+可用标签</button> <span id="tagselect"></span></p>
</div>
<? } ?>
<div class="columntype">
<? if($allowsetreadperm) { ?>
<p><strong>阅读权限:</strong></p>
<p><input type="text" name="readperm" value="<?=$thread['readperm']?>" class="txt" tabindex="1" /> 0或空为不限制</p>
<? } if($maxprice && !$special) { ?>
<p><strong>售价</strong>(<?=$extcredits[$creditstransextra['1']]['title']?>):</p>
<p><input type="text" name="price" value="<?=$thread['pricedisplay']?>" class="txt" tabindex="1" /> <?=$extcredits[$creditstransextra['1']]['unit']?> 最高 <?=$maxprice?> <?=$extcredits[$creditstransextra['1']]['unit']?> <? if($maxincperthread) { ?>,单一主题作者最高收入 <?=$maxincperthread?> <?=$extcredits[$creditstransextra['1']]['unit']?><? } if($maxchargespan) { ?>,最高出售时限 <?=$maxchargespan?> 小时<? } ?>
您可以使用 <code><strong>[free]</strong>message<strong>[/free]</strong></code> 代码发表无需付费也能查看的免费信息</p>
<? } ?>
</div>
<? } ?>
<div class="columntype">
<h4>发帖选项:</h4>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="firstlist">
<? if(($forum['allowhtml'] || ($action == 'edit' && ($org['htmlon'] & 1))) && $allowhtml) { ?>
<p><input type="checkbox" name="htmlon" id="htmlon" value="1" <?=$htmloncheck?> /><label for="htmlon">Html 代码</label></p>
<? } else { ?>
<p><input type="checkbox" name="htmlon" id="htmlon" value="0" <?=$htmloncheck?> disabled="disabled" /><label for="htmlon">Html 代码</label></p>
<? } ?>
<p><input type="checkbox" id="allowimgcode" disabled<? if($forum['allowimgcode']) { ?> checked="checked"<? } ?> /><label for="allowimgcode">[img] 代码</label></p>
</td>
<td>
<p><input type="checkbox" name="parseurloff" id="parseurloff" value="1" <?=$urloffcheck?> tabindex="1" /><label for="parseurloff">禁用 URL 识别</label></p>
<p><input type="checkbox" name="smileyoff" id="smileyoff" value="1" <?=$smileyoffcheck?> tabindex="1" /><label for="smileyoff">禁用 <a href="faq.php?action=faq&id=5&messageid=32" target="_blank">表情</a></label></p>
<p><input type="checkbox" name="bbcodeoff" id="bbcodeoff" value="1" <?=$codeoffcheck?> tabindex="1" /><label for="bbcodeoff">禁用 <a href="faq.php?action=faq&id=5&messageid=18" target="_blank">Discuz!代码</a></label></p>
<? if($tagstatus && ($action == 'newthread' || $action == 'edit' && $isfirstpost)) { ?>
<p><input type="checkbox" name="tagoff" id="tagoff" <? if(!empty($tagoffcheck)) { ?>checked="checked"<? } ?> tabindex="1" /><label for="tagoff">禁用 标签解析</label></p>
<? } ?>
</td>
<td>
<p><input type="checkbox" name="usesig" id="usesig" value="1" <? if(!$maxsigsize) { ?>disabled <? } else { ?><?=$usesigcheck?> <? } ?>tabindex="1" /><label for="usesig">使用个人签名</label></p>
<? if($action != 'edit') { if($allowanonymous) { ?><p><input type="checkbox" name="isanonymous" id="isanonymous" value="1" tabindex="1" /><label for="isanonymous">使用匿名发帖</label></p><? } } else { if($allowanonymous || (!$allowanonymous && $orig['anonymous'])) { ?><p><input type="checkbox" name="isanonymous" value="1" <? if($orig['anonymous']) { ?>checked="checked"<? } ?> tabindex="1" /><label for="isanonymous">使用匿名发帖</label></p><? } } if($action != 'edit') { ?><p><input type="checkbox" name="emailnotify" id="emailnotify" <?=$notifycheck?> tabindex="1" /><label for="emailnotify">接收新回复邮件通知</label></p><? } ?>
</td>
<td>
<? if($action == 'newthread' && $forum['ismoderator'] && ($allowdirectpost || !$forum['modnewposts'])) { if($action == 'newthread' && $forum['ismoderator'] && ($allowdirectpost || !$forum['modnewposts'])) { ?>
<p><input type="checkbox" name="sticktopic" id="sticktopic" value="1" <?=$stickcheck?> tabindex="1" /><label for="sticktopic">主题置顶</label></p>
<p><input type="checkbox" name="addtodigest" id="addtodigest" value="1" <?=$digestcheck?> tabindex="1" /><label for="addtodigest">精华帖子</label></p>
<? } } elseif($action == 'edit' && $auditstatuson) { ?>
<p><input type="checkbox" name="audit" id="audit" value="1"><label for="audit">通过审核</label></p>
<? } if($uchome['addfeed'] && $ucappopen['UCHOME'] && $forum['allowfeed']) { ?>
<p><input type="checkbox" name="addfeed" id="addfeed" value="1" <?=$addfeedcheck?>><label for="addfeed"> 加入事件</label></p>
<? } ?>
</td>
</tr>
</table><br />
</div>
<div class="moreconf" id="moreconf">
<div class="custominfoarea" id="custominfoarea" style="<? if($special && $action != 'reply') { ?>display: none;<? } ?>">
<? if($action == 'newthread' && $sitemessage['newthread'] || $action == 'reply' && $sitemessage['reply']) { ?>
<a href="javascript:;" onclick="display('custominfo_post')" onblur="$('custominfo_post').style.display = 'none'"><img src="<?=IMGDIR?>/info.gif" alt="帮助" /></a>
<div id="custominfo_post" class="sitenote">
<div class="cornerlayger">
<? if($action == 'newthread') { echo $sitemessage['newthread'][array_rand($sitemessage['newthread'])]; } elseif($action == 'reply') { echo $sitemessage['reply'][array_rand($sitemessage['reply'])]; } ?>
</div>
<div class="minicorner"></div>
</div>
<? } ?>
</div>
<button type="submit" id="postsubmit" value="true" name="<? if($action == 'newthread') { ?>topicsubmit<? } elseif($action == 'reply') { ?>replysubmit<? } elseif($action == 'edit') { ?>editsubmit<? } ?>" tabindex="1">
<? if($action == 'newthread') { if($special == 0) { ?>发新话题
<? } elseif($special == 1) { ?>发布投票
<? } elseif($special == 2) { ?>发布商品
<? } elseif($special == 3) { ?>发布悬赏
<? } elseif($special == 4) { ?>发布活动
<? } elseif($special == 5) { ?>发布辩论
<? } elseif($special == 6) { ?>发布视频
<? } } elseif($action == 'reply' && !empty($addtrade)) { ?>添加商品
<? } elseif($action == 'reply') { ?>参与/回复主题
<? } elseif($action == 'edit') { ?>编辑帖子
<? } ?>
</button>
<span id="more_1"<? if($advmore) { ?> style="display: none"<? } ?>>
<? if(!empty($infloat) && ($showthreadsorts || $special)) { ?>
<a href="javascript:;" onclick="pagescrolls('editor')">添加详情<? if($special == 1) { ?>投票<? } elseif($special == 2) { ?>商品<? } elseif($special == 3) { ?>悬赏<? } elseif($special == 4) { ?>活动<? } elseif($special == 5) { ?>辩论<? } elseif($special == 6) { ?>视频<? } ?>描述</a>
<? } ?>
</span>
<span id="more_2"<? if(!$advmore && !empty($infloat)) { ?> style="display: none"<? } ?>>
<? if($allowpostattach) { ?>
<span class="sim_upfile" onmouseover="$('attachinfo').style.display='';" onmouseout="$('attachinfo').style.display='none';">
<span id="attachbtnhidden" style="display:none"><span><input type="file" name="attach[]" size="1" /></span></span>
<span id="attachbtn"></span>
<a href="javascript:;" onclick="return false;">添加附件</a>
<? if($swfupload) { ?>
<a href="javascript:;" onclick="swfuploadwin()">批量上传</a>
<? } ?>
<div id="attachinfo" class="sitenote<? if($action == 'newthread' || ($action == 'edit' && $isfirstpost)) { if($special) { ?> upfile_special<? } else { ?> upfile<? } } ?>" style="display:none;">
<div class="cornerlayger">
文件尺寸: <strong><? if($maxattachsize) { ?>小于 <?=$maxattachsize_mb?> <? } else { ?>大小不限制<? } ?></strong>
<? if($attachextensions) { ?>可用扩展名: <strong><?=$attachextensions?></strong> <? } if($maxprice) { ?>售价: <strong>最高 <?=$maxprice?> <?=$extcredits[$creditstransextra['1']]['unit']?><?=$extcredits[$creditstransextra['1']]['title']?><? if($maxincperthread) { ?>,单一主题作者最高收入 <?=$maxincperthread?> <?=$extcredits[$creditstransextra['1']]['unit']?><? } if($maxchargespan) { ?>,最高出售时限 <?=$maxchargespan?> 小时<? } } ?></strong>
</div>
<div class="minicorner"></div>
</div>
</span>
<a href="javascript:;" onclick="attachlist()">附件列表</a>
<? } if(!empty($infloat)) { ?><a href="javascript:;" id="morelink" onclick="pagescrolls('more')">更多设定</a><? } ?>
</span>
<? if($secqaacheck || $seccodecheck) { ?><span style="position:relative"><? $seccheckfloat = 'floatlayout_'.$action; ?><script type="text/javascript" reload="1">
function updateseccode<?=$secchecktype?>(op) {
if(isUndefined(op)) {
var x = new Ajax();
ajaxget('ajax.php?action=updateseccode&secchecktype=<?=$secchecktype?>', 'seccodeverify<?=$secchecktype?>_menu', 'seccodeverify<?=$secchecktype?>_menu');
} else {
window.document.seccodeplayer.SetVariable("isPlay", "1");
}
$('seccodeverify<?=$secchecktype?>').focus();
}
function updatesecqaa<?=$secchecktype?>() {
var x = new Ajax();
ajaxget('ajax.php?action=updatesecqaa', 'secanswer<?=$secchecktype?>_menu', 'secanswer<?=$secchecktype?>_menu');
}
var secclick<?=$secchecktype?> = new Array();
var seccodefocus = 0;
function opensecwin<?=$secchecktype?>(id, type) {
if(!secclick<?=$secchecktype?>[id]) {
$(id).value = '';
secclick<?=$secchecktype?>[id] = 1;
if(type) {
$(id + '_menu').style.top = (parseInt($(id + '_menu').style.top) - parseInt($(id + '_menu').style.height)) + 'px';
updateseccode<?=$secchecktype?>();
} else {
updatesecqaa<?=$secchecktype?>();
}
}
<? if(empty($secchecktype)) { if(!empty($infloat)) { ?>
InFloat='<?=$seccheckfloat?>';
<? } if($seccheckfloat) { ?>
$(id + '_menu').style.position = 'absolute';
$(id + '_menu').style.top = (-parseInt($(id + '_menu').style.height)) + 'px';
<? if($secqaacheck) { ?>
if(type) {
$(id + '_menu').style.left = $(id).offsetLeft + 'px';
} else {
$(id + '_menu').style.left = '0px';
}
<? } else { ?>
$(id + '_menu').style.left = '0px';
<? } } } elseif($secchecktype == 1) { if(!empty($infloat)) { ?>
InFloat='floatlayout_register';
<? } ?>
showMenu(id, 0, 2, 3);
<? } elseif($secchecktype == 3) { ?>
showMenu(id, 0, 2, 3);
<? } ?>
$(id + '_menu').style.display = '';
$(id).focus();
$(id).unselectable = 'off';
}
</script>
<? if($secqaacheck) { ?>
<input name="secanswer" id="secanswer<?=$secchecktype?>" type="text" autocomplete="off" style="width:50px" value="验证问答" class="txt" onfocus="opensecwin<?=$secchecktype?>(this.id, 0)" onclick="opensecwin<?=$secchecktype?>(this.id, 0)" onblur="display(this.id + '_menu');checksecanswer<?=$secchecktype?>();" tabindex="1">
<span id="checksecanswer<?=$secchecktype?>"><img src="images/common/none.gif" width="16" height="16"></span>
<div id="secanswer<?=$secchecktype?>_menu" class="seccodecontent" style="width:200px;height:80px;display:none"></div>
<? } if($seccodecheck) { ?>
<input name="seccodeverify" id="seccodeverify<?=$secchecktype?>" type="text" autocomplete="off" style="width:50px" value="验证码" class="txt" onfocus="opensecwin<?=$secchecktype?>(this.id, 1)" onclick="opensecwin<?=$secchecktype?>(this.id, 1)" onblur="if(!seccodefocus) {display(this.id + '_menu')}checkseccode<?=$secchecktype?>();" tabindex="1">
<a href="javascript:;" onclick="updateseccode<?=$secchecktype?>()">换一个</a>
<span id="checkseccodeverify<?=$secchecktype?>"><img src="images/common/none.gif" width="16" height="16"></span>
<div id="seccodeverify<?=$secchecktype?>_menu" class="seccodecontent" onmouseover="seccodefocus = 1" onmouseout="seccodefocus = 0" style="cursor: pointer;top: 256px;width:<?=$seccodedata['width']?>px;height:<?=$seccodedata['height']?>px;display:none"></div>
<? } ?>
<script type="text/javascript" reload="1">
var profile_seccode_invalid = '验证码输入错误,请重新填写。';
var profile_secanswer_invalid = '验证问答回答错误,请重新填写。';
var lastseccode = lastsecanswer = '';
function checkseccode<?=$secchecktype?>() {
var seccodeverify = $('seccodeverify<?=$secchecktype?>').value;
if(seccodeverify == lastseccode) {
return;
} else {
lastseccode = seccodeverify;
}
var cs = $('checkseccodeverify<?=$secchecktype?>');
<? if($seccodedata['type'] != 1) { ?>
if(!(/[0-9A-Za-z]{4}/.test(seccodeverify))) {
warning<?=$secchecktype?>(cs, profile_seccode_invalid);
return;
}
<? } else { ?>
if(seccodeverify.length != 2) {
warning<?=$secchecktype?>(cs, profile_seccode_invalid);
return;
}
<? } ?>
ajaxresponse<?=$secchecktype?>('checkseccodeverify<?=$secchecktype?>', 'action=checkseccode&seccodeverify=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(seccodeverify) : seccodeverify));
}
function checksecanswer<?=$secchecktype?>() {
var secanswer = $('secanswer<?=$secchecktype?>').value;
if(secanswer == lastsecanswer) {
return;
} else {
lastsecanswer = secanswer;
}
ajaxresponse<?=$secchecktype?>('checksecanswer<?=$secchecktype?>', 'action=checksecanswer&secanswer=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(secanswer) : secanswer));
}
function ajaxresponse<?=$secchecktype?>(objname, data) {
var x = new Ajax('XML', objname);
x.get('ajax.php?inajax=1&' + data, function(s){
var obj = $(objname);
if(s == 'succeed') {
obj.style.display = '';
obj.innerHTML = '<img src="<?=IMGDIR?>/check_right.gif" width="16" height="16" />';
obj.className = "warning";
} else {
warning(obj, s);
}
});
}
function warning(obj, msg) {
if((ton = obj.id.substr(5, obj.id.length)) != 'password2') {
$(ton).select();
}
obj.style.display = '';
obj.innerHTML = '<img src="<?=IMGDIR?>/check_error.gif" width="16" height="16" />';
obj.className = "warning";
}
</script></span><? } ?>
</div>
</div>
</div>
</form>
</div>
<? if(!empty($infloat)) { ?>
<div id="extcreditbox" style="display: none">
<h3 class="float_ctrl">
<em><button type="button" onclick="pagescrolls('creditreturn');return false">返回</button></em>
<span>
<a href="faq.php?action=credits&fid=<?=$fid?>" target="_blank">查看积分策略说明</a>
</span>
</h3>
<div class="postbox">
<div class="post_tablelist extcreditbox">
<table cellpadding="0" cellspacing="0" summary="post_attachbody" border="0" width="100%">
<thead>
<tr>
<td class="extname"></td><? if(is_array($extcredits)) { foreach($extcredits as $id => $credit) { ?><td class="extcredits"><?=$credit['title']?></td><? } } ?><td></td>
</tr>
</thead>
<tbody><? if(is_array($policyarray)) { foreach($policyarray as $operation => $policy) { ?><tr>
<td class="extname">
<? if($operation == 'post') { ?>
发新主题
<? } elseif($operation == 'reply') { ?>
发表回复
<? } elseif($operation == 'digest') { ?>
加入精华
<? } elseif($operation == 'postattach') { ?>
发表附件
<? } elseif($operation == 'getattach') { ?>
下载附件
<? } ?>
</td><? if(is_array($extcredits)) { foreach($extcredits as $id => $credit) { ?><td class="extcredits">
<? if($creditsarray[$operation][$id]) { ?>
<?=$creditsarray[$operation][$id]?>
<? } else { ?>
-
<? } ?>
</td><? } } ?><td></td>
</tr><? } } ?></tbody>
</table>
总积分计算公式: <?=$creditsformulaexp?>
</div>
</div>
</div>
<? } if($forum['allowmediacode']) { ?>
<div class="popupmenu_popup" id="<?=$editorid?>_popup_media_menu" style="width: 280px;display: none" unselectable="on">
<input type="hidden" id="<?=$editorid?>_mediatype" value="ra">
<table cellpadding="4" cellspacing="0" border="0">
<tr class="popupmenu_option">
<td nowrap>
请输入多媒体文件的地址:<br />
<input id="<?=$editorid?>_mediaurl" style="width: 98%" value="" onkeyup="setmediatype('<?=$editorid?>')" />
</td>
</tr>
<tr class="popupmenu_option">
<td nowrap>
<label style="float: left; width: 32%"><input type="radio" name="<?=$editorid?>_mediatyperadio" id="<?=$editorid?>_mediatyperadio_ra" onclick="$('<?=$editorid?>_mediatype').value = 'ra'" checked="checked">RA</label>
<label style="float: left; width: 32%"><input type="radio" name="<?=$editorid?>_mediatyperadio" id="<?=$editorid?>_mediatyperadio_wma" onclick="$('<?=$editorid?>_mediatype').value = 'wma'">WMA</label>
<label style="float: left; width: 32%"><input type="radio" name="<?=$editorid?>_mediatyperadio" id="<?=$editorid?>_mediatyperadio_mp3" onclick="$('<?=$editorid?>_mediatype').value = 'mp3'">MP3</label>
<label style="float: left; width: 32%"><input type="radio" name="<?=$editorid?>_mediatyperadio" id="<?=$editorid?>_mediatyperadio_rm" onclick="$('<?=$editorid?>_mediatype').value = 'rm'">RM/RMVB</label>
<label style="float: left; width: 32%"><input type="radio" name="<?=$editorid?>_mediatyperadio" id="<?=$editorid?>_mediatyperadio_wmv" onclick="$('<?=$editorid?>_mediatype').value = 'wmv'">WMV</label>
<label style="float: left; width: 32%"><input type="radio" name="<?=$editorid?>_mediatyperadio" id="<?=$editorid?>_mediatyperadio_mov" onclick="$('<?=$editorid?>_mediatype').value = 'mov'">MOV</label>
</td>
</tr>
<tr class="popupmenu_option">
<td nowrap>
<label style="float: left; width: 32%">宽: <input id="<?=$editorid?>_mediawidth" size="5" value="400" /></label>
<label style="float: left; width: 32%">高: <input id="<?=$editorid?>_mediaheight" size="5" value="300" /></label>
</td>
</tr>
<tr class="popupmenu_option">
<td align="center" colspan="2"><input type="button" value="提交" onclick="setmediacode('<?=$editorid?>')"> <input type="button" onclick="hideMenu()" value="取消" /></td>
</tr>
</table>
</div>
<? } if($_DCACHE['bbcodes_display']['img']) { ?>
<div class="popupmenu_popup" id="<?=$editorid?>_cmd_insertimage_menu" style="display: none" unselectable="on">
<ul class="imguptype">
<li><a href="javascript:;" hidefocus="true" class="current" id="insertimage_www"<? if($ucappopen['UCHOME']) { ?> onclick="switchImage('www');"<? } ?>>网络图片</a></li>
<? if($ucappopen['UCHOME']) { ?><li><a href="javascript:;" hidefocus="true" id="insertimage_album" onclick="switchImage('album');">我的相册</a></li><? } ?>
</ul>
<div class="popupmenu_option" unselectable="on" id="insertimage_www_div">
请输入图片地址:<br /><input id="<?=$editorid?>_cmd_insertimage_param_url" style="width: 300px;" value="" class="txt" type="text" onkeydown="editorMenuEvent_onkeydown(this);" />
<br /><center><input id="<?=$editorid?>_cmd_insertimage_submit" value="提交" type="button" onclick="insertimagesubmit()" /> <input onclick="hideMenu();" value="取消" type="button" /></center>
</div>
<? if($ucappopen['UCHOME']) { ?>
<div class="popupmenu_option" unselectable="on" id="insertimage_album_div" style="display: none;">
<div id="uch_photoes"></div><p id="uch_createalbum" style="display: none; padding-left: 4px; magin-top: -1em;">点击图片插入到帖子内容中</p>
</div>
<script type="text/javascript" reload="1">
var showalbum, prealbum;
function switchImage(img) {
if(img == 'www') {
$('insertimage_www_div').style.display='';
$('insertimage_www').className = 'current';
$('insertimage_album_div').style.display='none';
$('insertimage_album').className = '';
} else if(img == 'album') {
$('insertimage_www').className = '';
$('insertimage_album').className = 'current';
if($('insertimage_album_menu')) {
showAlbums();
} else {
var div = document.createElement('DIV');
div.id = 'insertimage_album_menu';
div.className = 'popupmenu_popup';
div.style.display = 'none';
$('append_parent').appendChild(div);
ajaxget('api/uchome.php?action=getalbums', 'insertimage_album_menu', 'uch_photoes', null, 'none');
showalbum = setInterval(showAlbum, 10);
}
}
}
function showAlbum() {
if($('insertimage_album_menu').innerHTML != '') {
showAlbums();
clearInterval(showalbum);
}
}
function showAlbums() {
if($('insertimage_album_menu').innerHTML == 'NOALBUM') {
$('insertimage_www_div').style.display='none';
$('insertimage_album_div').style.display = '';
$('uch_photoes').style.display = '';
$('uch_photoes').innerHTML = '您还没有相册,<a href="<?=$uchomeurl?>/cp.php?ac=upload" target="_blank">点击这里创建自己的相册</a>吧!';
} else {
showMenu('insertimage_album', true, 0, 2, 250, 1);
}
}
</script>
<? } ?>
</div>
<? } ?>
<script type="text/javascript" reload="1">
var pagescroll = new pagescroll_class('floatlayout_<?=$action?>', 600, 410);
<? if(empty($infloat)) { ?>
$('floatlayout_<?=$action?>').scrollLeft = 600;
<? } if($isfirstpost && $forum['threadtypes']['types']) { ?>
loadselect('typeid', 0, 'floatlayout_<?=$action?>');
<? } if(!$isfirstpost && $thread['special'] == 5 && empty($firststand) && $action != 'edit') { ?>
loadselect('stand', 0, 'floatlayout_<?=$action?>');
<? } if(!$special && $forum['threadsorts'] && ($action == 'newthread' || $action == 'edit' && $isfirstpost && !$thread['sortid'])) { ?>
loadselect('sortid', 0, 'floatlayout_<?=$action?>');
function switchsort() {
if($('sortid').value) {
data = wysiwyg ? editdoc.body.innerHTML : textobj.value;
saveData(wysiwyg ? editdoc.body.innerHTML : textobj.value);
<? if($isfirstpost && $sortid) { ?>
ajaxget('post.php?action=threadsorts&sortid=' + $('sortid').value + '&fid=<?=$fid?><? if(!empty($modelid)) { ?>&modelid=<?=$modelid?><? } ?>', 'threadsorts', 'threadsortswait')
<? } elseif(!empty($infloat)) { ?>
window.open('post.php?action=<?=$action?>&fid=<?=$fid?><? if(!empty($tid)) { ?>&tid=<?=$tid?><? } if(!empty($pid)) { ?>&pid=<?=$pid?><? } if(!empty($modelid)) { ?>&modelid=<?=$modelid?><? } ?>&extra=<?=$extra?>&sortid=' + $('sortid').value + (data != '' ? '&cedit=yes' : ''));
<? } else { ?>
location.href = 'post.php?action=<?=$action?>&fid=<?=$fid?><? if(!empty($tid)) { ?>&tid=<?=$tid?><? } if(!empty($pid)) { ?>&pid=<?=$pid?><? } if(!empty($modelid)) { ?>&modelid=<?=$modelid?><? } ?>&extra=<?=$extra?>&sortid=' + $('sortid').value + (data != '' ? '&cedit=yes' : '');
<? } ?>
Editorwin = 0;
}
}
<? } if($isfirstpost && $sortid) { ?>
ajaxget('post.php?action=threadsorts&sortid=<?=$sortid?>&fid=<?=$fid?><? if(!empty($tid)) { ?>&tid=<?=$tid?><? } ?>&inajax=1', 'threadsorts', 'threadsortswait', 'threadsortswait');
<? } if(($action == 'newthread' && $sitemessage['newthread'] || $action == 'reply' && $sitemessage['reply']) && $sitemessage['time']) { ?>
setTimeout('display_opacity(\'custominfo_post\',100)', <?=$sitemessage['time']?>);
<? } ?>
var postminchars = parseInt('<?=$minpostsize?>');
var postmaxchars = parseInt('<?=$maxpostsize?>');
var disablepostctrl = parseInt('<?=$disablepostctrl?>');
var seccodecheck = parseInt('<?=$seccodecheck?>');
var secqaacheck = parseInt('<?=$secqaacheck?>');
var typerequired = parseInt('<?=$forum['threadtypes']['required']?>');
var special = parseInt('<?=$special?>');
var isfirstpost = <? if($isfirstpost) { ?>1<? } else { ?>0<? } ?>;
var allowposttrade = parseInt('<?=$allowposttrade?>');
var allowpostreward = parseInt('<?=$allowpostreward?>');
var allowpostactivity = parseInt('<?=$allowpostactivity?>');
var sortid = '<?=$sortid?>';
var special = parseInt('<?=$special?>');
var editorid = '<?=$editorid?>';
var textobj = $(editorid + '_textarea');
var wysiwyg = (is_ie || is_moz || (is_opera >= 9)) && parseInt('<?=$editormode?>') == 1 ? 1 : 0;
var allowswitcheditor = parseInt('<?=$allowswitcheditor?>');
var allowhtml = parseInt('<?=$allowhtml?>');
var forumallowhtml = parseInt('<?=$forum['allowhtml']?>');
var allowsmilies = parseInt('<?=$forum['allowsmilies']?>');
var allowbbcode = parseInt('<?=$forum['allowbbcode']?>');
var allowimgcode = parseInt('<?=$forum['allowimgcode']?>');
var allowpostattach = parseInt('<?=$allowpostattach?>');
var editorcss = 'forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>';
var TABLEBG = '<?=WRAPBG?>';
var uid = parseInt('<?=$discuz_uid?>');
var swfhash = '<? echo md5($_DCACHE['settings']['authkey'].$discuz_uid);; ?>';
<? if($allowpostattach) { ?>
var thumbwidth = parseInt(<?=$thumbwidth?>);
var thumbheight = parseInt(<?=$thumbheight?>);
var extensions = '<?=$attachextensions?>';
<? } ?>
var fontoptions = new Array("仿宋_GB2312", "黑体", "楷体_GB2312", "宋体", "新宋体", "微软雅黑", "Trebuchet MS", "Tahoma", "Arial", "Impact", "Verdana", "Times New Roman");
var custombbcodes = new Array();
<? if($forum['allowbbcode'] && $allowcusbbcode) { if(is_array($_DCACHE['bbcodes_display'])) { foreach($_DCACHE['bbcodes_display'] as $tag => $bbcode) { if($bbcode['type'] == '0') { ?>custombbcodes["<?=$tag?>"] = {'prompt' : '<?=$bbcode['prompt']?>'};<? } } } } ?>
function messagehandle_<?=$action?>(key) {
if(!Editorwin) {
$('floatlayout_<?=$action?>').scrollTop = 0;
<? if(!$showthreadsorts && !($adveditor)) { ?>
$('more_1').style.display='none';pagescroll.up(1, '$(\'more_2\').style.display=\'\';$(\'custominfoarea\').style.display=\'\'');
<? } else { ?>
$('custominfoarea').style.display=$('more_2').style.display='none';pagescroll.up(1, '$(\'more_1\').style.display=\'\'');
<? } ?>
}
}
function messagehandle() {
messagehandle_<?=$action?>();
}
function submithandle_<?=$action?>(locationhref, message) {
<? if($action == 'edit' || $action == 'reply') { ?>
try {
var pid = locationhref.lastIndexOf('#pid');
if(pid != -1) {
pid = locationhref.substr(pid + 4);
<? if($action == 'edit') { ?>
if(pid) {
ajaxget('viewthread.php?tid=<?=$tid?>&viewpid=' + pid, 'post_' + pid, 'ajaxwaitid');
} else {
ajaxget('viewthread.php?tid=<?=$tid?>&viewpid=<?=$pid?>', 'post_<?=$pid?>', 'ajaxwaitid');
}
$('postform').editsubmit.disabled = false;
<? } elseif($action == 'reply' && !empty($addtrade)) { ?>
location.href = locationhref;
<? } elseif($action == 'reply') { ?>
ajaxget('viewthread.php?tid=<?=$tid?>&viewpid=' + pid, 'post_new', 'ajaxwaitid', '', null, 'appendreply()');
if(replyreload) {
var reloadpids = replyreload.split(',');
for(i = 1;i < reloadpids.length;i++) {
ajaxget('viewthread.php?tid=<?=$tid?>&viewpid=' + reloadpids[i], 'post_' + reloadpids[i]);
}
}
<? } ?>
} else {
location.href = locationhref;
}
} catch(e) {
location.href = locationhref;
}
<? } elseif($action == 'newthread') { ?>
var hastid = locationhref.lastIndexOf('tid=');
if(hastid == -1) {
dnotice(message, "location.href='" + locationhref + "'", 390, 130);
} else {
location.href = locationhref;
}
<? } ?>
floatwinreset = 1;
closeEditorwin();
}
<? if(!empty($cedit) && $cedit == 'yes') { ?>
function cedit() {
try {
loadData(1);
} catch(e) {
setTimeout('cedit()', 1000);
}
}
<? } ?>
function openEditor() {
try {
<? if($action == 'reply' && !$message) { ?>
if($('fastpostmessage') && $('fastpostmessage').value) {
textobj.value = $('fastpostmessage').value;
$('fastpostmessage').value = '';
}
<? } if($action == 'edit' || $action == 'reply' && $repquote) { ?>
if(wysiwyg) {
initialized = false;
newEditor(1, bbcode2html(textobj.value));
} else {
newEditor(0);
}
setCaretAtEnd();
<? } else { ?>
newEditor(wysiwyg);
if(editbox) {
<? if(($action != 'edit' || !$attachments) && (!$swfupload || !$swfattachs)) { ?>
editbox.className = 'autosave max';
<? } else { ?>
editbox.className = 'autosave';
<? } ?>
}
<? } ?>
} catch(e) {
setTimeout('openEditor()', 100);
return;
}
if(!$('floatlayout_<?=$action?>').scrollLeft) {
$('floatlayout_<?=$action?>').scrollLeft = 600;
}
<? if($_DCACHE['bbcodes_display']['tools']) { ?>
if(!getcookie('disableautosave')) {
clearInterval(autosaveDatai);
autosaveData(1);
}
if(is_ie >= 5 || is_moz >= 2) {
window.onbeforeunload = function () {
try {
saveData(wysiwyg ? editdoc.body.innerHTML : textobj.value);
} catch(e) {}
};
}
<? } if(!empty($cedit) && $cedit == 'yes') { ?>
cedit();
<? } ?>
}
</script>
<script src="include/js/post.js?<?=VERHASH?>" type="text/javascript" reload="1"></script>
<? if($special) { ?>
<script src="include/js/calendar.js?<?=VERHASH?>" type="text/javascript" reload="1"></script>
<? } ?>
<script src="include/js/bbcode.js?<?=VERHASH?>" type="text/javascript" reload="1"></script>
<? if(empty($infloat)) { ?></div>
</div></div></div>
</div><? } include template('footer'); ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_post.tpl.php
|
PHP
|
asf20
| 50,985
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/memcp_profile.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/header.htm', 1250745576, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/memcp_profile.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/seccheck.htm', 1250745576, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/memcp_profile.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/personal_navbar.htm', 1250745576, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/memcp_profile.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/footer.htm', 1250745576, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/memcp_profile.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/css_script.htm', 1250745576, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/memcp_profile.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/jsmenu.htm', 1250745576, '2', './templates/uchome')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> » 个人资料</div>
<div id="wrap" class="wrap with_side s_clear">
<div class="main">
<div class="content">
<script src="include/js/calendar.js?<?=VERHASH?>" type="text/javascript"></script>
<script src="include/js/bbcode.js?<?=VERHASH?>" type="text/javascript"></script>
<script type="text/javascript">
var charset = '<?=$charset?>';
var maxsigsize = parseInt('<?=$maxsigsize?>');
var maxbiosize = parseInt('<?=$maxbiosize?>');
var allowhtml = 0;
var forumallowhtml = 0;
var allowsmilies = 0;
var allowbbcode = 0;
var allowimgcode = 0;
var allowbiobbcode = parseInt('<?=$allowbiobbcode?>');
var allowbioimgcode = parseInt('<?=$allowbioimgcode?>');
var allowsigbbcode = parseInt('<?=$allowsigbbcode?>');
var allowsigimgcode = parseInt('<?=$allowsigimgcode?>');
function parseurl(str, mode) {
str = str.replace(/([^>=\]"'\/]|^)((((https?|ftp):\/\/)|www\.)([\w\-]+\.)*[\w\-\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!]*)+\.(jpg|gif|png|bmp))/ig, mode == 'html' ? '$1<img src="$2" border="0">' : '$1[img]$2[/img]');
str = str.replace(/([^>=\]"'\/@]|^)((((https?|ftp|gopher|news|telnet|rtsp|mms|callto|bctp|ed2k):\/\/)|www\.)([\w\-]+\.)*[:\.@\-\w\u4e00-\u9fa5]+\.([\.a-zA-Z0-9]+|\u4E2D\u56FD|\u7F51\u7EDC|\u516C\u53F8)((\?|\/|:)+[\w\.\/=\?%\-&~`@':+!#]*)*)/ig, mode == 'html' ? '$1<a href="$2" target="_blank">$2</a>' : '$1[url]$2[/url]');
str = str.replace(/([^\w>=\]:"'\.\/]|^)(([\-\.\w]+@[\.\-\w]+(\.\w+)+))/ig, mode == 'html' ? '$1<a href="mailto:$2">$2</a>' : '$1[email]$2[/email]');
return str;
}
function validate(theform) {
<? if($typeid == 2) { if($maxsigsize) { ?>
if(mb_strlen(theform.signaturenew.value) > maxsigsize) {
alert('您的签名长度超过 <?=$maxsigsize?> 字符的限制,请返回修改。');
return false;
}
<? } ?>
if(mb_strlen(theform.bionew.value) > maxbiosize) {
alert('您的自我介绍长度超过 <?=$maxbiosize?> 字符的限制,请返回修改。');
return false;
}
<? if(!$member['signature']) { ?>$('signaturemessage').click();<? } if(!$member['bio']) { ?>$('biomessage').click();<? } } ?>
return true;
}
function updateavatar() {
$('avatar').src='<? echo discuz_uc_avatar($discuz_uid, 'middle', TRUE); ?>?random=1'+Math.random();
$('avatarctrl').style.display = 'none';
}
function updatetextarea(id, msg) {
$(id).updated = 0;
$(id).value = msg;
$(id).style.color = '<?=LIGHTTEXT?>';
$(id).onclick = function(){
this.style.color = '<?=TABLETEXT?>';
this.value = '';
$(id).onclick = null;
}
}
</script>
<form name="reg" method="post" action="memcp.php?action=profile&typeid=<?=$typeid?>" onSubmit="return validate(this)" style="zoom:1">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<? if($typeid == 1) { ?>
<h1>密码和安全问题</h1>
<div class="channelinfo">您必须填写原密码才能修改下面的资料</div>
<table summary="个人资料" cellspacing="0" cellpadding="0" class="formtable">
<? if($secqaacheck || $seccodecheck) { ?>
<tr>
<th><label for="oldpassword">验证</label></th>
<td><? $secchecktype = 3; ?><script type="text/javascript" reload="1">
function updateseccode<?=$secchecktype?>(op) {
if(isUndefined(op)) {
var x = new Ajax();
ajaxget('ajax.php?action=updateseccode&secchecktype=<?=$secchecktype?>', 'seccodeverify<?=$secchecktype?>_menu', 'seccodeverify<?=$secchecktype?>_menu');
} else {
window.document.seccodeplayer.SetVariable("isPlay", "1");
}
$('seccodeverify<?=$secchecktype?>').focus();
}
function updatesecqaa<?=$secchecktype?>() {
var x = new Ajax();
ajaxget('ajax.php?action=updatesecqaa', 'secanswer<?=$secchecktype?>_menu', 'secanswer<?=$secchecktype?>_menu');
}
var secclick<?=$secchecktype?> = new Array();
var seccodefocus = 0;
function opensecwin<?=$secchecktype?>(id, type) {
if(!secclick<?=$secchecktype?>[id]) {
$(id).value = '';
secclick<?=$secchecktype?>[id] = 1;
if(type) {
$(id + '_menu').style.top = (parseInt($(id + '_menu').style.top) - parseInt($(id + '_menu').style.height)) + 'px';
updateseccode<?=$secchecktype?>();
} else {
updatesecqaa<?=$secchecktype?>();
}
}
<? if(empty($secchecktype)) { if(!empty($infloat)) { ?>
InFloat='<?=$seccheckfloat?>';
<? } if($seccheckfloat) { ?>
$(id + '_menu').style.position = 'absolute';
$(id + '_menu').style.top = (-parseInt($(id + '_menu').style.height)) + 'px';
<? if($secqaacheck) { ?>
if(type) {
$(id + '_menu').style.left = $(id).offsetLeft + 'px';
} else {
$(id + '_menu').style.left = '0px';
}
<? } else { ?>
$(id + '_menu').style.left = '0px';
<? } } } elseif($secchecktype == 1) { if(!empty($infloat)) { ?>
InFloat='floatlayout_register';
<? } ?>
showMenu(id, 0, 2, 3);
<? } elseif($secchecktype == 3) { ?>
showMenu(id, 0, 2, 3);
<? } ?>
$(id + '_menu').style.display = '';
$(id).focus();
$(id).unselectable = 'off';
}
</script>
<? if($secqaacheck) { ?>
<input name="secanswer" id="secanswer<?=$secchecktype?>" type="text" autocomplete="off" style="width:50px" value="验证问答" class="txt" onfocus="opensecwin<?=$secchecktype?>(this.id, 0)" onclick="opensecwin<?=$secchecktype?>(this.id, 0)" onblur="display(this.id + '_menu');checksecanswer<?=$secchecktype?>();" tabindex="1">
<span id="checksecanswer<?=$secchecktype?>"><img src="images/common/none.gif" width="16" height="16"></span>
<div id="secanswer<?=$secchecktype?>_menu" class="seccodecontent" style="width:200px;height:80px;display:none"></div>
<? } if($seccodecheck) { ?>
<input name="seccodeverify" id="seccodeverify<?=$secchecktype?>" type="text" autocomplete="off" style="width:50px" value="验证码" class="txt" onfocus="opensecwin<?=$secchecktype?>(this.id, 1)" onclick="opensecwin<?=$secchecktype?>(this.id, 1)" onblur="if(!seccodefocus) {display(this.id + '_menu')}checkseccode<?=$secchecktype?>();" tabindex="1">
<a href="javascript:;" onclick="updateseccode<?=$secchecktype?>()">换一个</a>
<span id="checkseccodeverify<?=$secchecktype?>"><img src="images/common/none.gif" width="16" height="16"></span>
<div id="seccodeverify<?=$secchecktype?>_menu" class="seccodecontent" onmouseover="seccodefocus = 1" onmouseout="seccodefocus = 0" style="cursor: pointer;top: 256px;width:<?=$seccodedata['width']?>px;height:<?=$seccodedata['height']?>px;display:none"></div>
<? } ?>
<script type="text/javascript" reload="1">
var profile_seccode_invalid = '验证码输入错误,请重新填写。';
var profile_secanswer_invalid = '验证问答回答错误,请重新填写。';
var lastseccode = lastsecanswer = '';
function checkseccode<?=$secchecktype?>() {
var seccodeverify = $('seccodeverify<?=$secchecktype?>').value;
if(seccodeverify == lastseccode) {
return;
} else {
lastseccode = seccodeverify;
}
var cs = $('checkseccodeverify<?=$secchecktype?>');
<? if($seccodedata['type'] != 1) { ?>
if(!(/[0-9A-Za-z]{4}/.test(seccodeverify))) {
warning<?=$secchecktype?>(cs, profile_seccode_invalid);
return;
}
<? } else { ?>
if(seccodeverify.length != 2) {
warning<?=$secchecktype?>(cs, profile_seccode_invalid);
return;
}
<? } ?>
ajaxresponse<?=$secchecktype?>('checkseccodeverify<?=$secchecktype?>', 'action=checkseccode&seccodeverify=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(seccodeverify) : seccodeverify));
}
function checksecanswer<?=$secchecktype?>() {
var secanswer = $('secanswer<?=$secchecktype?>').value;
if(secanswer == lastsecanswer) {
return;
} else {
lastsecanswer = secanswer;
}
ajaxresponse<?=$secchecktype?>('checksecanswer<?=$secchecktype?>', 'action=checksecanswer&secanswer=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(secanswer) : secanswer));
}
function ajaxresponse<?=$secchecktype?>(objname, data) {
var x = new Ajax('XML', objname);
x.get('ajax.php?inajax=1&' + data, function(s){
var obj = $(objname);
if(s == 'succeed') {
obj.style.display = '';
obj.innerHTML = '<img src="<?=IMGDIR?>/check_right.gif" width="16" height="16" />';
obj.className = "warning";
} else {
warning(obj, s);
}
});
}
function warning(obj, msg) {
if((ton = obj.id.substr(5, obj.id.length)) != 'password2') {
$(ton).select();
}
obj.style.display = '';
obj.innerHTML = '<img src="<?=IMGDIR?>/check_error.gif" width="16" height="16" />';
obj.className = "warning";
}
</script></td>
<td></td>
</tr>
<? } ?>
<tr>
<th><label for="oldpassword">原密码</label></th>
<td><input type="password" name="oldpassword" id="oldpassword" size="25" class="txt" /></td>
<td>必填</td>
</tr>
<tr>
<th><label for="newpassword">新密码</label></th>
<td><input type="password" name="newpassword" id="newpassword" size="25" class="txt" /></td>
<td>如不需要更改密码,此处请留空</td>
</tr>
<tr>
<th><label for="newpassword2">确认新密码</label></th>
<td><input type="password" name="newpassword2" id="newpassword2" size="25" class="txt" /></td>
<td></td>
</tr>
<tr>
<th><label for="emailnew">Email</label></th>
<td><input type="text" name="emailnew" id="emailnew" size="25" value="<?=$member['email']?>" class="txt" /></td>
<td>
<? if($regverify == 1 && (($grouptype == 'member' && $adminid == 0) && $groupid == 8)) { ?> !如更改地址,系统将修改您的密码并重新验证其有效性,请慎用<? } ?>
</td>
</tr>
<tr>
<th><label for="questionidnew">安全提问</label></th>
<td><select name="questionidnew" id="questionidnew">
<? if($discuz_secques) { ?><option value="">保持原有的安全提问和答案</option><? } ?>
<option value="0">无安全提问</option>
<option value="1">母亲的名字</option>
<option value="2">爷爷的名字</option>
<option value="3">父亲出生的城市</option>
<option value="4">您其中一位老师的名字</option>
<option value="5">您个人计算机的型号</option>
<option value="6">您最喜欢的餐馆名称</option>
<option value="7">驾驶执照的最后四位数字</option>
</select>
</td>
<td>如果您启用安全提问,登录时需填入相应的项目才能登录</td>
</tr>
<tr>
<th><label for="answernew">回答</label></th>
<td><input type="text" name="answernew" id="answernew" size="25" class="txt" /></td>
<td>如您设置新的安全提问,请在此输入答案</td>
</tr>
<? } elseif($typeid == 2) { ?>
<link href="forumdata/cache/style_<?=STYLEID?>_seditor.css?<?=VERHASH?>" rel="stylesheet" type="text/css" />
<h1>个人资料</h1>
<table summary="个人资料" cellspacing="0" cellpadding="0" class="formtable">
<tr>
<th></th>
<td>
<div class="avatararea">
<p><img id="avatar" src="images/common/none.gif" onerror="this.onerror=null;this.src='<?=UC_API?>/images/noavatar_middle.gif'" /></p>
<p><a href="javascript:;" onclick="$('avatarctrl').style.display = '';">修改头像</a></p>
</div>
<div id="avatarctrl" style="display: none"><script type="text/javascript">updateavatar();document.write(AC_FL_RunContent('<? echo implode("','", $uc_avatarflash);; ?>'));</script></div>
</td>
</tr>
<? if($secqaacheck || $seccodecheck) { ?>
<tr>
<th><label for="oldpassword">验证</label></th>
<td><? $secchecktype = 3; include template('seccheck'); ?>
</td>
</tr>
<? } if($allownickname) { ?>
<tr>
<th><label for="nicknamenew">昵称</label></th>
<td><input type="text" name="nicknamenew" id="nicknamenew" size="25" value="<?=$member['nickname']?>" class="txt" /></td>
</tr>
<? } if($allowcstatus) { ?>
<tr>
<th><label for="cstatusnew">自定义头衔</label></th>
<td><input type="text" name="cstatusnew" id="cstatusnew" size="25" value="<?=$member['customstatus']?>" class="txt" /></td>
</tr>
<? } if($maxsigsize) { ?>
<tr>
<th valign="top"><label for="signaturemessage">个人签名<br /><a href="javascript:;" onclick="allowbbcode = allowsigbbcode;allowimgcode = allowsigimgcode;$('signaturepreview').innerHTML = bbcode2html($('signaturemessage').value)">预览</a></label></th>
<td valign="top">
<div id="signaturepreview"></div>
<? if($allowsigbbcode) { ?>
<div class="editor_tb" style="width: 274px">
<div>
<a href="javascript:;" title="粗体" class="tb_bold" onclick="seditor_insertunit('signature', '[b]', '[/b]')">B</a>
<? if($allowsigimgcode) { ?><a href="javascript:;" title="插入图片" class="tb_img" onclick="seditor_insertunit('signature', '[img]', '[/img]')">Image</a><? } ?>
<a href="javascript:;" title="插入链接" class="tb_link" onclick="seditor_insertunit('signature', '[url]', '[/url]')">Link</a>
<? if($member['msn']['1']) { ?>
<a href="javascript:;" title="插入我的 MSN 在线通" class="tb_imme" onclick="seditor_insertunit('signature', '[imme]')">Imme</a>
<? } ?>
</div>
</div>
<? } ?>
<textarea rows="8" cols="30" id="signaturemessage" name="signaturenew" class="txtarea" <? if($allowsigbbcode) { ?>style="margin-top; -1px; border-top: none;"<? } ?>><?=$member['signature']?></textarea>
<span class="left">
<a href="faq.php?action=faq&id=5&messageid=18" target="_blank">Discuz!代码</a> <? if($allowsigbbcode) { ?>可用<? } else { ?>禁用<? } ?><br />
[img] 代码 <? if($allowsigimgcode) { ?>可用<? } else { ?>禁用<? } ?>
</span>
</td>
</tr>
<? } ?>
<tr>
<th valign="top"><label for="biomessage">自我介绍<br /><a href="javascript:;" onclick="allowbbcode = allowbiobbcode;allowimgcode = allowbioimgcode;$('biopreview').innerHTML = bbcode2html($('biomessage').value)">预览</a></label></th>
<td>
<div id="biopreview"></div>
<? if($allowsigbbcode) { ?>
<div class="editor_tb" style="width: 274px">
<div>
<a href="javascript:;" title="粗体" class="tb_bold" onclick="seditor_insertunit('bio', '[b]', '[/b]')">B</a>
<? if($allowsigimgcode) { ?><a href="javascript:;" title="插入图片" class="tb_img" onclick="seditor_insertunit('bio', '[img]', '[/img]')">Image</a><? } ?>
<a href="javascript:;" title="插入链接" class="tb_link" onclick="seditor_insertunit('bio', '[url]', '[/url]')">Link</a>
<? if($member['msn']['1']) { ?>
<a href="javascript:;" title="插入我的 MSN 在线通" class="tb_imme" onclick="seditor_insertunit('bio', '[imme]')">Imme</a>
<? } ?>
</div>
</div>
<? } ?>
<textarea rows="8" cols="30" id="biomessage" name="bionew" class="txtarea" <? if($allowsigbbcode) { ?>style="margin-top; -1px; border-top: none;"<? } ?>><?=$member['bio']?></textarea>
<span class="left">
<a href="faq.php?action=faq&id=5&messageid=18" target="_blank">Discuz!代码</a> <? if($allowbiobbcode) { ?>可用<? } else { ?>禁用<? } ?><br />
[img] 代码 <? if($allowbioimgcode) { ?>可用<? } else { ?>禁用<? } ?>
</span>
</td>
</tr>
<tr>
<th>性别</th>
<td>
<select name="gendernew">
<option value="1" <?=$gendercheck['1']?>>男</option>
<option value="2" <?=$gendercheck['2']?>>女</option>
<option value="0" <?=$gendercheck['0']?>>保密</option>
</select>
</td>
</tr>
<tr>
<th><label for="bdaynew">生日</label></th>
<td><input type="text" name="bdaynew" id="bdaynew" size="25" onclick="showcalendar(event, this)" onfocus="showcalendar(event, this);if(this.value=='0000-00-00')this.value=''" value="<?=$member['bday']?>" class="txt" /></td>
</tr>
<tr>
<th><label for="locationnew">来自</label></th>
<td><input type="text" name="locationnew" id="locationnew" size="25" value="<?=$member['location']?>" class="txt" /></td>
</tr>
<? if(!empty($_DCACHE['fields_required']) || !empty($_DCACHE['fields_optional'])) { if($_DCACHE['fields_required']) { if(is_array($_DCACHE['fields_required'])) { foreach($_DCACHE['fields_required'] as $field) { ?><tr>
<th><?=$field['title']?></th>
<td>
<? if($field['selective']) { ?>
<select name="field_<?=$field['fieldid']?>new" <? if($member['field_'.$field['fieldid']] && $field['unchangeable']) { ?>disabled<? } ?>>
<option value="">- 请选择 -</option><? if(is_array($field['choices'])) { foreach($field['choices'] as $index => $choice) { ?><option value="<?=$index?>" <? if($index == $member['field_'.$field['fieldid']]) { ?>selected="selected"<? } ?>><?=$choice?></option><? } } ?></select>
<? } else { ?>
<input type="text" name="field_<?=$field['fieldid']?>new" size="25" value="<?=$member['field_'.$field['fieldid']]?>" <? if($member['field_'.$field['fieldid']] && $field['unchangeable']) { ?>disabled<? } ?> class="txt" />
<? } if($field['description']) { ?> <?=$field['description']?><? } if($field['unchangeable']) { ?> 请认真填写本项目,一旦确定将不可修改<? } ?>
</td>
</tr><? } } } if($_DCACHE['fields_optional']) { if(is_array($_DCACHE['fields_optional'])) { foreach($_DCACHE['fields_optional'] as $field) { ?><tr>
<th><label for="field_<?=$field['fieldid']?>new"><?=$field['title']?></label></th>
<td>
<? if($field['selective']) { ?>
<select name="field_<?=$field['fieldid']?>new" id="field_<?=$field['fieldid']?>new" <? if($member['field_'.$field['fieldid']] && $field['unchangeable']) { ?>disabled<? } ?>>
<option value="">- 请选择 -</option><? if(is_array($field['choices'])) { foreach($field['choices'] as $index => $choice) { ?><option value="<?=$index?>" <? if($index == $member['field_'.$field['fieldid']]) { ?>selected="selected"<? } ?>><?=$choice?></option><? } } ?></select>
<? } else { ?>
<input type="text" name="field_<?=$field['fieldid']?>new" size="25" value="<?=$member['field_'.$field['fieldid']]?>" <? if($member['field_'.$field['fieldid']] && $field['unchangeable']) { ?>disabled<? } ?> class="txt" />
<? } if($field['description']) { ?> <?=$field['description']?><? } if($field['unchangeable']) { ?> 请认真填写本项目,一旦确定将不可修改<? } ?>
</td>
</tr><? } } } } ?>
<tr class="sep_space"><th colspan="2"></th></tr>
<tr>
<th><label for="sitenew">个人网站</label></th>
<td><input type="text" name="sitenew" id="sitenew" size="25" value="<? if($member['site']) { ?><?=$member['site']?><? } else { ?>http://<? } ?>" class="txt" /></td>
</tr>
<tr>
<th><label for="qqnew">QQ</label></th>
<td><input type="text" name="qqnew" id="qqnew" size="25" value="<?=$member['qq']?>" class="txt" /></td>
</tr>
<tr>
<th><label for="icqnew">ICQ</label></th>
<td><input type="text" name="icqnew" id="icqnew" size="25" value="<?=$member['icq']?>" class="txt" /></td>
</tr>
<tr>
<th><label for="yahoonew">Yahoo</label></th>
<td><input type="text" name="yahoonew" id="yahoonew" size="25" value="<?=$member['yahoo']?>" class="txt" /></td>
</tr>
<tr>
<th><label for="alipaynew">支付宝账号</label></th>
<td><input type="text" name="alipaynew" id="alipaynew" size="25" value="<?=$member['alipay']?>" class="txt" /></td>
</tr>
<tr>
<th><label for="taobaonew">阿里旺旺</label></th>
<td><input type="text" name="taobaonew" id="taobaonew" size="25" value="<?=$member['taobao']?>" class="txt" /></td>
</tr>
<tr class="sep_space"><th colspan="2"></th></tr>
<tr>
<th><label for="msnnew">MSN</label></th>
<td>
<input type="text" name="msnnew" id="msnnew" size="25" value="<?=$member['msn']['0']?>" class="txt" />
</td>
</tr>
<tr>
<th><label for="imme">MSN 在线通</label></th>
<td>
<? if($member['msn']['1']) { ?>
您已经成功绑定了 MSN
<a href="http://settings.messenger.live.com/applications/websignup.aspx?returnurl=<?=$boardurl?>misc.php?action=imme_binding&privacyurl=<?=$boardurl?>" target="_blank" class="emfont">更换绑定的 MSN 帐号</a>
<a href="<?=$boardurl?>misc.php?action=imme_cancelbinding" target="_blank" class="emfont">取消 MSN 绑定</a>
<? } else { ?>
您还没有绑定 MSN
<a href="http://im.live.cn/imme/index.htm" target="_blank">什么是 MSN 在线通</a><br />
<a href="https://domains.live.com/members/signup.aspx?domain=<?=$msn['domain']?>" target="_blank">注册 MSN ID</a>
<a href="http://im.live.cn" target="_blank">下载 MSN</a>
<a href="http://settings.messenger.live.com/applications/websignup.aspx?returnurl=<?=$boardurl?>misc.php?action=imme_binding&privacyurl=<?=$boardurl?>" target="_blank">启用 MSN 在线通</a>
<? } ?>
</td>
</tr>
<? if($typeid == 2) { ?>
<script type="text/javascript">
<? if(!$member['signature'] && $maxsigsize) { ?>updatetextarea('signaturemessage', '<?=$maxsigsize?> 字节以内\n不支持自定义 Discuz! 代码');<? } if(!$member['bio']) { ?>updatetextarea('biomessage', '<?=$maxbiosize?> 字节以内\n不支持自定义 Discuz! 代码');<? } ?>
</script>
<? } } elseif($typeid == 5) { ?>
<h1>论坛个性化设定</h1>
<table summary="个人资料" cellspacing="0" cellpadding="0" class="formtable">
<? if($secqaacheck || $seccodecheck) { ?>
<tr>
<th><label for="oldpassword">验证</label></th>
<td><? $secchecktype = 3; include template('seccheck'); ?>
</td>
</tr>
<? } ?>
<tr>
<th>界面风格</th>
<td>
<select name="styleidnew">
<option value="">使用默认</option>
<?=$styleselect?></select>
</td>
</tr>
<tr>
<th>每页主题数</th>
<td>
<label><input type="radio" name="tppnew" value="0" <?=$tppchecked['0']?>> 使用默认</label>
<label><input type="radio" name="tppnew" value="10" <?=$tppchecked['10']?>> 10</label>
<label><input type="radio" name="tppnew" value="20" <?=$tppchecked['20']?>> 20</label>
<label><input type="radio" name="tppnew" value="30" <?=$tppchecked['30']?>> 30</label>
</td>
</tr>
<tr>
<th>每页帖数</th>
<td>
<label><input type="radio" name="pppnew" value="0" <?=$pppchecked['0']?>> 使用默认</label>
<label><input type="radio" name="pppnew" value="5" <?=$pppchecked['5']?>> 5</label>
<label><input type="radio" name="pppnew" value="10" <?=$pppchecked['10']?>> 10</label>
<label><input type="radio" name="pppnew" value="15" <?=$pppchecked['15']?>> 15</label>
</td>
</tr>
<tr class="sep_space"><th colspan="2"></th></tr>
<tr>
<th>签名显示设置</th>
<td>
<label><input type="radio" name="ssnew" value="2" <?=$sschecked['2']?>> 使用默认</label>
<label><input type="radio" name="ssnew" value="1" <?=$sschecked['1']?>> 显示签名</label>
<label><input type="radio" name="ssnew" value="0" <?=$sschecked['0']?>> 不显示签名</label>
</td>
</tr>
<tr>
<th>头像显示设置</th>
<td>
<label><input type="radio" name="sanew" value="2" <?=$sachecked['2']?>> 使用默认</label>
<label><input type="radio" name="sanew" value="1" <?=$sachecked['1']?>> 显示头像</label>
<label><input type="radio" name="sanew" value="0" <?=$sachecked['0']?>> 不显示头像</label>
</td>
</tr>
<tr>
<th>图片显示设置</th>
<td>
<label><input type="radio" name="sinew" value="2" <?=$sichecked['2']?>> 使用默认</label>
<label><input type="radio" name="sinew" value="1" <?=$sichecked['1']?>> 显示图片</label>
<label><input type="radio" name="sinew" value="0" <?=$sichecked['0']?>> 不显示图片</label>
包括上传的附件图片和 [img] 代码图片
</td>
</tr>
<tr>
<th>编辑器模式</th>
<td>
<label><input type="radio" name="editormodenew" value="2" <?=$emcheck['2']?>> 使用默认</label>
<label><input type="radio" name="editormodenew" value="0" <?=$emcheck['0']?>> Discuz! 代码模式</label>
<label><input type="radio" name="editormodenew" value="1" <?=$emcheck['1']?>> 所见即所得模式</label>
</td>
</tr>
<tr class="sep_space"><th colspan="2"></th></tr>
<tr>
<th>时差设定</th>
<td>
<select name="timeoffsetnew">
<option value="9999" <?=$toselect['9999']?>>使用默认</option>
<option value="-12" <?=$toselect['-12']?>>(GMT -12:00) Eniwetok, Kwajalein</option>
<option value="-11" <?=$toselect['-11']?>>(GMT -11:00) Midway Island, Samoa</option>
<option value="-10" <?=$toselect['-10']?>>(GMT -10:00) Hawaii</option>
<option value="-9" <?=$toselect['-9']?>>(GMT -09:00) Alaska</option>
<option value="-8" <?=$toselect['-8']?>>(GMT -08:00) Pacific Time (US & Canada), Tijuana</option>
<option value="-7" <?=$toselect['-7']?>>(GMT -07:00) Mountain Time (US & Canada), Arizona</option>
<option value="-6" <?=$toselect['-6']?>>(GMT -06:00) Central Time (US & Canada), Mexico City</option>
<option value="-5" <?=$toselect['-5']?>>(GMT -05:00) Eastern Time (US & Canada), Bogota, Lima, Quito</option>
<option value="-4" <?=$toselect['-4']?>>(GMT -04:00) Atlantic Time (Canada), Caracas, La Paz</option>
<option value="-3.5" <?=$toselect['-3.5']?>>(GMT -03:30) Newfoundland</option>
<option value="-3" <?=$toselect['-3']?>>(GMT -03:00) Brassila, Buenos Aires, Georgetown, Falkland Is</option>
<option value="-2" <?=$toselect['-2']?>>(GMT -02:00) Mid-Atlantic, Ascension Is., St. Helena</option>
<option value="-1" <?=$toselect['-1']?>>(GMT -01:00) Azores, Cape Verde Islands</option>
<option value="0" <?=$toselect['0']?>>(GMT) Casablanca, Dublin, Edinburgh, London, Lisbon, Monrovia</option>
<option value="1" <?=$toselect['1']?>>(GMT +01:00) Amsterdam, Berlin, Brussels, Madrid, Paris, Rome</option>
<option value="2" <?=$toselect['2']?>>(GMT +02:00) Cairo, Helsinki, Kaliningrad, South Africa</option>
<option value="3" <?=$toselect['3']?>>(GMT +03:00) Baghdad, Riyadh, Moscow, Nairobi</option>
<option value="3.5" <?=$toselect['3.5']?>>(GMT +03:30) Tehran</option>
<option value="4" <?=$toselect['4']?>>(GMT +04:00) Abu Dhabi, Baku, Muscat, Tbilisi</option>
<option value="4.5" <?=$toselect['4.5']?>>(GMT +04:30) Kabul</option>
<option value="5" <?=$toselect['5']?>>(GMT +05:00) Ekaterinburg, Islamabad, Karachi, Tashkent</option>
<option value="5.5" <?=$toselect['5.5']?>>(GMT +05:30) Bombay, Calcutta, Madras, New Delhi</option>
<option value="5.75" <?=$toselect['5.75']?>>(GMT +05:45) Katmandu</option>
<option value="6" <?=$toselect['6']?>>(GMT +06:00) Almaty, Colombo, Dhaka, Novosibirsk</option>
<option value="6.5" <?=$toselect['6.5']?>>(GMT +06:30) Rangoon</option>
<option value="7" <?=$toselect['7']?>>(GMT +07:00) Bangkok, Hanoi, Jakarta</option>
<option value="8" <?=$toselect['8']?>>(GMT +08:00) Beijing, Hong Kong, Perth, Singapore, Taipei</option>
<option value="9" <?=$toselect['9']?>>(GMT +09:00) Osaka, Sapporo, Seoul, Tokyo, Yakutsk</option>
<option value="9.5" <?=$toselect['9.5']?>>(GMT +09:30) Adelaide, Darwin</option>
<option value="10" <?=$toselect['10']?>>(GMT +10:00) Canberra, Guam, Melbourne, Sydney, Vladivostok</option>
<option value="11" <?=$toselect['11']?>>(GMT +11:00) Magadan, New Caledonia, Solomon Islands</option>
<option value="12" <?=$toselect['12']?>>(GMT +12:00) Auckland, Wellington, Fiji, Marshall Island</option>
</select>
</td>
</tr>
<tr>
<th>时间格式</th>
<td>
<label><input type="radio" name="timeformatnew" value="0" <?=$tfcheck['0']?>> 使用默认</label>
<label><input type="radio" name="timeformatnew" value="1" <?=$tfcheck['1']?>> 12 小时</label>
<label><input type="radio" name="timeformatnew" value="2" <?=$tfcheck['2']?>> 24 小时</label>
</td>
</tr>
<tr>
<th>日期格式</th>
<td>
<label><input type="radio" name="dateformatnew" <?=$dfcheck['0']?>> 使用默认</label><? if(is_array($dateformatlist)) { foreach($dateformatlist as $key => $value) { ?><label><input type="radio" name="dateformatnew" value="<?=$key?>" <?=$dfcheck[$key]?>> <?=$value?></label><? } } ?></td>
</tr>
<? if($dateconvert) { ?>
<tr>
<th>人性化时间格式</th>
<td>
<label><input type="radio" name="dateconvertnew" value="0" <?=$dateconvertchecked['0']?>> 启用</label>
<label><input type="radio" name="dateconvertnew" value="1" <?=$dateconvertchecked['1']?>> 不启用</label>
</td>
</tr>
<? } else { ?>
<input name="dateconvertnew" type="hidden" value="0" />
<? } ?>
<tr class="sep_space"><th colspan="2"></th></tr>
<? if($creditnotice) { ?>
<tr>
<th>积分变动提示</th>
<td>
<label><input type="radio" name="creditnoticenew" value="1" <?=$creditnoticechecked['1']?>> 是</label>
<label><input type="radio" name="creditnoticenew" value="0" <?=$creditnoticechecked['0']?>> 否</label>
</td>
</tr>
<? } ?>
<tr>
<th>短消息提示音</th>
<td>
<label><input type="radio" value="0" name="pmsoundnew" <?=$pscheck['0']?> /> 无</label>
<label><input type="radio" onclick="soundplayer(1)" value="1" name="pmsoundnew" <?=$pscheck['1']?> /> #1</label>
<label><input type="radio" onclick="soundplayer(2)" value="2" name="pmsoundnew" <?=$pscheck['2']?> /> #2</label>
<label><input type="radio" onclick="soundplayer(3)" value="3" name="pmsoundnew" <?=$pscheck['3']?> /> #3</label>
<div id="soundplayerlayer" style="position:absolute;top:-100000px"></div>
<script type="text/javascript" reload="1">
function soundplayer(file) {
$('soundplayerlayer').innerHTML = AC_FL_RunContent('id', 'pmsoundplayer', 'name', 'pmsoundplayer', 'width', '0', 'height', '0', 'src', '<?=$boardurl?>images/sound/player.swf', 'FlashVars', 'sFile=<?=$boardurl?>images/sound/pm_' + file + '.mp3', 'menu', 'false', 'allowScriptAccess', 'sameDomain', 'swLiveConnect', 'true');
}
</script>
</td>
</tr>
<? if($uchome['addfeed'] && $ucappopen['UCHOME']) { ?>
<tr>
<th>加入事件设置</th>
<td>
<label><input type="radio" value="0" name="customaddfeednew" onclick="$('customaddfeed').style.display = 'none';" <?=$defaultcheck?> class="radio" /> 默认</label>
<label><input type="radio" name="customaddfeednew" onclick="$('customaddfeed').style.display = '';" <?=$customcheck?> class="radio" /> 自定义</label>
<span id="customaddfeed" style="display: <?=$showfeedcheck?>">
<label><input type="checkbox" name="addfeed[1]" value="1" <?=$feedchecks['1']?> class="checkbox" /> 普通主题</label>
<label><input type="checkbox" name="addfeed[2]" value="1" <?=$feedchecks['2']?> class="checkbox" /> 特殊主题</label>
<label><input type="checkbox" name="addfeed[3]" value="1" <?=$feedchecks['3']?> class="checkbox" /> 参与/回复主题</label>
</span>
</td>
</tr>
<? } ?>
<tr>
<th valign="top">其他选项</th>
<td>
<? if($allowinvisible) { ?>
<label><input type="checkbox" name="invisiblenew" value="1" <?=$invisiblechecked?> class="checkbox" /> 在线列表中隐身</label><br />
<? } ?>
<label><input type="checkbox" name="showemailnew" value="1" <?=$emailchecked?> class="checkbox" /> Email 地址可见</label><br />
<label><input type="checkbox" name="newsletternew" value="1" <?=$newschecked?> class="checkbox" /> 同意接收论坛通知 (Email 或短消息)</label><br />
</td>
</tr>
<? } if($typeid != 6) { ?>
<tr>
<th> </th>
<td><button type="submit" class="submit" name="editsubmit" id="editsubmit" value="true">提交</button></td>
</tr>
<? } ?>
</table>
</form>
</div>
</div>
<div class="side"><h2>个人中心</h2>
<div class="sideinner">
<ul class="tabs">
<? if($regverify == 1 && $groupid == 8) { ?>
<li><a href="member.php?action=emailverify">重新验证 Email</a></li>
<? } if($regverify == 2 && $groupid == 8) { ?>
<li><a href="memcp.php?action=validating">账户审核</a></li>
<li><a href="memcp.php?action=profile&typeid=2">个人资料</a></li>
<? } else { ?>
<li><a href="memcp.php?action=profile&typeid=2">个人资料</a></li>
<li><a href="pm.php">短消息</a></li>
<li><a href="my.php?item=buddylist&<?=$extrafid?>">我的好友</a></li>
<? if($regstatus > 1) { ?><li><a href="invite.php">邀请注册</a></li><? } if($ucappopen['UCHOME']) { ?>
<li><a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">我的空间</a></li>
<? } elseif($ucappopen['XSPACE']) { ?>
<li><a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">我的空间</a></li>
<? } } ?>
</ul>
</div>
<? if($groupid != 8) { ?>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="my.php?item=threads<?=$extrafid?>">我的帖子</a></li>
<li><a href="my.php?item=favorites&type=thread<?=$extrafid?>">我的收藏</a></li>
<li><a href="my.php?item=subscriptions<?=$extrafid?>">我的订阅</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="memcp.php?action=credits">积分</a></li>
<li><a href="memcp.php?action=usergroups">用户组&权限</a></li>
<li><a href="task.php">论坛任务</a></li>
<? if($medalstatus) { ?><li><a href="medal.php">勋章</a></li><? } if($magicstatus) { ?><li><a href="magic.php">道具</a></li><? } ?>
</ul>
</div>
<? } ?>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="memcp.php?action=profile&typeid=5">论坛个性化设定</a></li>
<li><a href="memcp.php?action=profile&typeid=1">密码和安全问题</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li>积分: <?=$credits?></li><? if(is_array($extcredits)) { foreach($extcredits as $id => $credit) { ?><li>
<? if($BASESCRIPT == 'invite.php' && $id == $creditstransextra['4'] ||
$BASESCRIPT == 'memcp.php' && $id == $creditstrans) { ?>
<?=$credit['title']?>: <span style="font-weight: bold;"><?=$GLOBALS['extcredits'.$id]?></span> <?=$credit['unit']?>
<? } else { ?>
<?=$credit['title']?>: <?=$GLOBALS['extcredits'.$id]?> <?=$credit['unit']?>
<? } ?>
</li><? } } ?></ul>
</div></div>
</div>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_memcp_profile.tpl.php
|
PHP
|
asf20
| 58,020
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/register.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/header_nofloat.htm', 1250689565, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/register.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/seccheck.htm', 1250689565, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/register.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/footer_nofloat.htm', 1250689565, '1', './templates/default')
;?>
<? include template('header'); if(!empty($message)) { ?>
<script type="text/javascript" onload="1">
InFloat = 'floatlayout_register';
pagescroll.right();<? $bbname = str_replace('\'', '\\\'', $bbname); if($regverify == 1) { ?>
$('messageleft1').innerHTML = '<h1>感谢您注册 <?=$bbname?></h1>您的帐号处于非激活状态,请收取邮件激活您的帐号';
$('messageright1').innerHTML = '<h1><a href="memcp.php">个人中心</a></h1><p>如果您没有收到我们发送的系统邮件,请进入个人中心点击“重新验证 Email”或在“密码和安全问题”中更换另外一个 Email 地址。注意:在完成激活之前,根据管理员设置,您将只能以待验证会员的身份访问论坛,您可能不能进行发帖等操作。激活成功后,上述限制将自动取消。</p>';
setTimeout("window.location.href='memcp.php'", <?=$mrefreshtime?>);
<? } elseif($regverify == 2) { ?>
$('messageleft1').innerHTML = '<h1>感谢您注册 <?=$bbname?></h1>请等待管理员审核您的帐号';
$('messageright1').innerHTML = '<h1><a href="memcp.php">个人中心</a></h1>';
setTimeout("window.location.href='memcp.php'", <?=$mrefreshtime?>);
<? } else { if($newbietask) { ?>
$('messageleft1').innerHTML = '<h1>感谢您注册 <?=$bbname?></h1>我们诚邀您参与新手任务 <?=$task['name']?>,现在将转入任务详情页面。';
$('messageright1').innerHTML = '<h1><a href="javascript:;" onclick="location.href=\'task.php?action=view&id=<?=$task['taskid']?>\'">如果该页面长时间没有响应,请点这里刷新</a></h1>';
setTimeout('location.href=\'task.php?action=view&id=<?=$task['taskid']?>\'', <?=$mrefreshtime?>);
<? } else { ?>
$('messageleft1').innerHTML = '<h1>感谢您注册 <?=$bbname?></h1>';
$('messageright1').innerHTML = '<h1><a href="javascript:;" onclick="location.reload()">如果该页面长时间没有响应,请点这里刷新</a></h1>';
setTimeout('location.reload()', <?=$mrefreshtime?>);
<? } } if($_DCACHE['settings']['frameon'] && $_DCOOKIE['frameon'] == 'yes') { ?>
if(top != self) {
parent.leftmenu.location.reload();
}
<? } ?>
floatwinreset = 1;
</script>
<? } else { if(empty($infloat)) { ?><link rel="stylesheet" type="text/css" href="forumdata/cache/style_<?=STYLEID?>_float.css?<?=VERHASH?>" />
<style type="text/css">
.main { overflow: hidden; }
.content { margin: 5px; min-height: 400px; <?=FLOATBGCODE?>; }
* html .content { height: 400px; overflow: auto; }
.fixedbtn { position: static; }
</style>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> <?=$navigation?></div>
<div id="wrap" class="wrap s_clear">
<div class="main"><div class="content"><div class="nojs">
<div id="floatwinnojs"><? } ?>
<div class="float" id="floatlayout_register" style="width: 600px;<? if(!empty($infloat)) { ?> height: 400px;<? } ?>">
<div style="width: 1800px">
<div class="floatbox floatbox1">
<h3 class="float_ctrl">
<span>
<? if(!empty($infloat)) { ?><a href="javascript:;" class="float_close" onclick="floatwin('close_register')" title="关闭">关闭</a><? } ?>
</span>
</h3>
<div id="bbrule" class="gateform">
<h3><?=$bbname?> 网站服务条款</h3>
<div class="clause"><?=$bbrulestxt?></div>
<button onclick="$('agreebbrule').checked = true;$('bbrule').style.display='none';pagescroll.right()">同意</button> <button onclick="floatwin('close_register')">不同意</button>
</div>
</div>
<div class="floatbox floatbox1">
<h3 class="float_ctrl">
<span>
<? if(!empty($infloat)) { ?><a href="javascript:;" class="float_close" onclick="floatwin('close_register')" title="关闭">关闭</a><? } ?>
</span>
</h3>
<form method="post" name="register" id="registerform" class="gateform" onsubmit="ajaxpost('registerform', 'returnmessage4', 'returnmessage4', 'onerror');return false;" action="<?=$regname?>?regsubmit=yes">
<h3 id="returnmessage4"><? if($action != 'activation') { ?><?=$reglinkname?><? } else { ?>您的帐号需要激活<? } ?></h3>
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<input type="hidden" name="referer" value="<?=$referer?>" />
<? if(!empty($infloat)) { ?><input type="hidden" name="handlekey" value="<?=$handlekey?>" /><? } ?>
<input type="hidden" name="activationauth" value="<? if($action == 'activation') { ?><?=$activationauth?><? } ?>" />
<div class="loginform regform">
<div id="reginfo_a" class="regform" style="overflow:hidden">
<span id="activation_hidden"<? if($action == 'activation') { ?> style="display:none"<? } ?>>
<? if(!empty($fromuser)) { ?>
<span>
<label><em>推荐人:</em><?=$fromuser?></label>
<input type="hidden" name="fromuser"value="<?=$fromuser?>" />
</span>
<? } ?>
<label><em>用户名:</em><input type="text" id="username" name="username" autocomplete="off" size="25" maxlength="15" value="" onBlur="checkusername()" tabindex="1" class="txt" /> *</label>
<label><em>密码:</em><input type="password" name="password" size="25" id="password" onkeypress="detectcapslock(event, this)" tabindex="1" class="txt" /> *</label>
<label><em>确认密码:</em><input type="password" name="password2" size="25" id="password2" onkeypress="detectcapslock(event, this)" tabindex="1" value="" class="txt" /> *</label>
<label><em>Email:</em><input type="text" name="email" autocomplete="off" size="25" id="email" onBlur="checkemail()" tabindex="1" class="txt" /> *</label>
<label><em> </em><a href="https://domains.live.com/members/signup.aspx?domain=<?=$msn['domain']?>" target="_blank" style="float: left; overflow: hidden; width: 223px; white-space: nowrap;"><? if($msn['on']) { ?>注册 @<?=$msn['domain']?> 超大 Hotmail 邮箱<? } else { ?>注册超大 Hotmail 邮箱<? } ?></a></label>
</span>
<? if($action == 'activation') { ?>
<span id="activation_user">
<label><em>用户名:</em><?=$username?></label>
</span>
<? } if($secqaacheck || $seccodecheck) { if(!empty($infloat)) { $secchecktype = 1; } else { $seccheckreg = 2; } ?>
<div class="regsec"><label style="display:inline"><em>验证: </em><script type="text/javascript" reload="1">
function updateseccode<?=$secchecktype?>(op) {
if(isUndefined(op)) {
var x = new Ajax();
ajaxget('ajax.php?action=updateseccode&secchecktype=<?=$secchecktype?>', 'seccodeverify<?=$secchecktype?>_menu', 'seccodeverify<?=$secchecktype?>_menu');
} else {
window.document.seccodeplayer.SetVariable("isPlay", "1");
}
$('seccodeverify<?=$secchecktype?>').focus();
}
function updatesecqaa<?=$secchecktype?>() {
var x = new Ajax();
ajaxget('ajax.php?action=updatesecqaa', 'secanswer<?=$secchecktype?>_menu', 'secanswer<?=$secchecktype?>_menu');
}
var secclick<?=$secchecktype?> = new Array();
var seccodefocus = 0;
function opensecwin<?=$secchecktype?>(id, type) {
if(!secclick<?=$secchecktype?>[id]) {
$(id).value = '';
secclick<?=$secchecktype?>[id] = 1;
if(type) {
$(id + '_menu').style.top = (parseInt($(id + '_menu').style.top) - parseInt($(id + '_menu').style.height)) + 'px';
updateseccode<?=$secchecktype?>();
} else {
updatesecqaa<?=$secchecktype?>();
}
}
<? if(empty($secchecktype)) { if(!empty($infloat)) { ?>
InFloat='<?=$seccheckfloat?>';
<? } if($seccheckfloat) { ?>
$(id + '_menu').style.position = 'absolute';
$(id + '_menu').style.top = (-parseInt($(id + '_menu').style.height)) + 'px';
<? if($secqaacheck) { ?>
if(type) {
$(id + '_menu').style.left = $(id).offsetLeft + 'px';
} else {
$(id + '_menu').style.left = '0px';
}
<? } else { ?>
$(id + '_menu').style.left = '0px';
<? } } } elseif($secchecktype == 1) { if(!empty($infloat)) { ?>
InFloat='floatlayout_register';
<? } ?>
showMenu(id, 0, 2, 3);
<? } elseif($secchecktype == 3) { ?>
showMenu(id, 0, 2, 3);
<? } ?>
$(id + '_menu').style.display = '';
$(id).focus();
$(id).unselectable = 'off';
}
</script>
<? if($secqaacheck) { ?>
<input name="secanswer" id="secanswer<?=$secchecktype?>" type="text" autocomplete="off" style="width:50px" value="验证问答" class="txt" onfocus="opensecwin<?=$secchecktype?>(this.id, 0)" onclick="opensecwin<?=$secchecktype?>(this.id, 0)" onblur="display(this.id + '_menu');checksecanswer<?=$secchecktype?>();" tabindex="1">
<span id="checksecanswer<?=$secchecktype?>"><img src="images/common/none.gif" width="16" height="16"></span>
<div id="secanswer<?=$secchecktype?>_menu" class="seccodecontent" style="width:200px;height:80px;display:none"></div>
<? } if($seccodecheck) { ?>
<input name="seccodeverify" id="seccodeverify<?=$secchecktype?>" type="text" autocomplete="off" style="width:50px" value="验证码" class="txt" onfocus="opensecwin<?=$secchecktype?>(this.id, 1)" onclick="opensecwin<?=$secchecktype?>(this.id, 1)" onblur="if(!seccodefocus) {display(this.id + '_menu')}checkseccode<?=$secchecktype?>();" tabindex="1">
<a href="javascript:;" onclick="updateseccode<?=$secchecktype?>()">换一个</a>
<span id="checkseccodeverify<?=$secchecktype?>"><img src="images/common/none.gif" width="16" height="16"></span>
<div id="seccodeverify<?=$secchecktype?>_menu" class="seccodecontent" onmouseover="seccodefocus = 1" onmouseout="seccodefocus = 0" style="cursor: pointer;top: 256px;width:<?=$seccodedata['width']?>px;height:<?=$seccodedata['height']?>px;display:none"></div>
<? } ?>
<script type="text/javascript" reload="1">
var profile_seccode_invalid = '验证码输入错误,请重新填写。';
var profile_secanswer_invalid = '验证问答回答错误,请重新填写。';
var lastseccode = lastsecanswer = '';
function checkseccode<?=$secchecktype?>() {
var seccodeverify = $('seccodeverify<?=$secchecktype?>').value;
if(seccodeverify == lastseccode) {
return;
} else {
lastseccode = seccodeverify;
}
var cs = $('checkseccodeverify<?=$secchecktype?>');
<? if($seccodedata['type'] != 1) { ?>
if(!(/[0-9A-Za-z]{4}/.test(seccodeverify))) {
warning<?=$secchecktype?>(cs, profile_seccode_invalid);
return;
}
<? } else { ?>
if(seccodeverify.length != 2) {
warning<?=$secchecktype?>(cs, profile_seccode_invalid);
return;
}
<? } ?>
ajaxresponse<?=$secchecktype?>('checkseccodeverify<?=$secchecktype?>', 'action=checkseccode&seccodeverify=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(seccodeverify) : seccodeverify));
}
function checksecanswer<?=$secchecktype?>() {
var secanswer = $('secanswer<?=$secchecktype?>').value;
if(secanswer == lastsecanswer) {
return;
} else {
lastsecanswer = secanswer;
}
ajaxresponse<?=$secchecktype?>('checksecanswer<?=$secchecktype?>', 'action=checksecanswer&secanswer=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(secanswer) : secanswer));
}
function ajaxresponse<?=$secchecktype?>(objname, data) {
var x = new Ajax('XML', objname);
x.get('ajax.php?inajax=1&' + data, function(s){
var obj = $(objname);
if(s == 'succeed') {
obj.style.display = '';
obj.innerHTML = '<img src="<?=IMGDIR?>/check_right.gif" width="16" height="16" />';
obj.className = "warning";
} else {
warning(obj, s);
}
});
}
function warning(obj, msg) {
if((ton = obj.id.substr(5, obj.id.length)) != 'password2') {
$(ton).select();
}
obj.style.display = '';
obj.innerHTML = '<img src="<?=IMGDIR?>/check_error.gif" width="16" height="16" />';
obj.className = "warning";
}
</script></label></div>
<? } if(($regstatus > 1 && $action != 'activation') || $regstatus == 2) { ?>
<label><em>邀请码:</em><input type="text" name="invitecode" autocomplete="off" size="25" maxlength="16" value="<?=$invitecode?>" id="invitecode" onBlur="checkinvitecode()" tabindex="1" class="txt" /><? if($regstatus == 2) { ?> *<? } ?></label>
<? } ?>
</div>
<div id="reginfo_b"<? if(!empty($infloat)) { ?> style="display:none;"<? } ?>>
<? if($regverify == 2) { ?>
<label><em>注册原因:</em><input name="regmessage" autocomplete="off" size="25" tabindex="1" class="txt" /> *</label>
<? } if(is_array($_DCACHE['fields_required'])) { foreach($_DCACHE['fields_required'] as $field) { ?><label<? if($field['description']) { ?> title="<? echo htmlspecialchars($field['description']); ?>"<? } ?>><em><?=$field['title']?>:</em>
<? if($field['selective']) { ?>
<select name="field_<?=$field['fieldid']?>new" tabindex="1">
<option value="">- 请选择 -</option><? if(is_array($field['choices'])) { foreach($field['choices'] as $index => $choice) { ?><option value="<?=$index?>"<? if($index == $member['field_'.$field['fieldid']]) { ?> selected="selected"<? } ?>><?=$choice?></option><? } } ?></select>
<? } else { ?>
<input type="text" name="field_<?=$field['fieldid']?>new" size="25" value="<?=$member['field_'.$field['fieldid']]?>" tabindex="1" class="txt" />
<? } ?> *
</label><? } } ?></div>
</div>
<div class="logininfo singleinfo">
<h4>已有帐号?<a href="logging.php?action=login" onclick="floatwin('close_register');floatwin('open_login', this.href, 600, 400);return false;">现在登录</a></h4>
<? if($action == 'activation') { ?>
<p>放弃激活,<a href="javascript:;" onclick="$('registerform').activationauth.value='';$('activation_hidden').style.display='';$('activation_user').style.display='none'">现在<?=$reglinkname?></a></p>
<? } ?>
</div>
<p class="fsubmit">
<span id="reginfo_a_btn">
<em> </em>
<? if(($field && !empty($infloat)) || $regverify == 2) { ?>
<button class="submit" tabindex="1" onclick="regstep('reginfo_a','reginfo_b'); return false;">下一步</button>
</span>
<span id="reginfo_b_btn" style="display:none">
<em class="regpre"><a href="javascript:;" onclick="regstep('reginfo_b','reginfo_a');">上一步</a></em>
<? } ?>
<button class="submit" id="registerformsubmit" type="submit" name="regsubmit" value="true" tabindex="1">提交</button>
<? if($bbrules) { ?>
<input type="checkbox" class="checkbox" name="agreebbrule" value="<?=$bbrulehash?>" id="agreebbrule" /> <label for="agreebbrule">同意<a href="javascript:;" onclick="pagescroll.left()">网站服务条款</a></label>
<? } ?>
</span>
</p>
</form>
<? if($sitemessage['register']) { ?>
<div class="moreconf sitemsg">
<div class="custominfoarea">
<a href="javascript:;" onclick="display('custominfo_register')" onblur="$('custominfo_register').style.display = 'none'"><img src="<?=IMGDIR?>/info.gif" alt="帮助" /></a>
<div id="custominfo_register" class="sitenote">
<div class="cornerlayger"><? echo $sitemessage['register'][array_rand($sitemessage['register'])]; ?></div>
<div class="minicorner"></div>
</div>
</div>
</div>
<? } ?>
</div>
<div class="floatbox floatbox1">
<h3 class="float_ctrl">
<span>
<? if(!empty($infloat)) { ?><a href="javascript:;" class="float_close" onclick="floatwin('close_register')" title="关闭">关闭</a><? } ?>
</span>
</h3>
<div class="validateinfo">
<div id="messageleft1"></div>
<div id="messageright1"></div>
</div>
</div>
</div>
<script type="text/javascript" reload="1">
var pagescroll = new pagescroll_class('floatlayout_register', 600, 400);
<? if(empty($infloat)) { ?>
$('floatlayout_register').scrollLeft = 600;
<? } if($action != 'activation') { ?>
document.body.focus();
$('username').focus();
<? } if($sitemessage['register'] && $sitemessage['time']) { ?>
setTimeout('display_opacity(\'custominfo_register\',100)', <?=$sitemessage['time']?>);
<? } ?>
var profile_username_toolong = '用户名超过 15 个字符';
var profile_username_tooshort = '用户名小于3个字符';
var doublee = parseInt('<?=$doublee?>');
var lastusername = lastpassword = lastemail = lastinvitecode = '';
function messagehandle_register(key, msg) {
$('returnmessage4').className = key == 1 ? 'onerror' : '';
$('returnmessage4').innerHTML = msg;
}
function checkusername() {
var username = trim($('username').value);
if(username == '' || username == lastusername) {
return;
} else {
lastusername = username;
}
var unlen = username.replace(/[^\x00-\xff]/g, "**").length;
if(unlen < 3 || unlen > 15) {
messagehandle_register(1, unlen < 3 ? profile_username_tooshort : profile_username_toolong);
return;
}
ajaxget('ajax.php?infloat=register&handlekey=register&action=checkusername&username=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(username) : username), 'returnmessage4');
}
function checkemail() {
var email = trim($('email').value);
if(email == '' || email == lastemail) {
return;
} else {
lastemail = email;
}
ajaxget('ajax.php?infloat=register&handlekey=register&action=checkemail&email=' + email, 'returnmessage4');
}
function checkinvitecode() {
var invitecode = trim($('invitecode').value);
if(invitecode == lastinvitecode) {
return;
} else {
lastinvitecode = invitecode;
}
ajaxget('ajax.php?infloat=register&handlekey=register&action=checkinvitecode&invitecode=' + invitecode, 'returnmessage4');
}
function trim(str) {
return str.replace(/^\s*(.*?)[\s\n]*$/g, '$1');
}
<? if(($field && !empty($infloat)) || $regverify == 2) { ?>
function regstep(obja,objb){
$(obja).style.display = $(obja+'_btn').style.display = 'none';
$(objb).style.display = $(objb+'_btn').style.display = '';
}
<? } if($invitecode) { ?>
ajaxget('ajax.php?infloat=register&handlekey=register&action=checkinvitecode&invitecode=<?=$invitecode?>', 'returnmessage4');
<? } ?>
</script>
<? } updatesession(); if(empty($infloat)) { ?></div>
</div></div></div>
</div><? } include template('footer'); ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_register.tpl.php
|
PHP
|
asf20
| 18,043
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/header.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/css_script.htm', 1250740646, '2', './templates/uchome')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_header.tpl.php
|
PHP
|
asf20
| 20,687
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); include template('header'); ?>
<div class="float" id="floatlayout_topicadmin">
<div class="floatboxnarrow">
<h3 class="float_ctrl">
<em id="return_mods">选择了 <?=$modpostsnum?> 篇帖子</em>
<span>
<a href="javascript:;" class="float_close" onclick="floatwin('close_mods')" title="关闭">关闭</a>
</span>
</h3>
<form id="moderateform" method="post" action="topicadmin.php?action=moderate&optgroup=<?=$optgroup?>&modsubmit=yes&infloat=yes" onsubmit="ajaxpost('moderateform', 'return_mods', 'return_mods', 'onerror');return false;">
<input type="hidden" name="frommodcp" value="<?=$frommodcp?>" />
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<input type="hidden" name="fid" value="<?=$fid?>" />
<input type="hidden" name="listextra" value="<?=$listextra?>" />
<? if(!empty($infloat)) { ?><input type="hidden" name="handlekey" value="<?=$handlekey?>" /><? } if(is_array($threadlist)) { foreach($threadlist as $thread) { ?><input type="hidden" name="moderate[]" value="<?=$thread['tid']?>" /><? } } ?><div class="postbox">
<? if($optgroup == 1) { ?>
<ul class="listtopicadmin">
<? if($allowstickthread) { ?>
<li id="itemcp_stick">
<table cellspacing="0" cellpadding="5">
<tr>
<td width="15"><input name="operations[]" onclick="if(this.checked) switchitemcp('itemcp_stick')" type="checkbox" value="stick" <?=$defaultcheck['stick']?> /></td>
<td>
<label onclick="switchitemcp('itemcp_stick')" class="labeltxt">置顶</label>
<div class="detailopt">
<select name="sticklevel">
<option value="0">无</option>
<option value="1" <?=$stickcheck['1']?>><?=$threadsticky['2']?></option>
<? if($allowstickthread >= 2) { ?>
<option value="2" <?=$stickcheck['2']?>><?=$threadsticky['1']?></option>
<? if($allowstickthread == 3) { ?>
<option value="3" <?=$stickcheck['3']?>><?=$threadsticky['0']?></option>
<? } } ?>
</select>
</div>
</td>
</tr>
<tr class="detailopt">
<td></td>
<td>
<p class="hasdropdownbtn">
<label for="expirationstick" class="labeltxt">有效期</label>
<input onclick="InFloat='floatlayout_mods';showcalendar(event, this, true)" type="text" autocomplete="off" id="expirationstick" name="expirationstick" class="txt" value="<?=$expirationstick?>" tabindex="1" />
<a href="javascript:;" class="dropdownbtn" onclick="InFloat='floatlayout_mods';showselect(this, 'expirationstick')">^</a>
</p>
</td>
</tr>
</table>
</li>
<? } ?>
<li id="itemcp_highlight">
<table cellspacing="0" cellpadding="5">
<tr>
<td width="15"><input name="operations[]" onclick="if(this.checked) switchitemcp('itemcp_highlight')" type="checkbox" value="highlight" <?=$defaultcheck['highlight']?> /></td>
<td><? $colorarray = array(1=>'#EE1B2E', 2=>'#EE5023', 3=>'#996600', 4=>'#3C9D40', 5=>'#2897C5', 6=>'#2B65B7', 7=>'#8F2A90', 8=>'#EC1282'); ?><label onclick="switchitemcp('itemcp_highlight')" class="labeltxt">高亮</label>
<div class="detailopt">
<span class="hasdropdownbtn">
<input type="hidden" id="highlight_color" name="highlight_color" value="<?=$colorcheck?>" />
<input type="hidden" id="highlight_style_1" name="highlight_style[1]" value="<?=$stylecheck['1']?>" />
<input type="hidden" id="highlight_style_2" name="highlight_style[2]" value="<?=$stylecheck['2']?>" />
<input type="hidden" id="highlight_style_3" name="highlight_style[3]" value="<?=$stylecheck['3']?>" />
<input id="color_bg" type="text" class="txt" readonly="readonly" <? if($colorcheck) { ?>style="background: <?=$colorarray[$colorcheck]?>" <? } ?>/>
<a href="javascript:;" onclick="display('color_menu')" class="dropdownbtn">^</a>
</span>
<div id="color_menu" class="color_menu" style="display: none">
<a href="javascript:;" onclick="switchhl(1, this, 0);removehl()" title="取消高亮" style="background:<?=LINK?>;text-indent:0;color:#F00;text-decoration:none;">X</a><? if(is_array($colorarray)) { foreach($colorarray as $key => $color) { ?><a href="javascript:;" onclick="switchhl(1, this, <?=$key?>)" style="background:<?=$color?>;color:<?=$color?>;"><?=$color?></a><? } } ?></div>
<a href="javascript:;" id="highlight_op_1" onclick="switchhl(2, this, 1)" class="detailopt_bold<? if($stylecheck['1']) { ?> current<? } ?>" style="text-indent:0;text-decoration:none;font-weight:700;" title="粗体">B</a>
<a href="javascript:;" id="highlight_op_2" onclick="switchhl(2, this, 2)" class="detailopt_italic<? if($stylecheck['2']) { ?> current<? } ?>" style="text-indent:0;text-decoration:none;font-style:italic;" title="斜体">I</a>
<a href="javascript:;" id="highlight_op_3" onclick="switchhl(2, this, 3)" class="detailopt_underline<? if($stylecheck['3']) { ?> current<? } ?>" style="text-indent:0;text-decoration:underline;" title="下划线">U</a>
</div>
</td>
</tr>
<tr class="detailopt">
<td></td>
<td>
<p class="hasdropdownbtn">
<label for="expirationhighlight" class="labeltxt">有效期</label>
<input onclick="InFloat='floatlayout_mods';showcalendar(event, this, true)" type="text" autocomplete="off" id="expirationhighlight" name="expirationhighlight" class="txt" value="<?=$expirationhighlight?>" tabindex="1" />
<a href="javascript:;" class="dropdownbtn" onclick="InFloat='floatlayout_mods';showselect(this, 'expirationhighlight')">^</a>
</p>
</td>
</tr>
</table>
</li>
<li id="itemcp_digest">
<table cellspacing="0" cellpadding="5">
<tr>
<td width="15"><input name="operations[]" onclick="if(this.checked) switchitemcp('itemcp_digest')" type="checkbox" value="digest" <?=$defaultcheck['digest']?> /></td>
<td>
<label onclick="switchitemcp('itemcp_digest')" class="labeltxt">精华</label>
<div class="detailopt">
<select name="digestlevel">
<option value="0">解除</option>
<option value="1" <?=$digestcheck['1']?>>精华 1</option>
<option value="2" <?=$digestcheck['2']?>>精华 2</option>
<option value="3" <?=$digestcheck['3']?>>精华 3</option>
</select>
</div>
</td>
</tr>
<tr class="detailopt">
<td></td>
<td>
<p class="hasdropdownbtn">
<label for="expirationdigest" class="labeltxt">有效期</label>
<input onclick="InFloat='floatlayout_mods';showcalendar(event, this, true)" type="text" autocomplete="off" id="expirationdigest" name="expirationdigest" class="txt" value="<?=$expirationdigest?>" tabindex="1" />
<a href="javascript:;" class="dropdownbtn" onclick="InFloat='floatlayout_mods';showselect(this, 'expirationdigest')">^</a>
</p>
</td>
</tr>
</table>
</li>
<? if($forum['modrecommend']['open'] && $forum['modrecommend']['sort'] != 1) { ?>
<li id="itemcp_recommend">
<table cellspacing="0" cellpadding="5">
<tr>
<td width="15"><input name="operations[]" onclick="if(this.checked) switchitemcp('itemcp_recommend')" type="checkbox" value="recommend" <?=$defaultcheck['recommend']?> /></td>
<td>
<label onclick="switchitemcp('itemcp_recommend')" class="labeltxt">推荐</label>
<div class="detailopt">
<label><input class="radio" type="radio" name="isrecommend" value="1" checked="checked" /> 推荐</label>
<label><input class="radio" type="radio" name="isrecommend" value="0" /> 解除</label>
</div>
</td>
</tr>
<tr class="detailopt">
<td></td>
<td>
<p class="hasdropdownbtn">
<label for="expirationrecommend" class="labeltxt">有效期</label>
<input onclick="InFloat='floatlayout_mods';showcalendar(event, this, true)" type="text" autocomplete="off" id="expirationrecommend" name="expirationrecommend" class="txt" value="<?=$expirationrecommend?>" tabindex="1" />
<a href="javascript:;" class="dropdownbtn" onclick="InFloat='floatlayout_mods';showselect(this, 'expirationrecommend')">^</a>
</p>
</td>
</tr>
</table>
</table>
</li>
<? } ?>
<li>
<table cellspacing="0" cellpadding="5">
<tr>
<td width="15"><input name="operations[]" type="checkbox" value="bump" <?=$defaultcheck['bump']?> /></td>
<td><label for="">提升</label></td>
</tr>
</table>
</li>
</ul>
<? } elseif($optgroup == 2) { ?>
<div class="topicadminlow">
<? if($operation != 'type') { ?>
<input type="hidden" name="operations[]" value="move" />
<p class="tah_body tah_fixiesel">
目标版块: <select id="moveto" name="moveto" onchange="if(this.value) {$('moveext').style.display='';} else {$('moveext').style.display='none';}">
<?=$forumselect?>
</select>
</p>
<p class="tah_body">
<ul class="inlinelist" id="moveext" style="display:none;margin:5px 0;">
<li class="wide"><label><input class="radio" type="radio" name="type" value="normal" checked="checked" /> 移动主题</label></li>
<li class="wide"><label><input class="radio" type="radio" name="type" value="redirect" /> 保留转向</label></li>
</ul>
</p>
<? } else { if($typeselect) { ?>
<input type="hidden" name="operations[]" value="type" />
<p>分类: <?=$typeselect?></p>
<? } else { ?>
当前版块无分类设置,请联系管理员到后台设置主题分类<? $hiddensubmit = true; } } ?>
</div>
<? } elseif($optgroup == 3) { ?>
<div class="topicadminlow">
<ul class="inlinelist">
<? if($operation == 'delete') { if($allowdelpost) { ?>
<input name="operations[]" type="hidden" value="delete"/>
<p>您确认要 <strong>删除</strong> 选择的主题么?</p>
<? } else { ?>
<p>您没有删除此主题权限</p>
<? } } elseif($operation == 'down' || $operation='bump') { ?>
<li class="wide"><label><input class="radio" type="radio" name="operations[]" value="bump" checked="checked"/> 提升主题</label></li>
<li class="wide"><label><input class="radio" type="radio" name="operations[]" value="down" /> 下沉主题</label></li>
<? } ?>
</ul>
</div>
<? } elseif($optgroup == 4) { ?>
<table cellspacing="0" cellpadding="0">
<tr>
<td>有效期: </td>
<td>
<p class="hasdropdownbtn">
<input onclick="InFloat='floatlayout_mods';showcalendar(event, this, true)" type="text" autocomplete="off" id="expirationclose" name="expirationclose" class="txt" value="<?=$expirationclose?>" tabindex="1" />
<a href="javascript:;" class="dropdownbtn" onclick="InFloat='floatlayout_mods';showselect(this, 'expirationclose')">^</a>
</p>
</td>
</tr>
<tr>
<td colspan="2" style="padding: 5px 0;">
<ul class="inlinelist">
<li class="wide"><label><input class="radio" type="radio" name="operations[]" value="open" <?=$closecheck['0']?> />打开主题</label></li>
<li class="wide"><label><input class="radio" type="radio" name="operations[]" value="close" <?=$closecheck['1']?> />关闭主题</label></li>
</ul>
</td>
</tr>
</table>
<? } ?>
<div class="topicadminlog">
<? if(empty($hiddensubmit)) { ?>
<h4>
<span class="hasdropdownbtn right"><a onclick="InFloat='floatlayout_mods';showselect(this, 'reason', 'reasonselect')" class="dropdownbtn" href="javascript:;">^</a></span>
操作原因:
</h4>
<p><textarea id="reason" name="reason" class="txtarea" onkeyup="seditor_ctlent(event, '$(\'moderateform\').submit()')"></textarea></p>
<ul id="reasonselect" style="display: none"><? echo modreasonselect(); ?></ul>
<p>
<input name="modsubmit" type="submit" value="确定" />
<input type="checkbox" name="sendreasonpm" id="sendreasonpm" class="checkbox"<? if($reasonpm == 2 || $reasonpm == 3) { ?> checked="checked" disabled="disabled"<? } ?> /> <label for="sendreasonpm" />通知作者</label>
</p>
<? } ?>
</div>
</div>
</form>
</div>
</div>
<script src="include/js/calendar.js?<?=VERHASH?>" type="text/javascript" reload="1"></script>
<script type="text/javascript" reload="1">
function submithandle_mods(locationhref) {
floatwinreset = 1;
floatwin('close_mods');
<? if(!empty($from)) { ?>
location.href = 'viewthread.php?tid=<?=$from?>&extra=<?=$listextra?>';
<? } else { ?>
location.href = locationhref;
<? } ?>
}
var lastsel = null;
function switchitemcp(id) {
if(lastsel) {
lastsel.className = '';
}
$(id).className = 'currentopt';
lastsel = $(id);
}
<? if(!empty($operation)) { ?>
if($('itemcp_<?=$operation?>')) {
switchitemcp('itemcp_<?=$operation?>');
}
<? } ?>
function switchhl(op, obj, v) {
if(op == 1) {
$('highlight_color').value = v;
$('color_bg').style.backgroundColor = obj.style.backgroundColor;
$('color_menu').style.display = 'none';
} else if(op == 2) {
if(parseInt($('highlight_style_' + v).value)) {
$('highlight_style_' + v).value = 0;
obj.className = obj.className.replace(/ current/, '');
} else {
$('highlight_style_' + v).value = 1;
obj.className += ' current';
}
}
}
function removehl() {
$('highlight_style_' + 1).value = $('highlight_style_' + 2).value = $('highlight_style_' + 3).value = 0;
$('highlight_op_1').className = $('highlight_op_1').className.replace(/ current/, '');
$('highlight_op_2').className = $('highlight_op_2').className.replace(/ current/, '');
$('highlight_op_3').className = $('highlight_op_3').className.replace(/ current/, '');
}
</script>
<? include template('footer'); ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_topicadmin.tpl.php
|
PHP
|
asf20
| 12,797
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/discuz.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/header.htm', 1252985571, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/discuz.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/footer.htm', 1252985571, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/discuz.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/css_script.htm', 1252985571, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/discuz.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/jsmenu.htm', 1252985571, '2', './templates/uchome')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> » 首页</div>
<? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['text'])) { ?><div class="ad_text" id="ad_text"><table summary="Text Ad" cellpadding="0" cellspacing="1"><?=$advlist['text']?></table></div><? } else { ?><div id="ad_text"></div><? } ?>
<div id="wrap"<? if($infosidestatus['allow'] < 2) { ?> class="wrap s_clear"<? } else { ?> class="wrap with_side s_clear"<? } ?>>
<? if($infosidestatus['allow'] == 2) { ?>
<a id="sidebar_img" href="javascript:;" onclick="sidebar_collapse(['打开边栏', '关闭边栏']);" class="<?=$collapseimg['sidebar']?>"><? if($collapseimg['sidebar'] == 'collapsed_yes') { ?>打开边栏<? } else { ?>关闭边栏<? } ?></a>
<? } elseif($infosidestatus['allow'] == 1) { ?>
<a id="sidebar_img" href="javascript:;" onclick="sidebar_collapse(['', '关闭边栏']);" class="collapsed_yes">打开边栏</a>
<? } ?>
<div class="main"><div class="content">
<div class="pages_btns s_clear">
<span class="postbtn"><a href="misc.php?action=nav" onclick="floatwin('open_nav', this.href, 600, 410);return false;">发帖</a></span>
<? if(!$discuz_uid) { ?>
<p>你可以<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="lightlink">注册</a>一个帐号,并以此<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;" class="lightlink">登录</a>,以浏览更多精彩内容,并随时发布观点,与大家交流。</p>
<? } else { ?>
欢迎回来 <?=$discuz_userss?>, <? if($lastvisit > 0) { ?>你上次访问时间是在 <?=$lastvisit?>, <? } ?><a href="search.php?srchfrom=<?=$newthreads?>&searchsubmit=yes" class="lightlink">查看新帖</a>, <a href="member.php?action=markread" id="ajax_markread" onclick="ajaxmenu(event, this.id)" class="lightlink">标记已读</a>
<? } ?>
</div>
<div class="foruminfo s_clear">
<p class="right forumcount">
今日: <em><?=$todayposts?></em>, 昨日: <em><?=$postdata['0']?></em>, 会员: <em><?=$totalmembers?></em>
</p>
<? if(empty($gid) && $announcements) { ?>
<div id="ann" onmouseover="annstop = 1" onmouseout="annstop = 0">
<dl>
<dt>公告:</dt>
<dd>
<div id="annbody"><ul id="annbodylis"><?=$announcements?></ul></div>
</dd>
</dl>
</div>
<script type="text/javascript">
var anndelay = 3000;
var annst = 0;
var annstop = 0;
var annrowcount = 0;
var anncount = 0;
var annlis = $('annbody').getElementsByTagName("LI");
var annrows = new Array();
var annstatus;
function announcementScroll() {
if(annstop) {
annst = setTimeout('announcementScroll()', anndelay);
return;
}
if(!annst) {
var lasttop = -1;
for(i = 0;i < annlis.length;i++) {
if(lasttop != annlis[i].offsetTop) {
if(lasttop == -1) {
lasttop = 0;
}
annrows[annrowcount] = annlis[i].offsetTop - lasttop;
annrowcount++;
}
lasttop = annlis[i].offsetTop;
}
if(annrows.length == 1) {
$('ann').onmouseover = $('ann').onmouseout = null;
} else {
annrows[annrowcount] = annrows[1];
$('annbodylis').innerHTML += $('annbodylis').innerHTML;
annst = setTimeout('announcementScroll()', anndelay);
}
annrowcount = 1;
return;
}
if(annrowcount >= annrows.length) {
$('annbody').scrollTop = 0;
annrowcount = 1;
annst = setTimeout('announcementScroll()', anndelay);
} else {
anncount = 0;
announcementScrollnext(annrows[annrowcount]);
}
}
function announcementScrollnext(time) {
$('annbody').scrollTop++;
anncount++;
if(anncount != time) {
annst = setTimeout('announcementScrollnext(' + time + ')', 10);
} else {
annrowcount++;
annst = setTimeout('announcementScroll()', anndelay);
}
}
</script>
<? } ?>
</div>
<!-- 首页五格代码开始 -->
<div class="mainbox forumlist" style="padding:0;">
<table cellspacing="0" cellpadding="0">
<thead class="category">
<tr>
<td align="center" style="padding:0 1px 0 0"><h3>≡ 论坛图片 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 最新帖子 ≡</h3></td>
<td align="center" style="padding:0 1px 0 1px"><h3>≡ 最新回复 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 本周热门 ≡</h3></td>
<td></td>
</tr>
</thead>
<tr>
<td width="24%">
<script src="pic.php" type="text/javascript"></script>
</td>
<td width="25%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
<td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
<? if(is_array($new_post_threadlist)) { foreach($new_post_threadlist as $nthread) { ?> <? if($nthread['replies']) { ?>
<div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=<?=$nthread['tid']?>" <?=$nthread['highlight']?> title='最新帖子 <?="\n"?>所在论坛: <?=$nthread['forumname']?><?="\n"?>主题标题: <?=$nthread['subject']?> <?="\n"?>主题作者: <?=$nthread['author']?><?="\n"?>发表时间: <?=$nthread['date']?><?="\n"?>浏览次数: <?=$nthread['views']?> 次 <?="\n"?>回复次数: <?=$nthread['replies']?> 次<?="\n"?>最后回复: <?=$nthread['lastreplytime']?><?="\n"?>最后发表: <?=$nthread['lastposter']?>'><?=$nthread['view_subject']?></a></div>
<? } else { ?>
<div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=<?=$nthread['tid']?>" <?=$nthread['highlight']?> title='最新帖子 <?="\n"?>所在论坛: <?=$nthread['forumname']?><?="\n"?>主题标题: <?=$nthread['subject']?> <?="\n"?>主题作者: <?=$nthread['author']?><?="\n"?>发表时间: <?=$nthread['date']?><?="\n"?>浏览次数: <?=$nthread['views']?> 次 <?="\n"?>回复次数: <?=$nthread['replies']?> 次<?="\n"?>最后回复: 暂时没有回复'><?=$nthread['view_subject']?></a></div>
<? } ?>
<? } } ?> </td>
</tr>
</table>
</td>
<td width="25%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
<td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
<? if(is_array($new_reply_threadlist)) { foreach($new_reply_threadlist as $rthread) { ?> <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=<?=$rthread['tid']?>" <?=$rthread['highlight']?> title='最新回复 <?="\n"?>所在论坛: <?=$rthread['forumname']?><?="\n"?>主题标题: <?=$rthread['subject']?><?="\n"?>主题作者: <?=$rthread['author']?><?="\n"?>发表时间: <?=$rthread['date']?><?="\n"?>浏览次数: <?=$rthread['views']?> 次<?="\n"?>回复次数: <?=$rthread['replies']?> 次<?="\n"?>最后回复: <?=$rthread['lastreplytime']?><?="\n"?>最后发表: <?=$rthread['lastposter']?>'><?=$rthread['view_subject']?></a></div>
<? } } ?> </td>
</tr>
</table>
</td>
<td width="26%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
<td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
<? if(is_array($new_hot_threadlist)) { foreach($new_hot_threadlist as $mthread) { ?> <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=<?=$mthread['tid']?>" <?=$mthread['highlight']?> title='本周热门 <?="\n"?>所在论坛: <?=$mthread['forumname']?><?="\n"?>主题标题: <?=$mthread['subject']?><?="\n"?>主题作者: <?=$mthread['author']?><?="\n"?>发表时间: <?=$mthread['date']?><?="\n"?>浏览次数: <?=$mthread['views']?> 次<?="\n"?>回复次数: <?=$mthread['replies']?> 次<?="\n"?>最后回复: <?=$mthread['lastreplytime']?><?="\n"?>最后发表: <?=$mthread['lastposter']?>'><?=$mthread['view_subject']?></a></div>
<? } } ?> </td>
</tr>
</table>
</td>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td></td>
<td>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="2" cellpadding="2">
<tr>
<td><font color=red><b>Top10: </b></font><?=$poststar?></td>
</tr>
</table>
</div>
<!-- 首页五格代码结束 -->
<? if(!empty($insenz['vfstatus']) && $insenz['vfpos'] == 'first') { ?><script src="campaign.php?action=list" type="text/javascript"></script><? } $rkey=array_rand($catlist); if(is_array($catlist)) { foreach($catlist as $key => $cat) { if($cat['forumscount']) { ?>
<div class="mainbox list">
<span class="headactions">
<? if($cat['moderators']) { ?>分区版主: <?=$cat['moderators']?><? } ?>
<img id="category_<?=$cat['fid']?>_img" src="<?=IMGDIR?>/<?=$cat['collapseimg']?>" title="收起/展开" alt="收起/展开" onclick="toggle_collapse('category_<?=$cat['fid']?>');" />
</span>
<h3><a href="<?=$indexname?>?gid=<?=$cat['fid']?>"><?=$cat['name']?></a></h3>
<table id="category_<?=$cat['fid']?>" summary="category<?=$cat['fid']?>" cellspacing="0" cellpadding="0" style="<?=$collapse['category_'.$cat['fid']]?>">
<? if(!$cat['forumcolumns']) { if(is_array($cat['forums'])) { foreach($cat['forums'] as $forumid) { $forum=$forumlist[$forumid]; ?><tbody id="forum<?=$forum['fid']?>">
<tr>
<th<?=$forum['folder']?>>
<?=$forum['icon']?>
<div class="left">
<h2><a href="forumdisplay.php?fid=<?=$forum['fid']?>" <? if($forum['redirect']) { ?>target="_blank"<? } ?>><?=$forum['name']?></a><? if($forum['todayposts'] && !$forum['redirect']) { ?><em> (今日: <strong><?=$forum['todayposts']?></strong>)</em><? } ?></h2>
<? if($forum['description']) { ?><p><?=$forum['description']?></p><? } if($forum['subforums']) { ?><p>子版块: <?=$forum['subforums']?></p><? } if($forum['moderators']) { if($moddisplay == 'flat') { ?><p>版主: <?=$forum['moderators']?></p><? } else { ?><span class="dropmenu" id="mod<?=$forum['fid']?>" onmouseover="showMenu(this.id)">版主</span><ul class="moderators popupmenu_popup" id="mod<?=$forum['fid']?>_menu" style="display: none"><?=$forum['moderators']?></ul><? } } ?>
</div>
</th>
<td class="forumnums">
<? if($forum['redirect']) { ?>N/A<? } else { ?><em><?=$forum['threads']?></em> / <?=$forum['posts']?><? } ?>
</td>
<td class="forumlast">
<? if($forum['permission'] == 1) { ?>
私密版块
<? } else { if($forum['redirect']) { ?>
<a href="forumdisplay.php?fid=<?=$forum['fid']?>">链接到外部地址</a>
<? } elseif(is_array($forum['lastpost'])) { ?>
<p><a href="redirect.php?tid=<?=$forum['lastpost']['tid']?>&goto=lastpost#lastpost"><? echo cutstr($forum['lastpost']['subject'], 30); ?></a></p>
<cite><? if($forum['lastpost']['author']) { ?><?=$forum['lastpost']['author']?><? } else { ?>匿名<? } ?> - <?=$forum['lastpost']['dateline']?></cite>
<? } else { ?>
从未
<? } } ?>
</td>
</tr>
</tbody><? } } } else { ?>
<tr class="narrowlist"><? if(is_array($cat['forums'])) { foreach($cat['forums'] as $forumid) { $forum=$forumlist[$forumid]; if($forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)) { ?>
</tr></tbody>
<? if($forum['orderid'] < $cat['forumscount']) { ?>
<tbody><tr>
<? } } ?>
<th width="<?=$cat['forumcolwidth']?>"<?=$forum['folder']?>>
<h2><a href="forumdisplay.php?fid=<?=$forum['fid']?>" <? if($forum['redirect']) { ?>target="_blank"<? } ?>><?=$forum['name']?></a><? if($forum['todayposts']) { ?><em> (今日: <strong><?=$forum['todayposts']?></strong>)</em><? } ?></h2>
<? if(!$forum['redirect']) { ?>
<p>主题: <?=$forum['threads']?>, 帖数: <?=$forum['posts']?></p>
<? if($forum['permission'] == 1) { ?>
<p>私密版块
<? } else { ?>
<p>最后发表:
<? if(is_array($forum['lastpost'])) { ?>
<a href="redirect.php?tid=<?=$forum['lastpost']['tid']?>&goto=lastpost#lastpost" title="<? echo cutstr($forum['lastpost']['subject'], 30); ?> by <? if($forum['lastpost']['author']) { ?><?=$forum['lastpost']['authorusername']?><? } else { ?>匿名<? } ?> "><?=$forum['lastpost']['dateline']?></a>
<? } else { ?>
从未
<? } ?>
</p>
<? } } else { ?>
<p>链接到外部地址</p>
<? } ?>
</th><? } } ?><?=$cat['endrows']?>
<? } ?>
</table>
</div>
<? if(!empty($insenz['vfstatus']) && $insenz['vfpos'] == 'rand' && $key == $rkey) { ?><script src="campaign.php?action=list" type="text/javascript"></script><? } if($admode && empty($insenz['hardadstatus']) && !empty($advlist['intercat']) && ($advlist['intercat'][$key] = array_merge(($advlist['intercat']['0'] ? $advlist['intercat']['0'] : array()), ($advlist['intercat'][$key] ? $advlist['intercat'][$key] : array())))) { ?><div class="ad_column" id="ad_intercat_<?=$key?>"><? echo $advitems[$advlist['intercat'][$key][array_rand($advlist['intercat'][$key])]]; ?></div><? } else { ?><div id="ad_intercat_<?=$key?>"></div><? } } } } if(!empty($insenz['vfstatus']) && $insenz['vfpos'] == 'last') { ?><script src="campaign.php?action=list" type="text/javascript"></script><? } if($_DCACHE['forumlinks']['0'] || $_DCACHE['forumlinks']['1'] || $_DCACHE['forumlinks']['2']) { ?>
<div class="mainbox list">
<span class="headactions"><img id="forumlinks_img" src="<?=IMGDIR?>/<?=$collapseimg['forumlinks']?>.gif" alt="" onclick="toggle_collapse('forumlinks');" /></span>
<h3>友情链接</h3>
<div id="forumlinks" style="<?=$collapse['forumlinks']?>">
<? if($_DCACHE['forumlinks']['0']) { ?>
<div class="forumlinks">
<ul class="s_clear"><?=$_DCACHE['forumlinks']['0']?></ul>
</div>
<? } if($_DCACHE['forumlinks']['1']) { ?>
<div class="forumimglink">
<?=$_DCACHE['forumlinks']['1']?>
</div>
<? } if($_DCACHE['forumlinks']['2']) { ?>
<div class="forumtxtlink">
<ul class="s_clear">
<?=$_DCACHE['forumlinks']['2']?>
</ul>
</div>
<? } ?>
</div>
</div>
<? } if(empty($gid) && $maxbdays &&$_DCACHE['birthdays_index']['todaysbdays']) { ?>
<div class="mainbox list" id="bdays">
<h3 id="bdayslist">
<a href="member.php?action=list&type=birthdays">生日快乐</a>: <?=$_DCACHE['birthdays_index']['todaysbdays']?>
</h3>
</div>
<? } if(empty($gid) && $whosonlinestatus) { ?>
<div class="mainbox list" id="online">
<? if($whosonlinestatus) { if($detailstatus) { ?>
<span class="headactions"><a href="<?=$indexname?>?showoldetails=no#online" title="关闭"><img src="<?=IMGDIR?>/collapsed_no.gif" alt="关闭" /></a></span>
<h3>
<strong><a href="member.php?action=online">在线会员</a></strong>
- <em><?=$onlinenum?></em> 人在线
- <em><?=$membercount?></em> 会员(<em><?=$invisiblecount?></em> 隐身),
<em><?=$guestcount?></em> 位游客
- 最高记录是 <em><?=$onlineinfo['0']?></em> 于 <em><?=$onlineinfo['1']?></em>.
</h3>
<? } else { ?>
<span class="headactions"><a href="<?=$indexname?>?showoldetails=yes#online" class="nobdr"><img src="<?=IMGDIR?>/collapsed_yes.gif" alt="" /></a></span>
<h3>
<strong><a href="member.php?action=online">在线会员</a></strong>
- 总计 <em><?=$onlinenum?></em> 人在线
- 最高记录是 <em><?=$onlineinfo['0']?></em> 于 <em><?=$onlineinfo['1']?></em>.
</h3>
<? } } else { ?>
<h4><strong><a href="member.php?action=online">在线会员</a></strong></h4>
<? } if($whosonlinestatus && $detailstatus) { ?>
<dl id="onlinelist">
<dt><?=$_DCACHE['onlinelist']['legend']?></dt>
<? if($detailstatus) { ?>
<dd>
<ul class="s_clear">
<? if($whosonline) { if(is_array($whosonline)) { foreach($whosonline as $key => $online) { ?><li title="时间: <?=$online['lastactivity']?><?="\n"?>操作: <?=$online['action']?> <? if($online['fid']) { ?><?="\n"?>版块: <?=$online['fid']?><? } ?>">
<img src="images/common/<?=$online['icon']?>" alt="" />
<? if($online['uid']) { ?>
<a href="space.php?uid=<?=$online['uid']?>"><?=$online['username']?></a>
<? } else { ?>
<?=$online['username']?>
<? } ?>
</li><? } } } else { ?>
<li style="width: auto">当前只有游客或隐身会员在线</li>
<? } ?>
</ul>
</dd>
<? } ?>
</dl>
<? } ?>
</div>
<? } if(empty($gid) && $announcements) { ?>
<script type="text/javascript">announcementScroll();</script>
<? } ?>
</div></div>
<? if($infosidestatus['allow'] == 2) { ?>
<div id="sidebar" class="side" style="<?=$collapse['sidebar']?>">
<? if(!empty($qihoo['status']) && ($qihoo['searchbox'] & 1)) { ?>
<div id="qihoosearch" class="sidebox">
<? if(!empty($qihoo['status']) && ($qihoo['searchbox'] & 1)) { ?>
<form method="post" action="search.php?srchtype=qihoo" onSubmit="this.target='_blank';">
<input type="hidden" name="searchsubmit" value="yes" />
<input type="text" class="txt" name="srchtxt" value="<?=$qihoo_searchboxtxt?>" size="20" />
<select name="stype">
<option value="" selected="selected">全文</option>
<option value="1">标题</option>
<option value="2">作者</option>
</select>
<button name="searchsubmit" type="submit" value="true">搜索</button>
</form>
<? if(!empty($qihoo['links']['keywords'])) { ?>
<strong>热门搜索</strong><? if(is_array($qihoo['links']['keywords'])) { foreach($qihoo['links']['keywords'] as $link) { ?><?=$link?> <? } } } if($customtopics) { ?>
<strong>用户专题</strong> <?=$customtopics?> [<a href="javascript:;" onclick="floatwin('open_customtopics', 'misc.php?action=customtopics', 600, 410)">编辑</a>]<br />
<? } if(!empty($qihoo['links']['topics'])) { ?>
<strong>论坛专题</strong> <? if(is_array($qihoo['links']['topics'])) { foreach($qihoo['links']['topics'] as $url) { ?><?=$url?> <? } } } } ?>
</div>
<? } if($infosidestatus['2']) { if(!empty($qihoo['status']) && ($qihoo['searchbox'] & 1)) { ?>
<hr class="shadowline"/>
<? } ?>
<div id="infoside">
<? if(empty($gid)) { request($infosidestatus, 0, 2); } else { request($infosidestatus, 1, 2); } ?>
</div>
<? } ?>
</div>
<? } ?>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_discuz.tpl.php
|
PHP
|
asf20
| 42,526
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/login.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/header_nofloat.htm', 1250677061, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/login.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/seccheck.htm', 1250677061, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/login.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/footer_nofloat.htm', 1250677061, '1', './templates/default')
;?>
<? include template('header'); if(!empty($message)) { ?>
<?=$ucsynlogin?>
<script type="text/javascript" reload="1">
<? if($message == 2) { ?>
floatwin('close_login');
floatwin('open_register', '<?=$location?>', 600, 400, '600,0');
<? } elseif($message == 1) { ?>
display('loginfield_selectinput');
display('loginform');
pagescroll.right(2);
<? if($groupid == 8) { ?>
$('messageleft').innerHTML = '<h1>欢迎您回来 <?=$usergroups?> <?=$discuz_user?></h1>您的帐号处于非激活状态';
$('messageright').innerHTML = '<h1><a href="memcp.php">个人中心</a></h1>';
setTimeout("window.location.href='memcp.php'", <?=$mrefreshtime?>);
<? } else { ?>
$('messageleft').innerHTML = '<h1>欢迎您回来 <?=$usergroups?> <?=$discuz_user?></h1>';
<? if(!empty($floatlogin)) { ?>
$('messageright').innerHTML = '<h1><a href="javascript:;" onclick="location.reload()">如果该页面长时间没有响应,请点这里刷新</a></h1>';
setTimeout('location.reload()', <?=$mrefreshtime?>);
<? } else { ?>
$('messageright').innerHTML = '<h1><a href="<? echo dreferer(); ?>">现在将转入登录前页面</a></h1>';
setTimeout("window.location.href='<? echo dreferer(); ?>'", <?=$mrefreshtime?>);
<? } } if($_DCACHE['settings']['frameon'] && $_DCOOKIE['frameon'] == 'yes') { ?>
if(top != self) {
parent.leftmenu.location.reload();
}
<? } } ?>
floatwinreset = 1;
</script>
<? } else { if(empty($infloat)) { ?><link rel="stylesheet" type="text/css" href="forumdata/cache/style_<?=STYLEID?>_float.css?<?=VERHASH?>" />
<style type="text/css">
.main { overflow: hidden; }
.content { margin: 5px; min-height: 400px; <?=FLOATBGCODE?>; }
* html .content { height: 400px; overflow: auto; }
.fixedbtn { position: static; }
</style>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> <?=$navigation?></div>
<div id="wrap" class="wrap s_clear">
<div class="main"><div class="content"><div class="nojs">
<div id="floatwinnojs"><? } ?>
<div class="float" id="floatlayout_login" style="width: 600px; height: 400px;">
<div style="width: 1800px">
<div class="floatbox floatbox1">
<h3 class="float_ctrl">
<span>
<? if(!empty($infloat)) { ?><a href="javascript:;" class="float_close" onclick="floatwin('close_login')" title="关闭">关闭</a><? } ?>
</span>
</h3>
<form method="post" name="login" id="loginform" class="gateform" onsubmit="<? if($pwdsafety) { ?>pwmd5('password3');<? } ?>pwdclear = 1;ajaxpost('loginform', 'returnmessage', 'returnmessage', 'onerror');return false;" action="logging.php?action=login&loginsubmit=yes<? if(!empty($infloat)) { ?>&floatlogin=yes<? } ?>">
<h3 id="returnmessage">用户登录</h3>
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<div class="loginform nolabelform">
<div class="selectinput">
<select name="loginfield" style="float:left;width:50px;" id="loginfield">
<option value="username">用户名</option>
<option value="uid">UID</option>
</select>
<input type="text" name="username" autocomplete="off" size="36" class="txt" tabindex="1" value="<?=$username?>" />
</div>
<p class="selectinput loginpsw">
<label for="password3">密 码 :</label>
<input type="password" id="password3" name="password" onfocus="clearpwd()" onkeypress="detectcapslock(event, this)" size="36" class="txt" tabindex="1" />
</p>
<? if($secqaacheck || $seccodecheck) { $seccheckfloat = 'floatlayout_login'; ?><div id="seccodelayer" style="position:relative"><script type="text/javascript" reload="1">
function updateseccode<?=$secchecktype?>(op) {
if(isUndefined(op)) {
var x = new Ajax();
ajaxget('ajax.php?action=updateseccode&secchecktype=<?=$secchecktype?>', 'seccodeverify<?=$secchecktype?>_menu', 'seccodeverify<?=$secchecktype?>_menu');
} else {
window.document.seccodeplayer.SetVariable("isPlay", "1");
}
$('seccodeverify<?=$secchecktype?>').focus();
}
function updatesecqaa<?=$secchecktype?>() {
var x = new Ajax();
ajaxget('ajax.php?action=updatesecqaa', 'secanswer<?=$secchecktype?>_menu', 'secanswer<?=$secchecktype?>_menu');
}
var secclick<?=$secchecktype?> = new Array();
var seccodefocus = 0;
function opensecwin<?=$secchecktype?>(id, type) {
if(!secclick<?=$secchecktype?>[id]) {
$(id).value = '';
secclick<?=$secchecktype?>[id] = 1;
if(type) {
$(id + '_menu').style.top = (parseInt($(id + '_menu').style.top) - parseInt($(id + '_menu').style.height)) + 'px';
updateseccode<?=$secchecktype?>();
} else {
updatesecqaa<?=$secchecktype?>();
}
}
<? if(empty($secchecktype)) { if(!empty($infloat)) { ?>
InFloat='<?=$seccheckfloat?>';
<? } if($seccheckfloat) { ?>
$(id + '_menu').style.position = 'absolute';
$(id + '_menu').style.top = (-parseInt($(id + '_menu').style.height)) + 'px';
<? if($secqaacheck) { ?>
if(type) {
$(id + '_menu').style.left = $(id).offsetLeft + 'px';
} else {
$(id + '_menu').style.left = '0px';
}
<? } else { ?>
$(id + '_menu').style.left = '0px';
<? } } } elseif($secchecktype == 1) { if(!empty($infloat)) { ?>
InFloat='floatlayout_register';
<? } ?>
showMenu(id, 0, 2, 3);
<? } elseif($secchecktype == 3) { ?>
showMenu(id, 0, 2, 3);
<? } ?>
$(id + '_menu').style.display = '';
$(id).focus();
$(id).unselectable = 'off';
}
</script>
<? if($secqaacheck) { ?>
<input name="secanswer" id="secanswer<?=$secchecktype?>" type="text" autocomplete="off" style="width:50px" value="验证问答" class="txt" onfocus="opensecwin<?=$secchecktype?>(this.id, 0)" onclick="opensecwin<?=$secchecktype?>(this.id, 0)" onblur="display(this.id + '_menu');checksecanswer<?=$secchecktype?>();" tabindex="1">
<span id="checksecanswer<?=$secchecktype?>"><img src="images/common/none.gif" width="16" height="16"></span>
<div id="secanswer<?=$secchecktype?>_menu" class="seccodecontent" style="width:200px;height:80px;display:none"></div>
<? } if($seccodecheck) { ?>
<input name="seccodeverify" id="seccodeverify<?=$secchecktype?>" type="text" autocomplete="off" style="width:50px" value="验证码" class="txt" onfocus="opensecwin<?=$secchecktype?>(this.id, 1)" onclick="opensecwin<?=$secchecktype?>(this.id, 1)" onblur="if(!seccodefocus) {display(this.id + '_menu')}checkseccode<?=$secchecktype?>();" tabindex="1">
<a href="javascript:;" onclick="updateseccode<?=$secchecktype?>()">换一个</a>
<span id="checkseccodeverify<?=$secchecktype?>"><img src="images/common/none.gif" width="16" height="16"></span>
<div id="seccodeverify<?=$secchecktype?>_menu" class="seccodecontent" onmouseover="seccodefocus = 1" onmouseout="seccodefocus = 0" style="cursor: pointer;top: 256px;width:<?=$seccodedata['width']?>px;height:<?=$seccodedata['height']?>px;display:none"></div>
<? } ?>
<script type="text/javascript" reload="1">
var profile_seccode_invalid = '验证码输入错误,请重新填写。';
var profile_secanswer_invalid = '验证问答回答错误,请重新填写。';
var lastseccode = lastsecanswer = '';
function checkseccode<?=$secchecktype?>() {
var seccodeverify = $('seccodeverify<?=$secchecktype?>').value;
if(seccodeverify == lastseccode) {
return;
} else {
lastseccode = seccodeverify;
}
var cs = $('checkseccodeverify<?=$secchecktype?>');
<? if($seccodedata['type'] != 1) { ?>
if(!(/[0-9A-Za-z]{4}/.test(seccodeverify))) {
warning<?=$secchecktype?>(cs, profile_seccode_invalid);
return;
}
<? } else { ?>
if(seccodeverify.length != 2) {
warning<?=$secchecktype?>(cs, profile_seccode_invalid);
return;
}
<? } ?>
ajaxresponse<?=$secchecktype?>('checkseccodeverify<?=$secchecktype?>', 'action=checkseccode&seccodeverify=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(seccodeverify) : seccodeverify));
}
function checksecanswer<?=$secchecktype?>() {
var secanswer = $('secanswer<?=$secchecktype?>').value;
if(secanswer == lastsecanswer) {
return;
} else {
lastsecanswer = secanswer;
}
ajaxresponse<?=$secchecktype?>('checksecanswer<?=$secchecktype?>', 'action=checksecanswer&secanswer=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(secanswer) : secanswer));
}
function ajaxresponse<?=$secchecktype?>(objname, data) {
var x = new Ajax('XML', objname);
x.get('ajax.php?inajax=1&' + data, function(s){
var obj = $(objname);
if(s == 'succeed') {
obj.style.display = '';
obj.innerHTML = '<img src="<?=IMGDIR?>/check_right.gif" width="16" height="16" />';
obj.className = "warning";
} else {
warning(obj, s);
}
});
}
function warning(obj, msg) {
if((ton = obj.id.substr(5, obj.id.length)) != 'password2') {
$(ton).select();
}
obj.style.display = '';
obj.innerHTML = '<img src="<?=IMGDIR?>/check_error.gif" width="16" height="16" />';
obj.className = "warning";
}
</script></div>
<? } ?>
<div class="selecttype">
<select id="questionid" name="questionid" change="if($('questionid').value > 0) {$('answer').style.display='';} else {$('answer').style.display='none';}">
<option value="0">安全提问</option>
<option value="1">母亲的名字</option>
<option value="2">爷爷的名字</option>
<option value="3">父亲出生的城市</option>
<option value="4">您其中一位老师的名字</option>
<option value="5">您个人计算机的型号</option>
<option value="6">您最喜欢的餐馆名称</option>
<option value="7">驾驶执照的最后四位数字</option>
</select>
</div>
<p><input type="text" name="answer" id="answer" style="display:none" autocomplete="off" size="36" class="txt" tabindex="1" /></p>
</div>
<div class="logininfo multinfo">
<? if($discuz_uid) { ?>
<h4><?=$discuz_userss?>, <a href="javascript:;" onclick="ajaxget('float_register.php?action=logout&formhash=<?=FORMHASH?>', 'returnmessage', 'returnmessage');doane(event);">退出</a></h4>
<p><? echo discuz_uc_avatar($discuz_uid, 'small');; ?></p>
<? } else { ?>
<h4>没有帐号?<a href="<?=$regname?>" onclick="floatwin('close_login');floatwin('open_register', this.href, 600, 400, '600,0');return false;" title="注册帐号"><?=$reglinkname?></a></h4>
<p>忘记密码, <a href="javascript:;" onclick="display('loginform');display('loginfield_selectinput');<? if($secqaacheck || $seccodecheck) { ?>display('seccodelayer');<? } ?>pagescroll.right()" title="找回密码">找回密码</a></p>
<? } ?>
<p>无法登录,<a href="javascript:;" onclick="ajaxget('float_register.php?action=clearcookies&formhash=<?=FORMHASH?>', 'returnmessage2', 'returnmessage2');doane(event);" title="清除登录状态">清除登录状态</a></p>
</div>
<p class="fsubmit">
<button class="submit" type="submit" name="loginsubmit" value="true" tabindex="1">登录</button>
<input type="checkbox" class="checkbox" name="cookietime" id="cookietime" tabindex="1" value="2592000" <?=$cookietimecheck?> /> <label for="cookietime">记住我的登录状态</label>
</p>
</form>
</div>
<div class="floatbox floatbox1">
<h3 class="float_ctrl">
<span>
<? if(!empty($infloat)) { ?><a href="javascript:;" class="float_close" onclick="floatwin('close_login')" title="关闭">关闭</a><? } ?>
</span>
</h3>
<div class="gateform">
<h3 id="returnmessage3">找回密码</h3>
<div class="loginform">
<form method="post" id="lostpwform" onsubmit="ajaxpost('lostpwform', 'returnmessage3', 'returnmessage3', 'onerror');return false;" action="member.php?action=lostpasswd&lostpwsubmit=yes&infloat=yes">
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<input type="hidden" name="handlekey" value="lostpwform" />
<label><em>用户名:</em><input type="text" name="username" size="25" value="" tabindex="1" class="txt" /></label>
<label><em>Email:</em><input type="text" name="email" size="25" value="" tabindex="1" class="txt" /></label>
<p class="fsubmit">
<em></em>
<button class="submit" type="submit" name="lostpwsubmit" value="true" tabindex="100">提交</button>
</p>
</form>
</div>
<div class="logininfo multinfo">
<h4>没有帐号?<a href="<?=$regname?>" onclick="floatwin('close_login');floatwin('open_register', this.href, 600, 400, '600,0');return false;" title="注册帐号"><?=$reglinkname?></a></h4>
<p><a href="javascript:;" onclick="pagescroll.left(1, 'display(\'loginfield_selectinput\');<? if($secqaacheck || $seccodecheck) { ?>display(\'seccodelayer\');<? } ?>display(\'loginform\');');">返回登录</a></p>
</div>
</div>
<? if($sitemessage['login']) { ?>
<div class="moreconf sitemsg">
<div class="custominfoarea">
<a href="javascript:;" onclick="display('custominfo_login')" onblur="$('custominfo_login').style.display = 'none'"><img src="<?=IMGDIR?>/info.gif" alt="帮助" /></a>
<div id="custominfo_login" class="sitenote">
<div class="cornerlayger"><? echo $sitemessage['login'][array_rand($sitemessage['login'])]; ?></div>
<div class="minicorner"></div>
</div>
</div>
</div>
<? } ?>
</div>
<div class="floatbox floatbox1">
<h3 class="float_ctrl">
<span>
<? if(!empty($infloat)) { ?><a href="javascript:;" class="float_close" onclick="floatwin('close_login')" title="关闭">关闭</a><? } ?>
</span>
</h3>
<div class="validateinfo">
<div id="messageleft"></div>
<div id="messageright"></div>
</div>
</div>
</div>
<script src="include/js/md5.js?<?=VERHASH?>" type="text/javascript" reload="1"></script>
<script type="text/javascript" reload="1">
var pwdclear = 0;
var pagescroll = new pagescroll_class('floatlayout_login', 600, 400);
loadselect('loginfield', 0, 'floatlayout_login', 1);
loadselect('questionid', 0, 'floatlayout_login', 1);
document.body.focus();
$('loginform').username.focus();
<? if($sitemessage['login'] && $sitemessage['time']) { ?>
setTimeout('display_opacity(\'custominfo_login\',100)', <?=$sitemessage['time']?>);
<? } if($pwdsafety) { ?>
var pwmd5log = new Array();
function pwmd5() {
numargs = pwmd5.arguments.length;
for(var i = 0; i < numargs; i++) {
if(!pwmd5log[pwmd5.arguments[i]] || $(pwmd5.arguments[i]).value.length != 32) {
pwmd5log[pwmd5.arguments[i]] = $(pwmd5.arguments[i]).value = hex_md5($(pwmd5.arguments[i]).value);
}
}
}
<? } ?>
function clearpwd() {
if(pwdclear) {
$('password3').value = '';
}
pwdclear = 0;
}
function messagehandle_lostpwform(key) {
if(key == 141) {
pagescroll.right();
$('messageleft').innerHTML = '<h1>取回密码的方法发送到您的信箱中,请在 3 天之内到论坛修改您的密码。</h1>';
$('messageright').innerHTML = '<h1><a href="javascript:;" onclick="floatwin(\'close_login\')">关闭</a></h1>';
}
}
</script>
<? } updatesession(); if(empty($infloat)) { ?></div>
</div></div></div>
</div><? } include template('footer'); ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_login.tpl.php
|
PHP
|
asf20
| 15,239
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); $s = ob_get_contents(); ob_end_clean(); $s = preg_replace("/([\x01-\x08\x0b-\x0c\x0e-\x1f])+/", ' ', $s); $s = str_replace(array(chr(0), ']]>'), array(' ', ']]>'), $s); ?><?=$s?>
]]></root><? exit; ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_footer_ajax.tpl.php
|
PHP
|
asf20
| 256
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/viewthread_node.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/viewthread_pay.htm', 1250692226, '2', './templates/uchome')
;?>
<div id="post_<?=$post['pid']?>">
<table id="pid<?=$post['pid']?>" summary="pid<?=$post['pid']?>" cellspacing="0" cellpadding="0">
<tr>
<td class="postauthor">
<? if($post['authorid'] && $post['username'] && !$post['anonymous']) { if($authoronleft) { ?>
<div class="postinfo">
<a target="_blank" href="space.php?uid=<?=$post['authorid']?>" style="margin-left: 20px; font-weight: 800"><?=$post['author']?></a>
</div>
<? } ?>
<div class="popupmenu_popup userinfopanel" id="userinfo<?=$post['pid']?>" style="display: none; position: absolute;<? if($authoronleft) { ?>margin-top: -11px;<? } ?>">
<div class="popavatar">
<div id="userinfo<?=$post['pid']?>_ma"></div>
<ul class="profile_side">
<li class="pm"><a href="pm.php?action=new&uid=<?=$post['authorid']?>" onclick="floatwin('open_sendpm', this.href, 600, 410);return false;" title="发短消息">发短消息</a></li>
<? if($post['msn']['1']) { ?>
<li style="text-indent:0"><a target="_blank" href="http://settings.messenger.live.com/Conversation/IMMe.aspx?invitee=<?=$post['msn']['1']?>@apps.messenger.live.com&mkt=zh-cn" title="MSN 聊天"><img style="border-style: none; margin-right: 5px; vertical-align: middle;" src="http://messenger.services.live.com/users/<?=$post['msn']['1']?>@apps.messenger.live.com/presenceimage?mkt=zh-cn" width="16" height="16" />MSN 聊天</a></li>
<? } ?>
<li class="buddy"><a href="my.php?item=buddylist&newbuddyid=<?=$post['authorid']?>&buddysubmit=yes" target="_blank" id="ajax_buddy_<?=$post['count']?>" title="加为好友" onclick="ajaxmenu(event, this.id, 3000, 0)">加为好友</a></li>
</ul>
</div>
<div class="popuserinfo">
<p>
<a href="space.php?uid=<?=$post['authorid']?>" target="_blank"><?=$post['author']?></a>
<? if($post['nickname']) { ?><em>(<?=$post['nickname']?>)</em><? } if($vtonlinestatus && $post['authorid']) { if(($vtonlinestatus == 2 && $onlineauthors[$post['authorid']]) || ($vtonlinestatus == 1 && ($timestamp - $post['lastactivity'] <= 10800) && !$post['invisible'])) { ?>
<em>当前在线
<? } else { ?>
<em>当前离线
<? } ?>
</em>
<? } ?>
</p>
<? if($post['customstatus']) { ?><p class="customstatus"><?=$post['customstatus']?></p><? } ?>
<dl class="s_clear"><? @eval('echo "'.$customauthorinfo['2'].'";'); ?></dl>
<div class="imicons">
<? if($post['qq']) { ?><a href="http://wpa.qq.com/msgrd?V=1&Uin=<?=$post['qq']?>&Site=<?=$bbname?>&Menu=yes" target="_blank" title="QQ"><img src="<?=IMGDIR?>/qq.gif" alt="QQ" /></a><? } if($post['icq']) { ?><a href="http://wwp.icq.com/scripts/search.dll?to=<?=$post['icq']?>" target="_blank" title="ICQ"><img src="<?=IMGDIR?>/icq.gif" alt="ICQ" /></a><? } if($post['yahoo']) { ?><a href="http://edit.yahoo.com/config/send_webmesg?.target=<?=$post['yahoo']?>&.src=pg" target="_blank" title="Yahoo"><img src="<?=IMGDIR?>/yahoo.gif" alt="Yahoo!" /></a><? } if($post['taobao']) { ?><a href="javascript:;" onclick="window.open('http://amos.im.alisoft.com/msg.aw?v=2&uid='+encodeURIComponent('<?=$post['taobaoas']?>')+'&site=cntaobao&s=2&charset=utf-8')" title="taobao"><img src="<?=IMGDIR?>/taobao.gif" alt="阿里旺旺" /></a><? } if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$post['authorid']?>" target="_blank" title="个人空间"><img src="<?=IMGDIR?>/home.gif" alt="个人空间" /></a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$post['authorid']?>" target="_blank" title="个人空间"><img src="<?=IMGDIR?>/home.gif" alt="个人空间" /></a>
<? } if($post['site']) { ?><a href="<?=$post['site']?>" target="_blank" title="查看个人网站"><img src="<?=IMGDIR?>/forumlink.gif" alt="查看个人网站" /></a><? } ?>
<a href="space.php?uid=<?=$post['authorid']?>" target="_blank" title="查看详细资料"><img src="<?=IMGDIR?>/userinfo.gif" alt="查看详细资料" /></a>
</div>
<div id="avatarfeed"><span id="threadsortswait"></span></div>
</div>
</div>
<? } ?>
<?=$post['newpostanchor']?> <?=$post['lastpostanchor']?>
<? if($post['authorid'] && $post['username'] && !$post['anonymous']) { ?>
<div id="userinfo<?=$post['pid']?>_a">
<? if($bannedmessages & 2 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1))) { ?>
<div class="avatar">头像被屏蔽</div>
<? } elseif($post['avatar'] && $showavatars) { ?>
<div class="avatar" onmouseover="showauthor(this, 'userinfo<?=$post['pid']?>')"><a href="space.php?uid=<?=$post['authorid']?>" target="_blank"><?=$post['avatar']?></a></div>
<? } ?>
<p><em><?=$post['authortitle']?></em></p>
</div>
<p><? showstars($post['stars']); ?></p>
<? if($customauthorinfo['1']) { ?><dl class="profile s_clear"><? @eval('echo "'.$customauthorinfo['1'].'";'); ?></dl><? } if($post['medals']) { ?><p><? if(is_array($post['medals'])) { foreach($post['medals'] as $medal) { ?><img src="images/common/<?=$medal['image']?>" alt="<?=$medal['name']?>" title="<?=$medal['name']?>" /><? } } ?></p>
<? } } else { ?>
<div class="avatar">
<? if(!$post['authorid']) { ?>
<a href="javascript:;">游客 <em><?=$post['useip']?></em></a>
<? } elseif($post['authorid'] && $post['username'] && $post['anonymous']) { if($forum['ismoderator']) { ?><a href="space.php?uid=<?=$post['authorid']?>" target="_blank">匿名</a><? } else { ?>匿名<? } } else { ?>
<?=$post['author']?> <em>该用户已被删除</em>
<? } ?>
</div>
<? } if($allowedituser || $allowbanuser || ($forum['ismoderator'] && $allowviewip && ($thread['digest'] >= 0 || !$post['first']))) { ?>
<hr class="shadowline" />
<p>
<? if($forum['ismoderator'] && $allowviewip && ($thread['digest'] >= 0 || !$post['first'])) { ?>
<a href="javascript:;" onclick="ajaxget('topicadmin.php?action=getip&fid=<?=$fid?>&tid=<?=$tid?>&pid=<?=$post['pid']?>', 'ajax_getip_<?=$post['count']?>');doane(event)" title="查看 IP" class="lightlink">IP</a>
<? } if($allowedituser) { ?>
<a href="<? if($adminid == 1) { ?>admincp.php?action=members&username=<?=$post['usernameenc']?>&submit=yes&frames=yes<? } else { ?>modcp.php?action=members&op=edit&uid=<?=$post['authorid']?><? } ?>" target="_blank" class="lightlink">编辑此人</a>
<? } if($allowbanuser) { if($adminid == 1) { ?><a href="admincp.php?action=members&operation=ban&username=<?=$post['usernameenc']?>&frames=yes" target="_blank" class="lightlink">禁止此人</a>
<? } else { ?><a href="modcp.php?action=members&op=ban&uid=<?=$post['authorid']?>" target="_blank" class="lightlink">禁止此人</a>
<? } } ?>
</p>
<p id="ajax_getip_<?=$post['count']?>"></p>
<? } ?>
</td>
<td class="postcontent">
<div class="postinfo">
<strong><a title="复制本帖链接" id="postnum<?=$post['pid']?>" href="javascript:;" onclick="setcopy('<?=$boardurl?>viewthread.php?tid=<?=$tid?>&page=<?=$page?><?=$fromuid?>#pid<?=$post['pid']?>', '帖子地址已经复制到剪贴板')"><? if(!empty($postno[$post['number']])) { ?><?=$postno[$post['number']]?><? } else { ?><em><?=$post['number']?></em><?=$postno['0']?><? } ?></a></strong>
<div class="posterinfo">
<div class="pagecontrol">
<? if($post['first']) { ?>
<a href="viewthread.php?action=printable&tid=<?=$tid?>" target="_blank" class="print left">打印</a>
<? if(MSGBIGSIZE) { ?>
<div class="msgfsize right">
<label>字体大小: </label><small onclick="$('postlist').className='mainbox viewthread'" title="正常">t</small><big onclick="$('postlist').className='mainbox viewthread t_bigfont'" title="放大">T</big>
</div>
<? } } elseif($thread['special'] == 5) { ?>
<span class="debatevote poststand_<? echo intval($post['stand']); ?>">
<label><? if($post['stand'] == 1) { ?><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=1" title="只看正方">正方</a>
<? } elseif($post['stand'] == 2) { ?><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=2" title="只看反方">反方</a>
<? } else { ?><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=0" title="只看中立">中立</a><? } ?>
</label>
<? if($post['stand']) { ?>
<span><a href="misc.php?action=debatevote&tid=<?=$tid?>&pid=<?=$post['pid']?>" id="voterdebate_<?=$post['pid']?>" onclick="ajaxmenu(event, this.id)">支持我</a><?=$post['voters']?></span>
<? } ?>
</span>
<? } ?>
</div>
<div class="authorinfo">
<? if($_DCACHE['groupicon'][$post['groupid']]) { ?>
<img class="authicon" id="authicon<?=$post['pid']?>" src="<?=$_DCACHE['groupicon'][$post['groupid']]?>" onclick="showauthor(this, 'userinfo<?=$post['pid']?>')" />
<? } else { ?>
<img class="authicon" id="authicon<?=$post['pid']?>" src="images/common/online_member.gif" onclick="showauthor(this, 'userinfo<?=$post['pid']?>');" />
<? } if($post['authorid'] && !$post['anonymous']) { if(!$authoronleft) { ?><a href="space.php?uid=<?=$post['authorid']?>" class="posterlink" target="_blank"><?=$post['author']?></a><? } ?><em id="authorposton<?=$post['pid']?>">发表于 <?=$post['dateline']?></em>
<? if(!$authorid) { ?>
| <a href="viewthread.php?tid=<?=$post['tid']?>&page=<?=$page?>&authorid=<?=$post['authorid']?>" rel="nofollow">只看该作者</a>
<? } else { ?>
| <a href="viewthread.php?tid=<?=$post['tid']?>&page=<?=$page?>" rel="nofollow">显示全部帖子</a>
<? } } elseif($post['authorid'] && $post['username'] && $post['anonymous']) { ?>
匿名 <em id="authorposton<?=$post['pid']?>">发表于 <?=$post['dateline']?></em>
<? } elseif(!$post['authorid'] && !$post['username']) { ?>
游客 <em id="authorposton<?=$post['pid']?>">发表于 <?=$post['dateline']?></em>
<? } ?>
</div>
</div>
</div>
<div class="defaultpost">
<? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['thread2'][$post['count']])) { ?><div class="ad_textlink2" id="ad_thread2_<?=$post['count']?>"><?=$advlist['thread2'][$post['count']]?></div><? } else { ?><div id="ad_thread2_<?=$post['count']?>"></div><? } if($admode && empty($insenz['hardadstatus']) && !empty($advlist['thread3'][$post['count']])) { ?><div class="ad_pip" id="ad_thread3_<?=$post['count']?>"><?=$advlist['thread3'][$post['count']]?></div><? } else { ?><div id="ad_thread3_<?=$post['count']?>"></div><? } ?><div id="ad_thread4_<?=$post['count']?>"></div>
<div class="postmessage <? if($post['first']) { ?>firstpost<? } ?>">
<? if($post['warned']) { ?>
<span class="postratings"><a href="misc.php?action=viewwarning&tid=<?=$tid?>&uid=<?=$post['authorid']?>" title="受到警告" onclick="floatwin('open_viewwarning', this.href, 600, 410);return false;"><img src="<?=IMGDIR?>/warning.gif" border="0" /></a></span>
<? } if($thread['special'] == 3 && $post['first']) { if($thread['price'] > 0) { ?>
<cite class="re_unsolved">未解决</cite>
<? } elseif($thread['price'] < 0) { ?>
<cite class="re_solved">已解决</cite>
<? } if($activityclose) { ?><cite class="re_solved">活动已结束</cite><? } } if($post['first']) { ?>
<div id="threadtitle">
<? if($thread['readperm']) { ?><em>所需阅读权限 <?=$thread['readperm']?></em><? } ?>
<h1><?=$thread['subject']?></h1>
<? if($thread['tags'] || $relatedkeywords) { ?>
<div class="threadtags">
<? if($thread['tags']) { ?><?=$thread['tags']?><? } if($relatedkeywords) { ?><span class="postkeywords"><?=$relatedkeywords?></span><? } ?>
</div>
<? } ?>
</div>
<? if($thread['special'] == 2 && !$post['message'] && $post['authorid'] == $discuz_uid) { ?>
<p>
<a href="post.php?action=edit&fid=<?=$fid?>&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_edit', this.href, 600, 410, '600,0');return false;">添加柜台介绍</a>
</p>
<? } } elseif($post['subject']) { ?>
<h2><?=$post['subject']?></h2>
<? } if($adminid != 1 && $bannedmessages & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))) { ?>
<div class="locked">提示: <em>作者被禁止或删除 内容自动屏蔽</em></div>
<? } elseif($adminid != 1 && $post['status'] & 1) { ?>
<div class="locked">提示: <em>该帖被管理员或版主屏蔽</em></div>
<? } elseif($post['first'] && $threadpay) { if($thread['freemessage']) { ?>
<div id="postmessage_<?=$pid?>" class="t_msgfont"><?=$thread['freemessage']?></div>
<? } ?>
<div class="locked">
<a href="javascript:;" class="right viewpay" title="购买主题" onclick="floatwin('open_pay', 'misc.php?action=pay&tid=<?=$tid?>&pid=<?=$post['pid']?>', 600, 410)">购买主题</a>
<em class="right">
已购买人数:<?=$thread['payers']?> <a href="misc.php?action=viewpayments&tid=<?=$tid?>" onclick="floatwin('open_pay', this.href, 600, 410);return false;">记录</a>
</em>
<? if($thread['price'] > 0) { ?>本主题需向作者支付 <strong><?=$thread['price']?> <?=$extcredits[$creditstransextra['1']]['title']?> </strong> 才能浏览<? } if($thread['endtime']) { ?>本主题购买截止日期为 <?=$thread['endtime']?>,到期后将免费<? } ?>
</div>
</div><? } else { if($bannedmessages & 1 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5))) { ?>
<div class="locked">提示: <em>作者被禁止或删除 内容自动屏蔽,只有管理员可见</em></div>
<? } elseif($post['status'] & 1) { ?>
<div class="locked">提示: <em>该帖被管理员或版主屏蔽,只有管理员可见</em></div>
<? } if($post['first']) { if($thread['price'] > 0 && $thread['special'] == 0) { ?>
<div class="locked"><em class="right"><a href="misc.php?action=viewpayments&tid=<?=$tid?>" onclick="floatwin('open_pay', this.href, 600, 410);return false;">记录</a></em>付费主题, 价格:<strong><?=$extcredits[$creditstransextra['1']]['title']?> <?=$thread['price']?> <?=$extcredits[$creditstransextra['1']]['unit']?> </strong></div>
<? } if($typetemplate) { ?>
<?=$typetemplate?>
<? } elseif($optionlist && !($post['status'] & 1) && !$threadpay) { ?>
<div class="typeoption">
<h4><?=$forum['threadsorts']['types'][$thread['sortid']]?></h4>
<table summary="分类信息" cellpadding="0" cellspacing="0" class="formtable datatable"><? if(is_array($optionlist)) { foreach($optionlist as $option) { ?><tr class="<? echo swapclass('colplural'); ?>">
<th><?=$option['title']?></th>
<td><? if($option['value']) { ?><?=$option['value']?><? } else { ?>-<? } ?></td>
</tr><? } } ?></table>
</div>
<? } if($thread['special'] == 1) { include template('viewthread_poll'); } elseif($thread['special'] == 3) { include template('viewthread_reward_price'); } elseif($thread['special'] == 4) { include template('viewthread_activity_info'); } elseif($thread['special'] == 5) { include template('viewthread_debate_umpire'); } elseif($thread['special'] == 6) { include template('viewthread_video'); } } ?>
<div class="<? if(!$thread['special']) { ?>t_msgfontfix<? } else { ?>specialmsg<? } ?>">
<table cellspacing="0" cellpadding="0"><tr><td class="t_msgfont" id="postmessage_<?=$post['pid']?>"><?=$post['message']?></td></tr></table>
<? if($post['first']) { if($thread['special'] == 2) { include template('viewthread_trade'); } elseif($thread['special'] == 3) { if($bapid) { $bestpost = $postlist[$bapid];unset($postlist[$bapid]); } include template('viewthread_reward'); } elseif($thread['special'] == 4) { include template('viewthread_activity'); } elseif($thread['special'] == 5) { include template('viewthread_debate'); } } if($post['attachment']) { ?>
<div class="locked">附件: <em>您所在的用户组无法下载或查看附件</em></div>
<? } elseif($hideattach[$post['pid']] && $post['attachments']) { ?>
<div class="locked">附件: <em>本帖附件需要回复才可下载或查看</em></div>
<? } elseif($post['imagelist'] || $post['attachlist']) { ?>
<div class="postattachlist">
<? if($post['imagelist']) { ?>
<?=$post['imagelist']?>
<? } if($post['attachlist']) { ?>
<?=$post['attachlist']?>
<? } ?>
</div>
<? } if($relatedthreadlist && !$qihoo['relate']['position'] && $post['first']) { ?>
<div class="tagrelated">
<h3><em><a href="http://search.qihoo.com/sint/qusearch.html?kw=<?=$searchkeywords?>&sort=rdate&ics=<?=$charset?>&domain=<?=$site?>&tshow=1" target="_blank">更多相关主题</a></em>相关主题</h3>
<ul><? if(is_array($relatedthreadlist)) { foreach($relatedthreadlist as $key => $threads) { if($threads['tid'] != $tid) { ?>
<li>
<? if(!$threads['insite']) { ?>
[站外] <a href="topic.php?url=<? echo urlencode($threads['tid']); ?>&md5=<? echo md5($threads['tid']); ?>&statsdata=<?=$fid?>||<?=$tid?>" target="_blank"><?=$threads['title']?></a>
[ <a href="post.php?action=newthread&fid=<?=$fid?>&extra=<?=$extra?>&url=<? echo urlencode($threads['tid']); ?>&md5=<? echo md5($threads['tid']); ?>&from=direct" style="color: #090" target="_blank">转帖</a> ]
<? } else { ?>
<a href="viewthread.php?tid=<?=$threads['tid']?>&statsdata=<?=$fid?>||<?=$tid?>" target="_blank"><?=$threads['title']?></a>
<? } ?>
</li>
<? } } } ?></ul>
</div>
<? } if($post['first'] && $relatedtagstatus) { ?>
<div id="relatedtags"></div>
<script src="tag.php?action=relatetag&rtid=<?=$tid?>" type="text/javascript" reload="1"></script>
<? } ?>
</div>
<? if(!empty($post['ratelog'])) { ?>
<dl class="newrate">
<dt>
<? if(!empty($postlist[$post['pid']]['totalrate'])) { ?>
<strong><a href="misc.php?action=viewratings&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_viewratings', this.href, 600, 410);return false;" title="本帖最近评分记录"><? echo count($postlist[$post['pid']]['totalrate']);; ?></a></strong>
<p>评分次数</p>
<? } ?>
</dt>
<dd>
<ul class="s_clear">
<div id="post_rate_<?=$post['pid']?>"></div><? if(is_array($post['ratelog'])) { foreach($post['ratelog'] as $uid => $ratelog) { ?><li>
<div id="rate_<?=$post['pid']?>_<?=$uid?>_menu" class="attach_popup" style="display: none;">
<p class="cornerlayger"><?=$ratelog['reason']?> <? if(is_array($ratelog['score'])) { foreach($ratelog['score'] as $id => $score) { if($score > 0) { ?>
<em><?=$extcredits[$id]['title']?> + <?=$score?> <?=$extcredits[$id]['unit']?></em>
<? } else { ?>
<?=$extcredits[$id]['title']?> <?=$score?> <?=$extcredits[$id]['unit']?>
<? } } } ?></p>
<p class="minicorner"></p>
</div>
<p id="rate_<?=$post['pid']?>_<?=$uid?>" onmouseover="showMenu(this.id,false,2)" class="rateavatar"><a href="space.php?uid=<?=$uid?>" target="_blank"><? echo discuz_uc_avatar($uid, 'small');; ?></a></p>
<p><a href="space.php?uid=<?=$uid?>" target="_blank"><?=$ratelog['username']?></a></p>
</li><? } } ?></ul>
</dd>
</dl>
<? } else { ?>
<div id="post_rate_div_<?=$post['pid']?>"></div>
<? } } if($post['first']) { if($lastmod['modaction']) { ?><div class="modact"><a href="misc.php?action=viewthreadmod&tid=<?=$tid?>" title="主题操作记录" onclick="floatwin('open_viewthreadmod', this.href, 600, 410);return false;">本主题由 <?=$lastmod['modusername']?> 于 <?=$lastmod['moddateline']?> <?=$lastmod['modaction']?></a></div><? } if($lastmod['magicname']) { ?><div class="modact"><a href="misc.php?action=viewthreadmod&tid=<?=$tid?>" title="主题操作记录" onclick="floatwin('open_viewthreadmod', this.href, 600, 410);return false;">本主题由 <?=$lastmod['modusername']?> 于 <?=$lastmod['moddateline']?> 使用 <?=$lastmod['magicname']?> 道具</a></div><? } ?>
<div class="useraction">
<a id="ajax_favorite" <? if($discuz_uid) { ?>href="my.php?item=favorites&tid=<?=$tid?>" onclick="ajaxmenu(event, this.id, 3000, 0)"<? } else { ?>href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;"<? } ?>>收藏</a>
<a id="emailfriend" href="misc.php?action=emailfriend&tid=<?=$tid?>" onclick="floatwin('open_emailfriend', this.href, 250, <? if($discuz_uid) { ?>380<? } else { ?>200<? } ?>);return false;">分享</a>
<a id="ratelink" <? if($discuz_uid) { ?>href="misc.php?action=rate&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_rate', this.href, 250, 270);return false;"<? } else { ?>href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;"<? } ?>>评分</a>
</div>
<? } ?>
</div>
</div>
<? if($post['signature'] && ($bannedmessages & 4 && (($post['authorid'] && !$post['username']) || ($post['groupid'] == 4 || $post['groupid'] == 5) || ($post['status'] & 1)))) { ?>
<div class="signatures">
<table cellspacing="0" cellpadding="0">
<tr>
<td>签名被屏蔽</td>
</tr>
</table>
</div>
<? } elseif($post['signature'] && !$post['anonymous'] && $showsignatures) { ?>
<div class="signatures" style="maxHeightIE: <?=$maxsigrows?>px;">
<table cellspacing="0" cellpadding="0">
<tr>
<td>
<?=$post['signature']?>
</td>
</tr>
</table>
</div>
<? } if($admode && empty($insenz['hardadstatus']) && !empty($advlist['thread1'][$post['count']])) { ?><div class="ad_textlink1" id="ad_thread1_<?=$post['count']?>"><?=$advlist['thread1'][$post['count']]?></div><? } else { ?><div id="ad_thread1_<?=$post['count']?>"></div><? } ?>
</td>
</tr>
<tr>
<td class="postauthor"></td>
<td class="postcontent">
<div class="postactions">
<? if($forum['ismoderator'] && ($allowdelpost || $allowbanpost)) { ?>
<span class="right">
<label for="manage<?=$post['pid']?>">
<? if($post['first'] && $thread['digest'] == -1) { ?>
<input type="checkbox" id="manage<?=$post['pid']?>" disabled="disabled" />
<? } else { ?>
<input type="checkbox" id="manage<?=$post['pid']?>" <? if(!empty($modclick)) { ?>checked="checked" <? } ?>onclick="pidchecked(this);modclick(this, <?=$post['pid']?>)" value="<?=$post['pid']?>" />
<? } ?>
管理
</label>
</span>
<? } ?>
<div class="postact s_clear">
<em>
<a class="fastreply" href="post.php?action=reply&fid=<?=$fid?>&tid=<?=$tid?>&reppost=<?=$post['pid']?>&extra=<?=$extra?>&page=<?=$page?>" onclick="floatwin('open_reply', this.href, 600, 410, '600,0');return false;">回复</a>
<a class="repquote" href="post.php?action=reply&fid=<?=$fid?>&tid=<?=$tid?>&repquote=<?=$post['pid']?>&extra=<?=$extra?>&page=<?=$page?>" onclick="floatwin('open_reply', this.href, 600, 410, '600,0');return false;">引用</a>
<? if((($forum['ismoderator'] && $alloweditpost && !(in_array($post['adminid'], array(1, 2, 3)) && $adminid > $post['adminid'])) || ($forum['alloweditpost'] && $discuz_uid && $post['authorid'] == $discuz_uid)) && ($thread['digest'] >= 0 || !$post['first'])) { ?>
<a class="editpost" href="post.php?action=edit&fid=<?=$fid?>&tid=<?=$tid?>&pid=<?=$post['pid']?>"<? if(!$post['first'] || !$threadsort && !$thread['special']) { ?> onclick="floatwin('open_edit', this.href, 600, 410, '600,0');return false;"<? } ?>>编辑</a>
<? } ?>
</em>
<p>
<? if($thread['special'] == 3 && ($forum['ismoderator'] || $thread['authorid'] == $discuz_uid) && $discuz_uid != $post['authorid'] && $post['authorid'] != $thread['authorid'] && $post['first'] == 0 && $thread['price'] > 0) { ?>
<a href="javascript:;" onclick="setanswer(<?=$post['pid']?>)">最佳答案</a>
<? } if($post['first']) { ?>
<a href="my.php?item=subscriptions&subadd=<?=$tid?>" id="ajax_subscription" onclick="ajaxmenu(event, this.id, 3000, null, 0)">订阅</a>
<? } elseif($raterange && $post['authorid']) { ?>
<a href="misc.php?action=rate&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_rate', this.href, 250, 270);return false;">评分</a>
<? } if($post['rate'] && $forum['ismoderator']) { ?>
<a href="misc.php?action=removerate&tid=<?=$tid?>&pid=<?=$post['pid']?>&page=<?=$page?>" onclick="floatwin('open_rate', this.href, 600, 410);return false;">撤销评分</a>
<? } if(!$forum['ismoderator'] && $discuz_uid && $reportpost && $discuz_uid != $post['authorid']) { ?>
<a href="misc.php?action=report&fid=<?=$fid?>&tid=<?=$tid?>&pid=<?=$post['pid']?>" onclick="floatwin('open_report', this.href, 250, 215);doane(event);">报告</a>
<? } if($discuz_uid && $magicstatus) { ?>
<a href="magic.php?action=usemagic&type=1&pid=<?=$post['pid']?>" onclick="floatwin('open_magics', this.href, 250, 215);doane(event);">道具</a>
<? } ?>
<a href="javascript:;" onclick="scrollTo(0,0);">TOP</a>
</p>
</div>
</div>
</td>
</tr>
<tr class="threadad">
<td class="postauthor"></td>
<td class="adcontent">
<? if($post['first'] && $thread['replies']) { if($admode && empty($insenz['hardadstatus']) && !empty($advlist['interthread'])) { ?><div class="ad_column" id="ad_interthread"><?=$advlist['interthread']?><? } else { ?><div id="ad_interthread"><? } ?></div><? } ?>
</td>
</tr>
<? if($post['first'] && $thread['special'] == 5 && $stand != '') { ?>
<tr class="threadad stand_select">
<td class="postauthor" style="background: #EBF2F8;"></td>
<td>
<div class="itemtitle s_clear">
<h2>按立场筛选: </h2>
<ul>
<li><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>" hidefocus="true"><span>全部</span></a></li>
<li <? if($stand == 1) { ?>class="current"<? } ?>><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=1" hidefocus="true"><span>正方</span></a></li>
<li <? if($stand == 2) { ?>class="current"<? } ?>><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=2" hidefocus="true"><span>反方</span></a></li>
<li <? if($stand == 0) { ?>class="current"<? } ?>><a href="viewthread.php?tid=<?=$tid?>&extra=<?=$extra?>&stand=0" hidefocus="true"><span>中立</span></a></li>
</ul>
</div>
<hr class="solidline" />
</td>
</tr>
<? } ?>
</table>
<? if($aimgs[$post['pid']]) { ?>
<script type="text/javascript" reload="1">aimgcount[<?=$post['pid']?>] = [<? echo implode(',', $aimgs[$post['pid']]);; ?>];attachimgshow(<?=$post['pid']?>);</script>
<? } ?>
</div>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_viewthread_node.tpl.php
|
PHP
|
asf20
| 26,064
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/discuz.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/header.htm', 1250675105, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/discuz.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/footer.htm', 1250675105, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/discuz.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/css_script.htm', 1250675105, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/discuz.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/jsmenu.htm', 1250675105, '1', './templates/default')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> » 首页</div>
<? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['text'])) { ?><div class="ad_text" id="ad_text"><table summary="Text Ad" cellpadding="0" cellspacing="1"><?=$advlist['text']?></table></div><? } else { ?><div id="ad_text"></div><? } ?>
<div id="wrap"<? if($infosidestatus['allow'] < 2) { ?> class="wrap s_clear"<? } else { ?> class="wrap with_side s_clear"<? } ?>>
<? if($infosidestatus['allow'] == 2) { ?>
<a id="sidebar_img" href="javascript:;" onclick="sidebar_collapse(['打开边栏', '关闭边栏']);" class="<?=$collapseimg['sidebar']?>"><? if($collapseimg['sidebar'] == 'collapsed_yes') { ?>打开边栏<? } else { ?>关闭边栏<? } ?></a>
<? } elseif($infosidestatus['allow'] == 1) { ?>
<a id="sidebar_img" href="javascript:;" onclick="sidebar_collapse(['', '关闭边栏']);" class="collapsed_yes">打开边栏</a>
<? } ?>
<div class="main"><div class="content">
<div class="pages_btns s_clear">
<span class="postbtn"><a href="misc.php?action=nav" onclick="floatwin('open_nav', this.href, 600, 410);return false;">发帖</a></span>
<? if(!$discuz_uid) { ?>
<p>你可以<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="lightlink">注册</a>一个帐号,并以此<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;" class="lightlink">登录</a>,以浏览更多精彩内容,并随时发布观点,与大家交流。</p>
<? } else { ?>
欢迎回来 <?=$discuz_userss?>, <? if($lastvisit > 0) { ?>你上次访问时间是在 <?=$lastvisit?>, <? } ?><a href="search.php?srchfrom=<?=$newthreads?>&searchsubmit=yes" class="lightlink">查看新帖</a>, <a href="member.php?action=markread" id="ajax_markread" onclick="ajaxmenu(event, this.id)" class="lightlink">标记已读</a>
<? } ?>
</div>
<div class="foruminfo s_clear">
<p class="right forumcount">
今日: <em><?=$todayposts?></em>, 昨日: <em><?=$postdata['0']?></em>, 会员: <em><?=$totalmembers?></em>
</p>
<? if(empty($gid) && $announcements) { ?>
<div id="ann" onmouseover="annstop = 1" onmouseout="annstop = 0">
<dl>
<dt>公告:</dt>
<dd>
<div id="annbody"><ul id="annbodylis"><?=$announcements?></ul></div>
</dd>
</dl>
</div>
<script type="text/javascript">
var anndelay = 3000;
var annst = 0;
var annstop = 0;
var annrowcount = 0;
var anncount = 0;
var annlis = $('annbody').getElementsByTagName("LI");
var annrows = new Array();
var annstatus;
function announcementScroll() {
if(annstop) {
annst = setTimeout('announcementScroll()', anndelay);
return;
}
if(!annst) {
var lasttop = -1;
for(i = 0;i < annlis.length;i++) {
if(lasttop != annlis[i].offsetTop) {
if(lasttop == -1) {
lasttop = 0;
}
annrows[annrowcount] = annlis[i].offsetTop - lasttop;
annrowcount++;
}
lasttop = annlis[i].offsetTop;
}
if(annrows.length == 1) {
$('ann').onmouseover = $('ann').onmouseout = null;
} else {
annrows[annrowcount] = annrows[1];
$('annbodylis').innerHTML += $('annbodylis').innerHTML;
annst = setTimeout('announcementScroll()', anndelay);
}
annrowcount = 1;
return;
}
if(annrowcount >= annrows.length) {
$('annbody').scrollTop = 0;
annrowcount = 1;
annst = setTimeout('announcementScroll()', anndelay);
} else {
anncount = 0;
announcementScrollnext(annrows[annrowcount]);
}
}
function announcementScrollnext(time) {
$('annbody').scrollTop++;
anncount++;
if(anncount != time) {
annst = setTimeout('announcementScrollnext(' + time + ')', 10);
} else {
annrowcount++;
annst = setTimeout('announcementScroll()', anndelay);
}
}
</script>
<? } ?>
</div>
<!-- 首页五格代码开始 -->
<div class="mainbox forumlist" style="padding:0;">
<table cellspacing="0" cellpadding="0">
<thead class="category">
<tr>
<td align="center" style="padding:0 1px 0 0"><h3>≡ 论坛图片 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 最新帖子 ≡</h3></td>
<td align="center" style="padding:0 1px 0 1px"><h3>≡ 最新回复 ≡</h3></td>
<td align="center" style="padding:0"><h3>≡ 本周热门 ≡</h3></td>
<td></td>
</tr>
</thead>
<tr>
<td width="24%">
<!--<script src="pic.php" type="text/javascript"></script>-->
</td>
<td width="25%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
<td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
<? if(is_array($new_post_threadlist)) { foreach($new_post_threadlist as $nthread) { ?> <? if($nthread['replies']) { ?>
<div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=<?=$nthread['tid']?>" <?=$nthread['highlight']?> title='最新帖子 <?="\n"?>所在论坛: <?=$nthread['forumname']?><?="\n"?>主题标题: <?=$nthread['subject']?> <?="\n"?>主题作者: <?=$nthread['author']?><?="\n"?>发表时间: <?=$nthread['date']?><?="\n"?>浏览次数: <?=$nthread['views']?> 次 <?="\n"?>回复次数: <?=$nthread['replies']?> 次<?="\n"?>最后回复: <?=$nthread['lastreplytime']?><?="\n"?>最后发表: <?=$nthread['lastposter']?>'><?=$nthread['view_subject']?></a></div>
<? } else { ?>
<div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=<?=$nthread['tid']?>" <?=$nthread['highlight']?> title='最新帖子 <?="\n"?>所在论坛: <?=$nthread['forumname']?><?="\n"?>主题标题: <?=$nthread['subject']?> <?="\n"?>主题作者: <?=$nthread['author']?><?="\n"?>发表时间: <?=$nthread['date']?><?="\n"?>浏览次数: <?=$nthread['views']?> 次 <?="\n"?>回复次数: <?=$nthread['replies']?> 次<?="\n"?>最后回复: 暂时没有回复'><?=$nthread['view_subject']?></a></div>
<? } ?>
<? } } ?> </td>
</tr>
</table>
</td>
<td width="25%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
<td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
<? if(is_array($new_reply_threadlist)) { foreach($new_reply_threadlist as $rthread) { ?> <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=<?=$rthread['tid']?>" <?=$rthread['highlight']?> title='最新回复 <?="\n"?>所在论坛: <?=$rthread['forumname']?><?="\n"?>主题标题: <?=$rthread['subject']?><?="\n"?>主题作者: <?=$rthread['author']?><?="\n"?>发表时间: <?=$rthread['date']?><?="\n"?>浏览次数: <?=$rthread['views']?> 次<?="\n"?>回复次数: <?=$rthread['replies']?> 次<?="\n"?>最后回复: <?=$rthread['lastreplytime']?><?="\n"?>最后发表: <?=$rthread['lastposter']?>'><?=$rthread['view_subject']?></a></div>
<? } } ?> </td>
</tr>
</table>
</td>
<td width="26%">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td width="24" style="padding:0;border-top:0px;"><img src="images/list.gif" border="0" /></td>
<td background="images/listbg.gif" style="line-height:20px;padding:0;border-top:0px;background-repeat: repeat-y" width="100%">
<? if(is_array($new_hot_threadlist)) { foreach($new_hot_threadlist as $mthread) { ?> <div style="overflow: hidden;height: 20px;width: 100%;"><a href="viewthread.php?tid=<?=$mthread['tid']?>" <?=$mthread['highlight']?> title='本周热门 <?="\n"?>所在论坛: <?=$mthread['forumname']?><?="\n"?>主题标题: <?=$mthread['subject']?><?="\n"?>主题作者: <?=$mthread['author']?><?="\n"?>发表时间: <?=$mthread['date']?><?="\n"?>浏览次数: <?=$mthread['views']?> 次<?="\n"?>回复次数: <?=$mthread['replies']?> 次<?="\n"?>最后回复: <?=$mthread['lastreplytime']?><?="\n"?>最后发表: <?=$mthread['lastposter']?>'><?=$mthread['view_subject']?></a></div>
<? } } ?> </td>
</tr>
</table>
</td>
<td>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr valign="top">
<td></td>
<td>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="2" cellpadding="2">
<tr>
<td><font color=red><b>Top10: </b></font><?=$poststar?></td>
</tr>
</table>
</div>
<!-- 首页五格代码结束 -->
<? if(!empty($insenz['vfstatus']) && $insenz['vfpos'] == 'first') { ?><script src="campaign.php?action=list" type="text/javascript"></script><? } $rkey=array_rand($catlist); if(is_array($catlist)) { foreach($catlist as $key => $cat) { if($cat['forumscount']) { ?>
<div class="mainbox list">
<span class="headactions">
<? if($cat['moderators']) { ?>分区版主: <?=$cat['moderators']?><? } ?>
<img id="category_<?=$cat['fid']?>_img" src="<?=IMGDIR?>/<?=$cat['collapseimg']?>" title="收起/展开" alt="收起/展开" onclick="toggle_collapse('category_<?=$cat['fid']?>');" />
</span>
<h3><a href="<?=$indexname?>?gid=<?=$cat['fid']?>"><?=$cat['name']?></a></h3>
<table id="category_<?=$cat['fid']?>" summary="category<?=$cat['fid']?>" cellspacing="0" cellpadding="0" style="<?=$collapse['category_'.$cat['fid']]?>">
<? if(!$cat['forumcolumns']) { if(is_array($cat['forums'])) { foreach($cat['forums'] as $forumid) { $forum=$forumlist[$forumid]; ?><tbody id="forum<?=$forum['fid']?>">
<tr>
<th<?=$forum['folder']?>>
<?=$forum['icon']?>
<div class="left">
<h2><a href="forumdisplay.php?fid=<?=$forum['fid']?>" <? if($forum['redirect']) { ?>target="_blank"<? } ?>><?=$forum['name']?></a><? if($forum['todayposts'] && !$forum['redirect']) { ?><em> (今日: <strong><?=$forum['todayposts']?></strong>)</em><? } ?></h2>
<? if($forum['description']) { ?><p><?=$forum['description']?></p><? } if($forum['subforums']) { ?><p>子版块: <?=$forum['subforums']?></p><? } if($forum['moderators']) { if($moddisplay == 'flat') { ?><p>版主: <?=$forum['moderators']?></p><? } else { ?><span class="dropmenu" id="mod<?=$forum['fid']?>" onmouseover="showMenu(this.id)">版主</span><ul class="moderators popupmenu_popup" id="mod<?=$forum['fid']?>_menu" style="display: none"><?=$forum['moderators']?></ul><? } } ?>
</div>
</th>
<td class="forumnums">
<? if($forum['redirect']) { ?>N/A<? } else { ?><em><?=$forum['threads']?></em> / <?=$forum['posts']?><? } ?>
</td>
<td class="forumlast">
<? if($forum['permission'] == 1) { ?>
私密版块
<? } else { if($forum['redirect']) { ?>
<a href="forumdisplay.php?fid=<?=$forum['fid']?>">链接到外部地址</a>
<? } elseif(is_array($forum['lastpost'])) { ?>
<p><a href="redirect.php?tid=<?=$forum['lastpost']['tid']?>&goto=lastpost#lastpost"><? echo cutstr($forum['lastpost']['subject'], 30); ?></a></p>
<cite><? if($forum['lastpost']['author']) { ?><?=$forum['lastpost']['author']?><? } else { ?>匿名<? } ?> - <?=$forum['lastpost']['dateline']?></cite>
<? } else { ?>
从未
<? } } ?>
</td>
</tr>
</tbody><? } } } else { ?>
<tr class="narrowlist"><? if(is_array($cat['forums'])) { foreach($cat['forums'] as $forumid) { $forum=$forumlist[$forumid]; if($forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)) { ?>
</tr></tbody>
<? if($forum['orderid'] < $cat['forumscount']) { ?>
<tbody><tr>
<? } } ?>
<th width="<?=$cat['forumcolwidth']?>"<?=$forum['folder']?>>
<h2><a href="forumdisplay.php?fid=<?=$forum['fid']?>" <? if($forum['redirect']) { ?>target="_blank"<? } ?>><?=$forum['name']?></a><? if($forum['todayposts']) { ?><em> (今日: <strong><?=$forum['todayposts']?></strong>)</em><? } ?></h2>
<? if(!$forum['redirect']) { ?>
<p>主题: <?=$forum['threads']?>, 帖数: <?=$forum['posts']?></p>
<? if($forum['permission'] == 1) { ?>
<p>私密版块
<? } else { ?>
<p>最后发表:
<? if(is_array($forum['lastpost'])) { ?>
<a href="redirect.php?tid=<?=$forum['lastpost']['tid']?>&goto=lastpost#lastpost" title="<? echo cutstr($forum['lastpost']['subject'], 30); ?> by <? if($forum['lastpost']['author']) { ?><?=$forum['lastpost']['authorusername']?><? } else { ?>匿名<? } ?> "><?=$forum['lastpost']['dateline']?></a>
<? } else { ?>
从未
<? } ?>
</p>
<? } } else { ?>
<p>链接到外部地址</p>
<? } ?>
</th><? } } ?><?=$cat['endrows']?>
<? } ?>
</table>
</div>
<? if(!empty($insenz['vfstatus']) && $insenz['vfpos'] == 'rand' && $key == $rkey) { ?><script src="campaign.php?action=list" type="text/javascript"></script><? } if($admode && empty($insenz['hardadstatus']) && !empty($advlist['intercat']) && ($advlist['intercat'][$key] = array_merge(($advlist['intercat']['0'] ? $advlist['intercat']['0'] : array()), ($advlist['intercat'][$key] ? $advlist['intercat'][$key] : array())))) { ?><div class="ad_column" id="ad_intercat_<?=$key?>"><? echo $advitems[$advlist['intercat'][$key][array_rand($advlist['intercat'][$key])]]; ?></div><? } else { ?><div id="ad_intercat_<?=$key?>"></div><? } } } } if(!empty($insenz['vfstatus']) && $insenz['vfpos'] == 'last') { ?><script src="campaign.php?action=list" type="text/javascript"></script><? } if($_DCACHE['forumlinks']['0'] || $_DCACHE['forumlinks']['1'] || $_DCACHE['forumlinks']['2']) { ?>
<div class="mainbox list">
<span class="headactions"><img id="forumlinks_img" src="<?=IMGDIR?>/<?=$collapseimg['forumlinks']?>.gif" alt="" onclick="toggle_collapse('forumlinks');" /></span>
<h3>友情链接</h3>
<div id="forumlinks" style="<?=$collapse['forumlinks']?>">
<? if($_DCACHE['forumlinks']['0']) { ?>
<div class="forumlinks">
<ul class="s_clear"><?=$_DCACHE['forumlinks']['0']?></ul>
</div>
<? } if($_DCACHE['forumlinks']['1']) { ?>
<div class="forumimglink">
<?=$_DCACHE['forumlinks']['1']?>
</div>
<? } if($_DCACHE['forumlinks']['2']) { ?>
<div class="forumtxtlink">
<ul class="s_clear">
<?=$_DCACHE['forumlinks']['2']?>
</ul>
</div>
<? } ?>
</div>
</div>
<? } if(empty($gid) && $maxbdays &&$_DCACHE['birthdays_index']['todaysbdays']) { ?>
<div class="mainbox list" id="bdays">
<h3 id="bdayslist">
<a href="member.php?action=list&type=birthdays">生日快乐</a>: <?=$_DCACHE['birthdays_index']['todaysbdays']?>
</h3>
</div>
<? } if(empty($gid) && $whosonlinestatus) { ?>
<div class="mainbox list" id="online">
<? if($whosonlinestatus) { if($detailstatus) { ?>
<span class="headactions"><a href="<?=$indexname?>?showoldetails=no#online" title="关闭"><img src="<?=IMGDIR?>/collapsed_no.gif" alt="关闭" /></a></span>
<h3>
<strong><a href="member.php?action=online">在线会员</a></strong>
- <em><?=$onlinenum?></em> 人在线
- <em><?=$membercount?></em> 会员(<em><?=$invisiblecount?></em> 隐身),
<em><?=$guestcount?></em> 位游客
- 最高记录是 <em><?=$onlineinfo['0']?></em> 于 <em><?=$onlineinfo['1']?></em>.
</h3>
<? } else { ?>
<span class="headactions"><a href="<?=$indexname?>?showoldetails=yes#online" class="nobdr"><img src="<?=IMGDIR?>/collapsed_yes.gif" alt="" /></a></span>
<h3>
<strong><a href="member.php?action=online">在线会员</a></strong>
- 总计 <em><?=$onlinenum?></em> 人在线
- 最高记录是 <em><?=$onlineinfo['0']?></em> 于 <em><?=$onlineinfo['1']?></em>.
</h3>
<? } } else { ?>
<h4><strong><a href="member.php?action=online">在线会员</a></strong></h4>
<? } if($whosonlinestatus && $detailstatus) { ?>
<dl id="onlinelist">
<dt><?=$_DCACHE['onlinelist']['legend']?></dt>
<? if($detailstatus) { ?>
<dd>
<ul class="s_clear">
<? if($whosonline) { if(is_array($whosonline)) { foreach($whosonline as $key => $online) { ?><li title="时间: <?=$online['lastactivity']?><?="\n"?>操作: <?=$online['action']?> <? if($online['fid']) { ?><?="\n"?>版块: <?=$online['fid']?><? } ?>">
<img src="images/common/<?=$online['icon']?>" alt="" />
<? if($online['uid']) { ?>
<a href="space.php?uid=<?=$online['uid']?>"><?=$online['username']?></a>
<? } else { ?>
<?=$online['username']?>
<? } ?>
</li><? } } } else { ?>
<li style="width: auto">当前只有游客或隐身会员在线</li>
<? } ?>
</ul>
</dd>
<? } ?>
</dl>
<? } ?>
</div>
<? } if(empty($gid) && $announcements) { ?>
<script type="text/javascript">announcementScroll();</script>
<? } ?>
</div></div>
<? if($infosidestatus['allow'] == 2) { ?>
<div id="sidebar" class="side" style="<?=$collapse['sidebar']?>">
<? if(!empty($qihoo['status']) && ($qihoo['searchbox'] & 1)) { ?>
<div id="qihoosearch" class="sidebox">
<? if(!empty($qihoo['status']) && ($qihoo['searchbox'] & 1)) { ?>
<form method="post" action="search.php?srchtype=qihoo" onSubmit="this.target='_blank';">
<input type="hidden" name="searchsubmit" value="yes" />
<input type="text" class="txt" name="srchtxt" value="<?=$qihoo_searchboxtxt?>" size="20" />
<select name="stype">
<option value="" selected="selected">全文</option>
<option value="1">标题</option>
<option value="2">作者</option>
</select>
<button name="searchsubmit" type="submit" value="true">搜索</button>
</form>
<? if(!empty($qihoo['links']['keywords'])) { ?>
<strong>热门搜索</strong><? if(is_array($qihoo['links']['keywords'])) { foreach($qihoo['links']['keywords'] as $link) { ?><?=$link?> <? } } } if($customtopics) { ?>
<strong>用户专题</strong> <?=$customtopics?> [<a href="javascript:;" onclick="floatwin('open_customtopics', 'misc.php?action=customtopics', 600, 410)">编辑</a>]<br />
<? } if(!empty($qihoo['links']['topics'])) { ?>
<strong>论坛专题</strong> <? if(is_array($qihoo['links']['topics'])) { foreach($qihoo['links']['topics'] as $url) { ?><?=$url?> <? } } } } ?>
</div>
<? } if($infosidestatus['2']) { if(!empty($qihoo['status']) && ($qihoo['searchbox'] & 1)) { ?>
<hr class="shadowline"/>
<? } ?>
<div id="infoside">
<? if(empty($gid)) { request($infosidestatus, 0, 2); } else { request($infosidestatus, 1, 2); } ?>
</div>
<? } ?>
</div>
<? } ?>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_discuz.tpl.php
|
PHP
|
asf20
| 42,553
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/showmessage.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/header.htm', 1250675114, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/showmessage.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/footer.htm', 1250675114, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/showmessage.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/css_script.htm', 1250675114, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/showmessage.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/jsmenu.htm', 1250675114, '1', './templates/default')
;?>
<? if(!$inajax) { ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<? } else { include template('header_ajax'); } if(!$inajax) { ?>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> » 提示信息</div>
<div id="wrap" class="wrap s_clear">
<div class="msgfix">
<div class="showmessage">
<h1><?=$bbname提示信息?></h1>
<p><?=$show_message?></p>
<? if($url_forward) { if(empty($forwardtype)) { ?>
<p><a href="<?=$url_forward?>">如果您的浏览器没有自动跳转,请点击此链接</a></p>
<? } else { ?>
<p><a href="<?=$url_forward?>">如果 <?=$refreshtime?> 秒后下载仍未开始,请点击此链接</a></p>
<? } } elseif(stristr($show_message, '返回')) { ?>
<p><a href="javascript:history.back()">[ 点击这里返回上一页 ]</a></p>
<? } ?>
</div>
</div>
</div>
<? } elseif(!empty($infloat) && (empty($_POST) || !empty($nopost))) { ?>
<script type="text/javascript" reload="1">
var nopermst
</script>
<div>
<h3 class="float_ctrl"><em><?=$bbname提示信息?></em><span><a href="javascript:;" class="float_close" onclick="clearTimeout(nopermst);floatwinreset = 1;floatwin('close_<?=$handlekey?>');" title="关闭">关闭</a></span></h3>
<div class="float_message"><?=$show_message?><br /><br />
<? if($messagehandle == 'NOPERM' && !$discuz_uid) { ?>
<script type="text/javascript" reload="1">
nopermst = setTimeout('floatwinreset = 1;floatwin(\'close_<?=$handlekey?>\');floatwin(\'open_login\', \'logging.php?action=login\', 600, 400);', <?=$msgforward['refreshtime']?>);
</script>
<? } else { ?>
<button onclick="floatwinreset = 1;floatwin('close_<?=$handlekey?>');">关闭</button>
<? } ?>
</div>
</div>
<? } else { echo str_replace(array(",请返回", ",请。"), array(",请", "。"), $show_message); if($extra == 'HALTED' || $extra == 'NOPERM' || $extra == 'AJAXERROR') { ?><script type="text/javascript" reload="1">
function ajaxerror() {
alert('<?=$show_message?>');
}
ajaxerror();
</script><? } } if(!$inajax) { ?>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html><? } else { include template('footer_ajax'); } ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_showmessage.tpl.php
|
PHP
|
asf20
| 26,446
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); include template('header'); if($return) { ?>
<script type="text/javascript">
var tagsplit = $('tags').value.split(' ');
var inssplit = "<?=$return?>";
var returnsplit = inssplit.split(' ');
var result = '';
for(i in tagsplit) {
for(j in returnsplit) {
if(tagsplit[i] == returnsplit[j]) {
tagsplit[i] = '';break;
}
}
}
for(i in tagsplit) {
if(tagsplit[i] != '') {
result += tagsplit[i] + ' ';
}
}
$('tags').value = result + "<?=$return?>";
</script>
<? } include template('footer'); ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/TEMPLATEID_relatekw.tpl.php
|
PHP
|
asf20
| 557
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/register.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/header_nofloat.htm', 1250727845, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/register.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/seccheck.htm', 1250727845, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/register.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/footer_nofloat.htm', 1250727845, '2', './templates/uchome')
;?>
<? include template('header'); if(!empty($message)) { ?>
<script type="text/javascript" onload="1">
InFloat = 'floatlayout_register';
pagescroll.right();<? $bbname = str_replace('\'', '\\\'', $bbname); if($regverify == 1) { ?>
$('messageleft1').innerHTML = '<h1>感谢您注册 <?=$bbname?></h1>您的帐号处于非激活状态,请收取邮件激活您的帐号';
$('messageright1').innerHTML = '<h1><a href="memcp.php">个人中心</a></h1><p>如果您没有收到我们发送的系统邮件,请进入个人中心点击“重新验证 Email”或在“密码和安全问题”中更换另外一个 Email 地址。注意:在完成激活之前,根据管理员设置,您将只能以待验证会员的身份访问论坛,您可能不能进行发帖等操作。激活成功后,上述限制将自动取消。</p>';
setTimeout("window.location.href='memcp.php'", <?=$mrefreshtime?>);
<? } elseif($regverify == 2) { ?>
$('messageleft1').innerHTML = '<h1>感谢您注册 <?=$bbname?></h1>请等待管理员审核您的帐号';
$('messageright1').innerHTML = '<h1><a href="memcp.php">个人中心</a></h1>';
setTimeout("window.location.href='memcp.php'", <?=$mrefreshtime?>);
<? } else { if($newbietask) { ?>
$('messageleft1').innerHTML = '<h1>感谢您注册 <?=$bbname?></h1>我们诚邀您参与新手任务 <?=$task['name']?>,现在将转入任务详情页面。';
$('messageright1').innerHTML = '<h1><a href="javascript:;" onclick="location.href=\'task.php?action=view&id=<?=$task['taskid']?>\'">如果该页面长时间没有响应,请点这里刷新</a></h1>';
setTimeout('location.href=\'task.php?action=view&id=<?=$task['taskid']?>\'', <?=$mrefreshtime?>);
<? } else { ?>
$('messageleft1').innerHTML = '<h1>感谢您注册 <?=$bbname?></h1>';
$('messageright1').innerHTML = '<h1><a href="javascript:;" onclick="location.reload()">如果该页面长时间没有响应,请点这里刷新</a></h1>';
setTimeout('location.reload()', <?=$mrefreshtime?>);
<? } } if($_DCACHE['settings']['frameon'] && $_DCOOKIE['frameon'] == 'yes') { ?>
if(top != self) {
parent.leftmenu.location.reload();
}
<? } ?>
floatwinreset = 1;
</script>
<? } else { if(empty($infloat)) { ?><link rel="stylesheet" type="text/css" href="forumdata/cache/style_<?=STYLEID?>_float.css?<?=VERHASH?>" />
<style type="text/css">
.main { overflow: hidden; }
.content { margin: 5px; min-height: 400px; <?=FLOATBGCODE?>; }
* html .content { height: 400px; overflow: auto; }
.fixedbtn { position: static; }
</style>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> <?=$navigation?></div>
<div id="wrap" class="wrap s_clear">
<div class="main"><div class="content"><div class="nojs">
<div id="floatwinnojs"><? } ?>
<div class="float" id="floatlayout_register" style="width: 600px;<? if(!empty($infloat)) { ?> height: 400px;<? } ?>">
<div style="width: 1800px">
<div class="floatbox floatbox1">
<h3 class="float_ctrl">
<span>
<? if(!empty($infloat)) { ?><a href="javascript:;" class="float_close" onclick="floatwin('close_register')" title="关闭">关闭</a><? } ?>
</span>
</h3>
<div id="bbrule" class="gateform">
<h3><?=$bbname?> 网站服务条款</h3>
<div class="clause"><?=$bbrulestxt?></div>
<button onclick="$('agreebbrule').checked = true;$('bbrule').style.display='none';pagescroll.right()">同意</button> <button onclick="floatwin('close_register')">不同意</button>
</div>
</div>
<div class="floatbox floatbox1">
<h3 class="float_ctrl">
<span>
<? if(!empty($infloat)) { ?><a href="javascript:;" class="float_close" onclick="floatwin('close_register')" title="关闭">关闭</a><? } ?>
</span>
</h3>
<form method="post" name="register" id="registerform" class="gateform" onsubmit="ajaxpost('registerform', 'returnmessage4', 'returnmessage4', 'onerror');return false;" action="<?=$regname?>?regsubmit=yes">
<h3 id="returnmessage4"><? if($action != 'activation') { ?><?=$reglinkname?><? } else { ?>您的帐号需要激活<? } ?></h3>
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<input type="hidden" name="referer" value="<?=$referer?>" />
<? if(!empty($infloat)) { ?><input type="hidden" name="handlekey" value="<?=$handlekey?>" /><? } ?>
<input type="hidden" name="activationauth" value="<? if($action == 'activation') { ?><?=$activationauth?><? } ?>" />
<div class="loginform regform">
<div id="reginfo_a" class="regform" style="overflow:hidden">
<span id="activation_hidden"<? if($action == 'activation') { ?> style="display:none"<? } ?>>
<? if(!empty($fromuser)) { ?>
<span>
<label><em>推荐人:</em><?=$fromuser?></label>
<input type="hidden" name="fromuser"value="<?=$fromuser?>" />
</span>
<? } ?>
<label><em>用户名:</em><input type="text" id="username" name="username" autocomplete="off" size="25" maxlength="15" value="" onBlur="checkusername()" tabindex="1" class="txt" /> *</label>
<label><em>密码:</em><input type="password" name="password" size="25" id="password" onkeypress="detectcapslock(event, this)" tabindex="1" class="txt" /> *</label>
<label><em>确认密码:</em><input type="password" name="password2" size="25" id="password2" onkeypress="detectcapslock(event, this)" tabindex="1" value="" class="txt" /> *</label>
<label><em>Email:</em><input type="text" name="email" autocomplete="off" size="25" id="email" onBlur="checkemail()" tabindex="1" class="txt" /> *</label>
<label><em> </em><a href="https://domains.live.com/members/signup.aspx?domain=<?=$msn['domain']?>" target="_blank" style="float: left; overflow: hidden; width: 223px; white-space: nowrap;"><? if($msn['on']) { ?>注册 @<?=$msn['domain']?> 超大 Hotmail 邮箱<? } else { ?>注册超大 Hotmail 邮箱<? } ?></a></label>
</span>
<? if($action == 'activation') { ?>
<span id="activation_user">
<label><em>用户名:</em><?=$username?></label>
</span>
<? } if($secqaacheck || $seccodecheck) { if(!empty($infloat)) { $secchecktype = 1; } else { $seccheckreg = 2; } ?>
<div class="regsec"><label style="display:inline"><em>验证: </em><script type="text/javascript" reload="1">
function updateseccode<?=$secchecktype?>(op) {
if(isUndefined(op)) {
var x = new Ajax();
ajaxget('ajax.php?action=updateseccode&secchecktype=<?=$secchecktype?>', 'seccodeverify<?=$secchecktype?>_menu', 'seccodeverify<?=$secchecktype?>_menu');
} else {
window.document.seccodeplayer.SetVariable("isPlay", "1");
}
$('seccodeverify<?=$secchecktype?>').focus();
}
function updatesecqaa<?=$secchecktype?>() {
var x = new Ajax();
ajaxget('ajax.php?action=updatesecqaa', 'secanswer<?=$secchecktype?>_menu', 'secanswer<?=$secchecktype?>_menu');
}
var secclick<?=$secchecktype?> = new Array();
var seccodefocus = 0;
function opensecwin<?=$secchecktype?>(id, type) {
if(!secclick<?=$secchecktype?>[id]) {
$(id).value = '';
secclick<?=$secchecktype?>[id] = 1;
if(type) {
$(id + '_menu').style.top = (parseInt($(id + '_menu').style.top) - parseInt($(id + '_menu').style.height)) + 'px';
updateseccode<?=$secchecktype?>();
} else {
updatesecqaa<?=$secchecktype?>();
}
}
<? if(empty($secchecktype)) { if(!empty($infloat)) { ?>
InFloat='<?=$seccheckfloat?>';
<? } if($seccheckfloat) { ?>
$(id + '_menu').style.position = 'absolute';
$(id + '_menu').style.top = (-parseInt($(id + '_menu').style.height)) + 'px';
<? if($secqaacheck) { ?>
if(type) {
$(id + '_menu').style.left = $(id).offsetLeft + 'px';
} else {
$(id + '_menu').style.left = '0px';
}
<? } else { ?>
$(id + '_menu').style.left = '0px';
<? } } } elseif($secchecktype == 1) { if(!empty($infloat)) { ?>
InFloat='floatlayout_register';
<? } ?>
showMenu(id, 0, 2, 3);
<? } elseif($secchecktype == 3) { ?>
showMenu(id, 0, 2, 3);
<? } ?>
$(id + '_menu').style.display = '';
$(id).focus();
$(id).unselectable = 'off';
}
</script>
<? if($secqaacheck) { ?>
<input name="secanswer" id="secanswer<?=$secchecktype?>" type="text" autocomplete="off" style="width:50px" value="验证问答" class="txt" onfocus="opensecwin<?=$secchecktype?>(this.id, 0)" onclick="opensecwin<?=$secchecktype?>(this.id, 0)" onblur="display(this.id + '_menu');checksecanswer<?=$secchecktype?>();" tabindex="1">
<span id="checksecanswer<?=$secchecktype?>"><img src="images/common/none.gif" width="16" height="16"></span>
<div id="secanswer<?=$secchecktype?>_menu" class="seccodecontent" style="width:200px;height:80px;display:none"></div>
<? } if($seccodecheck) { ?>
<input name="seccodeverify" id="seccodeverify<?=$secchecktype?>" type="text" autocomplete="off" style="width:50px" value="验证码" class="txt" onfocus="opensecwin<?=$secchecktype?>(this.id, 1)" onclick="opensecwin<?=$secchecktype?>(this.id, 1)" onblur="if(!seccodefocus) {display(this.id + '_menu')}checkseccode<?=$secchecktype?>();" tabindex="1">
<a href="javascript:;" onclick="updateseccode<?=$secchecktype?>()">换一个</a>
<span id="checkseccodeverify<?=$secchecktype?>"><img src="images/common/none.gif" width="16" height="16"></span>
<div id="seccodeverify<?=$secchecktype?>_menu" class="seccodecontent" onmouseover="seccodefocus = 1" onmouseout="seccodefocus = 0" style="cursor: pointer;top: 256px;width:<?=$seccodedata['width']?>px;height:<?=$seccodedata['height']?>px;display:none"></div>
<? } ?>
<script type="text/javascript" reload="1">
var profile_seccode_invalid = '验证码输入错误,请重新填写。';
var profile_secanswer_invalid = '验证问答回答错误,请重新填写。';
var lastseccode = lastsecanswer = '';
function checkseccode<?=$secchecktype?>() {
var seccodeverify = $('seccodeverify<?=$secchecktype?>').value;
if(seccodeverify == lastseccode) {
return;
} else {
lastseccode = seccodeverify;
}
var cs = $('checkseccodeverify<?=$secchecktype?>');
<? if($seccodedata['type'] != 1) { ?>
if(!(/[0-9A-Za-z]{4}/.test(seccodeverify))) {
warning<?=$secchecktype?>(cs, profile_seccode_invalid);
return;
}
<? } else { ?>
if(seccodeverify.length != 2) {
warning<?=$secchecktype?>(cs, profile_seccode_invalid);
return;
}
<? } ?>
ajaxresponse<?=$secchecktype?>('checkseccodeverify<?=$secchecktype?>', 'action=checkseccode&seccodeverify=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(seccodeverify) : seccodeverify));
}
function checksecanswer<?=$secchecktype?>() {
var secanswer = $('secanswer<?=$secchecktype?>').value;
if(secanswer == lastsecanswer) {
return;
} else {
lastsecanswer = secanswer;
}
ajaxresponse<?=$secchecktype?>('checksecanswer<?=$secchecktype?>', 'action=checksecanswer&secanswer=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(secanswer) : secanswer));
}
function ajaxresponse<?=$secchecktype?>(objname, data) {
var x = new Ajax('XML', objname);
x.get('ajax.php?inajax=1&' + data, function(s){
var obj = $(objname);
if(s == 'succeed') {
obj.style.display = '';
obj.innerHTML = '<img src="<?=IMGDIR?>/check_right.gif" width="16" height="16" />';
obj.className = "warning";
} else {
warning(obj, s);
}
});
}
function warning(obj, msg) {
if((ton = obj.id.substr(5, obj.id.length)) != 'password2') {
$(ton).select();
}
obj.style.display = '';
obj.innerHTML = '<img src="<?=IMGDIR?>/check_error.gif" width="16" height="16" />';
obj.className = "warning";
}
</script></label></div>
<? } if(($regstatus > 1 && $action != 'activation') || $regstatus == 2) { ?>
<label><em>邀请码:</em><input type="text" name="invitecode" autocomplete="off" size="25" maxlength="16" value="<?=$invitecode?>" id="invitecode" onBlur="checkinvitecode()" tabindex="1" class="txt" /><? if($regstatus == 2) { ?> *<? } ?></label>
<? } ?>
</div>
<div id="reginfo_b"<? if(!empty($infloat)) { ?> style="display:none;"<? } ?>>
<? if($regverify == 2) { ?>
<label><em>注册原因:</em><input name="regmessage" autocomplete="off" size="25" tabindex="1" class="txt" /> *</label>
<? } if(is_array($_DCACHE['fields_required'])) { foreach($_DCACHE['fields_required'] as $field) { ?><label<? if($field['description']) { ?> title="<? echo htmlspecialchars($field['description']); ?>"<? } ?>><em><?=$field['title']?>:</em>
<? if($field['selective']) { ?>
<select name="field_<?=$field['fieldid']?>new" tabindex="1">
<option value="">- 请选择 -</option><? if(is_array($field['choices'])) { foreach($field['choices'] as $index => $choice) { ?><option value="<?=$index?>"<? if($index == $member['field_'.$field['fieldid']]) { ?> selected="selected"<? } ?>><?=$choice?></option><? } } ?></select>
<? } else { ?>
<input type="text" name="field_<?=$field['fieldid']?>new" size="25" value="<?=$member['field_'.$field['fieldid']]?>" tabindex="1" class="txt" />
<? } ?> *
</label><? } } ?></div>
</div>
<div class="logininfo singleinfo">
<h4>已有帐号?<a href="logging.php?action=login" onclick="floatwin('close_register');floatwin('open_login', this.href, 600, 400);return false;">现在登录</a></h4>
<? if($action == 'activation') { ?>
<p>放弃激活,<a href="javascript:;" onclick="$('registerform').activationauth.value='';$('activation_hidden').style.display='';$('activation_user').style.display='none'">现在<?=$reglinkname?></a></p>
<? } ?>
</div>
<p class="fsubmit">
<span id="reginfo_a_btn">
<em> </em>
<? if(($field && !empty($infloat)) || $regverify == 2) { ?>
<button class="submit" tabindex="1" onclick="regstep('reginfo_a','reginfo_b'); return false;">下一步</button>
</span>
<span id="reginfo_b_btn" style="display:none">
<em class="regpre"><a href="javascript:;" onclick="regstep('reginfo_b','reginfo_a');">上一步</a></em>
<? } ?>
<button class="submit" id="registerformsubmit" type="submit" name="regsubmit" value="true" tabindex="1">提交</button>
<? if($bbrules) { ?>
<input type="checkbox" class="checkbox" name="agreebbrule" value="<?=$bbrulehash?>" id="agreebbrule" /> <label for="agreebbrule">同意<a href="javascript:;" onclick="pagescroll.left()">网站服务条款</a></label>
<? } ?>
</span>
</p>
</form>
<? if($sitemessage['register']) { ?>
<div class="moreconf sitemsg">
<div class="custominfoarea">
<a href="javascript:;" onclick="display('custominfo_register')" onblur="$('custominfo_register').style.display = 'none'"><img src="<?=IMGDIR?>/info.gif" alt="帮助" /></a>
<div id="custominfo_register" class="sitenote">
<div class="cornerlayger"><? echo $sitemessage['register'][array_rand($sitemessage['register'])]; ?></div>
<div class="minicorner"></div>
</div>
</div>
</div>
<? } ?>
</div>
<div class="floatbox floatbox1">
<h3 class="float_ctrl">
<span>
<? if(!empty($infloat)) { ?><a href="javascript:;" class="float_close" onclick="floatwin('close_register')" title="关闭">关闭</a><? } ?>
</span>
</h3>
<div class="validateinfo">
<div id="messageleft1"></div>
<div id="messageright1"></div>
</div>
</div>
</div>
<script type="text/javascript" reload="1">
var pagescroll = new pagescroll_class('floatlayout_register', 600, 400);
<? if(empty($infloat)) { ?>
$('floatlayout_register').scrollLeft = 600;
<? } if($action != 'activation') { ?>
document.body.focus();
$('username').focus();
<? } if($sitemessage['register'] && $sitemessage['time']) { ?>
setTimeout('display_opacity(\'custominfo_register\',100)', <?=$sitemessage['time']?>);
<? } ?>
var profile_username_toolong = '用户名超过 15 个字符';
var profile_username_tooshort = '用户名小于3个字符';
var doublee = parseInt('<?=$doublee?>');
var lastusername = lastpassword = lastemail = lastinvitecode = '';
function messagehandle_register(key, msg) {
$('returnmessage4').className = key == 1 ? 'onerror' : '';
$('returnmessage4').innerHTML = msg;
}
function checkusername() {
var username = trim($('username').value);
if(username == '' || username == lastusername) {
return;
} else {
lastusername = username;
}
var unlen = username.replace(/[^\x00-\xff]/g, "**").length;
if(unlen < 3 || unlen > 15) {
messagehandle_register(1, unlen < 3 ? profile_username_tooshort : profile_username_toolong);
return;
}
ajaxget('ajax.php?infloat=register&handlekey=register&action=checkusername&username=' + (is_ie && document.charset == 'utf-8' ? encodeURIComponent(username) : username), 'returnmessage4');
}
function checkemail() {
var email = trim($('email').value);
if(email == '' || email == lastemail) {
return;
} else {
lastemail = email;
}
ajaxget('ajax.php?infloat=register&handlekey=register&action=checkemail&email=' + email, 'returnmessage4');
}
function checkinvitecode() {
var invitecode = trim($('invitecode').value);
if(invitecode == lastinvitecode) {
return;
} else {
lastinvitecode = invitecode;
}
ajaxget('ajax.php?infloat=register&handlekey=register&action=checkinvitecode&invitecode=' + invitecode, 'returnmessage4');
}
function trim(str) {
return str.replace(/^\s*(.*?)[\s\n]*$/g, '$1');
}
<? if(($field && !empty($infloat)) || $regverify == 2) { ?>
function regstep(obja,objb){
$(obja).style.display = $(obja+'_btn').style.display = 'none';
$(objb).style.display = $(objb+'_btn').style.display = '';
}
<? } if($invitecode) { ?>
ajaxget('ajax.php?infloat=register&handlekey=register&action=checkinvitecode&invitecode=<?=$invitecode?>', 'returnmessage4');
<? } ?>
</script>
<? } updatesession(); if(empty($infloat)) { ?></div>
</div></div></div>
</div><? } include template('footer'); ?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_register.tpl.php
|
PHP
|
asf20
| 18,028
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); function tpl_hide_credits_hidden($creditsrequire) {
global $hideattach;
?><?
$return = <<<EOF
<div class="locked">本帖隐藏的内容需要积分高于 {$creditsrequire} 才可浏览</div>
EOF;
?><? return $return; }
function tpl_hide_credits($creditsrequire, $message) {
global $hideattach;
?><?
$return = <<<EOF
<div class="locked">以下内容需要积分高于 {$creditsrequire} 才可浏览</div>
{$message}<br /><br />
<br />
EOF;
?><? return $return; }
function tpl_codedisp($discuzcodes, $code) {
?><?
$return = <<<EOF
<div class="blockcode"><div id="code{$discuzcodes['codecount']}"><ol><li>{$code}</ol></div><em onclick="copycode($('code{$discuzcodes['codecount']}'));">复制代码</em></div>
EOF;
?><? return $return; }
function tpl_quote() {
?><?
$return = <<<EOF
<div class="quote"><blockquote>\\1</blockquote></div>
EOF;
?><? return $return; }
function tpl_free() {
?><?
$return = <<<EOF
<div class="quote"><blockquote>\\1</blockquote></div>
EOF;
?><? return $return; }
function tpl_hide_reply() {
global $hideattach;
?><?
$return = <<<EOF
<div class="showhide"><h4>本帖隐藏的内容需要回复才可以浏览</h4>\\1</div>
EOF;
?><? return $return; }
function tpl_hide_reply_hidden() {
?><?
$return = <<<EOF
<div class="locked">本帖隐藏的内容需要回复才可以浏览</div>
EOF;
?><? return $return; }
function attachlist($attach, $sidauth) {
global $attachrefcheck, $extcredits, $creditstrans, $creditstransextra, $ftp, $thumbstatus, $authkey, $timestamp, $attachimgpost, $fid;
$k = md5($attach['aid'].md5($authkey).$timestamp);
$hideurl = $attach['remote'] && ($ftp['hideurl'] || ($attach['isimage'] && $attachimgpost && strtolower(substr($ftp['attachurl'], 0, 3)) == 'ftp'));
?><?
$return = <<<EOF
EOF;
if($attach['attachimg']) { if(!IS_ROBOT) {
$return .= <<<EOF
<dl class="t_attachlist attachimg">
<dt>
</dt>
<dd>
<p class="imgtitle">
<a href="attachment.php?aid={$attach['aid']}&k={$k}&t={$timestamp}&fid={$fid}&nothumb=yes&sid={$sidauth}" onmouseover="showMenu(this.id,false,2)" id="aid{$attach['aid']}" class="bold" target="_blank">{$attach['filename']}</a>
<em>({$attach['attachsize']})</em>
</p>
<div class="attach_popup" id="aid{$attach['aid']}_menu" style="display: none">
<div class="cornerlayger">
<p>下载次数:{$attach['downloads']}</p>
<p>{$attach['dateline']}</p>
</div>
<div class="minicorner"></div>
</div>
<p>
EOF;
if($attach['readperm']) {
$return .= <<<EOF
阅读权限: <strong>{$attach['readperm']}</strong>
EOF;
} if($attach['price']) {
$return .= <<<EOF
售价: <strong>{$extcredits[$creditstransextra['1']]['title']} {$attach['price']} {$extcredits[$creditstransextra['1']]['unit']}</strong> [<a href="misc.php?action=viewattachpayments&aid={$attach['aid']}" onclick="floatwin('open_attachpay', this.href, 600, 410);return false;" target="_blank">记录</a>]
EOF;
if(!$attach['payed']) {
$return .= <<<EOF
[<a href="misc.php?action=attachpay&aid={$attach['aid']}" onclick="floatwin('open_attachpay', this.href, 600, 250);return false;" target="_blank">购买</a>]
EOF;
} }
$return .= <<<EOF
</p>
EOF;
if($attach['description']) {
$return .= <<<EOF
<p>{$attach['description']}</p>
EOF;
} if(!$attach['price'] || $attach['payed']) {
$return .= <<<EOF
<p>
EOF;
if($thumbstatus && $attach['thumb']) { if($attachrefcheck || $hideurl) {
$return .= <<<EOF
<a href="javascript:;"><img onclick="zoom(this, 'attachment.php?aid={$attach['aid']}&k={$k}&t={$timestamp}&fid={$fid}&noupdate=yes&nothumb=yes&sid={$sidauth}')" src="attachment.php?aid={$attach['aid']}&k={$k}&t={$timestamp}&sid={$sidauth}" alt="{$attach['filename']}" /></a>
EOF;
} else {
$return .= <<<EOF
<a href="javascript:;"><img onclick="zoom(this, '{$attach['url']}/{$attach['attachment']}')" src="{$attach['url']}/{$attach['attachment']}.thumb.jpg" alt="{$attach['filename']}" /></a>
EOF;
} } else { $GLOBALS['aimgs'][$attach['pid']][] = $attach['aid']; $widthcode = attachwidth($attach['width']); if($attachrefcheck || $hideurl) {
$return .= <<<EOF
<img src="images/common/none.gif" file="attachment.php?aid={$attach['aid']}&k={$k}&t={$timestamp}&fid={$fid}&noupdate=yes&sid={$sidauth}" {$widthcode} id="aimg_{$attach['aid']}" alt="{$attach['filename']}" />
EOF;
} else {
$return .= <<<EOF
<img src="images/common/none.gif" file="{$attach['url']}/{$attach['attachment']}" id="aimg_{$attach['aid']}" {$widthcode} alt="{$attach['filename']}" />
EOF;
} }
$return .= <<<EOF
</p>
EOF;
}
$return .= <<<EOF
</dd>
EOF;
} else {
$return .= <<<EOF
<dl class="t_attachlist attachimg">
EOF;
if(!$attach['price'] || $attach['payed']) { if($attach['description']) {
$return .= <<<EOF
<p>{$attach['description']}</p>
EOF;
} if($attachrefcheck || $hideurl) {
$return .= <<<EOF
<img src="attachment.php?aid={$attach['aid']}&k={$k}&t={$timestamp}&fid={$fid}&noupdate=yes&sid={$sidauth}" alt="{$attach['filename']}" />
EOF;
} else {
$return .= <<<EOF
<img src="{$attach['url']}/{$attach['attachment']}" alt="{$attach['filename']}" />
EOF;
} } } } else {
$return .= <<<EOF
<dl class="t_attachlist">
<dt>
{$attach['attachicon']}
</dt>
<dd>
<p class="attachname">
<a href="attachment.php?aid={$attach['aid']}&k={$k}&t={$timestamp}&fid={$fid}&sid={$sidauth}" onmouseover="showMenu(this.id,false,2)" id="aid{$attach['aid']}" target="_blank" title="">{$attach['filename']}</a> ({$attach['attachsize']})
<div class="attach_popup" id="aid{$attach['aid']}_menu" style="display: none">
<div class="cornerlayger">
<p>下载次数:{$attach['downloads']}</p>
<p>{$attach['dateline']}</p>
</div>
<div class="minicorner"></div>
</div>
</p>
<p>
EOF;
if($attach['readperm']) {
$return .= <<<EOF
阅读权限: <strong>{$attach['readperm']}</strong>
EOF;
} if($attach['price']) {
$return .= <<<EOF
售价: <strong>{$extcredits[$creditstransextra['1']]['title']} {$attach['price']} {$extcredits[$creditstransextra['1']]['unit']}</strong> [<a href="misc.php?action=viewattachpayments&aid={$attach['aid']}" onclick="floatwin('open_attachpay', this.href, 600, 410);return false;" target="_blank">记录</a>]
EOF;
if(!$attach['payed']) {
$return .= <<<EOF
[<a href="misc.php?action=attachpay&aid={$attach['aid']}" onclick="floatwin('open_attachpay', this.href, 600, 250);return false;" target="_blank">购买</a>]
EOF;
} }
$return .= <<<EOF
</p>
EOF;
if($attach['description']) {
$return .= <<<EOF
<p>{$attach['description']}</p>
EOF;
}
$return .= <<<EOF
</dd>
EOF;
}
$return .= <<<EOF
</dl>
EOF;
?><? return $return; }
function attachinpost($attach, $sidauth) {
global $attachrefcheck, $extcredits, $creditstrans, $creditstransextra, $ftp, $thumbstatus, $authkey, $timestamp, $attachimgpost;
$k = md5($attach['aid'].md5($authkey).$timestamp);
$hideurl = $attach['remote'] && ($ftp['hideurl'] || ($attach['isimage'] && $attachimgpost && strtolower(substr($ftp['attachurl'], 0, 3)) == 'ftp'));
?><?
$__IMGDIR = IMGDIR;$return = <<<EOF
EOF;
if(!isset($attach['unpayed'])) { if($attach['attachimg']) { if(!IS_ROBOT) {
$return .= <<<EOF
<span style="position: absolute; display: none" id="attach_{$attach['aid']}" onmouseover="showMenu(this.id, 0, 1)"><img src="{$__IMGDIR}/attachimg.gif" border="0"></span>
EOF;
if($thumbstatus && $attach['thumb']) { if($attachrefcheck || $hideurl) {
$return .= <<<EOF
<a href="javascript:;"><img onclick="zoom(this, 'attachment.php?aid={$attach['aid']}&k={$k}&t={$timestamp}&noupdate=yes&nothumb=yes&sid={$sidauth}')" src="attachment.php?aid={$attach['aid']}&k={$k}&t={$timestamp}&sid={$sidauth}" border="0" id="aimg_{$attach['aid']}" onmouseover="showMenu(this.id, false, 2)" /></a>
EOF;
} else {
$return .= <<<EOF
<a href="javascript:;"><img onclick="zoom(this, '{$attach['url']}/{$attach['attachment']}')" src="{$attach['url']}/{$attach['attachment']}.thumb.jpg" border="0" id="aimg_{$attach['aid']}" onmouseover="showMenu(this.id, false, 2)" /></a>
EOF;
} } else { $GLOBALS['aimgs'][$attach['pid']][] = $attach['aid']; $widthcode = attachwidth($attach['width']); if($attachrefcheck || $hideurl) {
$return .= <<<EOF
<img src="images/common/none.gif" file="attachment.php?aid={$attach['aid']}&k={$k}&t={$timestamp}&noupdate=yes&sid={$sidauth}" {$widthcode} id="aimg_{$attach['aid']}" onmouseover="showMenu(this.id, false, 2)" alt="{$attach['filename']}" />
EOF;
} else {
$return .= <<<EOF
<img src="images/common/none.gif" file="{$attach['url']}/{$attach['attachment']}" {$widthcode} id="aimg_{$attach['aid']}" onmouseover="showMenu(this.id, false, 2)" alt="{$attach['filename']}" />
EOF;
} }
$return .= <<<EOF
<div class="t_attach" id="aimg_{$attach['aid']}_menu" style="position: absolute; display: none">
<a href="attachment.php?aid={$attach['aid']}&k={$k}&t={$timestamp}&nothumb=yes&sid={$sidauth}" title="{$attach['filename']}" target="_blank"><strong>下载</strong></a> ({$attach['attachsize']})<br />
EOF;
if($attach['description']) {
$return .= <<<EOF
{$attach['description']}<br />
EOF;
} } else {
$return .= <<<EOF
<dl class="t_attachlist attachimg">
EOF;
if(!$attach['price'] || $attach['payed']) { if($attach['description']) {
$return .= <<<EOF
<p>{$attach['description']}</p>
EOF;
} if($attachrefcheck || $hideurl) {
$return .= <<<EOF
<img src="attachment.php?aid={$attach['aid']}&k={$k}&t={$timestamp}&noupdate=yes&sid={$sidauth}" alt="{$attach['filename']}" />
EOF;
} else {
$return .= <<<EOF
<img src="{$attach['url']}/{$attach['attachment']}" alt="{$attach['filename']}" />
EOF;
} }
$return .= <<<EOF
<div style="display: none">
EOF;
} } else {
$return .= <<<EOF
{$attach['attachicon']} <span style="white-space: nowrap" id="attach_{$attach['aid']}" onmouseover="showMenu(this.id, false, 2)"><a href="attachment.php?aid={$attach['aid']}&k={$k}&t={$timestamp}&sid={$sidauth}" target="_blank"><strong>{$attach['filename']}</strong></a></span> ({$attach['attachsize']})
<div class="t_attach" id="attach_{$attach['aid']}_menu" style="position: absolute; display: none">
EOF;
if($attach['description']) {
$return .= <<<EOF
{$attach['description']}<br />
EOF;
}
$return .= <<<EOF
下载次数: {$attach['downloads']}<br />
EOF;
if($attach['readperm']) {
$return .= <<<EOF
阅读权限: {$attach['readperm']}<br />
EOF;
} } if($attach['price']) {
$return .= <<<EOF
售价: {$extcredits[$creditstransextra['1']]['title']} {$attach['price']} {$extcredits[$creditstransextra['1']]['unit']} <a href="misc.php?action=viewattachpayments&aid={$attach['aid']}" onclick="floatwin('open_attachpay', this.href, 600, 410);return false;" target="_blank">[记录]</a>
EOF;
if(!$attach['payed']) {
$return .= <<<EOF
<a href="misc.php?action=attachpay&aid={$attach['aid']}" onclick="floatwin('open_attachpay', this.href, 600, 250);return false;" target="_blank">[购买]</a>
EOF;
} }
$return .= <<<EOF
<div class="t_smallfont">{$attach['dateline']}</div></div>
EOF;
} else {
$return .= <<<EOF
{$attach['attachicon']} <strong>收费附件: {$attach['filename']}</strong>
EOF;
}
$return .= <<<EOF
EOF;
?><? return $return; }
?>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_discuzcode.tpl.php
|
PHP
|
asf20
| 11,476
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/ec_credit.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/header.htm', 1250677643, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/ec_credit.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/footer.htm', 1250677643, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/ec_credit.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/css_script.htm', 1250677643, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/ec_credit.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/jsmenu.htm', 1250677643, '1', './templates/default')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> » 信用评价</div>
<div id="wrap" class="wrap with_side special s_clear">
<div class="main">
<div class="content">
<h1><?=$member['username']?> 的信用评价</h1>
<div class="datalist">
<div id="list_eccredit_sellerinfo_c" class="c_header">
<h3 onclick="toggle_collapse('list_eccredit_sellerinfo', 1, 1);">卖家信用 <?=$member['buyercredit']?> <img src="images/rank/buyer/<?=$member['buyerrank']?>.gif" style="vertical-align:middle" /></h3>
<div class="c_header_action">
<p class="c_header_ctrlbtn" onclick="toggle_collapse('list_eccredit_sellerinfo', 1, 1);">[ 展开 ]</p>
</div>
</div>
<table id="list_eccredit_sellerinfo" summary="eccredit" cellspacing="0" cellpadding="0">
<thead class="colplural">
<tr>
<td> </td>
<td>最近1周</td>
<td>最近1个月</td>
<td>最近6个月</td>
<td>6个月前</td>
<td>总计</td>
</tr>
</thead>
<tr>
<td><img src="images/rank/good.gif" width="14" height="16" /> <span style="color:red">好评</span></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=thisweek&level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thisweek']['good']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=thismonth&level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thismonth']['good']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=halfyear&level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['halfyear']['good']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=before&level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['before']['good']?></a></td>
<td><?=$caches['sellercredit']['all']['good']?></td>
</tr>
<tr class="colplural">
<td><img src="images/rank/soso.gif" width="14" height="16" /> <span style="color:green">中评</span></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=thisweek&level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thisweek']['soso']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=thismonth&level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thismonth']['soso']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=halfyear&level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['halfyear']['soso']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=before&level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['before']['soso']?></a></td>
<td><?=$caches['sellercredit']['all']['soso']?></td>
</tr>
<tr>
<td><img src="images/rank/bad.gif" width="14" height="16" /> 差评</td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=thisweek&level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thisweek']['bad']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=thismonth&level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thismonth']['bad']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=halfyear&level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['halfyear']['bad']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=before&level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['before']['bad']?></a></td>
<td><?=$caches['sellercredit']['all']['bad']?></td>
</tr>
<tr class="colplural">
<td>总计</td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=thisweek#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thisweek']['total']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=thismonth#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['thismonth']['total']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=halfyear#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['halfyear']['total']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=buyer&filter=before#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['sellercredit']['before']['total']?></a></td>
<td><?=$caches['sellercredit']['all']['total']?></td>
</tr>
</table>
<div id="list_eccredit_buyerinfo_c" class="c_header">
<h3 onclick="toggle_collapse('list_eccredit_buyerinfo', 1, 1);">买家信用 <?=$member['sellercredit']?> <img src="images/rank/seller/<?=$member['sellerrank']?>.gif" style="vertical-align:middle" /></h3>
<div class="c_header_action">
<p class="c_header_ctrlbtn" onclick="toggle_collapse('list_eccredit_buyerinfo', 1, 1);">[ 展开 ]</p>
</div>
</div>
<table id="list_eccredit_buyerinfo" summary="eccredit" cellspacing="0" cellpadding="0">
<thead class="colplural">
<tr>
<td> </td>
<td>最近1周</td>
<td>最近1个月</td>
<td>最近6个月</td>
<td>6个月前</td>
<td>总计</td>
</tr>
</thead>
<tr>
<td><img src="images/rank/good.gif" width="14" height="16" /> <span style="color:red">好评</span></td><td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=thisweek&level=good" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thisweek']['good']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=thismonth&level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thismonth']['good']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=halfyear&level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['halfyear']['good']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=before&level=good#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['before']['good']?></a></td>
<td><?=$caches['buyercredit']['all']['good']?></td>
</tr>
<tr class="colplural">
<td><img src="images/rank/soso.gif" width="14" height="16" /> <span style="color:green">中评</span></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=thisweek&level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thisweek']['soso']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=thismonth&level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thismonth']['soso']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=halfyear&level=soso#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['halfyear']['soso']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=before&level=soso" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['before']['soso']?></a></td>
<td><?=$caches['buyercredit']['all']['soso']?></td>
</tr>
<tr>
<td><img src="images/rank/bad.gif" width="14" height="16" /> 差评</td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=thisweek&level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thisweek']['bad']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=thismonth&level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thismonth']['bad']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=halfyear&level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['halfyear']['bad']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=before&level=bad#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['before']['bad']?></a></td>
<td><?=$caches['buyercredit']['all']['bad']?></td>
</tr>
<tr class="colplural">
<td>总计</td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=thisweek#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thisweek']['total']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=thismonth#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['thismonth']['total']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=halfyear#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['halfyear']['total']?></a></td>
<td><a href="eccredit.php?action=list&uid=<?=$uid?>&from=seller&filter=before#" onclick="ajaxget(this.href, 'ajaxrate', 'specialposts');doane(event);"><?=$caches['buyercredit']['before']['total']?></a></td>
<td><?=$caches['buyercredit']['all']['total']?></td>
</tr>
</table>
</div>
<div id="ajaxrate"></div>
</div>
</div>
<div class="side">
<h2><?=$member['avatar']?></h2>
<div class="sideinner">
<a href="space.php?username=<?=$member['usernameenc']?>"><?=$member['username']?></a>
<? if($member['alipay']) { ?><a href="https://www.alipay.com/trade/i_credit.do?email=<?=$member['alipay']?>" target="_blank"><img src="<?=IMGDIR?>/alipaysmall.gif" border="0" alt="支付宝账户信用信息" /></a><? } if($member['taobao']) { ?><br /><script type="text/javascript">document.write('<a target="_blank" href="http://amos1.taobao.com/msg.ww?v=2&uid='+encodeURIComponent('<?=$member['taobaoas']?>')+'&s=2"><img src="http://amos1.taobao.com/online.ww?v=2&uid='+encodeURIComponent('<?=$member['taobaoas']?>')+'&s=1" alt="阿里旺旺" border="0" /></a> ');</script><? } ?>
</p>
<div>
卖家好评率: <?=$sellerpercent?>%<br />
买家好评率: <?=$buyerpercent?>%<br />
注册日期: <?=$member['regdate']?>
</div>
</div>
</div>
</div>
<script type="text/javascript">ajaxget('eccredit.php?action=list&uid=<?=$uid?>', 'ajaxrate');var explainmenu='ajax_explain_menu';</script>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_ec_credit.tpl.php
|
PHP
|
asf20
| 35,916
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
#modlayer { position: absolute; right: 0; padding: 12px; width: 275px; background-color: #FFF; border: 4px solid #7FCAE2; }
#modlayer a { color: #09C; }
#modlayer label { float: right; margin-top: 5px; }
#modcount { padding: 0 2px; font-size: 24px; font-weight: 400; color: #F60; }
#modlayer .collapse { position: absolute; right: 0; top: 5px; padding: 0 5px; }
#modlayer.collapsed { margin-right: -23px; padding: 0; width: 27px; height: 35px; border: none; background: #F60; overflow: hidden; }
#modlayer.collapsed #modcount { display: block; position: absolute; left: 0; top: 0; z-index: 999; width: 27px; height: 35px; border-color: #09C; background-color: #09C; color: #FFF; font-size: 12px; text-align: center; line-height: 35px; cursor: pointer; }
.listtopicadmin { height: 200px; border-top: 1px solid #C5DAEB; }
.listtopicadmin li { *overflow:hidden; *margin-bottom: -2px; height: 28px; line-height: 18px; border-top: 1px solid #FFF; border-bottom: 1px solid #C5DAEB; zoom: 1; }
.listtopicadmin .currentopt { height: auto; }
.detailopt { visibility: hidden; overflow: hidden; white-space: nowrap; }
.currentopt .detailopt { visibility: visible; }
.detailopt p .txt { width: 100px; }
.detailopt span .txt { width: 18px; border-right: none; }
.detailopt a { float: left; text-indent: -999px; margin-right: 3px; width: 22px; height: 20px; text-align: center; }
.detailopt_bold, .detailopt_italic, .detailopt_underline { border: 1px solid #F1F5FA; outline: none; }
.detailopt .current { border: 1px solid #999; background-color: #FFF; }
.listtopicadmin table { width: 100%; }
.listtopicadmin td { vertical-align: top; }
.listtopicadmin .labeltxt { display: block; cursor: pointer; width: 100%; background: url(<?=IMGDIR?>/arrow_down.gif) no-repeat 100% 8px; }
.currentopt .labeltxt { float: left; cursor: default; width: 45px; background: none; color: #09C; }
.listtopicadmin .checkbox { margin-top: 3px; *margin-top: -2px; }
.listtopicadmin img { vertical-align: middle; }
.tah_fixiesel { overflow: hidden; white-space: nowrap; width: 217px; *border-right: 1px solid <?=INPUTBORDER?>; }
.tah_fixiesel select { width: 160px; *width: expression(this.offsetWidth > 180 ? 'auto':'180'); }
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_css_topicadmin.tpl.php
|
PHP
|
asf20
| 2,272
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/search.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/header.htm', 1256015809, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/search.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/search_threads.htm', 1256015809, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/search.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/search_sort.htm', 1256015809, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/search.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/footer.htm', 1256015809, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/search.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/css_script.htm', 1256015809, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/search.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/header.htm', 1256015809, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/search.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/footer.htm', 1256015809, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/search.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/jsmenu.htm', 1256015809, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/search.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/css_script.htm', 1256015809, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/search.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/jsmenu.htm', 1256015809, '2', './templates/uchome')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> » 搜索</div>
<div id="wrap" class="wrap">
<form class="searchform" method="post" action="search.php"<? if($qihoo['status']) { ?> target="_blank"<? } ?>>
<input type="hidden" name="formhash" value="<?=FORMHASH?>" />
<? if(!empty($srchtype)) { ?><input type="hidden" name="srchtype" value="<?=$srchtype?>" /><? } ?>
<label for="srchtxt" class="searchlabel">
搜索
<strong>
<? if($srchtype == 'threadsort') { ?>
分类信息
<? } elseif($srchtype == 'trade') { ?>
商品
<? } elseif($srchtype == 'qihoo') { ?>
奇虎全文
<? } else { ?>
帖子
<? } ?>
</strong>
</label>
<? if($srchtype != 'threadsort') { ?>
<p class="searchkey">
<input type="text" id="srchtxt" name="srchtxt" size="45" maxlength="40" value="<?=$keyword?>" class="txt" tabindex="1" />
<script type="text/javascript">$('srchtxt').focus();</script>
<? if($checkarray['posts']) { ?>
<select name='srchtype'>
<option value="title">标题</option>
<? if(!$disabled['fulltext']) { ?><option value="fulltext">全文</option><? } ?>
</select>
<? } ?>
<button type="submit" name="searchsubmit" id="searchsubmit" value="true">搜索</button>
<? if($checkarray['posts']) { ?>
<a href="javascript:;" onclick="display('search_option')">高级</a>
<? } ?>
</p>
<? } ?>
<p>
<input type="radio" name="st" onclick="window.location=('search.php')" <?=$checkarray['posts']?> id="srchtypeposts"/> <label for="srchtypeposts">帖子</label>
<input type="radio" name="st" onclick="window.location=('search.php?srchtype=trade')" <?=$checkarray['trade']?> id="srchtypetrade"/> <label for="srchtypetrade">商品</label>
<? if($qihoo['status']) { ?><input type="radio" name="st" onclick="window.location=('search.php?srchtype=qihoo')" <?=$checkarray['qihoo']?> id="srchtypeqihoo" /> <label for="srchtypeqihoo">奇虎全文</label><? } ?>
<input type="radio" name="st" onclick="window.location=('search.php?srchtype=threadsort')" <?=$checkarray['threadsort']?> id="srchtypesort"/> <label for="srchtypesort">分类信息</label>
</p><? $policymsgs = $p = ''; if(is_array($creditspolicy['search'])) { foreach($creditspolicy['search'] as $id => $policy) { ?><?
$policymsg = <<<EOF
EOF;
if($extcredits[$id]['img']) {
$policymsg .= <<<EOF
{$extcredits[$id]['img']}
EOF;
}
$policymsg .= <<<EOF
{$extcredits[$id]['title']} {$policy} {$extcredits[$id]['unit']}
EOF;
?><? $policymsgs .= $p.$policymsg;$p = ', '; } } if($policymsgs) { ?><p>每进行一次搜索将扣除 <?=$policymsgs?></p><? } if($srchtype != 'qihoo') { ?>
<div id="search_option" <? if($checkarray['posts']) { ?>style="display: none;"<? } ?>>
<hr class="shadowline"/>
<h3>搜索选项</h3>
<table summary="搜索" cellspacing="0" cellpadding="0" class="formtable">
<? if($srchtype == 'threadsort') { ?>
<tr>
<th><label for="typeid">分类信息</label></th>
<td>
<select name="sortid" onchange="ajaxget('post.php?action=threadsorts&sortid='+this.options[this.selectedIndex].value+'&operate=1&sid=<?=$sid?>', 'threadsorts', 'threadsortswait')">
<option value="0">无</option><?=$threadsorts?>
</select>
<span id="threadsortswait"></span>
</td>
</tr>
<tbody id="threadsorts"></tbody>
<? } if($checkarray['posts'] || $srchtype == 'trade') { ?>
<tr>
<td>作者</th>
<td><input type="text" id="srchname" name="srchuname" size="45" maxlength="40" class="txt" /></td>
</tr>
<tr>
<td>主题范围</td>
<td>
<label><input type="radio" name="srchfilter" value="all" checked="checked" /> 全部主题</label>
<label><input type="radio" name="srchfilter" value="digest" /> 精华主题</label>
<label><input type="radio" name="srchfilter" value="top" /> 置顶主题</label>
</td>
</tr>
<? } if($checkarray['posts']) { ?>
<tr>
<td>特殊主题</td>
<td>
<label><input type="checkbox" name="special[]" value="1" /> 投票主题</label>
<label><input type="checkbox" name="special[]" value="2" /> 商品主题</label>
<label><input type="checkbox" name="special[]" value="3" /> 悬赏主题</label>
<label><input type="checkbox" name="special[]" value="4" /> 活动主题</label>
<label><input type="checkbox" name="special[]" value="5" /> 辩论主题</label>
<label><input type="checkbox" name="special[]" value="6" /> 视频主题</label>
</td>
</tr>
<? } if($srchtype == 'trade') { ?>
<tr>
<td>商品类别</td>
<td>
<select name="srchtypeid"><option value="">全部</option><? if(is_array($tradetypes)) { foreach($tradetypes as $typeid => $typename) { ?><option value="<?=$typeid?>"><?=$typename?></option><? } } ?></select>
</td>
</tr>
<? } if($checkarray['posts'] || $srchtype == 'trade') { ?>
<tr>
<th><label for="srchfrom">搜索时间</label></th>
<td>
<select id="srchfrom" name="srchfrom">
<option value="0">全部时间</option>
<option value="86400">1 天</option>
<option value="172800">2 天</option>
<option value="604800">1 周</option>
<option value="1296000">1 个月</option>
<option value="5184000">3 个月</option>
<option value="8640000">6 个月</option>
<option value="31536000">1 年</option>
</select>
<label><input type="radio" name="before" value="" checked="checked" /> 以内</label>
<label><input type="radio" name="before" value="1" /> 以前</label>
</td>
</tr>
<tr>
<td><label for="orderby">排序类型</label></td>
<td>
<select id="orderby1" name="orderby">
<option value="lastpost" selected="selected">回复时间</option>
<option value="dateline">发布时间</option>
<option value="replies">回复数量</option>
<option value="views">浏览次数</option>
</select>
<select id="orderby2" name="orderby" style="position: absolute; display: none" disabled>
<option value="dateline" selected="selected">发布时间</option>
<option value="price">商品现价</option>
<option value="expiration">剩余时间</option>
</select>
<label><input type="radio" name="ascdesc" value="asc" /> 按升序排列</label>
<label><input type="radio" name="ascdesc" value="desc" checked="checked" /> 按降序排列</label>
</td>
</tr>
<? } ?>
<tr>
<td valign="top"><label for="srchfid">搜索范围</label></td>
<td>
<select id="srchfid" name="srchfid[]" multiple="multiple" size="10" style="width: 26em;">
<option value="all"<? if(!$srchfid) { ?> selected="selected"<? } ?>>全部版块</option>
<?=$forumselect?>
</select>
</td>
</tr>
<? if($srchtype == 'threadsort') { ?>
<tr>
<th> </th>
<td><button class="submit" type="submit" name="searchsubmit" value="true">搜索</button></td>
</tr>
<? } ?>
</table>
</div>
<? } if(empty($srchtype) && empty($keyword)) { ?>
<hr class="shadowline"/>
<h3>便捷搜索</h3>
<table cellspacing="4" cellpadding="0" width="100%">
<tr>
<td><a href="search.php?srchfrom=3600&searchsubmit=yes">1 小时以内的新帖</a></td>
<td><a href="search.php?srchfrom=14400&searchsubmit=yes">4 小时以内的新帖</a></td>
<td><a href="search.php?srchfrom=28800&searchsubmit=yes">8 小时以内的新帖</a></td>
<td><a href="search.php?srchfrom=86400&searchsubmit=yes">24 小时以内的新帖</a></td>
</tr>
<tr>
<td><a href="search.php?srchfrom=604800&searchsubmit=yes">1 周内帖子</a></td>
<td><a href="search.php?srchfrom=2592000&searchsubmit=yes">1 月内帖子</a></td>
<td><a href="search.php?srchfrom=15552000&searchsubmit=yes">6 月内帖子</a></td>
<td><a href="search.php?srchfrom=31104000&searchsubmit=yes">1 年内帖子</a></td>
</tr>
</table>
<? } ?>
</form>
<? if(!empty($searchid) && submitcheck('searchsubmit', 1)) { if($checkarray['posts']) { ?><div class="searchlist threadlist datalist">
<div class="itemtitle s_clear">
<h1><? if($keyword) { ?>结果: <em>找到 “<span class="emfont"><?=$keyword?></span>” 相关主题 <?=$index['threads']?> 个</em><? } else { ?>结果: <em>找到相关主题 <?=$index['threads']?> 个</em><? } ?></h1>
<? if(!empty($multipage)) { ?><?=$multipage?><? } ?>
</div>
<table summary="搜索" cellspacing="0" cellpadding="0" width="100%" class="datatable">
<thead>
<tr class="colplural">
<td class="icon"> </td>
<th>标题</th>
<td class="forum">版块</td>
<td class="author">作者</td>
<td class="nums">回复/查看</td>
<td class="lastpost"><cite>最后发表</cite></td>
</tr>
</thead><? if(is_array($threadlist)) { foreach($threadlist as $thread) { ?><tbody>
<tr>
<td class="icon">
<? if($thread['special'] == 1) { ?>
<img src="<?=IMGDIR?>/pollsmall.gif" alt="投票" />
<? } elseif($thread['special'] == 2) { ?>
<img src="<?=IMGDIR?>/tradesmall.gif" alt="商品" />
<? } elseif($thread['special'] == 3) { ?>
<img src="<?=IMGDIR?>/rewardsmall.gif" alt="悬赏" />
<? } elseif($thread['special'] == 4) { ?>
<img src="<?=IMGDIR?>/activitysmall.gif" alt="活动" />
<? } elseif($thread['special'] == 5) { ?>
<img src="<?=IMGDIR?>/debatesmall.gif" alt="辩论" />
<? } elseif($thread['special'] == 6) { ?>
<img src="<?=IMGDIR?>/videosmall.gif" alt="视频" />
<? } else { ?>
<?=$thread['icon']?>
<? } ?>
</td>
<th class="subject">
<label>
<? if($thread['digest'] > 0) { ?>
<img src="<?=IMGDIR?>/digest_<?=$thread['digest']?>.gif" alt="精华 <?=$thread['digest']?>" />
<? } ?>
</label>
<a href="viewthread.php?tid=<?=$thread['tid']?>&highlight=<?=$index['keywords']?>" target="_blank" <?=$thread['highlight']?>><?=$thread['subject']?></a>
<? if($thread['attachment'] == 2) { ?>
<img src="images/attachicons/image_s.gif" alt="图片附件" class="attach" />
<? } elseif($thread['attachment'] == 1) { ?>
<img src="images/attachicons/common.gif" alt="附件" class="attach" />
<? } if($thread['multipage']) { ?><span class="threadpages"><?=$thread['multipage']?></span><? } ?>
</th>
<td class="forum"><a href="forumdisplay.php?fid=<?=$thread['fid']?>"><?=$thread['forumname']?></a></td>
<td class="author">
<cite>
<? if($thread['authorid'] && $thread['author']) { ?>
<a href="space.php?uid=<?=$thread['authorid']?>"><?=$thread['author']?></a>
<? } else { if($forum['ismoderator']) { ?><a href="space.php?uid=<?=$thread['authorid']?>">匿名</a><? } else { ?>匿名<? } } ?>
</cite>
<em><?=$thread['dateline']?></em>
</td>
<td class="nums"><strong><?=$thread['replies']?></strong> / <em><?=$thread['views']?></em></td>
<td class="lastpost">
<cite><? if($thread['lastposter']) { ?><a href="space.php?username=<?=$thread['lastposterenc']?>"><?=$thread['lastposter']?></a><? } else { ?>匿名<? } ?></cite>
<em><a href="redirect.php?tid=<?=$thread['tid']?>&goto=lastpost<?=$highlight?>#lastpost"><?=$thread['lastpost']?></a></em>
</td>
</tr>
</tbody><? } } if(empty($threadlist)) { ?>
<tbody><tr><th colspan="6">对不起,没有找到匹配结果。</th></tr></tbody>
<? } ?>
</table>
<? if(!empty($multipage)) { ?><div class="pages_btns s_clear"><?=$multipage?></div><? } ?>
</div>
<? } elseif($checkarray['threadsort']) { ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<div id="nav">
<a href="<?=$indexname?>"><?=$bbname?></a> » 分类信息
</div>
<div id="wrap" class="wrap s_clear">
<div class="main">
<div class="content">
<div class="searchlist threadlist datalist">
<div class="itemtitle s_clear">
<h1>结果: <em>找到相关主题 <?=$index['threads']?> 个</em></h1>
<? if(!empty($multipage)) { ?><?=$multipage?><? } ?>
</div>
<table summary="搜索" cellspacing="0" cellpadding="0" width="100%" class="datatable">
<thead>
<tr class="colplural">
<td class="icon"> </td>
<td>标题</td><? if(is_array($optionlist)) { foreach($optionlist as $var) { ?><td style="width: 10%"><?=$var?></td><? } } ?><td style="width: 15%">发布时间</td>
</tr>
</thead>
<? if($resultlist) { if(is_array($resultlist)) { foreach($resultlist as $tid => $value) { ?><tbody>
<tr>
<td class="icon"><?=$value['icon']?></td>
<th><a href="viewthread.php?tid=<?=$tid?>" target="_blank"><?=$value['subject']?></a></th><? if(is_array($value['option'])) { foreach($value['option'] as $var) { ?><td style="width: 10%"><? if($var) { ?><?=$var?><? } else { ?> <? } ?></td><? } } ?><td style="width: 15%"><?=$value['dateline']?></td>
</tr>
</tbody><? } } } else { ?>
<tr><td colspan="<?=$colspan?>">对不起,没有找到匹配结果。</td></tr>
<? } ?>
</table>
<? if(!empty($multipage)) { ?><div class="pages_btns s_clear"><?=$multipage?></div><? } ?>
</div>
</div>
</div>
</div>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html><? } } ?>
</div>
<script type="text/javascript">
<? if($sortid) { ?>
ajaxget('post.php?action=threadsorts&sortid=<?=$sortid?>&operate=1&inajax=1', 'threadsorts', 'threadsortswait');
<? } ?>
</script>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_search.tpl.php
|
PHP
|
asf20
| 61,513
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied'); ?>
#modlayer { position: absolute; right: 0; padding: 12px; width: 275px; background-color: #FFF; border: 4px solid #7FCAE2; }
#modlayer a { color: #09C; }
#modlayer label { float: right; margin-top: 5px; }
#modcount { padding: 0 2px; font-size: 24px; font-weight: 400; color: #F60; }
#modlayer .collapse { position: absolute; right: 0; top: 5px; padding: 0 5px; }
#modlayer.collapsed { margin-right: -23px; padding: 0; width: 27px; height: 35px; border: none; background: #F60; overflow: hidden; }
#modlayer.collapsed #modcount { display: block; position: absolute; left: 0; top: 0; z-index: 999; width: 27px; height: 35px; border-color: #09C; background-color: #09C; color: #FFF; font-size: 12px; text-align: center; line-height: 35px; cursor: pointer; }
.listtopicadmin { height: 200px; border-top: 1px solid #C5DAEB; }
.listtopicadmin li { *overflow:hidden; *margin-bottom: -2px; height: 28px; line-height: 18px; border-top: 1px solid #FFF; border-bottom: 1px solid #C5DAEB; zoom: 1; }
.listtopicadmin .currentopt { height: auto; }
.detailopt { visibility: hidden; overflow: hidden; white-space: nowrap; }
.currentopt .detailopt { visibility: visible; }
.detailopt p .txt { width: 100px; }
.detailopt span .txt { width: 18px; border-right: none; }
.detailopt a { float: left; text-indent: -999px; margin-right: 3px; width: 22px; height: 20px; text-align: center; }
.detailopt_bold, .detailopt_italic, .detailopt_underline { border: 1px solid #F1F5FA; outline: none; }
.detailopt .current { border: 1px solid #999; background-color: #FFF; }
.listtopicadmin table { width: 100%; }
.listtopicadmin td { vertical-align: top; }
.listtopicadmin .labeltxt { display: block; cursor: pointer; width: 100%; background: url(<?=IMGDIR?>/arrow_down.gif) no-repeat 100% 8px; }
.currentopt .labeltxt { float: left; cursor: default; width: 45px; background: none; color: #09C; }
.listtopicadmin .checkbox { margin-top: 3px; *margin-top: -2px; }
.listtopicadmin img { vertical-align: middle; }
.tah_fixiesel { overflow: hidden; white-space: nowrap; width: 217px; *border-right: 1px solid <?=INPUTBORDER?>; }
.tah_fixiesel select { width: 160px; *width: expression(this.offsetWidth > 180 ? 'auto':'180'); }
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_css_topicadmin.tpl.php
|
PHP
|
asf20
| 2,272
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/my.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/header.htm', 1250676277, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/my.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/personal_navbar.htm', 1250676277, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/my.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/footer.htm', 1250676277, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/my.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/css_script.htm', 1250676277, '1', './templates/default')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\././templates/default/my.htm', 'D:\Website\51shangcheng.cn\htdocs\././templates/default/jsmenu.htm', 1250676277, '1', './templates/default')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<div id="nav">
<a href="<?=$indexname?>"><?=$bbname?></a> »
<? if($srchfid) { ?><a href="my.php?item=<?=$item?><?=$extra?>"><? } if(empty($item) || in_array($item, array('threads', 'posts', 'polls', 'tradestats', 'selltrades', 'buytrades', 'tradethreads', 'reward', 'activities', 'debate', 'video'))) { ?>我的帖子
<? } elseif($item == 'favorites') { ?>我的收藏
<? } elseif($item == 'subscriptions') { ?>我的订阅
<? } elseif($item == 'buddylist') { ?>我的好友<? } if($srchfid) { ?></a> » <?=$forumname?><? } ?>
</div>
<div id="wrap" class="wrap with_side s_clear">
<div class="main">
<div class="content">
<? if($item != 'buddylist') { ?>
<div class="itemtitle s_clear">
<? if(empty($item) || in_array($item, array('threads', 'posts', 'polls', 'tradestats', 'selltrades', 'buytrades', 'tradethreads', 'reward', 'activities', 'debate', 'video'))) { ?>
<h1>我的帖子</h1>
<ul>
<li<? if(empty($item) || $item == 'threads') { ?> class="current"<? } ?>><a href="my.php?item=threads<?=$extrafid?>" hidefocus="true"><span>主题</span></a></li>
<li<? if($item == 'posts') { ?> class="current"<? } ?>><a href="my.php?item=posts<?=$extrafid?>" hidefocus="true"><span>回复</span></a></li>
<li class="pipe">|</li>
<li id="polls" onmouseover="showMenu(this.id)"<? if($item == 'polls') { ?> class="current"<? } ?>><a href="my.php?item=polls&type=poll<?=$extrafid?>" hidefocus="true" class="dropmenu"><span>投票</span></a></li>
<li id="rewards" onmouseover="showMenu(this.id)"<? if($item == 'reward') { ?> class="current"<? } ?>><a href="my.php?item=reward&type=stats<?=$extrafid?>" hidefocus="true" class="dropmenu"><span>悬赏</span></a></li>
<li id="activities" onmouseover="showMenu(this.id)"<? if($item == 'activities') { ?> class="current"<? } ?>><a href="my.php?item=activities&type=orig<?=$extrafid?>" hidefocus="true" class="dropmenu"><span>活动</span></a></li>
<li id="debates" onmouseover="showMenu(this.id)"<? if($item == 'debate') { ?> class="current"<? } ?>><a href="my.php?item=debate&type=orig<?=$extrafid?>" hidefocus="true" class="dropmenu"><span>辩论</span></a></li>
<? if($videoopen || $tradeopen) { ?><li class="pipe">|</li><? } if($videoopen) { ?><li<? if($item == 'video') { ?> class="current"<? } ?>><a href="my.php?item=video&type=orig<?=$extrafid?>" hidefocus="true"><span>视频</span></a></li><? } if($tradeopen) { ?><li id="trades" onmouseover="showMenu(this.id)"<? if(in_array($item, array('tradestats', 'selltrades', 'buytrades', 'tradethreads'))) { ?> class="current"<? } ?>><a href="my.php?item=tradestats<?=$extrafid?>" hidefocus="true" class="dropmenu"><span>商品</span></a></li><? } ?>
</ul>
<? } elseif($item == 'favorites') { ?>
<h1>我的收藏</h1>
<ul>
<li<? if($type == 'thread') { ?> class="current"<? } ?>><a href="my.php?item=favorites&type=thread<?=$extrafid?>"><span>收藏的主题</span></a></li>
<li<? if($type == 'forum') { ?> class="current"<? } ?>><a href="my.php?item=favorites&type=forum<?=$extrafid?>"><span>收藏的版块</span></a></li>
</ul>
<? } elseif($item == 'subscriptions') { ?>
<h1>我的订阅</h1>
<? } ?>
</div>
<? if($forumname) { ?><div class="c_header"><strong>版块范围: <?=$forumname?></strong> <a href="my.php?item=<?=$item?><? if($type) { ?>&type=<?=$type?><? } ?>" class="lightlink">(显示全部)</a></div><? } } ?>
<div class="<? if(!in_array($item, array('tradestats', 'selltrades', 'buytrades', 'tradethreads'))) { ?>threadlist <? } ?>datalist">
<? if(empty($item) || $item == 'threads') { include template('my_threads'); } elseif($item == 'posts') { include template('my_posts'); } elseif($item == 'polls') { include template('my_polls'); } elseif(in_array($item, array('tradestats', 'selltrades', 'buytrades', 'tradethreads'))) { if($item == 'tradestats') { include template('my_tradestats'); } elseif($item == 'selltrades' || $item == 'buytrades') { include template('my_trades'); } elseif($item == 'tradethreads') { include template('my_tradethreads'); } } elseif($item == 'reward') { include template('my_rewards'); } elseif($item == 'activities') { include template('my_activities'); } elseif($item == 'debate') { include template('my_debate'); } elseif($item == 'video') { include template('my_video'); } elseif($item == 'favorites') { include template('my_favorites'); } elseif($item == 'subscriptions') { include template('my_subscriptions'); } elseif($item == 'buddylist') { include template('my_buddylist'); } ?>
</div>
<ul class="popupmenu_popup titlemenu_popup" id="polls_menu" style="display: none">
<li <? if($type == 'poll') { ?> class="current"<? } ?>><a href="my.php?item=polls&type=poll<?=$extrafid?>">我发起的</a></li>
<li <? if($type == 'join') { ?> class="current"<? } ?>><a href="my.php?item=polls&type=join<?=$extrafid?>">我参与的</a></li>
</ul>
<ul class="popupmenu_popup titlemenu_popup" id="rewards_menu" style="display: none">
<li <? if($type == 'question') { ?> class="current"<? } ?>><a href="my.php?item=reward&type=question<?=$extrafid?>">我发起的</a></li>
<li <? if($type == 'answer') { ?> class="current"<? } ?>><a href="my.php?item=reward&type=answer<?=$extrafid?>">我参与的</a></li>
<li <? if($type == 'stats') { ?> class="current"<? } ?>><a href="my.php?item=reward&type=stats<?=$extrafid?>">统计</a></li>
</ul>
<ul class="popupmenu_popup titlemenu_popup" id="activities_menu" style="display: none">
<li <? if($type == 'orig') { ?> class="current"<? } ?>><a href="my.php?item=activities&type=orig<?=$extrafid?>">我发起的</a></li>
<li <? if($type == 'apply') { ?> class="current"<? } ?>><a href="my.php?item=activities&type=apply<?=$extrafid?>">我参与的</a></li>
</ul>
<ul class="popupmenu_popup titlemenu_popup" id="debates_menu" style="display: none">
<li <? if($item == 'debate' && $type == 'orig') { ?> class="current"<? } ?>><a href="my.php?item=debate&type=orig<?=$extrafid?>">我发起的</a></li>
<li <? if($item == 'debate' && $type == 'reply') { ?> class="current"<? } ?>><a href="my.php?item=debate&type=reply<?=$extrafid?>">我参与的</a></li>
</ul>
<ul class="popupmenu_popup titlemenu_popup" id="trades_menu" style="display: none">
<li <? if($item == 'buytrades') { ?> class="current"<? } ?>><a href="my.php?item=buytrades<?=$extrafid?>">买</a></li>
<li <? if($item == 'tradethreads') { ?> class="current"<? } ?>><a href="my.php?item=tradethreads<?=$extrafid?>">卖</a></li>
<li <? if($item == 'selltrades') { ?> class="current"<? } ?>><a href="my.php?item=selltrades&filter=all">卖家交易记录</a></li>
<li><a href="eccredit.php?uid=<?=$discuz_uid?>" target="_blank">信用评价</a></li>
<li <? if($item == 'tradestats') { ?> class="current"<? } ?>><a href="my.php?item=tradestats<?=$extrafid?>">交易记录</a></li>
</ul>
</div>
</div>
<div class="side"><h2>个人中心</h2>
<div class="sideinner">
<ul class="tabs">
<? if($regverify == 1 && $groupid == 8) { ?>
<li><a href="member.php?action=emailverify">重新验证 Email</a></li>
<? } if($regverify == 2 && $groupid == 8) { ?>
<li><a href="memcp.php?action=validating">账户审核</a></li>
<li><a href="memcp.php?action=profile&typeid=2">个人资料</a></li>
<? } else { ?>
<li><a href="memcp.php?action=profile&typeid=2">个人资料</a></li>
<li><a href="pm.php">短消息</a></li>
<li><a href="my.php?item=buddylist&<?=$extrafid?>">我的好友</a></li>
<? if($regstatus > 1) { ?><li><a href="invite.php">邀请注册</a></li><? } if($ucappopen['UCHOME']) { ?>
<li><a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">我的空间</a></li>
<? } elseif($ucappopen['XSPACE']) { ?>
<li><a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">我的空间</a></li>
<? } } ?>
</ul>
</div>
<? if($groupid != 8) { ?>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="my.php?item=threads<?=$extrafid?>">我的帖子</a></li>
<li><a href="my.php?item=favorites&type=thread<?=$extrafid?>">我的收藏</a></li>
<li><a href="my.php?item=subscriptions<?=$extrafid?>">我的订阅</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="memcp.php?action=credits">积分</a></li>
<li><a href="memcp.php?action=usergroups">用户组&权限</a></li>
<li><a href="task.php">论坛任务</a></li>
<? if($medalstatus) { ?><li><a href="medal.php">勋章</a></li><? } if($magicstatus) { ?><li><a href="magic.php">道具</a></li><? } ?>
</ul>
</div>
<? } ?>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="memcp.php?action=profile&typeid=5">论坛个性化设定</a></li>
<li><a href="memcp.php?action=profile&typeid=1">密码和安全问题</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li>积分: <?=$credits?></li><? if(is_array($extcredits)) { foreach($extcredits as $id => $credit) { ?><li>
<? if($BASESCRIPT == 'invite.php' && $id == $creditstransextra['4'] ||
$BASESCRIPT == 'memcp.php' && $id == $creditstrans) { ?>
<?=$credit['title']?>: <span style="font-weight: bold;"><?=$GLOBALS['extcredits'.$id]?></span> <?=$credit['unit']?>
<? } else { ?>
<?=$credit['title']?>: <?=$GLOBALS['extcredits'.$id]?> <?=$credit['unit']?>
<? } ?>
</li><? } } ?></ul>
</div></div>
</div>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/1_my.tpl.php
|
PHP
|
asf20
| 34,079
|
<? if(!defined('IN_DISCUZ')) exit('Access Denied');
0
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/memcp_usergroups.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/header.htm', 1253439394, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/memcp_usergroups.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/personal_navbar.htm', 1253439394, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/memcp_usergroups.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/footer.htm', 1253439394, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/memcp_usergroups.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/css_script.htm', 1253439394, '2', './templates/uchome')
|| checktplrefresh('D:\Website\51shangcheng.cn\htdocs\./templates/default/memcp_usergroups.htm', 'D:\Website\51shangcheng.cn\htdocs\./templates/default/jsmenu.htm', 1253439394, '2', './templates/uchome')
;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?=$charset?>" />
<title><?=$navtitle?> <?=$bbname?> <?=$seotitle?> - Powered by Discuz!</title>
<?=$seohead?>
<meta name="keywords" content="<?=$metakeywords?><?=$seokeywords?>" />
<meta name="description" content="<?=$metadescription?> <?=$bbname?> <?=$seodescription?> - Discuz! Board" />
<meta name="generator" content="Discuz! <?=$version?>" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="<?=$bbname?>" href="<?=$boardurl?>archiver/" />
<?=$rsshead?>
<?=$extrahead?>
<style type="text/css">
@import url(forumdata/cache/style_<?=STYLEID?>_common.css?<?=VERHASH?>);
<? if(CURSCRIPT == 'viewthread') { ?>
@import url(forumdata/cache/style_<?=STYLEID?>_viewthread.css?<?=VERHASH?>);
<? } if(CURSCRIPT == 'forumdisplay' && $forum['ismoderator']) { include template('css_topicadmin'); } elseif(CURSCRIPT == 'viewthread') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
#f_post td { padding-top: 15px; padding-bottom: 20px; vertical-align: top; }
#f_post p, .fastcheck { margin: 5px 0; }
#f_post .txtarea { margin: -1px 0 0; width: 596px; height: 120px; border-color: <?=INPUTBORDERDARKCOLOR?> <?=INPUTBORDER?> <?=INPUTBORDER?> <?=INPUTBORDERDARKCOLOR?>; border-top: none; overflow: auto; }
.defaultpost { height: auto !important; height:<?=$_DCACHE['custominfo']['postminheight']?>px; min-height:<?=$_DCACHE['custominfo']['postminheight']?>px !important; }
.signatures { max-height: <?=$maxsigrows?>px; }
* html .signatures { height: expression(signature(this)); }
.t_msgfontfix { min-height: 100px; }
* html .t_msgfontfix { height: 100px; overflow: visible; }
<? if($thread['special'] == 5 && $stand != '') { ?>
.stand_select .postauthor { background: #EBF2F8; }
.stand_select .itemtitle, .stand_select .solidline { margin: 15px 15px 10px; }
.stand_select h2 { float: left; }
<? } } elseif(CURSCRIPT == 'pm') { ?>
#pm_content h1 { float: left; font-size: 14px; }
.postpm { float: right; color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
.pm_header { padding: 6px; border: solid <?=COMMONBORDER?>; border-width: 1px 0; }
.pm_header #pm_search { float: right; }
.pm_list { }
.pm_list li { position: relative; *margin-top: -2px; padding: 10px 140px 10px 75px; min-height: 48px; _height: 48px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.pm_list li .avatar { position: absolute; left: 5px; top: 8px; }
.pm_list .self .avatar { left: auto; right: 75px; }
.pm_list p cite, .pm_list p .time { color: <?=MIDTEXT?>; }
.pm_list p cite { display: block; width: 260px; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pm_list p cite.new { padding-left: 25px; background: url(<?=IMGDIR?>/notice_newpm.gif) no-repeat 0 3px; }
.pm_list p cite a { margin-right: 5px; }
.pm_list li .action { position: absolute; right: 10px; top: 50%; margin-top: -18px; display: block; width: 50px; height: 36px; }
.pm_list li .action a { display: block; text-decoration: underline; }
.pm_list li .action a.delete { color: <?=HIGHLIGHTLINK?>; }
.pm_list li .topact { top: 8px; margin-top: 0; }
.sticky { display: block !important; }
.pm_list li.pm_date { padding: 5px 0 5px 75px; min-height: 0; }
#pm_list ul.onerror { padding: 20px 0 0 95px; background-position: 75px 22px; }
#pmlist .summary a { color: <?=HIGHLIGHTLINK?>; }
.pmreply { margin: 1em 0; padding-left: 75px; }
.pmreply textarea { width: 510px; }
.pmback { width: 70px; padding-left: 15px; w\idth: 55px; background: url(<?=IMGDIR?>/arrow_left.gif) no-repeat 0 50%; }
#buddies li { float: left; width: 8em; height: 1.6em; overflow: hidden; white-space: nowrap; }
.newpm_notice { padding: 0 0 10px 75px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.newpm_notice a { color: <?=HIGHLIGHTLINK?>; }
.quote { margin: 10px 0; padding: 10px 10px 10px 65px; }
.quote { padding-bottom: 5px; background: #F9F9F9 url(<?=IMGDIR?>/icon_quote_s.gif) no-repeat 20px 6px; }
.quote blockquote { margin: 0; padding: 0 65px 5px 0; background: url(<?=IMGDIR?>/icon_quote_e.gif) no-repeat 100% 100%; line-height: 1.6em; }
.blockall { margin-bottom: 10px; padding: 10px 0; background: <?=SPECIALBG?>; text-align: center; color: <?=LIGHTTEXT?>; }
.blockall a { color: <?=HIGHLIGHTLINK?>; font-size: 1.17em; }
.blacklist li a, .blacklist li strong { float: left; }
.blacklist .remove { margin: 4px 0 0 5px; width: 12px; height: 12px; background: url(<?=IMGDIR?>/close.gif) no-repeat 100% 50px; line-height: 100px; overflow: hidden; }
.blacklist .hover .remove { background-position: 100% 0; }
.blacklist .remove:hover { background-position: 100% -12px; }
.allblocked { padding-bottom: 10px; width: 100%!important; border-bottom: 1px solid <?=COMMONBORDER?>; }
.allblocked a { margin-left: 10px; color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'magic') { ?>
.magicprice { color: <?=NOTICETEXT?>; font-weight: 700; font-size: 16px; }
.magic_yes { color: #080; font-weight: 700; }
.magic_no { color: #F00; font-weight: 700; }
.magicmain { height: 180px; overflow-y: auto; }
.magicinfo { margin-bottom: 10px; width: 100%; }
.magicinfo td { padding: 3px 0; }
.magicinfo h5 { font-size: 14px; }
.mymagic { margin-bottom: 30px; }
.mymagic .inlinelist li { float: left; margin-top: 10px; width: 50%; }
.mymagic .magicimg { float:left; margin-right: 10px; width: 25%; }
.mymagic .magicdetail { float:left; width: 65%; }
.mymagic h5 a { text-decoration: underline; color: <?=HIGHLIGHTLINK?>; }
.mymagic p { margin: 3px 0; }
.mymagic .inlinelist .clear { float: none; clear: both; margin: 0; width: 100%; }
.magicnum { margin: 10px 0; }
.magicnum p { margin-top: 5px; }
.fixedbtn { position: absolute; bottom: 15px; }
<? } elseif(CURSCRIPT == 'medal') { ?>
.medallist { overflow: hidden; margin-bottom: 30px; }
.medallist li { margin-bottom: 15px; width: 24.9%; }
.medalimg { float: left; margin: 5px; width: 15%; }
.medalinfo { float: left; width: 75%; }
.medalinfo p { color: <?=MIDTEXT?>; }
.medalexp { margin-left: 8px; color: <?=LIGHTTEXT?>; font-weight: 400; }
.medallist .clear { overflow: hidden; float: none; clear: both; margin: 0; width: 100%; height: 1px; }
.medalp { margin-bottom: 10px; }
<? } elseif(CURSCRIPT == 'invite') { ?>
.invitecode { border: none !important; background-color: transparent; font-family: "Courier New", Courier, monospace, serif; }
input.marked { background: transparent url(<?=IMGDIR?>/check_right.gif) no-repeat 100% 50%; }
.expiration .invitecode { text-decoration: line-through; color: red; }
<? } elseif(CURSCRIPT == 'search') { ?>
.searchform { position: relative; margin: 0 5px 10px; padding: 30px 10px 20px 160px; border-top: 5px solid <?=WRAPBG?>; background: <?=SPECIALBG?>; }
.searchlabel { position: absolute; left: 0; _left: -160px; top: 30px; width: 150px; text-align: center; font-weight: 700; font-size: 26px; color: <?=HIGHLIGHTLINK?>; line-height: 30px; }
.searchlabel strong { display: block; font-size: 14px; color: <?=MIDTEXT?>; font-weight: 400; text-align: center; }
.searchform h3 { margin: 10px 2px; font-size: 14px; }
.searchkey { margin-bottom: 1em; zoom: 1; }
.searchkey #searchsubmit { margin: 0 16px 0 10px; }
* html #searchsubmit { height: 21px; line-height: 19px; }
*+html #searchsubmit { height: 21px; line-height: 19px; }
.searchkey a { background: url(images/common/editor.gif) 0 -181px no-repeat; padding:2px 0 2px 22px; color: <?=HIGHLIGHTLINK?>; }
.searchlist { margin: 5px 20px; }
.searchlist h1 { font-size: 14px; }
.searchlist h1 em { font-weight: 400; }
#srchfid optgroup, #moveto optgroup { font-style: normal; font-weight: 400; font-size: 12px; }
<? } elseif(CURSCRIPT == 'faq' || CURSCRIPT == 'announcement') { ?>
.faqmessage, .announcemsg { margin-bottom: 10px; font-size: 14px; padding-bottom: 20px; border-bottom: 1px solid <?=COMMONBORDER?>; }
.faqmessage ul, .announcemsg ul { padding-left: 1.6em; }
.faq li { margin-left: 2em; }
.faq ul li { list-style-type: disc; }
.t_msgfont ul.o li, .faq ol li { list-style-type: decimal; }
.author { margin-bottom: 5px; font-size: 12px; color: <?=LIGHTTEXT?>; }
<? } elseif(CURSCRIPT == 'memcp' || CURSCRIPT == 'credits') { if(CURSCRIPT == 'memcp') { ?>
.avatararea { float: left; margin-right: 20px; width: 120px; }
.avatararea a { display:block; margin: 15px 0; width: 119px; height: 31px; line-height: 31px; text-align: center; background: url(<?=IMGDIR?>/bigbtn.gif) no-repeat; font-size: 14px; }
.avatararea a:hover { text-decoration: none; }
#avatarctrl { float: left; }
<? } ?>
.creditstable {}
.creditstable td { padding: 10px 5px !important; }
.cre_title { width: 50px; }
.cre_opt { width: 150px; }
.cre_arrow { width: 30px; }
.cre_btn { margin-top: 10px; }
<? } elseif(CURSCRIPT == 'my' && $item == 'buddylist') { ?>
.friendavatar { float: left; margin: 10px 10px 10px 0; }
.friendinfo { overflow: hidden; margin: 10px 10px 10px 0; }
* html .friendinfo { margin-left: 70px; }
.friendinfo p { color: <?=LIGHTTEXT?> }
.friendinfo a { text-decoration: none !important; }
.friendinfo a:hover { text-decoration: underline !important; }
.friendinfo h5 a { font-size: 14px; color: <?=HIGHLIGHTLINK?>; }
.friendctrl { margin-top :5px; }
.friendctrl a { color: <?=TABELTEXT?>; }
.buddyname { margin-bottom: 8px; line-height: 16px; }
.online_buddy { margin-left: 8px; vertical-align: middle; }
<? } elseif(CURSCRIPT == 'modcp') { if($forum['ismoderator']) { include template('css_topicadmin'); } ?>
.notelist { margin-top: -1px; border-top: 1px solid <?=COMMONBORDER?>; border-bottom: 1px solid <?=COMMONBORDER?>; zoom: 1; }
.notelist .c_header, .notelistsubmit { margin: 10px; }
.notelistbg, .notelistbg .c_header h3, .notelistbg .closenode .c_header_ctrlbtn { background-color: <?=INTERLEAVECOLOR?>; }
.notelistmsg { overflow: hidden; margin: 0 10px 10px 33px; }
.notelistmsg .submit { margin-top: 10px; }
.notelistmsg h3 { margin: 30px 0 5px; color: <?=HIGHLIGHTLINK?>; }
.datalist .announcetable { width: 600px; }
.datalist .announcetable, .datalist .announcetable th, .datalist .announcetable td { padding: 3px 0; border: none; }
.datalist .announcetable th { font-weight: 700; }
.anno_subject .txt { width: 270px; *width: 220px; }
.anno_type select { width: 80px; }
.anno_time .txt { width: 80px; }
.anno_msg .txtarea, .anno_msg .txt { width: 590px; }
.anno_msg .txtarea { margin-top: -1px; border-top-color: <?=INPUTBORDER?>; }
.schresult .formtable th { padding: 5px 10px 5px 20px; width: 60px; }
.schresult .formtable td a{ color: <?=HIGHLIGHTLINK?>; font-weight: 700; }
<? } elseif(CURSCRIPT == 'stats' || CURSCRIPT == 'member') { ?>
.hasscrolltable { overflow: hidden; zoom: 1; * padding-bottom: 9px; }
.datalist .scrollfixedtable { float: left; margin-top: 1px; margin-left: 1px; width: 20%; }
.scrolltable { float:left; width: 79%; overflow-x: scroll; }
.scrolltable table { table-layout: fixed; margin: 1px 0 0; width: 1600px; }
.datalist .fixedtable { margin-bottom: 10px; width: 99%; text-align: right; }
.datalist .fixedtable a { text-decoration: underline; }
.datalist table a { text-decoration: underline; }
.datalist table a:hover { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'profile') { ?>
#profile .itemtitle h1 { color: <?=HIGHLIGHTLINK?>; }
#profile p { margin: 5px 0; }
.profile_side .avatar { margin: 25px 0; text-align: center; }
.profile_side ul { margin: 5px 30px; line-height: 1.6em; overflow: hidden; }
.profile_side li { margin: 5px 0; background-position: 0 50%; background-repeat: no-repeat; text-indent: 22px; }
.profile_side li.pm { background-image: url(<?=IMGDIR?>/pmto.gif); }
.profile_side li.buddy { background-image: url(<?=IMGDIR?>/addbuddy.gif); }
.profile_side li.space { background-image: url(<?=IMGDIR?>/home.gif); }
.profile_side li.searchpost { background-image: url(<?=IMGDIR?>/fastreply.gif); }
.profile_side li.magic { background-image: url(<?=IMGDIR?>/magic.gif);}
#profile_stats li { text-indent: 0; }
#profile_stats li img { float: left; margin-right: 6px; }
#uch_feed { float: right; width: 50%; }
#uch_feed li { width: 100%; height: 1.6em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#uch_feed img { margin-bottom: -4px; }
#uch_feed a { color: <?=HIGHLIGHTLINK?>; }
<? } elseif(CURSCRIPT == 'post') { ?>
* html .content { height: auto !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 0; }
* html .nojs .sim_upfile .sitenote { bottom: 161px; }
* html .nojs .sim_upfile .upfile_special { bottom: 301px; }
* html .nojs .sim_upfile .upfile { bottom: 356px; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; left: 0; width: auto; }
#floatwinnojs { position: static; }
.nojs .floatboxswf { width: 600px !important; }
.nojs .floatboxswf div { margin: 0 0 10px 11px; }
.nojs .floatbox1 { width: 100%; height: auto; }
#custominfoarea { right: 10px; left: auto; }
.nojs .specialinfo, .nojs .upfilelist { overflow-y: visible; height: auto !important; }
.popupmenu_popup, #e_popup_smilies_menu { *margin-top: 22px; }
* html .popupmenu_popup li { clear: both; float: left; }
* html .fontstyle_menu { overflow: hidden; width: 35px; }
* html .fontstyle_menu ul { width: 70px; }
* html .fontname_menu li { float: none; }
<? } if(CURSCRIPT == 'register') { ?>
* html .content { overflow-y: visible !important; }
.nojs { position: relative; left: auto; }
* html .nojs { left: 20%; }
.nojs .float { margin: 0 auto; zoom: 1; }
.nojs .moreconf { position: relative; right: -15px; left: auto; width: auto; }
* html .nojs .moreconf { position: absolute; left: 0; bottom: 55px; }
*+html .nojs .moreconf { position: absolute; left: 165px; }
#floatwinnojs { position: static; }
.nojs .loginform, .nojs .regform, .nojs .floatbox, .nojs .floatbox1 { height: auto; }
.nojs .gateform { padding-bottom: 50px; }
<? if($secqaacheck) { ?>
.regform #secanswer_menu { left: 260px; top: 176px; }
* html .regform #secanswer_menu { left: 113px; }
.regform #seccodeverify_menu { left: 340px; }
* html .regform #seccodeverify_menu { left: 193px;}
<? } else { ?>
.regform #seccodeverify_menu { left: 260px; }
* html .regform #seccodeverify_menu { left: 113px; }
<? } } ?>
</style><script type="text/javascript">var STYLEID = '<?=STYLEID?>', IMGDIR = '<?=IMGDIR?>', VERHASH = '<?=VERHASH?>', charset = '<?=$charset?>', discuz_uid = <?=$discuz_uid?>, cookiedomain = '<?=$cookiedomain?>', cookiepath = '<?=$cookiepath?>', attackevasive = '<?=$attackevasive?>', allowfloatwin = '<?=$allowfloatwin?>', creditnotice = '<? if($creditnotice) { ?><?=$creditnames?><? } ?>', <? if(in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))) { ?>gid = parseInt('<?=$thisgid?>')<? } elseif(CURSCRIPT == 'index') { ?>gid = parseInt('<?=$gid?>')<? } else { ?>gid = 0<? } ?>, fid = parseInt('<?=$fid?>'), tid = parseInt('<?=$tid?>')</script>
<script src="include/js/common.js?<?=VERHASH?>" type="text/javascript"></script>
</head>
<body id="<?=CURSCRIPT?>" onkeydown="if(event.keyCode==27) return false;">
<div id="append_parent"></div><div id="ajaxwaitid"></div>
<div id="header">
<div class="wrap s_clear">
<h2><a href="<?=$indexname?>" title="<?=$bbname?>"><?=BOARDLOGO?></a></h2>
<div id="umenu">
<? if($discuz_uid) { ?>
<cite><a href="space.php?uid=<?=$discuz_uid?>" class="noborder"><?=$discuz_userss?></a><? if($allowinvisible) { ?><span id="loginstatus"><? if(!empty($invisible)) { ?><a href="member.php?action=switchstatus" onclick="ajaxget(this.href, 'loginstatus');doane(event);">隐身</a><? } else { ?><a href="member.php?action=switchstatus" title="我要隐身" onclick="ajaxget(this.href, 'loginstatus');doane(event);">在线</a><? } ?></span><? } ?></cite>
<span class="pipe">|</span>
<a href="my.php?item=threads<? if($forum) { ?>&srchfid=<?=$forum['fid']?><? } ?>">我的帖子</a>
<? if($ucappopen['UCHOME']) { ?>
<a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">空间</a>
<? } elseif($ucappopen['XSPACE']) { ?>
<a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">空间</a>
<? } ?>
<a href="pm.php" id="pm_ntc"<? if($newpm && $_DCOOKIE['pmnum']) { ?> onmouseover="pmviewnew()" class="new" title="您有新短消息"<? } ?> target="_blank">短消息<? if($newpm && $_DCOOKIE['pmnum']) { ?><span>(<?=$_DCOOKIE['pmnum']?>)</span><? } ?></a>
<? if($taskon) { ?>
<a id="task_ntc" <? if($doingtask) { ?>href="task.php?item=doing" class="new" title="您有未完成的任务"<? } else { ?>href="task.php"<? } ?> target="_blank">论坛任务</a>
<? } ?>
<span class="pipe">|</span>
<a href="memcp.php">个人中心</a>
<? if($discuz_uid && $adminid > 1) { ?><a href="modcp.php?fid=<?=$fid?>" target="_blank">版主管理</a><? } if($discuz_uid && $adminid == 1) { ?><a href="admincp.php" target="_blank">系统设置</a><? } ?>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } elseif(!empty($_DCOOKIE['loginuser'])) { ?>
<cite><a id="loginuser" class="noborder"><?=$_DCOOKIE['loginuser']?></a></cite>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">激活</a>
<a href="logging.php?action=logout&formhash=<?=FORMHASH?>">退出</a>
<? } else { ?>
<a href="<?=$regname?>" onclick="floatwin('open_register', this.href, 600, 400, '600,0');return false;" class="noborder"><?=$reglinkname?></a>
<a href="logging.php?action=login" onclick="floatwin('open_login', this.href, 600, 400);return false;">登录</a>
<? } ?>
</div>
<div id="ad_headerbanner"><? if($admode && empty($insenz['hardadstatus']) && !empty($advlist['headerbanner'])) { ?><?=$advlist['headerbanner']?><? } ?></div>
<div id="menu">
<ul>
<? if($_DCACHE['settings']['frameon'] > 0) { ?>
<li>
<span class="frameswitch">
<script type="text/javascript">
if(top == self) {
<? if(($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))) { ?>
top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
<? } ?>
document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">分栏模式<\/a>');
} else {
document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">平板模式<\/a>');
}
</script>
</span>
</li>
<? } if(is_array($navs)) { foreach($navs as $id => $nav) { if($id == 3) { if(!empty($plugins['jsmenu'])) { ?>
<?=$nav['nav']?>
<? } if(!empty($plugins['links'])) { if(is_array($plugins['links'])) { foreach($plugins['links'] as $module) { if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?><li><?=$module['url']?></li><? } } } } } else { if(!$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)) { ?><?=$nav['nav']?><? } } } } if(in_array($BASEFILENAME, $navmns)) { $mnid = $BASEFILENAME; } elseif($navmngs[$BASEFILENAME]) { if(is_array($navmngs[$BASEFILENAME])) { foreach($navmngs[$BASEFILENAME] as $navmng) { if($navmng['0'] == array_intersect_assoc($navmng['0'], $_GET)) { $mnid = $navmng['1']; } } } } ?>
</ul>
<script type="text/javascript">
var currentMenu = $('mn_<?=$mnid?>') ? $('mn_<?=$mnid?>') : $('mn_<?=$navmns['0']?>');
currentMenu.parentNode.className = 'current';
</script>
</div>
<? if(!empty($stylejumpstatus)) { ?>
<script type="text/javascript">
function setstyle(styleid) {
str = unescape('<? echo str_replace("'", "\\'", urlencode($_SERVER['QUERY_STRING'])); ?>');
str = str.replace(/(^|&)styleid=\d+/ig, '');
str = (str != '' ? str + '&' : '') + 'styleid=' + styleid
location.href = '<?=$BASESCRIPT?>?' + str;
}
</script>
<ul id="style_switch"><? if(is_array($styles)) { foreach($styles as $id => $stylename) { ?><li<? if($id == STYLEID) { ?> class="current"<? } ?>><a href="###" onclick="setstyle(<?=$id?>)" title="<?=$stylename?>" style="background: <?=$styleicons[$id]?>;"><?=$stylename?></a></li><? } } ?></ul>
<? } ?>
</div>
</div>
<div id="nav"><a href="<?=$indexname?>"><?=$bbname?></a> » 用户组&权限</div>
<div id="wrap" class="wrap with_side s_clear">
<div class="main">
<div class="content">
<h1>用户组&权限</h1>
<div class="datalist">
<div id="list_memcp_main_c" class="c_header">
<h3 onclick="toggle_collapse('list_memcp_main', 1, 1);">您的主用户组</h3>
<div class="c_header_action">
<p class="c_header_ctrlbtn" onclick="toggle_collapse('list_memcp_main', 1, 1);">[ 展开 ]</p>
</div>
</div>
<div id="list_memcp_main">
<p class="channelinfo">主用户组决定了您在本论坛拥有哪些权限,您可以通过查看权限详细了解它</p>
<table cellspacing="0" cellpadding="0" class="datatable" style="margin-bottom:30px;">
<thead class="colplural">
<tr>
<td width="13%"></td>
<td width="11%">用户级别</td>
<td width="11%">类型</td>
<td width="20%">积分起点</td>
<td width="10%">阅读权限</td>
<td width="10%">到期时间</td>
<td>操作</td>
</tr>
</thead>
<tbody>
<tr>
<td><strong><?=$maingroup['grouptitle']?><strong></td>
<td><? showstars($maingroup['stars']); ?></td>
<td><? if($maingroup['type'] == 'system') { ?>系统用户组<? } elseif($maingroup['type']=='special') { ?>特殊用户组<? } else { ?>会员用户组<? } ?></td>
<td><? if($maingroup['type'] == 'member') { ?><?=$maingroup['creditshigher']?><? } else { ?>-<? } ?></td>
<td><?=$maingroup['readaccess']?></td>
<td><? if(empty($maingroup['expiry'])) { ?> - <? } else { ?> <?=$maingroup['expiry']?> <? } ?></td>
<td>
<a href="my.php?item=grouppermission&searchgroupid=<?=$maingroup['groupid']?>" class="lightlink">查看权限</a>
</td>
</tr>
</tbody>
</table>
</div>
<div id="list_memcp_extgroup_c" class="c_header">
<h3 onclick="toggle_collapse('list_memcp_extgroup', 1, 1);">您的扩展用户组</h3>
<div class="c_header_action">
<p class="c_header_ctrlbtn" onclick="toggle_collapse('list_memcp_extgroup', 1, 1);">[ 展开 ]</p>
</div>
</div>
<div id="list_memcp_extgroup">
<p class="channelinfo">扩展用户组是由管理员为您设置或者您付费购买的用户组,它可以让您访问更高级别的栏目</p>
<table cellspacing="0" cellpadding="0" class="datatable" style="margin-bottom:30px;">
<thead class="colplural">
<tr>
<td width="13%"></td>
<td width="11%">用户级别</td>
<td width="11%">类型</td>
<td width="20%">积分起点</td>
<td width="10%">阅读权限</td>
<td width="10%">到期时间</td>
<td>操作</td>
</tr>
</thead>
<tbody><? if(is_array($extgroups)) { foreach($extgroups as $gp) { ?><tr>
<td><strong><?=$gp['grouptitle']?><strong></td>
<td><? showstars($gp['stars']); ?></td>
<td><? if($gp['type'] == 'system') { ?>系统用户组<? } elseif($gp['type']=='special') { ?>特殊用户组<? } else { ?>会员用户组<? } ?></td>
<td><? if($gp['type'] == 'member') { ?><?=$gp['creditshigher']?><? } else { ?>-<? } ?></td>
<td><?=$gp['readaccess']?></td>
<td><? if(empty($gp['expiry'])) { ?> - <? } else { ?> <?=$gp['expiry']?> <? } ?></td>
<td>
<a href="my.php?item=grouppermission&searchgroupid=<?=$gp['groupid']?>" class="lightlink">查看权限</a>
<? if($gp['allowsetmain']) { ?> | <a href="memcp.php?action=usergroups&type=main&edit=<?=$gp['groupid']?>" onclick="floatwin('open_usergroups', this.href, 600, 410);return false;" class="lightlink">设为主组</a><? } if($switchmaingroup && $gp['type'] == 'special') { ?> | <a href="memcp.php?action=usergroups&type=extended&edit=<?=$gp['groupid']?>" onclick="floatwin('open_usergroups', this.href, 600, 410);return false;" class="lightlink">退出</a><? } ?>
</td>
</tr><? } } if(empty($extgroups)) { ?>
<tr><td colspan="9">无</td></tr>
<? } ?>
</tbody>
</table>
</div>
<div id="list_memcp_publicgroup_c" class="c_header">
<h3 onclick="toggle_collapse('list_memcp_publicgroup', 1, 1);">开放用户组</h3>
<div class="c_header_action">
<p class="c_header_ctrlbtn" onclick="toggle_collapse('list_memcp_publicgroup', 1, 1);">[ 展开 ]</p>
</div>
</div>
<div id="list_memcp_publicgroup">
<p class="channelinfo">
开放的用户组可以让您自由加入或者退出,某些用户组是收费的,您可以使用论坛货币购买
<? if(!$allowmultigroups) { ?>您目前的级别<strong> 不允许 </strong>购买任何用户组。<? } ?>
</p>
<table cellspacing="0" cellpadding="0" class="datatable" style="margin-bottom:30px;">
<thead class="colplural">
<tr>
<td width="13%"></td>
<td width="11%">用户级别</td>
<td width="11%">类型</td>
<td width="20%">积分起点</td>
<td width="10%">最短购买</td>
<td width="10%">日价格</td>
<td>操作</td>
</tr>
</thead>
<tbody><? if(is_array($publicgroups)) { foreach($publicgroups as $gp) { ?><tr>
<td><strong><?=$gp['grouptitle']?><strong></td>
<td><? showstars($gp['stars']); ?></td>
<td><? if($gp['type'] == 'system') { ?>系统用户组<? } elseif($gp['type']=='special') { ?>特殊用户组<? } else { ?>会员用户组<? } ?></td>
<td><? if($gp['type'] == 'member') { ?><?=$gp['creditshigher']?><? } else { ?>-<? } ?></td>
<td><?=$gp['minspan']?> 天</td>
<td><?=$extcredits[$creditstrans]['title']?> <?=$gp['dailyprice']?> <?=$extcredits[$creditstrans]['unit']?></td>
<td>
<a href="my.php?item=grouppermission&searchgroupid=<?=$gp['groupid']?>" class="lightlink">查看权限</a>
<? if($gp['owned']) { ?>| <span class="lightlink">已拥有</span>
<? } elseif($allowmultigroups && $gp['dailyprice']) { ?>| <a href="memcp.php?action=usergroups&type=extended&edit=<?=$gp['groupid']?>" onclick="floatwin('open_usergroups', this.href, 600, 410);return false;" class="lightlink">购买</a>
<? } elseif($allowmultigroups) { ?>| <a href="memcp.php?action=usergroups&type=extended&edit=<?=$gp['groupid']?>" onclick="floatwin('open_usergroups', this.href, 600, 410);return false;" class="lightlink">加入</a>
<? } ?>
</td>
</tr><? } } if(empty($publicgroups)) { ?>
<tr><td colspan="8">无</td></tr>
<? } ?>
</tbody>
</table>
</div>
</div>
<h1>论坛用户组介绍</h1>
<div class="datalist">
<div id="list_usergroups_members_c" class="c_header">
<h3 onclick="toggle_collapse('list_usergroups_members', 1, 1);">会员用户组</h3>
<div class="c_header_action">
<p class="c_header_ctrlbtn" onclick="toggle_collapse('list_usergroups_members', 1, 1);">[ 展开 ]</p>
</div>
</div>
<table id="list_usergroups_members" cellspacing="0" cellpadding="0" class="datatable" style="margin-bottom:30px;">
<thead class="colplural">
<tr>
<td width="13%"></td>
<td width="11%">用户级别</td>
<td width="20%">积分起点</td>
<td>阅读权限</td>
<td>可加入其他组</td>
<td></td>
<td>操作</td>
</tr>
</thead>
<tbody><? if(is_array($grouplist['member'])) { foreach($grouplist['member'] as $gp) { ?><tr>
<td><strong><?=$gp['grouptitle']?><strong></td>
<td><? showstars($gp['stars']); ?></td>
<td><?=$gp['creditshigher']?></td>
<td><?=$gp['readaccess']?></td>
<td><? if($gp['allowmultigroups'] == 1) { ?><img src="<?=IMGDIR?>/data_valid.gif" /><? } else { ?><img src="<?=IMGDIR?>/data_invalid.gif" /><? } ?></td>
<td></td>
<td>
<a href="my.php?item=grouppermission&searchgroupid=<?=$gp['groupid']?>" class="lightlink">查看权限</a>
</td>
</tr><? } } ?></tbody>
</table>
<div id="list_usergroups_special_c" class="c_header">
<h3 onclick="toggle_collapse('list_usergroups_special', 1, 1);">特殊用户组</h3>
<div class="c_header_action">
<p class="c_header_ctrlbtn" onclick="toggle_collapse('list_usergroups_special', 1, 1);">[ 展开 ]</p>
</div>
</div>
<table id="list_usergroups_special" cellspacing="0" cellpadding="0" class="datatable" style="margin-bottom:30px;">
<thead class="colplural">
<tr>
<td width="13%"></td>
<td width="11%">用户级别</td>
<td width="20%">积分起点</td>
<td>阅读权限</td>
<td>可加入其他组</td>
<td></td>
<td>操作</td>
</tr>
</thead>
<tbody><? if(is_array($grouplist['special'])) { foreach($grouplist['special'] as $gp) { ?><tr>
<td><strong><?=$gp['grouptitle']?><strong></td>
<td><? showstars($gp['stars']); ?></td>
<td>-</td>
<td><?=$gp['readaccess']?></td>
<td><? if($gp['allowmultigroups'] == 1) { ?><img src="<?=IMGDIR?>/data_valid.gif" /><? } else { ?><img src="<?=IMGDIR?>/data_invalid.gif" /><? } ?></td>
<td></td>
<td>
<a href="my.php?item=grouppermission&searchgroupid=<?=$gp['groupid']?>" class="lightlink">查看权限</a>
</td>
</tr><? } } ?></tbody>
</table>
</div>
</div>
</div>
<div class="side"><h2>个人中心</h2>
<div class="sideinner">
<ul class="tabs">
<? if($regverify == 1 && $groupid == 8) { ?>
<li><a href="member.php?action=emailverify">重新验证 Email</a></li>
<? } if($regverify == 2 && $groupid == 8) { ?>
<li><a href="memcp.php?action=validating">账户审核</a></li>
<li><a href="memcp.php?action=profile&typeid=2">个人资料</a></li>
<? } else { ?>
<li><a href="memcp.php?action=profile&typeid=2">个人资料</a></li>
<li><a href="pm.php">短消息</a></li>
<li><a href="my.php?item=buddylist&<?=$extrafid?>">我的好友</a></li>
<? if($regstatus > 1) { ?><li><a href="invite.php">邀请注册</a></li><? } if($ucappopen['UCHOME']) { ?>
<li><a href="<?=$uchomeurl?>/space.php?uid=<?=$discuz_uid?>" target="_blank">我的空间</a></li>
<? } elseif($ucappopen['XSPACE']) { ?>
<li><a href="<?=$xspaceurl?>/?uid-<?=$discuz_uid?>" target="_blank">我的空间</a></li>
<? } } ?>
</ul>
</div>
<? if($groupid != 8) { ?>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="my.php?item=threads<?=$extrafid?>">我的帖子</a></li>
<li><a href="my.php?item=favorites&type=thread<?=$extrafid?>">我的收藏</a></li>
<li><a href="my.php?item=subscriptions<?=$extrafid?>">我的订阅</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="memcp.php?action=credits">积分</a></li>
<li><a href="memcp.php?action=usergroups">用户组&权限</a></li>
<li><a href="task.php">论坛任务</a></li>
<? if($medalstatus) { ?><li><a href="medal.php">勋章</a></li><? } if($magicstatus) { ?><li><a href="magic.php">道具</a></li><? } ?>
</ul>
</div>
<? } ?>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li><a href="memcp.php?action=profile&typeid=5">论坛个性化设定</a></li>
<li><a href="memcp.php?action=profile&typeid=1">密码和安全问题</a></li>
</ul>
</div>
<hr class="shadowline" />
<div class="sideinner">
<ul class="tabs">
<li>积分: <?=$credits?></li><? if(is_array($extcredits)) { foreach($extcredits as $id => $credit) { ?><li>
<? if($BASESCRIPT == 'invite.php' && $id == $creditstransextra['4'] ||
$BASESCRIPT == 'memcp.php' && $id == $creditstrans) { ?>
<?=$credit['title']?>: <span style="font-weight: bold;"><?=$GLOBALS['extcredits'.$id]?></span> <?=$credit['unit']?>
<? } else { ?>
<?=$credit['title']?>: <?=$GLOBALS['extcredits'.$id]?> <?=$credit['unit']?>
<? } ?>
</li><? } } ?></ul>
</div></div>
</div>
</div><? if(!empty($plugins['jsmenu'])) { ?>
<ul class="popupmenu_popup headermenu_popup" id="plugin_menu" style="display: none"><? if(is_array($plugins['jsmenu'])) { foreach($plugins['jsmenu'] as $module) { ?> <? if(!$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)) { ?>
<li><?=$module['url']?></li>
<? } } } ?></ul>
<? } if(is_array($subnavs)) { foreach($subnavs as $subnav) { ?><?=$subnav?><? } } if($admode && empty($insenz['hardadstatus']) && !empty($advlist)) { ?>
<div class="ad_footerbanner" id="ad_footerbanner1"><?=$advlist['footerbanner1']?></div><? if($advlist['footerbanner2']) { ?><div class="ad_footerbanner" id="ad_footerbanner2"><?=$advlist['footerbanner2']?></div><? } if($advlist['footerbanner3']) { ?><div class="ad_footerbanner" id="ad_footerbanner3"><?=$advlist['footerbanner3']?></div><? } } else { ?>
<div id="ad_footerbanner1"></div><div id="ad_footerbanner2"></div><div id="ad_footerbanner3"></div>
<? } ?>
<div id="footer">
<div class="wrap s_clear">
<div id="footlink">
<p>
<strong><a href="<?=$siteurl?>" target="_blank"><?=$sitename?></a></strong>
<? if($icp) { ?>( <a href="http://www.miibeian.gov.cn/" target="_blank"><?=$icp?></a>)<? } ?>
<span class="pipe">|</span><a href="mailto:<?=$adminemail?>">联系我们</a>
<? if($allowviewstats) { ?><span class="pipe">|</span><a href="stats.php">论坛统计</a><? } if($archiverstatus) { ?><span class="pipe">|</span><a href="archiver/" target="_blank">Archiver</a><? } if($wapstatus) { ?><span class="pipe">|</span><a href="wap/" target="_blank">WAP</a><? } if($statcode) { ?><span class="pipe">| <?=$statcode?></span><? } ?>
</p>
<p class="smalltext">
GMT<?=$timenow['offset']?>, <?=$timenow['time']?>
<? if(debuginfo()) { ?>, <span id="debuginfo">Processed in <?=$debuginfo['time']?> second(s), <?=$debuginfo['queries']?> queries<? if($gzipcompress) { ?>, Gzip enabled<? } ?></span><? } ?>.
</p>
</div>
<div id="rightinfo">
<p>Powered by <strong><a href="http://www.discuz.net" target="_blank">Discuz!</a></strong> <em><?=$version?></em><? if(!empty($boardlicensed)) { ?> <a href="http://license.comsenz.com/?pid=1&host=<?=$_SERVER['HTTP_HOST']?>" target="_blank">Licensed</a><? } ?></p>
<p class="smalltext">© 2001-2009 <a href="http://www.comsenz.com" target="_blank">Comsenz Inc.</a></p>
</div><? updatesession(); ?></div>
</div>
<? if($_DCACHE['settings']['frameon'] && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && $_DCOOKIE['frameon'] == 'yes') { ?>
<script src="include/js/iframe.js?<?=VERHASH?>" type="text/javascript"></script>
<? } output(); if($_DCACHE['settings']['uchomeurl'] && $discuz_uid) { ?>
<script src="<?=$uchomeurl?>/api/discuz.php?pagetype=<?=CURSCRIPT?>&status=<?=$_DCACHE['settings']['homeshow']?>&uid=<?=$discuz_uid?>&infosidestatus=<?=$infosidestatus['allow']?><? if(CURSCRIPT == 'viewthread') { ?>&feedpostnum=<?=$feedpostnum?><? if($page == '1') { ?>&updateuid=<?=$feeduid?>&pid=<?=$firstpid?><? } } elseif(CURSCRIPT == 'profile') { ?>&updateuid=<?=$profileuid?><? } ?>" type="text/javascript"></script>
<? } ?>
</body>
</html>
|
zyyhong
|
trunk/jiaju001/51shangcheng.cn/htdocs/forumdata/templates/2_memcp_usergroups.tpl.php
|
PHP
|
asf20
| 35,792
|