<?php if(!defined('PARENT')) { exit; }
// Referrals..
$referral = str_replace(array(
  '{GET_VAR}', '{COOKIE}', '{API_KEY}',
  '{PRODUCT_ID}', '{SITE_FOLDER}'
), array(
  AFF_GET_PARAM,
  mswENC($ED->id . SECRET_KEY),
  $SETTINGS->apikey,
  $ED->id,
  $SETTINGS->ifolder
), mswTmp(PATH . 'content/tmp/referrals.txt'));
// Commissions..
$commission = str_replace(array(
  '{COOKIE}', '{API_KEY}',
  '{PRODUCT_ID}', '{SITE_FOLDER}'
), array(
  mswENC($ED->id . SECRET_KEY),
  $SETTINGS->apikey,
  $ED->id,
  $SETTINGS->ifolder
), mswTmp(PATH . 'content/tmp/commissions.txt'));

?>

    <div class="panel panel-default">
      <div class="panel-heading">
        <i class="fa fa-refresh fa-fw"></i> <?php echo mswSH($ED->name) . ': ' . $msw_adm_html2; ?>
      </div>
      <div class="panel-body">
        <textarea name="r" rows="5" cols="40" class="form-control"><?php echo mswSH($referral); ?></textarea>
        <span id="helpBlock" class="help-block htmlhelpblock"><i class="fa fa-info-circle fa-fw"></i> <?php echo $msw_adm_html4; ?></span>
      </div>
    </div>

    <div class="panel panel-default">
      <div class="panel-heading">
        <i class="fa fa-shopping-basket fa-fw"></i>  <?php echo mswSH($ED->name) . ': ' . $msw_adm_html3; ?>
      </div>
      <div class="panel-body">
        <textarea name="c" rows="5" cols="40" class="form-control"><?php echo mswSH($commission); ?></textarea>
        <span id="helpBlock" class="help-block htmlhelpblock"><i class="fa fa-info-circle fa-fw"></i> <?php echo $msw_adm_html5; ?></span>
      </div>
    </div>

    <div class="act-button">
      <button class="btn btn-default" onclick="mswWin('product-manage')"><i class="fa fa-chevron-left fa-fw"></i> <?php echo $msw_adm_html; ?></button>
    </div>
