mirror of
				https://github.com/fspc/Yellow-Bike-Database.git
				synced 2025-10-31 17:05:36 -04:00 
			
		
		
		
	Closes #67.
This commit is contained in:
		
							parent
							
								
									17684f6e10
								
							
						
					
					
						commit
						46be9fa887
					
				| @ -1515,11 +1515,14 @@ $(function() { | ||||
| 					} | ||||
| 				}	 | ||||
| 				 | ||||
| 				// Assuming local time is correct and synchronized with mysql time d.toLocaleDateString().replace(/\//g,'-')
 | ||||
| 				var current_date_time = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate() + " " + d.toLocaleTimeString().split(' ')[0]; | ||||
| 				 | ||||
| 				var current_transaction = | ||||
| 								{   			 | ||||
| 										transaction_id: transaction_id, | ||||
| 										date_startstorage: $("#date_startstorage").val(), | ||||
| 										date: date, | ||||
| 										date: current_date_time, | ||||
| 										transaction_type: $("#transaction_type").val(), | ||||
| 										original_price: original_price, | ||||
| 										amount: price, | ||||
|  | ||||
| @ -699,13 +699,15 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) { | ||||
| 		  					$sql = mysql_query($query, $YBDB) or die(mysql_error()); | ||||
| 							$result = mysql_fetch_assoc($sql); | ||||
| 		  					if ( $history[$key]->original_price ) { | ||||
| 				  				$title = "Sold By: " . $result['full_name']. "\r\n" . | ||||
| 				  				$title = "Date: " . $history[$key]->date. "\r\n" . | ||||
| 				  							"Sold By: " . $result['full_name']. "\r\n" . | ||||
| 				  							"Original Price: " . $history[$key]->original_price . "\r\n" . | ||||
| 				  							"Paid: " . $history[$key]->amount . "\r\n" . | ||||
| 				  							"Redeemed Hours: " . floatval($history[$key]->redeemed_hours); | ||||
| 				  				echo "title='" . $title . "'"; | ||||
| 			  				} else { | ||||
| 				  				$title = "Transaction Performed By: " . $result['full_name']; | ||||
| 				  				$title = "Date: " . $history[$key]->date. "\r\n" . | ||||
| 				  							"Transaction Performed By: " . $result['full_name']; | ||||
| 				  				echo "title='" . $title . "'";			  				 | ||||
| 			  				} | ||||
| 		  				} | ||||
| @ -877,8 +879,9 @@ if ((isset($_POST["MM_insert"])) && ($_POST["MM_insert"] == "ChangeDate")) { | ||||
|                </td>        | ||||
|     </tr> | ||||
| </table> | ||||
| <p> </p> | ||||
| 
 | ||||
| <?php include("include_footer.html"); ?>
 | ||||
| 
 | ||||
| <?php | ||||
| mysql_free_result($Recordset1); | ||||
| ?>
 | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user