Skip to content

Commit

Permalink
refs #1717 : modify - html5 for every textcube-generated html output
Browse files Browse the repository at this point in the history
  • Loading branch information
inureyes committed Jun 20, 2015
1 parent 8138f38 commit 3ad660d
Showing 11 changed files with 122 additions and 119 deletions.
26 changes: 13 additions & 13 deletions interface/blog/trackback/send/index.php
Original file line number Diff line number Diff line change
@@ -13,11 +13,11 @@
exit;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo _text('글걸기 시도');?></title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo $context->getProperty('service.path') . $context->getProperty('panel.skin');?>/popup-trackback.css" />
<script type="text/javascript" src="<?php echo $context->getProperty('service.jqueryURL');?>jquery-<?php echo JQUERY_VERSION;?>.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
@@ -29,7 +29,7 @@
var servicePath = "<?php echo $context->getProperty('$service.path');?>";
var blogURL = "<?php echo $context->getProperty('uri.blog');?>";
var adminSkin = "<?php echo $context->getProperty('panel.skin');?>";

function onclick_send(form) {
trim_all(form);
if (isNull(form.url,"<?php echo _text('전송할 주소를 입력하세요');?>")) return false;
@@ -44,7 +44,7 @@ function onclick_delete(form, num) {
form.exenum.value = num;
form.submit();
}

function sendTrackback(id) {
try {
var trackbackField = document.getElementById('url');
@@ -62,7 +62,7 @@ function sendTrackback(id) {
alert(e.message);
}
}

function showTrackbackSender(id) {
var request = new HTTPRequest("GET", "<?php echo $context->getProperty('uri.blog');?>/owner/communication/trackback/log/" + id);
request.onSuccess = function() {
@@ -78,7 +78,7 @@ function showTrackbackSender(id) {
str += ' <th class="delete"><span class="text"><?php echo _text('삭제');?></span></th>\n';
str += ' </tr>\n';
str += ' </thead>\n';

for (var i=0; i<resultRow.length-1 ; i++) {
field = resultRow[i].split(',');
str += ' <tbody>\n';
@@ -88,14 +88,14 @@ function showTrackbackSender(id) {
str += ' <td class="delete"><a class="delete-button button" href="#void" onclick="removeTrackbackLog('+field[0]+','+id+');"><span class="text"><?php echo _text('삭제');?></span></a></td>\n'
str += ' </tr>\n';
str += ' </tbody>\n';
}
}
str += '</table>\n';
}
document.getElementById('logs_'+id).innerHTML = str;
}
request.send();
}

function removeTrackbackLog(id,entry) {
if(confirm("<?php echo _text('선택된 걸린글을 지웁니다. 계속 하시겠습니까?');?>")) {
var request = new HTTPRequest("GET", "<?php echo $context->getProperty('uri.blog');?>/owner/communication/trackback/log/remove/" + id);
@@ -122,10 +122,10 @@ function resize() {
</head>
<body>
<form name="trackback" method="post" action="<?php echo $context->getProperty('suri.url');?>">

<div id="trackback-box">
<img src="<?php echo $context->getProperty('service.path') . $context->getProperty('panel.skin');?>/image/img_comment_popup_logo.gif" alt="<?php echo _text('텍스트큐브 로고');?>" />

<div class="title"><span class="text"><?php echo _text('글걸기를 시도합니다');?></span></div>
<div id="command-box">
<dl class="title-line">
@@ -139,10 +139,10 @@ function resize() {
<input type="button" class="input-button" name="Submit" value="<?php echo _text('전송');?>" onclick="sendTrackback(<?php echo $context->getProperty('suri.id');?>); return false;" />
</dd>
</dl>

<div id="logs_<?php echo $context->getProperty('suri.id');?>"></div>
</div>

<div class="button-box">
<input type="button" class="input-button" value="<?php echo _text('닫기');?>" onclick="window.close()" />
</div>
33 changes: 17 additions & 16 deletions interface/#/index.php
Original file line number Diff line number Diff line change
@@ -25,7 +25,7 @@
define('__TEXTCUBE_LOGIN__',true);
define('__TEXTCUBE_ADMINPANEL__',true);
require ROOT . '/library/preprocessor.php';
$context = Model_Context::getInstance();
$context = Model_Context::getInstance();

if (isset($_GET['loginid']))
$_POST['loginid'] = $_GET['loginid'];
@@ -49,13 +49,13 @@
} else if (!empty($_POST['loginid']) && !empty($_POST['reset'])) {
if (resetPassword($blogid, $_POST['loginid']))
$message = _text('지정된 이메일로 로그인 정보가 전달되었습니다.');
else
else
$message = _text('권한이 없습니다.');
} else if (!empty($_POST['loginid']) && !empty($_POST['password'])) {
if(!empty($_POST['autologin'])) {
$isLogin = login($_POST['loginid'],$_POST['password'],(Timestamp::getUNIXtime() + $context->getProperty('service.autologinTimeout')));
} else {
$isLogin = login($_POST['loginid'],$_POST['password'],(Timestamp::getUNIXtime() + $context->getProperty('service.timeout')));
$isLogin = login($_POST['loginid'],$_POST['password'],(Timestamp::getUNIXtime() + $context->getProperty('service.timeout')));
}
if (!$isLogin) {
$message = _text('아이디 또는 비밀번호가 틀렸습니다.');
@@ -87,10 +87,11 @@
header('Location: '.$redirect);
exit;
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">
<title><?php echo _text('Textcube - Login');?></title>
<?php
$browser = Utils_Browser::getInstance();
@@ -121,7 +122,7 @@
var adminSkin = "<?php echo $context->getProperty('panel.skin');?>";

window.addEventListener("load", execLoadFunction, false);

function execLoadFunction() {
document.forms[0].<?php echo (empty($_COOKIE['TSSESSION_LOGINID']) ? 'loginid' : 'password');?>.focus();
<?php
@@ -164,7 +165,7 @@ function execLoadFunction() {
<?php echo ($showPasswordReset ? '<div id="password_int"><input type="checkbox" class="checkbox" id="reset" name="reset" /><label for="reset">' . _text('암호 초기화') . '</label></div>'.CRLF : '');?>
</dd>
</dl>

<div class="button-box">
<input type="submit" class="login-button input-button" name="button_login" value="<?php echo _text('로그인');?>" />
</div>
@@ -173,8 +174,8 @@ function execLoadFunction() {
</div>
</div>
</form>
<?php if( isActivePlugin('CL_OpenID') ) {

<?php if( isActivePlugin('CL_OpenID') ) {
if( !empty($_COOKIE['openid']) ) {
$openid_remember_check = "checked";
$cookie_openid = $_COOKIE['openid'];
@@ -189,7 +190,7 @@ function execLoadFunction() {
<input type="hidden" name="refererURI" value="<?php echo htmlspecialchars($_POST['refererURI']); ?>" />
<input type="hidden" name="need_writers" value="1" />
<input type="hidden" name="action" value="try_auth" />

<div id="openid-field-box" class="field-box">
<dl id="openid-line">
<dt><label for="openid_identifier"><?php echo _text('관리자 계정과 연결된 오픈아이디');?></label></dt>
@@ -202,11 +203,11 @@ function execLoadFunction() {
<dt><span class="label"><?php echo _text('선택사항');?></span></dt>
<dd><input type="checkbox" class="checkbox" id="openid_remember" name="openid_remember" <?php echo $openid_remember_check; ?> /><label for="openid_remember"><?php echo _text('오픈아이디 저장'); ?></label></dd>
</dl>

<div class="button-box">
<input type="submit" class="login-button input-button" id="openid-login-button" name="openid_login" value="<?php echo _text('로그인'); ?>" />
</div>

<?php if (!empty($openid_help_link) || !empty($openid_#_link)) { ?>
<ul id="openid-intro">
<?php if( !empty( $openid_help_link ) ) { ?>
@@ -220,8 +221,8 @@ function execLoadFunction() {
</div>
</form>
<script type="text/javascript">
//<![CDATA[
function focus_openid(){
//<![CDATA[
function focus_openid(){
document.getElementById("openid_identifier").focus();}
//]]>
</script>
@@ -241,7 +242,7 @@ function focus_openid(){
</div> <!-- all-wrap -->
</div> <!-- temp-wrap -->
<?php
if( function_exists('__tcSqlLogDump') ) {
if( function_exists('__tcSqlLogDump') ) {
__tcSqlLogDump();
}
?>
17 changes: 9 additions & 8 deletions interface/#/openid/guest/index.php
Original file line number Diff line number Diff line change
@@ -39,10 +39,11 @@
$cookie_openid = '';
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html><head>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title><?php echo _text('텍스트큐브') .":". _text('오픈아이디 인증'); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="<?php echo $context->getProperty('service.path').$context->getProperty('panel.skin');?>/basic.css" />
<link rel="stylesheet" type="text/css" href="<?php echo $context->getProperty('service.path').$context->getProperty('panel.skin');?>/#.css" />
<!--[if lte IE 6]>
@@ -66,10 +67,10 @@
<div id="logo-box">
<img src="<?php echo $context->getProperty('service.path');?>/skin/admin/whitedream/image/logo_textcube.png" alt="<?php echo _text('텍스트큐브 로고'); ?>" />
</div>

<div class="field-box">
<h1><?php echo _text('오픈아이디 게스트 로그인'); ?></h1>

<dl id="email-line">
<dt><label for="loginid"><?php echo _text('오픈아이디'); ?></label></dt>
<dd><input type="text" class="input-text openid-identifier-guest-login" id="openid_identifier" name="openid_identifier" value="<?php echo $cookie_openid ?>" maxlength="256" tabindex="1" /></dd>
@@ -78,12 +79,12 @@
<dt><span class="label"><?php echo _text('선택사항');?></span></dt>
<dd><input type="checkbox" class="checkbox" id="openid_remember" name="openid_remember" <?php echo $openid_remember_check ?> /><label for="openid_remember"><?php echo _text('오픈아이디 기억') ?></label></dd>
</dl>

<div class="button-box">
<input type="submit" class="login-button input-button" name="openid_login" value="<?php echo _text('로그인');?>" />
<input type="submit" class="input-button" name="openid_cancel" value="<?php echo _text('취소') ?>" />
</div>

<ul>
<?php if( !empty( $openid_help_link ) ) { ?>
<li id="openid-help"><a href="<?php echo $openid_help_link; ?>" ><?php echo _text('오픈아이디란?') ?></a></li>
@@ -99,4 +100,4 @@
</div>
</div>
</body>
</html>
</html>
6 changes: 3 additions & 3 deletions interface/owner/data/correct/index.php
Original file line number Diff line number Diff line change
@@ -5,11 +5,11 @@
require ROOT . '/library/preprocessor.php';
requireStrictRoute();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Textcube Data Correcting</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
//<![CDATA[
var pi = window.parent.document.getElementById("correctingIndicator");
8 changes: 4 additions & 4 deletions interface/owner/data/import/index.php
Original file line number Diff line number Diff line change
@@ -16,11 +16,11 @@
require ROOT . '/library/preprocessor.php';
requireStrictRoute();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Textcube Data Importing</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
//<![CDATA[
var pi = window.parent.document.getElementById("progressIndicator");
@@ -446,7 +446,7 @@ function importer($path, $node, $line) {
$page->id = $node['id'][0]['.value'];
$page->slogan = @$node['.attributes']['slogan'];
$page->visibility = $node['visibility'][0]['.value'];
if(isset($node['starred'][0]['.value']))
if(isset($node['starred'][0]['.value']))
$page->starred = $node['starred'][0]['.value'];
else $page->starred = 0;
$page->title = $node['title'][0]['.value'];
6 changes: 3 additions & 3 deletions interface/owner/data/optimize/index.php
Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@
/// See the GNU General Public License for more details. (/documents/LICENSE, /documents/COPYRIGHT)
require ROOT . '/library/preprocessor.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko">
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Textcube Data Optimizing</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript">
//<![CDATA[
var pi = window.parent.document.getElementById("optimizingIndicator");
Loading

0 comments on commit 3ad660d

Please # to comment.