mirror of
				https://github.com/fspc/Yellow-Bike-Database.git
				synced 2025-10-31 08:55:36 -04:00 
			
		
		
		
	Lol, this improves select yourself gui.
1) moves error text to the right of shop user select 2) changes error to "Please Select Yourself"
This commit is contained in:
		
							parent
							
								
									10ac1bb58a
								
							
						
					
					
						commit
						7997087a85
					
				| @ -76,7 +76,7 @@ $editFormAction_novisit = $_SERVER['PHP_SELF'] . "?shop_id=$shop_id&welcome=yes" | |||||||
| //Form Submit New Shop User
 | //Form Submit New Shop User
 | ||||||
| if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form_new") && ($_POST["contact_id"] == "no_selection")){ | if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form_new") && ($_POST["contact_id"] == "no_selection")){ | ||||||
| 	//if no contact is selected
 | 	//if no contact is selected
 | ||||||
| 	$error_message = '<span class="yb_heading3red">Please Select a User</span><br />'; | 	$error_message = '<span class="yb_heading3red">Please Select Yourself</span><br />'; | ||||||
| } elseif ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form_new")) { | } elseif ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "form_new")) { | ||||||
|   $insertSQL = sprintf("INSERT INTO shop_hours (contact_id, shop_id, shop_user_role, time_in, comment, project_id) VALUES (%s, %s, %s, %s, %s, %s)", |   $insertSQL = sprintf("INSERT INTO shop_hours (contact_id, shop_id, shop_user_role, time_in, comment, project_id) VALUES (%s, %s, %s, %s, %s, %s)", | ||||||
|                        GetSQLValueString($_POST['contact_id'], "int"), |                        GetSQLValueString($_POST['contact_id'], "int"), | ||||||
| @ -136,9 +136,7 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormEdit")) { | |||||||
| <?php include("include_header_shop.html"); ?>
 | <?php include("include_header_shop.html"); ?>
 | ||||||
| 
 | 
 | ||||||
| 	<table width="2200px"> | 	<table width="2200px"> | ||||||
|   		<tr> |    | ||||||
|     		<td align="left" valign="bottom"><?php echo $error_message;?></td>
 |  | ||||||
|   		</tr> |  | ||||||
|       <form method="post" name="form_new" action="<?php echo $editFormAction; ?>"> |       <form method="post" name="form_new" action="<?php echo $editFormAction; ?>"> | ||||||
| 		  <tr> | 		  <tr> | ||||||
| 			<td><label>Shop ID:</label></td> | 			<td><label>Shop ID:</label></td> | ||||||
| @ -151,7 +149,7 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "FormEdit")) { | |||||||
|         <tr> |         <tr> | ||||||
|           <td><label>Shop User:</label></td> |           <td><label>Shop User:</label></td> | ||||||
|           <td> |           <td> | ||||||
|               <?php list_contacts_select_user('contact_id', $new_user_id); ?>
 |               <?php list_contacts_select_user('contact_id', $new_user_id); ?> <?php echo $error_message;?>
 | ||||||
|           </td> |           </td> | ||||||
|         </tr> |         </tr> | ||||||
|         <tr> |         <tr> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user