コード例 #1
0
function getLayoutPulldown($currentLayout)
{
    $layoutOptions = array(array('data' => 'pulldown', 'label' => 'Pulldowns'), array('data' => 'radio', 'label' => 'Radio Buttons'), array('data' => 'menus', 'label' => 'Menus'));
    return getSelectPulldown('layout', $layoutOptions, 'data', 'label', $currentLayout);
}
コード例 #2
0
	           <input type = "text" name = "username" id = "username" 
	               value = "<?php 
echo $selUser['username'];
?>
" />
	       </div>
	       <div>
	           <label for = "password">Password</label> 
	           <input type = "text" name = "password" id = "password" 
	               value = "" />
	           (Leave blank if you don't want to change it)
	       </div>
	       <div>
	           <label for = "library_id">Library</label> 
	            <?php 
echo getSelectPulldown("library_id", $rInfo['libraryList'], 'library_id', 'short_name', $selUser['library_id']);
?>
	       </div>
	       <div>
	           <input type = "checkbox" name = "admin" id = "admin" value="true"
	               <?php 
if ($selUser['admin']) {
    echo 'checked = "checked"';
}
?>
 />
	           <label for = "admin" class = "noPos">Admin</label> 
	       </div>
	       <div>
                <input type = "submit" name = "save" value = "Save" />
	       </div>
コード例 #3
0
    for (var i = 0; i < selElement.options.length; i++) {
        if (selElement.options[i].value == value) {
            
            selElement.selectedIndex = i;
        }
    }
}

</script>

<form name="dates" method="get" action="advancedSearch.do" id="qForm">
<div id="toolbar">
<div class = "inputBox">
	<h5>Library</h5>
<?php 
echo getSelectPulldown('library_id', $libraryList, 'library_id', 'short_name', grwd('library_id', $rInfo['library_id']), 'onchange="findLocation(\'library_id\')"');
?>
</div>
<div class ="inputBox">
	<h5>Location</h5>
<select id="location_id" name="location_id">
	<option value="*" selected>All Locations</option>
	<option value="">----------------------------</option>
	<?php 
foreach ($locationList as $list) {
    echo '<option value="' . $list['location_id'] . '">' . $list['location_name'] . '</option>';
}
?>
	
</select>
</div>