⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vacancies_display_sorted.php

📁 手机wap源码-PHP-‘Jopshop’
💻 PHP
字号:
<? 
session_start();
require_once('../header.php');

if($HTTP_SESSION_VARS['status'] == "logged"){

require_once('../database.php');
	$query = "SELECT category FROM $dbTable_03 ORDER BY category ASC";
	$result = mysql_query($query);
	$db_entryCount = mysql_num_rows($result);

	$display_category = array();

print("<card id='select' title='Sorted Vacancies'>
			<p align='center'>
			<a href='vacancies_select.php'><img src='../../images/c_head_vacancies.gif' alt='Vacancies'/></a>
			<br/>
			<br/>
			<select name='selected_category' title='Please Select!'>");

for ($count = 0; $count < $db_entryCount; $count++){
	$thread = mysql_fetch_array($result);
	$db_category  = $thread['category'];
	if(!in_array($db_category,$display_category))
	{
		$display_category[]=$db_category;
	}
	}
	foreach($display_category as $value){
	print  "<option value=\"".htmlspecialchars($value)."\">".htmlspecialchars($value)."</option>";
	
}
	
	print ("</select>
			<anchor>
			<br/>Show Vacancies
			<go href='vacancies_display_sorted_spec.php' method='get'>
			 <postfield name='category' value='$(selected_category)'/>
			 </go>
			</anchor>
	
	
	<br/><br/><img src='../../images/space8.gif' alt='space'/><br/>
		 </p>
		 <p align='center'>
		<a href='about.php'><img src='../../images/c_sub_nav_about.gif' alt='about us'/></a>
		<a href='student.php'><img src='../../images/c_sub_nav_student.gif' alt='student info'/></a>
		<a href='contact.php'><img src='../../images/c_sub_nav_contact.gif' alt='contact us'/></a>
    </p>
			</card>
			</wml>");
}else{
print("<card id='splash' title='Vacancies' ontimer='vacancies.php#login'>>
		<timer value='20'/>
		<p align='center'>
		<img src='../../images/c_head_vacancies.gif' alt='head'/><br/>
		<img src='../../images/c_notice_vacancies_02.gif' alt='Please insert your username + password!'/>
		</p>
		</card>
		</wml>");
}
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -