BUG 0000 BUG 0000 User Inbox Simplified (4th commit)
This commit is contained in:
@@ -23,6 +23,15 @@
|
||||
background-color:#ECECEC;
|
||||
|
||||
}
|
||||
|
||||
#note_text {
|
||||
width:100%;
|
||||
height:52px;
|
||||
}
|
||||
|
||||
.postitem:hover{
|
||||
/*background:#EFEFEF;*/
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
@@ -51,6 +60,7 @@
|
||||
|
||||
function addNt(appUid)
|
||||
{
|
||||
$('textarea#note_text').val('');
|
||||
$( "#dialog-add-note" ).dialog({
|
||||
resizable: false,
|
||||
height:178,
|
||||
@@ -105,64 +115,47 @@
|
||||
);
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
|
||||
$(document).ready(function(){
|
||||
$("#loadmorebutton").click(function (){
|
||||
$('#loadmorebutton').html('<img src="/images/ajax-loader.gif" />');
|
||||
$.ajax({
|
||||
url: "getApps?start="+appListStart+"&limit="+appListLimit,
|
||||
success: function(html){
|
||||
appListStart += appListLimit;
|
||||
|
||||
if(html){
|
||||
$("#commentlist").append(html);
|
||||
$('#loadmorebutton').html('Load More');
|
||||
}
|
||||
else {
|
||||
$('#loadmorebutton').replaceWith('<center>No more posts to show.</center>');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return false;
|
||||
});
|
||||
});
|
||||
{/literal}
|
||||
|
||||
var appListLimit = {$appListLimit};
|
||||
var appListStart = {$appListStart};
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body onload="resize()" onresize="resize()" >
|
||||
<center>
|
||||
<div class="content-header" style="text-align:left">
|
||||
<h1 style="padding: 10px">{$title}</h1>
|
||||
<h1 style="padding: 10px">{$title} ({$cases_count})</h1>
|
||||
<ul id="commentlist">
|
||||
{foreach from=$cases key=id item=APP}
|
||||
<li>
|
||||
<!-- <span class="messages-link"></span> -->
|
||||
<span class="commentnumber">
|
||||
#{$APP.APP_NUMBER}
|
||||
</span>
|
||||
|
||||
<span id="n_{$APP.APP_UID}" class="notes-link" style="display:{if $APP.NOTES_COUNT neq 0}block{else}none{/if}">
|
||||
<a href="#" onclick="showNt('{$APP.APP_UID}'); return false;"><img src="/images/simplified/messages-grey.png" height="20" width="20"></a>
|
||||
</span>
|
||||
|
||||
<span class="notes-plus-link">
|
||||
<a href="#" onclick="addNt('{$APP.APP_UID}', '{$APP.APP_UID}'); return false;"><img src="/images/simplified/messages-grey-plus.png" height="21" width="21"></a>
|
||||
</span>
|
||||
|
||||
<p>
|
||||
<cite>
|
||||
<a href="../cases/cases_Open?APP_UID={$APP.APP_UID}&DEL_INDEX={$APP.DEL_INDEX}&action=todo">{$APP.APP_TITLE}</a>
|
||||
</cite>
|
||||
</p>
|
||||
<p class="time">{$APP.DEL_DELEGATE_DATE}<!-- February 8th, 2009 at 5:38 am --></p>
|
||||
<p>{$APP.APP_PRO_TITLE}
|
||||
<br/>{$APP.APP_TAS_TITLE}</p>
|
||||
|
||||
<div id="m_{$APP.APP_UID}" class="appMessages">
|
||||
{if $APP.NOTES_COUNT neq 0}
|
||||
{foreach from=$APP.NOTES_LIST key=k item=NOTE}
|
||||
<div class="appMessage">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td width="50" valign="top">
|
||||
<img border="0" src="../users/users_ViewPhotoGrid?pUID={$NOTE.USR_UID}" width="40" height="40"/>
|
||||
</td>
|
||||
<td>
|
||||
<h3>{$NOTE.USR_FIRSTNAME} {$NOTE.USR_LASTNAME} ({$NOTE.USR_USERNAME})</h3>
|
||||
<p><pre>{$NOTE.NOTE_CONTENT}</pre>
|
||||
|
||||
<div class="appMessageDate">Posted at {$NOTE.NOTE_DATE}</div>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{/foreach}
|
||||
{/if}
|
||||
</div>
|
||||
|
||||
</li>
|
||||
{/foreach}
|
||||
{include file='home/applications.html'}
|
||||
</ul>
|
||||
|
||||
<center>
|
||||
<a href="#" style="color:#1F98C7; font-size:12px; font-weight:bold;" id="loadmorebutton">Load More</a>
|
||||
</center>
|
||||
</div>
|
||||
</center>
|
||||
|
||||
@@ -172,6 +165,6 @@
|
||||
<textarea id="note_text" rows="2" cols="22"></textarea>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<br/>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user