From: Martin V. <mar...@us...> - 2006-03-11 17:32:56
|
Update of /cvsroot/outreach/opt/admin/info/knowledge In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5522/admin/info/knowledge Modified Files: details.php index.php Log Message: Beautified source: Removed all ^M, created by DOS/Win editors Index: details.php =================================================================== RCS file: /cvsroot/outreach/opt/admin/info/knowledge/details.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** details.php 15 Aug 2002 20:42:17 -0000 1.1.1.1 --- details.php 11 Mar 2006 17:32:19 -0000 1.2 *************** *** 1,121 **** ! <? ! # ! # Knowledge transfer log page ! # ! # Bogdan Stancescu <bo...@la...>, November 2001 ! # Revision 1.0 ! include "../../../include/OPT_lib.php"; ! auth_open(); ! ?> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> ! <HTML> ! <HEAD> ! <TITLE>Knowledge Transfer Log</TITLE> ! <LINK REL=STYLESHEET TYPE="text/css" HREF="../../../include/opt_css.php"> ! <script language="javascript"> ! <!-- ! parent.leftFrame.location='../leftMenu/'; ! // --> ! ! </script> ! <? echo $_OPT["head_xtra"]; ?> ! </HEAD> ! <? ! if (($CRM_comp!=1) && !$CRM_guest) ! { ! echo("Page not found"); ! auth_close(); ! exit; ! } ! if (!$cat) ! { ! echo("Please select a category first."); ! auth_close(); ! exit; ! } ! mainBody("../../../images"); ! make_main_title("Knowledge Transfer Log - $cat","../../../images"); ! ?> ! <? ! $sql="select id,dataincount,datain,dataoutcount,dataout,intrvl from know_log where entry_type='$cat' order by date desc"; ! $cresult=crm_run_query($sql); ! if (!OPT_num_rows($cresult)) ! { ! echo("<div class='regular' align='center'>\n"); ! echo("<i>No knowledge transfer for $cat</i>\n</div>\n</body>\n</html>"); ! auth_close(); ! exit; ! } ! startTables(); ! ?> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_dk ?>" colspan="6" align="center"> ! <strong>Log history for <? echo $cat ?></strong> ! </td> ! </tr> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Date</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Log interval</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>In Count</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>In Size</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Out Count</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Out Size</strong></td> ! </tr> ! <? ! $grey=0; ! $main_col="bgcolor='$OPT_col_lt'"; ! while ($myrow=OPT_fetch_row($cresult)) ! { ! echo("<tr>\n"); ! echo("<td $main_col class='regular'>".niceDate("know_log","date",$myrow[0],1)."</td>\n"); ! $interval="Month"; ! if ($myrow[5]=="d") ! { ! $interval="Day"; ! } ! elseif ($myrow[5]=="w") ! { ! $interval="Week"; ! } ! elseif ($myrow[5]=="y") ! { ! $interval="Year"; ! } ! echo("<td $main_col class='regular'>$interval</td>\n"); ! echo("<td $main_col class='regular'>$myrow[1]</td>\n"); ! $tot_incount+=$myrow[1]; ! echo("<td $main_col class='regular'>".niceSize($myrow[2],1)."</td>\n"); ! $tot_in+=$myrow[2]; ! echo("<td $main_col class='regular'>$myrow[3]</td>\n"); ! $tot_outcount+=$myrow[3]; ! echo("<td $main_col class='regular'>".niceSize($myrow[4],1)."</td>\n"); ! $tot_out+=$myrow[4]; ! echo("</tr>\n"); ! ! $grey=1-$grey; ! ! if ($grey) ! { ! $main_col="bgcolor='$OPT_col_md'"; ! } ! else ! { ! $main_col="bgcolor='$OPT_col_lt'"; ! } ! } ! echo("<tr>\n"); ! echo("<td $main_col class='regular'><strong>TOTAL</strong></td>\n"); ! $sql="select to_days(now())-to_days(min(date)) from know_log"; ! $result=crm_run_query($sql); ! list($days)=OPT_fetch_row($result); ! echo("<td $main_col class='regular'><strong>$days days</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>$tot_incount</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>".niceSize($tot_in,1)."</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>$tot_outcount</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>".niceSize($tot_out,1)."</strong></td>\n"); ! echo("</tr>\n"); ! endTables(); ! auth_close(); ! ?> ! </BODY> ! </HTML> --- 1,121 ---- ! <? ! # ! # Knowledge transfer log page ! # ! # Bogdan Stancescu <bo...@la...>, November 2001 ! # Revision 1.0 ! include "../../../include/OPT_lib.php"; ! auth_open(); ! ?> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> ! <HTML> ! <HEAD> ! <TITLE>Knowledge Transfer Log</TITLE> ! <LINK REL=STYLESHEET TYPE="text/css" HREF="../../../include/opt_css.php"> ! <script language="javascript"> ! <!-- ! parent.leftFrame.location='../leftMenu/'; ! // --> ! ! </script> ! <? echo $_OPT["head_xtra"]; ?> ! </HEAD> ! <? ! if (($CRM_comp!=1) && !$CRM_guest) ! { ! echo("Page not found"); ! auth_close(); ! exit; ! } ! if (!$cat) ! { ! echo("Please select a category first."); ! auth_close(); ! exit; ! } ! mainBody("../../../images"); ! make_main_title("Knowledge Transfer Log - $cat","../../../images"); ! ?> ! <? ! $sql="select id,dataincount,datain,dataoutcount,dataout,intrvl from know_log where entry_type='$cat' order by date desc"; ! $cresult=crm_run_query($sql); ! if (!OPT_num_rows($cresult)) ! { ! echo("<div class='regular' align='center'>\n"); ! echo("<i>No knowledge transfer for $cat</i>\n</div>\n</body>\n</html>"); ! auth_close(); ! exit; ! } ! startTables(); ! ?> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_dk ?>" colspan="6" align="center"> ! <strong>Log history for <? echo $cat ?></strong> ! </td> ! </tr> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Date</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Log interval</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>In Count</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>In Size</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Out Count</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Out Size</strong></td> ! </tr> ! <? ! $grey=0; ! $main_col="bgcolor='$OPT_col_lt'"; ! while ($myrow=OPT_fetch_row($cresult)) ! { ! echo("<tr>\n"); ! echo("<td $main_col class='regular'>".niceDate("know_log","date",$myrow[0],1)."</td>\n"); ! $interval="Month"; ! if ($myrow[5]=="d") ! { ! $interval="Day"; ! } ! elseif ($myrow[5]=="w") ! { ! $interval="Week"; ! } ! elseif ($myrow[5]=="y") ! { ! $interval="Year"; ! } ! echo("<td $main_col class='regular'>$interval</td>\n"); ! echo("<td $main_col class='regular'>$myrow[1]</td>\n"); ! $tot_incount+=$myrow[1]; ! echo("<td $main_col class='regular'>".niceSize($myrow[2],1)."</td>\n"); ! $tot_in+=$myrow[2]; ! echo("<td $main_col class='regular'>$myrow[3]</td>\n"); ! $tot_outcount+=$myrow[3]; ! echo("<td $main_col class='regular'>".niceSize($myrow[4],1)."</td>\n"); ! $tot_out+=$myrow[4]; ! echo("</tr>\n"); ! ! $grey=1-$grey; ! ! if ($grey) ! { ! $main_col="bgcolor='$OPT_col_md'"; ! } ! else ! { ! $main_col="bgcolor='$OPT_col_lt'"; ! } ! } ! echo("<tr>\n"); ! echo("<td $main_col class='regular'><strong>TOTAL</strong></td>\n"); ! $sql="select to_days(now())-to_days(min(date)) from know_log"; ! $result=crm_run_query($sql); ! list($days)=OPT_fetch_row($result); ! echo("<td $main_col class='regular'><strong>$days days</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>$tot_incount</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>".niceSize($tot_in,1)."</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>$tot_outcount</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>".niceSize($tot_out,1)."</strong></td>\n"); ! echo("</tr>\n"); ! endTables(); ! auth_close(); ! ?> ! </BODY> ! </HTML> Index: index.php =================================================================== RCS file: /cvsroot/outreach/opt/admin/info/knowledge/index.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** index.php 15 Aug 2002 20:42:17 -0000 1.1.1.1 --- index.php 11 Mar 2006 17:32:19 -0000 1.2 *************** *** 1,175 **** ! <? ! # ! # Knowledge transfer log page ! # ! # Bogdan Stancescu <bo...@la...>, November 2001 ! # Revision 1.0 ! include "../../../include/OPT_lib.php"; ! auth_open(); ! ?> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> ! <HTML> ! <HEAD> ! <TITLE>Knowledge Transfer Log</TITLE> ! <LINK REL=STYLESHEET TYPE="text/css" HREF="../../../include/opt_css.php"> ! <script language="javascript"> ! <!-- ! parent.leftFrame.location='../leftMenu/'; ! // --> ! ! </script> ! <? echo $_OPT["head_xtra"]; ?> ! </HEAD> ! <? ! if (($CRM_comp!=1) && !$CRM_guest) ! { ! echo("Page not found"); ! exit; ! } ! mainBody("../../../images"); ! make_main_title("Knowledge Transfer Log","../../../images"); ! ! $sql="select distinct entry_type from know_log"; ! $cresult=crm_run_query($sql); ! if (!OPT_num_rows($cresult)) ! { ! echo("<div class='regular' align='center'>\n"); ! echo("<i>No knowledge transfer for now</i>\n</div>\n</body>\n</html>"); ! auth_close(); ! exit; ! } ! ! startTables(); ! ?> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_dk ?>" colspan="5" align="center"> ! <strong>Total stats</strong> ! </td> ! </tr> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Category</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>In Count</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>In Size</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Out Count</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Out Size</strong></td> ! </tr> ! <? ! $grey=0; ! $main_col="bgcolor='$OPT_col_lt'"; ! while ($myrow_c=OPT_fetch_row($cresult)) ! { ! $sql="select ! sum(dataincount), sum(datain), sum(dataoutcount), sum(dataout) ! from ! know_log ! where ! entry_type='$myrow_c[0]'"; ! $result=crm_run_query($sql); ! $myrow=OPT_fetch_row($result); ! echo("<tr>\n"); ! echo("<td $main_col class='regular'><a class='regular' href='./details.php?cat=$myrow_c[0]'>$myrow_c[0]</a></td>\n"); ! echo("<td $main_col class='regular'>$myrow[0]</td>\n"); ! $tot_incount+=$myrow[0]; ! echo("<td $main_col class='regular'>".niceSize($myrow[1],1)."</td>\n"); ! $tot_in+=$myrow[1]; ! echo("<td $main_col class='regular'>$myrow[2]</td>\n"); ! $tot_outcount+=$myrow[2]; ! echo("<td $main_col class='regular'>".niceSize($myrow[3],1)."</td>\n"); ! $tot_out+=$myrow[3]; ! echo("</tr>\n"); ! ! $grey=1-$grey; ! ! if ($grey) ! { ! $main_col="bgcolor='$OPT_col_md'"; ! } ! else ! { ! $main_col="bgcolor='$OPT_col_lt'"; ! } ! } ! echo("<tr>\n"); ! echo("<td $main_col class='regular'><strong>TOTAL</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>$tot_incount</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>".niceSize($tot_in,1)."</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>$tot_outcount</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>".niceSize($tot_out,1)."</strong></td>\n"); ! echo("</tr>\n"); ! endTables(); ! startTables(); ! ?> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_dk ?>" colspan="5" align="center"> ! <strong>Average stats</strong> ! </td> ! </tr> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Interval</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>In Count</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>In Size</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Out Count</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Out Size</strong></td> ! </tr> ! <? ! $sql="select to_days(now())-to_days(min(date)) from know_log"; ! $result=crm_run_query($sql); ! list($days)=OPT_fetch_row($result); ! ! // Day ! $totdays=$days; ! $main_col="bgcolor='$OPT_col_lt'"; ! echo("<tr>\n"); ! echo("<td $main_col class='regular'>Day ($days days)</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_incount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_in*100/$days)/100,1)."</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_outcount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_out*100/$days)/100,1)."</td>\n"); ! echo("</tr>\n"); ! ! // Week ! $days=$totdays/7; ! $main_col="bgcolor='$OPT_col_md'"; ! echo("<tr>\n"); ! echo("<td $main_col class='regular'>Week (".(round($days*100)/100)." weeks)</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_incount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_in*100/$days)/100,1)."</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_outcount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_out*100/$days)/100,1)."</td>\n"); ! echo("</tr>\n"); ! ! // Month ! $days=$totdays/30.42; ! $main_col="bgcolor='$OPT_col_lt'"; ! echo("<tr>\n"); ! echo("<td $main_col class='regular'>Month (".(round($days*100)/100)." months)</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_incount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_in*100/$days)/100,1)."</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_outcount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_out*100/$days)/100,1)."</td>\n"); ! ! // Year ! $days=$totdays/365; ! $main_col="bgcolor='$OPT_col_md'"; ! echo("<tr>\n"); ! echo("<td $main_col class='regular'>Year (".(round($days*100)/100)." years)</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_incount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_in*100/$days)/100,1)."</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_outcount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_out*100/$days)/100,1)."</td>\n"); ! ! echo("</tr>\n"); ! ?> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_dk ?>" colspan="5" align="center"> ! Please note the averages are based on the data logged so far since the first knowledge ! transaction took place (i.e. not since OPT was installed). The values in paranthesis ! show how long ago this happened. ! </td> ! </tr> ! <? ! endTables(); ! auth_close(); ! ?> ! </BODY> ! </HTML> --- 1,175 ---- ! <? ! # ! # Knowledge transfer log page ! # ! # Bogdan Stancescu <bo...@la...>, November 2001 ! # Revision 1.0 ! include "../../../include/OPT_lib.php"; ! auth_open(); ! ?> ! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> ! <HTML> ! <HEAD> ! <TITLE>Knowledge Transfer Log</TITLE> ! <LINK REL=STYLESHEET TYPE="text/css" HREF="../../../include/opt_css.php"> ! <script language="javascript"> ! <!-- ! parent.leftFrame.location='../leftMenu/'; ! // --> ! ! </script> ! <? echo $_OPT["head_xtra"]; ?> ! </HEAD> ! <? ! if (($CRM_comp!=1) && !$CRM_guest) ! { ! echo("Page not found"); ! exit; ! } ! mainBody("../../../images"); ! make_main_title("Knowledge Transfer Log","../../../images"); ! ! $sql="select distinct entry_type from know_log"; ! $cresult=crm_run_query($sql); ! if (!OPT_num_rows($cresult)) ! { ! echo("<div class='regular' align='center'>\n"); ! echo("<i>No knowledge transfer for now</i>\n</div>\n</body>\n</html>"); ! auth_close(); ! exit; ! } ! ! startTables(); ! ?> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_dk ?>" colspan="5" align="center"> ! <strong>Total stats</strong> ! </td> ! </tr> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Category</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>In Count</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>In Size</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Out Count</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Out Size</strong></td> ! </tr> ! <? ! $grey=0; ! $main_col="bgcolor='$OPT_col_lt'"; ! while ($myrow_c=OPT_fetch_row($cresult)) ! { ! $sql="select ! sum(dataincount), sum(datain), sum(dataoutcount), sum(dataout) ! from ! know_log ! where ! entry_type='$myrow_c[0]'"; ! $result=crm_run_query($sql); ! $myrow=OPT_fetch_row($result); ! echo("<tr>\n"); ! echo("<td $main_col class='regular'><a class='regular' href='./details.php?cat=$myrow_c[0]'>$myrow_c[0]</a></td>\n"); ! echo("<td $main_col class='regular'>$myrow[0]</td>\n"); ! $tot_incount+=$myrow[0]; ! echo("<td $main_col class='regular'>".niceSize($myrow[1],1)."</td>\n"); ! $tot_in+=$myrow[1]; ! echo("<td $main_col class='regular'>$myrow[2]</td>\n"); ! $tot_outcount+=$myrow[2]; ! echo("<td $main_col class='regular'>".niceSize($myrow[3],1)."</td>\n"); ! $tot_out+=$myrow[3]; ! echo("</tr>\n"); ! ! $grey=1-$grey; ! ! if ($grey) ! { ! $main_col="bgcolor='$OPT_col_md'"; ! } ! else ! { ! $main_col="bgcolor='$OPT_col_lt'"; ! } ! } ! echo("<tr>\n"); ! echo("<td $main_col class='regular'><strong>TOTAL</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>$tot_incount</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>".niceSize($tot_in,1)."</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>$tot_outcount</strong></td>\n"); ! echo("<td $main_col class='regular'><strong>".niceSize($tot_out,1)."</strong></td>\n"); ! echo("</tr>\n"); ! endTables(); ! startTables(); ! ?> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_dk ?>" colspan="5" align="center"> ! <strong>Average stats</strong> ! </td> ! </tr> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Interval</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>In Count</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>In Size</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Out Count</strong></td> ! <td class="regular" bgcolor="<? echo $OPT_col_md ?>"><strong>Out Size</strong></td> ! </tr> ! <? ! $sql="select to_days(now())-to_days(min(date)) from know_log"; ! $result=crm_run_query($sql); ! list($days)=OPT_fetch_row($result); ! ! // Day ! $totdays=$days; ! $main_col="bgcolor='$OPT_col_lt'"; ! echo("<tr>\n"); ! echo("<td $main_col class='regular'>Day ($days days)</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_incount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_in*100/$days)/100,1)."</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_outcount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_out*100/$days)/100,1)."</td>\n"); ! echo("</tr>\n"); ! ! // Week ! $days=$totdays/7; ! $main_col="bgcolor='$OPT_col_md'"; ! echo("<tr>\n"); ! echo("<td $main_col class='regular'>Week (".(round($days*100)/100)." weeks)</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_incount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_in*100/$days)/100,1)."</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_outcount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_out*100/$days)/100,1)."</td>\n"); ! echo("</tr>\n"); ! ! // Month ! $days=$totdays/30.42; ! $main_col="bgcolor='$OPT_col_lt'"; ! echo("<tr>\n"); ! echo("<td $main_col class='regular'>Month (".(round($days*100)/100)." months)</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_incount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_in*100/$days)/100,1)."</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_outcount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_out*100/$days)/100,1)."</td>\n"); ! ! // Year ! $days=$totdays/365; ! $main_col="bgcolor='$OPT_col_md'"; ! echo("<tr>\n"); ! echo("<td $main_col class='regular'>Year (".(round($days*100)/100)." years)</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_incount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_in*100/$days)/100,1)."</td>\n"); ! echo("<td $main_col class='regular'>".(round($tot_outcount/$days))."</td>\n"); ! echo("<td $main_col class='regular'>".niceSize(round($tot_out*100/$days)/100,1)."</td>\n"); ! ! echo("</tr>\n"); ! ?> ! <tr> ! <td class="regular" bgcolor="<? echo $OPT_col_dk ?>" colspan="5" align="center"> ! Please note the averages are based on the data logged so far since the first knowledge ! transaction took place (i.e. not since OPT was installed). The values in paranthesis ! show how long ago this happened. ! </td> ! </tr> ! <? ! endTables(); ! auth_close(); ! ?> ! </BODY> ! </HTML> |