01 case 'editreply':
02 $("#editquotelink").val($("#quote_"+id).html());
03 //$('#editreply').val($('#post_'+id).html());
04 var old_reply = $('#post_'+id).html();
05 $("#editreply_div").iDialog({
06 title:'{lang
ask_input_addtional}',
07 width:500,
08
height:'auto',
09
submit:function(){
10
//var
editreply =
document.getElementByIdx_x('editreply').value;
11
var editreply = editor['editreply'].getContent();
12
var editquotelink = document.getElementById('editquotelink').value;
13
if( !(editor['editreply'].hasContents())
) {
14
$("body").iTips({content:'{lang
ask_null_enter}',css:'notice'});
15
return false;
16
}
17
var url = '{$_G[PHP_SELF]}?mod={$_G[mod]}&do=action&act=editreply&postid='+id;
18
$.post(url,{editreply:editreply,editquotelink:editquotelink},function(data){
19
if(data.IsSuccess){
20
$("body").iTips({content:'{lang
ask_modify_success}',css:'success'});
21
$("#editreply_div").dialog('close');
22
$("#post_"+id).html(editreply);
23
if(editquotelink!=''){
24
$("#quotelink_title_{$replylist['postid']}").removeClass();
25
$("#quote_"+id).html(editquotelink);
26
}else if(data.isLocked){
27
$("body").iTips({content:'{lang
ask_post_locked}',css:'warning'});
28
}else{
29
$("body").iTips({content:'{lang
ask_modify_failure}',css:'error'});
30
}
31
}
32
},'json')
33
}
34 });
35 setTimeout(function(){
36 //设置编辑器的内容为之前回答的内容
37 editor['editreply'].setContent(old_reply);
38 //让编辑器在最顶层显示
39 $("#editreply").children().css("z-index",10000);
40 }, 1000);
41 break;
01 <tbody id='rec'>
02 <!--{if
is_array($recordarr)}-->
03 <!--{loop
$recordarr $reckey $recvalue}-->
04 <tr id="rec_{eval
echo $rec_recursion++;}">
05
<th class="w100"><div class="mr20
y"><span class="badge">{eval
echo $rec_recursion-1;}</span></div></th>
06
<td>
07
<!--{if
$recvalue['flag']=='2'}-->
08
<input name="worksrecord[{$reckey}]" onFocus="select();" class="w_60
mr10" maxlength="255"value='{$recvalue[content]}'>
09
<input type='hidden' value='{$reckey}' name='recordidstr[]'>
10
<!--{else}-->
11
{$recvalue['content']}
12
<input name="worksrecord[$reckey]" type='hidden' value='{$recvalue[content]}'>
13
<input type='hidden' value='{$reckey}' name='recordidstr[]'>
14
<!--{/if}-->
15
<div class='y'>
16
<input id='processinput_{$reckey}' type="hidden" name="process[{$reckey}]" value='{eval
echo $recvalue[process]*10;}'>
17
<label style="width:40px;display:block;" class='y' id='processbar_info_{$reckey}'> {eval
echo $recvalue[process]*10;}%</label>
18
<div id='processbar_{$reckey}'></div>
19
<div class='y'><!--{if
$recvalue['flag']=='2'}-->{lang
outofplan}<!--{else}-->{lang
originalplan}<!--{/if}--></div>
20
<script>
21
$("#processbar_{$reckey}").studyplay_star({CurrentStar:{$recvalue[process]}+1,prefix:'{$reckey}'},function(value){setprocess(value,'processinput_{$reckey}')});
22
</script>
23
</div>
24
</td>
25 </tr>
26 <!--{/loop}-->
27 <tr id="rec_{eval
echo $rec_recursion++;}">
28
{eval $curtime = time();}
29
<th><div class="mr20
y">
30
<span class="badge">{eval
echo $rec_recursion-1;}</span></div>
31
</th>
32
<td>
33
<div class='y'>
34
<label style="width:40px;display:block;" class='y'
35
id='processbar_info_{eval
echo $curtime;}'> 100%</label>
36
<input id='processinput_{eval
echo $curtime;}'
37
type="hidden" name="process2[]" value='100'>
38
<div id='processbar_{eval
echo $curtime;}'></div>
39
<div class='y'>{lang
outofplan}</div>
40
<script>
41
$("#processbar_{eval echo
$curtime;}").studyplay_star({CurrentStar:11,prefix:'{eval echo
$curtime;}'},function(value){setprocess(value,'processinput_{eval
echo $curtime;}')});
42
</script>
43
</div>
44
<div>
45
<input name="worksrecord2[]" onFocus="select();" class="w_60" maxlength="255">
46
<a title="{lang
close}" class="i-close-circle
mr10" href="javascript:;" onClick="recordaction.del(this)"></a>
47
</div>
48
</td>
49 </tr>
50 <!--{else}-->