<!--<?php print <<<EOT
-->
<table width='$tablewidth' cellspacing=0 cellpadding=0 align=center>
	<tr>
		<td align=left>
			<img src='$imgpath/$stylepath/index/home.gif' align=absbottom> 
			<b>
				<a href='$db_bfn'>$db_bbsname </a>
<!--
EOT;
if($action=='forumright'){print <<<EOT
-->
				-> {#view_forumright} -> <a href="thread.php?fid=$fid">$rt[name]</a>
<!--
EOT;
}else{print <<<EOT
-->

				{#profile_guide}
<!--
EOT;
}print <<<EOT
-->
			</b>
		</td>
	</tr>
</table>
<br>

<table width='$tablewidth' cellspacing=1 cellpadding=4 align=center $i_table style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word;'>
	<tr align=center>
		<td class='f_one'><a href='profile.php'>{#profile_index}</a></td>
		<td class='f_one'><a href='profile.php?action=modify'>{#profile_edit}</a></td>
		<td class='f_one'><a href="profile.php?action=show&uid=$winddb[uid]">{#profile_view}</a></td>
		<td class='f_one'><a href="profile.php?action=permission">{#profile_right}</a></td>
<!--
EOT;
if($_G['atclog']){print <<<EOT
-->
		<td class='f_one'><a href="profile.php?action=log">{#profile_log}</a></td>
<!--
EOT;
}print <<<EOT
-->
		<td class='f_one'><a href='userpay.php'>{#currencycp}</a></td>
		<td class='f_one'><a href='profile.php?action=favor'>{#profile_favor}</a></td>
	</tr>
</table>
<br>
<!--
EOT;
if(!$action){print <<<EOT
-->
<table width='$tablewidth' cellspacing=1 cellpadding=4 align=center>
<tr><td width='23%' valign="top">
<table width='100%' cellspacing=1 cellpadding=4 align=center $i_table>
<tr><td class="head" align="center"><b>{#profile_face}</b></td></tr>
<tr><td class="f_one" align="center">$userface<br><br>
<a href='search.php?authorid=$userdb[uid]'>{#mytopic}</a> 
<a href='search.php?authorid=$userdb[uid]&digest=1'>{#mydigest}</a>
<!--
EOT;
if($db_hackdb[toolcenter][4]){print <<<EOT
-->
<a href='hack.php?H_name=toolcenter&action=use'>[{#tool_use}]</a>
<!--
EOT;
}print <<<EOT
-->
</td></tr>
</table>
<br>
<table width='100%' cellspacing=1 cellpadding=4 align=center $i_table>
<tr><td class="head" align="center"><b>{#profile_userinfo}</b></td></tr>
<tr><td class="f_one">
{#username}: $userdb[username]
<!--
EOT;
if($userdb[honor]){print <<<EOT
-->
($userdb[honor])
<!--
EOT;
}print <<<EOT
-->
<br>
<!--
EOT;
if($systitle){print <<<EOT
-->
{#userdb_system}: $systitle<br>
<!--
EOT;
}print <<<EOT
-->
{#userdb_level}: $memtitle<br>
{#read_digest}: $userdb[digests]<br>
{#posts}: $userdb[postnum]<br>
$db_rvrcname: $userdb[rvrc] $db_rvrcunit<br>
$db_creditname: $userdb[credit] $db_creditunit<br>
$db_moneyname: $userdb[money] $db_moneyunit<br>
{#profile_deposit}: $userdb[deposit] $db_moneyunit<br>
{#profile_ddeposit}: $userdb[ddeposit] $db_moneyunit<br>
{#oltime}: $userdb[onlinetime] {#userdb_time}<br>
{#regdate}: $userdb[regdate]<br>
{#lasttime}: $userdb[lastvisit]<br>
</td></tr>
</table>
<br>
<table width='100%' cellspacing=1 cellpadding=4 align=center $i_table>
<tr><td class="head" align="center"><b>{#currencyset}</b></td></tr>
<tr><td class="f_one">
{#currency}: $userdb[currency]<br><br>
 &nbsp; &nbsp; &nbsp; &nbsp;
[<a href='userpay.php?action=change'>{#toolcenter_change}</a>]
[<a href='userpay.php'>{#toolcenter_pay}</a>]
</td></tr>
</table>
<br>
<!--
EOT;
if($_CREDITDB){
print <<<EOT
-->
<table width='100%' cellspacing=1 cellpadding=4 align=center $i_table>
<tr><td class="head" align="center"><b>{#profile_credit}</b></td></tr>
<tr><td class="f_one"><!--
EOT;
foreach($_CREDITDB as $key => $value){
$usercredit = $creditdb ? $creditdb[$key][1] : 0;
print <<<EOT
-->
$value[0]($value[2]): $usercredit $value[1]<br>
<!--
EOT;
}print <<<EOT
-->
</td></tr></table>
<!--
EOT;
}print <<<EOT
-->
<br>
<!--
EOT;
if($colonydb){
print <<<EOT
-->
<table width='100%' cellspacing=1 cellpadding=4 align=center $i_table>
<tr><td class="head" align="center"><b>{#profile_colony}</b></td></tr>
<tr><td class="f_one">
<!--
EOT;
foreach($colonydb as $key => $value){
print <<<EOT
--> 
<a href="hack.php?H_name=colony&cyid=$value[id]&job=view&id=$value[id]" target="_blank">$value[cname]</a><br>
<!--
EOT;
}print <<<EOT
-->
</td></tr></table>
<!--
EOT;
}print <<<EOT
-->
</td><td valign="top">
<table width='100%' cellspacing=1 cellpadding=4 align=center $i_table>
<tr><td class="head" colspan="6"><b>{#profile_newmsg}</b></td></tr>
<tr class="cbg" align="center">
<td width="5%">ID</td>
<td width="35%">{#title}</td>
<td width="15%">{#message_send}</td>
<td width="15%">{#message_accept}</td>
<td width="20%">{#time}</td>
<td width="5%">{#message_ifread}</td></tr>
<!--
EOT;
$id=0;
foreach($msgdb as $key => $value){
$id++;
print <<<EOT
-->
<tr class="f_one" align="center">
<td>$id</td>
<td><a href="message.php?action=read&mid=$value[mid]" target="_blank">$value[title]</a></td>
<td><a href="profile.php?action=show&uid=$value[fromuid]">$value[username]</a></td>
<td><a href="profile.php?action=show&uid=$value[touid]">$value[to]</a></td>
<td>$value[mdate]</td>
<td>
<!--
EOT;
if($value['ifnew']){print <<<EOT
-->
<font color=red>{#_no}</font>
<!--
EOT;
}else{print <<<EOT
-->
{#_yes}
<!--
EOT;
}print <<<EOT
-->
</td></tr>
<!--
EOT;
}print <<<EOT
-->
</table><br>
<table width='100%' cellspacing=1 cellpadding=4 align=center $i_table>
<tr><td class="head" colspan="5"><b>{#profile_newfavor}</b></td></tr>
<tr class="cbg" align="center">
<td width="5%">ID</td>
<td width="35%">{#title}</td>
<td width="15%">{#forum}</td>
<td width="15%">{#author}</td>
<td width="25%">{#posttime}</td>
</tr>
<!--
EOT;
$id=0;
foreach($favordb as $key => $value){
$id++;
print <<<EOT
-->
<tr class="f_one" align="center">
<td>$id</td>
<td><a href="read.php?tid=$value[tid]" target="_blank">$value[subject]</a></td>
<td><a href="thread.php?fid=$value[fid]">$value[forum]</a></td>
<td><a href="profile.php?action=show&uid=$value[authorid]">$value[author]</a></td>
<td>$value[postdate]</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table><br>
</td></tr></table>
<!--
EOT;
}elseif($action=='modify'){print <<<EOT
-->
<form action='profile.php?' method=post onSubmit='return procheck(this)' name=creator enctype='multipart/form-data'>
<input type="hidden" name="action" value="modify">
<table width='$tablewidth' cellspacing=1 cellpadding=4 align=center $i_table>
<tr height=25>
<td class=head colspan=2> {#profile_core} </td>
</tr>	
<tr>
<td width=35% class='f_one'> {#profile_oldpwd}</td>
<td class='f_one'>
<input type=password size=20 maxlength=75 name=oldpwd value=''>
{#profile_decrip}</td>
</tr>
<tr><td class='f_two'> {#profile_newpwd}</td>
<td class='f_two'>
<input type=password size=20 maxlength=75 name=propwd value=''></td></tr>
<tr><td class='f_one'> {#repeatpwd}</td>
<td class='f_one'>
<input type=password size=20 maxlength=75 name=check_pwd value=''></td></tr>

<tr>
<td class='f_two'> E-MAIL</td>
<td class='f_two'>
<input type=text size=20 maxlength=75 name=proemail value=$userdb[email]>
<input type=checkbox name=propublicemail value=1 $ifchecked>{#profile_public}</td></tr>
<tr height=25>
<td class=head colspan=2> {#profile_basis} </td>
</tr>
<!--
EOT;
if($groupselect){ print <<<EOT
-->
<tr><td class='f_one'> {#profile_groups}</td>
<td class='f_one'><select name="newgroupid">$maingroup$groupselect</select></td></tr>
<!--
EOT;
}if($gp_allowhonor){ print <<<EOT
-->
<tr>
<td class='f_one'> {#honor}</td>
<td class='f_one'>
<input type=text size=20 name=prohonor value='$userdb[honor]'></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
<tr>
<td class='f_two'> QQ</td>
<td class='f_two'>
<input type=text size=20 maxlength=14 name=prooicq value=$userdb[oicq]></td>
</tr>
<tr>
<td class='f_one'> ICQ</td>
<td class='f_one'>
<input type=text size=20 maxlength=14 name=proicq value=$userdb[icq]></td>
</tr>
<tr>
<td class='f_two'> Yahoo</td>
<td class='f_two'>
<input type=text size=20 name=proyahoo value=$userdb[yahoo]></td>
</tr>
<tr>
<td class='f_one'> Msn</td>
<td class='f_one'>
<input type=text size=20 name=promsn value=$userdb[msn]></td>
</tr>
<tr>
<td class='f_two'> {#from}</td>
<td class='f_two'>
<input type=text size=20 maxlength=14 name=profrom value=$userdb[location]></td>
</tr>

<tr>
<td class='f_one'> {#site}</td>
<td class='f_one'><input type=text size=50 maxlength=75 name=prohomepage value="$userdb[site]">
</td></tr>
<tr>
<td class='f_two'> {#gender}</td>
<td class='f_two'><select name=progender>
<option value=0 $sexselect[0]>{#unknown}</option>
<option value=1 $sexselect[1]>{#male}</option>
<option value=2 $sexselect[2]>{#female}</option></select></td>
</tr>
<tr>
<td class='f_one'> {#birth}</td>
<td class='f_one'>
<select name=proyear>
<option value=''></option>
<!--
EOT;
for($i=1960;$i<=2004;$i++){
print <<<EOT
-->
<option value=$i $yearslect[$i]>$i</option>  
<!--
EOT;
} 
print <<<EOT
-->
</select>{#year} 
<select name=promonth>
<option value=></option>
<!--
EOT;
for($i=1;$i<=12;$i++){
print <<<EOT
-->
<option value=$i $monthslect[$i]>$i</option>
<!--
EOT;
} 
print <<<EOT
-->
</select>{#month} 
<select name=proday>
<option value=></option>
<!--
EOT;
for($i=1;$i<=31;$i++){
print <<<EOT
-->
<option value=$i $dayslect[$i]>$i</option>
<!--
EOT;
} 
print <<<EOT
-->
</select>{#day}
</td></tr>
<tr> 
<td class='f_two'> {#introduce}</td>
<td class='f_two'>
<textarea name='prointroduce' rows='4' cols='50'>$userdb[introduce]</textarea></td>
</tr>
<tr height=25>
<td class=head colspan=2> {#profile_choose} </td>
</tr>
<tr class="f_one">
	<td>{#profile_payemail}</td>
	<td>
		<input type=text size=20 maxlength=75 name="payemail" value="$payemail">
		<input type="radio" name="pay" value="1" checked>{#post_paypal}
	</td>
</tr>
<!--
EOT;
if($db_signmoney && strpos($db_signgroup,",$groupid,") !== false){print <<<EOT
-->

<tr><td class="f_one">{#showsign_title}</td><td class="f_one">{#profile_showsign}
<!--
EOT;
if($userdb[currency]<=0){print <<<EOT
-->
 (<font color="red">{#currency_noenough}</font>)
<!--
EOT;
}print <<<EOT
-->
</td></tr>
<tr class="f_one">
	<td>{#showsign_ifopen}</td>
	<td>
		<input type="radio" name="showsign" value="1" $showsign_1>{#_yes}
		<input type="radio" name="showsign" value="0" $showsign_0>{#_no}
	</td>
</tr>
<!--
EOT;
}print <<<EOT
-->
<tr>
<td class='f_one'> {#profile_sign}
<!--
EOT;
if($db_signwindcode){print <<<EOT
-->
<br><a href='faq.php?faqjob=1'> <font color=blue>{#profile_help}</font></a>
$windcode
<!--
EOT;
}else{print <<<EOT
-->
<br><a href='faq.php?faqjob=1#5'>Wind Code</a>Close
<!--
EOT;
}print <<<EOT
-->
</td>
<td class='f_one'>
<textarea name='prosign'  rows='4' cols='50'>$userdb[signature]</textarea></td>
</tr>

<tr>
<td class='f_two'> {#profile_selimg}
<br>
<!--
EOT;
if($imgpatherror){print <<<EOT
-->
{#profile_error}
<!--
EOT;
}print <<<EOT
-->
</td>
<td class='f_two'>
<table width=100% cellspacing=0 cellpadding=0>
<tr><td width=22% valign=middle>{#profile_img}
<select name='proicon' onChange="showimage('$imgpath',this.options[this.selectedIndex].value)">
<option value=''>{#profile_none}</option>
$imgselect
</select></td><td width=78% align=center valign=middle>

<img src='$imgpath/face/$iconarray[0]' name=useravatars>
</td></tr></table>
<!--
EOT;
if(!$gp_allowportait){
print <<<EOT
-->
<br> {#profile_img_close}
<!--
EOT;
}else{print <<<EOT
-->
<br> {#profile_img_open}<br>
<!--
EOT;
}if($db_upload && $gp_upload){
print <<<EOT
-->
<br>{#profile_upload}<input type="file" class=subject name=upload>
<!--
EOT;
}if($uploadimg){
print <<<EOT
-->
<img src='$imgpath/upload/$uploadimg'>[<a href='job.php?action=delimg'>{#profile_delete}</a>]
<!--
EOT;
}if($gp_allowportait){print <<<EOT
-->
<br><br>{#profile_url}<input name=proownportait[0] value='$iconarray[1]' type=text>{#profile_http}
<!--
EOT;
}if(($db_upload && $gp_upload) || $gp_allowportait){print <<<EOT
-->
<br>{#profile_width}<input name=proownportait[1] value='$iconarray[2]' type=text size=2 maxlength=3>{#profile_w_lenght}
<br>{#profile_height}<input name=proownportait[2] value='$iconarray[3]' type=text size=2 maxlength=3>{#profile_h_lenght}
<!--
EOT;
}print <<<EOT
-->
</td></tr>
<tr height=25>
<td class=head colspan=2> {#profile_output} </td>
</tr>

<tr><td class='f_one'> {#profile_style}</td>
<td class='f_one'><select name=tpskin>
<option value=''>{#profile_default}</option>
$choseskin</select></td></tr>
<tr><td class='f_two'>{#profile_timedf}</td>
<td class='f_two'>
<select name="timedf">
<option value="0">{#profile_default}</option>
<!--
EOT;
include('template/admin/timezone.htm');
print <<<EOT
-->
</select>
</td></tr>
<tr><td class='f_one'>{#profile_format}</td>
<td class='f_one'>
<input type=radio name='d_type' value=0 $d_type_0>{#profile_default}<br><br>
<input type=radio name='d_type' value=1 $d_type_1>{#profile_custom}
<input type=text name='date_f' value=$userdb[datefm]>
<input type=radio name='time_f' value='24' $check_24>24
<input type=radio name='time_f' value='12' $check_12>12
</td></tr>
<tr><td class='f_two'>{#profile_t_num}</td>
<td class='f_two'>
<select name='t_num'><option value='0'>0</option>
<option value=10 $T_10>10</option><option value=20 $T_20>20</option>
<option value=30 $T_30>30</option><option value=40 $T_40>40</option>
<!--
EOT;
if($groupid && @in_array($groupid,array(3,4,5))){print <<<EOT
-->
<option value=100 $T_100>100</option>
<!--
EOT;
}print <<<EOT
-->
</select>
</td></tr>
<tr><td class='f_one'>{#profile_p_num}</td>
<td class='f_one'>
<select name='p_num'><option value='0'>0</option>
<option value=10 $P_10>10</option><option value=20 $P_20>20</option>
<option value=30 $P_30>30</option>
<!--
EOT;
if($groupid && @in_array($groupid,array(3,4,5))){print <<<EOT
-->
<option value=100 $P_100>100</option>
<!--
EOT;
}print <<<EOT
-->
</select>
</td></tr>
<tr> 
<td class='f_two'> {#profile_receive}</td>
<td class='f_two'><input type=radio name='proreceivemail' value='1' $email_open>
{#profile_yes} 
<input type=radio name='proreceivemail' value='0' $email_close>
{#profile_no} </td>
</tr>
</table><br>
<center>
<input type=submit name=prosubmit value='{#profile_submit}'>
<input type=hidden value=2 name=step>
</form><center>
<script language=JavaScript1.2>
function procheck(formct)
{
	if (formct.prointroduce.value.length>200)
	{
		alert('{#profile_limit}');
		return false;
	}
}
function showimage(imgpath,value)
{
	if(value!= '') {	
	document.images.useravatars.src=imgpath+'/face/'+value;
	} else{
	document.images.useravatars.src=imgpath+'/face/none.gif';
	}
}
</script>
<!--
EOT;
}elseif($action=='permission'){
$_P=array('0'=>'×','1'=>'√');
print <<<EOT
-->
<table width='$tablewidth' align=center cellspacing=1 cellpadding=5 align=center $i_table style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word;'>
	<tr><td class=head colspan=10>{#profile_right}</td></tr>
	<tr><td class=f_one colspan=10><b>{#per_right}</b></td></tr>
	<tr align=center>
		<td class='f_one'>{#per_hide}</td>
		<td class='f_one'>{#per_read}</td>
		<td class='f_one'>{#per_search}</td>
		<td class='f_one'>{#per_member}</td>
		<td class='f_one'>{#per_profile}</td>
		<td class='f_one'>{#per_show}</td>
		<td class='f_one'>{#per_report}</td>
		<td class='f_one'>{#per_upload}</td>
		<td class='f_one'>{#per_portait}</td>
		<td class='f_one'>{#per_honor}</td>
	</tr>
	<tr align=center>
		<td class='f_one'>{$_P[$per[hide]]}</td>
		<td class='f_one'>{$_P[$per[read]]}</td>
		<td class='f_one'>{$_P[$per[search]]}</td>
		<td class='f_one'>{$_P[$per[member]]}</td>
		<td class='f_one'>{$_P[$per[profile]]}</td>
		<td class='f_one'>{$_P[$per[show]]}</td>
		<td class='f_one'>{$_P[$per[report]]}</td>
		<td class='f_one'>{$_P[$per[upload]]}</td>
		<td class='f_one'>{$_P[$per[portait]]}</td>
		<td class='f_one'>{$_P[$per[honor]]}</td>
	</tr>
	<tr><td class=f_one colspan=10><b>{#per_atc}</b></td></tr>
	<tr align=center>
		<td class='f_one'>{#per_post}</td>
		<td class='f_one'>{#per_rp}</td>
		<td class='f_one'>{#per_newvote}</td>
		<td class='f_one'>{#per_vote}</td>
		<td class='f_one'>{#per_vwvt}</td>
		<td class='f_one'>{#per_html}</td>
		<td class='f_one'>{#per_hidden}</td>
		<td class='f_one'>{#per_encode}</td>
		<td class='f_one'>{#per_sell}</td>
		<td class='f_one'>{#per_mark}</td>
	</tr>
	<tr align=center>
		<td class='f_one'>{$_P[$per[post]]}</td>
		<td class='f_one'>{$_P[$per[rp]]}</td>
		<td class='f_one'>{$_P[$per[newvote]]}</td>
		<td class='f_one'>{$_P[$per[vote]]}</td>
		<td class='f_one'>{$_P[$per[vwvt]]}</td>
		<td class='f_one'>{$_P[$per[html]]}</td>
		<td class='f_one'>{$_P[$per[hidden]]}</td>
		<td class='f_one'>{$_P[$per[encode]]}</td>
		<td class='f_one'>{$_P[$per[sell]]}</td>
		<td class='f_one'>{$_P[$per[mark]]}</td>
	</tr>
	<tr><td class=f_one colspan=10><b>{#attach_right}</b></td></tr>
		<tr align=center>
		<td class='f_one'>{#per_attach}</td>
		<td class='f_one'>{#per_down}</td>
		<td class='f_one'>{#per_uploadmoney}</td>
		<td class='f_one'>{#per_allownum}</td>
		<td class='f_one'>{#per_uploadmaxsize}</td>
		<td class='f_one' colspan="5" align="left">{#per_uploadtype}</td>
	</tr>
	<tr align=center>
		<td class='f_one'>{$_P[$per[attach]]}</td>
		<td class='f_one'>{$_P[$per[down]]}</td>
		<td class='f_one'>$gp_uploadmoney</td>
		<td class='f_one'>$gp_allownum</td>
		<td class='f_one'>$_G[uploadmaxsize](K)</td>
		<td class='f_one' colspan="5" align="left">$_G[uploadtype]</td>
	</tr>
</table>
<!--
EOT;
}elseif($action=='forumright'){
$_P=array('0'=>'×','1'=>'√');
print <<<EOT
-->
<table width='$tablewidth' align=center cellspacing=1 cellpadding=5 align=center $i_table style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word;'>
	<tr><td class=head colspan=5>版块基本权限</td></tr>
	<tr align=center>
		<td class='f_one'>浏览版块</td>
		<td class='f_one'>{#per_post}</td>
		<td class='f_one'>{#per_rp}</td>
		<td class='f_one'>上传附件</td>
		<td class='f_one'>下载附件</td>
	</tr>
	<tr align=center>
		<td class='f_one'>{$_P[$per[visit]]}</td>
		<td class='f_one'>{$_P[$per[post]]}</td>
		<td class='f_one'>{$_P[$per[rp]]}</td>
		<td class='f_one'>{$_P[$per[down]]}</td>
		<td class='f_one'>{$_P[$per[upload]]}</td>
	</tr>
</table>
<br>
<table width='$tablewidth' align=center cellspacing=1 cellpadding=5 align=center $i_table>
	<tr><td class=head colspan=7>{#setforum_creditset}</td></tr>
	<tr align=center>
		<td class='cbg' width="8%"></td>
		<td class='cbg' width="15%">精华主题</td>
		<td class='cbg' width="15%">取消精华</td>
		<td class='cbg' width="15%">发表主题</td>
		<td class='cbg' width="15%">删除主题</td>
		<td class='cbg'>发表十个回复</td>
		<td class='cbg'>删除十个回复</td>
	</tr>
<!--
EOT;
foreach($creditset as $key=>$val){print <<<EOT
-->
	<tr align=center>
		<td class='f_one'>{$val[name]}</td>
		<td class='f_one'>+{$val[Digest]}</td>
		<td class='f_one'>-{$val[Undigest]}</td>
		<td class='f_one'>+{$val[Post]}</td>
		<td class='f_one'>-{$val[Delete]}</td>
		<td class='f_one'>+{$val[Reply]}</td>
		<td class='f_one'>-{$val[Deleterp]}</td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
<!--
EOT;
}elseif($action=='log'){
print <<<EOT
-->
 &nbsp; $pages
<table width='$tablewidth' align=center cellspacing=1 cellpadding=5 align=center $i_table>
	<tr>
		<td class=head colspan=7>
			<div>
				<div style="float:left;"><b>{#profile_log}</b></div>
				<div style="float:right;">
					<select name="type" onchange="window.location=('profile.php?action=log&type='+this.options[this.selectedIndex].value)">
						<option value="all">{#all}</option>
						<option value="topped" $type_sel[topped]>{$logtype[topped]}</option>
						<option value="digest" $type_sel[digest]>{$logtype[digest]}</option>
						<option value="highlight" $type_sel[highlight]>{$logtype[highlight]}</option>
						<option value="push" $type_sel[push]>{$logtype[push]}</option>
						<option value="locked" $type_sel[locked]>{$logtype[locked]}</option>
						<option value="delete" $type_sel[delete]>{$logtype[delete]}</option>
						<option value="move" $type_sel[move]>{$logtype[move]}</option>
						<option value="copy" $type_sel[copy]>{$logtype[copy]}</option>
						<option value="edit" $type_sel[edit]>{$logtype[edit]}</option>
						<option value="credit" $type_sel[credit]>{$logtype[credit]}</option>
					</select>
				</div>
			</div>
		</td>
	</tr>
	<tr align=center>
		<td class='cbg' width="3%">ID</td>
		<td class='cbg' width="8%">{#log_type}</td>
		<td class='cbg' width="15%">{#log_admin}</td>
		<td class='cbg' width="15%">{#forum}</td>
		<td class='cbg' width="15%">{#log_date}</td>
		<td class='cbg'>{#log_descrip}</td>
	</tr>
<!--
EOT;
$num=($page-1)*$db_perpage;
foreach($logdb as $key => $value){
$num++;
print <<<EOT
-->
<tr class="f_one" align="center">
<td>$num</td>
<td>{$logtype[$value[type]]}</td>
<td><a href="profile.php?action=show&username=$value[username2]" target="_blank">$value[username2]</a></td>
<td><a href="thread.php?fid=$value[field1]" target="_blank">{$forum[$value[field1]][name]}</a></td>
<td>$value[date]</td>
<td><div style='TABLE-LAYOUT: fixed;WORD-WRAP: break-word' align="left">$value[descrip]</div></td>
</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
 &nbsp; $pages
<script language=JavaScript>
function Bjump(value){
	if(value!= '') {
		window.location=('$basename&action=log&type='+value);
	}
}
</script>
<!--
EOT;
}elseif($action=='favor'){print <<<EOT
-->
<form method=post name=form action="profile.php?action=favor">
<input type=hidden name=job value=clear>
<table cellspacing=1 cellpadding=5 width='$tablewidth' $i_table align=center>
<tr class=head><td colspan="6">{#profile_favor}</td></tr>
<tr class=cbg align=center>
<td width='3%'>ID</td>
<td>{#title}</td>
<td width='15%'>{#forum}</td>
<td width='15%'>{#author}</td>
<td width='15%'>{#posttime}</td>
<td width='5%'>{#favor_del}</td>
</tr>
<!--
EOT;
foreach($favordb as $id=>$favor) {
if($favor){
$id++;
print <<<EOT
-->
<tr align=center class='f_one'>
<td>$id</td>
<td align=left><a href='read.php?fid=$favor[fid]&tid=$favor[tid]' target=_blank>$favor[subject]</a></td>
<td><a href='thread.php?fid=$favor[fid]'>$favor[forum]</a></td>
<td><a href="profile.php?action=show&uid=$favor[authorid]">$favor[author]</a></td>
<td class='smalltxt'>$favor[postdate]</td>
<td><input type=checkbox name='delid[]' value='$favor[tid]'></td>
<!--
EOT;
}}print <<<EOT
-->
</table>
<br>
<center>
<input type='button' name='chkall' value='{#sel_all}' onclick='CheckAll(this.form)'>
<input type='submit' value='{#submit}'>
</center>
</form>
<script language=JavaScript>
function CheckAll(form){
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		e.checked == true ? e.checked = false : e.checked = true;
	}
}
</script>
<!--
EOT;
}?>-->