回复 老鼠有理想
3、修改第80行中的文件。将宽度设为650px;
onkeydown="ctrlEnter(event ...
huaigg 发表于 2010-01-22 14:48
我是按你说的改的,也更新了缓存,但还是显示不全,我贴出整段代码给你 帮我看看:
<!--{template header}-->
<!--{eval
$icons = array(
0 => '不用动作',
1 => '<img src="image/poke/cyx.gif" />嘿实踩一脚',
2 => '<img src="image/poke/wgs.gif" />你好,伸只手接到',
3 => '<img src="image/poke/wx.gif" />笑一笑,十年少',
4 => '<img src="image/poke/touch.gif" />摸一下',
5 => '<img src="image/poke/pmy.gif" />暗送秋波',
6 => '<img src="image/poke/yb.gif" />抱一抱,上花轿',
7 => '<img src="image/poke/fw.gif" />来,让我啵一个',
8 => '<img src="image/poke/nyy.gif" />哈你娃的唧根儿',
9 => '<img src="image/poke/gyq.gif" />一拳雷到朝天门',
10 => '<img src="image/poke/dyx.gif" />三百万高压电你娃',
11 => '<img src="image/poke/yw.gif" />请让我靠,让我靠',
12 => '<img src="image/poke/ppjb.gif" />拍拍肩膀',
13 => '<img src="image/poke/yyk.gif" /> 咬一口',
14 => '<img src="image/poke/admire.gif" />你好弓虽哟',
15 => '<img src="image/poke/byj.gif" />一脚踢到嘉陵江',
16 => '<img src="image/poke/dance.gif" />陪我跳哈舞嘛',
17 => '<img src="image/poke/dinner.gif" />过年喽,发红包喽',
18 => '<img src="image/poke/dog.gif" />关门,放狗',
19 => '<img src="image/poke/dx.gif" />葵花点穴手',
20 => '<img src="image/poke/flower.gif" />你好迷人哟',
21 => '<img src="image/poke/good.gif" />我看好你哟',
22 => '<img src="image/poke/greenkiss.gif" />使用芥茉亲吻',
23 => '<img src="image/poke/gun.gif" />站住,打劫',
24 => '<img src="image/poke/jyou.gif" />我是去来酱油的',
25 => '<img src="image/poke/laugh.gif" />你在哈笑迈',
26 => '<img src="image/poke/lead.gif" />走,出去溜两圈',
27 => '<img src="image/poke/magic.gif" />施魔法定住你娃',
28 => '<img src="image/poke/mooncake.gif" />过节喽,送月饼',
29 => '<img src="image/poke/tongue.gif" />吐舌头',
30 => '<img src="image/poke/kx.gif" />走,农场偷菜',
31 => '<img src="image/poke/fws.gif" />我在做俯卧撑',
32 => '<img src="image/poke/011.gif" />再忙,也要喝一杯',
33 => '<img src="image/poke/049.gif" />走,去西藏旅游吧',
34 => '<img src="image/poke/023.gif" />深深的祝福你',
35 => '<img src="image/poke/025.gif" />雄起,兄弟伙',
36 => '<img src="image/poke/031.gif" />天冷了,记点衣服',
37 => '<img src="image/poke/033.gif" />又熬夜啊,早点睡',
38 => '<img src="image/poke/034.gif" />再累,也要去旅行',
39 => '<img src="image/poke/052.gif" />渴不,喝点水'
);
}-->
<!--{if $op == 'send' || $op == 'reply'}-->
<!--{if $_SGLOBAL[inajax]}-->
<h1>打招呼</h1>
<a href="javascript:hideMenu();" title="关闭" class="float_del">关闭
</a>
<!--{else}-->
<h2 class="title"><img src="image/icon/poke.gif">打招呼</h2>
<div class="tabs_header">
<ul class="tabs">
<li><a href="cp.php?ac=poke"><span>收到的招呼
</span></a></li>
<li class="null"><a href="cp.php?ac=poke&op=send">打招
呼</a></li>
</ul>
</div>
<!--{/if}-->
<div class="popupmenu_inner" id="__pokeform_{$tospace[uid]}">
<form method="post" id="pokeform_{$tospace[uid]}" name="pokeform_{$tospace
[uid]}" action="cp.php?ac=poke&op=$op&uid=$tospace[uid]">
<table cellspacing="0" cellpadding="3">
<tr>
<!--{if $tospace[uid]}-->
<th width="52"><div class="avatar48"><a
href="space.php?uid=$tospace[uid]"><!--{avatar($tospace[uid],small)}--
></div></th>
<!--{else}-->
<th></th><td class="l_status">用户名: <input
type="text" name="username" value=""></td></tr>
<tr><th></th>
<!--{/if}-->
<td>
<!--{if $tospace[uid]}-->
向 <strong>{$_SN[$tospace[uid]]}
</strong> 打招呼:<br />
<!--{/if}-->
<ul class="list2col" style="width:650px;">
<!--{loop $icons $k $v}-->
<li><input type="radio" name="iconid"
id="poke_$k" value="{$k}" /><label for="poke_$k">{$v}</label></li>
<!--{/loop}-->
</ul>
<input type="text" name="note" id="note"
value="" size="16" class="t_input" onkeydown="ctrlEnter(event,
'pokesubmit_btn', 1);" style="width: 650px;" maxlength="25" />
<div class="gray">(内容为可选,并且会覆盖之前
的招呼,最多25个汉字)</div>
</td>
</tr>
<tr>
<th> </th>
<td>
<input type="hidden" name="refer"
value="$_SGLOBAL[refer]">
<input type="hidden" name="pokesubmit"
value="true" />
<!--{if $_SGLOBAL[inajax]}-->
<input type="button" name="pokesubmit_btn"
id="pokesubmit_btn" value="确定" class="submit" onclick="ajaxpost('pokeform_
{$tospace[uid]}', 'poke_send', 2000)" />
<!--{else}-->
<input type="submit" name="pokesubmit_btn"
id="pokesubmit_btn" value="确定" class="submit" />
<!--{/if}-->
</td>
</table>
<input type="hidden" name="formhash" value="<!--{eval echo formhash
();}-->" />
</form>
</div>
<!--{else}-->
<h2 class="title"><img src="image/icon/poke.gif">打招呼</h2>
<div class="tabs_header">
<ul class="tabs">
<li class="active"><a href="cp.php?ac=poke"><span>收到的招呼
</span></a></li>
<li class="null"><a href="cp.php?ac=poke&op=send">打招呼
</a></li>
</ul>
</div>
<div class="h_status">您可以回复招呼或者进行忽略<span class="pipe">|</span><a
href="cp.php?ac=poke&op=ignore" id="a_poke" onclick="ajaxmenu(event, this.id,
0, 2000, 'mypoke_all')">全部忽略</a></div>
<!--{if $list}-->
<style>
.list_td td { border-bottom: 1px solid #EBE6C9; padding: 0.5em; }
.list_td img { vertical-align: middle; }
</style>
<div class="c_form" id="poke_ul">
<table cellpadding="0" cellspacing="0" width="100%" class="list_td">
<!--{loop $list $key $value}-->
<tbody id="poke_$value[uid]">
<tr>
<td width="70">
<div class="avatar48">
<a href="space.php?uid=$value[uid]"><!--
{avatar($value[uid],small)}--></a>
</div>
</td>
<td>
<p><a href="space.php?uid=$value[uid]">{$_SN
[$value[uid]]}</a> <span class="gray"><!--{date('m-d H:i',$value
[dateline],1)}--></span></p>
<div style="padding:10px 0 10px 0;font-
size:14px;">
<!--{if $value[iconid]}-->{$icons[$value
[iconid]]}<!--{else}-->打个招呼<!--{/if}-->
<!--{if $value[note]}-->,并对您说:$value
[note]<!--{/if}-->
</div>
<div style="padding:10px 0 10px 0;">
<a href="cp.php?ac=poke&op=reply&uid=$value
[uid]" id="a_p_r_$value[uid]" onclick="ajaxmenu(event, this.id, 1)"
class="submit">回打招呼</a>
<!--{if !$value['isfriend']}--><a
href="cp.php?ac=friend&op=add&uid=$value[uid]" id="a_friend_$key"
onclick="ajaxmenu(event, this.id, 1)" class="submit">加为好友</a> <!--{/if}-->
</div>
</td>
<td align="right" width="80">
<a href="cp.php?ac=poke&op=ignore&uid=$value[uid]"
id="a_p_i_$value[uid]" onclick="ajaxmenu(event, this.id, 0, 2000, 'mypoke')"
class="button">忽略</a>
</td>
</tr>
</tbody>
<!--{/loop}-->
</table>
<div class="page">$multi</div>
</div>
<!--{else}-->
<div class="c_form">
还没有新招呼。
</div>
<!--{/if}-->
<script>
function mypoke(id) {
var liid = id.substr(6);
$('poke_'+liid).style.display = "none";
}
function mypoke_all(id) {
$('poke_ul').innerHTML = "忽略了全部的招呼";
}
</script>
<!--{/if}-->
<!--{template footer}--> |