<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?
global $USER;
$USR_ID = $USER->GetID();
$USRcity = CUser::GetList(($by="ID"), ($order="asc"),array("ID"=>$USR_ID) ,array("SELECT"=>array("UF_*")));
?>
<table border="0" cellspacing="0" cellpadding="5" width="100%">
<tr>
<td valign="top" width="60%" align="right">
<input type="submit" name="contButton" value="<?= GetMessage("SALE_CONTINUE")?> >>">
</td>
<td valign="top" width="5%" rowspan="3"> </td>
<td valign="top" width="35%" rowspan="3">
<?echo GetMessage("STOF_PRIVATE_NOTES")?>
</td>
</tr>
<tr>
<td valign="top" width="60%">
<b><?echo GetMessage("STOF_PAYMENT_WAY")?></b><br /><br />
<?
if ($arResult["PAY_FROM_ACCOUNT"]=="Y")
{
?>
<input type="hidden" name="PAY_CURRENT_ACCOUNT" value="N">
<input type="checkbox" name="PAY_CURRENT_ACCOUNT" id="PAY_CURRENT_ACCOUNT" value="Y"<?if($arResult["PAY_CURRENT_ACCOUNT"]!="N") echo " checked";?>> <label for="PAY_CURRENT_ACCOUNT"><b><?echo GetMessage("STOF_PAY_FROM_ACCOUNT")?></b></label><br />
<?=GetMessage("STOF_ACCOUNT_HINT1")?> <b><?=$arResult["CURRENT_BUDGET_FORMATED"]?></b> <?echo GetMessage("STOF_ACCOUNT_HINT2")?>
<br /><br />
<?
}
?>
<?
if(count($arResult["PAY_SYSTEM"])>0)
{
?>
<table class="sale_order_full_table">
<tr>
<td colspan="2">
<?echo GetMessage("STOF_PAYMENT_HINT")?><br /><br />
</td>
</tr>
<? print_r($USRcity); ?>
<br>
<?
foreach($arResult["PAY_SYSTEM"] as $arPaySystem)
{
?>
<tr>
<td valign="top" width="0%">
<input type="radio" id="ID_PAY_SYSTEM_ID_<?= $arPaySystem["ID"] ?>" name="PAY_SYSTEM_ID" value="<?= $arPaySystem["ID"] ?>"<?if ($arPaySystem["CHECKED"]=="Y") echo " checked";?>>
</td>
<td valign="top" width="100%">
<label for="ID_PAY_SYSTEM_ID_<?= $arPaySystem["ID"] ?>">
<b><?= $arPaySystem["PSA_NAME"] ?></b><br />
<?
if (strlen($arPaySystem["DESCRIPTION"])>0)
{
?>
<?=$arPaySystem["DESCRIPTION"]?>
<br />
<?
}
?>
</label>
& |