<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
<link href="css/admin.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" language="javascript" src="js/jquery.js"></script>
<script type="text/javascript" language="javascript">
<!--
$(function(){
$.each( $('.table_content'),
function(){
$(this).bind('mouseover',function(){$(this).css('background-color','#d9e8fd');});
$(this).bind('mouseout',function(){$(this).css('background-color','#e6f2fe');});
}
);
});
function simOptionClick4IE(){    
    var evt=window.event  ;    
    var selectObj=evt?evt.srcElement:null;
    if (evt && selectObj &&  evt.offsetY && evt.button!=2    
        && (evt.offsetY > selectObj.offsetHeight || evt.offsetY<0 ) ) {    
            var oldIdx = selectObj.selectedIndex;    
   
            setTimeout(function(){    
                var option=selectObj.options[selectObj.selectedIndex];
				document.getElementById('flash_image').src='../images/banner/'+selectObj.options.value;
            }, 60);    
    }    
}    
   
-->
</script>
</head>

<body>
<table width="100%" border="0" cellspacing="0">
  <tr height="184">
    <td align="left" valign="top" class="table_bg">
      <div class="boxtitle"><!--Kw[$title]--></div>
		<form action="add_flash.php?type=<!--Kw[$stype]-->" method="post" name="form1" target="_self" id="form1">
      <table width="60%" border="0">
        <tr class="table_content">
          <td width="23%" nowrap="nowrap">图片名称</td>
          <td width="77%"><input name="name" type="text" id="name" value="<!--Kw[$flash[0].name]-->" size="35" /></td>
        </tr>
        <tr class="table_content">
          <td nowrap="nowrap">图片链接</td>
          <td><input name="link" type="text" id="link" value="<!--Kw[$flash[0].link]-->" size="35" /></td>
        </tr>
        <tr class="table_content">
          <td nowrap="nowrap">选择图片</td>
          <td>
            <select name="image" id="image" onclick="simOptionClick4IE()">
              <!--Kw[section name=images loop=$images]--> 
              <option <!--Kw[if $images[images]==$flash[0].image]--> selected="selected"<!--Kw[/if]--> onclick="document.getElementById('flash_image').src='../images/banner/<!--Kw[$images[images]]-->'" value="<!--Kw[$images[images]]-->"><!--Kw[$images[images]]--></option>
              <!--Kw[/section]--> 
            </select></td>
        </tr>
        <tr class="table_content">
          <td><!--Kw[if $stype == "editok"]-->
          <input name="id" type="hidden" id="id" value="<!--Kw[$flash[0].id]-->" />
          <!--Kw[/if]--></td>
          <td><span class="button" onclick="document.getElementById('form1').submit()">提交</span></td>
        </tr>
    </table>
    </form>
    </td>
  </tr>
  </table>
<!--Kw[if $flash[0].image]-->
<img style="margin-left:50px;" src="../images/banner/<!--Kw[$flash[0].image]-->" id="flash_image" width="468" height="243" />
<!--Kw[else]--> 
<img style="margin-left:50px;" src="../images/banner/noimage.jpg" id="flash_image" width="468" height="243" />
<!--Kw[/if]--> 
</body>
</html>
