<td width=50px ><b>位置码</td> <td width=100px ><b>表地址</td> <td width=100px ><b>电表型号</td> <td width=100px ><b>采集参数项</td> <td width=100px ><b>电表状态</td> <td width=100px style="background-color:#F8F8FF;border-left:1px;border-top:1px;border-right:1px;"><b>行动</td> </tr> <?php while (($row = mysql_fetch_array($rs)) && $noterecs <= $pagesize - 1) { $info_id = $row['info_id']; $location_id = $row['location_id']; $meter_address = $row['meter_address']; $meter_model = $row['meter_model']; $data_select = $row['data_select']; $switch = ModMeterInfoHelper::getMeterStatus($location_id, $meter_address); ?> <tr onmouseover="this.style.backgroundColor='#e5ff00'" onmouseout="this.style.backgroundColor='#ffffff'" style="font-size:12px;color:#000035;"> <td align="center" > <a href="index.php/meter-info-fix?info_id=<?php echo $info_id; ?> " title="点击修改:<?php echo $info_id . " 位置码:" . $location_id . " 电表地址:" . $meter_address . " 电表型号:" . $meter_model; ?> "> <?php echo $info_id; ?>
/** * @package electromonitor.com * @subpackage mod_meter_info_fix * * @copyright Copyright (C) 2016 All rights reserved. */ defined('_JEXEC') or die; // Include the functions only once require_once __DIR__ . '/helper.php'; require_once __DIR__ . '/conn.php'; $info_id = trim(JRequest::getVar('info_id', "-1")); if ($info_id == "-1") { mysql_close(); echo "<script>alert('请先选择要更新的记录!');history.back(); </script>"; } else { $result = ModMeterInfoHelper::getMeterInfoValues($info_id); //ModMeterInfoHelper::getElectricalStatus(); /*$sq = "select * from joomla3_meter_info where info_id = '$info_id' "; $rst = mysql_query($sq); //$rsnum = mysql_num_rows($rst); $row = mysql_fetch_array($rst);*/ if ($result == "") { mysql_close(); echo " <script>alert('不存在的记录项!');history.back(); </script>"; } else { foreach ($result as $row) { $location_id = $row['location_id']; $meter_address = $row['meter_address']; $meter_model = $row['meter_model']; $data_select = $row['data_select']; }
<?php /** * @package electromonitor.com * @subpackage mod_meter_info * * @copyright Copyright (C) 2015 All rights reserved. */ defined('_JEXEC') or die; // Include the functions only once require_once __DIR__ . '/helper.php'; require_once __DIR__ . '/conn.php'; JHTML::stylesheet('style.css', 'modules/mod_meter_info/css/'); $fresh_time = ModMeterInfoHelper::getFreshTime($get_time); $wait_time = ModMeterInfoHelper::getWaitTime($wait_time); //$result = ModMeterInfoHelper::getMeterStatus($location_id, $meter_address); // require JModuleHelper::getLayoutPath('mod_meter_info', 'default'); ?>