Advertisement
Advertisement
| 08.26.2008 at 02:17PM PDT, ID: 23680160 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: |
<!-- // BOX -->
<?PHP // Blah ?>
<div id="yopsbox" class="chunk">
<div class="rc_top"><div class="rc_tl"></div><div class="rc_tr"></div></div>
<div class="dsply">
<h4>Blah.</h4>
<div class="links">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<thead>
<tr>
<td align="left">Owner</td>
<td align="right">Tasks Assigned</td>
<td align="right">Tasks completed in<br> last 2 days</td>
<td align="right">Tasks due in<br> next 2 days</td>
</tr>
</thead>
<tbody>
<?PHP
// Count the number of tasks per user for project
$projectquery = "SELECT system.system_ou AS owner, Count(system.system_ou) AS tasks, Sum(Case When ntp_value = 'False' Then 1 Else 0 End) AS completed2days, Sum(Case When snmp_value = 'True' Then 1 Else 0 End) AS due2days FROM system GROUP BY system.system_ou";
$projectresult = mysql_query($projectquery);
while ($line = mysql_fetch_assoc($projectresult)) {
$arrticketsperuser[$line['owner']]['tasks'] = $line['tasks'];
$arrticketsperuser[$line['owner']]['completed2days'] = $line['completed2days'];
$arrticketsperuser[$line['owner']]['due2days'] = $line['due2days'];
}
foreach ($arrticketsperuser as $owner => $datat) {
echo "<tr class=result onMouseOver=\"this.className='highlight'\" onMouseOut=\"this.className='result'\">";
echo " <td align=left>";
echo $owner;
echo "</td>";
echo "<td align=right>"; if(isset($datat['tasks'])) echo $datat['tasks']; echo "</td>";
echo "<td align=right>"; if(isset($datat['completed2days'])) echo $datat['completed2days']; echo "</td>";
echo "<td align=right>"; if(isset($datat['due2days'])) echo $datat['due2days']; echo "</td>";
if (isset($datat['tasks'])) $ownertasksassigned += $datat['tasks'];
if (isset($datat['completed2days'])) $ownertaskscompleted += $datat['completed2days'];
if (isset($datat['due2days'])) $ownertasksdue += $datat['due2days'];
echo "</tr>\n";
}
// Print out the result of tickets per users
echo $resultticketsperuser;
?>
<tr class="result">
<td align="right"><strong>TOTAL: </strong></td>
<td align="right"><strong><?PHP echo $ownertasksassigned; ?></strong></td>
<td align="right"><strong><?PHP echo $ownertaskscompleted; ?></strong></td>
<td align="right"><strong><?PHP echo $ownertasksdue; ?></strong></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="rc_bot"><div class="rc_bl"></div><div class="rc_br"></div></div>
</div>
<!-- // BOX -->
|