当前位置: 首页>>代码示例>>PHP>>正文


PHP graph::graph_bar方法代码示例

本文整理汇总了PHP中graph::graph_bar方法的典型用法代码示例。如果您正苦于以下问题:PHP graph::graph_bar方法的具体用法?PHP graph::graph_bar怎么用?PHP graph::graph_bar使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在graph的用法示例。


在下文中一共展示了graph::graph_bar方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: graph

 function _epi_report()
 {
     //
     // main API to reports
     //
     if (func_num_args() > 0) {
         $arg_list = func_get_args();
         $menu_id = $arg_list[0];
         $post_vars = $arg_list[1];
         $get_vars = $arg_list[2];
         $validuser = $arg_list[3];
         $isadmin = $arg_list[4];
         //print_r($arg_list);
     }
     // always check dependencies
     if ($exitinfo = $this->missing_dependencies('vaccine')) {
         return print $exitinfo;
     }
     print "<span class='patient'>" . FTITLE_EPI_REPORTS . "</span><br/><br/>";
     $n = new epi_report();
     $g = new graph();
     $n->report_menu($menu_id, $post_vars, $get_vars);
     print "<table><tr><td>";
     // column 1
     switch ($get_vars["report_menu"]) {
         case "TCL":
             $n->form_inclusive_dates($menu_id, $post_vars, $get_vars);
             if ($post_vars["submitreport"]) {
                 $n->process_inclusive_dates($menu_id, $post_vars, $get_vars);
             }
             $n->display_tcl_inclusive_dates($menu_id, $post_vars, $get_vars);
             break;
         case "SUMMARY":
             $n->form_inclusive_dates($menu_id, $post_vars, $get_vars);
             if ($post_vars["submitreport"]) {
                 $n->generate_summary($menu_id, $post_vars, $get_vars);
             }
             break;
         case "GRAPHS":
             $g->graph_menu($menu_id, $post_vars, $get_vars);
             switch ($get_vars["graph"]) {
                 case "LINE":
                     $get_vars["module"] = $this->module;
                     $g->graph_line($menu_id, $post_vars, $get_vars);
                     break;
                 case "BAR":
                     $get_vars["module"] = $this->module;
                     $g->graph_bar($menu_id, $post_vars, $get_vars);
                     break;
                 case "PIE":
                     $get_vars["module"] = $this->module;
                     $g->graph_pie($menu_id, $post_vars, $get_vars);
                     break;
             }
             break;
     }
     print "</td></tr></table>";
 }
开发者ID:wahgithub,项目名称:chits_wah_emr,代码行数:58,代码来源:class.epi_report.php

示例2: print

 function _consult_report() {
 //
 // main API to reports
 //
     if (func_num_args()>0) {
         $arg_list = func_get_args();
         $menu_id = $arg_list[0];
         $post_vars = $arg_list[1];
         $get_vars = $arg_list[2];
         $validuser = $arg_list[3];
         $isadmin = $arg_list[4];
         //print_r($arg_list);
     }
     // always check dependencies
     if ($exitinfo = $this->missing_dependencies('consult_report')) {
         return print($exitinfo);
     }
     print "<span class='patient'>".FTITLE_CONSULT_REPORTS."</span><br/><br/>";
     $c = new consult_report;
     $g = new graph;
     $c->report_menu($menu_id, $post_vars, $get_vars);
     print "<table><tr valign='top'><td>";
     // column 1
     switch($get_vars["report_menu"]) {
     case "TCL":
         if ($post_vars["submitreport"]) {
             $n->process_tcl_inclusive_dates($menu_id, $post_vars, $get_vars);
         }
         $c->form_tcl_inclusive_dates($menu_id, $post_vars, $get_vars);
         $c->display_tcl_inclusive_dates($menu_id, $post_vars, $get_vars);
         break;
     case "SUMMARY":
         if ($post_vars["submitreport"]) {
             $c->generate_summary($menu_id, $post_vars, $get_vars);
         }
         $c->form_summary_date($menu_id, $post_vars, $get_vars);
         $c->display_summary_reports($menu_id, $post_vars, $get_vars);
         break;
     case "GRAPHS":
         $g->graph_menu($menu_id, $post_vars, $get_vars);
         switch($get_vars["graph"]) {
         case "LINE":
             $get_vars["module"] = $this->module;
             $g->graph_line($menu_id, $post_vars, $get_vars);
             break;
         case "BAR":
             $get_vars["module"] = $this->module;
             $g->graph_bar($menu_id, $post_vars, $get_vars);
             break;
         case "PIE":
             $get_vars["module"] = $this->module;
             $g->graph_pie($menu_id, $post_vars, $get_vars);
             break;
         }
         break;
     }
     print "</td><td>";
     // column 2
     print "<b>CONSULT SUMMARY REPORT NOTES</b><br/>";
     print "<p>The <b>consult summary report</b> gets its contents ".
           "from several modules: <b>patient</b>, <b>notes</b>, <b>ICD10</b>, <b>family</b> ".
           "or <b>clinical reminders</b> and <b>barangay</b>. <font color='red'>Therefore, ".
           "it is very important that data in these modules are completely ".
           "and accurately filled up.</font></p>";
     print "<p>".
           "PATIENT MODULE<br/>".
           "- provides patient name, age and gender<br/><br/>".
           "NOTES MODULE<br/>".
           "- provides complaint list, diagnosis (if ICD10 is not filled up), and treatment plan<br/><br/>".
           "ICD10 MODULE<br/>".
           "- provides diagnosis data<br/><br/>".
           "FAMILY MODULE<br/>".
           "- provides family ID, address and barangay<br/><br/>".
           "CLINICAL REMINDERS MODULE<br/>".
           "- provides address and barangay if family registry contains no corresponding entries<br/>".
           "</p>";
     print "</td></tr></table>";
 }
开发者ID:BackupTheBerlios,项目名称:chits-svn,代码行数:78,代码来源:class.consult_report.php


注:本文中的graph::graph_bar方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。