<a href="#" onclick="return mm.add_menu_item_row()"><?php 
echo $this->_tpl_vars['LANG']['phrase_add_row'];
?>
</a>
      </p>

      <div id="menu_options" style="display:none">
        <?php 
echo smarty_function_pages_dropdown(array('menu_type' => 'admin', 'name_id' => "page_identifier_%%X%%", 'is_building_menu' => true), $this);
?>

      </div>

      <div id="form_dropdown_template" style="display:none">
        <?php 
echo smarty_function_forms_dropdown(array('name_id' => "custom_options_%%X%%", 'style' => "width:155px"), $this);
?>

      </div>

      <div id="client_dropdown_template" style="display:none">
        <?php 
echo smarty_function_clients_dropdown(array('name_id' => "custom_options_%%X%%", 'style' => "width:150px"), $this);
?>

      </div>

      <p>
        <input type="submit" name="update_admin_menu" value="<?php 
echo $this->_tpl_vars['LANG']['word_update'];
?>
        <a href="#" onclick="return mm.add_menu_item_row()"><?php 
echo $this->_tpl_vars['LANG']['phrase_add_row'];
?>
</a>
      </p>

      <div id="menu_options" class="hidden">
        <?php 
echo smarty_function_pages_dropdown(array('menu_type' => 'admin', 'name_id' => "page_identifier_%%X%%", 'is_building_menu' => true, 'class' => 'page_type'), $this);
?>

      </div>

      <div id="form_dropdown_template" class="hidden">
        <?php 
echo smarty_function_forms_dropdown(array('name_id' => "custom_options_%%X%%", 'include_blank_option' => true, 'blank_option_is_optgroup' => true), $this);
?>

      </div>

      <div id="client_dropdown_template" class="hidden">
        <?php 
echo smarty_function_clients_dropdown(array('name_id' => "custom_options_%%X%%", 'include_blank_option' => true, 'blank_option_is_optgroup' => true), $this);
?>

      </div>

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