php代码改成java代码的问题

jackiechanzhao 2008-03-26 07:33:22
这是js代码,用ajax调用ajax/processFreindAdd这个方法
function processFreindAdd(a)
{
var myclasses = new Ajax("/ajax/processFreindAdd/"+a+"", {
method: 'get',
onComplete: function(){
showMask();
$('dialogContent').setHTML(this.response.text);
$('box_dialog').setStyle('margin-top','75px');
$('box_dialog').setStyle('width','585px');
$('box_dialog').show();
}
}).request();
}
下面是ajax/processFreindAdd方法的代码,如何把它改java的代码啊



function processFreindAdd()
{
$pid = $this->uri->rsegment(3);
header('Content-Type:text/html;charset=gb2312');
header('Cache-Control:no-cache');
echo '
<div class="relationship">
<span><a href="#;" title="关闭" onclick="closeTheDialog()"><img src="/v3/2008/imgs/tick.png" width="16" height="16" border="0" /></a></span>
<h2>我和 刘杨 是...</h2>
<div>
<div class="avatars"><div><img src="/imgs/avatar.jpg" width="48" height="48" alt="这是我" /></div><p> </p><div><img src="/imgs/pt_10.jpg" width="48" height="48" alt="这是我" /></div></div>
<div class="ships">
<div class="row sp">
<div class="section" id="section_1">
<h3><input type="checkbox" id="1" onclick="showRsDesc(1)"/> <label for="1">同学</label></h3>
<div id="section_desc_1" style="display:none;" >
<div class="relationShipDesc" id="relationShipDesc_1">
<p><span><a href="#;"><img src="/v3/2008/imgs/ticka.png" width="16" height="16" title="删除" border="0" /></a></span><select id="123"><option value="" selected="selected">2007</option><option value="">2008</option></select> 到 <select id="456"><option value="" selected="selected">2007</option><option value="">2008</option></select></p>
<p>一起就读 <select id="789"><option value="" selected="selected">2007</option><option value="">2008</option></select></p>
</div>
<div class="addLink"><a href="#;" onclick="addRelationPart(1)">增加一段同学经历</a></div>
</div>
</div>
<div class="section" id="section_2">
<h3><input type="checkbox" id="2" onclick="showRsDesc(2)"/> <label for="2">同事</label></h3>
<div id="section_desc_2" style="display:none;">
<div class="relationShipDesc" id="relationShipDesc_2">
<p><select id="123"><option value="" selected="selected">2007</option><option value="">2008</option></select> 到 <select id="456"><option value="" selected="selected">2007</option><option value="">2008</option></select></p>
<p>一起工作 <select id="789"><option value="" selected="selected">2007</option><option value="">2008</option></select></p>
</div>
<div class="addLink"><a href="#;" onclick="addRelationPart(2)">增加一段同事经历</a></div>
</div>
</div>
<div class="section" id="section_3">
<h3><input type="checkbox" id="3" onclick="showRsDesc(3)"/> <label for="3">室友</label></h3>
<div id="section_desc_3" style="display:none;">
<div class="relationShipDesc" id="relationShipDesc_3">
<p><select id="123"><option value="" selected="selected">2007</option><option value="">2008</option></select> 到 <select id="456"><option value="" selected="selected">2007</option><option value="">2008</option></select></p>
<p>一起居住 <select id="789"><option value="" selected="selected">2007</option><option value="">2008</option></select></p>
</div>
<div class="addLink"><a href="#;" onclick="addRelationPart(3)">增加一段同住经历</a></div>
</div>
</div>
<div class="section" id="section_8">
<h3><input type="checkbox" id="8" onclick="showRsDesc(8)"/> <label for="8">家人/亲戚</label></h3>
<div class="relationShipDesc" id="section_desc_8" style="display:none;">
<p>我是他的:<input type="text" id="" class="b" /></p>
</div>
</div>
<div class="section" id="section_9">
<h3><input type="checkbox" id="9" onclick="showRsDesc(9)"/> <label for="9">其他关系</label></h3>
<div class="relationShipDesc" id="section_desc_9" style="display:none;">
<p><select id="123"><option value="" selected="selected">2007</option><option value="">2008</option></select> 年认识</p>
<p>关系描述: <input type="text" id="" class="b" /></p>
</div>
</div>
</div>
<div class="row">
<div class="section" id="section_4">
<h3><input type="checkbox" id="4" onclick="showRsDesc(4)"/> <label for="4">通过商务合作认识</label></h3>
<div class="relationShipDesc" id="section_desc_4" style="display:none;">
<p><select id="123"><option value="" selected="selected">2007</option><option value="">2008</option></select> 年</p>
<p><input type="text" id="" class="b"/></p>
</div>
</div>
<div class="section" id="section_5">
<h3><input type="checkbox" id="5" onclick="showRsDesc(5)"/> <label for="5">通过社团/协会认识</label></h3>
<div id="section_desc_5" style="display:none;">
<div class="relationShipDesc" id="relationShipDesc_5" >
<p><select id="123"><option value="" selected="selected">2007</option><option value="">2008</option></select> 年同在如下社团/协会</p>
<p><input type="text" id="" class="b"/></p>
</div>
<div class="addLink"><a href="#;" onclick="addRelationPart(5)">增加一段社团经历</a></div>
</div>
</div>
<div class="section" id="section_6">
<h3><input type="checkbox" id="6" onclick="showRsDesc(6)"/> <label for="6">通过聚会/活动认识</label></h3>
<div class="relationShipDesc" id="section_desc_6" style="display:none;">
<p><select id="123"><option value="" selected="selected">2007</option><option value="">2008</option></select> 年一起参加了:</p>
<p><input type="text" id="" class="b"/></p>
</div>
</div>
<div class="section" id="section_7">
<h3><input type="checkbox" id="7" onclick="showRsDesc(7)"/> <label for="7">通过5460认识</label></h3>
<div class="relationShipDesc" id="section_desc_7" style="display:none;">
<p><select id="123"><option value="" selected="selected">2007</option><option value="">2008</option></select> 年认识</p>
<p><input type="checkbox" id="" name="" /> 见过面</p>
</div>
</div>
<div class="section" id="section_10">
<h3><input type="checkbox" id="10" onclick="showRsDesc(10)"/> <label for="10">通过其他网站认识</label></h3>
<div class="relationShipDesc" id="section_desc_10" style="display:none;">
<p><select id="123"><option value="" selected="selected">2007</option><option value="">2008</option></select> 年在如下网站认识:</p>
<p><input type="text" id="" class="b"/></p>
<p><input type="checkbox" id="" name="" /> 见过面</p>
</div>
</div>
<!--
<div class="section" id="section_11">
<h3><input type="checkbox" id="11" onclick="showRsDesc(11)"/> <label for="11">不认识</label></h3>
<div class="relationShipDesc" id="section_desc_11" style="display:none;">
<p>不认识.暂时加为好友</p>
</div>
</div>
-->
</div>
</div>
</div>
<div class="fix"></div>
</div>
<div id="checkMsg" display:none;></div>
<div align="right" style="border-top:1px solid #cccccc;padding-top:4px;"><input type="button" name="" value=" 确 定 " class="b" onclick="processRelation('.$pid.')" /></div>
</div>
';
}
...全文
23 点赞 收藏 1
写回复
1 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
jackiechanzhao 2008-03-26
怎么没有人............
郁闷啊
回复
相关推荐
发帖
基础编程
创建于2007-09-28

2.1w+

社区成员

从PHP安装配置,PHP入门,PHP基础到PHP应用
申请成为版主
帖子事件
创建了帖子
2008-03-26 07:33
社区公告
暂无公告