Location: PHPKode > projects > OpenCabling > opencabling/choose_object.php
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"></meta>
<link rel="stylesheet" href="css/opencabling.css" type="text/css"></link>
<?php
        require_once 'js/functions.js';
?>

<script>
function update(obj_id,obj_name) {
	var field=opener.document.getElementById(obj_id);
	var obj_sel=document.getElementById('object_id');
	field.value=obj_sel.value;
	opener.ShowObjectName(obj_id,obj_name);
	window.close();
}

</script>
</head>
<body onBlur="self.focus()">
<table><tr><td><b>Please select...<b></td></tr>
<tr><td><iframe width=350 height=200 src="div_choose_object.php"></iframe></td></tr>
<tr><td align=right><button onclick="update(<?php echo "'".$_REQUEST['return']."'"; ?>,<?php echo "'".$_REQUEST['name']."'"; ?>)">Select</button></td></tr>
<tr><td><input type=hidden name=object_id id='object_id'></input></td>
</table>
</body>
</html>
Return current item: OpenCabling