Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/show_block_content.tpl
{if $total_block>0}
{section name=block_content loop=$block_content}
<table width="700" border="0" cellspacing="0" cellpadding="0" id="irForm">
  <tr>
    <td height="70" valign="bottom">{if $block_content[block_content].reserve_block=="yes"} <div style="width:400px; float:left; padding:7px; margin-top:5px; background-color:#FFFFD5"><img src="images/icons/help.png" align="absmiddle" /> ( This is a reserve block and for system use only. You can not change heading and description but you can add/delete pages in this block )</div><div style="clear:both;"></div>{/if}
    <br />
Block Heading<br />
<input id="block_id" name="block_id" type="hidden" value="{$block_content[block_content].block_id}" />
<input id="block_heading" name="block_heading" type="text" class="irInput" value="{$block_content[block_content].block_heading}" {if $block_content[block_content].reserve_block=="yes"} readonly="readonly"{/if} />
    </td>
  </tr>
  <tr>
    <td height="110" valign="bottom">Block Description<br />
    <textarea name="block_text" cols="77" rows="3" class="irTextarea" id="block_text" {if $block_content[block_content].reserve_block=="yes"} readonly="readonly"{/if}>{$block_content[block_content].block_text}</textarea>      <br /></td>
  </tr>
    <tr>
    <td><a name="all_contents" id="all_contents"></a>
<div id="all_pages" style="width:680px;">
{include file="list_all_content_block.tpl"}
</div></td>
  </tr>
  <tr>
    <td height="50"><input name="btn_submit" id="btn_create" type="submit" value="Save"  class="irBtnSave" />
    <br /></td>
  </tr>
</table>
{/section}
{else}
<table width="700" border="0" cellspacing="0" cellpadding="0" id="irForm">
  <tr>
    <td height="70" valign="bottom">Block Heading<br />
<input id="block_heading" name="block_heading" type="text" class="irInput" /> 
    </td>
  </tr>
  <tr>
    <td height="110" valign="bottom">Block Description<br />
    <textarea name="block_text" cols="77" rows="3" class="irTextarea" id="block_text"></textarea><br /></td>
  </tr>
   <tr>
    <td><a name="all_contents" id="all_contents"></a>
<div id="all_pages" style="width:680px;">
{include file="list_all_content_block.tpl"}
</div></td>
  </tr>
   <tr>
    <td height="50"><input name="btn_submit" id="btn_create" type="submit" value="Create"  class="irBtnCreate" />
    <br /></td>
  </tr>
</table>
{/if}
Return current item: Simple PHP Shopping cart - asaancart