le dossier out passe dans le dossier app
[mtweb] / mw / app / out / default / views / login.php
diff --git a/mw/app/out/default/views/login.php b/mw/app/out/default/views/login.php
new file mode 100644 (file)
index 0000000..b245a06
--- /dev/null
@@ -0,0 +1,37 @@
+<div id="login_box">
+<?php if(!($user = $this->user())) : ?>
+<form id="login_form"
+      action="<?php echo $this->url("users/identification/login"); ?>"
+      method="post">
+  <div>
+    <input type="hidden" name="pass" value="" />
+    <input type="hidden" name="from" value="<?php echo isset($_POST["from"]) ? $_POST["from"] : urlencode($_SERVER["REQUEST_URI"]); ?>" />
+  </div>
+  <table>
+    <tr>
+      <th>login</th>
+      <td><input type="text" name="login" size="14" maxlength="25" /></td>
+    </tr>
+    <tr>
+      <th>pass</th>
+      <td><input type="password" name="password" size="14" maxlength="16" /></td>
+    </tr>
+    <tr>
+      <td colspan="2" align="right"><input type="submit" value="Login" onclick="prepare_password('<?php echo $_SESSION["id"]; ?>')" /></td>
+    </tr>
+  </table>
+  <div class="clear"><!-- --></div>
+</form>
+
+<?php else : ?>
+  Bienvenue <b><?php echo $user["login"]; ?></b>
+  <ul>
+    <li><a href="<?php echo $this->url("users/compte"); ?>">compte</a></li>
+    <li><a href="<?php echo $this->url("users/identification/logout"); ?>">deconnexion</a></li>
+<?php if($this->status_ok("admin")) : ?>
+    <li><a href="<?php echo $this->url("admin"); ?>">admin</a></li>
+<?php endif; ?>
+  </ul>
+<?php endif; ?>
+<div class="clear"><!-- --></div>
+</div>