<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: 			*/
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | Copyright (c) 2004-2008 ARMIA INC                                    |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts EasyCart                      |
// +----------------------------------------------------------------------+
// | Authors: Shyam<shyam.sunder@armiasystems.com>             		  |
// +----------------------------------------------------------------------+
?>

 <div id="grid_admin"  class="attributes<?php echo $index;?>">
							<div align="left" id="inner_leftcontent" >
							  <p class="maintext_inner">Product combination</p>
							</div>
							<div align="right" id="inner_rightcontent">
								<span class="toplinks">								
								   <div  class="maintext_inner">
									<?php
									$i=0;
									foreach($selected_cfieldvalues as $key => $val)
									{
									?>
									<div style="width:70px;float:left"><?php echo ucwords($selected_cfieldnames[$i]);?></div>
									<div>
									<select name="<?php echo "data[Product][attributes$index][]"?>" id="selectbox<?php echo $i;?>attr<?php echo $index;?>" class="box2_admin">
									<option value="">--------------- Select --------------</option>
									<?php  foreach($val as $key1 => $val2)	 
									{ 
									?>
									<option  value="<?php echo $key1;?>"><?php echo $val2;?></option>			   
									<?php 
									}  ?> 
									</select>
									</div><br />									
									<?php $i++; } ?>
									
                                                                        <div class="stock_div">
                                                                            <div style="width:70px;float:left" >Stocks  <span class="required_field">*</span></div><div><input type="text" name="data[Product][stock<?php echo$index;?>]" id="stockattr<?php echo $index;?>" class="box2_admin"></div><br /></div>
                                                                        <div class="reorder_div"><div style="width:70px;float:left" class="reorder_div">Reorder Level</div><div><input type="text" name="data[Product][reorderlevel<?php echo $index;?>]" class="box2_admin"></div><br /></div>
									<div style="width:70px;float:left">Skuno</div><div><input type="text" name="data[Product][skuno<?php echo $index;?>]"  class="box2_admin"></div><br />
									<div style="width:70px;float:left">Extra Price</div><div><input type="text" name="data[Product][extraprice<?php echo $index;?>]" class="box2_admin"></div><br />
									<div style="width:70px;float:left">Image</div><div><input type="file" name="data[Product][pdctfile<?php echo $index;?>]"  size="20"></div><br />
						
								   <input type="button" onclick="return delRow('<?php echo $index;?>');" id="delrow<?php echo $index;?>" style="display:none;" value="Remove this Combination">
								   <input type="button"  onclick="return addMore();" id="addmore<?php echo $index;?>" value="Add More Combination">
								   <input type="hidden" name="data[Product][combn_cnt][]" id="combn_cnt<?php echo $index;?>" value="<?php echo $index;?>"/>
								   </div>
								   <div>&nbsp;</div>								
								</span>							
							</div>
							<div align="left" class="float_clear1"><?php echo $html->image('/img/clear.gif', array('width' => 1, 'height' => 1));?></div>
						  </div>