
<table width="770" border="1" cellspacing="0" cellpadding="0" bordercolor="#999999">
  <tr> 
    <td bgcolor="#FFFFFF" bordercolor="#FFFFFF" align="center" valign="top"> 
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td> 
            <p><b>Manage Blocks under </b><font class="directory">{type_name}</font> 
              [<a href="#note">Attention</a>]</p>
          </td>
        </tr>
        <tr> 
          <td align="right" bordercolor="#99CCCC">[<a href="index.php?action=blocks&type_id={type_id}#add">Add 
            Block </a>] [<a href="{go_back}">Go Back</a>]</td>
        </tr>
      </table>
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="2" bgcolor="#666666"><img src="../images/spot.gif" width="1" height="1"></td>
        </tr>
        <tr> 
          <td> 
            <table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#CCCCCC">
              <form action="index.php" method="post">
                <tr> 
                  <th width="3%" rowspan="2">id</th>
                  <th width="22%" rowspan="2">Title</th>
                  <th colspan="2" align="center">Display Page</th>
                  <th width="19%" rowspan="2">Position</th>
                  <th width="23%" rowspan="2">Opration</th>
                </tr>
                <tr bgcolor="#E8ECF9"> 
                  <td bgcolor="#999999"><b><font color="#FFFFFF">SearchPage</font></b></td>
                  <td width="15%" bgcolor="#999999"><b><font color="#FFFFFF">DetailPage</font></b></td>
                </tr>
                <!-- BEGIN blocks -->
                <tr bgcolor="#FFFFFF" onMouseOver ="this.style.backgroundColor='#F5F5F5'" onMouseOut ="this.style.backgroundColor='#ffffff'"> 
                  <td width="3%"> 
                    <input type="checkbox" name="file_id[]" value="{id}">
                  </td>
                  <td width="22%">{title} </td>
                  <td>{type_page} </td>
                  <td width="15%">{detail_page} </td>
                  <td width="19%">&nbsp;{position} &nbsp;</td>
                  <td width="23%" align="center"><a href="index.php?action=blocks&del_blocks=1&del_id={id}&type_id={btype_id}"  onClick="return confirm('Are sure to delete???')"><img src="../images/admin/delete.gif" width="27" height="17" border="0"></a>&nbsp;&nbsp;<a href="index.php?action=blocks&mod_id={id}&type_id={btype_id}#add"><img src="../images/admin/edit.gif" width="27" height="17" border="0"></a>&nbsp;&nbsp;<a href="index.php?action=blocks&move=down&move_id={id}&order_num={order_num}"><img src="../images/admin/down.gif" width="27" height="17" border="0"></a>&nbsp;&nbsp;<a href="index.php?action=blocks&move=up&move_id={id}&order_num={order_num}"> 
                    <img src="../images/admin/up.gif" width="27" height="17" border="0"></a></td>
                </tr>
                <!-- END blocks -->
                <tr> 
                  <td colspan="6" bgcolor="#FFFFFF"><img src="../images/admin/003.gif" width="38" height="22"> 
                    <input type="submit" name="Submit" value=" Delete ">
                    <input type="hidden" name="action" value="blocks">
                    <input type="hidden" name="del_blocks" value="1">
                    <input type="hidden" name="type_id" value="{type_id}">
                  </td>
                </tr>
              </form>
            </table>
          </td>
        </tr>
        <tr> 
          <td height="2" bgcolor="#666666"><img src="../images/spot.gif" width="1" height="1"></td>
        </tr>
      </table>
      <p>&nbsp;</p>
      <hr>
      <p> <a name="add"> </a><br>
      </p>
      <table width="70%" border="0" cellspacing="1" cellpadding="0" bgcolor="#999999">
        <form name="form1" method="post" action="index.php">
          <tr align="center"> 
            <th colspan="2">Block Settings</th>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="19%">*Title</td>
            <td width="81%"> 
              <input type="text" name="title" value="{settitle}" size="40">
            </td>
          </tr>
          <tr bgcolor="#F3F3F3"> 
            <td width="19%" rowspan="2" bgcolor="#F3F3F3">*Content:<br>
              <a href="#note">(EXP1)</a></td>
            <td width="81%" bgcolor="#F3F3F3"> Call Plug File: 
              <select name="block_file">
				{selection}
              </select>
            </td>
          </tr>
          <tr> 
            <td width="81%" bgcolor="#F3F3F3"> Content: 
              <textarea name="info" cols="50" rows="5">{setinfo}</textarea>
            </td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="19%">Table Cell Class:<br>
              <a href="#note">(EXP2)</a><br>
            </td>
            <td width="81%"> Table: 
	    <select name="table_class">
                <option value="0" {table_s}>Use default</option>
                <option value="table1" {table1}>table1</option>
                <option value="table2" {table2}>table2</option>
                <option value="table3" {table3}>table3</option>
              </select>
              
              , Td1: 
              <select name="td1_class">
                <option value="0" {td1_s}>Use default</option>
                <option value="td1_1" {td1_1}>td1_1</option>
                <option value="td1_2" {td1_2}>td1_2</option>
                <option value="td1_3" {td1_3}>td1_3</option>
		<option value="td1_4" {td1_4}>td1_4</option>
                <option value="td1_5" {td1_5}>td1_5</option>
		<option value="hidden" {hidden}>Hide</option>
              </select>
              
              , Td2: 
              <select name="td2_class">
                <option value="0" {td2_s}>Use default</option>
                <option value="td2_1" {td2_1}>td2_1</option>
                <option value="td2_2" {td2_2}>td2_2</option>
                <option value="td2_3" {td2_3}>td2_3</option>
		<option value="td2_4" {td2_4}>td2_4</option>
                <option value="td2_5" {td2_5}>td2_5</option>
              </select>
	      </td>
          </tr>
          <tr bgcolor="#F3F3F3"> 
            <td width="19%">*Display Page:</td>
            <td width="81%" bgcolor="#F3F3F3"> 
              <input type="checkbox" name="type_page" value="1" {check2}>
              Search Page, 
              <input type="checkbox" name="detail_page" value="1" {check3}>
              Detail Page</td>
          </tr>
          <tr bgcolor="#FFFFFF"> 
            <td width="19%">*Position:</td>
            <td width="81%"> 
              <select name="position">
                <option value="0" {selected}>Please Selete</option>
                <option value="4" {position4}>Left</option>
                <option value="1" {position1}>Right</option>
                <option value="3" {position3}>Top</option>
                <option value="2" {position2}>Down</option>
              </select>
              <input type="hidden" name="block_id" value="{block_id}">
              <input type="hidden" name="action" value="blocks">
              <input type="hidden" name="add_block" value="{add_block}">
              <input type="hidden" name="mod_block" value="{mod_block}">
              <input type="hidden" name="type_id" value="{type_id}">
            </td>
          </tr>
          <tr bgcolor="#F3F3F3"> 
            <td colspan="2" align="center"> 
              <input type="submit" name="Submit2" value="Submit">
            </td>
          </tr>
        </form>
      </table>
      <p>&nbsp;</p>
      <table width="100%" border="0" cellspacing="1" cellpadding="0">
        <tr> 
          <td bgcolor="#F3F3F3" align="center" valign="top"> <a name="note"> </a> 
            <table width="96%" border="0" cellspacing="0" cellpadding="0">
              <tr> 
                <td> 
                  <p>Attention: <font color="#339900">The blocks of search page 
                    and Detail page will be inherited by child-class.</font></p>
                  <p>EXP1:<font color="#339900">Content. If you have filled in 
                    the 'Call Plug File', the 'Content' will be ignored.<br>
                    You can find Plug File in &quot;includes/plugs/&quot;, and 
                    fill only the file name.<br>
                    </font></p>
                  <p>EXP2:<font color="#339900">Table Cell Class. A class must 
                    be defined in the CSS file before you using it. 
                   </font></p>
                  <p><img src='../images/admin/blockdemo.gif'></p>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
