Template:TaskList

11:43, 11 Jan 2015 geändert von dsc | Historie
    Inhaltsverzeichnis
    keine Gliederung

    Version seit 15:36, 21 Nov 2024

    zu dieser Version.

    Zurück zu Versionshistorie.

    Zeige aktuelle Version

    var IsLate='false'; var BackColor = 'white'; 
    var todaysdate = date.format(date.changetimezone(date.now, user.timezone), "yyyy/MM/dd");     
    
    if(wiki.pageexists(page.path ..'/Teilprojekte')) {         if(#wiki.getpage(page.path ..'/Teilprojekte').subpages > 0) 
    { <table width="100%" class="sortable"><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 ..'/Teilprojekte').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' }
    
    Deki Appliance - Powered by TurnKey Linux