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


PHP module::show_modules方法代码示例

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


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

示例1: form_selectmodule

 function form_selectmodule() {
     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];
         //print_r($arg_list);
     }
     print "<table width='300'>";
     print "<form action = '".$_SERVER["SELF"]."?page=".$get_vars["page"]."&menu_id=$menu_id' name='form_module' method='post'>";
     print "<tr valign='top'><td>";
     print "<span class='module'>".FTITLE_CONSULT_MODULE."</span><br/><br/>";
     print "</td></tr>";
     print "<tr valign='top'><td>";
     print "<b>NOTE: You are adding a sub-module to the health center module. Please read instructions for module integration.</b><br/><br/>";
     print "</td></tr>";
     print "<tr valign='top'><td>";
     print "<b>".LBL_CONSULT_MODULE."</b><br> ";
     print module::show_modules($module["module_id"]?$module["module_id"]:$post_vars["module"]);
     print "<br/><br/></td></tr>";
     print "<tr><td><br>";
     if ($_SESSION["priv_add"]) {
         print "<input type='submit' value = 'Add Module' class='textbox' name='submitmodule' style='border: 1px solid #000000'> ";
     }
     if ($_SESSION["priv_delete"]) {
         print "<input type='submit' value = 'Delete Module' class='textbox' name='submitmodule' style='border: 1px solid #000000'> ";
     }
     print "</td></tr>";
     print "</form>";
     print "</table><br>";
 }
开发者ID:angelogarcia,项目名称:chits,代码行数:31,代码来源:class.healthcenter.php

示例2: form_complaint

 function form_complaint()
 {
     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];
         //print_r($arg_list);
         if ($get_vars["complaint_id"]) {
             $sql = "select complaint_id, complaint_name, complaint_module " . "from m_lib_complaint where complaint_id = '" . $get_vars["complaint_id"] . "'";
             if ($result = mysql_query($sql)) {
                 if (mysql_num_rows($result)) {
                     $complaint = mysql_fetch_array($result);
                 }
             }
         }
     }
     print "<table width='300'>";
     print "<form action = '" . $_SERVER["SELF"] . "?page=" . $get_vars["page"] . "&menu_id={$menu_id}' name='form_injurycodes' method='post'>";
     print "<tr valign='top'><td>";
     print "<span class='library'>" . FTITLE_CONSULT_COMPLAINT . "</span><br/><br/>";
     print "</td></tr>";
     print "<tr valign='top'><td>";
     print "<span class='boxtitle'>" . LBL_COMPLAINT_ID . "</span><br> ";
     print "<input type='text' size='15' maxlength='20' class='textbox' name='complaint_id' value='" . ($complaint["complaint_id"] ? $complaint["complaint_id"] : $post_vars["complaint_id"]) . "' style='border: 1px solid #000000'><br>";
     print "<br/></td></tr>";
     print "<tr valign='top'><td>";
     print "<span class='boxtitle'>" . LBL_COMPLAINT_NAME . "</span><br> ";
     print "<input type='text' size='15' maxlength='20' class='textbox' name='complaint_name' value='" . ($complaint["complaint_name"] ? $complaint["complaint_name"] : $post_vars["complaint_name"]) . "' style='border: 1px solid #000000'><br>";
     print "<br/></td></tr>";
     print "<tr valign='top'><td>";
     print "<span class='boxtitle'>" . LBL_COMPLAINT_MODULE . "</span><br> ";
     print module::show_modules($complaint["complaint_module"] ? $complaint["complaint_module"] : $post_vars["module"]);
     print "<br/><br/></td></tr>";
     print "<tr><td>";
     if ($get_vars["complaint_id"]) {
         print "<input type='hidden' name='complaint_id' value='" . $get_vars["complaint_id"] . "'>";
         print "<input type='submit' value = 'Update Complaint' class='textbox' name='submitcomplaint' style='border: 1px solid #000000'> ";
         print "<input type='submit' value = 'Delete Complaint' class='textbox' name='submitcomplaint' style='border: 1px solid #000000'> ";
     } else {
         print "<br><input type='submit' value = 'Add Complaint' class='textbox' name='submitcomplaint' style='border: 1px solid #000000'><br> ";
     }
     print "</td></tr>";
     print "</form>";
     print "</table><br>";
 }
开发者ID:wahgithub,项目名称:chits_wah_emr,代码行数:46,代码来源:class.complaint.php

示例3: form_lab

 function form_lab()
 {
     //
     // called by _lab_exams()
     //
     if (func_num_args()) {
         $arg_list = func_get_args();
         $menu_id = $arg_list[0];
         $post_vars = $arg_list[1];
         $get_vars = $arg_list[2];
         if ($get_vars["lab_id"]) {
             $sql = "select lab_id, lab_name " . "from m_lib_laboratory where lab_id = '" . $get_vars["lab_id"] . "'";
             if ($result = mysql_query($sql)) {
                 if (mysql_num_rows($result)) {
                     $lab = mysql_fetch_array($result);
                 }
             }
         }
     }
     print "<table width='400'>";
     print "<form action = '" . $_SERVER["SELF"] . "?page=LIBRARIES&menu_id={$menu_id}' name='form_lab' method='post'>";
     print "<tr valign='top'><td>";
     print "<span class='library'>" . FTITLE_LAB_EXAM_FORM . "</span><br><br>";
     print "</td></tr>";
     print "<tr valign='top'><td>";
     print "<span class='boxtitle'>" . LBL_LAB_ID . "</span><br> ";
     if ($get_vars["lab_id"]) {
         $disable = "disabled";
         print "<input type='hidden' name='lab_id' value='" . $get_vars["lab_id"] . "'>";
     } else {
         $disable = "";
     }
     print "<input type='text' class='textbox' size='10' {$disable} maxlength='10' name='lab_id' value='" . ($lab["lab_id"] ? $lab["lab_id"] : $post_vars["lab_id"]) . "' style='border: 1px solid #000000'><br>";
     print "</td></tr>";
     print "<tr valign='top'><td>";
     print "<span class='boxtitle'>" . LBL_LAB_NAME . "</span><br> ";
     print "<input type='text' class='textbox' size='15' maxlength='25' name='lab_name' value='" . ($lab["lab_name"] ? $lab["lab_name"] : $post_vars["lab_name"]) . "' style='border: 1px solid #000000'><br><br/>";
     print "</td></tr>";
     print "<tr valign='top'><td>";
     print "<span class='boxtitle'>" . LBL_LAB_MODULES . "</span><br> ";
     print module::show_modules();
     print "<br/><small>WARNING: Not all modules shown are lab modules. Please ask administrator if the appropriate lab module has been uploaded.</small><br/>";
     print "</td></tr>";
     print "<tr><td><br>";
     if ($get_vars["lab_id"]) {
         print "<input type='hidden' name='lab_id' value='" . $get_vars["lab_id"] . "'>";
         if ($_SESSION["priv_update"]) {
             print "<input type='submit' value = 'Update Lab Exam' class='textbox' name='submitlab' style='border: 1px solid #000000'> ";
         }
         if ($_SESSION["priv_delete"]) {
             print "<input type='submit' value = 'Delete Lab Exam' class='textbox' name='submitlab' style='border: 1px solid #000000'> ";
         }
     } else {
         if ($_SESSION["priv_add"]) {
             print "<input type='submit' value = 'Add Lab Exam' class='textbox' name='submitlab' style='border: 1px solid #000000'> ";
         }
     }
     print "</td></tr>";
     print "</form>";
     print "</table><br>";
 }
开发者ID:wahgithub,项目名称:chits_wah_emr,代码行数:61,代码来源:class.lab.php

示例4: form_ptgroup

 function form_ptgroup() {
     if (func_num_args()) {
         $arg_list = func_get_args();
         $menu_id = $arg_list[0];
         $post_vars = $arg_list[1];
         $get_vars = $arg_list[2];
         if ($get_vars["group_id"]) {
             $sql = "select ptgroup_id, ptgroup_name, ptgroup_module, ptgroup_condition ".
                    "from m_lib_ptgroup where ptgroup_id = '".$get_vars["group_id"]."'";
             if ($result = mysql_query($sql)) {
                 if (mysql_num_rows($result)) {
                     $ptgroup = mysql_fetch_array($result);
                     //print_r($ptgroup);
                 }
             }
         }
     }
     print "<table width='400'>";
     print "<form action = '".$_SERVER["SELF"]."?page=LIBRARIES&menu_id=$menu_id' name='form_barangay' method='post'>";
     print "<tr valign='top'><td>";
     print "<span class='library'>".FTITLE_PATIENT_GROUPS_FORM."</span><br><br>";
     print "</td></tr>";
     print "<tr valign='top'><td>";
     print "<span class='boxtitle'>".LBL_GROUP_ID."</span><br> ";
     if ($ptgroup["ptgroup_id"]) {
         $disable = "disabled";
         print "<input type='hidden' name='group_id' value='".$ptgroup["ptgroup_id"]."'>";
     } else {
         $disable = "";
     }
     print "<input type='text' class='textbox' size='10' $disable maxlength='10' name='group_id' value='".($ptgroup["ptgroup_id"]?$ptgroup["ptgroup_id"]:$post_vars["group_id"])."' style='border: 1px solid #000000'><br>";
     print "</td></tr>";
     print "<tr valign='top'><td>";
     print "<span class='boxtitle'>".LBL_GROUP_NAME."</span><br> ";
     print "<input type='text' class='textbox' size='15' maxlength='25' name='group_name' value='".($ptgroup["ptgroup_name"]?$ptgroup["ptgroup_name"]:$post_vars["group_name"])."' style='border: 1px solid #000000'><br>";
     print "</td></tr>";
     print "<tr valign='top'><td>";
     print "<br/>";
     print "<span class='boxtitle'>".LBL_GROUP_MODULE."</span><br> ";
     print module::show_modules(($ptgroup["ptgroup_module"]?$ptgroup["ptgroup_module"]:$post_vars["module"]));
     print "</td></tr>";
     print "<tr valign='top'><td>";
     print "<br/>";
     print "<span class='boxtitle'>".LBL_CONDITION."</span><br> ";
     print "<input type='text' class='textbox' size='30' maxlength='250' name='group_condition' value='".($ptgroup["ptgroup_condition"]?$ptgroup["ptgroup_condition"]:$post_vars["group_condition"])."' style='border: 1px solid #000000'><br>";
     print "</td></tr>";
     print "<tr><td><br>";
     if ($get_vars["group_id"]) {
         print "<input type='hidden' name='group_id' value='".$get_vars["group_id"]."'>";
         print "<input type='submit' value = 'Update Group' class='textbox' name='submitptgroup' style='border: 1px solid #000000'> ";
         print "<input type='submit' value = 'Delete Group' class='textbox' name='submitptgroup' style='border: 1px solid #000000'> ";
     } else {
         print "<input type='submit' value = 'Add Group' class='textbox' name='submitptgroup' style='border: 1px solid #000000'> ";
     }
     print "</td></tr>";
     print "</form>";
     print "</table><br>";
 }
开发者ID:BackupTheBerlios,项目名称:chits-svn,代码行数:58,代码来源:class.ptgroup.php


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