<?

/*
FlexCMS (http://www.flexcms.com)
Flexible, Powerful, Affordable.

Contents of this file are protected by the copyright
notice found at http://www.flexcms.com/flex/pages/copyright.html,
and its usage is subject to the terms of the licensing agreement 
available at http://www.flexcms.com/flex/pages/license.html
*/



	// ========================================================================================
	
	// ========================================================================================
		
	
	if ($LoggedIn == 'y') {
		
		ReadPermissions();
		Global $Permissions;
		
		if ($Permissions[901] == 'y') {
		
			ReadFormArguments();
			Global $FormArguments;
			
			
			
			$PageTitle = '<img src="'.$ImagesURL.'/admin/admincp_ecom.gif" width="20" height="21" align="middle"> '.$MsgText[9][68];
			$BrowserTitle = $MsgText[9][68];
			$LocationBar = '<a href="'.$IndexURL.'">'.$MsgText[0][1].'</a> > <a href="' . $MainURL . '/options.html">'.$MsgText[0][4].'</a> > <a href="'.$MainURL.'/admin/store-products.html">'.$MsgText[9][3].'</a> > <a href="'.$MainURL.'/admin/store-products_edit/'.$FormArguments['ProductID'].'.html">'.$MsgText[9][39].'</a> > '.$MsgText[9][68];


			$FormArguments['NumItems'] = intval($FormArguments['NumItems']);
			
			if ($FormArguments['NumItems'] < 1) {
				$FormArguments['NumItems'] = 5;
			}
			
			
			//if ($FormArguments['SamePrice'] == 'y') {
			
				for ($i = 1; $i <= 10; $i++) {
					if ($i == 1) {
						$QtyBox = '1';
					}
					else {
						$QtyBox = '<input type="text" name="PriceQty'.$i.'" size="4" style="'.$FormStyle.'">';
					}
					$PriceQtyBoxes .= '<tr><td>&nbsp;</td><td align="center"><font face="'.$FontFace.'" size="'.$FontSize.'">'.$QtyBox.'</td><td>&nbsp;</td><td align="center"><font face="'.$FontFace.'" size="'.$FontSize.'"><b>$</b>&nbsp;<input type="text" name="Price'.$i.'" size="7" style="'.$FormStyle.'"></td></tr>';
				}
			
				$TopSection .= '<br><b>'.$MsgText[9][58].':</b> ('.$MsgText[9][59].')<br>
<table border="0" cellpadding="2" cellspacing="0">
    <tr>
      <td width="20"><img src="'.$ImagesURL.'/admin/spacer.gif" width="20" height="1" alt="" border="0"></td>
      <td align="center"><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[9][60].'</b></font></td>
      <td width="10"><img src="'.$ImagesURL.'/admin/spacer.gif" width="10" height="1" alt="" border="0"></td>
      <td align="center"><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[9][61].'</b></font></td>
    </tr>
    '.$PriceQtyBoxes.'
</table><font size="1"><b>'.$MsgText[9][62].':</b> '.$MsgText[9][63].'<br></font>';


	
				$TopSection .= '<br><br>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="170"><font face="'.$FontFace.'" size="2"><b>'.$MsgText[9][34].':</b><br><input type="text" name="ShippingWeight" size="2" style="'.$FormStyle.'">lbs&nbsp;<input type="text" name="ShippingWeightOz" size="1" style="'.$FormStyle.'">oz</td>
	  <td><font face="'.$FontFace.'" size="2">('.$MsgText[9][35].')</td>
    </tr>
</table><br>

<b>'.$MsgText[9][38].':</b> ('.$MsgText[0][418].')<br>$<input type="text" name="AdditionalShipping" size="5" style="'.$FormStyle.'">';

			//}
			
			
			
			for ($x = 1; $x <= intval($FormArguments['NumItems']); $x++) {
			
				$BottomSection .= '<tr><td><input type="text" name="ItemID_'.$x.'" size="20" style="'.$FormStyle.'"></td><td><input type="text" name="ItemOption1_'.$x.'" size="40" style="'.$FormStyle.'"></td><td><input type="text" name="ItemStock_'.$x.'" size="5" style="'.$FormStyle.'"></td></tr>';
			
			}
			
			

			$PageContents .= '<form name="PostForm" action="'.$MainURL.'/admin/store-products_new_items_bulk_save" method="post"><input type="hidden" name="ProductID" value="'.$FormArguments['ProductID'].'"><input type="hidden" name="NumItems" value="'.intval($FormArguments['NumItems']).'">

'.$TopSection.'<br><br><br><table width="90%" cellpadding="2" cellspacing="0" border="0"><tr><td><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[9][42].'</b> ('.$MsgText[0][418].')</td><td><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[9][50].'</b></td><td><font face="'.$FontFace.'" size="'.$FontSize.'"><b>'.$MsgText[9][36].'</b> ('.$MsgText[0][418].')</td></tr>'.$BottomSection.'</table>

<br><br><br><br><input type="submit" value="'.$MsgText[9][55].'" style="'.$FormStyle.'"></form>';
		
		
		}
		else {
		
			$PageContents = $MsgText[0][97];
		
		}

	}
	else {
	
		RedirectToLogin();
	
	}

	// ========================================================================================




?>
