<table class="adminform" width="100%" cellpadding="10" cellspacing="10">

                 <tr valign="middle"><td align="left" class="dt_heading" colspan="4"><?php echo JText::_( 'DT_GENERAL_PAY_OPTIONS' ); ?></td></tr>

								 <!-- ********** General Payment Options ******************	-->

							   <tr align="center" valign="middle">

                   <td width="210" align="left" valign="top"><strong><?php echo JText::_( 'PAYMENT_METHOD' ); ?>:</strong></td>

							     <td width="200" align="left" valign="top">

							     <!-- Here we will need to select payment methods-->

							     <?php

							   		$options=array();

							   		$options[]=JHTML::_('select.option', 'authorizenet', JText::_( 'AUTH_NET' ));
							   		$options[]=JHTML::_('select.option', 'echeck', JText::_( 'ECHECK' ));
                    $options[]=JHTML::_('select.option', 'GoogleCheckout', JText::_( 'DT_GOOGLE_CHECKOUT' ));
					          $options[]=JHTML::_('select.option', 'paypal', JText::_( 'PAYPAL' ));
					          $options[]=JHTML::_('select.option', 'Eway', JText::_( 'DT_EWAY' ));
					          $options[]=JHTML::_('select.option', 'ideal', JText::_( 'DT_PAY_IDEAL_MOLLIE' ));
					          $options[]=JHTML::_('select.option', 'idealRabo', JText::_( 'DT_PAY_IDEAL_LITE' ));
					          $options[]=JHTML::_('select.option', 'NetDeposit', JText::_( 'DT_NETDEPOSIT' ));					    
								    $options[]=JHTML::_('select.option', 'pay_later', JText::_( 'DT_PAY_LATER' ));
                    $arrPaymentMethod=explode(",",$paymentmethod);

							   		//Create the selected array

							   		$selectedOptions=array();

							   		for($i=0,$n=count($arrPaymentMethod);$i<$n;$i++)

							   		{

							   			$selectedOptions[]=JHTML::_('select.option', $arrPaymentMethod[$i], JText::_( $arrPaymentMethod[$i] ));

							   		}

							   		$lists["payment_methods"]=JHTML::_('select.genericlist', $options,'paymentmethod[]',' multiple=true ', 'value','text',$selectedOptions);

							   		echo $lists["payment_methods"];

							     ?>

							     </td>

								   <td width="40"><?php echo JHTML::tooltip((JText::_( 'DT_PAYMENT_METHOD_HELP' )), '', 'tooltip.png', '', ''); ?> </td>
								   
								   <td valign="top"><?php echo JText::_( 'DT_NOTES_PAYMENT_METHODS' ); ?></td>

							   </tr>

							   <!-- *************** Authorize.net Options **************** -->

                 <tr valign="middle"><td align="left" class="dt_heading" colspan="4"><?php echo JText::_( 'AUTH_NET' ); ?></td></tr>

	 						 	 <tr align="center" valign="middle">

                     <td align="left" valign="top">

										 <strong><?php echo JText::_( 'DT_MERCHANT_ID' ); ?>:</strong>

										 </td>

									   <td align="left" valign="top"> <input type="text" name="merchid" size="30" value="<?php echo $merchid; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_MERCHANT_ID' )), '', 'tooltip.png', '', ''); ?> </td>
										 									   
									   <td valign="top" rowspan="5"><?php echo JText::_( 'DT_NOTES_AUTHNET' ) ;?></td>

								 </tr>

								 <tr align="center" valign="middle">

                     <td align="left" valign="top"><strong><?php echo JText::_( 'DT_TRANS_KEY' ); ?>:</strong></td>

									   <td align="left" valign="top">	<input type="text" name="transkey" size="30" value="<?php echo $transkey; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_TRANS_KEY' )), '', 'tooltip.png', '', ''); ?> </td>

								</tr>

								<tr align="center" valign="middle">  <td align="left" valign="top"><strong><?php echo JText::_( 'DT_CARD_TYPE' ); ?>:</strong></td>

							    <td align="left" valign="top"><input type="checkbox" name="cardtype[]" value="Visa" <?php if(in_array("Visa",$cardtypearr)) echo "checked"; ?>/> Visa  <input type="checkbox" name="cardtype[]" value="MasterCard" <?php if(in_array("MasterCard",$cardtypearr)) echo "checked"; ?> /> MasterCard 
                  <br /><input type="checkbox" name="cardtype[]" value="Discover" <?php if(in_array("Discover",$cardtypearr)) echo "checked"; ?> /> Discover  <input type="checkbox" name="cardtype[]" value="AmericanExpress" <?php if(in_array("AmericanExpress",$cardtypearr)) echo "checked"; ?> /> American Express </td>

									<td><?php echo JHTML::tooltip((JText::_( 'DT_CARD_TYPE_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

							  </tr>

							  <tr align="center" valign="middle">

                  <td align="left" valign="top"><strong><?php echo JText::_( 'AUTH_NET_MODE' );?>:</strong></td>

							    <td align="left" valign="top">

							    <select name="authnetmode">

							     <option value="test" <?php echo ($authnetmode=='test')?'selected':'';?> >Test</option>

							     <option value="live" <?php echo ($authnetmode=='live')?'selected':'';?> >Live</option>

							    </select>

							    </td>

								  <td><?php echo JHTML::tooltip((JText::_( 'AUTH_MODE_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

							  </tr>

							  <tr align="center" valign="middle">

                  <td align="left" valign="top"><strong><?php echo JText::_( 'ECHECK_NET_MODE' );?>:</strong></td>

							    <td align="left" valign="top">

							    <select name="echecknetmode">

							     <option value="test" <?php echo ($echecknetmode=='test')?'selected':'';?> >Test</option>

							     <option value="live" <?php echo ($echecknetmode=='live')?'selected':'';?> >Live</option>

							    </select>

							    </td>

								  <td><?php echo JHTML::tooltip((JText::_( 'ECHECK_NET_MODE' )), '', 'tooltip.png', '', ''); ?> </td>

							  </tr>
							  
							  <!-- *************** Google Checkout Options ***************	-->
							  
							  <tr valign="middle"><td align="left" class="dt_heading" colspan="4"><?php echo JText::_( 'DT_GOOGLE_CHECKOUT' ); ?></td></tr>
                                 
                 <tr align="center" valign="middle">

                     <td align="left" valign="top">

										 <strong><?php echo JText::_( 'DT_GOOGLE_MERCHANT_ID' ); ?>:</strong>

										 </td>

									   <td align="left" valign="top"> <input type="text" name="googlemerchid" size="30" value="<?php echo $googlemerchid; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_GOOGLE_MERCHANT_ID_HELP' )), '', 'tooltip.png', '', ''); ?> </td>
										 
										 <td valign="top" rowspan="3"><?php echo JText::_( 'DT_NOTES_GOOGLE_CHECKOUT' ) ;?></td>

								 </tr>
                                 
                 <tr align="center" valign="middle">

                     <td align="left" valign="top"><strong><?php echo JText::_( 'DT_GOOGLE_TRANS_KEY' ); ?>:</strong></td>

									   <td align="left" valign="top">	<input type="text" name="googleapikey" size="30" value="<?php echo $googleapikey; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_GOOGLE_TRANS_KEY_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

								 </tr>
                 <tr>
                  <td align="left" valign="top"><strong><?php echo JText::_( 'DT_GOOGLE_CHECKOUT_MODE' );?>:</strong></td>

							    <td align="left" valign="top">

							    <select name="googlemode">

							     <option value="test" <?php echo ($googlemode=='test')?'selected':'';?> >Test</option>

							     <option value="live" <?php echo ($googlemode=='live')?'selected':'';?> >Live</option>

							    </select>

							    </td>

								  <td><?php echo JHTML::tooltip((JText::_( 'DT_GOOGLE_CHECKOUT_MODE_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

							  </tr>
							  
							  <!-- *************** PayPal Options ***************	-->

							  <tr valign="middle"><td align="left" class="dt_heading" colspan="4"><?php echo JText::_( 'PAYPAL' ); ?></td></tr>

								<tr align="center" valign="middle">  <td align="left" valign="top"><strong><?php echo JText::_( 'PAYPAL_ID' ); ?>:</strong></td>

							    <td align="left" valign="top"><input type="text" name="paypalid" size="30" value="<?php echo stripslashes($paypalid); ?>"></td>

								  <td><?php echo JHTML::tooltip((JText::_( 'PAYPAL_ID_HELP' )), '', 'tooltip.png', '', ''); ?> </td>
								  
								  <td valign="top" rowspan="2"><?php echo JText::_( 'DT_NOTES_PAYPAL' ); ?></td>

							  </tr>

								<tr align="center" valign="middle">  <td align="left" valign="top"><strong><?php echo JText::_( 'PAYPAL_MODE' );?>:</strong></td>

							    <td align="left" valign="top">

							    <?php

								    $options=array();

								    $options[]=JHTML::_('select.option', 'test', JText::_( 'DT_TEST' ));//

								    $options[]=JHTML::_('select.option', 'live', JText::_( 'DT_LIVE' ));

								    echo JHTML::_('select.genericlist', $options,'paypalmode','','value','text',$paypalmode);

							     ?>

							    </td>

								  <td><?php echo JHTML::tooltip((JText::_( 'PAYPAL_MODE_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

							  </tr>
                                 
                <!-- ****************** eWay Options ******************** -->
                                
                <tr valign="middle"><td align="left" class="dt_heading" colspan="4"><?php echo JText::_( 'DT_EWAY' ); ?></td></tr>
                                 
                <tr align="center" valign="middle">

                     <td align="left" valign="top">

										 <strong><?php echo JText::_( 'DT_EWAY_CUSTOMERID' ); ?>:</strong>

										 </td>

									   <td align="left" valign="top"> <input type="text" name="eway_customerid" size="30" value="<?php echo $eway_customerid; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_EWAY_CUSTOMERID_HELP' )), '', 'tooltip.png', '', ''); ?> </td>
										 
										 <td valign="top" rowspan="3"><?php echo JText::_( 'DT_NOTES_EWAY' ) ;?></td>

								 </tr>

								<tr align="center" valign="middle">  <td align="left" valign="top"><strong><?php echo JText::_( 'DT_EWAY_MODE' );?>:</strong></td>

							    <td align="left" valign="top">

							    <?php

								    $options=array();

								    $options[]=JHTML::_('select.option', 'test', JText::_( 'DT_TEST' ));

								    $options[]=JHTML::_('select.option', 'live', JText::_( 'DT_LIVE' ));

								    echo JHTML::_('select.genericlist', $options,'ewaymode','','value','text',$ewaymode);

							     ?>

							    </td>

								  <td><?php echo JHTML::tooltip((JText::_( 'DT_EWAY_MODE_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

							  </tr>
                             
                <tr align="center" valign="middle">  <td align="left" valign="top"><strong><?php echo JText::_( 'DT_EWAY_TYPE' );?>:</strong></td>

							    <td align="left" valign="top">

							    <?php

								    $options=array();

								    $options[]=JHTML::_('select.option', 'hosted', JText::_( 'DT_SHARED' ));//

								    $options[]=JHTML::_('select.option', 'live', JText::_( 'DT_HOSTED' ));

								    echo JHTML::_('select.genericlist', $options,'ewaytype','','value','text',$ewaytype);

							     ?>

							    </td>

								  <td><?php echo JHTML::tooltip((JText::_( 'DT_EWAY_TYPE_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

							  </tr>

							<!-- **************** iDeal Mollie Options *************	-->

                <tr valign="middle"><td align="left" class="dt_heading" colspan="4"><?php echo JText::_( 'DT_PAY_IDEAL_MOLLIE' ); ?></td></tr>

								<tr align="center" valign="middle">

                  <td align="left" valign="top"><strong><?php echo JText::_( 'IDEAL_ID' ); ?>:</strong></td>

							    <td align="left" valign="top"><input type="text" name="partner_id" size="30" value="<?php echo stripslashes($partner_id); ?>"></td>

								  <td><?php echo JHTML::tooltip((JText::_( 'IDEAL_ID_HELP' )), '', 'tooltip.png', '', ''); ?> </td>
								  
								  <td valign="top" rowspan="2">&nbsp;</td>

							  </tr>

								<tr align="center" valign="middle">

                  <td align="left" valign="top"><strong><?php echo JText::_( 'IDEAL_MODE' );?>:</strong></td>

							    <td align="left" valign="top">

							    <?php

								    $options=array();

								    $options[]=JHTML::_('select.option', 'test', JText::_( 'DT_TEST' ));//

								    $options[]=JHTML::_('select.option', 'live', JText::_( 'DT_LIVE' ));

								    echo JHTML::_('select.genericlist', $options,'idealmode','','value','text',$idealmode);

							     ?>

							    </td>

								  <td><?php echo JHTML::tooltip((JText::_( 'IDEAL_MODE_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

							  </tr>
							  
                <!--- ************************* Ideal Rabobank Lite ************************* -->

                <tr valign="middle"><td align="left" class="dt_heading" colspan="4"><?php echo JText::_( 'DT_PAY_IDEAL_LITE' ); ?></td></tr>

								<tr align="center" valign="middle">

                  <td align="left" valign="top"><strong><?php echo JText::_( 'IDEAL_LITE_MERCHANT_ID' ); ?>:</strong></td>

							    <td align="left" valign="top"><input type="text" name="idealLiteMerchantId" size="30" value="<?php echo stripslashes($idealLiteMerchantId); ?>"></td>

								  <td><?php echo JHTML::tooltip((JText::_( 'IDEAL_LITE_MERCHANT_ID_HELP' )), '', 'tooltip.png', '', ''); ?> </td>
								  
								  <td valign="top" rowspan="3">&nbsp;</td>

							  </tr>
                              
                <tr align="center" valign="middle">

                  <td align="left" valign="top"><strong><?php echo JText::_( 'IDEAL_LITE_HASH_KEY' ); ?>:</strong></td>

							    <td align="left" valign="top"><input type="text" name="idealLiteHashKey" size="30" value="<?php echo stripslashes($idealLiteHashKey); ?>"></td>

								  <td><?php echo JHTML::tooltip((JText::_( 'IDEAL_LITE_HASH_KEY_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

							  </tr>

								<tr align="center" valign="middle">

                  <td align="left" valign="top"><strong><?php echo JText::_( 'IDEAL_LITE_MODE' );?>:</strong></td>

							    <td align="left" valign="top">

							    <?php

								    $options=array();

								    $options[]=JHTML::_('select.option', 'test', JText::_( 'DT_TEST' ));//

								    $options[]=JHTML::_('select.option', 'live', JText::_( 'DT_LIVE' ));

								    echo JHTML::_('select.genericlist', $options,'idealLiteMode','','value','text',$idealLiteMode);

							     ?>

							    </td>

								  <td><?php echo JHTML::tooltip((JText::_( 'IDEAL_LITE_MODE_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

							  </tr>
							  
							  <!-- *************** Net Deposit Options ******************** -->
                          
                 <tr valign="middle"><td align="left" class="dt_heading" colspan="4"><?php echo JText::_( 'DT_NETDEPOSIT' ); ?></td></tr>
                                 
                 <tr align="center" valign="middle">

                     <td align="left" valign="top">

										 <strong><?php echo JText::_( 'DT_NETDEPOSIT_CLIENTID' ); ?>:</strong>

										 </td>

									   <td align="left" valign="top"> <input type="text" name="netdeposit_clientid" size="30" value="<?php echo $netdeposit_clientid; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_NETDEPOSIT_CLIENTID_HELP' )), '', 'tooltip.png', '', ''); ?> </td>
										 
										 <td valign="top" rowspan="3"><?php echo JText::_( 'DT_NOTES_NETDEPOSIT' ) ;?></td>

								 </tr>
                                 
                 <tr align="center" valign="middle">

                     <td align="left" valign="top"><strong><?php echo JText::_( 'DT_NETDEPOSIT_CLIENTCODE' ); ?>:</strong></td>

									   <td align="left" valign="top">	<input type="text" name="netdeposit_clientcode" size="30" value="<?php echo $netdeposit_clientcode; ?>" /> </td>

										 <td><?php echo JHTML::tooltip((JText::_( 'DT_NETDEPOSIT_CLIENTCODE_HELP' )), '', 'tooltip.png', '', ''); ?> </td>

								 </tr>

							<!-- ******************* Pay Later Options ****************	-->

							   <?php

							   		if($pay_later_options!="")

							   		{

							   			$selecteds=explode(",",$pay_later_options);

							   		}

							   		else

							   		{

							   			$selecteds=array();

							   		}

							   		$options=array();

							   		$options[]=JHTML::_('select.option', '1', JText::_( 'DT_PAY_AT_DOOR' ));

							   		$options[]=JHTML::_('select.option', '2', JText::_( 'DT_MAILIN_PAYMENT' ));

							   		$options[]=JHTML::_('select.option', '3', JText::_( 'DT_CALLIN_PAYMENT' ));

							   		$arrSelecteds=array();

							   		for($i=0,$n=count($selecteds);$i<$n;$i++)

							   		{

							   			$arrSelecteds[]=JHTML::_('select.option', $selecteds[$i],JText::_($selecteds[$i]));

							   		}

									//$lists["payment_methods"]=JHTML::_('select.genericlist', $options,'paymentmethod[]',' multiple=true ', 'value','text',$selectedOptions);

							   		$lists['pay_later_options']=JHTML::_('select.genericlist', $options, 'pay_later_options[]',' multiple=true ', 'value','text', $arrSelecteds);

							   ?>

                <tr valign="middle"><td align="left" class="dt_heading" colspan="4"><?php echo JText::_( 'DT_PAYLATER_OFFLINE' ); ?></td></tr>

							  <tr align="center" valign="middle">

                  <td align="left" valign="top"><strong><?php echo JText::_( 'DT_PAY_LATER_OPTIONS' ) ;?>:</strong></td>

							    <td align="left" valign="top">

							   	<?php

							   		echo $lists['pay_later_options'];

							   	?>

							    </td>
							    
								  <td><?php echo JHTML::tooltip((JText::_( 'DT_PAY_LATER_OPTIONS_HELP' )), '', 'tooltip.png', '', ''); ?> </td>
								  
								  <td valign="top"><?php echo JText::_( 'DT_NOTES_PAYLATER' ) ;?></td>

							  </tr>

	 						 </table>