Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 730

Přidáno uživatelem Ondřej Fibich před asi 14 roky(ů)

Opraven bug v prefixu telefoniho cisla v Phone_invoice_user_Controller.
Prihlasovaci stranka byla optimalizována pro pouziti na mobilnich telefonech. (Testovano pro Operu Mini)
CSS prihlasovaci stranky bylo vylepseno pro IE 7<=.

Zobrazit rozdíly:

freenetis/trunk/kohana/media/css/installation.css
background:url(../images/logo_freenetis2.jpg);
width:229px;
height:49px;
margin: 25px;
/*margin: 25px;*/
}
#main h1 em {
font-style: normal;
color: #f15900;
}
#main h1 span {
visibility:hidden;
}
......
}
.submit, #submit {
float: left;
cursor: pointer;
margin: 30px 0px;
padding: 6px 12px;
font-weight: bold;
background-color: white;
border: 1px solid #CCC;
border-bottom-left-radius: 15px 15px;
border-bottom-right-radius: 15px 15px;
border-top-left-radius: 15px 15px;
border-top-right-radius: 15px 15px;
border-radius: 15px;
-moz-border-radius: 15px;
}
textarea {
......
width:120px;
height:120px;
background: url(../images/lock.png) top left no-repeat;
margin-top: 16px;
margin: 40px 0 0 20px;
}
div#login_div {
float: right;
margin-left: 20px;
/* margin-left: 20px;*/
}
p.registration {
freenetis/trunk/kohana/media/css/m.login.css
/* FreeNetIS - CSS Document
*
* Author: Ondřej Fibich
* Purpose: Stylesheet of login page for mobile devices
* Tested: Opera Mini 4.2 and Opera Mini 5
* See: http://dev.opera.com/articles/view/evolving-the-internet-on-your-phone-des/
*/
* {
margin: 0px;
padding: 0px;
border: 0px;
font-family: Verdana, Arial, Helvetica, sans-serif;
}
html {
width: 99%;
margin: 0 auto;
}
body {
color: #5B5B5B;
background-color: white;
}
#main {
text-align:left;
width:auto ! important;
}
#main h1 {
display: inline-block;
margin: 5px 2px 5px 2px;
padding-left: 20px;
background: left center url(../images/favicon_16x16.png) no-repeat;
font-size: 200%;
color: black;
}
#main h1 em {
font-style: normal;
color: #f15900;
}
#main h2 {
margin: 5px 0 5px 0;
font-size:150%;
}
#main #main-padd {
border: 1px #CCCCCC solid;
position: relative;
padding-bottom: 2px;
clear: both;
}
#lock {
display: none;
}
.clear {
clear:both;
}
input {
width: 75%;
font-size: 15px;
padding: 2px;
line-height: 20px;
border: 1px solid #CCC;
}
table.form th {
padding: 6px 2px 6px 2px;
font-weight: bold;
font-size: 13px;
}
table.form td {
padding: 6px 0 6px 0;
}
table.form tr {
background-color: #F1F1F1;
}
.submit, #submit {
width: auto;
cursor: pointer;
margin: 30px 0;
padding: 6px 12px;
font-weight: bold;
}
div.flags {
margin: 5px;
text-align: right;
float: right;
}
th.group {
text-align: center;
background-color: white;
}
p.error {
color: red;
}
div#login_div {
margin: 0 3px;
}
p.registration {
float: right;
margin: 15px 15px 0 0;
}
div#error {
padding: 5px;
margin: 5px 0 5px 0;
}
div#error strong {
color: a#CC0000;
}
freenetis/trunk/kohana/application/models/phone_invoice_user.php
*/
public function get_user_id($phone_number)
{
$prefix = Settings::get("default_phone_prefix");
$query = self::$db->query(
"SELECT id FROM users WHERE phone = ? OR phone = ?;",
array($phone_number, substr($phone_number, 4))
array($phone_number, substr($phone_number, mb_strlen($prefix)))
);
if ($query->count() > 0)
......
// type 21 is phone number
$query = self::$db->query(
"SELECT user_id FROM contacts WHERE type = 21 AND (value = ? OR value = ?);",
array($phone_number, substr($phone_number, 4))
array($phone_number, substr($phone_number, mb_strlen($prefix)))
);
return ($query->count() > 0) ? $query->current()->user_id : 0;
freenetis/trunk/kohana/application/views/login.php
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $title ?> | <?php echo $this->settings->get('title') ?></title>
<?php echo html::stylesheet('media/css/installation.css') ?>
<?php echo html::stylesheet('media/css/installation.css', 'screen and (min-device-width: 481px)') ?>
<!--[if IE]>
<?php echo html::stylesheet('media/css/installation.css', 'screen') ?>
<![endif]-->
<?php echo html::stylesheet('media/css/m.login.css', 'handheld, only screen and (max-device-width: 480px)') ?>
</head>
<body onload="document.getElementById('username').focus();">
<div id="main" style="width: 579px;">
<h1><span>FreeNetIS</span></h1>
<h1><span>Free<em>Net</em>IS</span></h1>
<div class="flags">
<?php echo special::create_language_flags(array('cs' => 'Česky', 'en' => 'English')) ?>
</div>
</div>
<div id="main-padd">
<div id="lock">&nbsp;</div>
<div id="content" style="width: auto;">
<div id="login_div">
<h2><?php echo url_lang::lang('texts.login to') ?></h2>
......
?>
<?php echo form::close() ?>
</div>
<div id="lock">&nbsp;</div>
<div class="clear"></div>
</div>
<div class="clear"></div>

Také k dispozici: Unified diff