/papers/nysa-horde_talk/24_nagtemplate.xml.html
https://github.com/finger2000/horde-web · HTML · 24 lines · 20 code · 4 blank · 0 comment · 0 complexity · 07d59448e49db3ffe58fda575b8aa4d8 MD5 · raw file
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
- <html><head>
- <title>Presentations :: A Nag Template</title>
- <link href="presentation.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <table class='oratorHeader' border='0' cellspacing='0' cellpadding='1' width='100%'><tr>
- <td width='1%' align='left' class='oratorHeaderBack' valign='center' nowrap='nowrap'><a href="23_templates.xml.html" onmouseout="status='';" onmouseover="status='Go to Templates'; return true;"><img src="presentation_back.gif" border="0" alt="Back" title="Back" /></a></td><td style="cursor: hand;" onclick="location.href='23_templates.xml.html';" align="left" class="oratorHeaderBack" width="24%"><table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap"><div class='oratorTitleHigh'>Templates</div></td></tr></table></td>
- <td width='50%' align='center' style='cursor: hand;' class='oratorHeaderBack' valign='center' nowrap='nowrap' onclick='location.href="/horde/orator/slide.php?Horde=89b51803872c27be93225868fd7053c3&p=nysa-horde_talk&s=24";'><table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap"><div class='oratorTitle'>A Nag Template</div></td></tr></table></td>
- <td style='cursor: hand;' onclick='location.href="25_nagprefs.xml.html";' width='24%' align='right' class='oratorHeaderBack' valign='center' nowrap='nowrap'><table border="0" cellspacing="0" cellpadding="0"><tr><td nowrap="nowrap"><div class='oratorTitleHigh'>Nag Preferences</div></td></tr></table></td><td width="1%" align="right"><a href="25_nagprefs.xml.html" onmouseout="status='';" onmouseover="status='Go to Nag Preferences'; return true;"><img src="presentation_forward.gif" border="0" alt="Forward" title="Forward" /></a></td>
- </tr></table>
- <br /><br /><div align='center'>
- <table border='0' width='600'><tr><td align='left'>
- <p>An example template from Nag:</p>
- <code><font color="#000000">
- <br /><tr class="<font color="#0000BB"><?= $style ?></font>"><br /> <td width="3%" nowrap="nowrap"><br /> <input type="checkbox" name="items[]" value="<font color="#0000BB"><?= $task_id</font><font color="#007700">; </font><font color="#0000BB">?></font>" /><br /> </td><br /> <td width="67%" nowrap="nowrap"><br /> <font color="#0000BB"><?= Horde</font><font color="#007700">::</font><font color="#0000BB">link</font><font color="#007700">(</font><font color="#0000BB">Horde</font><font color="#007700">::</font><font color="#0000BB">applicationUrl</font><font color="#007700">(</font><font color="#DD0000">"view.php?task=$task_id"</font><font color="#007700">), </font><font color="#0000BB">_</font><font color="#007700">(</font><font color="#DD0000">"View Task Details"</font><font color="#007700">)) </font><font color="#0000BB">?><?= htmlspecialchars</font><font color="#007700">(</font><font color="#0000BB">$task</font><font color="#007700">[</font><font color="#DD0000">'name'</font><font color="#007700">]) </font><font color="#0000BB">?></font></a><br /> </td><br /> <td width="15%" nowrap="nowrap"><font color="#0000BB"><?= strftime</font><font color="#007700">(</font><font color="#0000BB">$conf</font><font color="#007700">[</font><font color="#DD0000">'list'</font><font color="#007700">][</font><font color="#DD0000">'date_format'</font><font color="#007700">], </font><font color="#0000BB">$task</font><font color="#007700">[</font><font color="#DD0000">'added'</font><font color="#007700">]); </font><font color="#0000BB">?></font></td><br /> <td width="15%" nowrap="nowrap"><br /><font color="#0000BB"><?php<br /> </font><font color="#007700">if (</font><font color="#0000BB">$task</font><font color="#007700">[</font><font color="#DD0000">'due'</font><font color="#007700">] > </font><font color="#0000BB">0</font><font color="#007700">) {<br /> echo </font><font color="#0000BB">strftime</font><font color="#007700">(</font><font color="#0000BB">$conf</font><font color="#007700">[</font><font color="#DD0000">'list'</font><font color="#007700">][</font><font color="#DD0000">'date_format'</font><font color="#007700">], </font><font color="#0000BB">$task</font><font color="#007700">[</font><font color="#DD0000">'due'</font><font color="#007700">]);<br /> } else {<br /> echo </font><font color="#0000BB">_</font><font color="#007700">(</font><font color="#DD0000">"None"</font><font color="#007700">);<br /> }<br /></font><font color="#0000BB">?><br /></font> </td><br /></tr><br /> </font>
- </code><br />
- </td></tr></table></div>
- </body>
- </html>