<!-- {include file="header.html"} -->
<div id="currentPosition">
	<p>{lang your_current_position} {lang extension} &raquo; {lang trusts}</p>
</div>
<div id="rightTop"> 
    <h3>{lang extension}</h3> 
    <ul class="subnav">
		<li><a href="trust.php">{lang trust_type}</a></li>
		<li><a class="btn1" href="trust.php?do=rule"><span>{lang trust_star}</span></a></li>
    </ul>
</div>
<div class="info">
  <form action="trust.php" method="post" id="EditFrm" name="edit_frm">
  <input type="hidden" name="do" value="setting">
    <table class="infoTable">
      <tr>
        <th class="paddingT15"> {lang credit_index_criteria}</th>
        <td class="paddingT15 wordSpacing5">
		<label for="CreditType0"><input type="radio" name="data[setting][credit_type]" id="CreditType0" value="0" onclick="$('#tbCreditCode').hide();" {if $item.CREDIT_TYPE==0}checked="checked"{/if}>{lang system_built}</label>
		<br />
		<label for="CreditType1"><input type="radio" name="data[setting][credit_type]" id="CreditType1" value="1" onclick="$('#tbCreditCode').show();" {if $item.CREDIT_TYPE==1}checked="checked"{/if}>{lang third_party_organization_and_code}</label>
		</td>
      </tr>
	  <tbody id="tbCreditCode" style="display:none;">
      <tr>
        <th class="paddingT15"></th>
        <td class="paddingT15 wordSpacing5"><textarea name="data[setting][credit_code]" style="width:650px;height:100px;">{$item.CREDIT_CODE}</textarea><span class="gray"><br>{lang available_parameters}</span></td>
      </tr>
	  </tbody>
      <tr>
        <th></th>
        <td class="ptb20">
			<input class="formbtn" type="submit" name="save_trust_rule" value="{lang save}" />		</td>
      </tr>
    </table>
  </form>
</div>
{if $item.CREDIT_TYPE==1}
<script>
$("#tbCreditCode").show();
</script>
{/if}
<!-- {include file="footer.html"} -->