summaryrefslogtreecommitdiff
path: root/installer/pages/options.tmpl
blob: 15663416d5801a4afd51b3ed641afec13dbc56a6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!--
/*
 (c) Copyright 2001-2007 Hewlett-Packard Development Company, L.P.

 This program is free software; you can redistribute it and/or modify
 it under the terms of the GNU General Public License as published by
 the Free Software Foundation; either version 2 of the License, or
 (at your option) any later version.

 This program is distributed in the hope that it will be useful,
 but WITHOUT ANY WARRANTY; without even the implied warranty of
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 GNU General Public License for more details.

 You should have received a copy of the GNU General Public License
 along with this program; if not, write to the Free Software
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA

 Author: Pete Parks 
*/ 
-->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta http-equiv="PRAGMA" content="NO-CACHE" />
    <link rel="stylesheet" type="text/css" href="styles/hplip.css" />
    <script type="text/javascript" src="scripts/hplip.js"></script>
    <script type="text/javascript" src="scripts/misc_code.js"></script>
    <script type="text/javascript">
    <!--
    function installOptions(id) {
        var string = "";
        var checkboxes = document.getElementsByName(id);
        var len = checkboxes.length;
        for (i = 0; i < checkboxes.length; i++) {
            string += checkboxes[i].value;
            string += "=";
            string += checkboxes[i].checked  ? 1 : 0;
            if((i + 1) < checkboxes.length) {
                string += "&";
            }
        }
        setNextPath(string);
    };
    
    function setNextPath(str) {
        var path = "options_controller?" + str;
        setLocationRef(path);
    };

    if(document.addEventListener){ 
        document.addEventListener("keyup", captureKey,false);
    }else{ 
        document.attachEvent("onkeyup", captureKey);
    };

    function captureKey(events){
        if("undefined" != (typeof window.event)){ 
            events = window.event;
        }
        if("keyup" == events.type){
            checkKey(events.keyCode);
        }
    };

    function checkKey(keyID)
    {
       switch(keyID)
       {
          case 13:
            indexClickActions( "next_button", "options_controller?network=1&gui=1&fax=1&scan=1&parallel=1&docs=1");
            break;
       }
    };
    -->
    </script>
<title>$installer_title</title>
</head>

<body>
<!-- Header Div -->    
<div id="header_box" class="background_box">
  <div class='header_title_class'>
    <div id='hp_blue_logo'><img src='images/hplogo.png' alt=''/></div>
    <div id='header_title'>$header_string</div>
    <div id='header_title2'>$header_string</div>
    <div id='header_subtitle'>$sub_header_string</div>
    <div id='header_subtitle2'>$sub_header_string</div>
    <div id='tux_logo'><img src='images/tux.png' alt=''/></div>
  </div>
</div>

<!-- Body Div -->
<div class="body_content">
  
  <div id="message_title">$options_message_title</div>
  
  <div id="message_body">
      <div id="checkboxes">
        #for $opt in $components[$selected_component][1] 
            #if not $options[$opt][0] 
                <input type="checkbox" name="network" onchange="installOptions('network');" checked="checked" value="$opt" /><a>&nbsp;&nbsp;&nbsp;$options[$opt][1]</a><br/>
            #end if 
        #end for
      </div>
    </div>
  
  <div id="message_footer"></div>
</div>

<!-- Buttons Div -->
<div class="button_options">
  
  <div id="quit_button" OnSelectStart='return false;' onClick='todoOnQuit("quit");' >
    <img src="../images/button1.png" width="100" height="35">
    <div id="quitHiliteText">$quit_button</div>
    <div id="quitText">$quit_button</div>
  </div>

  <div id="previous_button" OnSelectStart='return false;' onClick='indexClickActions( "previous_button", "previous");' >
    <img src="../images/button1.png" width="100" height="35">
    <div id="previousHiliteText">$previous_button</div>
    <div id="previousText">$previous_button</div>
  </div>

  <div id="next_button" OnSelectStart='return false;' onClick='indexClickActions( "next_button", "options_controller?network=1&gui=1&fax=1&scan=1&parallel=1&docs=1");' >
    <img src="../images/button1.png" width="100" height="35">
    <div id="nextHiliteText">$next_button</div>
    <div id="nextText">$next_button</div>
  </div>
  
</body>
</html>