📄 discuss_show.tpl.php
字号:
<? if (!defined('IN_www.wan-e.net')){exit('Access Denied');}?><table align="center" width="<?=TABLEWIDTH?>" border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="frontground">
<tr valign="top">
<td>
<table width="100%" border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="tableborder">
<? while ($row=$db->row($query)){?>
<tr align="left" valign="top" class="contentground">
<td width="25%"><?=$VIEW_DISCUSS[DISCUSS_AUTHOR]?> : <?=$row[username]?><BR>
<?=$VIEW_DISCUSS[DISCUSS_TIME]?> : <?=$function->showtime('Y-m-d H:i',$row[addtime])?><BR>
IP:<?=$function->showip($row[ipaddr])?></td>
<td><? if ($row[title]){?><strong><?=$row[title]?></strong><br><?}?><?=wanecode($row[context])?></td>
</tr>
<tr align="right" class="titleground">
<td colspan="2"> <a href="<?=$default_url?>view.php?action=discuss&info=<?=$info?>"es=<?=$row[id]?>#submit"><?=$VIEW_DISCUSS[DISCUSS_QUOTES]?></a> | <a href="<?=$default_url?>view.php?action=discuss&info=<?=$info?>&edit=<?=$row[id]?>#submit"><?=$VIEW_DISCUSS[DISCUSS_EDIT]?></a></td>
</tr>
<?}?>
</table>
<?=$tpl->pages()?>
<table width="100%" border="0" cellpadding="<?=TABLESPACE?>" cellspacing="<?=TABLECELL?>" class="tableborder">
<? if (!$allow_guestdiscuss && !$USER_CFG['LOGINED']){?>
<script language="javascript">
function checkdata(theform)
{
if (theform.username.value == "")
{
alert("<?=$LANG_LOGIN[LOGIN_NOUSER]?>");
theform.username.focus();
return false;
}
if (theform.password.value == "")
{
alert("<?=$LANG_LOGIN[LOGIN_NOPASS]?>");
theform.password.focus();
return false;
}
else
{
theform.Submit.disabled = true;
return true;
}
}
</script>
<tr class="categround">
<td colspan="2"><?=$VIEW_DISCUSS[ACCESS_DISCUSS_NOLOGIN]?><a name="submit"></a></td>
</tr>
<form action="index.php?action=logsubmit" method="post" name="wane_post" onSubmit="return checkdata(this)">
<tr class="contentground">
<td width="25%"><?=$LANG_LOGIN[LOGIN_USER]?></td>
<td><input name="username" type="text" id="username" size="30"> <a href="?action=reg"><?=$LANG_LOGIN[LOGIN_REGISTER]?></a></td>
</tr>
<tr class="contentground">
<td><?=$LANG_LOGIN[LOGIN_PASS]?></td>
<td><input name="password" type="password" id="password" size="30"> <a href="?action=pwd"><?=$LANG_LOGIN[LOGIN_LOSEPWD]?></a></td>
</tr>
<tr class="contentground">
<td><?=$LANG_LOGIN[LOGIN_COOKIE]?></td>
<td><input name="cookietime" type="radio" value="2592000"><?=$LANG_LOGIN[LOGIN_COOKIE_MONTH]?>
<input name="cookietime" type="radio" value="604800"><?=$LANG_LOGIN[LOGIN_COOKIE_WEEK]?>
<input name="cookietime" type="radio" value="86400"><?=$LANG_LOGIN[LOGIN_COOKIE_DAY]?>
<input name="cookietime" type="radio" value="43200" checked><?=$LANG_LOGIN[LOGIN_COOKIE_TWEN]?>
<input name="cookietime" type="radio" value="3600"><?=$LANG_LOGIN[LOGIN_COOKIE_HOUR]?>
<input name="cookietime" type="radio" value="0"><?=$LANG_LOGIN[LOGIN_COOKIE_ONLINE]?></td>
</tr>
<tr class="contentground" align="center">
<td colspan="2"><input name="backurl" type="hidden" id="backurl" value="<?=$default_url?>view.php?action=discuss&info=<?=$info?>"><input type="submit" name="Submit" value="<?=$LANG_LOGIN[LOGIN_SUBMIT]?>"><input name="submit_login" type="hidden" id="submit_login" value="1"></td>
</tr>
</form>
<?}else{?>
<tr class="categround">
<td colspan="2"><?=$VIEW_DISCUSS[DISCUSS_SEND]?><a name="submit"></a></td>
</tr>
<script language="javascript">
function checkdata(theform)
{
if (theform.context.value == "")
{
alert("<?=$VIEW_DISCUSS[ACCESS_DISCUSS_CONTENT]?>");
theform.context.focus();
return false;
}
else
{
theform.Submit.disabled = true;
return true;
}
}
</script>
<FORM action="<?=$default_url?>view.php?action=discuss&submit=1" method="post" name="wane_post" onSubmit="return checkdata(this)">
<tr align="left" class="contentground">
<td width="25%"><?=$VIEW_DISCUSS[DISCUSS_SUBJECT]?></td>
<td><input name="title" type="text" size="50" value="<?=SQL_QUOTE_TITLE?>"></td>
</tr>
<tr align="left" class="contentground">
<td><?=$VIEW_DISCUSS[DISCUSS_CONTEXT]?></td>
<td><textarea name="context" cols="80" rows="10" wrap="VIRTUAL" id="context"><?=SQL_QUOTE_CONTEXT?></textarea></td>
</tr>
<tr align="center" class="contentground">
<td colspan="2"><input name="discusssubmit" type="hidden" id="discusssubmit" value="1">
<input type="submit" name="Submit" value="<?=$VIEW_DISCUSS[DISCUSS_SUBMIT]?>">
<input name="sid" type="hidden" id="sid" value="<?=$info?>">
<input name="editid" type="hidden" id="editid" value="<?=SQL_EDITID?>"></td>
</tr>
</FORM>
<?}?>
</table>
</td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -