数据库里面内容在web页面select标签中显示
来源:互联网 发布:109wdd的秒的数据 编辑:程序博客网 时间:2024/05/18 01:45
<form name="myform" method="post" onsubmit="return checkdata();" action="device_query_modify.php?id=<?php echo $msgid;?>">
<table width="100%" border="1" style="border-collapse:collapse" bordercolor="739ACE">
<tr>
<td bgcolor="#739ACE" align="center" colspan="2"><span class="STYLE1">环境信息</span></td>
</tr>
<tr>
<td>
<table width="100%" border="1" style="border-collapse:collapse" bordercolor="DEE3EF" rules="rows">
<tr>
<td align="right" width="615">Interface:</td><td align="left" width="615"><input type="text" name="devicename" width="20" value="<?php echo $msg['eth_name'];?>" /></td>
</tr>
<tr>
<td align="right" width="615">Type:</td><td align="left" width="615"><input type="text" name="devicetype" width="20" value="<?php echo $msg['type'];?>" /></td>
</tr>
<tr>
<td align="right" width="615">getMethod:</td><td align="left" width="615"><input type="text" name="devicetype" width="20" value="<?php echo $msg['get_method'];?>" /></td>
</tr>
<tr>
<td align="right">IP:</td><td align="left"><input type="text" name="deviceno" width="20" value="<?php echo $msg['eth_ip'];?>" /></td>
</tr>
<tr>
<td align="right">Netmask:</td><td align="left"><input type="text" name="deviceroom" width="20" value="<?php echo $msg['eth_netmask'];?>" /></td>
</tr>
<tr>
<td align="right">入库时间:</td><td align="left"><input type="text" onfocus="selectDate(this)" name="putinstoragetime" width="20" value="<?php echo $msg['PutInStorageTime'];?>" /></td>
</tr>
<tr>
<td align="right">设备价格:</td><td align="left"><input type="text" name="deviceprice"width="20" value="<?php echo $msg['DevicePrice'];?>" /></td>
</tr>
<tr>
<td align="right">设备类别:</td><td align="left"><input type="text" name="devicecategory" width="20" value="<?php echo $msg['DeviceCategory'];?>" /></td>
</tr>
<tr>
<td align="right">规格:</td><td align="left"><input type="text" name="devicespecification" width="20" value="<?php echo $msg['DeviceSpecification'];?>" /></td>
</tr>
<tr>
<td align="right">设备状态:</td><td align="left">
<!--<input type="text" name="devicestate" width="20" value="<?php// if($msg['DeviceState']==1) echo "正常"; if($msg['DeviceState']==0) echo "待修";if($msg['DeviceState']==-1) echo "报废";?>" />-->
<select name="devicestate">
<option <?php if($msg['DeviceState']==1) echo "selected=selected"; ?> value="1">正常</option>
<option <?php if($msg['DeviceState']==0) echo "selected=selected"; ?> value="0">待修</option>
<option <?php if($msg['DeviceState']==-1) echo "selected=selected"; ?> value="-1">报废</option></select>
</td>
</tr>
<tr>
<td align="right">报废时间:</td><td align="left"><input type="text" onfocus="selectDate(this)" name="devicescraptime" width="20" value="<?php echo $msg['DeviceScrapTime'];?>" /></td>
</tr>
<tr>
<td align="right">生产厂家:</td><td align="left"><input type="text" name="devicemanufacturers" width="20" value="<?php echo $msg['DeviceManufacturers'];?>" /></td>
</tr>
<tr>
<td align="right">资金渠道:</td><td align="left"><input type="text" name="devicefromfund" width="20" value="<?php echo $msg['DeviceFromFund'];?>" /></td>
</tr>
<tr>
<td align="right">设备责任人:</td><td align="left"><input type="text" name="devicemanager" width="20" value="<?php echo $msg['DeviceManager'];?>" /></td>
</tr>
<tr>
<td align="right"><input type="submit" value="确定" /> </td><td align="left"> <input type="reset" value="重置" /></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<table width="100%" border="1" style="border-collapse:collapse" bordercolor="739ACE">
<tr>
<td bgcolor="#739ACE" align="center" colspan="2"><span class="STYLE1">环境信息</span></td>
</tr>
<tr>
<td>
<table width="100%" border="1" style="border-collapse:collapse" bordercolor="DEE3EF" rules="rows">
<tr>
<td align="right" width="615">Interface:</td><td align="left" width="615"><input type="text" name="devicename" width="20" value="<?php echo $msg['eth_name'];?>" /></td>
</tr>
<tr>
<td align="right" width="615">Type:</td><td align="left" width="615"><input type="text" name="devicetype" width="20" value="<?php echo $msg['type'];?>" /></td>
</tr>
<tr>
<td align="right" width="615">getMethod:</td><td align="left" width="615"><input type="text" name="devicetype" width="20" value="<?php echo $msg['get_method'];?>" /></td>
</tr>
<tr>
<td align="right">IP:</td><td align="left"><input type="text" name="deviceno" width="20" value="<?php echo $msg['eth_ip'];?>" /></td>
</tr>
<tr>
<td align="right">Netmask:</td><td align="left"><input type="text" name="deviceroom" width="20" value="<?php echo $msg['eth_netmask'];?>" /></td>
</tr>
<tr>
<td align="right">入库时间:</td><td align="left"><input type="text" onfocus="selectDate(this)" name="putinstoragetime" width="20" value="<?php echo $msg['PutInStorageTime'];?>" /></td>
</tr>
<tr>
<td align="right">设备价格:</td><td align="left"><input type="text" name="deviceprice"width="20" value="<?php echo $msg['DevicePrice'];?>" /></td>
</tr>
<tr>
<td align="right">设备类别:</td><td align="left"><input type="text" name="devicecategory" width="20" value="<?php echo $msg['DeviceCategory'];?>" /></td>
</tr>
<tr>
<td align="right">规格:</td><td align="left"><input type="text" name="devicespecification" width="20" value="<?php echo $msg['DeviceSpecification'];?>" /></td>
</tr>
<tr>
<td align="right">设备状态:</td><td align="left">
<!--<input type="text" name="devicestate" width="20" value="<?php// if($msg['DeviceState']==1) echo "正常"; if($msg['DeviceState']==0) echo "待修";if($msg['DeviceState']==-1) echo "报废";?>" />-->
<select name="devicestate">
<option <?php if($msg['DeviceState']==1) echo "selected=selected"; ?> value="1">正常</option>
<option <?php if($msg['DeviceState']==0) echo "selected=selected"; ?> value="0">待修</option>
<option <?php if($msg['DeviceState']==-1) echo "selected=selected"; ?> value="-1">报废</option></select>
</td>
</tr>
<tr>
<td align="right">报废时间:</td><td align="left"><input type="text" onfocus="selectDate(this)" name="devicescraptime" width="20" value="<?php echo $msg['DeviceScrapTime'];?>" /></td>
</tr>
<tr>
<td align="right">生产厂家:</td><td align="left"><input type="text" name="devicemanufacturers" width="20" value="<?php echo $msg['DeviceManufacturers'];?>" /></td>
</tr>
<tr>
<td align="right">资金渠道:</td><td align="left"><input type="text" name="devicefromfund" width="20" value="<?php echo $msg['DeviceFromFund'];?>" /></td>
</tr>
<tr>
<td align="right">设备责任人:</td><td align="left"><input type="text" name="devicemanager" width="20" value="<?php echo $msg['DeviceManager'];?>" /></td>
</tr>
<tr>
<td align="right"><input type="submit" value="确定" /> </td><td align="left"> <input type="reset" value="重置" /></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
- 数据库里面内容在web页面select标签中显示
- PHP 连接数据库 在select 标签中显示数据
- select标签中显示指定内容
- web中,如何读取Word内容(包含表格,但不包含图片)并且显示在页面中或保存进数据库中
- web中,如何读取Word内容(包含表格,但不包含图片)并且显示在页面中或保存进数据库中
- 页面跳转+把数据库中查出的内容显示在该页面上
- 在php页面中显示数据库内容时,中文显示乱码
- JSP页面获取select option里面的value和显示内容
- 指定一个内容,网页中若有span标签含有该内容,则该span标签内的内容不显示在页面中
- IE下a标签中内容为空,在页面中无法显示其hover样式的解决方法
- struts2 标签s:select在table中单行显示
- 使用struts2的标签,将setAttribute里面的内容直接在页面提取
- 如何在JSP页面显示mysql数据库内容 (二)
- 如何在JSP页面显示mysql数据库内容 (二)
- 如何在JSP页面显示mysql数据库内容 (二)
- 如何在JSP页面显示Oracle数据库内容
- c标签 数据库内容放到页面显示 防止alert弹出 作为普通内容展示
- HTML <select>标签如何获取里面的内容
- MSsql附加数据库出现只读现像
- 【转】DataSet导出EXCEL
- easyUI属性汇总
- 【转】通用数据访问层--SQLServer版
- 【转】通用数据访问层--Access版
- 数据库里面内容在web页面select标签中显示
- 单链表是否有环并如何找到环入口
- XLsReadWrite 制作Excel时控制列的的格式
- SQL语言的基础操作--(5)
- 2416平台,u-boot-1.3.4支持U盘功能问题总结
- Spring 小结
- eclipse 开发和调试 perl
- 设计模式C++实现(2)——策略模式
- IE6下javascript:void(0)的诡异