зеркало из https://github.com/mozilla/pjs.git
Template work, finished everything but the SQL inserts.
This commit is contained in:
Родитель
895af679a9
Коммит
138e4d1ba8
|
@ -0,0 +1,27 @@
|
|||
</div><!-- end #content div -->
|
||||
|
||||
<hr class="hide"/>
|
||||
|
||||
<div id="footer">
|
||||
<div id="footer-contents">
|
||||
<ul id="footer-menu">
|
||||
<li><a href="http://mozilla.com/about/">About Us</a></li>
|
||||
<li><a href="http://mozilla.com/privacy-policy.html">Privacy Policy</a></li>
|
||||
<li><a href="http://mozilla.com/about/legal.html">Legal Notices</a></li>
|
||||
</ul>
|
||||
<p class="small-print">International Affiliates:
|
||||
<a href="http://www.mozilla-europe.org/">Mozilla Europe</a>
|
||||
<a href="http://www.mozilla-japan.org/">Mozilla Japan</a>
|
||||
<a href="http://www.mozilla.org.cn/">Mozilla China</a>
|
||||
</p>
|
||||
<p class="small-print">Mozilla Corporation is a wholly-owned subsidiary of the <a href="http://www.mozillafoundation.org">Mozilla Foundation</a>.</p>
|
||||
<p class="small-print">Copyright © 2005–2006 Mozilla Corporation. All rights reserved.</p>
|
||||
<ul class="site-tools">
|
||||
<li><a href="http://cvs-www.mozilla.org/webtools/bonsai/cvslog.cgi?file=mozilla-com/src/index.html&rev=&root=/cvsroot/">Document History</a></li>
|
||||
<li><a href="http://doctor-test.mozilla.org/doctor.cgi?action=edit&file=mozilla-com%2Fsrc%2Findex.html">Edit</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -0,0 +1,32 @@
|
|||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html lang="en" dir="ltr">
|
||||
<head>
|
||||
<title>Uninstall Survey | Mozilla Corporation</title>
|
||||
<link rel="stylesheet" type="text/css" href="<?=WEB_PATH?>/css/base/template.css" media="screen"/>
|
||||
<link rel="stylesheet" type="text/css" href="<?=WEB_PATH?>/css/rustico/template.css" title="Cavendish" media="screen"/>
|
||||
<link rel="stylesheet" type="text/css" href="<?=WEB_PATH?>/css/rustico/content.css" title="Cavendish" media="screen"/>
|
||||
<link rel="stylesheet" type="text/css" href="<?=WEB_PATH?>/css/survey.css" media="screen"/>
|
||||
</head>
|
||||
<body id="mozilla-com">
|
||||
<div id="header">
|
||||
<div>
|
||||
<h1><a href="<?=WEB_PATH?>/" title="Return to home page" accesskey="1"><img src="http://mozilla.com/images/template/moz-com-logo.png" height="38" width="89" alt="Mozilla Corporation"></a></h1>
|
||||
<ul>
|
||||
<li id="menu-products"><a href="/products/">Products</a></li>
|
||||
<li id="menu-extensions"><a href="/extensions/">Extensions</a></li>
|
||||
<li id="menu-support"><a href="/support/">Support</a></li>
|
||||
<li id="menu-developers"><a href="/developers/">Developers</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="breadcrumbs"><div><span><a href="http://mozilla.com/">Home</a></span> » <span>Uninstall Survey</span></div></div>
|
||||
|
||||
<!-- Sidebar goes here. We will have none by default for now;
|
||||
The site should be navigatable without a sidebar, and we
|
||||
want to encourage people to build up the basics with this
|
||||
in mind. -->
|
||||
|
||||
<hr class="hide"/>
|
||||
|
||||
<div id="content">
|
|
@ -0,0 +1,22 @@
|
|||
.survey {
|
||||
list-style-type: none;
|
||||
margin: 0 .5em;
|
||||
padding: .5em 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
margin: .5em 0;
|
||||
}
|
||||
|
||||
.submit {
|
||||
background-color: #9f9;
|
||||
border: 2px #333 outset;
|
||||
font-weight: bold;
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.submit:hover {
|
||||
background-color: #fff;
|
||||
border: 2px #333 inset;
|
||||
cursor: pointer;
|
||||
}
|
|
@ -7,12 +7,20 @@
|
|||
$intends = $app->getIntends();
|
||||
$issues = $app->getIssues();
|
||||
|
||||
if (empty($_POST['submit'])) {
|
||||
echo '<form action="./" method="post">';
|
||||
if (!empty($_POST['submit'])) {
|
||||
// Do the inserts and stuff.
|
||||
|
||||
// Redirect to thank you page.
|
||||
header('Location: http://'.$_SERVER['HTTP_HOST'].WEB_PATH.'/thanks.php');
|
||||
exit;
|
||||
|
||||
} else {
|
||||
require_once(HEADER);
|
||||
echo '<form action="./" method="post" id="surveyform">';
|
||||
|
||||
// Create intend block.
|
||||
echo '<h2>How did you intend to use Firefox when you installed it?</h2>';
|
||||
echo '<ul>';
|
||||
echo '<ul class="survey">';
|
||||
foreach ($intends as $id=>$text) {
|
||||
echo '<li><input type="radio" name="intend_id" id="int'.$id.'" value="'.$id.'" /> <label for="int'.$id.'">'.$text.'</label></li>';
|
||||
}
|
||||
|
@ -21,17 +29,18 @@ echo '</ul>';
|
|||
|
||||
// Create issue block.
|
||||
echo '<h2>What issues, if any, did you have? (select all that apply)</h2>';
|
||||
echo '<ul>';
|
||||
echo '<ul class="survey">';
|
||||
foreach ($issues as $id=>$text) {
|
||||
echo '<li><input type="checkbox" name="issue_id[]" id="iss'.$id.'" value="'.$id.'" /> <label for="iss'.$id.'">'.$text.'</label></li>';
|
||||
echo '<li><input type="checkbox" name="issue_id[]" id="iss'.$id.'" value="'.$id.'" /> <label for="isstext'.$id.'" onclick="getElementById(\'iss'.$id.'\').checked=true;">'.$text.'</label> <input type="text" id="isstext'.$id.'" name="'.$id.'_text"/></li>';
|
||||
}
|
||||
echo '</ul>';
|
||||
|
||||
echo '<h2>Other comments or suggestions?</h2>';
|
||||
echo '<textarea name="comments"></textarea>';
|
||||
echo '<textarea name="comments" rows="11" cols="80"></textarea>';
|
||||
|
||||
|
||||
echo '<div><input name="submit" type="submit" class="submit" value="Submit"/></div>';
|
||||
echo '<div><input name="submit" type="submit" class="submit" value="Submit »"/></div>';
|
||||
echo '</form>';
|
||||
require_once(FOOTER);
|
||||
}
|
||||
?>
|
||||
|
|
Загрузка…
Ссылка в новой задаче