Commit 78a7569e by Masaru Abe

#12264 コンテンツ共有機能追加

parent 518c4d71
......@@ -94,27 +94,7 @@
</div>
</header>
<section class="sectionbackup_logout" id="dlgConfirmBackup1">
<h1><label class="lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
<p class="message"><label lang="txtLogoutBkMsg" class="lang"><!--ログアウトする前にバックアップしますか?--></label></p>
<p class="message-options">
<label class="option_backup">
<label lang="txtBkSelectData" class="lang"><!--バックアップするデータを選択してください。--></label><br />
<input type="checkbox" id="chkBkAllMarking" class="chkbx" checked="checked" /><label for="chkBkAllMarking" lang="txtBkMarking" class="lang"><!--マーキング--></label>
<input type="checkbox" id="chkBkAllMemo" class="chkbx" checked="checked" /><label for="chkBkAllMemo" lang="txtBkMemo" class="lang"><!--メモ--></label>
<input type="checkbox" id="chkBkAllShiori" class="chkbx" checked="checked" /><label for="chkBkAllShiori" lang="txtBkShiori" class="lang"><!--しおり--></label>
</label>
</p>
<p class="notice">
<input type="checkbox" id="chkRememberBackup" /><label for="chkRememberBackup" class="lang" lang="txtLogoutOptBkCfm"><!--今回の行動を記憶し、次回から確認せずに、同じことをする。--></label>
</p>
<p class="backupbtn">
<a class="cancel lang" href="#" lang="dspBkCancel" id="dlgConfirmBackup-withoutbackup"><!--バックアップしないでログアウト--></a>
<a class="ok lang" href="#" id="dlgConfirmBackup-backup" lang="dspBkOK"><!--バックアップしてログアウト--></a>
</p>
</section>
<div id="inc_backup"></div>
<div class="wrapper">
<div id="main">
......
/**
* rome - Customizable date (and time) picker. Opt-in UI, no jQuery!
* @version v1.1.6
* @link https://github.com/bevacqua/rome
* @license MIT
*/
.rd-container {
display: inline-block;
border: 1px solid #333;
background-color: #fff;
padding: 10px;
text-align: center;
z-index: 200000; /* agt add */
}
.rd-container-attachment {
position: absolute;
}
.rd-month {
display: inline-block;
margin-right: 25px;
}
.rd-month:last-child {
margin-right: 0;
}
.rd-back,
.rd-next {
cursor: pointer;
border: none;
outline: none;
background: none;
padding: 0;
margin: 0;
}
.rd-back[disabled],
.rd-next[disabled] {
cursor: default;
}
.rd-back {
float: left;
}
.rd-next {
float: right;
}
.rd-back:before {
display: block;
content: '\2190';
}
.rd-next:before {
display: block;
content: '\2192';
}
.rd-day-body {
cursor: pointer;
text-align: center;
}
.rd-day-selected,
.rd-time-selected,
.rd-time-option:hover {
cursor: pointer;
background-color: #333;
color: #fff;
}
.rd-day-prev-month,
.rd-day-next-month {
color: #999;
}
.rd-day-disabled {
cursor: default;
color: #fcc;
}
.rd-time {
position: relative;
display: inline-block;
margin-top: 5px;
min-width: 80px;
}
.rd-time-list {
display: none;
position: absolute;
overflow-y: scroll;
max-height: 160px;
left: 0;
right: 0;
background-color: #fff;
color: #333;
}
.rd-time-selected {
padding: 5px;
}
.rd-time-option {
padding: 5px;
}
.rd-day-concealed {
visibility: hidden;
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -149,5 +149,10 @@
"txtContentWarning":"Waring",
"txtMediaAutoPlayWarning":"Media will be played automatically.",
"txtPreventLink": "プレビューにはこの機能が利用できません",
"msgContentNotExist": "コンテンツが存在しません。"
"msgContentNotExist": "コンテンツが存在しません。",
"txtShare": "共有",
"txtDashMark": "-",
"txtUrlValidDate": "URL有効期間",
"txtMaxDownloadCount": "最大DL回数",
"msgShareUrlPassword": "パスワードを設定する場合、以下に入力して下さい。"
}
......@@ -64,7 +64,7 @@
"dspBkCancel":"バックアップせずにログアウト",
"txtSearchResult":"検索結果",
"dspHome":"ホーム",
"txtLoginUser":"(v1.4.1.0)ログイン中:",
"txtLoginUser":"(v1.4.2.0)ログイン中:",
"txtAll":"すべて",
"txtMkgSize":"太さ",
"txtMkgS":"小",
......@@ -149,5 +149,10 @@
"txtContentWarning":"警告",
"txtMediaAutoPlayWarning":"メディアは自動再生されます。",
"txtPreventLink": "プレビューにはこの機能が利用できません。",
"msgContentNotExist": "コンテンツが存在しません。"
"msgContentNotExist": "コンテンツが存在しません。",
"txtShare": "共有",
"txtDashMark": "~",
"txtUrlValidDate": "URL有効期間",
"txtMaxDownloadCount": "最大DL回数",
"msgShareUrlPassword": "パスワードを設定する場合、以下に入力して下さい。"
}
......@@ -149,5 +149,10 @@
"txtContentWarning":"경고",
"txtMediaAutoPlayWarning":"음악/동영상은 자동으로 재생됩니다.",
"txtPreventLink": "미리 보기에서 사용하실 수 없는 기능입니다.",
"msgContentNotExist": "コンテンツが存在しません。"
"msgContentNotExist": "コンテンツが存在しません。",
"txtShare": "共有",
"txtDashMark": "~",
"txtUrlValidDate": "URL유효기간",
"txtMaxDownloadCount": "최대DL횟수",
"msgShareUrlPassword": "암호를 설정할경우 다음의 입력란에 입력하십시오."
}
......@@ -14,6 +14,7 @@
<link rel="stylesheet" type="text/css" href="common/css/jquery.toastmessage.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/default.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/screenLock.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/screen.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/common.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/theme/common.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/header.css?#UPDATEID#" />
......@@ -30,21 +31,8 @@
<link rel="stylesheet" type="text/css" href="css/theme/accordion.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/limit_access.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/theme/limit_access.css?#UPDATEID#" />
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/i18n.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/avweb.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/common.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/Limit_Access_Content.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/contentsearch.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/header.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/gotop.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/tab.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/screenLock.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./js/detail.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/scrolltopcontrol.js?#UPDATEID#"></script>
<link rel="stylesheet" type="text/css" href="css/share.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/rome.css?#UPDATEID#" />
</head>
<body>
......@@ -96,26 +84,7 @@
</div>
</header>
<section class="sectionbackup_logout" id="dlgConfirmBackup1">
<h1><label class="lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
<p class="message"><label lang="txtLogoutBkMsg" class="lang"><!--ログアウトする前にバックアップしますか?--></label></p>
<p class="message-options">
<label class="option_backup">
<label lang="txtBkSelectData" class="lang"><!--バックアップするデータを選択してください。--></label><br />
<input type="checkbox" id="chkBkAllMarking" class="chkbx" checked="checked" /><label for="chkBkAllMarking" lang="txtBkMarking" class="lang"><!--マーキング--></label>
<input type="checkbox" id="chkBkAllMemo" class="chkbx" checked="checked" /><label for="chkBkAllMemo" lang="txtBkMemo" class="lang"><!--メモ--></label>
<input type="checkbox" id="chkBkAllShiori" class="chkbx" checked="checked" /><label for="chkBkAllShiori" lang="txtBkShiori" class="lang"><!--しおり--></label>
</label>
</p>
<p class="notice">
<input type="checkbox" id="chkRememberBackup" /><label for="chkRememberBackup" class="lang" lang="txtLogoutOptBkCfm"><!--今回の行動を記憶し、次回から確認せずに、同じことをする。--></label>
</p>
<p class="backupbtn">
<a class="cancel lang" href="#" lang="dspBkCancel" id="dlgConfirmBackup-withoutbackup"><!--バックアップしないでログアウト--></a>
<a class="ok lang" href="#" id="dlgConfirmBackup-backup" lang="dspBkOK"><!--バックアップしてログアウト--></a>
</p>
</section>
<div id="inc_backup"></div>
<div class="wrapper">
<div id="main">
......@@ -168,22 +137,7 @@
</div>
</div>
<article id="contentDetail" style="display:none;">
<section id='sectionContentDetail' class='sectionContentDetail'>
<a class="closebtn" href="#" id="contentDetailClose"> </a>
<div id="book_data">
<p class="book_img"><img src="" id="imgContentThumbnail" alt="" height="25px" width="25px" /></p>
<ul>
<li class="title" id="txtContentTitle">Abook資料</li>
<li class="date"><label id="txtPubDt2" lang="dspPubDt2" class="lang">発行日:</label><label id="txtPubDt2_Dsp">____/__/__ __:__</label></li>
<li class="explain" id="txtContentDetail">スマートデバイス向け<br />統合ソリューション</li>
</ul>
<p class="read_btn"><a class="read lang" id="contentdetail_dspRead" lang="txtRead">読む</a></p>
</div>
<div id="book_list"></div>
</section>
</article>
<div id="inc_detail" ></div>
<footer>
<div class="border">
......@@ -197,5 +151,19 @@
this frame prevents back forward cache
</iframe>
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/i18n.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/avweb.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/common.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/Limit_Access_Content.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/header.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/contentsearch.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/gotop.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/tab.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/screenLock.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/scrolltopcontrol.js?#UPDATEID#"></script>
</body>
</html>
\ No newline at end of file
......@@ -221,11 +221,18 @@ a:hover.btn_bott{
left: 40px;
top: -4px;
}
/*
.cnt_section_list .text .info .pic li .read {
position: absolute;
right: 20px;
top: 50px;
}
*/
.cnt_section_list .text .info .pic li .iconList {
position: absolute;
right: 20px;
top: 50px;
}
section
{
}
......
......@@ -202,11 +202,18 @@
left: 40px;
top: -4px;
}
/*
.cnt_section_list .text .info .pic li .read {
position: absolute;
right: 20px;
top: 50px;
}
*/
.cnt_section_list .text .info .pic li .iconList {
position: absolute;
right: 20px;
top: 50px;
}
#main-searchresult
......
......@@ -159,12 +159,20 @@ a:hover.btn_bott{
top: 7px;
left: 50px;
}
/*
#list .wrapper #main .hoge-R section .cnt_section_list .text .info .pic li .read {
position: absolute;
right: -145px;
display: block;
top: 15px;
}
*/
#list .wrapper #main .hoge-R section .cnt_section_list .text .info .pic li .iconList {
position: absolute;
right: -145px;
display: block;
top: 15px;
}
#list .wrapper #main article section .cnt_section_list .text .name .listIcon {
display: inline;
vertical-align: middle;
......
/* CSS Document */
@charset "utf-8";
ul.contentShare_iconList {
margin: 0;
padding: 0;
list-style-type: none;
float: right; /* liE */
}
ul.contentShare_iconList li {
float: left;
width: 5em;
margin-right: 5px;
padding: 2px;
text-align: center;
}
......@@ -13,6 +13,7 @@
<link rel="stylesheet" type="text/css" href="common/css/jquery.toastmessage.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/default.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/screenLock.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/screen.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/common.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/theme/common.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/header.css?#UPDATEID#" />
......@@ -33,20 +34,8 @@
<link rel="stylesheet" type="text/css" href="css/theme/list_shirori_detail.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/limit_access.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/theme/limit_access.css?#UPDATEID#" />
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/i18n.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/avweb.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/common.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/Limit_Access_Content.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/history.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/header.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/gotop.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/tab.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/screenLock.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./js/detail.js?#UPDATEID#" ></script>
<link rel="stylesheet" type="text/css" href="css/share.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/rome.css?#UPDATEID#" />
</head>
<body>
......@@ -98,26 +87,7 @@
</div>
</header>
<section class="sectionbackup_logout" id="dlgConfirmBackup1">
<h1><label class="lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
<p class="message"><label lang="txtLogoutBkMsg" class="lang"><!--ログアウトする前にバックアップしますか?--></label></p>
<p class="message-options">
<label class="option_backup">
<label lang="txtBkSelectData" class="lang"><!--バックアップするデータを選択してください。--></label><br />
<input type="checkbox" id="chkBkAllMarking" class="chkbx" checked="checked" /><label for="chkBkAllMarking" lang="txtBkMarking" class="lang"><!--マーキング--></label>
<input type="checkbox" id="chkBkAllMemo" class="chkbx" checked="checked" /><label for="chkBkAllMemo" lang="txtBkMemo" class="lang"><!--メモ--></label>
<input type="checkbox" id="chkBkAllShiori" class="chkbx" checked="checked" /><label for="chkBkAllShiori" lang="txtBkShiori" class="lang"><!--しおり--></label>
</label>
</p>
<p class="notice">
<input type="checkbox" id="chkRememberBackup" /><label for="chkRememberBackup" class="lang" lang="txtLogoutOptBkCfm"><!--今回の行動を記憶し、次回から確認せずに、同じことをする。--></label>
</p>
<p class="backupbtn">
<a class="cancel lang" href="#" lang="dspBkCancel" id="dlgConfirmBackup-withoutbackup"><!--バックアップしないでログアウト--></a>
<a class="ok lang" href="#" id="dlgConfirmBackup-backup" lang="dspBkOK"><!--バックアップしてログアウト--></a>
</p>
</section>
<div id="inc_backup"></div>
<div class="wrapper">
<div id="main">
......@@ -158,22 +128,7 @@
</div>
</div>
<article id="contentDetail" style="display:none;">
<section id='sectionContentDetail' class='sectionContentDetail'>
<a class="closebtn" href="#" id="contentDetailClose"> </a>
<div id="book_data">
<p class="book_img"><img src="" id="imgContentThumbnail" alt="" height="25px" width="25px" /></p>
<ul>
<li class="title" id="txtContentTitle">Abook資料</li>
<li class="date"><label id="txtPubDt2" lang="dspPubDt2" class="lang">発行日:</label><label id="txtPubDt2_Dsp">____/__/__ __:__</label></li>
<li class="explain" id="txtContentDetail">スマートデバイス向け<br />統合ソリューション</li>
</ul>
<p class="read_btn"><a class="read lang" href="#" id="contentdetail_dspRead" lang="txtRead">読む</a></p>
</div>
<div id="book_list"></div>
</section>
</article>
<div id="inc_detail" ></div>
<footer>
<div class="border">
......@@ -187,5 +142,18 @@
this frame prevents back forward cache
</iframe>
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/i18n.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/avweb.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/common.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/Limit_Access_Content.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/header.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/history.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/gotop.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/tab.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/screenLock.js?#UPDATEID#" ></script>
</body>
</html>
\ No newline at end of file
......@@ -37,24 +37,8 @@
<link rel="stylesheet" type="text/css" href="css/theme/accordion.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/layout/limit_access.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="css/theme/limit_access.css?#UPDATEID#" />
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/avweb.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/i18n.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/common.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/uuid.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/Limit_Access_Content.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/header.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/home.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/scrolltopcontrol.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/tab.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.cookie.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/jquery.treeview.edit.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/jquery.treeview.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/screenLock.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./js/detail.js?#UPDATEID#" ></script>
<link rel="stylesheet" type="text/css" href="css/share.css?#UPDATEID#" />
<link rel="stylesheet" type="text/css" href="common/css/rome.css?#UPDATEID#" />
</head>
......@@ -107,6 +91,9 @@
</div>
</div>
</header>
<div id="inc_backup"></div>
<div class="wrapper">
<div id="main" class="hoge">
<div class="tabUnit" style="display:none;" >
......@@ -182,43 +169,7 @@
</div>
</div>
<section class="sectionbackup_logout" id="dlgConfirmBackup1">
<h1><label class="lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
<p class="message"><label lang="txtLogoutBkMsg" class="lang"><!--ログアウトする前にバックアップしますか?--></label></p>
<p class="message-options">
<label class="option_backup">
<label lang="txtBkSelectData" class="lang"><!--バックアップするデータを選択してください。--></label><br />
<input type="checkbox" id="chkBkAllMarking" class="chkbx" checked="checked" /><label for="chkBkAllMarking" lang="txtBkMarking" class="lang"><!--マーキング--></label>
<input type="checkbox" id="chkBkAllMemo" class="chkbx" checked="checked" /><label for="chkBkAllMemo" lang="txtBkMemo" class="lang"><!--メモ--></label>
<input type="checkbox" id="chkBkAllShiori" class="chkbx" checked="checked" /><label for="chkBkAllShiori" lang="txtBkShiori" class="lang"><!--しおり--></label>
</label>
</p>
<p class="notice">
<input type="checkbox" id="chkRememberBackup" /><label for="chkRememberBackup" class="lang" lang="txtLogoutOptBkCfm"><!--今回の行動を記憶し、次回から確認せずに、同じことをする。--></label>
</p>
<p class="backupbtn">
<a class="cancel lang" href="#" lang="dspBkCancel" id="dlgConfirmBackup-withoutbackup"><!--バックアップしないでログアウト--></a>
<a class="ok lang" href="#" id="dlgConfirmBackup-backup" lang="dspBkOK"><!--バックアップしてログアウト--></a>
</p>
</section>
<article id="contentDetail" style="display:none;">
<section id='sectionContentDetail' class='sectionContentDetail'>
<a class="closebtn" href="#" id="contentDetailClose"> </a>
<div id="book_data">
<p class="book_img"><img src="" id="imgContentThumbnail" alt="" height="25px" width="25px" /></p>
<ul>
<li class="title" id="txtContentTitle">Abook資料</li>
<li class="date"><label id="txtPubDt2" lang="dspPubDt2" class="lang">発行日:</label><label id="txtPubDt2_Dsp">____/__/__ __:__</label></li>
<li class="explain" id="txtContentDetail">スマートデバイス向け<br />統合ソリューション</li>
</ul>
<p class="read_btn"><a class="read lang" href="#" id="contentdetail_dspRead" lang="txtRead">読む</a></p>
</div>
<div id="book_list"></div>
</section>
</article>
<div id="inc_detail" ></div>
<!-- Hカスタム -->
<div id="dlgAddMemberGroup" title="コード入力" style="display: none;" >
......@@ -238,5 +189,23 @@
<iframe style="height:0px;width:0px;visibility:hidden;display:none;" src="about:blank">
this frame prevents back forward cache
</iframe>
<script type="text/javascript" src="./common/js/jquery-1.8.1.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery-ui-1.8.23.custom.min.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.toastmessage.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/avweb.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/i18n.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/common.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/uuid.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/Limit_Access_Content.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/header.js?#UPDATEID#"></script>
<script type="text/javascript" src="./js/home.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/scrolltopcontrol.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/tab.js?#UPDATEID#"></script>
<script type="text/javascript" src="./common/js/jquery.cookie.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/jquery.treeview.edit.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/jquery.treeview.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./common/js/screenLock.js?#UPDATEID#" ></script>
</body>
</html>
\ No newline at end of file
<section class="sectionbackup_logout" id="dlgConfirmBackup1" style="display:none;">
<h1><label class="lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
<p class="message"><label lang="txtLogoutBkMsg" class="lang"><!--ログアウトする前にバックアップしますか?--></label></p>
<p class="message-options">
<label class="option_backup">
<label lang="txtBkSelectData" class="lang"><!--バックアップするデータを選択してください。--></label><br />
<input type="checkbox" id="chkBkAllMarking" class="chkbx" checked="checked" /><label for="chkBkAllMarking" lang="txtBkMarking" class="lang"><!--マーキング--></label>
<input type="checkbox" id="chkBkAllMemo" class="chkbx" checked="checked" /><label for="chkBkAllMemo" lang="txtBkMemo" class="lang"><!--メモ--></label>
<input type="checkbox" id="chkBkAllShiori" class="chkbx" checked="checked" /><label for="chkBkAllShiori" lang="txtBkShiori" class="lang"><!--しおり--></label>
</label>
</p>
<p class="notice">
<input type="checkbox" id="chkRememberBackup" /><label for="chkRememberBackup" class="lang" lang="txtLogoutOptBkCfm"><!--今回の行動を記憶し、次回から確認せずに、同じことをする。--></label>
</p>
<p class="backupbtn">
<a class="cancel lang" href="#" lang="dspBkCancel" id="dlgConfirmBackup-withoutbackup"><!--バックアップしないでログアウト--></a>
<a class="ok lang" href="#" id="dlgConfirmBackup-backup" lang="dspBkOK"><!--バックアップしてログアウト--></a>
</p>
</section>
<article id="contentDetail" style="display:none;">
<section id='sectionContentDetail' class='sectionContentDetail'>
<a class="closebtn" href="#" id="contentDetailClose"> </a>
<div id="book_data">
<p class="book_img"><img src="" id="imgContentThumbnail" alt="" height="25px" width="25px" /></p>
<ul>
<li class="title" id="txtContentTitle">Abook資料</li>
<li class="date"><label id="txtPubDt2" lang="dspPubDt2" class="lang">発行日:</label><label id="txtPubDt2_Dsp">____/__/__ __:__</label></li>
<li class="explain" id="txtContentDetail">スマートデバイス向け<br />統合ソリューション</li>
</ul>
<p class="read_btn"><a class="read lang" href="#" id="contentdetail_dspRead" lang="txtRead">読む</a></p>
<p class="read_btn"><a class="read lang" href="#" id="contentdetail_dspShare" lang="txtShare" style="display:none;" >共有</a></p>
</div>
<div id="book_list"></div>
</section>
</article>
<div id="dlgContentShare" title="" style="display: none;" >
<div class="" id="dlgContentShare_error" style="color: #ff0000; background-color: transparent; display: none;"></div>
<div id="dlgContentShare_input" >
<div id="dlgContentShare_deliveryTerm">
<label class="lang" lang="txtUrlValidDate" ><!--URL有効期間--></label></br>
<input id="dlgContentShare_validStartDate" name="dlgContentShare_validStartDate" class="input" style="width:100px; ime-mode:disabled; vertical-align:middle;" value='' />
<label class="lang" lang="txtDashMark" ><!-- --></label>
<input id="dlgContentShare_validEndDate" name="dlgContentShare_validEndDate" class="input" style="width:100px; ime-mode:disabled; vertical-align:middle;" value='' />
</div>
</br>
<div>
<label class="lang" lang="txtMaxDownloadCount" ><!--最大DL回数--></label></br>
<input type="text" id="dlgContentShare_maxDlCount" name="dlgContentShare_maxDlCount" class="" style="width:50px;" value=''/>
</div>
</br>
<div>
<label class="lang" lang="msgShareUrlPassword" ><!--パスワードを設定する場合指定して下さい。--></label>
<input type="text" name="dlgContentShare_password" id="dlgContentShare_password" class="" style="width:200px;" value=''/>
</div>
</br>
</div>
<div id="dlgContentShare_result" style="display: none;" >
<!-- 結果表示 -->
<label id="dlgContentShare_resultUrl" ></label></br>
<label id="dlgContentShare_resultPassword" style="display: none;" ></label></br>
<label id="dlgContentShare_resultDeliveryTerm" style="display: none;" ></label></br>
</br>
</br>
<ul class="contentShare_iconList">
<li><a href="#" id="dlgContentShare_resultMl" ><img src="img/share/email-blue.png" width="57" height="57" ></a></li>
<li><a href="#" id="dlgContentShare_resultFb" ><img src="img/share/facebook.png" width="57" height="57" ></a></li>
<li><a href="#" id="dlgContentShare_resultTw" ><img src="img/share/twitter.png" width="57" height="57" ></a></li>
</ul>
</div>
</div>
<script type="text/javascript" src="./common/js/rome.min.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./js/share.js?#UPDATEID#" ></script>
<script type="text/javascript" src="./js/detail.js?#UPDATEID#" ></script>
......@@ -3,6 +3,8 @@ var messageLevel = {};
function checkLimitContent(contentId, funcOk, funcCancel, isNotUnlockScreen) {
console.log("contentId:" + contentId);
var levelContent = parseInt(messageLevel[contentId].alertMessageLevel);
if (levelContent == 1) {
......
//名前空間用のオブジェクトを用意する
var CONTENTSEARCH = {};
//Start Declare Variables
//----Constant-----------//
var DEFAULT_DISP_NUMBER_RECORD_FROM = 1;
......@@ -94,6 +97,11 @@ $(document).ready(function(){
$('.button-details').live('touchend', readSubmenuFunction);
$('.button-details').live('touchmove', function () { home_isMove = true; });
//Show Share Dialog
$('.button-share').live('click', CONTENTSEARCH.showContentShareDlgFunction);
$('.button-share').live('touchend', CONTENTSEARCH.showContentShareDlgFunction);
$('.button-share').live('touchmove', function () { home_isMove = true; });
$('#main-search').click(searchEventButtonFunction);
$('#txtSearch').keydown(mainSearchKeyDownFunction);
......@@ -125,6 +133,11 @@ $(document).ready(function(){
$('#dspPushMessage').hide();
}
//詳細、共有表示パーツ読み込み
$("#inc_detail").load("./inc_detail.html", function (myData, myStatus, xhr){
//読み込み完了時の処理
});
});
......@@ -202,71 +215,50 @@ function renderContent(id, text, division, type, order, from, to, cateid, grpid)
};
abapi('webContentList', params, 'POST', function (data) {
$.each(data.contentList, function (i, post) {
var outputDate ="";
if(post.contentDeliveryDate!=null&&post.contentDeliveryDate!=undefined&&post.contentDeliveryDate!='undefined')
{
outputDate=COMMON.formatDeliveryDate(post.contentDeliveryDate);
}
/* $('#content-grid').append(
'<section>'
+' <div class="cnt_section">'
+' <a class="img">'
+' <canvas height="105px" width="150px" id="content-thumbnail'+post.contentId+'" contentid="'+post.contentId+'" style="display:none;">'
+ ' </canvas>'
+ ' <img id="loadingIcon' + post.contentId + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding-top: 46px; padding-left: 66px"/>'
+ ' </a>'
+' <div class="text">'
+' <a id="title'+post.contentId+'" class="dialog name" contentid="'+post.contentId+'">'+ COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 25)+'</a>'
+' <div class="info">'
+' <ul class="date">'
+' <li><span class="lang" lang="txtPubDt"> </span> : '+outputDate+'</li>'
+' <li><span class="lang" lang="txtViewDt"> </span>:<span id="lblVdate'+post.contentId+'"> </span></li>'
+' </ul>'
+' <ul class="pic">'
+' <li><img src="'+COMMON.DEFAULT_IMG_OPTION_MEMO+'" id="imgMemo'+post.contentId+'" class="sticker" /></li>'
+' <li><img src="'+COMMON.DEFAULT_IMG_OPTION_MARKING+'" id="imgBookMark'+post.contentId+'" class="pen" /></li>'
+' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">読む</a></li>'
+' </ul>'
+' </div>'
+' </div>'
+' </div>'
+'</section>'
);
*/
$('#content-grid').append(
'<section class="sectionsearchlist">'
+ ' <div class="cnt_section_list">'
+ ' <a class="img">'
+ ' <canvas height="110" width="150" id="content-thumbnail' + post.contentId + '" contentid="' + post.contentId + '" style="display:none;">'
+ ' </canvas>'
+ ' <img id="loadingIcon' + post.contentId + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 46px; "/>'
+ ' </a>'
+ ' <div class="text">'
+ ' <a id="title' + post.contentId + '" class="name dialog" contentid="' + post.contentId + '">'
+ ' <img class="listIcon" src="' + HEADER.getIconTypeContent(post.contentType)+'" width="20" height="20">'
+ COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 20)
+ ' </a>'
+ ' <div class="info">'
+ ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt"> </span> : ' + outputDate + '</li>'
+ ' <li><span class="lang" lang="txtViewDt"> </span>:<span id="lblVdate' + post.contentId + '"> </span></li>'
+ ' </ul>'
+ ' <ul class="pic">'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>'
+ ' <li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">'+I18N.i18nText("txtRead")+'</a></li>'
+ ' </ul>'
+ ' </div>'
+ ' </div>'
+ ' </div>'
+ '</section>'
);
getNextRecordNumForList();
$.each(data.contentList, function (i, post) {
var outputDate ="";
if(post.contentDeliveryDate!=null&&post.contentDeliveryDate!=undefined&&post.contentDeliveryDate!='undefined')
{
outputDate=COMMON.formatDeliveryDate(post.contentDeliveryDate);
}
var htmlTemp ='<section class="sectionsearchlist">'
+ ' <div class="cnt_section_list">'
+ ' <a class="img">'
+ ' <canvas height="110" width="150" id="content-thumbnail' + post.contentId + '" contentid="' + post.contentId + '" style="display:none;">'
+ ' </canvas>'
+ ' <img id="loadingIcon' + post.contentId + '" src="./img/data_loading.gif" height="25px" width="25px" style="padding: 46px; "/>'
+ ' </a>'
+ ' <div class="text">'
+ ' <a id="title' + post.contentId + '" class="name dialog" contentid="' + post.contentId + '">'
+ ' <img class="listIcon" src="' + HEADER.getIconTypeContent(post.contentType)+'" width="20" height="20">'
+ COMMON.truncate(COMMON.htmlEncode(post.contentTitle), 20)
+ ' </a>'
+ ' <div class="info">'
+ ' <ul class="date">'
+ ' <li><span class="lang" lang="txtPubDt"> </span> : ' + outputDate + '</li>'
+ ' <li><span class="lang" lang="txtViewDt"> </span>:<span id="lblVdate' + post.contentId + '"> </span></li>'
+ ' </ul>'
+ ' <ul class="pic">'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MEMO + '" id="imgMemo' + post.contentId + '" class="sticker" /></li>'
+ ' <li><img src="' + COMMON.DEFAULT_IMG_OPTION_MARKING + '" id="imgBookMark' + post.contentId + '" class="pen" /></li>'
+ ' <li><ul class="iconList">{share}<li><a class="read lang button-details" contentid="' + post.contentId + '" lang="txtRead">読む</a></li></ul></li>'
+ ' </ul>'
+ ' </div>'
+ ' </div>'
+ ' </div>'
+ '</section>';
var shareHtml = "";
if( post.readerShare == '1' ){
shareHtml ='<li><a class="read lang button-share" contentid="' + post.contentId + '" lang="txtShare">共有</a></li>';
}
htmlTemp = htmlTemp.replace(/\{share\}/g, shareHtml);
$('#content-grid').append(htmlTemp);
getNextRecordNumForList();
//assign thumbnail to array
var formatThumbnail = post.contentThumbnail;
......@@ -1570,4 +1562,34 @@ function removeHoverCss(){
$('#control-sort-titlekana').removeClass('nottouchdevice');
$('#control-sort-releasedate').removeClass('nottouchdevice');
}
};
\ No newline at end of file
};
//Dialog Read Button CLick
CONTENTSEARCH.showContentShareDlgFunction = function(e) {
if (e) {
e.preventDefault();
}
if (home_isMove == true) {
home_isMove = false;
return;
}
var contentId = $(this).attr('contentid');
// check limit of content
checkLimitContent(contentId,
function()
{
SHARE.contentId = contentId;
SHARE.contentTitle = "";
SHARE.openContentShare();
},
function(){
//console.log("checkLimitContent_bbb");
}
);
};
......@@ -7,6 +7,7 @@ DETAIL.displayData = {
contentID: "",
contentTitle: "",
contentDetail: "",
contentShare: "",
contentThumbnail: "",
deliveryDate: (new Date()),
pages: []
......@@ -31,6 +32,7 @@ DETAIL.openContentDetail = function() {
contentID: "",
contentTitle: "",
contentDetail: "",
contentShare: "",
contentThumbnail: "",
deliveryDate: (new Date()),
pages: []
......@@ -48,9 +50,13 @@ DETAIL.openContentDetail = function() {
$("#txtContentDetail").text('');
$("#contentDetailClose").click(DETAIL.contentDetailClose_Click);
$("#contentdetail_dspRead").click(DETAIL.contentdetail_dspRead_Click);
//if( ClientData.serviceOpt_content_share() != '2'){
//$("#contentdetail_dspShare").click(SHARE.openContentShare);
$("#contentdetail_dspShare").hide();
//}
COMMON.lockLayout();
$("#contentDetail").css('z-index', 101);
$("#sectionContentDetail").show();
......@@ -71,12 +77,17 @@ DETAIL.openContentDetail = function() {
// Get content detail
DETAIL.displayData.contentTitle = data.contentData.contentName;
DETAIL.displayData.contentDetail = data.contentData.contentDetail;
if( ClientData.serviceOpt_content_share() == '2'){
if( data.contentData.readerShare ){
//SHARE.contentId = DETAIL.displayData.contentID;
DETAIL.displayData.contentShare = data.contentData.readerShare;
}
}
DETAIL.displayData.deliveryDate = COMMON.convertToDate(data.contentData.deliveryStartDate);
//Start Function : No.12 -- Editor : Viet Nguyen -- Date : 08/01/2013 -- Summary : Create new function to return content type of content.
if(!COMMON.isPdfContent(contentType)){
DETAIL.showContentNotPDF(DETAIL.displayData.contentTitle,DETAIL.displayData.contentDetail,DETAIL.displayData.contentThumbnail,DETAIL.displayData.deliveryDate);
DETAIL.showContentNotPDF(DETAIL.displayData);
}
else{
// Get pages
......@@ -89,7 +100,7 @@ DETAIL.openContentDetail = function() {
}
}
// Show to screen
DETAIL.showContent(DETAIL.displayData.contentID, COMMON.truncate(DETAIL.displayData.contentTitle, 20), DETAIL.displayData.contentDetail, ClientData.contentInfo_contentThumbnail(), DETAIL.displayData.deliveryDate, DETAIL.displayData.pages);
DETAIL.showContent(DETAIL.displayData);
},
null
);
......@@ -196,26 +207,35 @@ DETAIL.contentdetail_dspRead_Click_callback = function(outputId) {
//Start Function : No.12 -- Editor : Viet Nguyen -- Date : 08/01/2013 -- Summary : Create new function to return content type of content.
DETAIL.showContentNotPDF = function(contentTitle, contentDetail, contentThumbnail, deliveryDate) {
$("#txtPubDt2_Dsp").text(deliveryDate.jpDateString() + " " + deliveryDate.jpShortTimeString());
$("#txtContentDetail").text(contentDetail);
$("#txtContentTitle").text(contentTitle);
DETAIL.showContentNotPDF = function(displayData) {
$("#txtPubDt2_Dsp").text(displayData.deliveryDate.jpDateString() + " " + displayData.deliveryDate.jpShortTimeString());
$("#txtContentDetail").text(displayData.contentDetail);
//$("#txtContentTitle").text(COMMON.truncate(displayData.contentTitle, 20));
$("#txtContentTitle").text(displayData.contentTitle);
//コンテンツ共有
if( displayData.contentShare == '1' ){
SHARE.contentId = displayData.contentID;
SHARE.contentTitle = displayData.contentTitle;
$("#contentdetail_dspShare").show();
$("#contentdetail_dspShare").click(SHARE.openContentShare);
}
var tempContentType = ClientData.contentInfo_contentType();
if(contentThumbnail == '' || contentThumbnail == null || contentThumbnail == 'undefined'){
if(displayData.contentThumbnail == '' || displayData.contentThumbnail == null || displayData.contentThumbnail == 'undefined'){
if(!COMMON.isPdfContent(tempContentType)){
var src = HEADER.getThumbnailForOtherType(contentType);
if( src != '' ){
contentThumbnail = src;
displayData.contentThumbnail = src;
}
}
}else{
contentThumbnail = contentThumbnail;
//}else{
//contentThumbnail = contentThumbnail;
}
var imgTemp = new Image();
$("#imgContentThumbnail").attr("src", contentThumbnail);
$("#imgContentThumbnail").attr("src", displayData.contentThumbnail);
imgTemp.onload = function () {
//resize Image
......@@ -237,18 +257,26 @@ DETAIL.showContentNotPDF = function(contentTitle, contentDetail, contentThumbnai
};
imgTemp.src = contentThumbnail;
imgTemp.src = displayData.contentThumbnail;
};
//End Function : No.12 -- Editor : Viet Nguyen -- Date : 08/01/2013 -- Summary : Create new function to return content type of content.
// Show detail content
DETAIL.showContent = function(contentID, contentTitle, contentDetail, contentThumbnail, deliveryDate, pages) {
$("#txtPubDt2_Dsp").text(deliveryDate.jpDateString() + " " + deliveryDate.jpShortTimeString());
$("#txtContentDetail").text(contentDetail);
$("#txtContentTitle").text(contentTitle);
DETAIL.showContent = function(displayData) {
$("#txtPubDt2_Dsp").text(displayData.deliveryDate.jpDateString() + " " + displayData.deliveryDate.jpShortTimeString());
$("#txtContentDetail").text(displayData.contentDetail);
$("#txtContentTitle").text(COMMON.truncate(displayData.contentTitle, 20));
//コンテンツ共有
if( displayData.contentShare == '1' ){
SHARE.contentId = displayData.contentID;
SHARE.contentTitle = displayData.contentTitle;
$("#contentdetail_dspShare").show();
$("#contentdetail_dspShare").click(SHARE.openContentShare);
}
$("#imgContentThumbnail").attr("src", contentThumbnail);
$("#imgContentThumbnail").attr("src", displayData.contentThumbnail);
var imgTemp = new Image();
imgTemp.onload = function () {
......@@ -272,13 +300,13 @@ DETAIL.showContent = function(contentID, contentTitle, contentDetail, contentThu
};
imgTemp.src = contentThumbnail;
imgTemp.src = displayData.contentThumbnail;
//resizeThumbnailContentDetail(contentThumbnail, 120, 160);
// Show pages
for (var nIndex = 0; nIndex < pages.length; nIndex++) {
for (var nIndex = 0; nIndex < displayData.pages.length; nIndex++) {
//insertRow(imgSample, pages[nIndex].pageText, pages[nIndex].pageNo);
DETAIL.insertRow(pages[nIndex].pageThumbnail, COMMON.truncate(COMMON.getLines(pages[nIndex].pageText, 3), 45), pages[nIndex].pageNo); //55
DETAIL.insertRow(displayData.pages[nIndex].pageThumbnail, COMMON.truncate(COMMON.getLines(displayData.pages[nIndex].pageText, 3), 45), displayData.pages[nIndex].pageNo); //55
}
};
......
......@@ -69,11 +69,12 @@ $(document).ready(function () {
$('#login-username').attr("title", ClientData.userInfo_userName());
}
$('#dlgConfirmBackup-backup').click(HEADER.confirmWithBackupFunction);
$('#dlgConfirmBackup-withoutbackup').click(confirmWithoutBackupFunction);
$('#dlgConfirmBackup1').hide();
//ログアウト時バックアップ確認パーツ読み込み
$("#inc_backup").load("./inc_backup.html", function (myData, myStatus, xhr){
$('#dlgConfirmBackup-backup').click(HEADER.confirmWithBackupFunction);
$('#dlgConfirmBackup-withoutbackup').click(HEADER.confirmWithoutBackupFunction);
$('#dlgConfirmBackup1').hide();
});
$('#searchbox-key').keydown(HEADER.headerSearchKeyDownEventFunction);
......@@ -451,7 +452,7 @@ HEADER.webLogoutEvent = function(){
};
//Logout Without Backup function
function confirmWithoutBackupFunction(e) {
HEADER.confirmWithoutBackupFunction = function(e) {
e.preventDefault();
var remember = $('#chkRememberBackup').attr('checked');
......
/// コンテンツ共有画面
//名前空間用のオブジェクトを用意する
var SHARE = {};
SHARE.contentId = "";
SHARE.contentTitle = "";
// Init function of page
$(document).ready(function () {
//カレンダー表示
rome(dlgContentShare_validStartDate, { time: false });
rome(dlgContentShare_validEndDate, { time: false });
$('#dlgContentShare').prop('title', I18N.i18nText('txtShare'));
$('#dlgContentShare').dialog( {
open: function() {
$('#dlgContentShare_error').hide();
$('#dlgContentShare_input').show();
$('#dlgContentShare_result').hide();
//OKボタンの有効化
$(":button:contains('Ok')").prop("disabled", false).removeClass("ui-state-disabled");
},
close: function() {
//flag = false;
},
autoOpen: false,
modal: true,
width: 370,
buttons: {
"Ok": function() {
//submitForm();
SHARE.sendContentShare();
},
"Cancel": function() {
$( this ).dialog( "close" );
}
}
});
});
// Show content detail
SHARE.openContentShare = function() {
//alert("SHARE.contentId:" + SHARE.contentId);
$('#dlgContentShare').dialog( 'open' );
return false;
};
//Show content detail
SHARE.closeContentShare = function() {
$('#dlgContentShareUrl').dialog( 'close' );
};
SHARE.sendContentShare = function() {
var validStartDate = $('#dlgContentShare_validStartDate').val();
var validEndDate = $('#dlgContentShare_validEndDate').val();
var maxDlCount = $('#dlgContentShare_maxDlCount').val();
var password = $('#dlgContentShare_password').val();
var validStartDateParam
var validEndDateParam
if(validStartDate != ''){
validStartDateParam = validStartDate + " 00:00:00";
}
if(validEndDate != ''){
validEndDateParam = validEndDate + " 23:59:59";
}
console.log("validStartDate:" + validStartDateParam);
console.log("validEndDate:" + validEndDateParam);
console.log("maxDlCount:" + maxDlCount);
console.log("password:" + password);
var params = {
sid: ClientData.userInfo_sid(),
contentId: SHARE.contentId,
validStartDate: validStartDateParam,
validEndDate: validEndDateParam,
maxDlCount: maxDlCount,
password: password
};
// Get content detail
avwCmsApi(ClientData.userInfo_accountPath(), "getReaderShareUrl", "POST", params,
function (data) {
if( data.httpStatus == '200' ){
$('#dlgContentShare_error').hide();
$('#dlgContentShare_input').hide();
$('#dlgContentShare_resultUrl').text(data.url);
var mailto = 'mailto:?subject=コンテンツを共有しました&body=コンテンツを共有しました。%0D%0A%0D%0A共有URL:%0D%0A' + data.url + '%0D%0A%0D%0A';
if( password != '' ){
mailto = mailto + "password:" + password + '%0D%0A%0D%0A';
}
if( validStartDate != '' || validEndDate != '' ){
mailto = mailto + "有効期間:" + validStartDate + "-" + validEndDate + '%0D%0A%0D%0A';
}
$('#dlgContentShare_resultMl').attr("href",mailto);
$('#dlgContentShare_resultFb').click(function () {
var fbUrl="https://www.facebook.com/sharer.php?u=" + data.url + "&amp;t=test";
window.open(encodeURI(decodeURI(fbUrl)),
'sharewindow',
'width=550, height=450, personalbar=0, toolbar=0, scrollbars=1, resizable=1'
);
return false;
});
$('#dlgContentShare_resultTw').click(function () {
var twUrl="http://twitter.com/intent/tweet?text=&amp;url=" + data.url + "&amp;via=Agentec_now";
window.open(encodeURI(decodeURI(twUrl)),
'sharewindow',
'width=550, height=450, personalbar=0, toolbar=0, scrollbars=1, resizable=1'
);
return false;
});
if( password != '' ){
$('#dlgContentShare_resultPassword').show();
$('#dlgContentShare_resultPassword').text("Password:" + password);
} else {
$('#dlgContentShare_resultPassword').hide();
}
if( validStartDate != '' || validEndDate != '' ){
$('#dlgContentShare_resultDeliveryTerm').show();
$('#dlgContentShare_resultDeliveryTerm').text("有効期間:" + validStartDate + "-" + validEndDate);
} else {
$('#dlgContentShare_resultDeliveryTerm').hide();
}
//結果表示
$('#dlgContentShare_result').show();
//OKボタンの無効化
$(":button:contains('Ok')").prop("disabled", true).addClass("ui-state-disabled");
} else {
$('#dlgContentShare_error').show();
$('#dlgContentShare_error').html(data.errorMessage + "</br></br>");
}
},
function (xhr, statusText, errorThrown) {
if (xhr.responseText && xhr.status != 0) {
var xhrData = JSON.parse(xhr.responseText);
$('#dlgContentShare_error').show();
$('#dlgContentShare_error').html(xhrData.loginErrorMessage + "</br></br>");
}
else {
showSystemError();
}
}
);
};
......@@ -119,6 +119,8 @@
</script>-->
</header>
<div id="inc_backup"></div>
<div class="wrapper">
<div id="main">
<article>
......@@ -207,26 +209,6 @@
</p>
</section>
<section class="sectionbackup_logout" id="dlgConfirmBackup1">
<h1><label class="lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
<p class="message"><label lang="txtLogoutBkMsg" class="lang"><!--ログアウトする前にバックアップしますか?--></label></p>
<p class="message-options">
<label class="option_backup">
<label lang="txtBkSelectData" class="lang"><!--バックアップするデータを選択してください。--></label><br />
<input type="checkbox" id="chkBkAllMarking" class="chkbx" checked="checked" /><label for="chkBkAllMarking" lang="txtBkMarking" class="lang"><!--マーキング--></label>
<input type="checkbox" id="chkBkAllMemo" class="chkbx" checked="checked" /><label for="chkBkAllMemo" lang="txtBkMemo" class="lang"><!--メモ--></label>
<input type="checkbox" id="chkBkAllShiori" class="chkbx" checked="checked" /><label for="chkBkAllShiori" lang="txtBkShiori" class="lang"><!--しおり--></label>
</label>
</p>
<p class="notice">
<input type="checkbox" id="chkRememberBackup" /><label for="chkRememberBackup" class="lang" lang="txtLogoutOptBkCfm"><!--今回の行動を記憶し、次回から確認せずに、同じことをする。--></label>
</p>
<p class="backupbtn">
<a class="cancel lang" href="#" lang="dspBkCancel" id="dlgConfirmBackup-withoutbackup"><!--バックアップしないでログアウト--></a>
<a class="ok lang" href="#" id="dlgConfirmBackup-backup" lang="dspBkOK"><!--バックアップしてログアウト--></a>
</p>
</section>
<section class="sectionbackup" id="dlgConfirmBackup">
<h1><label class="title lang" lang="txtBackupTitle"><!--バックアップ確認--></label></h1>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment