Skip to content

Commit

Permalink
refs #1604 : Added guestbook view / login-out feature to new mobile …
Browse files Browse the repository at this point in the history
…page.
  • Loading branch information
inureyes committed Feb 24, 2012
1 parent fa6eae9 commit e560953
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 14 deletions.
5 changes: 5 additions & 0 deletions interface/i/guestbook/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
define('__TEXTCUBE_IPHONE__', true);
require ROOT . '/library/preprocessor.php';
requireView('iphoneView');
printMobileHTMLHeader();
printMobileHTMLMenu('','guestbook');
if(isset($suri['id'])) $page = $suri['id'];
else $page = 1;
?>
Expand All @@ -18,3 +20,6 @@
?>
</fieldset>
</div>
<?php
printMobileHTMLFooter();
?>
25 changes: 16 additions & 9 deletions interface/i/login/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
);
define('__TEXTCUBE_IPHONE__', true);
require ROOT . '/library/preprocessor.php';
requireView('iphoneView');
if (isset($_GET['loginid']))
$_POST['loginid'] = $_GET['loginid'];
if (isset($_GET['password']))
Expand Down Expand Up @@ -41,17 +42,18 @@
$message=_text('권한이 없습니다.');
}
}

if(!doesHaveOwnership()) {
printMobileHTMLHeader();
printMobileHTMLMenu();
?>
<form id="Login" method="GET" action="<?php echo $blogURL;?>/login" title="Login" class="panel" selected="false">
<h2><?php echo _text('블로그 로그인');?></h2>
<fieldset>
<?php if($message) { ?>
<div class="row">
<label><span class="loginError"><?php echo $message;?></span></label>
<div data-rel="dialog" class="row">
<span class="loginError"><?php echo $message;?></span>
</div>
<?php };?>
<fieldset>
<div class="row">
<label for="loginid"><?php echo _text('E-mail');?></label>
<input type="email" class="input-text" id="loginid" name="loginid" value="<?php echo htmlspecialchars(empty($_POST['loginid']) ? (empty($_COOKIE['TSSESSION_LOGINID']) ? '' : $_COOKIE['TSSESSION_LOGINID']) : $_POST['loginid']);?>" maxlength="64" tabindex="1" />
Expand All @@ -68,18 +70,23 @@
<input type="hidden" id="save" class="checkbox" name="save" />
<input type="hidden" name="requestURI" value="#home" />

<a href="#" class="whiteButton " type="submit"><?php echo _text('블로그 로그인');?></a>
<a href="#" class="whiteButton" type="submit"><?php echo _text('블로그 로그인');?></a>
</form>
<?php
} else {
printMobileHTMLHeader();
printMobileHTMLMenu();
?>
<div id="Login" title="Login" class="panel" selected="false">
<div class="content">
<?php echo _text('로그인 하였습니다.');?>
<div class="content center">
<h2><?php echo _text('로그인 하였습니다.');?></h2>
</div>
<div data-role="controlgroup">
<a href="#" data-role="button" onclick="self.location.reload();" class="whiteButton margin-top10"><?php echo _text('블로그 페이지로 돌아가기');?></a>
<a data-role="button" data-theme="e" href="<?php echo $defaultURL."/owner/center/dashboard";?>" onclick="window.location.href='<?php echo $defaultURL."/owner/center/dashboard";?>'" class="whiteButton margin-top10"><?php echo _text('관리 패널로 들어가기');?></a>
</div>
<a href="#" onclick="self.location.reload();" class="whiteButton margin-top10"><?php echo _text('첫 페이지로 돌아가기');?></a>
<a href="<?php echo $defaultURL."/owner/center/dashboard";?>" onclick="window.location.href='<?php echo $defaultURL."/owner/center/dashboard";?>'" class="whiteButton margin-top10"><?php echo _text('관리 패널로 들어가기');?></a>
</div>
<?php
printMobileHTMLFooter();
}
?>
14 changes: 9 additions & 5 deletions interface/i/logout/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@
define('__TEXTCUBE_IPHONE__', true);
require ROOT . '/library/preprocessor.php';
requireView('iphoneView');
if (false) {
fetchConfigVal();
}
logout();
printMobileHTMLHeader();
printMobileHTMLMenu();
$context = Model_Context::getInstance();
?>

<div id="Logout" title="Logout" class="panel" selected="false">
<div class="content">
Logout Successfully.
<h2><?php echo _text('성공적으로 로그아웃 하였습니다.');?></h2>
</div>
<a href="#" onclick="self.location.reload();" class="whiteButton margin-top10"><?php echo _text('Go to front page');?></a>
<a data-role="button" href="<?php echo $context->getProperty('uri.blog');?>"><?php echo _text('첫 화면으로 돌아가기');?></a>
</div>
<?php
printMobileHTMLFooter();
?>
3 changes: 3 additions & 0 deletions resources/style/iphone/iphone.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ select {
margin-left:100px !important;

}
.center {
text-align:center;
}
.comment {
}

Expand Down

0 comments on commit e560953

Please sign in to comment.