<?php
/////////////////////////////////////////////
// Upload Template /////
////////////////////////////////////////////////////////////////////////
// Breeze Website Builder
// Copyright Silver Dolphin Solutions, LLC, Edward Lemmers, P.E.
// For licensing, see license.txt.
// Created: 11/13/2009	ELL
// Revised: 6/28/2013	ELL
// Implemented popup message class.
// 
//
	include ("check_session.php");
?>
<html>
<head>
<title>Breeze Website Builder</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="manager.css" type="text/css">
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<script type="text/javascript" src="js/mouse_position.js"></script>
<script type="text/javascript" src="js/popup_msg.js"></script>
<script type="text/javascript" src="js/browse_template.js"></script>
</head>

<body>

<form name="frmUploadTemplate" enctype="multipart/form-data" method="post" action="upload_template.php">
<table border="0" cellspacing="0" cellpadding="2" align="center">
  <tr>
    <td><b>Upload Template</b></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
  	<td align="center">Delete all pages:&nbsp;
    <input name="delete_all_pages" id="delete_all_pages" type="checkbox" value="1" onClick="DeleteConfirm();"></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
	<td align="center"><input name="template_file" type="file"></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td align="center"><input name="submit" type="submit" value="Upload" onClick="ShowUploadingMsg();"></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
  	<td colspan="2" height="100">&nbsp;</td>
  </tr>
  <tr>
  	<td align="center"><input type="button" name="Back" value="Back to Main Menu" onClick="window.location.href='main.php?mode=head';" /></td>
    <td valign="top" align="right" width="10%">
      <div id="help_button" onClick="OpenHelpWindow();">
        &nbsp;
      </div>
    </td>
  </tr>
</table>
</form>

<?php include("lib/popup_msg.html"); ?>

<script language="javascript" type="text/javascript">
	HidePopupMsg();
</script>

</body>
</html>