adminUser-edit.html 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <meta content="width=device-width, initial-scale=1.0" name="viewport">
  6. <title>Ark Cards</title>
  7. <meta content="" name="description">
  8. <meta content="" name="keywords">
  9. <!-- Favicons -->
  10. <link href="assets/img/favicon.png" rel="icon">
  11. <link href="assets/img/apple-touch-icon.png" rel="apple-touch-icon">
  12. <!-- Google Fonts -->
  13. <link href="https://fonts.gstatic.com" rel="preconnect">
  14. <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Nunito:300,300i,400,400i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
  15. <!-- Vendor CSS Files -->
  16. <link href="assets/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
  17. <link href="assets/vendor/bootstrap-icons/bootstrap-icons.css" rel="stylesheet">
  18. <link href="assets/vendor/boxicons/css/boxicons.min.css" rel="stylesheet">
  19. <link href="assets/vendor/quill/quill.snow.css" rel="stylesheet">
  20. <link href="assets/vendor/quill/quill.bubble.css" rel="stylesheet">
  21. <link href="assets/vendor/remixicon/remixicon.css" rel="stylesheet">
  22. <link href="assets/vendor/simple-datatables/style.css" rel="stylesheet">
  23. <!-- Template Main CSS File -->
  24. <link href="assets/css/style.css" rel="stylesheet">
  25. <!-- Ark Cards -->
  26. <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
  27. <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
  28. <script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
  29. <!-- =======================================================
  30. * Template Name: NiceAdmin - v2.2.0
  31. * Template URL: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/
  32. * Author: BootstrapMade.com
  33. * License: https://bootstrapmade.com/license/
  34. ======================================================== -->
  35. </head>
  36. <body>
  37. <!-- ======= Header ======= -->
  38. <header id="header" class="header fixed-top d-flex align-items-center">
  39. <div class="d-flex align-items-center justify-content-between">
  40. <a href="index.html" class="logo d-flex align-items-center">
  41. <!-- <img src="assets/img/logo.png" alt=""> -->
  42. <img src="assets/img/ark_logo.png" alt="Ark Cards">
  43. <span class="d-none d-lg-block">Ark Cards</span>
  44. </a>
  45. <i class="bi bi-list toggle-sidebar-btn"></i>
  46. </div>
  47. <!--
  48. <div class="search-bar">
  49. <form class="search-form d-flex align-items-center" method="POST" action="#">
  50. <input type="text" name="query" placeholder="Search" title="Enter search keyword">
  51. <button type="submit" title="Search"><i class="bi bi-search"></i></button>
  52. </form>
  53. </div>
  54. <nav class="header-nav ms-auto">
  55. <ul class="d-flex align-items-center">
  56. <li class="nav-item d-block d-lg-none">
  57. <a class="nav-link nav-icon search-bar-toggle " href="#">
  58. <i class="bi bi-search"></i>
  59. </a>
  60. </li>
  61. <li class="nav-item dropdown">
  62. <a class="nav-link nav-icon" href="#" data-bs-toggle="dropdown">
  63. <i class="bi bi-bell"></i>
  64. <span class="badge bg-primary badge-number">4</span>
  65. </a>
  66. <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow notifications">
  67. <li class="dropdown-header">
  68. You have 4 new notifications
  69. <a href="#"><span class="badge rounded-pill bg-primary p-2 ms-2">View all</span></a>
  70. </li>
  71. <li>
  72. <hr class="dropdown-divider">
  73. </li>
  74. <li class="notification-item">
  75. <i class="bi bi-exclamation-circle text-warning"></i>
  76. <div>
  77. <h4>Lorem Ipsum</h4>
  78. <p>Quae dolorem earum veritatis oditseno</p>
  79. <p>30 min. ago</p>
  80. </div>
  81. </li>
  82. <li>
  83. <hr class="dropdown-divider">
  84. </li>
  85. <li class="notification-item">
  86. <i class="bi bi-x-circle text-danger"></i>
  87. <div>
  88. <h4>Atque rerum nesciunt</h4>
  89. <p>Quae dolorem earum veritatis oditseno</p>
  90. <p>1 hr. ago</p>
  91. </div>
  92. </li>
  93. <li>
  94. <hr class="dropdown-divider">
  95. </li>
  96. <li class="notification-item">
  97. <i class="bi bi-check-circle text-success"></i>
  98. <div>
  99. <h4>Sit rerum fuga</h4>
  100. <p>Quae dolorem earum veritatis oditseno</p>
  101. <p>2 hrs. ago</p>
  102. </div>
  103. </li>
  104. <li>
  105. <hr class="dropdown-divider">
  106. </li>
  107. <li class="notification-item">
  108. <i class="bi bi-info-circle text-primary"></i>
  109. <div>
  110. <h4>Dicta reprehenderit</h4>
  111. <p>Quae dolorem earum veritatis oditseno</p>
  112. <p>4 hrs. ago</p>
  113. </div>
  114. </li>
  115. <li>
  116. <hr class="dropdown-divider">
  117. </li>
  118. <li class="dropdown-footer">
  119. <a href="#">Show all notifications</a>
  120. </li>
  121. </ul>
  122. </li>
  123. <li class="nav-item dropdown">
  124. <a class="nav-link nav-icon" href="#" data-bs-toggle="dropdown">
  125. <i class="bi bi-chat-left-text"></i>
  126. <span class="badge bg-success badge-number">3</span>
  127. </a>
  128. <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow messages">
  129. <li class="dropdown-header">
  130. You have 3 new messages
  131. <a href="#"><span class="badge rounded-pill bg-primary p-2 ms-2">View all</span></a>
  132. </li>
  133. <li>
  134. <hr class="dropdown-divider">
  135. </li>
  136. <li class="message-item">
  137. <a href="#">
  138. <img src="assets/img/messages-1.jpg" alt="" class="rounded-circle">
  139. <div>
  140. <h4>Maria Hudson</h4>
  141. <p>Velit asperiores et ducimus soluta repudiandae labore officia est ut...</p>
  142. <p>4 hrs. ago</p>
  143. </div>
  144. </a>
  145. </li>
  146. <li>
  147. <hr class="dropdown-divider">
  148. </li>
  149. <li class="message-item">
  150. <a href="#">
  151. <img src="assets/img/messages-2.jpg" alt="" class="rounded-circle">
  152. <div>
  153. <h4>Anna Nelson</h4>
  154. <p>Velit asperiores et ducimus soluta repudiandae labore officia est ut...</p>
  155. <p>6 hrs. ago</p>
  156. </div>
  157. </a>
  158. </li>
  159. <li>
  160. <hr class="dropdown-divider">
  161. </li>
  162. <li class="message-item">
  163. <a href="#">
  164. <img src="assets/img/messages-3.jpg" alt="" class="rounded-circle">
  165. <div>
  166. <h4>David Muldon</h4>
  167. <p>Velit asperiores et ducimus soluta repudiandae labore officia est ut...</p>
  168. <p>8 hrs. ago</p>
  169. </div>
  170. </a>
  171. </li>
  172. <li>
  173. <hr class="dropdown-divider">
  174. </li>
  175. <li class="dropdown-footer">
  176. <a href="#">Show all messages</a>
  177. </li>
  178. </ul>
  179. </li>
  180. <li class="nav-item dropdown pe-3">
  181. <a class="nav-link nav-profile d-flex align-items-center pe-0" href="#" data-bs-toggle="dropdown">
  182. <img src="assets/img/profile-img.jpg" alt="Profile" class="rounded-circle">
  183. <span class="d-none d-md-block dropdown-toggle ps-2">K. Anderson</span>
  184. </a>
  185. <ul class="dropdown-menu dropdown-menu-end dropdown-menu-arrow profile">
  186. <li class="dropdown-header">
  187. <h6>Kevin Anderson</h6>
  188. <span>Web Designer</span>
  189. </li>
  190. <li>
  191. <hr class="dropdown-divider">
  192. </li>
  193. <li>
  194. <a class="dropdown-item d-flex align-items-center" href="users-profile.html">
  195. <i class="bi bi-person"></i>
  196. <span>My Profile</span>
  197. </a>
  198. </li>
  199. <li>
  200. <hr class="dropdown-divider">
  201. </li>
  202. <li>
  203. <a class="dropdown-item d-flex align-items-center" href="users-profile.html">
  204. <i class="bi bi-gear"></i>
  205. <span>Account Settings</span>
  206. </a>
  207. </li>
  208. <li>
  209. <hr class="dropdown-divider">
  210. </li>
  211. <li>
  212. <a class="dropdown-item d-flex align-items-center" href="pages-faq.html">
  213. <i class="bi bi-question-circle"></i>
  214. <span>Need Help?</span>
  215. </a>
  216. </li>
  217. <li>
  218. <hr class="dropdown-divider">
  219. </li>
  220. <li>
  221. <a class="dropdown-item d-flex align-items-center" href="#">
  222. <i class="bi bi-box-arrow-right"></i>
  223. <span>Sign Out</span>
  224. </a>
  225. </li>
  226. </ul>
  227. </li> -->
  228. </ul>
  229. </nav>
  230. </header>
  231. <!-- ======= Sidebar ======= -->
  232. <aside id="sidebar" class="sidebar">
  233. <ul class="sidebar-nav" id="sidebar-nav">
  234. <li class="nav-item">
  235. <a class="nav-link collapsed" href="transaction.html">
  236. <i class="bi bi-grid"></i>
  237. <span>交易記錄</span>
  238. </a>
  239. </li>
  240. <li class="nav-item">
  241. <a class="nav-link collapsed" href="nft.html">
  242. <i class="bi bi-grid"></i>
  243. <span>NFT管理</span>
  244. </a>
  245. </li>
  246. <li class="nav-item">
  247. <a class="nav-link collapsed" href="user.html">
  248. <i class="bi bi-grid"></i>
  249. <span>會員帳號管理</span>
  250. </a>
  251. </li>
  252. <!-- <li class="nav-item">
  253. <a class="nav-link collapsed" href="mint.html">
  254. <i class="bi bi-grid"></i>
  255. <span>Mint管理</span>
  256. </a>
  257. </li> -->
  258. <!-- <li class="nav-item">
  259. <a class="nav-link collapsed" href="index.html">
  260. <i class="bi bi-grid"></i>
  261. <span>Dashboard</span>
  262. </a>
  263. </li>
  264. <li class="nav-item">
  265. <a class="nav-link collapsed" data-bs-target="#components-nav" data-bs-toggle="collapse" href="#">
  266. <i class="bi bi-menu-button-wide"></i><span>Components</span><i class="bi bi-chevron-down ms-auto"></i>
  267. </a>
  268. <ul id="components-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
  269. <li>
  270. <a href="components-alerts.html">
  271. <i class="bi bi-circle"></i><span>Alerts</span>
  272. </a>
  273. </li>
  274. <li>
  275. <a href="components-accordion.html">
  276. <i class="bi bi-circle"></i><span>Accordion</span>
  277. </a>
  278. </li>
  279. <li>
  280. <a href="components-badges.html">
  281. <i class="bi bi-circle"></i><span>Badges</span>
  282. </a>
  283. </li>
  284. <li>
  285. <a href="components-breadcrumbs.html">
  286. <i class="bi bi-circle"></i><span>Breadcrumbs</span>
  287. </a>
  288. </li>
  289. <li>
  290. <a href="components-buttons.html">
  291. <i class="bi bi-circle"></i><span>Buttons</span>
  292. </a>
  293. </li>
  294. <li>
  295. <a href="components-cards.html">
  296. <i class="bi bi-circle"></i><span>Cards</span>
  297. </a>
  298. </li>
  299. <li>
  300. <a href="components-carousel.html">
  301. <i class="bi bi-circle"></i><span>Carousel</span>
  302. </a>
  303. </li>
  304. <li>
  305. <a href="components-list-group.html">
  306. <i class="bi bi-circle"></i><span>List group</span>
  307. </a>
  308. </li>
  309. <li>
  310. <a href="components-modal.html">
  311. <i class="bi bi-circle"></i><span>Modal</span>
  312. </a>
  313. </li>
  314. <li>
  315. <a href="components-tabs.html">
  316. <i class="bi bi-circle"></i><span>Tabs</span>
  317. </a>
  318. </li>
  319. <li>
  320. <a href="components-pagination.html">
  321. <i class="bi bi-circle"></i><span>Pagination</span>
  322. </a>
  323. </li>
  324. <li>
  325. <a href="components-progress.html">
  326. <i class="bi bi-circle"></i><span>Progress</span>
  327. </a>
  328. </li>
  329. <li>
  330. <a href="components-spinners.html">
  331. <i class="bi bi-circle"></i><span>Spinners</span>
  332. </a>
  333. </li>
  334. <li>
  335. <a href="components-tooltips.html">
  336. <i class="bi bi-circle"></i><span>Tooltips</span>
  337. </a>
  338. </li>
  339. </ul>
  340. </li>
  341. <li class="nav-item">
  342. <a class="nav-link " data-bs-target="#forms-nav" data-bs-toggle="collapse" href="#">
  343. <i class="bi bi-journal-text"></i><span>Forms</span><i class="bi bi-chevron-down ms-auto"></i>
  344. </a>
  345. <ul id="forms-nav" class="nav-content collapse show" data-bs-parent="#sidebar-nav">
  346. <li>
  347. <a href="nft_add.html" class="active">
  348. <i class="bi bi-circle"></i><span>Form Elements</span>
  349. </a>
  350. </li>
  351. <li>
  352. <a href="forms-layouts.html">
  353. <i class="bi bi-circle"></i><span>Form Layouts</span>
  354. </a>
  355. </li>
  356. <li>
  357. <a href="forms-editors.html">
  358. <i class="bi bi-circle"></i><span>Form Editors</span>
  359. </a>
  360. </li>
  361. <li>
  362. <a href="forms-validation.html">
  363. <i class="bi bi-circle"></i><span>Form Validation</span>
  364. </a>
  365. </li>
  366. </ul>
  367. </li>
  368. <li class="nav-item">
  369. <a class="nav-link collapsed" data-bs-target="#tables-nav" data-bs-toggle="collapse" href="#">
  370. <i class="bi bi-layout-text-window-reverse"></i><span>Tables</span><i class="bi bi-chevron-down ms-auto"></i>
  371. </a>
  372. <ul id="tables-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
  373. <li>
  374. <a href="tables-general.html">
  375. <i class="bi bi-circle"></i><span>General Tables</span>
  376. </a>
  377. </li>
  378. <li>
  379. <a href="user.html">
  380. <i class="bi bi-circle"></i><span>Data Tables</span>
  381. </a>
  382. </li>
  383. </ul>
  384. </li>
  385. <li class="nav-item">
  386. <a class="nav-link collapsed" data-bs-target="#charts-nav" data-bs-toggle="collapse" href="#">
  387. <i class="bi bi-bar-chart"></i><span>Charts</span><i class="bi bi-chevron-down ms-auto"></i>
  388. </a>
  389. <ul id="charts-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
  390. <li>
  391. <a href="charts-chartjs.html">
  392. <i class="bi bi-circle"></i><span>Chart.js</span>
  393. </a>
  394. </li>
  395. <li>
  396. <a href="charts-apexcharts.html">
  397. <i class="bi bi-circle"></i><span>ApexCharts</span>
  398. </a>
  399. </li>
  400. <li>
  401. <a href="charts-echarts.html">
  402. <i class="bi bi-circle"></i><span>ECharts</span>
  403. </a>
  404. </li>
  405. </ul>
  406. </li>
  407. <li class="nav-item">
  408. <a class="nav-link collapsed" data-bs-target="#icons-nav" data-bs-toggle="collapse" href="#">
  409. <i class="bi bi-gem"></i><span>Icons</span><i class="bi bi-chevron-down ms-auto"></i>
  410. </a>
  411. <ul id="icons-nav" class="nav-content collapse " data-bs-parent="#sidebar-nav">
  412. <li>
  413. <a href="icons-bootstrap.html">
  414. <i class="bi bi-circle"></i><span>Bootstrap Icons</span>
  415. </a>
  416. </li>
  417. <li>
  418. <a href="icons-remix.html">
  419. <i class="bi bi-circle"></i><span>Remix Icons</span>
  420. </a>
  421. </li>
  422. <li>
  423. <a href="icons-boxicons.html">
  424. <i class="bi bi-circle"></i><span>Boxicons</span>
  425. </a>
  426. </li>
  427. </ul>
  428. </li>
  429. <li class="nav-heading">Pages</li>
  430. <li class="nav-item">
  431. <a class="nav-link collapsed" href="users-profile.html">
  432. <i class="bi bi-person"></i>
  433. <span>Profile</span>
  434. </a>
  435. </li>
  436. <li class="nav-item">
  437. <a class="nav-link collapsed" href="pages-faq.html">
  438. <i class="bi bi-question-circle"></i>
  439. <span>F.A.Q</span>
  440. </a>
  441. </li>
  442. <li class="nav-item">
  443. <a class="nav-link collapsed" href="pages-contact.html">
  444. <i class="bi bi-envelope"></i>
  445. <span>Contact</span>
  446. </a>
  447. </li>
  448. <li class="nav-item">
  449. <a class="nav-link collapsed" href="pages-register.html">
  450. <i class="bi bi-card-list"></i>
  451. <span>Register</span>
  452. </a>
  453. </li>
  454. <li class="nav-item">
  455. <a class="nav-link collapsed" href="login.html">
  456. <i class="bi bi-box-arrow-in-right"></i>
  457. <span>Login</span>
  458. </a>
  459. </li>
  460. <li class="nav-item">
  461. <a class="nav-link collapsed" href="pages-error-404.html">
  462. <i class="bi bi-dash-circle"></i>
  463. <span>Error 404</span>
  464. </a>
  465. </li>
  466. <li class="nav-item">
  467. <a class="nav-link collapsed" href="pages-blank.html">
  468. <i class="bi bi-file-earmark"></i>
  469. <span>Blank</span>
  470. </a>
  471. </li> -->
  472. </ul>
  473. </aside>
  474. <main id="main" class="main">
  475. <div class="pagetitle">
  476. <h1>編輯管理者</h1>
  477. <nav>
  478. <ol class="breadcrumb">
  479. <li class="breadcrumb-item"><a href="index.html">Home</a></li>
  480. <li class="breadcrumb-item active">adminUser-add</li>
  481. </ol>
  482. </nav>
  483. </div><!-- End Page Title -->
  484. <section class="section">
  485. <div class="row">
  486. <div class="col-lg-6">
  487. <div class="card">
  488. <div class="card-body">
  489. <h5 class="card-title">NFT</h5>
  490. <form id="nft_add_form" method="post" enctype="multipart/form-data">
  491. <div class="row mb-3">
  492. <label for="inputText" class="col-sm-2 col-form-label">名稱</label>
  493. <div class="col-sm-10 mt-2">
  494. <div id="title"></div>
  495. </div>
  496. </div>
  497. <div class="row mb-3">
  498. <label for="email" class="col-sm-2 col-form-label">Email</label>
  499. <div class="col-sm-10 mt-2">
  500. <div id="email"></div>
  501. </div>
  502. </div>
  503. <!-- <div class="row mb-3">
  504. <label for="password" class="col-sm-2 col-form-label">密碼</label>
  505. <div class="col-sm-10">
  506. <input id="password" name="title" type="text" class="form-control">
  507. </div>
  508. </div> -->
  509. <div class="row mb-3">
  510. <legend class="col-form-label col-sm-2 pt-0">啟用</legend>
  511. <div class="col-sm-10">
  512. <div class="form-check">
  513. <input id="is_active_checkbox" name="is_active_checkbox" class="form-check-input" type="checkbox">
  514. <!-- <label class="form-check-label" for="is_active"></label> -->
  515. <input id="is_active" name="is_active" type="text" class="form-control d-none">
  516. </div>
  517. </div>
  518. </div>
  519. <div class="row mb-3">
  520. <div class="text-center">
  521. <button id="btn_nft_add" type="submit" class="btn btn-primary">確認送出</button>
  522. </div>
  523. </div>
  524. </form>
  525. <!-- General Form Elements -->
  526. <!-- <form>
  527. <div class="row mb-3">
  528. <label for="inputText" class="col-sm-2 col-form-label">Text</label>
  529. <div class="col-sm-10">
  530. <input type="text" class="form-control">
  531. </div>
  532. </div>
  533. <div class="row mb-3">
  534. <label for="inputEmail" class="col-sm-2 col-form-label">Email</label>
  535. <div class="col-sm-10">
  536. <input type="email" class="form-control">
  537. </div>
  538. </div>
  539. <div class="row mb-3">
  540. <label for="inputPassword" class="col-sm-2 col-form-label">Password</label>
  541. <div class="col-sm-10">
  542. <input type="password" class="form-control">
  543. </div>
  544. </div>
  545. <div class="row mb-3">
  546. <label for="inputNumber" class="col-sm-2 col-form-label">Number</label>
  547. <div class="col-sm-10">
  548. <input type="number" class="form-control">
  549. </div>
  550. </div>
  551. <div class="row mb-3">
  552. <label for="inputNumber" class="col-sm-2 col-form-label">File Upload</label>
  553. <div class="col-sm-10">
  554. <input class="form-control" type="file" id="formFile">
  555. </div>
  556. </div>
  557. <div class="row mb-3">
  558. <label for="inputDate" class="col-sm-2 col-form-label">Date</label>
  559. <div class="col-sm-10">
  560. <input type="date" class="form-control">
  561. </div>
  562. </div>
  563. <div class="row mb-3">
  564. <label for="inputTime" class="col-sm-2 col-form-label">Time</label>
  565. <div class="col-sm-10">
  566. <input type="time" class="form-control">
  567. </div>
  568. </div>
  569. <div class="row mb-3">
  570. <label for="inputColor" class="col-sm-2 col-form-label">Color Picker</label>
  571. <div class="col-sm-10">
  572. <input type="color" class="form-control form-control-color" id="exampleColorInput" value="#4154f1" title="Choose your color">
  573. </div>
  574. </div>
  575. <div class="row mb-3">
  576. <label for="inputPassword" class="col-sm-2 col-form-label">Textarea</label>
  577. <div class="col-sm-10">
  578. <textarea class="form-control" style="height: 100px"></textarea>
  579. </div>
  580. </div>
  581. <fieldset class="row mb-3">
  582. <legend class="col-form-label col-sm-2 pt-0">Radios</legend>
  583. <div class="col-sm-10">
  584. <div class="form-check">
  585. <input class="form-check-input" type="radio" name="gridRadios" id="gridRadios1" value="option1" checked>
  586. <label class="form-check-label" for="gridRadios1">
  587. First radio
  588. </label>
  589. </div>
  590. <div class="form-check">
  591. <input class="form-check-input" type="radio" name="gridRadios" id="gridRadios2" value="option2">
  592. <label class="form-check-label" for="gridRadios2">
  593. Second radio
  594. </label>
  595. </div>
  596. <div class="form-check disabled">
  597. <input class="form-check-input" type="radio" name="gridRadios" id="gridRadios" value="option" disabled>
  598. <label class="form-check-label" for="gridRadios3">
  599. Third disabled radio
  600. </label>
  601. </div>
  602. </div>
  603. </fieldset>
  604. <div class="row mb-3">
  605. <legend class="col-form-label col-sm-2 pt-0">Checkboxes</legend>
  606. <div class="col-sm-10">
  607. <div class="form-check">
  608. <input class="form-check-input" type="checkbox" id="gridCheck1">
  609. <label class="form-check-label" for="gridCheck1">
  610. Example checkbox
  611. </label>
  612. </div>
  613. <div class="form-check">
  614. <input class="form-check-input" type="checkbox" id="gridCheck2" checked>
  615. <label class="form-check-label" for="gridCheck2">
  616. Example checkbox 2
  617. </label>
  618. </div>
  619. </div>
  620. </div>
  621. <div class="row mb-3">
  622. <label class="col-sm-2 col-form-label">Disabled</label>
  623. <div class="col-sm-10">
  624. <input type="text" class="form-control" value="Read only / Disabled" disabled>
  625. </div>
  626. </div>
  627. <div class="row mb-3">
  628. <label class="col-sm-2 col-form-label">Select</label>
  629. <div class="col-sm-10">
  630. <select class="form-select" aria-label="Default select example">
  631. <option selected>Open this select menu</option>
  632. <option value="1">One</option>
  633. <option value="2">Two</option>
  634. <option value="3">Three</option>
  635. </select>
  636. </div>
  637. </div>
  638. <div class="row mb-3">
  639. <label class="col-sm-2 col-form-label">Multi Select</label>
  640. <div class="col-sm-10">
  641. <select class="form-select" multiple aria-label="multiple select example">
  642. <option selected>Open this select menu</option>
  643. <option value="1">One</option>
  644. <option value="2">Two</option>
  645. <option value="3">Three</option>
  646. </select>
  647. </div>
  648. </div>
  649. <div class="row mb-3">
  650. <label class="col-sm-2 col-form-label">Submit Button</label>
  651. <div class="col-sm-10">
  652. <button type="submit" class="btn btn-primary">Submit Form</button>
  653. </div>
  654. </div>
  655. </form> -->
  656. </div>
  657. </div>
  658. </div>
  659. <!-- <div class="col-lg-6">
  660. <div class="card">
  661. <div class="card-body">
  662. <h5 class="card-title">Advanced Form Elements</h5>
  663. <form>
  664. <div class="row mb-5">
  665. <label class="col-sm-2 col-form-label">Switches</label>
  666. <div class="col-sm-10">
  667. <div class="form-check form-switch">
  668. <input class="form-check-input" type="checkbox" id="flexSwitchCheckDefault">
  669. <label class="form-check-label" for="flexSwitchCheckDefault">Default switch checkbox input</label>
  670. </div>
  671. <div class="form-check form-switch">
  672. <input class="form-check-input" type="checkbox" id="flexSwitchCheckChecked" checked>
  673. <label class="form-check-label" for="flexSwitchCheckChecked">Checked switch checkbox input</label>
  674. </div>
  675. <div class="form-check form-switch">
  676. <input class="form-check-input" type="checkbox" id="flexSwitchCheckDisabled" disabled>
  677. <label class="form-check-label" for="flexSwitchCheckDisabled">Disabled switch checkbox input</label>
  678. </div>
  679. <div class="form-check form-switch">
  680. <input class="form-check-input" type="checkbox" id="flexSwitchCheckCheckedDisabled" checked disabled>
  681. <label class="form-check-label" for="flexSwitchCheckCheckedDisabled">Disabled checked switch checkbox input</label>
  682. </div>
  683. </div>
  684. </div>
  685. <div class="row mb-5">
  686. <label class="col-sm-2 col-form-label">Ranges</label>
  687. <div class="col-sm-10">
  688. <div>
  689. <label for="customRange1" class="form-label">Example range</label>
  690. <input type="range" class="form-range" id="customRange1">
  691. </div>
  692. <div>
  693. <label for="disabledRange" class="form-label">Disabled range</label>
  694. <input type="range" class="form-range" id="disabledRange" disabled>
  695. </div>
  696. <div>
  697. <label for="customRange2" class="form-label">Min and max with steps</label>
  698. <input type="range" class="form-range" min="0" max="5" step="0.5" id="customRange2">
  699. </div>
  700. </div>
  701. </div>
  702. <div class="row mb-3">
  703. <label class="col-sm-2 col-form-label">Floating labels</label>
  704. <div class="col-sm-10">
  705. <div class="form-floating mb-3">
  706. <input type="email" class="form-control" id="floatingInput" placeholder="name@example.com">
  707. <label for="floatingInput">Email address</label>
  708. </div>
  709. <div class="form-floating mb-3">
  710. <input type="password" class="form-control" id="floatingPassword" placeholder="Password">
  711. <label for="floatingPassword">Password</label>
  712. </div>
  713. <div class="form-floating mb-3">
  714. <textarea class="form-control" placeholder="Leave a comment here" id="floatingTextarea" style="height: 100px;"></textarea>
  715. <label for="floatingTextarea">Comments</label>
  716. </div>
  717. <div class="form-floating mb-3">
  718. <select class="form-select" id="floatingSelect" aria-label="Floating label select example">
  719. <option selected>Open this select menu</option>
  720. <option value="1">One</option>
  721. <option value="2">Two</option>
  722. <option value="3">Three</option>
  723. </select>
  724. <label for="floatingSelect">Works with selects</label>
  725. </div>
  726. </div>
  727. </div>
  728. <div class="row mb-5">
  729. <label class="col-sm-2 col-form-label">Input groups</label>
  730. <div class="col-sm-10">
  731. <div class="input-group mb-3">
  732. <span class="input-group-text" id="basic-addon1">@</span>
  733. <input type="text" class="form-control" placeholder="Username" aria-label="Username" aria-describedby="basic-addon1">
  734. </div>
  735. <div class="input-group mb-3">
  736. <input type="text" class="form-control" placeholder="Recipient's username" aria-label="Recipient's username" aria-describedby="basic-addon2">
  737. <span class="input-group-text" id="basic-addon2">@example.com</span>
  738. </div>
  739. <label for="basic-url" class="form-label">Your vanity URL</label>
  740. <div class="input-group mb-3">
  741. <span class="input-group-text" id="basic-addon3">https://example.com/users/</span>
  742. <input type="text" class="form-control" id="basic-url" aria-describedby="basic-addon3">
  743. </div>
  744. <div class="input-group mb-3">
  745. <span class="input-group-text">$</span>
  746. <input type="text" class="form-control" aria-label="Amount (to the nearest dollar)">
  747. <span class="input-group-text">.00</span>
  748. </div>
  749. <div class="input-group mb-3">
  750. <input type="text" class="form-control" placeholder="Username" aria-label="Username">
  751. <span class="input-group-text">@</span>
  752. <input type="text" class="form-control" placeholder="Server" aria-label="Server">
  753. </div>
  754. <div class="input-group">
  755. <span class="input-group-text">With textarea</span>
  756. <textarea class="form-control" aria-label="With textarea"></textarea>
  757. </div>
  758. </div>
  759. </div>
  760. </form>
  761. </div>
  762. </div>
  763. </div> -->
  764. </div>
  765. </section>
  766. </main><!-- End #main -->
  767. <!-- ======= Footer ======= -->
  768. <footer id="footer" class="footer">
  769. <div class="copyright">
  770. &copy; Copyright <strong><span>Ark Cards</span></strong>. All Rights Reserved
  771. </div>
  772. <div class="credits">
  773. <!-- All the links in the footer should remain intact. -->
  774. <!-- You can delete the links only if you purchased the pro version. -->
  775. <!-- Licensing information: https://bootstrapmade.com/license/ -->
  776. <!-- Purchase the pro version with working PHP/AJAX contact form: https://bootstrapmade.com/nice-admin-bootstrap-admin-html-template/ -->
  777. Designed by <a href="https://ai.choozmo.com/">Choozmo</a>
  778. </div>
  779. </footer><!-- End Footer -->
  780. <a href="#" class="back-to-top d-flex align-items-center justify-content-center"><i class="bi bi-arrow-up-short"></i></a>
  781. <!-- Vendor JS Files -->
  782. <script src="assets/vendor/apexcharts/apexcharts.min.js"></script>
  783. <script src="assets/vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
  784. <script src="assets/vendor/chart.js/chart.min.js"></script>
  785. <script src="assets/vendor/echarts/echarts.min.js"></script>
  786. <script src="assets/vendor/quill/quill.min.js"></script>
  787. <script src="assets/vendor/simple-datatables/simple-datatables.js"></script>
  788. <script src="assets/vendor/tinymce/tinymce.min.js"></script>
  789. <script src="assets/vendor/php-email-form/validate.js"></script>
  790. <!-- Template Main JS File -->
  791. <script src="assets/js/main.js"></script>
  792. <!-- Ark Cards JS File -->
  793. <script src="assets/js/ark.js"></script>
  794. <script>
  795. // 檢查是否可存取該頁面
  796. checkRoute();
  797. var access_token = get_access_token();
  798. var headers = {'Authorization': 'Bearer ' + access_token}
  799. let Data;
  800. function getpathId(){
  801. let id = window.location.search.split('?').pop();
  802. return id.split('=')[1];
  803. }
  804. const id = Number(getpathId());
  805. axios({
  806. method: 'get',
  807. url: `https://api.ptt.cx:8750/api/v1/user/${id}`,
  808. headers: {
  809. 'accept': 'application/json',
  810. 'Authorization': `Bearer ${access_token}`
  811. },
  812. }).then(res => {
  813. Data = {...res.data}
  814. console.log(Data);
  815. $('#title').text(res.data.account);
  816. $('#email').text(res.data.email);
  817. if(res.data.is_active) {
  818. $('#is_active_checkbox').attr('checked', true)
  819. } else {
  820. $('#is_active_checkbox').attr('checked', false)
  821. }
  822. }).catch(err => {
  823. console.log(err);
  824. })
  825. $("#nft_add_form").submit(function(e) {
  826. e.preventDefault();
  827. // 資料庫欄位型態是tinyint(1),所以另外用is_active_checkbox、is_active欄位來做轉換
  828. // if ($("#is_active_checkbox").is(':checked')) {
  829. // $('#is_active').val(1);
  830. // } else {
  831. // $('#is_active').val(0);
  832. // }
  833. let {useraddress, email, userid, account, is_superuser} = Data;
  834. let data = {
  835. useraddress,
  836. email,
  837. userid,
  838. account,
  839. hashed_password: '',
  840. is_superuser: $("#is_active_checkbox").is(':checked'),
  841. is_active: $("#is_active_checkbox").is(':checked')
  842. }
  843. console.log(data)
  844. axios({
  845. method: 'put',
  846. url: `https://api.ptt.cx:8750/api/v1/user/${id}`,
  847. headers: {
  848. 'accept': 'application/json',
  849. 'Authorization': `Bearer ${access_token}`,
  850. 'Content-Type': 'application/json'
  851. },
  852. data
  853. }).then(res => {
  854. console.log(res.data)
  855. Swal.fire({
  856. title: '成功',
  857. icon: 'success',
  858. text: '修改成功',
  859. confirmButtonColor: '#3085d6'
  860. });
  861. window.setTimeout(() => {
  862. window.location.href = 'user.html';
  863. }, 2000);
  864. }).catch(err => {
  865. console.log(err);
  866. Swal.fire({
  867. title: '錯誤',
  868. icon: 'success',
  869. text: '請稍後再試',
  870. confirmButtonColor: '#3085d6'
  871. });
  872. })
  873. return false;
  874. });
  875. </script>
  876. </body>
  877. </html>