index.php 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952
  1. <?php
  2. session_start();
  3. if(isset($_SESSION['userlogin'], $_SESSION['userfirstname'])) {
  4. $email = $_SESSION['userlogin'];
  5. $name = $_SESSION['userfirstname'];
  6. }
  7. if(isset($_SESSION['canvas_id'])) {
  8. $canvas_id = $_SESSION['canvas_id'];
  9. }
  10. ?>
  11. <!DOCTYPE html>
  12. <html lang="en">
  13. <head>
  14. <meta charset="UTF-8">
  15. <meta name="viewport" content="width=device-width, initial-scale=1">
  16. <meta name="description" content="Brainstorm about the ethical implications of your project and represent them in a canvas.">
  17. <meta name="keywords" content="ethics canvas, ethics, social entrepreneurship, research, innovation, privacy, business development, business model canvas, open source tools">
  18. <title>The Ethics Canvas</title>
  19. <!-- Favicon -->
  20. <link rel="icon" href="../icon/favicon.ico" />
  21. <!-- Bootstrap -->
  22. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous" />
  23. <!-- Google font -->
  24. <link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet" type="text/css" />
  25. <!-- App style -->
  26. <link rel="stylesheet" type="text/css" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.14/themes/smoothness/jquery-ui.css" />
  27. <link rel="stylesheet" type="text/css" href="css/canvas.css" />
  28. <!-- PHP variables have to be retieved here as js variable -->
  29. <script type="text/javascript">
  30. var email_save_canvas = "<?php echo $email; ?>";
  31. var user_save_canvas = "<?php echo $name; ?>";
  32. var current_canvas_id = "<?php echo $canvas_id; ?>";
  33. </script>
  34. </head>
  35. <body>
  36. <div class="container-fluid">
  37. <form class="canvas-form form" action="mpdf/canvas-download.php" method="post" target="_blank">
  38. <!-- Username -->
  39. <input type="hidden" name="canvas_id" value="<?php echo($canvas_id); ?>" />
  40. <input type="hidden" name="username" value="<?php echo($email); ?>" />
  41. <!-- Canvas Form Header -->
  42. <div class="form-header row text-center">
  43. <div class="col-md-3">
  44. <!-- Logo -->
  45. <h1 class="page_title">
  46. <a class="logo" href="../index.html">
  47. <img src="icons/logo-black-text.svg" alt="Online Ethics Canvas" />
  48. </a>
  49. </h1>
  50. </div>
  51. <div class="col-md-3 ">
  52. <label class="project_title">Canvas Title</label>
  53. <input class="proj_title" name="field_00[]" type="text" value="New canvas" />
  54. </div>
  55. <input class="proj_date" name="field_00[]" type="hidden" />
  56. <!-- Collaborators -->
  57. <div class="col-md-3" id="collaborators-container">
  58. <!-- Bootstrap dropdown component -->
  59. <div class="dropdown" id="collaborators">
  60. <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu1">
  61. <img src="../icon/collaborators.svg" alt="collaborators" /><span>Collaborators (1 active)</span>
  62. </button>
  63. </div>
  64. </div>
  65. <!-- Log in -->
  66. <div class="col-md-3" id="user-profile-container">
  67. <?php if(!empty($name)) { ?>
  68. <!-- Bootstrap dropdown component -->
  69. <div class="dropdown" id="user-profile">
  70. <button class="btn btn-default dropdown-toggle" type="button" id="dropdownMenu2" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
  71. <img src="../icon/profile.svg"/><span><?php echo $name; ?></span>
  72. <span class="caret"></span>
  73. </button>
  74. <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
  75. <li><a id="toDashboard" href="php/dashboard.php">Your Canvases</a></li>
  76. <li role="separator" class="divider"></li>
  77. <li><a id="logout" href="#">Log Out</a></li>
  78. </ul>
  79. </div>
  80. <?php } ?>
  81. </div>
  82. </div>
  83. <!-- Jump to -->
  84. <div class="jump-to-click-area">&nbsp;</div>
  85. <div class="jump-to row">
  86. <div class="col-s-12">
  87. <label><img class="jump-to-img jump-to-arrow-0" src="icons/glyphicon-chevron-right.gif" />Jump to...</label>
  88. <div class="jump-to-list">
  89. <hr />
  90. <ul>
  91. <li>
  92. <a href="#row_saved_tags">Saved Tags for This Canvas</a>
  93. </li>
  94. <li>
  95. <a href="#panel_01">1.&nbsp;&nbsp;Individuals Affected</a>
  96. </li>
  97. <li>
  98. <a href="#panel_02">2.&nbsp;&nbsp;Groups Affected</a>
  99. </li>
  100. <li>
  101. <a href="#panel_03">3.&nbsp;&nbsp;Behaviour</a>
  102. </li>
  103. <li>
  104. <a href="#panel_04">4.&nbsp;&nbsp;Relations</a>
  105. </li>
  106. <li>
  107. <a href="#panel_05">5.&nbsp;&nbsp;Worldviews</a>
  108. </li>
  109. <li>
  110. <a href="#panel_06">6.&nbsp;&nbsp;Group Conflicts</a>
  111. </li>
  112. <li>
  113. <a href="#panel_07">7.&nbsp;&nbsp;Product or Service Failure</a>
  114. </li>
  115. <li>
  116. <a href="#panel_08">8.&nbsp;&nbsp;Problematic Use of Resources</a>
  117. </li>
  118. <li>
  119. <a href="#panel_09">9.&nbsp;&nbsp;What can we do?</a>
  120. </li>
  121. <li>
  122. <a href="#panel_10">10.&nbsp;&nbsp;Uncategorised Ideas</a>
  123. </li>
  124. </ul>
  125. </div>
  126. </div>
  127. </div>
  128. <!-- Saved Tags for This Canvas -->
  129. <div class="saved-tags row" id="row_saved_tags">
  130. <div class="col-s-12">
  131. <label>Saved Tags for This Canvas</label>
  132. <p>No tags could be found.</p>
  133. </div>
  134. </div>
  135. <!-- LAYOUT -->
  136. <!-- ================ 7/5 col ================ -->
  137. <div class="canvas-box">
  138. <div class="masonry-layout7-5" id="7-5-col-layout">
  139. <div class="masonry-layout__panel" id="panel_01">
  140. <div class="card field_01 masonry-layout__panel-content bg--purple">
  141. <h2 class="field-title">
  142. <!-- FIELD -->
  143. <a href="#" data-toggle="tooltip" data-placement="left" title="Who use your product or service? Who are affected by it’s use? Are they men/women, of different ages, etc?"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span></a>Individuals Affected&nbsp;&nbsp;
  144. </h2>
  145. <!-- Item list in the field -->
  146. <!-- The ul id is used in js code to give the right name attribute to the added cards (user input) -->
  147. <ul id="field_01" class="item_list sortable connectedList">
  148. </ul>
  149. <!-- The Box With All User input Thing -->
  150. <!-- # Tag selected term link -->
  151. <p class="tag-selected-term">
  152. <a href="#">
  153. Tag selected term
  154. </a>
  155. </p>
  156. <div class="add_box">
  157. <!-- # Add idea link -->
  158. <p>
  159. <a class="add-idea" href="#">
  160. Add an idea
  161. </a>
  162. </p>
  163. <!-- # User Input -->
  164. <div class="user-input">
  165. <label>Your Idea</label><br />
  166. <p>
  167. <textarea class="new_item expandable" rows="2" maxlength="100" data-limit-rows="true" data-autoresize type="text" name="new_item" placeholder="Write an idea here ..."></textarea>
  168. </p>
  169. <p class="chars-count">
  170. <span class="chars">100</span>
  171. characters remaining
  172. </p>
  173. <button type="button" class="add_btn">Add</button>
  174. </div>
  175. <!-- End of user input -->
  176. </div>
  177. <!-- End of add_box -->
  178. <div class="field-bottom">
  179. <img src="./icons/field1.svg" alt="field1" />
  180. <img src="./icons/number1.svg" alt="number1" />
  181. </div>
  182. </div>
  183. <!-- End of .card -->
  184. </div>
  185. <div class="masonry-layout__panel" id="panel_03">
  186. <div class="card field_03 masonry-layout__panel-content bg--blue">
  187. <h2 class="field-title">
  188. <!-- FIELD -->
  189. <a href="#" data-toggle="tooltip" data-placement="left" title="How might people’s behaviour change because of your product or service? Their habits, time schedules, choice of activities, etc?"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span></a>Behaviour
  190. </h2>
  191. <!-- Item list in the field -->
  192. <!-- The ul id is used in js code to give the right name attribute to the added cards (user input) -->
  193. <ul id="field_03" class="item_list sortable connectedList">
  194. </ul>
  195. <!-- The Box With All User input Thing -->
  196. <!-- # Tag selected term link -->
  197. <p class="tag-selected-term">
  198. <a href="#">
  199. Tag selected term
  200. </a>
  201. </p>
  202. <div class="add_box">
  203. <!-- # Add idea link -->
  204. <p>
  205. <a class="add-idea" href="#">
  206. Add an idea
  207. </a>
  208. </p>
  209. <!-- # User Input -->
  210. <div class="user-input">
  211. <label>Your Idea</label><br />
  212. <p>
  213. <textarea class="new_item expandable" rows="2" maxlength="100" data-limit-rows="true" data-autoresize type="text" name="new_item" placeholder="Write an idea here ..."></textarea>
  214. </p>
  215. <p class="chars-count">
  216. <span class="chars">100</span>
  217. characters remaining
  218. </p>
  219. <button type="button" class="add_btn">Add</button>
  220. </div>
  221. <!-- End of user input -->
  222. </div>
  223. <!-- End of add_box -->
  224. <div class="field-bottom">
  225. <img src="./icons/field3.svg" alt="field3" />
  226. <img src="./icons/number3.svg" alt="number3" />
  227. </div>
  228. </div>
  229. <!-- End of .card -->
  230. </div>
  231. <div class="masonry-layout__panel" id="panel_04">
  232. <div class="card field_04 masonry-layout__panel-content bg--green">
  233. <h2 class="field-title">
  234. <!-- Field -->
  235. <a href="#" data-toggle="tooltip" data-placement="left" title="How might relations between people and groups change because of your product or service? Between friends, family members, co-workers, etc?"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span></a>Relations
  236. </h2>
  237. <!-- Item list in the field -->
  238. <!-- The ul id is used in js code to give the right name attribute to the added cards (user input) -->
  239. <ul id="field_04" class="item_list sortable connectedList">
  240. </ul>
  241. <!-- The Box With All User input Thing -->
  242. <!-- # Tag selected term link -->
  243. <p class="tag-selected-term">
  244. <a href="#">
  245. Tag selected term
  246. </a>
  247. </p>
  248. <div class="add_box">
  249. <!-- # Add idea link -->
  250. <p>
  251. <a class="add-idea" href="#">
  252. Add an idea
  253. </a>
  254. </p>
  255. <!-- # User Input -->
  256. <div class="user-input">
  257. <label>Your Idea</label><br />
  258. <p>
  259. <textarea class="new_item expandable" rows="2" maxlength="100" data-limit-rows="true" data-autoresize type="text" name="new_item" placeholder="Write an idea here ..."></textarea>
  260. </p>
  261. <p class="chars-count">
  262. <span class="chars">100</span>
  263. characters remaining
  264. </p>
  265. <button type="button" class="add_btn">Add</button>
  266. </div>
  267. <!-- End of user input -->
  268. </div>
  269. <!-- End of add_box -->
  270. <div class="field-bottom">
  271. <img src="./icons/field4.svg" alt="field4" />
  272. <img src="./icons/number4.svg" alt="number4" />
  273. </div>
  274. </div>
  275. <!-- End of .card -->
  276. </div>
  277. <div class="masonry-layout__panel" id="panel_09">
  278. <div class="card field_09 masonry-layout__panel-content bg--darkblue">
  279. <h2 class="field-title">
  280. <!-- Field -->
  281. <a href="#" data-toggle="tooltip" data-placement="left" title="What are the most important ethical impacts you found? How can you address these by changing your design, organisation, or by proposing broader changes?"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span></a>What can we do?
  282. </h2>
  283. <!-- Item list in the field -->
  284. <!-- The ul id is used in js code to give the right name attribute to the added cards (user input) -->
  285. <ul id="field_09" class="item_list sortable connectedList">
  286. </ul>
  287. <!-- The Box With All User input Thing -->
  288. <!-- # Tag selected term link -->
  289. <p class="tag-selected-term">
  290. <a href="#">
  291. Tag selected term
  292. </a>
  293. </p>
  294. <div class="add_box">
  295. <!-- # Add idea link -->
  296. <p>
  297. <a class="add-idea" href="#">
  298. Add an idea
  299. </a>
  300. </p>
  301. <!-- # User Input -->
  302. <div class="user-input">
  303. <label>Your Idea</label><br />
  304. <p>
  305. <textarea class="new_item expandable" rows="2" maxlength="100" data-limit-rows="true" data-autoresize type="text" name="new_item" placeholder="Write an idea here ..."></textarea>
  306. </p>
  307. <p class="chars-count">
  308. <span class="chars">100</span>
  309. characters remaining
  310. </p>
  311. <button type="button" class="add_btn">Add</button>
  312. </div>
  313. <!-- End of user input -->
  314. </div>
  315. <!-- End of add_box -->
  316. <div class="field-bottom">
  317. <img src="./icons/field9.svg" alt="field9" />
  318. <img src="./icons/number9.svg" alt="number9" />
  319. </div>
  320. </div>
  321. <!-- End of .card -->
  322. </div>
  323. <div class="masonry-layout__panel" id="panel_05">
  324. <div class="card field_05 masonry-layout__panel-content bg--seagreen">
  325. <h2 class="field-title">
  326. <!-- Field -->
  327. <a href="#" data-toggle="tooltip" data-placement="left" title="How might people’s worldviews be affected by your product or service? Their ideas about consumption, religion, work, etc?"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span></a>Worldviews
  328. </h2>
  329. <!-- Item list in the field -->
  330. <!-- The ul id is used in js code to give the right name attribute to the added cards (user input) -->
  331. <ul id="field_05" class="item_list sortable connectedList">
  332. </ul>
  333. <!-- The Box With All User input Thing -->
  334. <!-- # Tag selected term link -->
  335. <p class="tag-selected-term">
  336. <a href="#">
  337. Tag selected term
  338. </a>
  339. </p>
  340. <div class="add_box">
  341. <!-- # Add idea link -->
  342. <p>
  343. <a class="add-idea" href="#">
  344. Add an idea
  345. </a>
  346. </p>
  347. <!-- # User Input -->
  348. <div class="user-input">
  349. <label>Your Idea</label><br />
  350. <p>
  351. <textarea class="new_item expandable" rows="2" maxlength="100" data-limit-rows="true" data-autoresize type="text" name="new_item" placeholder="Write an idea here ..."></textarea>
  352. </p>
  353. <p class="chars-count">
  354. <span class="chars">100</span>
  355. characters remaining
  356. </p>
  357. <button type="button" class="add_btn">Add</button>
  358. </div>
  359. <!-- End of user input -->
  360. </div>
  361. <!-- End of add_box -->
  362. <div class="field-bottom">
  363. <img src="./icons/field5.svg" alt="field5" />
  364. <img src="./icons/number5.svg" alt="number5" />
  365. </div>
  366. </div>
  367. <!-- End of .card -->
  368. </div>
  369. <div class="masonry-layout__panel" id="panel_06">
  370. <div class="card field_06 masonry-layout__panel-content bg--green1">
  371. <h2 class="field-title">
  372. <!-- Field -->
  373. <a href="#" data-toggle="tooltip" data-placement="left" title="How might group conflict arise or be affected by your product or service? Could it disciminate between people, put them out of work, etc?"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span></a>Group Conflicts
  374. </h2>
  375. <!-- Item list in the field -->
  376. <!-- The ul id is used in js code to give the right name attribute to the added cards (user input) -->
  377. <ul id="field_06" class="item_list sortable connectedList">
  378. </ul>
  379. <!-- The Box With All User input Thing -->
  380. <!-- # Tag selected term link -->
  381. <p class="tag-selected-term">
  382. <a href="#">
  383. Tag selected term
  384. </a>
  385. </p>
  386. <div class="add_box">
  387. <!-- # Add idea link -->
  388. <p>
  389. <a class="add-idea" href="#">
  390. Add an idea
  391. </a>
  392. </p>
  393. <!-- # User Input -->
  394. <div class="user-input">
  395. <label>Your Idea</label><br />
  396. <p>
  397. <textarea class="new_item expandable" rows="2" maxlength="100" data-limit-rows="true" data-autoresize type="text" name="new_item" placeholder="Write an idea here ..."></textarea>
  398. </p>
  399. <p class="chars-count">
  400. <span class="chars">100</span>
  401. characters remaining
  402. </p>
  403. <button type="button" class="add_btn">Add</button>
  404. </div>
  405. <!-- End of user input -->
  406. </div>
  407. <!-- End of add_box -->
  408. <div class="field-bottom">
  409. <img src="./icons/field6.svg" alt="field6" />
  410. <img src="./icons/number6.svg" alt="number6" />
  411. </div>
  412. </div>
  413. <!-- End of .card -->
  414. </div>
  415. <div class="masonry-layout__panel" id="panel_02">
  416. <div class="card field_02 masonry-layout__panel-content bg--purple">
  417. <h2 class="field-title">
  418. <!-- Field -->
  419. <a href="#" data-toggle="tooltip" data-placement="left" title="Which groups are involved in the design, production, distribution and use of your product or service? Which groups might be affected by it? Are these work-related organisation, interest groups, etc?"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span></a>Groups Affected
  420. </h2>
  421. <!-- Item list in the field -->
  422. <!-- The ul id is used in js code to give the right name attribute to the added cards (user input) -->
  423. <ul id="field_02" class="item_list sortable connectedList">
  424. </ul>
  425. <!-- The Box With All User input Thing -->
  426. <!-- # Tag selected term link -->
  427. <p class="tag-selected-term">
  428. <a href="#">
  429. Tag selected term
  430. </a>
  431. </p>
  432. <div class="add_box">
  433. <!-- # Add idea link -->
  434. <p>
  435. <a class="add-idea" href="#">
  436. Add an idea
  437. </a>
  438. </p>
  439. <!-- # User Input -->
  440. <div class="user-input">
  441. <label>Your Idea</label><br />
  442. <p>
  443. <textarea class="new_item expandable" rows="2" maxlength="100" data-limit-rows="true" data-autoresize type="text" name="new_item" placeholder="Write an idea here ..."></textarea>
  444. </p>
  445. <p class="chars-count">
  446. <span class="chars">100</span>
  447. characters remaining
  448. </p>
  449. <button type="button" class="add_btn">Add</button>
  450. </div>
  451. <!-- End of user input -->
  452. </div>
  453. <!-- End of add_box -->
  454. <div class="field-bottom">
  455. <img src="./icons/field2.svg" alt="field2" />
  456. <img src="./icons/number2.svg" alt="number2" />
  457. </div>
  458. </div>
  459. <!-- End of .card -->
  460. </div>
  461. </div>
  462. <!-- ================ 2 col ================ -->
  463. <div class="masonry-layout2" id="2-col-layout">
  464. <div class="masonry-layout__panel" id="panel_07">
  465. <div class="card field_07 masonry-layout__panel-content bg--blue">
  466. <h2 class="field-title">
  467. <!-- Field -->
  468. <a href="#" data-toggle="tooltip" data-placement="left" title="What are potential negative impact of your product or service failing to operate or to be used as intended? What happens with technical errors, security failures, etc?"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span></a>Product or Service Failure
  469. </h2>
  470. <!-- Item list in the field -->
  471. <!-- The ul id is used in js code to give the right name attribute to the added cards (user input) -->
  472. <ul id="field_07" class="item_list sortable connectedList">
  473. </ul>
  474. <!-- The Box With All User input Thing -->
  475. <!-- # Tag selected term link -->
  476. <p class="tag-selected-term">
  477. <a href="#">
  478. Tag selected term
  479. </a>
  480. </p>
  481. <div class="add_box">
  482. <!-- # Add idea link -->
  483. <p>
  484. <a class="add-idea" href="#">
  485. Add an idea
  486. </a>
  487. </p>
  488. <!-- # User Input -->
  489. <div class="user-input">
  490. <label>Your Idea</label><br />
  491. <p>
  492. <textarea class="new_item expandable" rows="2" maxlength="100" data-limit-rows="true" data-autoresize type="text" name="new_item" placeholder="Write an idea here ..."></textarea>
  493. </p>
  494. <p class="chars-count">
  495. <span class="chars">100</span>
  496. characters remaining
  497. </p>
  498. <button type="button" class="add_btn">Add</button>
  499. </div>
  500. <!-- End of user input -->
  501. </div>
  502. <!-- End of add_box -->
  503. <div class="field-bottom">
  504. <img src="./icons/field7.svg" alt="field7" />
  505. <img src="./icons/number7.svg" alt="number7" />
  506. </div>
  507. </div>
  508. <!-- End of .card -->
  509. </div>
  510. <div class="masonry-layout__panel" id="panel_08">
  511. <div class="card field_08 masonry-layout__panel-content bg--green">
  512. <h2 class="field-title">
  513. <!-- Field -->
  514. <a href="#" data-toggle="tooltip" data-placement="left" title="What are potential negative impacts of the consumption of resources relating to your project? What happens with its use of energy, personal data, etc?"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span></a>Problematic Use of Resources
  515. </h2>
  516. <!-- Item list in the field -->
  517. <!-- The ul id is used in js code to give the right name attribute to the added cards (user input) -->
  518. <ul id="field_08" class="item_list sortable connectedList">
  519. </ul>
  520. <!-- The Box With All User input Thing -->
  521. <!-- # Tag selected term link -->
  522. <p class="tag-selected-term">
  523. <a href="#">
  524. Tag selected term
  525. </a>
  526. </p>
  527. <div class="add_box">
  528. <!-- # Add idea link -->
  529. <p>
  530. <a class="add-idea" href="#">
  531. Add an idea
  532. </a>
  533. </p>
  534. <!-- # User Input -->
  535. <div class="user-input">
  536. <label>Your Idea</label><br />
  537. <p>
  538. <textarea class="new_item expandable" rows="2" maxlength="100" data-limit-rows="true" data-autoresize type="text" name="new_item" placeholder="Write an idea here ..."></textarea>
  539. </p>
  540. <p class="chars-count">
  541. <span class="chars">100</span>
  542. characters remaining
  543. </p>
  544. <button type="button" class="add_btn">Add</button>
  545. </div>
  546. <!-- End of user input -->
  547. </div>
  548. <!-- End of add_box -->
  549. <div class="field-bottom">
  550. <img src="./icons/field8.svg" alt="field8" />
  551. <img src="./icons/number8.svg" alt="number8" />
  552. </div>
  553. </div>
  554. <!-- End of .card -->
  555. </div>
  556. </div>
  557. <!-- ================ 1 col ================ -->
  558. <div class="masonry-layout" id="1-col-layout">
  559. <div class="masonry-layout__panel" id="panel_10">
  560. <div class="card field_10 masonry-layout__panel-content bg--purple">
  561. <h2 class="field-title">
  562. <!-- Field -->
  563. <a href="#" data-toggle="tooltip" data-placement="left" title="Here you can place your ideas that still haven't been categorised"><span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span></a>Uncategorised Ideas
  564. </h2>
  565. <!-- Item list in the field -->
  566. <!-- The ul id is used in js code to give the right name attribute to the added cards (user input) -->
  567. <ul id="field_10" class="item_list sortable connectedList">
  568. </ul>
  569. <!-- The Box With All User input Thing -->
  570. <!-- # Tag selected term link -->
  571. <p class="tag-selected-term">
  572. <a href="#">
  573. Tag selected term
  574. </a>
  575. </p>
  576. <div class="add_box">
  577. <!-- # Add idea link -->
  578. <p>
  579. <a class="add-idea" href="#">
  580. Add an idea
  581. </a>
  582. </p>
  583. <!-- # User Input -->
  584. <div class="user-input">
  585. <label>Your Idea</label><br />
  586. <p>
  587. <textarea class="new_item expandable" rows="2" maxlength="100" data-limit-rows="true" data-autoresize type="text" name="new_item" placeholder="Write an idea here ..."></textarea>
  588. </p>
  589. <p class="chars-count">
  590. <span class="chars">100</span>
  591. characters remaining
  592. </p>
  593. <button type="button" class="add_btn">Add</button>
  594. </div>
  595. <!-- End of user input -->
  596. </div>
  597. <!-- End of add_box -->
  598. <div class="field-bottom">
  599. <img src="./icons/field10.svg" alt="field10" />
  600. </div>
  601. </div>
  602. <!-- End of .card -->
  603. </div>
  604. </div>
  605. </div>
  606. <!-- End of .canvas.box -->
  607. <!-- FORM BUTTON BOX -->
  608. <div class="row">
  609. <div class="imp-exp-btn col-md-4 col-md-offset-4">
  610. <!-- Form button -->
  611. <?php if(!empty($name)) { ?>
  612. <div id="saved-automatically"><p><span class="glyphicon glyphicon-ok" aria-hidden="true"></span>The canvas is saved automatically</p></div>
  613. <!-- BEGIN SHARE CANVAS -->
  614. <!--
  615. <p class="text-center">
  616. <button class="share_canvas" type="submit" name="share-canvas">Email This Canvas</button>
  617. </p>
  618. <div class="share_canvas_email text-center">
  619. <p>
  620. <label>Send this canvas to:</label>
  621. </p>
  622. <p>
  623. <input type="email" name="share-canvas-email" placeholder="Please enter an email address..."/>
  624. </p>
  625. <p class="text-center">
  626. <button class="share_canvas_send" type="button" name="share-canvas-send">Send</button>
  627. </p>
  628. </div>
  629. -->
  630. <!-- END SHARE CANVAS -->
  631. <?php } else { ?>
  632. <p class="text-center">
  633. <!-- Export JSON and also save the canvas for the registered user -->
  634. <a class="login-to-save" href="../index.html">Sign&nbsp;up&nbsp;or&nbsp;login to&nbsp;save&nbsp;your&nbsp;canvas</a>
  635. </p>
  636. <?php }?>
  637. <!-- BEGIN EXPORT PDF -->
  638. <p class="text-center">
  639. <input class="pdf_exp" type="submit" name="export-pdf" value="Download as PDF">
  640. </p>
  641. <!-- END EXPORT PDF -->
  642. <!-- BEGIN PUBLISH CANVAS -->
  643. <p class="text-center">
  644. <button class="publish_canvas" name="publish-canvas">Publish for viewing/commenting</button>
  645. </p>
  646. <!-- END PUBLISH PDF -->
  647. </div>
  648. </div>
  649. <!-- Start of comments-window -->
  650. <div class="window" id="comments-window">
  651. <div class="window-heading">
  652. <button type="button" class="close" aria-label="Close">
  653. <span aria-hidden="true">&times;</span>
  654. </button>
  655. <h1><span class="glyphicon glyphicon-comment"></span> Comments</h1>
  656. </div>
  657. <div class="window-content">
  658. <h2>
  659. Comment Idea
  660. </h2>
  661. <textarea rows="4" cols="50" maxlength="200" id="comments-new">Please enter a comment...</textarea><br />
  662. <p class="chars-count">
  663. <span class="chars">200</span>
  664. characters remaining
  665. </p>
  666. <button type="button" class="window-button" id="comments-post">Post Comment</button>
  667. <h2 id="comments-thread-heading">Comment Thread</h2>
  668. <table id="comments-thread"></table>
  669. <p id="comments-none">No comments have been posted yet.</p>
  670. <button type="button" class="window-button" id="comments-resolve">Resolve Comments</button>
  671. </div>
  672. </div>
  673. <!-- End of comments-window -->
  674. <!-- Start of move-window -->
  675. <div class="window" id="move-window">
  676. <div class="window-heading">
  677. <button type="button" class="close" aria-label="Close">
  678. <span aria-hidden="true">&times;</span>
  679. </button>
  680. </div>
  681. <div class="window-content">
  682. <h2>Move idea to...</h2>
  683. <ul>
  684. <li>
  685. <a href="#">1.&nbsp;&nbsp;Individuals Affected</a>
  686. </li>
  687. <li>
  688. <a href="#">2.&nbsp;&nbsp;Groups Affected</a>
  689. </li>
  690. <li>
  691. <a href="#">3.&nbsp;&nbsp;Behaviour</a>
  692. </li>
  693. <li>
  694. <a href="#">4.&nbsp;&nbsp;Relations</a>
  695. </li>
  696. <li>
  697. <a href="#">5.&nbsp;&nbsp;Worldviews</a>
  698. </li>
  699. <li>
  700. <a href="#">6.&nbsp;&nbsp;Group Conflicts</a>
  701. </li>
  702. <li>
  703. <a href="#">7.&nbsp;&nbsp;Product or Service Failure</a>
  704. </li>
  705. <li>
  706. <a href="#">8.&nbsp;&nbsp;Problematic Use of Resources</a>
  707. </li>
  708. <li>
  709. <a href="#">9.&nbsp;&nbsp;What can we do?</a>
  710. </li>
  711. <li>
  712. <a href="#">10.&nbsp;&nbsp;Uncategorised Ideas</a>
  713. </li>
  714. </ul>
  715. </div>
  716. </div>
  717. <!-- End of move-window -->
  718. <!-- Start of tag-window -->
  719. <div class="window" id="tag-window">
  720. <div class="window-heading">
  721. <button type="button" class="close" aria-label="Close">
  722. <span aria-hidden="true">&times;</span>
  723. </button>
  724. <h1></h1>
  725. </div>
  726. <div class="window-content">
  727. <h2 id="tag-description">
  728. Tag Description
  729. </h2>
  730. <textarea rows="4" cols="50" maxlength="200" id="tag-description">Please enter a description...</textarea><br />
  731. <p class="chars-count">
  732. <span class="chars">200</span>
  733. characters remaining
  734. </p>
  735. <div id="tag-buttons">
  736. <button type="button" class="window-button" id="save-tag">Save Tag</button>&nbsp;
  737. <button type="button" class="window-button" id="delete-tag">Delete Tag</button>
  738. </div>
  739. <h2 class="similar-tags">Similar tags in other canvases</h2>
  740. <p class="similar-tags-description-none">No similar tags could be found.</p>
  741. <!-- </div> -->
  742. </div>
  743. </div>
  744. <!-- End of tag-window -->
  745. <!-- Start of Collaborators -->
  746. <div class="window" id="collaborators-window">
  747. <div class="window-heading">
  748. <button type="button" class="close" aria-label="Close">
  749. <span aria-hidden="true">&times;</span>
  750. </button>
  751. <h1>
  752. <img src="icons/icon-collaborators.svg" alt="collaborators" /> Collaborators
  753. </h1>
  754. </div>
  755. <div class="window-content">
  756. <h2>
  757. Owner of the Canvas
  758. </h2>
  759. <p id="canvas-owner">
  760. <?php echo $email; ?>
  761. </p>
  762. <h2>
  763. List of Collaborators
  764. </h2>
  765. <table>
  766. <tr>
  767. <th>Active</th>
  768. <th>Name</th>
  769. <th>Username</th>
  770. <th>Remove</th>
  771. </tr>
  772. <tr>
  773. <td class='collaborators-active'><span class='glyphicon glyphicon-ok-sign'></span></td>
  774. <td><?php echo $name; ?></td>
  775. <td><?php echo $email; ?></td>
  776. <td>
  777. </td>
  778. </tr>
  779. </table>
  780. <label><input type="checkbox" name="show-only-active" /> Show only active collaborators</label><br />
  781. <h2>
  782. Add Collaborator
  783. </h2>
  784. <!-- <input type="email" name="add-collaborator" value="Please enter an email address..." /> -->
  785. <div id="collaborator-email" contenteditable="true">Please enter an email address...</div>
  786. <button type="button" class="window-button" id="add-collaborator">Add</button>
  787. <div class="error-message" id="user-is-not-member">The user is not a member!</div>
  788. <div class="error-message" id="username-already-exists">The username already exists!</div>
  789. <div class="error-message" id="enter-valid-email">Please enter a valid email address!</div>
  790. </div>
  791. </div>
  792. <!-- End of Collaborators -->
  793. </form>
  794. <!-- End of .form -->
  795. <!-- Hidden place to show JSON info -->
  796. <pre id="result" class="text-center">
  797. </pre>
  798. <div class="row">
  799. <footer class="col-md-12 text-center">
  800. <div class="contact">
  801. <h2>Contact us:</h2>
  802. <p>hello@ethicscanvas.org</p>
  803. </div>
  804. <div class="license">
  805. <p>The Ethics Canvas is adapted from Alex Osterwalder’s Business Model Canvas.</p>
  806. <p>The Business Model Canvas is designed by: Business Model Foundry AG.
  807. </p>
  808. <p>
  809. This work is licensed under the Creative Commons Attribution-Share Alike 3.0 unported license.</p>
  810. <p class="cc"><span class="glyphicon glyphicon-list" aria-hidden="true"></span> View a copy of this license on:</p>
  811. <p>
  812. <a href="https://creativecommons.org/licenses/by-sa/3.0/">creativecommons.org</a>
  813. </p>
  814. <p class="bmc"><span class="glyphicon glyphicon-th-large" aria-hidden="true"></span>
  815. View the original Business Model Canvas on:
  816. </p>
  817. <p>
  818. <a href="https://strategyzer.com/canvas">strategyzer.com</a>
  819. </p>
  820. </div>
  821. <div class="license-icons">
  822. <ul>
  823. <li><img src="../icon/by.large.png" alt="ethics-canvas-by-icon"/> </li>
  824. <li><img src="../icon/share.large.png" alt="ethics-canvas-share-icon"/> </li>
  825. <li><img src="../icon/cc.large.png" alt="ethics-canvas-cc-icon"/> </li>
  826. <li><img src="../icon/remix.large.png" alt="ethics-canvas-remix-icon"/></li>
  827. <li><img src="../icon/sa.large.png" alt="ethics-canvas-sa-icon"/></li>
  828. </ul>
  829. </div>
  830. <p class="ethics-copy terms"><a href="../privacy-terms/terms.html">Terms of Service</a></p>
  831. <p class="ethics-copy privacy"><a href="../privacy-terms/privacy.html">Privacy Policy</a></p>
  832. <p class="ethics-copy">The ADAPT Centre for Digital Content Technology</p> <p class="ethics-copy">is funded under the SFI Research Centres Programme (Grant 13/RC/2106).</p><p class="ethics-copy">It is co-funded under the European Regional Development Fund.</p>
  833. <p class="ethics-copy">Ethics Canvas v1.8&nbsp;|&nbsp;&copy; ADAPT Centre &amp; Trinity College Dublin &amp; Dublin City University, 2017</p>
  834. </footer>
  835. </div>
  836. </div>
  837. <!-- End of container-fluid -->
  838. <!-- Start of dialogs -->
  839. <div id="shadow">&nbsp;</div>
  840. <div class="dialog" id="dialog-log-in">
  841. <div class="dialog-header">
  842. <button type="button" class="close" aria-label="Close">
  843. <span aria-hidden="true">&times;</span>
  844. </button>
  845. <h2>
  846. Please log in
  847. </h2>
  848. </div>
  849. <div class="dialog-content"><p>Please log in to use this function.</p></div>
  850. </div>
  851. <div class="dialog" id="dialog-select-term">
  852. <div class="dialog-header">
  853. <button type="button" class="close" aria-label="Close">
  854. <span aria-hidden="true">&times;</span>
  855. </button>
  856. <h2>
  857. Please select term
  858. </h2>
  859. </div>
  860. <div class="dialog-content"><p>Please select a term to be tagged.</p></div>
  861. </div>
  862. <div class="dialog" id="dialog-please-save">
  863. <div class="dialog-header">
  864. <button type="button" class="close" aria-label="Close">
  865. <span aria-hidden="true">&times;</span>
  866. </button>
  867. <h2>
  868. Please save first
  869. </h2>
  870. </div>
  871. <div class="dialog-content"><p>Please save the canvas to use this function.</p></div>
  872. </div>
  873. <div class="dialog" id="dialog-delete-idea">
  874. <div class="dialog-header">
  875. <button type="button" class="close" aria-label="Close">
  876. <span aria-hidden="true">&times;</span>
  877. </button>
  878. <h2>
  879. Delete?
  880. </h2>
  881. </div>
  882. <div class="dialog-content">
  883. <p>This idea has comments. Are you sure you want to delete it?</p>
  884. <button type="button" class="window-button" id="button-yes">Yes</button>
  885. <button type="button" class="window-button" id="button-cancel">Cancel</button>
  886. </div>
  887. </div>
  888. <div class="dialog window-dialog" id="dialog-remove-collaborator">
  889. <div class="dialog-header">
  890. <button type="button" class="close" aria-label="Close">
  891. <span aria-hidden="true">&times;</span>
  892. </button>
  893. <h2>
  894. Remove?
  895. </h2>
  896. </div>
  897. <div class="dialog-content">
  898. <p>Are you sure you want to remove this collaborator?</p>
  899. <button type="button" class="window-button" id="button-yes">Yes</button>
  900. <button type="button" class="window-button" id="button-cancel">Cancel</button>
  901. </div>
  902. </div>
  903. <div class="dialog window-dialog" id="dialog-resolve-comments">
  904. <div class="dialog-header">
  905. <button type="button" class="close" aria-label="Close">
  906. <span aria-hidden="true">&times;</span>
  907. </button>
  908. <h2>
  909. Resolve?
  910. </h2>
  911. </div>
  912. <div class="dialog-content">
  913. <p>Are you sure you want to resolve and delete all comments?</p>
  914. <button type="button" class="window-button" id="button-yes">Yes</button>
  915. <button type="button" class="window-button" id="button-cancel">Cancel</button>
  916. </div>
  917. </div>
  918. <!-- End of dialogs -->
  919. <!-- jQuery -->
  920. <script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
  921. <!-- jquery UI -->
  922. <script src="https://code.jquery.com/ui/1.12.0-rc.2/jquery-ui.min.js" integrity="sha256-55Jz3pBCF8z9jBO1qQ7cIf0L+neuPTD1u7Ytzrp2dqo=" crossorigin="anonymous"></script>
  923. <!-- Bootstrap -->
  924. <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
  925. <!-- Bootstrap -->
  926. <script src="js/jquery-fieldselection.min.js"></script>
  927. <!-- The app javascript -->
  928. <script src="js/canvas.js" charset="utf-8"></script>
  929. <script language="javascript" type="text/javascript"></script>
  930. </body>
  931. </html>