small test to check if ajax works on the pages, it still seems to work :)

--HG--
branch : quitta-gsoc-2013
This commit is contained in:
Quitta 2013-06-27 20:18:36 +02:00
parent 9a41affe9f
commit fe70ca714b
5 changed files with 29 additions and 22 deletions

View file

@ -236,26 +236,7 @@ class Users{
return $salt; return $salt;
} }
/*function create_Server_User($params)
{
try {
$hostname = 'localhost';
$port = '3306';
$dbname = 'nel';
$username = 'shard';
$password = '';
$dbh = new PDO("mysql:host=$hostname;port=$port;dbname=$dbname", $username, $password);
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$statement = $dbh->prepare("INSERT INTO user (Login, Password, Email) VALUES (?, ?, ?)");
$statement->execute($params);
return "success";
}
catch (PDOException $e) {
return "fail";
}
// createPermissions(array($login));
}*/
function createUser($values){ function createUser($values){
$libdb = $values['db']['lib']; $libdb = $values['db']['lib'];

View file

@ -3,6 +3,8 @@
[home] [home]
[userlist]
[login] [login]
login_info = "Please login with your Username and Password." login_info = "Please login with your Username and Password."
login_error_message = "The filled in username/password were not correct!" login_error_message = "The filled in username/password were not correct!"

View file

@ -118,7 +118,8 @@
<ul class="nav nav-tabs nav-stacked main-menu"> <ul class="nav nav-tabs nav-stacked main-menu">
{block name=menu}{/block} {block name=menu}{/block}
</ul> </ul>
<label id="for-is-ajax" class="hidden-tablet" for="is-ajax" style="visibility:hidden;"><div id="uniform-is-ajax" class="checker"><span class="checked"><input style="opacity: 0;" id="is-ajax" type="checkbox"></span></div> Ajax on menu</label> <label id="for-is-ajax" class="hidden-tablet" for="is-ajax"><input id="is-ajax" type="checkbox"> Ajax on menu</label>
<!--<label id="for-is-ajax" class="hidden-tablet" for="is-ajax" style="visibility:hidden;"><div id="uniform-is-ajax" class="checker"><span class="checked"><input style="opacity: 0;" id="is-ajax" type="checkbox"></span></div> Ajax on menu</label>--!>
</div><!--/.well --> </div><!--/.well -->
</div><!--/span--> </div><!--/span-->
<!-- left menu ends --> <!-- left menu ends -->

View file

@ -1,7 +1,8 @@
{extends file="layout.tpl"} {extends file="layout.tpl"}
{block name=menu} {block name=menu}
<li class="nav-header hidden-tablet">Main</li> <li class="nav-header hidden-tablet">Main</li>
<li style="margin-left: -2px;" class="active"><a class="ajax-link" href="?page=home"><i class="icon-home"></i><span class="hidden-tablet"> Dashboard</span></a></li> <li style="margin-left: -2px;" class="active"><a class="ajax-link" href="index.php"><i class="icon-home"></i><span class="hidden-tablet"> Dashboard</span></a></li>
<li style="margin-left: -2px;"><a class="ajax-link" href="index.php?page=userlist"><i class="icon-home"></i><span class="hidden-tablet"> Userlist</span></a></li>
<li class="nav-header hidden-tablet">Sample Section</li> <li class="nav-header hidden-tablet">Sample Section</li>
<li style="margin-left: -2px;"><a href="?page=login"><i class="icon-lock"></i><span class="hidden-tablet"> Login Page</span></a></li> <li style="margin-left: -2px;"><a href="?page=login"><i class="icon-lock"></i><span class="hidden-tablet"> Login Page</span></a></li>
<li style="margin-left: -2px;"><a href="?page=logout"><i class="icon-off"></i><span class="hidden-tablet"> Logout </span></a></li> <li style="margin-left: -2px;"><a href="?page=logout"><i class="icon-off"></i><span class="hidden-tablet"> Logout </span></a></li>

View file

@ -0,0 +1,22 @@
{block name=content}
<div class="row-fluid">
<div class="box span12">
<div class="box-header well">
<h2><i class="icon-info-sign"></i>User List</h2>
<div class="box-icon">
<a href="#" class="btn btn-round" onclick="javascript:show_help('intro');return false;"><i class="icon-info-sign"></i></a>
<a href="#" class="btn btn-setting btn-round"><i class="icon-cog"></i></a>
<a href="#" class="btn btn-minimize btn-round"><i class="icon-chevron-up"></i></a>
<a href="#" class="btn btn-close btn-round"><i class="icon-remove"></i></a>
</div>
</div>
<div class="box-content">
<p><strong>The shard/lib/web db user list</strong> You are about to see it here!</p>
<div class="clearfix"></div>
</div>
</div>
</div>
{/block}