<% var showQuickAct = showQuickActDD = 0; if((csLgndRep == 1 || csLgndRep == 2 || csLgndRep == 4) && is_active==1) { var showQuickAct = 1; } if(showQuickAct && taskTyp.id != 10){ var showQuickActDD = 1; } %>

#<%= csNoRep %>: <%= formatText(ucfirst(caseTitle)) %>

<% if(cntdta && (cntdta>0)) { %>Last updated<% } else { %>Created<% } %> by <%= lstUpdBy %> <% if(lupdtm.indexOf('Today')==-1 && lupdtm.indexOf('Y\'day')==-1) { %>on<% } %> <%= lupdtm %>. <% if(cntdta) { %>       (<%= total %>) <% } %> Last updated by Tom Foolery 12 hours ago      (40)
Type:
Priority:
Status: <% if(is_active){ %><%= easycase.getColorStatus(csTypRep, csLgndRep) %> <% } else { %>Archived<% } %>
Est. Hour(s): <% if(estimated_hours != 0.0) { %> <%= estimated_hours %> <% } else { %> None <% } %>
Hour(s) Spent: <% if(hours != 0.0) { %> <%= hours %> <% } else { %> None <% } %>
Milestone: <% if(mistn != '') { %> <%= mistn %> <% } else { %> None <% } %>
Milestone: <%= mistn?shortLength(mistn,20):'None' %>
Project: <%= shortLength(projName,16) %>
Task Progress: <% if(csLgndRep == 5 || csLgndRep == 3) { completedtask = 100; } var progress = 0; if(completedtask){ progress = completedtask; } %>
<%= progress %>%
<% if(pstFileExst) { %> <% } else { %> <% } %>
Created by <%= shortLength(crtdBy,20) %>
<%= frmtCrtdDt %>
<% if(dispSec) { %>
<%= csMsgRep %> <% var fc = 0; if(csFiles) { %>

<% var images = ""; var caseFileName = ""; for(var fileKey in filesArr) { var getFiles = filesArr[fileKey]; caseFileName = getFiles.CaseFile.file; downloadurl = getFiles.CaseFile.downloadurl; if(getFiles.CaseFile.is_exist) { fc++; %>
<% if(downloadurl) { %> <%= shortLength(caseFileName,37) %> <% } else { %> <%= shortLength(caseFileName,37) %>
<% if(getFiles.CaseFile.is_ImgFileExt){ %> (<%= getFiles.CaseFile.file_size %>)   View    Download <% } else{ %> (<%= getFiles.CaseFile.file_size %>)  Download <% } %>
<% } %>
<% if(fc%2==0) { %>
<% } %> <% } } %> <% } %>
<% } %>
<% if(cntdta){ if(total > 5){ %>
<% } %>
element('case_reply'); ?>
<% } %>
<% if(is_active){ %>
<% if(!usrFileExst){ var usrPhoto = 'user.png'; } %>
Write your Reply: 
<% if(csTypRep!=10 ){ var val = ""; %>
Status: 
<% } %>
Assign to:
Priority:
checked="checked" <% } %> />
Low
checked="checked" <% } %> />
Medium
checked="checked" <% } %> />
High
Hour(s) Spent:
<% if(csLgndRep != 0){ %>
Completed:
%
<% } %>
Attachment(s):
Select multiple files to upload...
Drag and Drop files to Upload
Max size <%= MAX_FILE_SIZE %> Mb
Notify via Email: checked="checked" <% } %> /> All
<% var i = 0; if(countJS(allMems)){ %>
<% for(var memkey in allMems){ var getAllMems = allMems[memkey]; var j = i%3; if(j == 0) { %> <% } %> <% i = i+1; var k = i%3; if(k == 0){ %> <% } } %>
checked <% } %> /> <%= shortLength(getAllMems.User.name,18) %>
<% } %>
or
<% } %>
<% if(asgnPic && asgnPic!=0) { %> <% } else { %> <% } %>
<% if(!is_active){ %>
<% } %> <% if(is_active && ((!CSrepcount) && csLgndRep ==1 && (SES_TYPE == 1 || SES_TYPE == 2 || (csUsrDtls== SES_ID))) ){ %>
<% } %> <% if(csLgndRep == 1 && csTypRep!= 10) { %>
<% } %> <% if(is_active && (SES_TYPE == 1 || SES_TYPE == 2 || ((csLgndRep == 1 || csLgndRep == 2 || csLgndRep == 4) && ( SES_ID == csUsrDtls)))) { %>
<% } if(SES_TYPE == 1 || SES_TYPE == 2 || (csLgndRep == 1 && SES_ID == csUsrDtls)) { %>
<% } if(is_active && ((is_active && csLgndRep == 1 || csLgndRep == 2 || csLgndRep == 4) && csTypRep!= 10)) { %>
<% } if(is_active && ((csLgndRep == 1 || csLgndRep == 2 || csLgndRep == 4 || csLgndRep == 5) && csTypRep != 10)) { %>
<% } %>

<% if(asgnPic && asgnPic!=0) { %> <% } else { %> <% } %>
<%= shortLength(asgnTo,15) %>
<%= asgnEmail %>


<% var fc = 0; if(all_files.length) { %>
Files in this Task
<% var imgaes = ""; var caseFileName = ""; for(var fkey in all_files){ var getFiles = all_files[fkey]; caseFileName = getFiles.CaseFile.file; downloadurl = getFiles.CaseFile.downloadurl; if(getFiles.CaseFile.is_exist) { fc++; if(fc==6) { %>
<% } %>
<% if(getFiles.CaseFile.is_ImgFileExt){ %> <% if(downloadurl){ %> <%= shortLength(caseFileName,25) %> <% } else { %> <%= shortLength(caseFileName,25) %> <% } } else{ if(downloadurl) { %> <%= shortLength(caseFileName,25) %> <% } else { %> <%= shortLength(caseFileName,25) %> <% } } %>
<%= getFiles.CaseFile.file_date %>
<% } %> <% } if(fc>5) { %>
<% } } if(fc==0) { %>
No Files in this Task
<% } %>

Activities
Created: <%= frmtCrtdDt %>
Last Updated: <%= lupdtm %>
<% if(lstRes) { %>
Resolved: <%= lstRes %>
<% } if(lstCls) { %>
Closed: <%= lstCls %>
<% } %>

People Involved
<% for(i in taskUsrs) { %>
<% var upic = 'user.png'; if(taskUsrs[i].User.photo && taskUsrs[i].User.photo!=0) { var upic = taskUsrs[i].User.photo; } %>
<% } %>