Location: PHPKode > projects > JobAppr > Jobappr-1.4/admin/inc/admin-functions.php
<?php
include('admin-config.php');


# Show role dropdown
function RoleSelect($post=null) {
	$select = "SELECT * FROM ".TB_ROLES." ORDER BY role ASC";
	$result = mysql_query($select);
	
	$options = '<option value=""></option>';
	
	while ($row = mysql_fetch_assoc($result)) {
    $options .= '<option value="'.$row['role_id'].'" '. check_select($post, $row['role_id'], false) .' >'.$row['role'].'</option>'."\n";
	}
		
	echo $options;
}


function page_menu($title, $filename, $current_filename) {
	if ($filename == $current_filename) { $class = 'current'; } else { $class = 'nonactive'; }
	echo '<li><a href="'.$filename.'" class="'.$class.'" >'.$title.'</a></li>';
	
}
Return current item: JobAppr