|
|
@@ -1,7 +1,7 @@
|
|
|
<?php
|
|
|
require_once '../studio/index_head.php';
|
|
|
?>
|
|
|
-<body id="file_list_body" onLoad="my_term_onload()">
|
|
|
+<body id="file_list_body" onLoad="my_term_onload()">
|
|
|
<script src="../channal/channal.js"></script>
|
|
|
|
|
|
<script src="../term/my_term.js"></script>
|
|
|
@@ -24,9 +24,15 @@ require_once '../studio/index_head.php';
|
|
|
#word_list{
|
|
|
width:unset;
|
|
|
}
|
|
|
+ #setting_user_dict_nav{
|
|
|
+ width:95%;
|
|
|
+ display:inline-flex;
|
|
|
+ justify-content: space-between;
|
|
|
+}
|
|
|
+ }
|
|
|
</style>
|
|
|
|
|
|
- <?php
|
|
|
+<?php
|
|
|
require_once '../studio/index_tool_bar.php';
|
|
|
?>
|
|
|
|
|
|
@@ -35,22 +41,24 @@ require_once '../studio/index_tool_bar.php';
|
|
|
|
|
|
<div class="tool_bar">
|
|
|
<div>
|
|
|
- <?php echo $_local->gui->terms_system; ?>
|
|
|
+ <?php echo $_local->gui->userdict; ?>
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
<span class="icon_btn_div">
|
|
|
<span class="icon_btn_tip"><?php echo $_local->gui->add; ?></span>
|
|
|
- <button id="file_add" type="button" class="icon_btn" title=" " onclick="term_edit_dlg_open()">
|
|
|
+ <button id="file_add" type="button" class="icon_btn" title=" ">
|
|
|
+ <a href="../course/my_channal_new.php">
|
|
|
<svg class="icon">
|
|
|
<use xlink:href="../studio/svg/icon.svg#ic_add_circle"></use>
|
|
|
</svg>
|
|
|
+ </a>
|
|
|
</button>
|
|
|
</span>
|
|
|
|
|
|
<span class="icon_btn_div">
|
|
|
<span class="icon_btn_tip"><?php echo $_local->gui->recycle_bin; ?></span>
|
|
|
- <button id="to_recycle" type="button" class="icon_btn" onclick="file_del()" title=" ">
|
|
|
+ <button id="to_recycle" type="button" class="icon_btn" title="delete">
|
|
|
<svg class="icon">
|
|
|
<use xlink:href="../studio/svg/icon.svg#ic_delete"></use>
|
|
|
</svg>
|
|
|
@@ -59,101 +67,14 @@ require_once '../studio/index_tool_bar.php';
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
-
|
|
|
-<div id="userfilelist">
|
|
|
-<?php
|
|
|
-//
|
|
|
-
|
|
|
-require_once "../config.php";
|
|
|
-require_once "../public/_pdo.php";
|
|
|
-require_once '../public/load_lang.php';
|
|
|
-require_once '../ucenter/function.php';
|
|
|
-
|
|
|
-if (isset($_GET["page"])) {
|
|
|
- $iCurrPage = $_GET["page"];
|
|
|
-} else {
|
|
|
- $iCurrPage = 0;
|
|
|
-}
|
|
|
-$iOnePage = 300;
|
|
|
-
|
|
|
-PDO_Connect(_FILE_DB_TERM_);
|
|
|
-
|
|
|
-$query = "SELECT count(*) as co from "._TABLE_TERM_." where owner= ? ";
|
|
|
-
|
|
|
-$allWord = PDO_FetchOne($query, array($_COOKIE["user_uid"]));
|
|
|
-$iCountWords = $allWord;
|
|
|
-
|
|
|
-if ($iCountWords == 0) {
|
|
|
- echo "<div id='setting_user_dict_count'>您的术语字典中没有单词。</div>";
|
|
|
-} else {
|
|
|
- echo "<div id='setting_user_dict_count'>" . $_local->gui->my_term . " " . $_local->gui->include . "{$iCountWords}" . $_local->gui->words . "</div>";
|
|
|
- $iPages = ceil($iCountWords / $iOnePage);
|
|
|
- if ($iCurrPage > $iPages) {
|
|
|
- $iCurrPage = $iPages;
|
|
|
- }
|
|
|
- $begin = $iCurrPage * $iOnePage;
|
|
|
-
|
|
|
- $query = "SELECT * from "._TABLE_TERM_." where owner= ? ";
|
|
|
- $allWords = PDO_FetchAll($query, array($_COOKIE["user_uid"]));
|
|
|
-
|
|
|
- echo '<div id="setting_user_dict_nav">';
|
|
|
-
|
|
|
- if ($iCurrPage == 0) {
|
|
|
- echo "第一页 | ";
|
|
|
- echo "上一页";
|
|
|
- } else {
|
|
|
- echo "<a href=\"setting.php?item=term&page=0\">第一页</a>";
|
|
|
- $prevPage = $iCurrPage - 1;
|
|
|
- echo "<a href=\"setting.php?item=term&page={$prevPage}\">上一页</a>";
|
|
|
- }
|
|
|
-
|
|
|
- echo "第<span style='display:inline-block;width:4em;'><input type=\"input\" value=\"" . ($iCurrPage + 1) . "\" size=\"4\" /></span>页";
|
|
|
- echo "共{$iPages}页";
|
|
|
-
|
|
|
- if ($iCurrPage < $iPages - 1) {
|
|
|
- echo "<a href=\"setting.php?item=term&page=" . ($iCurrPage + 1) . "\">下一页</a>";
|
|
|
- echo "<a href=\"setting.php?item=term&page=" . ($iPages - 1) . "\">最后一页</a>";
|
|
|
-
|
|
|
- } else {
|
|
|
- echo "下一页 | 最后一页";
|
|
|
- }
|
|
|
- ?>
|
|
|
- </div>
|
|
|
- <div>
|
|
|
- <div style="display:flex;">
|
|
|
- <div style='max-width:2em;flex:1;'></div>
|
|
|
- <div style='flex:1;'>Sn</div>
|
|
|
- <div style='flex:2;'>Spell</div>
|
|
|
- <div style='flex:2;'>Meaning</div>
|
|
|
- <div style='flex:2;'>Meaning2</div>
|
|
|
- <div style='flex:4;'>Note</div>
|
|
|
- <div style='flex:1;'>Language</div>
|
|
|
- <div style='flex:1;'>Channal</div>
|
|
|
- <div style='flex:1;'></div>
|
|
|
- </div>
|
|
|
- <?php
|
|
|
-
|
|
|
- foreach ($allWords as $key => $word) {
|
|
|
- echo '<div class="file_list_row" style="padding:5px;">';
|
|
|
- echo '<div style="max-width:2em;flex:1;"><input type="checkbox" /></div>';
|
|
|
- echo "<div style='flex:1;'>" . ($key + 1) . "</div>";
|
|
|
- echo "<div style='flex:2;'>{$word["word"]}</div>";
|
|
|
- echo "<div style='flex:2;'>{$word["meaning"]}</div>";
|
|
|
- echo "<div style='flex:2;'>{$word["other_meaning"]}</div>";
|
|
|
- echo "<div style='flex:4;'><textarea style='width:100%;'>{$word["note"]}</textarea></div>";
|
|
|
- echo "<div style='flex:1;'>{$word["language"]}</div>";
|
|
|
- echo "<div style='flex:1;'>{$word["channal"]}</div>";
|
|
|
- echo "<div style='flex:1;'><button onclick=\"term_edit_dlg_open('{$word["guid"]}')\">edit</button></div>";
|
|
|
- echo "</div>";
|
|
|
- }
|
|
|
-
|
|
|
- echo '</div>';
|
|
|
-}
|
|
|
-?>
|
|
|
-
|
|
|
- </div>
|
|
|
-
|
|
|
-
|
|
|
+<script src="../../node_modules/gridjs/dist/gridjs.umd.js"></script>
|
|
|
+<link
|
|
|
+ href="../../node_modules/gridjs/dist/theme/mermaid.min.css"
|
|
|
+ rel="stylesheet"
|
|
|
+ />
|
|
|
+
|
|
|
+<div id="userfilelist"></div>
|
|
|
+<script type="module" src="my_dict_list.js"></script>
|
|
|
<?php
|
|
|
require_once '../studio/index_foot.php';
|
|
|
?>
|