1 <%doc>Copyright (C) 2010 HDE, Inc.</%doc>
2 <%inherit file="../include/common.part" />
4 <%! from karesansui.lib.template import view %>
6 if config['application.proxy.status'] == '1':
7 proxy_status_msg = _('Use')
9 proxy_status_msg = _("Do not use")
13 <script type="text/javascript">
20 if($(":input[name='proxy_status']:checked").val() == '1'){
21 check = check_domainname(
22 $("#proxy_server_name"),
23 CHECK_EMPTY | CHECK_VALID,
24 "${_('Proxy Server')}",
30 $("#proxy_server_port"),
31 CHECK_EMPTY | CHECK_VALID | CHECK_MIN | CHECK_MAX,
32 "${_('Proxy Port Number')}",
36 check = check_username(
37 $("#proxy_server_user"),
38 CHECK_VALID | CHECK_ONLYSPACE,
39 "${_('Proxy User Name')}",
43 check = check_password(
44 $("#proxy_server_password"),
45 $("#proxy_server_password"),
47 "${_('Proxy Password')}",
54 show_alert_msg("${_('Please input correct value.')}\n" + ERROR_MSG);
60 $(document).ready(function(){
63 "${ctx.homepath}${ctx.path}",
64 "#setting_proxy :input",
69 helptip("#proxy_status_help",
70 "${_('Proxy Status')}",
73 Karesansuiがインターネットへアクセスする際にプロキシを
76 "${_("Setting used proxy for internet access")}");
78 helptip("#proxy_server_help",
79 "${_('Proxy Server')}",
84 "${_("Specify the host name of the proxy server to connect.")}");
86 helptip("#proxy_port_help",
87 "${_('Port Number')}",
92 "${_("Specify the port number of the proxy server to connect.")}");
94 helptip("#proxy_user_help",
98 プロキシサーバーへアクセスするためのユーザ名を設定します。
100 "${_("Input the user name to use for proxy authentication.")}");
102 helptip("#proxy_password_help",
106 プロキシサーバーへアクセスするためのパスワードを設定します。
108 "${_("Input the password to use for proxy authentication.")}");
114 <div id="setting_proxy">
115 <form method="post" action="" id="setting_proxy_form" name="setting_proxy_form">
116 <div class="grayout-head">
117 <span class="grayout-title">
118 <a href="#" id="server" class="path-a">
119 <img src="${ctx.homepath}/static/images/settings-title.gif" alt="">
120 ${_('Edit Proxy Settings')}
126 <div class="grayout-contents">
127 <div class="grayout-param">${_('Proxy Status')}<span id="proxy_status_help"/></div>
128 <div class="grayout-value grayout-form">
129 <input type="radio" name="proxy_status" value="1" id="proxy_enable" ${enable}
130 onClick="showswitch_proxy_setting('1')" /> ${_('Use')}
131 <input type="radio" name="proxy_status" value="0" id="proxy_disable" ${disable}
132 onClick="showswitch_proxy_setting('0')" /> ${_('Not use')}
135 <div class="grayout-param">${_('Proxy Server')}<span id="proxy_server_help"/></div>
136 <div class="grayout-value grayout-form">
137 <input type="text" name="proxy_server" value="${config['application.proxy.server']}" id="proxy_server_name" size="40" maxlength="128" />
140 <div class="grayout-param">${_('Proxy Port Number')}<span id="proxy_port_help"/></div>
141 <div class="grayout-value grayout-form">
142 <input type="text" name="proxy_port" value="${config['application.proxy.port']}" id="proxy_server_port" size="7" maxlength="5" />
145 <div class="grayout-param">${_('Proxy User Name')}<span id="proxy_user_help"/></div>
146 <div class="grayout-value grayout-form">
147 <input type="text" name="proxy_user" value="${config['application.proxy.user']}" id="proxy_server_user" size="40" maxlength="31"/>
150 <div class="grayout-param">${_('Proxy Password')}<span id="proxy_password_help"/></div>
151 <div class="grayout-value grayout-form">
152 <input type="password" name="proxy_password" value="${config['application.proxy.password']}" id="proxy_server_password" size="40" />
158 <div class="grayout-footer">
159 <input type="hidden" name="_method" id="_method" />
160 <a href="#" name="edit_button" id="edit_button" class="button">
161 <span class="button-left">
162 </span><span class="button-right">${_('Edit')}</span>
164 <br style="clear: both;"/>