Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
103 - 1
<?php echo showSectionHead($pluginText["Diary Comments"]); ?>
2
<form id="projectform">
3
	<div id="live-chat">
4
		<header class="clearfix"><?php echo $spText['common']['Name']?>:
5
			<select onchange="doDiaryAction('<?php echo PLUGIN_SCRIPT_URL?>', 'content', 'action=newComment', 'diary_id','diary_id')" name="diary_id" id="diary_id">
6
					<?php foreach($diaryList as $drInfo){?>
7
						<?php if($drInfo['id'] == $diaryId){?>
8
							<option value="<?php echo $drInfo['id']?>" selected><?php echo $drInfo['title']?></option>
9
						<?php }else{?>
10
							<option value="<?php echo $drInfo['id']?>"><?php echo $drInfo['title']?></option>
11
						<?php }?>
12
					<?php }?>
13
			</select>
14
		</header>
15
	</div>
16
	<div class="chat">
17
    <div class="chat-history">
18
 
19
        <div class="chat-message clearfix">
20
	        <div class="chat-message-content clearfix">
21
				<pre class="chat-desc"><?php echo $diaryInfo['description']?></pre>
22
	         </div>
23
        </div>
24
 
25
		<?php if(count($diaryCommentList) > 0) {?>
26
        	<div class="chat-message clearfix">
27
    	        <div class="chat-message-content clearfix">
28
    		        <?php
29
    				foreach($diaryCommentList as $i => $listInfo){
30
						?>
31
						<div class="chat-container">
32
				              <p class="chat-desc-small"><?php echo $listInfo['comments']?></p>
33
				              <div style="clear: both;"></div>
34
				              <h5 class="chat-name"><?php echo $userIdList[$listInfo['user_id']]['username']?></h5>
35
				              <div style="clear: both;"></div>
36
				           	  <span class="chat-time"><?php echo $listInfo['updated_time']?></span>
37
				        </div>
38
						<?php
39
    				}
40
    				?>
41
    	        </div>
42
        	</div>
43
    	<?php }?>
44
 
45
		<textarea name="comments" class="ui-autocomplete-input" aria-autocomplete="list" aria-haspopup="true" placeholder="<?php echo $pluginText['Add your comment here']?>..."><?php echo $post['comments']?></textarea>
46
	    <?php echo $errMsg['comments']?>
47
 
48
	    <table width="100%" class="actionSec">
49
        	<tr>
50
            	<td style="padding-top: 6px;text-align:right;">
51
                 	<?php $actFun1 = SP_DEMO ? "alertDemoMsg()" : pluginPOSTMethod('projectform', 'content', 'action=newComment'); ?>
52
            		<a onclick="<?php echo $actFun1?>" href="javascript:void(0);" class="actionbut">
53
                 		<?php echo $spText['button']['Cancel']?>
54
                 	</a>&nbsp;
55
 
56
                 	<?php $actFun = SP_DEMO ? "alertDemoMsg()" : pluginPOSTMethod('projectform', 'content', 'action=createComment'); ?>
57
                 	<a onclick="<?php echo $actFun?>" href="javascript:void(0);" class="actionbut">
58
                 		<?php echo $pluginText['Add Comment']?>
59
                 	</a>
60
            	</td>
61
        	</tr>
62
        </table>
63
    </div>
64
</div>
65
</form>