Location: PHPKode > scripts > Impleo Music Collection Script > impleo/templates/settings.tpl
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
  <title>Impleo Music Collection - Settings</title>
  <link href="style.css" rel="stylesheet" type="text/css" media="screen">
</head>
<body>
<div id="container">
  <div id="header">
    <h1>Impleo Music Collection</h1>
  </div>
  <div id="menu">
    <ul>
      <li><a href="./add-record.php">Add record</a></li>
      <li><a href="./edit-records-list.php">Edit/delete records</a></li>
      <li><a href="./detail-types.php">Detail types</a></li>
      <li><a href="./settings.php">Settings</a></li>
      <li><a href="./../">Show</a></li>
    </ul>
  </div>
  <div id="content">
    <h2>Settings</h2>
{if $updatePosted}
  {if $hasError}
  <p class="error">{$errorMsg}</p>
  {else}
  <p class="success">General settings updated.</p>
  {/if}
{/if}
{if $xmlImportPosted}
  {if $xmlImportHasError}
  <p class="error">XML file couldn't be parsed.</p>
  {else}
  <p class="success">XML import succeeded!<br>{$xmlImportResult.added} item(s) added<br>{$xmlImportResult.updated} item(s) updated</p>
  {/if}
{/if}
{if $changePosted}
  {if $changeError}
  <p class="error">{$changeMessage}</p>
  {else}
  <p class="success">Password changed!</p>
  {/if}
{/if}
    <p>Fields marked with a <span class="star">*</span> are mandatory.</p>
    <form method="post" action="./settings.php" name="general">
    <fieldset>
      <legend>General</legend>
      <p>
        <label for="name">Name of collection:</label> <span class="star">*</span><br>
        <input type="text" id="name" name="name" tabindex="1" size="50" maxlength="100" value="{$settings.name}" required>
      </p>
      <p>
        Records per page:
        <select name="records_per_page" size="1" tabindex="2">
          {foreach from=$pageLimitOptions item=opt}
          <option value="{$opt}"{if $opt eq $settings.records_per_page} selected{/if}>{if $opt eq 0}Show all{else}{$opt}{/if}</option>
          {/foreach}
        </select>
      </p>
      <p>
        <label for="link">Links to record pages in table:</label> <input type="checkbox" value="link" id="link" name="link" tabindex="3"{if $settings.link eq '1'} checked{/if}>
      </p>
      <p>
        <label for="imgx">Image width (in pixels):</label>
        <input type="text" name="image_width" id="imgx" value="{$settings.image_width}" maxlength="3" size="5" tabindex="4">
      </p>
      <p><input type="submit" name="update" value="Update" tabindex="5"></p>
    </fieldset>
    </form>
    <form method="post" action="./settings.php" name="importexport" enctype="multipart/form-data">
    <fieldset>
      <legend>Import/Export</legend>
      <p>
        <label for="xmlimport">Import XML:</label><br>
        <input type="file" name="xmlimport" id="xmlimport">
        <input type="checkbox" name="popnu"> Import from pop.nu <img src="../images/information.png" alt="Info" title="If you import from pop.nu make sure the XML file contains artist, title and release year. In order to import format, label, edition, catalog no. etc., these must be detail types in Impleo."><br>
        <input type="submit" name="import" value="Import">
      </p>
      <p><input type="submit" name="xml" value="Export to XML"></p>
    </fieldset>
    </form>
    <form method="post" action="./settings.php" name="passwordchange">
      <fieldset>
        <legend>Change password</legend>
        <p>
          <label for="currentpassword">Current password:</label> <span class="star">*</span><br>
          <input type="password" id="currentpassword" name="currentpassword" size="50" maxlength="100" required>
        </p>
        <p>
          <label for="newpassword">New password</label> <span class="star">*</span><br>
          <input type="password" id="newpassword" name="newpassword" size="50" maxlength="100" required>
        </p>
        <p><input type="submit" name="updatepassword" value="Change password"></p>
      </fieldset>
    </form>
  </div>
  <div id="bottom">
    <p class="author"><a href="http://sappy.dk/impleo/">Impleo Music Collection 2.0</a></p>
    <p class="logout"><a href="./?logout">Log out</a></p>
  </div>
</div>
</body>
</html>
Return current item: Impleo Music Collection Script