themes/iphone/config.tpl
changeset 77 e5f1f45ea7e2
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/themes/iphone/config.tpl	Fri Jun 12 13:49:22 2009 -0400
@@ -0,0 +1,216 @@
+{**
+ * Template file for default Funky Monkey theme
+ * Web control interface script for Amarok
+ * Written by Dan Fuhry - 2008
+ *
+ * This program is Free Software; you can redistribute 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 details.
+ *}
+
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html>
+  <head>
+    <title>Greyhound: Configuration</title>
+    <!-- iPhone viewport hack from jailbreakme.com -->
+    <meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
+    
+    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
+    <link rel="stylesheet" type="text/css" href="/themes/{$theme|escape}/style.css" />
+    <link rel="favorite icon" type="image/ico" href="/favicon.ico" />
+    <script type="text/javascript" src="/scripts/config.js"></script>
+  </head>
+  <body>
+  
+    <div class="greylogo"></div>
+    <a class="backlink" href="/index">&laquo; Return to playlist</a>
+    <div class="clearer"></div>
+  
+    <form action="/config" method="post">
+    
+      <div class="tblholder" style="margin: 0 5px;">
+        <table border="0" cellspacing="1" cellpadding="4" style="width: 100%;">
+          <tr>
+            <th>Greyhound configuration</th>
+          </tr>
+          
+          {if $tried}
+          <tr>
+            <td class="row3">
+            {if $success}
+              <p class="success">{$success|nl2br}</p>
+            {else}
+              <p class="error">{$error|nl2br}</p>
+            {/if}
+            </td>
+          </tr>
+          {/if}
+          
+          {if $message}
+          <tr>
+            <td class="row3">
+              <p class="success">{$message|nl2br}</p>
+            </td>
+          </tr>
+          {/if}
+          
+          <!-- field - current config pass -->
+          {if $needpass}
+          <tr>
+            <td class="row2">
+              <b>Config password:</b>
+            </td>
+          </tr>
+          <tr>
+            <td class="row1">
+              <input type="password" name="configpass" />
+            </td>
+          </tr>
+          {/if}
+          
+          <!-- field - public IP -->
+          <tr>
+            <td class="row2">
+              <label><input type="checkbox"
+                     name="public"
+                     id="chk_public"
+                     {if $public}checked="checked"{/if}
+                />
+              Public IP
+              {if !$reboot_support}<span style="color: #ff5321;">Restart required</span>{/if}
+              </label>
+            </td>
+          </tr>
+          
+          <!-- field - IPv6 -->
+          <tr>
+            <td class="row1">
+              <label>
+              <input type="checkbox"
+                     name="ipv6"
+                     id="chk_ipv6"
+                     {if $ipv6}checked="checked"{/if}
+                />
+              IPv6 support
+              {if !$reboot_support}<span style="color: #ff5321;">Restart required</span>{/if}
+              </label>
+            </td>
+          </tr>
+          
+          <!-- field - allow multi-process -->
+          <tr>
+            <td class="row2">
+              <label>
+              <input type="checkbox"
+                     name="allow_fork"
+                     id="chk_allow_fork"
+                     {if $allow_fork}checked="checked"{/if}
+                />
+              Multi-process server mode
+              {if !$reboot_support}<span style="color: #ff5321;">Restart required</span>{/if}
+              </label>
+            </td>
+          </tr>
+          
+          <!-- field - allow control -->
+          <tr>
+            <td class="row1">
+              <label>
+                <input type="checkbox"
+                     name="allowcontrol"
+                     id="chk_allowcontrol"
+                     {if $allowcontrol}checked="checked"{/if}
+                />
+              Allow control of Amarok
+              </label>
+            </td>
+          </tr>
+          
+          <!-- section - diagnostics -->
+          
+          <tr>
+            <th>
+              Diagnostics
+            </th>
+          </tr>
+          
+          <!-- clear artwork -->
+          <tr>
+            <td class="row2" style="text-align: center;">
+              <a href="/config/rebuild/artwork" class="backlink inline">Clear artwork cache</a>
+            </td>
+          </tr>
+          
+          <tr>
+            <td class="row2" style="text-align: center;">
+              <a href="/config/rebuild/playlist" class="backlink inline">Refresh playlist</a>
+            </td>
+          </tr>
+          
+          <!-- section - auth config -->
+          <tr>
+            <th>
+              Authentication
+            </th>
+          </tr>
+          
+          <!-- field - enable auth -->
+          <tr>
+            <td class="row1">
+              <input type="checkbox"
+                     name="use_auth"
+                     id="chk_use_auth"
+                     {if $use_auth}checked="checked"{/if}
+                />
+              Login required for access
+            </td>
+          </tr>
+          
+          <!-- field - user list -->
+          <tr>
+            <td class="row2">
+              <b>User list:</b><br />
+              <small>Warning: passwords aren't encrypted</small><br />
+              <br />
+              {strip}
+              {foreach key=username item=password from=$users}
+                <script type="text/javascript">register_user('{$username|escape:'quotes'}');</script>
+              {/foreach}
+              {/strip}
+              <ul id="userlist">
+                <li><a href="#" onclick="add_user_form(); return false;">add user</a></li>
+              </ul>
+            </td>
+          </tr>
+          
+          <!-- field - config PW -->
+          <tr>
+            <td class="row1">
+              Change config password:<br />
+              <input type="password" name="newconfigpass" value="____________________" />
+            </td>
+          </tr>
+          
+          <!-- submit -->
+          <tr>
+            <th>
+              <input type="hidden" name="submit" value="true" />
+              <input type="submit" value="Save changes" />
+            </th>
+          </tr>
+          
+        </table>
+      </div>
+    
+    </form>
+    
+    <a class="backlink" href="/index">&laquo; Return to playlist</a>
+  
+    <div class="poweredby">
+      {include file="footer.tpl"}
+    </div>
+  </body>
+</html>
+