Ejemplo n.º 1
0
foreach ($filters as $filter => $filterinfo) {
    $applytostrings = isset($stringfilters[$filter]) && $filterinfo->active != TEXTFILTER_DISABLED;
    $row = get_table_row($filterinfo, $firstrow, $filter == $lastactive, $applytostrings);
    $table->data[] = $row;
    if ($filterinfo->active == TEXTFILTER_DISABLED) {
        $table->rowclasses[] = 'dimmed_text';
    } else {
        $table->rowclasses[] = '';
    }
    $firstrow = false;
}
foreach ($newfilters as $filter => $filtername) {
    $filterinfo = new stdClass();
    $filterinfo->filter = $filter;
    $filterinfo->active = TEXTFILTER_DISABLED;
    $row = get_table_row($filterinfo, false, false, false);
    $table->data[] = $row;
    $table->rowclasses[] = 'dimmed_text';
}
echo $OUTPUT->table($table);
echo '<p class="filtersettingnote">' . get_string('filterallwarning', 'filters') . '</p>';
echo $OUTPUT->footer();
/// Display helper functions ===================================================
function action_url($filterpath, $action)
{
    global $returnurl;
    return $returnurl . '?sesskey=' . sesskey() . '&amp;filterpath=' . urlencode($filterpath) . '&amp;action=' . $action;
}
function action_icon($url, $icon, $straction)
{
    global $CFG, $OUTPUT;
Ejemplo n.º 2
0
    </tr>
  </form>
</table><br />
<table width="98%" height="94" border="0" cellpadding="3" cellspacing="1" bgcolor="#cccccc" style="margin:0 auto;padding-top:10px;">
  <tr bgcolor="#666666">
    <td height="22" colspan="4" bgcolor="#555555"><font color="#FFFFFF">&nbsp;<strong>地区管理</strong></font></td>
  </tr>
  <tr bgcolor="#f9f9f9">
    <td width="5%" height="24" align="center" valign="middle">ID</td>
    <td width="30%" height="24" align="center" valign="middle">地区名称</td>
    <td align="center" valign="middle">上级地区</td>
    <td width="25%" height="24" align="center" valign="middle">操作</td>
  </tr>
  <?php 
foreach ($area_list as $list) {
    $fid_name = get_table_row("area", $list['fid'], "name");
    $fid_name = empty($fid_name) ? "顶级类别" : $fid_name;
    ?>
  <tr bgcolor="#f9f9f9">
    <td width="5%" height="24" align="center" valign="middle"><?php 
    echo $list['id'];
    ?>
</td>
    <td width="30%" height="24" align="center" valign="middle"><a href="customer_area_action.php?act=mod&id=<?php 
    echo $list['id'];
    ?>
&fid=<?php 
    echo $list['fid'];
    ?>
"><?php 
    echo $list['name'];
Ejemplo n.º 3
0
    </tr>
  </form>
</table><br />
<table width="98%" height="94" border="0" cellpadding="3" cellspacing="1" bgcolor="#cccccc" style="margin:0 auto;padding-top:10px;">
  <tr bgcolor="#666666">
    <td height="22" colspan="4" bgcolor="#555555"><font color="#FFFFFF">&nbsp;<strong>服务管理</strong></font></td>
  </tr>
  <tr bgcolor="#f9f9f9">
    <td width="5%" height="24" align="center" valign="middle">ID</td>
    <td width="30%" height="24" align="center" valign="middle">服务名称</td>
    <td align="center" valign="middle">上级类别</td>
    <td width="25%" height="24" align="center" valign="middle">操作</td>
  </tr>
  <?php 
foreach ($area_list as $list) {
    $fid_name = get_table_row("services", $list['fid'], "name");
    $fid_name = empty($fid_name) ? "顶级类别" : $fid_name;
    ?>
  <tr bgcolor="#f9f9f9">
    <td width="5%" height="24" align="center" valign="middle"><?php 
    echo $list['id'];
    ?>
</td>
    <td width="30%" height="24" align="center" valign="middle"><a href="customer_services_action.php?act=mod&id=<?php 
    echo $list['id'];
    ?>
&fid=<?php 
    echo $list['fid'];
    ?>
"><?php 
    echo $list['name'];
Ejemplo n.º 4
0
function show_product($row, $conn)
{
    global $chem_arr;
    /****
     * Greenleaf - MJS - 10/27/14
     * 
     * Had to move these to the head.php of T3
     */
    /*$doc = JFactory::getDocument();
    	$doc->addStyleSheet("/modules/Meds/pnstyle/style.css");
    	$doc->addStyleSheet("/themes/EyeDock/style/style.css");
    	$doc->addScript("/javascript/overlib/overlib.js");*/
    $sched['I'] = "Schedule I drugs have no acceptable medical use in the united states and may not be prescribed.";
    $sched['II'] = "Schedule II drugs have a high potential for abuse and cannot be refilled.  In addition, These drugs cannot be prescribed by telephone.";
    $sched['III'] = "Schedule III drugs have moderate potential for dependence.  They can be refilled, but there is a five-refill maximum and the prescription is invalid after 6 months.";
    $sched['IV'] = "Schedule IV drugs have low potential for dependence.  They can be refilled, but there is a five-refill maximum and the prescription is invalid after 6 months.";
    $sched['V'] = "Schedule V drugs have the lowest abuse potential.  They can be dispensed without a prescription if the patient is 18 years old, distribution is by a pharmacist, and only a limited quantity of drug is purchased.";
    $pregs['A'] = " Class A: <i>Controlled studies show no risk</i>. Adequate, well-controlled studies in pregnant women have failed to demonstrate a risk to the fetus in any trimester of pregnancy.";
    $pregs['B'] = "Class B: <i>No evidence of risk in humans.</i>  Adequate, well-controlled studies in pregnant women have not shown increased risk of fetal abnormalities despite adverse findings in animals, or, in the absence of adequate human studies, animal studies show no fetal risk. The chance of fetal harm is remote, but remains a possibility.";
    $pregs['C'] = "Class C: <i>Risk cannot be ruled out</i>.  Adequate, well-controlled human studies are lacking, and animal studies have shown a risk to the fetus or are lacking as well. There is a chance of fetal harm if the drug is administered during pregnancy; but the potential benefits may outweigh the potential risks.";
    $pregs['D'] = "Class D: <i>Positive evidence of risk</i>.  Studies in humans, or investigational or post-marketing data, have demonstrated fetal risk. Nevertheless, potential benefits from the use of the drug may outweigh the potential risk. For example, the drug may be acceptable if needed in a life-threatening situation or serious disease for which safer drugs cannot be used or are ineffective.";
    $pregs['X'] = "Class X: <i>Contraindicated in pregnancy.</i>  Studies in animals or humans, or investigational or post-marketing reports, have demonstrated positive evidence of fetal abnormalities or risks which clearly outweighs any possible benefit to the patient.";
    $moa[1] = get_table_row("pn_rx_moa", "pn_moa_id", $row["pn_moa_id1"], $conn);
    $moa[2] = get_table_row("pn_rx_moa", "pn_moa_id", $row["pn_moa_id2"], $conn);
    $moa[3] = get_table_row("pn_rx_moa", "pn_moa_id", $row["pn_moa_id3"], $conn);
    $moa[4] = get_table_row("pn_rx_moa", "pn_moa_id", $row["pn_moa_id4"], $conn);
    $company = get_table_row("pn_rx_company", "pn_comp_id", $row["pn_comp_id"], $conn);
    $preserve = get_table_row("pn_rx_preserve", "pn_pres_id", $row["pn_pres_id1"], $conn);
    $preserve2 = get_table_row("pn_rx_preserve", "pn_pres_id", $row["pn_pres_id2"], $conn);
    $out = "\n\n<style>\n.meds_helpcue {\n\tcursor: help; \n\tborder-bottom: 1px solid #7CC1FC;\n        padding: 2px 5px;\n}\n.meds_helpcue:hover{\n        background:#E5EEEF;\n        \n}\n\n</style>\n<p>\n<table class=\"meds_table_max\" style=\"background:#FFFFFF;\" border=\"0\">\n    <tr class=\"meds_table_head\">\n        <td colspan=\"4\" class=\"align_left\" style=\"padding:5px;font-size:16pt;\" align=\"left\">\n            " . $row["pn_trade"] . " \n        </td>\n\n    </tr>\n    <tr  style=\"padding:5px;\">\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Manufacturer:</td>\n        <td class=\"align_left\" style=\"padding:5px;\">";
    $comp_desc = $company["pn_phone"] . "<br />" . $company["pn_street"] . "<br />" . $company["pn_city"] . ", " . $company["pn_state"] . " " . $company["pn_zip"] . "<br />";
    if ($company["pn_url"]) {
        $comp_desc .= "<a href='" . $company["pn_url"] . "' target='_blank'>Their website</a><br />";
    }
    $out .= print_popup($company["pn_name"], $comp_desc);
    $out .= "\n        </td>\n\n        <td colspan=\"2\" rowspan=\"11\" style=\"vertical-align:top;text-align:center; padding:5px;\">\n\t<img class=\"meds_product_image\" src=\"";
    if ($row["pn_image1"]) {
        $out .= "/modules/Meds/pnimages/" . $row["pn_image1"] . "\" alt = \"" . $row["pn_image1"] . "\" />";
    } else {
        $out .= "/modules/Meds/pnimages/No-Picture-Available.jpg\" alt=\"No image available\" />";
    }
    if ($row["pn_image2"]) {
        $out .= "<img class=\"meds_product_image\" src=\"/modules/Meds/pnimages/" . $row["pn_image2"] . "\" alt = \"" . $row["pn_image2"] . "\" />";
    }
    $out .= " </td>\n    </tr>\n    <tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Med Type:</td>\n        <td class=\"align_left\" style=\"padding:5px;\">";
    if ($row["pn_medType1"]) {
        $out .= $row["pn_medType1"];
    } else {
        $out .= "None Specified";
    }
    if ($row["pn_medType2"]) {
        $out .= "<br>(" . $row["pn_medType2"] . ")";
    }
    $out .= "</td>\n    </tr>\n\n    <tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Preservative:</td>\n        <td class=\"align_left\" style=\"padding:5px;\">";
    if ($row["pn_pres_id1"]) {
        $out .= print_popup($preserve["pn_name"], $preserve["pn_comments"]);
    } else {
        $out .= "Not Specified";
    }
    if ($row["pn_pres_id2"]) {
        $out .= print_popup($preserve2["pn_name"], $preserve2["pn_comments"]);
    }
    $out .= "        \n        </td>\n    </tr>\n\n    <tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Pediatrics:</td>\n        <td class=\"align_left\" style=\"padding:5px;\">";
    if ($row["pn_peds"] > 0) {
        $out .= $row["pn_peds"] . " " . $row["pn_ped_text"] . " and older";
    } else {
        $out .= "Not Specified";
    }
    $out .= "</td>\n    </tr>\n\n    <tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Schedule:</td>\n        <td class=\"align_left\" style=\"padding:5px;\">";
    if ($row["pn_schedule"]) {
        $out .= print_popup($row["pn_schedule"], $sched[$row["pn_schedule"]]);
    } else {
        $out .= "Not Specified";
    }
    $out .= "</td>\n    </tr>\n    <tr>\n\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Pregnancy Class:</td>\n        <td class=\"align_left\" style=\"padding:5px;\">";
    if ($row["pn_preg"]) {
        $out .= print_popup($row["pn_preg"], $pregs[$row["pn_preg"]]);
    } else {
        $out .= "Not Specified";
    }
    $out .= "</td>\n    </tr>\n\n    <tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Nursing:</td>\n        <td class=\"align_left\" colspan=\"3\" style=\"padding:5px;\">";
    if ($row["pn_nurse"]) {
        $out .= $row["pn_nurse"];
    } else {
        $out .= "Not Specified";
    }
    $out .= "</td>\n    </tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Generic:</td>\n        <td class=\"align_left\" style=\"padding:5px;\">";
    if ($row["pn_generic"]) {
        $out .= $row["pn_generic"];
    } else {
        $out .= "Not Specified";
    }
    $out .= "</td>\n    </tr>\n    <tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Website:</td>\n        <td class=\"align_left\" style=\"padding:5px;\">";
    if ($row["pn_med_url"]) {
        $out .= "<a href=\"" . $row["pn_med_url"] . "\" target=\"_blank\" title=\"" . $row["pn_trade"] . "  on the web\">" . tr_truncate($row["pn_med_url"], 20) . "</a>";
    } else {
        $out .= "Not Specified";
    }
    $out .= "</td>\n    </tr>\n    </tr>\n    <tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Rx Info:</td>\n        <td class=\"align_left\" style=\"padding:5px;\">";
    if ($row["pn_rxInfo"]) {
        $out .= "<a href=\"" . $row["pn_rxInfo"] . "\" target=\"_blank\" title=\"RX Information\">" . tr_truncate($row["pn_rxInfo"], 20) . "</a>";
    } else {
        $out .= "Not Specified";
    }
    $out .= "</td>\n    </tr>\n\n\n    <tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Dose:</td>\n        <td class=\"align_left\" colspan=\"3\" style=\"padding:5px;\">";
    if ($row["pn_dose"]) {
        $out .= $row["pn_dose"];
    } else {
        $out .= "Not Specified";
    }
    $out .= "</td>\n    </tr>\n    \n    <tr>\n\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Components</td>\n        <td class=\"meds_center_strong_bg\" style=\"padding:5px;\">Concentration</td>\n        <td class=\"meds_center_strong_bg\" style=\"padding:5px;\">Chemical</td>\n        <td class=\"meds_center_strong_bg\" style=\"padding:5px;\">Method Of Action</td>\n    </tr>";
    for ($i = 1; $i <= 4; $i++) {
        $out .= "\n    <tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">#{$i}:</td>\n\n        <td class=\"align_center\" style=\"padding:5px;\">";
        if ($row["pn_conc{$i}"]) {
            $out .= $row["pn_conc{$i}"];
        } else {
            $out .= "--";
        }
        $out .= "</td> \n        <td class=\"align_center\" style=\"padding:5px;\">";
        if ($row["pn_chem_id{$i}"]) {
            $out .= $chem_arr[$row["pn_chem_id{$i}"]];
        } else {
            $out .= "--";
        }
        $out .= "</td>\n        <td class=\"align_center\" style=\"padding:5px;\">";
        if ($row["pn_moa_id{$i}"]) {
            $out .= print_popup($moa[$i]["pn_name"], $moa[$i]["pn_comments"]);
        } else {
            $out .= "--";
        }
        $out .= "</td>\n\n    </tr>";
    }
    $out .= "\n    <tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Packages</td>\n        <td class=\"meds_center_strong_bg\" style=\"padding:5px;\">Form</td>\n        <td class=\"meds_center_strong_bg\" style=\"padding:5px;\">Size</td>\n        <td class=\"meds_center_strong_bg\" style=\"padding:5px;\"><span class=\"meds_helpcue\" onClick=\"return overlib('The <i>Estimated Retail Cost</i> represents the medicine\\'s cost on Drugstore.com (or if not available there, through Walgreens.com).  The cost is recorded at the time of the medicine\\'s last update, indicated at the bottom of the corresponding webpage.  Of course, the actual cost of the medicine may differ depending on the dispensing pharmacy and market fluctuations.  The purpose of the estimated retail cost is to give you an idea of how much your patient might pay for the medicine.',STICKY,CAPTION,'Where does cost info come from?' );\" >Cost</span></td>\n    </tr>";
    for ($i = 1; $i <= 4; $i++) {
        $out .= "\n    <tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">#{$i}:</td>\n        <td class=\"align_center\" style=\"padding:5px;\">";
        if ($row["pn_form{$i}"]) {
            $out .= $row["pn_form{$i}"];
        } else {
            $out .= "--";
        }
        $out .= "</td> \n        <td class=\"align_center\" style=\"padding:5px;\">";
        if ($row["pn_size{$i}"]) {
            $out .= $row["pn_size{$i}"];
        } else {
            $out .= "--";
        }
        $out .= "</td> \n        <td class=\"align_center\" style=\"padding:5px;\">";
        if ($row["pn_cost{$i}"]) {
            $out .= $row["pn_cost{$i}"];
        } else {
            $out .= "--";
        }
        $out .= "</td> \n    </tr>";
    }
    $out .= "\n    <tr>\n        <td class=\"meds_right_strong_bg\" style=\"padding:5px;\">Comments:</td>\n        <td class=\"align_left\" colspan=\"3\" style=\"padding:5px;\">";
    if ($row["pn_comments"]) {
        $out .= $row["pn_comments"];
    } else {
        $out .= "Not Specified";
    }
    $out .= "\n\t</td>\n    </tr>\n        <tr style=\"background:#e5e5e5;\">\n        <td class=\"meds_width_25\">&nbsp;</td>\n        <td class=\"meds_width_25\">&nbsp;</td>\n        <td class=\"meds_width_25\">&nbsp;</td>\n        <td class=\"meds_width_25\">&nbsp;</td>\n    </tr>\n</table>";
    return $out;
}
Ejemplo n.º 5
0
$lastactive = null;
foreach ($states as $state) {
    if ($state->active != TEXTFILTER_DISABLED) {
        $lastactive = $state->filter;
    }
}
// Iterate through filters adding to display table.
$firstrow = true;
foreach ($states as $state) {
    $filter = $state->filter;
    if (!isset($plugininfos[$filter])) {
        continue;
    }
    $plugininfo = $plugininfos[$filter];
    $applytostrings = isset($stringfilters[$filter]) && $state->active != TEXTFILTER_DISABLED;
    $row = get_table_row($plugininfo, $state, $firstrow, $filter == $lastactive, $applytostrings);
    $table->data[] = $row;
    if ($state->active == TEXTFILTER_DISABLED) {
        $table->rowclasses[] = 'dimmed_text';
    } else {
        $table->rowclasses[] = '';
    }
    $firstrow = false;
}
echo html_writer::table($table);
echo '<p class="filtersettingnote">' . get_string('filterallwarning', 'filters') . '</p>';
echo $OUTPUT->footer();
die;
/**
 * Return action URL.
 *
Ejemplo n.º 6
0
function doAboutDataPost($p_id, $t_id, $d_id)
{
	global $proj_mysql;
	global $poly_data, $temp_data, $tempdef_data;


	$t_name=$temp_data[$t_id]['t_name'];

	$this_doc = get_table_row("select * from $t_name where d_id=$d_id");
	if($this_doc == "")
	{
		printf("数据后处理,无法获取文档数据<br>\n");
		return;
	}


	foreach($tempdef_data as $this_tempdef)
	{
		if($this_tempdef['type'] != 'DataPost') continue;


		$arithmetic = $this_tempdef['arithmetic'];
		if($arithmetic == "") continue;
		$this_f_id = $this_tempdef['f_id'];



		$eval_code .= <<< GHC_OF_END
		function data_post_process_$this_f_id(\$row_doc)
		{
			global \$proj_mysql;
			global \$poly_data, \$temp_data, \$tempdef_data;

			$arithmetic
		}

		data_post_process_$this_f_id(\$this_doc);
GHC_OF_END;

		eval($eval_code);

	}

}
Ejemplo n.º 7
0
    </tr>
  </form>
</table><br />
<table width="98%" height="94" border="0" cellpadding="3" cellspacing="1" bgcolor="#cccccc" style="margin:0 auto;padding-top:10px;">
  <tr bgcolor="#666666">
    <td height="22" colspan="4" bgcolor="#555555"><font color="#FFFFFF">&nbsp;<strong>客户状态</strong></font></td>
  </tr>
  <tr bgcolor="#f9f9f9">
    <td width="5%" height="24" align="center" valign="middle">ID</td>
    <td width="30%" height="24" align="center" valign="middle">客户状态</td>
    <td align="center" valign="middle">上级状态</td>
    <td width="25%" height="24" align="center" valign="middle">操作</td>
  </tr>
  <?php 
foreach ($area_list as $list) {
    $fid_name = get_table_row("industry", $list['fid'], "name");
    $fid_name = empty($fid_name) ? "顶级类别" : $fid_name;
    ?>
  <tr bgcolor="#f9f9f9">
    <td width="5%" height="24" align="center" valign="middle"><?php 
    echo $list['id'];
    ?>
</td>
    <td width="30%" height="24" align="center" valign="middle"><a href="customer_industry_action.php?act=mod&id=<?php 
    echo $list['id'];
    ?>
&fid=<?php 
    echo $list['fid'];
    ?>
"><?php 
    echo $list['name'];
Ejemplo n.º 8
0
function get_customer_services($str)
{
    $str_array = split("\\|", $str);
    //if(count(str_array)>1){
    foreach ($str_array as $str_list) {
        //echo "AAAA".$str ;
        $str_list_array = split(",", $str_list);
        $temp_str = get_table_row("services", $str_list_array[0], "name");
        $temp = empty($temp) ? $temp_str : $temp . "," . $temp_str;
    }
    //}
    return $temp;
}