Beispiel #1
0
	public function buildProductsTable($cats)
	{
		$catHtml = "";
		if(isset($cats) && is_array($cats)){
		foreach($cats as $cat){			
				$catHtml .= "
				<tr>
					<td>$cat[category_id]</td>
					<td><a href='" . UrlHelper::generateUrl('item', 'getitems', 
						array('category'=>$cat['category_name'])). "'>$cat[category_name]</a></td>					
				</tr>";
			}
		} else {
			$catHtml = "<tr><td colspan='4'>No Categorys Exists</td></tr>";
		}
		parent::assign('cats', $catHtml);
	}
Beispiel #2
0
	<link rel='stylesheet' type='text/css' href='./styles/style.css' />
</head>
<body>
	<div id='wrapper'>
		<div id='header'>
			<p>Midway Distrubution Management Console</p>
		</div>
		
		<div id='nav'>
			<table>
				<tr>
					<td><a href='<?php echo UrlHelper::generateUrl('user', 'getusers'); ?>'>Users</a></td>
					<td><a href='<?php echo UrlHelper::generateUrl('warehouse', 'getwarehouses'); ?>'>Warehouse</a></td>
					<td><a href='<?php echo UrlHelper::generateUrl('department', 'getdepartments'); ?>'>Departments</a></td>
					<td><a href='<?php echo UrlHelper::generateUrl('item', 'getitems'); ?>'>Items</a></td>
					<td><a href='<?php echo UrlHelper::generateUrl('category', 'getcategories'); ?>'>Categories</a></td>
					<td><a href='#'>Deliveries</a></td>
				</tr>
			</table>
		</div>
		
		<div id='content'>							
			<?php echo $content?>			
		</div>
		<div id='footer'>
			<p>
				Midway Distributors<br /><br />
				<em>Developed by Garrett Rasmicah Stephenson 2011</em>
			</p>
		</div>
	</div>