Example #1
0
  document.forms[0].action = "../admin/theme_preview.php";
  document.forms[0].target = "secondary";
  document.forms[0].submit();
}

function editTheme()
{
  document.forms[0].action = "../admin/theme_new.php";
  document.forms[0].target = "";
  document.forms[0].submit();
}
/*]]>*///-->
</script>

<?php 
echo HTML::para(HTML::link(_("Preview Theme"), '#', null, array('onclick' => 'previewTheme(); return false;')) . ' | ' . HTML::link(_("Preload CSS file"), '../admin/theme_preload_css.php', isset($idTheme) ? array('id_theme' => $idTheme, 'copy' => 'Y') : null));
echo HTML::rule();
echo Form::errorMsg();
/**
 * New form
 */
echo HTML::start('form', array('method' => 'post', 'action' => '../admin/theme_new.php'));
require_once "../admin/theme_fields.php";
echo HTML::end('form');
echo Msg::hint('* ' . _("Note: The fields with * are required."));
echo HTML::para(HTML::link(_("Return"), $returnLocation));
/**
 * Destroy form values and errors
 */
Form::unsetSession();
require_once "../layout/footer.php";