{* header *}{include file="1549864.tpl"}

{get_custom_modules assign=modules node_id=19}
{get_customized_node assign=cust_node node_id=19}
<form method="post">
    column:
    <select id="cust_column" name="cust_column">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
    </select>
    module:
    <select id="cust_module" name="cust_module">
    {foreach from=$modules item=module name=modules}
        <option value="{$module.node_id}">
            {$module.node_name}
        </option>
    {/foreach}
    </select>
    position:
    <input type="text" id="cust_position" name="cust_position" value="" />
    <input type="submit" id="add_cust_module" name="event" value="add_cust_module" />
    <br /><br />
    <table cellpadding="0" cellspacing="0">
        <tr>
            <td>&nbsp;&nbsp;</td>
            <td>&nbsp;column&nbsp;</td>
            <td>&nbsp;module id&nbsp;</td>
            <td>&nbsp;name&nbsp;</td>
            <td>&nbsp;position&nbsp;</td>
        </tr>
        
        {foreach from=$cust_node item=columns name=columns}
            {foreach from=$columns item=module}
            <tr>
                <td>
                    <input type="checkbox" id="cust_node_{$module.customized_node_id}" name="cust_nodes[]" value="{$module.customized_node_id}" />
                </td>
                <td>{$module.column}</td>
                <td>{$module.module_id}</td>
                <td>{$module.node_name}</td>
                <td>{$module.position}</td>
            </tr>
            {/foreach}
        {/foreach}
        
        <tr>
            <td colspan="5">
                <input type="submit" id="del_cust_module" name="event" value="del_cust_module" />
            </td>
        </tr>
    </table>
</form>

{*footer*}{include file="1549377.tpl"}