<form action="inv_config.php" method="post">
<input type="hidden" name="pflag" value="config">
<table cellpadding="1" cellspacing="0" border="0" align="center" width="100%" class="tbl_border">
<tr>
  <td>
    <table cellpadding="4" cellspacing="0" border="0" width="100%">
      <tr>
        <td class="tbl_caption" colspan="2">
          Invoice Configuration
        </td>
      </tr>
      <tr class="tbl_light">
        <td width="50%">Company
         <div class="explanation">
         Your company name.
         /div>
        </td>
        <td width="50%"><input type="text" size="40" name="company" value="<%$company%>" class="textbg"></td>
      </tr>
      <tr class="tbl_light2">
        <td valign="top">Contact name
         <div class="explanation">Your contact person name or it could be your Billing Department.</div>
        </td>
        <td><input type="text" size="40" name="contact" value="<%$contact%>" class="textbg"></td>
      </tr>
      <tr class="tbl_light">
        <td valign="top">Address
          <div class="explanation">Your company address, state, zip, and country.</div>
        </td>
        <td><textarea name="address" cols="40" rows="7"><%$address%></textarea></td>
      </tr>
      <tr class="tbl_light2">
        <td valign="top">Phone
         <div class="explanation">Your phone number.</div>
        </td>
        <td><input type="text" size="40" name="phone" value="<%$phone%>" class="textbg"></td>
      </tr>
      <tr class="tbl_light">
        <td valign="top">Email
         <div class="explanation">Your email address.</div>
        </td>
        <td><input type="text" size="40" name="email"  value="<%$email%>" class="textbg"></td>
      </tr>
      <tr class="tbl_light2">
        <td valign="top">Currency symbol
         <div class="explanation">Example: $, £, €, $CAD, $AUD, etc.</div>
        </td>
        <td><input type="text" size="40" name="currency_symbol"  value="<%$currency_symbol%>" class="textbg"></td>
      </tr>
      <tr class="tbl_light">
        <td valign="top">Currency code</td>
        <td>
          <select name="currency_code">
            <option <%if $currency_code == "AUD" %>selected<%/if%>>AUD</option>
            <option <%if $currency_code == "CAD" %>selected<%/if%>>CAD</option>
            <option <%if $currency_code == "EUR" %>selected<%/if%>>EUR</option>
            <option <%if $currency_code == "GBP" %>selected<%/if%>>GBP</option>
            <option <%if $currency_code == "JPY" %>selected<%/if%>>JPY</option>
            <option <%if $currency_code == "USD" %>selected<%/if%>>USD</option>
          </select>
        </td>
      </tr>
      <tr>
        <td class="tbl_light2" colspan="2" align="center">
          <input type="submit" value="Configure" class="button">
          <input type="reset" value="Reset" class="button">
        </td>
      </tr>
    </table>
  </td>
</tr>
</table>
</form>

<table cellpadding="1" cellspacing="0" border="0" align="center" width="100%" class="tbl_border">
<tr>
  <td>
    <table cellpadding="4" cellspacing="0" border="0" width="100%">
      <tr>
        <td class="tbl_caption" colspan="2">
          Available Payment Systems
        </td>
      </tr>
    </table>
    <table cellpadding="4" cellspacing="0" border="0" width="100%">
      <tr class="tbl_subcaption">
        <td align="center" width="*">Name</td>
        <td align="center" width="150">Status</td>
        <td align="center" width="150">Configure</td>
      </tr>
      <%section name="i" loop=$ps%>
      <%if $smarty.section.i.rownum is odd%>
        <%assign var="alt" value="tbl_light2"%>
      <%else%>
        <%assign var="alt" value="tbl_light"%>
      <%/if%>
      <tr class=<%$alt%>>
        <td valign="top"><%$ps[i].name%></td>
        <td valign="top" align="center">
        <%if $ps[i].enable eq '1'%>
          Enable
        <%else%>
          Disable
        <%/if%>
        </td>
        <td valign="top" align="center">
          <a href="inv_config_payment.php?m=<%$ps[i].name%>"><b>Configure</b></a>
        </td>
      </tr>
      <%sectionelse%>
      <tr>
        <td class="tbl_light" colspan="6">
          Currently there's no payment system available.
        </td>
      </tr>
      <%/section%>
    </table>
  </td>
</tr>
</table>