Location: PHPKode > scripts > deadatagrid > deadatagrid/example5.php
<!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=ISO-8859-1">
<title>Example 5 Datagrid</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script language="javascript" type="text/javascript" src="util.js"></script>
</head>
<body>
<form onsubmit="return changeFocus(this)" onkeyup="highlight(event,this)" onclick="highlight(event,this)" id="form1" name="form1" method="post" action="">

<strong>Sample form with choose grid...</strong>
<br><br>

<table border="0" width="100%">
<td valign="top" width="40%">
<table border="0" width="60%">
<tr>
   <td bgcolor='#ffffff'>
      <font face='verdana, arial, helvetica' size='2' align='center'>
         &nbsp;Login name
      </font>
   </td>
   <td bgcolor='#ffffff' align='center'>
      <font face='verdana, arial, helvetica' size='2' align='center'>
         <input type ='login' class='bginput' name='login'>
      </font>
   </td>
</tr>
<tr>
   <td bgcolor='#ffffff'>
      <font face='verdana, arial, helvetica' size='2' align='center'>
         &nbsp;Password
      </font>
   </td>
   <td bgcolor='#ffffff' align='center'>
      <font face='verdana, arial, helvetica' size='2' align='center'>
         <input type ='password' class='bginput' name='password'>
      </font>
   </td>
</tr>
<tr>
   <td bgcolor='#ffffff'>
      <font face='verdana, arial, helvetica' size='2' align='center'>
         &nbsp;Language
      </font>
   </td>
   <td bgcolor='#ffffff' align='center'>
      <font face='verdana, arial, helvetica' size='2' align='center'>
         <input class='bginput' name='langf' id='langf'
            onclick="
            //document.getElementById('langf').value='';
            //document.getElementById('lablangf').value='';
            document.getElementById('h_d').style.display='block';
            showGrid('example5-1.php','h_d',this,'1','title');"
            onblur="this.className = 'edit';"
            onkeyup="showGrid('example5-1.php','h_d',this,'1','title')"
            onfocus="this.className = 'edit1'"/>
      </font>
   </td>
   <td bgcolor='#ffffff'>
      <font face='verdana, arial, helvetica' size='2' align='center'>
         <input id='lablangf' readonly='readonly'/>
      </font>
   </td>
<tr>
   <td bgcolor='#ffffff'>
      <font face='verdana, arial, helvetica' size='2' align='center'>
         &nbsp;Lang
      </font>
   </td>
   <td bgcolor='#ffffff' align='center'>
      <font face='verdana, arial, helvetica' size='2' align='center'>
         <input class='bginput' name='lang' id='lang'
            onclick="
            //document.getElementById('lang').value='';
            //document.getElementById('lablang').value='';
            document.getElementById('h_d').style.display='block';
            showGrid('example5-2.php','h_d',this,'2','name');"
            onblur="this.className = 'edit';"
            onkeyup="showGrid('example5-2.php','h_d',this,'2','name')"
            onfocus="this.className = 'edit1'"/>
      </font>
   </td>
   <td bgcolor='#ffffff'>
      <font face='verdana, arial, helvetica' size='2' align='center'>
         <input id='lablang' readonly='readonly'/>
      </font>
   </td>
</tr>
</tr>
    <tr>
      <td colspan="3" align="left">
      <input name="izmeni" type="submit" id="izmeni" value="Izmeni" onmousedown="potvrdi=true" />
      </td>
    </tr>
</table>
</td>
<td width="40%" valign="top">
   <div id="h_d"></div>
   <div id="h_t" style="visibility:hidden; background-color:white; border: 0px solid black;"></div>
   <!--<div id="h_t"></div>-->
</td>
</table>
</form>
</body>
</html>
Return current item: deadatagrid