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

📄 change_group_form.php

📁 The Shift Log is a database entry and display system that is built off of PHP and MySQL. The log use
💻 PHP
字号:
<?PHP
#############################################################################
#  This file is part of Shiftlog.											#
#																			#
#    Shiftlog is free software; you can redistribute it and/or modify		#
#    it under the terms of the GNU General Public License as published by	#
#    the Free Software Foundation; either version 3 of the License, or		#
#    (at your option) any later version.									#
#																			#
#    Shiftlog is distributed in the hope that it will be useful,			#
#    but WITHOUT ANY WARRANTY; without even the implied warranty of			#
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the			#
#    GNU General Public License for more details.							#
#																			#
#    You should have received a copy of the GNU General Public License		#
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.	#
#############################################################################

				// Menu For the user Select
			$conn;
			$sql="SELECT username FROM users"; 
			$result=mysql_query($sql); 
			$options=""; 
			while ($row=mysql_fetch_array($result)) 
				{ 
				$user=$row["username"]; 
    			$options.="<OPTION VALUE=\"$user\">".$user; 
				} 
		?>
		<br />
	<!-- Change Group -->	
	<form name="change_group" action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?>" method="post">
	<table bgcolor="#CCCCCC" width="35%"  border="1">
  		<tr>
  			<td colspan="2" align="center"><p><strong>Change User Group </strong></p>
		    </td>
    	</tr>
  		<tr>
    		<td width="45%">Select User:</td>
    		<td width="55%" align="center"><select name="user_name"><option value="0">Select One<?PHP echo $options;?></select></td>
  		</tr>
  		<tr>
    		<td>Group</td>
    		<td align="center">    		  
				<select name="group">
				<option value="0">Select One</option>
    		    <option value="1">Staff</option>
    		    <option value="2">Management</option>
    		    </select></td>
  		</tr> 
		<tr>
    		<td align="center"><input type="reset"></td>
    		<td><input type="submit" name="group_as" value="Submit" /></td>
  		</tr>
	</table>
	</form>

⌨️ 快捷键说明

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