TaskList

Von $1

  • You do not have permissions to view this page - please try logging in.
Inhaltsverzeichnis
keine Gliederung
var IsLate='false'; var BackColor = 'white'; 
var todaysdate = date.format(date.changetimezone(date.now, user.timezone), "yyyy/MM/dd");     

if(wiki.pageexists(page.path ..'/Projekte')) {         if(#wiki.getpage(page.path ..'/Projekte').subpages > 0) 
{ <table width="100%" class="sortable, table" border="1" cellpadding="1" cellspacing="1"><tbody>     <th>         <b>'Benutzer'</b>     </th>     
<th>         <b>'Projekt Name'</b>     </th>     <th>         <b>'Detail'</b>     </th>     
<th>         <b>'Start'</b>     </th>     <th>         <b>'Deadline'</b>     </th>     
<th>         <b>'Prio'</b>     </th>     <th>         <b>'Status'</b>     </th>   
foreach(var p in wiki.getpage(page.path ..'/Projekte').subpages) 
{
var utext = xml.text(wiki.page(p.path),"//*[@class='username']");             
var stext = xml.text(wiki.page(p.path),"//*[@class='summary']");             
var sdtext = xml.text(wiki.page(p.path),"//*[@class='startdate']");             
var edtext = xml.text(wiki.page(p.path),"//*[@class='enddate']");             
var prtext = xml.text(wiki.page(p.path),"//*[@class='priority']");             
var sttext = xml.text(wiki.page(p.path),"//*[@class='status']");    
        
if(date.IsAfter(todaysdate,edtext)) 
{ let IsLate = 'true'; let BackColor = '#FF9999';        } 
else {                 if(date.IsSameDay(todaysdate,edtext)) {                      let IsLate = 'false';                      let BackColor = '#FFFF99';                 } 
else {                      let IsLate = 'false';                      let BackColor = 'white';                 }             } 
if(string.toupper(string.trim(sttext)) == 'C') 
{     <tr BGCOLOR="Mediumspringgreen">         <td>         <strike>             utext;         </strike>         </td> 
 <td>         <strike>             web.link(p.uri, p.title);         </strike>         </td>         
 <td>         <strike>             stext;         </strike>         </td>         
 <td>         <strike>             sdtext;         </strike>         </td>         
 <td>         <strike>             edtext;         </strike>         </td>         
 <td>         <strike>             prtext;         </strike>         </td>         
 <td>         <strike>             sttext;         </strike>         </td>     
 </tr> } else {     <tr BGCOLOR=(BackColor)>         <td>             utext;         
 </td>         <td>             web.link(p.uri, p.title);         
 </td>         <td>             stext;         </td>         <td>             sdtext;         
 </td>         <td>             edtext;         </td>         <td>             prtext;         
 </td>         <td>             sttext;         </td>     </tr>   } } </tbody></table> } 
 else { 'There are currently no tasks assigned' } } else { 'There are currently no tasks assigned' }
Tags: (Schlagworte bearbeiten)
  • No tags
 
Kommentare (0)
Um einen Kommentar zu schreiben, müssen Sie sich anmelden.

 
Use the language selection below for English Utilise le sélecteur de langue ci-dessous pour français Per l'italiano, utilizzare la selezione della lingua qui sotto Schön sprichst du deutsch :-)