复选下拉框移动值

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<title></title>
<script language=javascript src="js/do_user_select_item.js"></script>
<style type="text/css">
<!--
body{
 padding:5px;margin:5px;
}
-->
</style>
</head>
<body>
<!-- 内容区 -->
<?php
if(isset($_POST["selectmultiple"])!=""){
echo $_POST["selectmultiple"];
}
?>
<form name="form1" action="" method="post">
<table class='x_list_keyword_search_table' cellspacing=Ɔ'>
 <tr>
  <td  class='x_list_keyword_search_td'>&nbsp;
   <img src='images/list_item_select.gif' onClick="showUserSelectItem()" onMouseOver="this.style.cursor='hand'" border=Ɔ'/><span class='x_list_keyword_search_keyword_span2'>&nbsp;&nbsp;</span>
  </td>
 </tr>
</table>
<div id='_user_select_item_area' style='display:show' >
<table class='x_list_item_select_table' cellspacing="0" ><tr>
    <td align=center  class='x_list_item_select_title_td'>可供显示的项目</td>
    <td align=right  class='x_list_item_select_title_td'>&nbsp;</td>
    <td align=center  class='x_list_item_select_title_td'>已显示的项目</td>
    <td align=right  class='x_list_item_select_title_td'>&nbsp;</td>
 </tr>
<tr>
<td rowspan="2"  class='x_list_item_select_value_td'>
<select name="nonselectitem" size="10"  multiple style="width:121px;" class="x_list_item_select_select_td">
<?php
 for($i=1;$i<=100;$i++){
?>
 <option value="<?=$i;?>" >供应商编号<?=$i;?></option>
<?php
}
?>
</select>
</td>
<td align=center  class='x_list_item_select_button_td'>
<img src="images/list_item_select_right.jpg"  onMouseOver="this.style.cursor='hand'" onClick="copySelectedListItem(form1.nonselectitem,form1.selectitem)"/>
</td>
<td rowspan="2" align=left  class='list_advance_select_value_td'>
<select name="selectitem" size="10" style="width:121px;"  multiple  class="x_list_item_select_select_td">
</select>
</td>
<td align=center  class='x_list_item_select_button_td'>
<img src="images/list_item_select_up.jpg"  onMouseOver="this.style.cursor='hand'" onClick="selectedListItemMove(form1.selectitem,0)"/>
</td>
</tr>
<tr>
<td align=center  class='x_list_item_select_button_td'>
<img src="images/list_item_select_left.jpg"  onMouseOver="this.style.cursor='hand'" onClick="copySelectedListItem(form1.selectitem,form1.nonselectitem)"/>
</td>
<td align=center  class='x_list_item_select_button_td'>
<img src="images/list_item_select_down.jpg"  onMouseOver="this.style.cursor='hand'" onClick="selectedListItemMove(form1.selectitem,1)"/>
</td>
</td>
</tr>
</table>
<input name="isstandardlist" value="no" type="hidden">
<div class="x_list_item_select_button_div"><br>
  <img src="images/list_item_select_save.gif"  onMouseOver="this.style.cursor='hand'" onClick="formSearchsubmit(document.form1.selectitem)" /></div>
</div>
<SCRIPT LANGUAGE='JavaScript'>
<!--
function showUserSelectItem() { 
 if(_user_select_item_area.style.display==""){
   _user_select_item_area.style.display="none";
 }
 else{
   _user_select_item_area.style.display="";
 }
}
//-->
</SCRIPT>
<input  type="hidden" name="selectmultiple" id="selectmultiple">
</form> 
</body>
</html>

    A+
发布日期:2009年07月24日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: