</div>

    <?php 
echo smarty_function_ft_include(array('file' => 'messages.tpl'), $this);
?>


    <div class="pad_bottom_large">
      <?php 
echo $this->_tpl_vars['LANG']['text_edit_admin_menu_page'];
?>

    </div>

    <?php 
echo smarty_function_template_hook(array('location' => 'admin_settings_admin_menu_top'), $this);
?>


    <form action="<?php 
echo $this->_tpl_vars['same_page'];
?>
" method="post" onsubmit="return mm.update_admin_menu_submit(this)">
      <input type="hidden" name="page" value="edit_admin_menu" />
      <input type="hidden" name="menu_id" value="<?php 
echo $this->_tpl_vars['menu']['menu_id'];
?>
" />
      <input type="hidden" name="num_rows" id="num_rows" value="<?php 
echo count($this->_tpl_vars['menu']['menu_items']);
?>
      <td class="pad_left"><?php 
echo $this->_tpl_vars['LANG']['phrase_new_password'];
?>
</td>
      <td><input type="password" name="password" value="" size="20" autocomplete="off" /></td>
    </tr>
    <tr>
      <td class="pad_left" width="180"><?php 
echo $this->_tpl_vars['LANG']['phrase_new_password_reenter'];
?>
</td>
      <td><input type="password" name="password_2" value="" size="20" autocomplete="off" /></td>
    </tr>
    </table>

    <?php 
echo smarty_function_template_hook(array('location' => 'admin_account_bottom'), $this);
?>


    <p>
      <input type="submit" value="<?php 
echo $this->_tpl_vars['LANG']['word_update'];
?>
" />
    </p>

  </form>

<?php 
echo smarty_function_ft_include(array('file' => 'footer.tpl'), $this);
                <?php 
            if (!$this->_tpl_vars['theme_info']['cache_folder_writable']) {
                ?>
disabled<?php 
            }
            ?>
 />
            </td>
          </tr>
        <?php 
        }
    }
    unset($_from);
    ?>
        <?php 
    echo smarty_function_template_hook(array('location' => 'admin_settings_themes_bottom'), $this);
    ?>

        </table>

      <?php 
}
?>

      <p>
        <input type="submit" name="update" value="<?php 
echo is_array($_tmp = $this->_tpl_vars['LANG']['word_update']) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp);
?>
" />
        <input type="submit" name="refresh_theme_list" class="blue" value="<?php 
echo is_array($_tmp = $this->_tpl_vars['LANG']['phrase_refresh_theme_list']) ? $this->_run_mod_handler('upper', true, $_tmp) : smarty_modifier_upper($_tmp);
              <option value="<?php 
            echo $this->_tpl_vars['list_info']['list_id'];
            ?>
"><?php 
            echo $this->_tpl_vars['list_info']['option_list_name'];
            ?>
</option>
            <?php 
        }
    }
    unset($_from);
    ?>
          </optgroup>
        </select>
      <?php 
}
?>
      <input type="submit" name="add_option_list" value="<?php 
echo $this->_tpl_vars['LANG']['phrase_create_new_option_list_rightarrow'];
?>
" />
      <?php 
echo smarty_function_template_hook(array('location' => 'option_list_button_row'), $this);
?>

    </p>

  </form>

<?php 
echo smarty_function_ft_include(array('file' => 'footer.tpl'), $this);
    echo smarty_function_eval(array('var' => $this->_tpl_vars['form_info']['add_submission_button_label']), $this);
    ?>
" onclick="window.location='submissions.php?form_id=<?php 
    echo $this->_tpl_vars['form_id'];
    ?>
&add_submission'" />
        <?php 
}
?>
      </div>
    </form>

    <?php 
if (count($this->_tpl_vars['tabs']) > 0) {
    ?>
      <?php 
    echo smarty_function_ft_include(array('file' => 'tabset_close.tpl'), $this);
    ?>

    <?php 
}
?>

    <?php 
echo smarty_function_template_hook(array('location' => 'admin_edit_submission_bottom'), $this);
?>

  </div>

<?php 
echo smarty_function_ft_include(array('file' => 'footer.tpl'), $this);
    }
}
unset($_from);
echo '</ul></div><div class="scroll-pane ui-corner-all" style="border: 0px; margin-left: 239px; margin-top: -2px"><div class="scroll-bar-wrap ui-widget-content ui-corner-bottom" style="border: 1px solid #aaaaaa; border-top: 0px; margin: 0px; height:20px"><div class="scroll-bar-bottom"></div></div></div>';
?>


    <div class="clear"></div>

    <div class="margin_top_large">
      <input type="submit" name="update_fields" value="<?php 
echo $this->_tpl_vars['LANG']['word_update'];
?>
" />
      <?php 
echo smarty_function_template_hook(array('location' => 'admin_edit_form_fields_tab_button_row'), $this);
?>

    </div>
  </form>

  <form onsubmit="return fields_ns.add_fields()">
    <table cellspacing="0" cellpadding="0" border="0" width="100%" style="margin-top: -23px">
    <tr>
      <td align="right">
        <?php 
echo $this->_tpl_vars['LANG']['word_add'];
?>
 <input type="text" id="add_num_fields" size="3" value="1" /> <?php 
echo $this->_tpl_vars['LANG']['word_field_sp'];
?>
}
?>
">
      <a href="#" class="add_group_link"><?php 
echo $this->_tpl_vars['LANG']['phrase_add_new_group_rightarrow'];
?>
</a>
    </div>

    <div style="float: left" class="margin_top_large">
      <input type="submit" name="update" value="<?php 
echo $this->_tpl_vars['LANG']['word_update'];
?>
" />
      <?php 
echo smarty_function_template_hook(array('location' => 'edit_option_list_main'), $this);
?>

    </div>
  </form>

  <div class="margin_top right add_ungrouped_rows<?php 
if ($this->_tpl_vars['list_info']['is_grouped'] == 'yes') {
    ?>
 hidden<?php 
}
?>
">
    <form action="" method="post">
      <?php 
echo $this->_tpl_vars['LANG']['word_add'];
  <?php 
echo $this->_tpl_vars['head_string'];
?>

  <?php 
echo $this->_tpl_vars['head_js'];
?>

  <?php 
echo $this->_tpl_vars['head_css'];
?>


  <?php 
echo smarty_function_template_hook(array('location' => 'head_bottom'), $this);
?>

</head>
<body>

<div id="container">

  <div id="header">

    <?php 
if ($this->_tpl_vars['SESSION']['account']['is_logged_in']) {
    ?>
      <div style="float:right">
        <table cellspacing="0" cellpadding="0" height="25">
        <tr>
	            <div class="bold"><?php 
    echo $this->_tpl_vars['LANG']['word_external'];
    ?>
</div>
	            <div class="medium_grey">
	              <?php 
    echo $this->_tpl_vars['LANG']['text_external_form_desc'];
    ?>

	            </div>
	          </div>
	        </td>
	      </tr>
	    </table>
	    <?php 
    echo smarty_function_template_hook(array('location' => 'add_form_page'), $this);
    ?>

	  </form>

	  <div id="add_external_form_dialog" class="hidden">
	    <table width="100%">
	    <tr>
	      <td valign="top" width="65"><span class="margin_top_large popup_icon popup_type_info"></span></td>
	      <td>
	        <p>
	          <?php 
    echo $this->_tpl_vars['LANG']['text_add_form_step_1_text_1'];
    ?>

	        </p>
            ?>
        </table></div>
      <?php 
        }
        ?>

    <?php 
    }
    ?>
    </form>

  <?php 
}
?>

  <?php 
echo smarty_function_template_hook(array('location' => 'admin_list_clients_bottom'), $this);
?>


  <form method="post" action="add.php">
    <p>
      <input type="submit" value="<?php 
echo $this->_tpl_vars['LANG']['phrase_add_client'];
?>
" />
    </p>
  </form>

<?php 
echo smarty_function_ft_include(array('file' => "footer.tpl"), $this);
                  </td>
                </tr>
                <tr>
                  <td valign="top"><?php 
echo $this->_tpl_vars['LANG']['phrase_limit_email_content'];
?>
</td>
                  <td>
                    <?php 
echo smarty_function_views_dropdown(array('name_id' => 'limit_email_content_to_fields_in_view', 'form_id' => $this->_tpl_vars['form_id'], 'show_empty_label' => true, 'selected' => $this->_tpl_vars['template_info']['limit_email_content_to_fields_in_view']), $this);
?>

                    <div class="medium_grey">
                      <?php 
echo $this->_tpl_vars['LANG']['text_limit_email_content_desc'];
?>

                    </div>
                  </td>
                </tr>
                </table>

                <?php 
echo smarty_function_template_hook(array('location' => 'edit_template_tab1_advanced'), $this);
?>


              </div>
            </div>
        echo $this->_tpl_vars['LANG']['word_email'];
        ?>
</option>
                <option value="settings__company_name"  <?php 
        if ($this->_tpl_vars['filter_values'] == 'settings__company_name') {
            ?>
selected<?php 
        }
        ?>
><?php 
        echo $this->_tpl_vars['LANG']['phrase_company_name'];
        ?>
</option>
              </optgroup>
              <?php 
        echo smarty_function_template_hook(array('location' => 'admin_edit_view_client_map_filter_dropdown'), $this);
        ?>

            </select>
          </td>
          <td class="del"><a href="#" onclick="return view_ns.delete_filter_row('client_map', <?php 
        echo $this->_tpl_vars['count'];
        ?>
)"></a></td>
        </tr>
        <?php 
    }
}
unset($_from);
?>
        </tbody>
  <?php 
} elseif ($this->_tpl_vars['page'] == 'database') {
    ?>
    <?php 
    echo smarty_function_ft_include(array('file' => 'admin/forms/tab_database.tpl'), $this);
    ?>

  <?php 
} else {
    ?>
    <?php 
    if (is_array($_tmp = 'admin_edit_form_content') ? $this->_run_mod_handler('hook_call_defined', true, $_tmp) : smarty_modifier_hook_call_defined($_tmp)) {
        ?>
      <?php 
        echo smarty_function_template_hook(array('location' => 'admin_edit_form_content'), $this);
        ?>

    <?php 
    } else {
        ?>
      <?php 
        echo smarty_function_ft_include(array('file' => 'admin/forms/tab_main.tpl'), $this);
        ?>

    <?php 
    }
    ?>
  <?php 
}
?>