<div class="black_box_bg_middle"><div class="black_box_bg_top"><div class="black_box">
	<div class="content" style="margin-left:50px;">
		<div class="red_h_sep"></div>
		<div class="title">
			<?php $edit_payment_title = lang('Edit Payment Details')?>
			<span class="toupper"><?php echo $edit_payment_title?></span>
		</div>	
		<div id="affiliate_settings">	
		<?php echo form_open('settings/edit-payment-details' , 'class="set_payment_details"')?>
			<div class="gray italic payment_details">
			<div class="payment_details_info"><label><?php echo lang('Name')?>:</label><?php echo ' - ' . $payment_details->name ?></div>
			<div class="payment_details_info"><label><?php echo lang('Currency')?>:</label><?php echo ' - ' . SETTINGS_SHOWN_CURRENCY ?></div>
			<div class="payment_details_info"><label><?php echo lang('Minimum amount')?>:</label><?php echo ' - ' . $payment_details->minim_amount ?></div>
			<?php 
			$fields = unserialize($payment_details->fields);
			$perfomer_account = unserialize($this->user->account);
			foreach ($fields as $field): ?>
				<div>
					<label><span class="gray italic bold" id="performerTexAlign"><?php echo lang($field)?>:</span></label>
					<?php echo form_input(str_replace(' ' ,'_' , $field), set_value(str_replace(' ' ,'_' , $field), $perfomer_account[$field]))?>
					<span class="error message" htmlfor="<?php echo str_replace(' ' ,'_' , $field) ?>" generated="true"><?php echo form_error(str_replace(' ' ,'_' , $field))?></span>
				</div>
			<?php endforeach ?>	
			<div>
				<label><span class="gray italic bold"><?php echo lang('Release Amount')?></span></label>
				<input type="text" value="<?php echo $this->user->release?>" name="rls_amount" onkeyup="javascript:validate_one();"/><span class="input_r"></span>				
				<span class="error message" htmlfor="rls_amount" generated="true"><?php echo (form_error('rls_amount'))?form_error('rls_amount'):sprintf(lang('Minim %s'),print_amount_by_currency($payment_details->minim_amount,TRUE,TRUE))?></span>																								
			</div>
			<div style="margin-top:8px; margin-left:223px;">
					<button class="red"  type="submit" style="width:206px;"> <?php echo lang('Update')?> </button><br/>
				</div>
			</div>
		<?php echo form_close()?>
		</div>
		<br/>
		<div class="clear"></div>
		<div class="red_h_sep"></div>
		<div class="white_h_sep"></div>
		
	</div>
</div>
</div></div><div class="black_box_bg_bottom"></div>