1{title help="notepad"}{tr}Notes{/tr}{/title}
2
3	{include file='tiki-mytiki_bar.tpl'}
4
5<div class="t_navbar">
6	{button href="tiki-notepad_write.php" _class="btn btn-primary" _text="{tr}Write a note{/tr}"}
7</div>
8
9<div style="text-align:center;">
10	<div style="height:20px; width:200px; border:1px solid black; background-color:#666666; text-align:left; margin:0 auto;">
11		<div style="background-color:red; height:100%; width:{$cellsize}px;"></div>
12	</div>
13	<small>{tr}quota{/tr}&nbsp;{$percentage}%</small>
14</div>
15
16{if count($channels) > 0 or $find ne ''}
17	{include file='find.tpl'}
18	<form action="tiki-notepad_list.php" method="post">
19		<div class="{if $js}table-responsive{/if}"> {*the table-responsive class cuts off dropdown menus *}
20			<table class="table table-striped table-hover">
21				<tr>
22					<th style="text-align:center;">
23						<input type="submit" class="btn btn-danger btn-sm" name="delete" title="{tr}Delete{/tr}" value="{tr}x{/tr} ">
24					</th>
25					<th>
26						<a href="tiki-notepad_list.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}">{tr}Name{/tr}</a>
27					</th>
28					<th>
29						<a href="tiki-notepad_list.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'parse_mode_desc'}parse_mode_asc{else}parse_mode_desc{/if}">{tr}Type{/tr}</a>
30					</th>
31					<th>
32						<a href="tiki-notepad_list.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'created_desc'}created_asc{else}created_desc{/if}">{tr}Created{/tr}</a>
33					</th>
34					<th>
35						<a href="tiki-notepad_list.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'lastModif_desc'}lastModif_asc{else}lastModif_desc{/if}">{tr}Last modified{/tr}</a>
36					</th>
37					<th style="text-align:right;">
38						<a href="tiki-notepad_list.php?offset={$offset}&amp;sort_mode={if $sort_mode eq 'size_desc'}size_asc{else}size_desc{/if}">{tr}Size{/tr}</a>
39					</th>
40					<th></th>
41				</tr>
42
43				{section name=user loop=$channels}
44					<tr>
45						<td class="id">
46							<div class="form-check">
47								<input type="checkbox" class="form-check-input" name="note[{$channels[user].noteId}]">
48							</div>
49						</td>
50						<td class="text">
51							<a class="link" href="tiki-notepad_read.php?noteId={$channels[user].noteId}">{$channels[user].name|escape}</a>
52						</td>
53						<td class="text">{$channels[user].parse_mode}</td>
54						<td class="date">{$channels[user].created|tiki_short_datetime}</td>
55						<td class="date">{$channels[user].lastModif|tiki_short_datetime}</td>
56						<td class="integer">{$channels[user].size|kbsize}</td>
57						<td class="action">
58							{actions}
59								{strip}
60									<action>
61										<a href="tiki-notepad_get.php?noteId={$channels[user].noteId}">
62											{icon name='view' _menu_text='y' _menu_icon='y' alt="{tr}View{/tr}"}
63										</a>
64									</action>
65									<action>
66										<a href="tiki-notepad_get.php?noteId={$channels[user].noteId}&amp;save=1">
67											{icon name='floppy' _menu_text='y' _menu_icon='y' alt="{tr}Save{/tr}"}
68										</a>
69									</action>
70									<action>
71										<a href="tiki-notepad_write.php?noteId={$channels[user].noteId}">
72											{icon name='edit' _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"}
73										</a>
74									</action>
75									<action>
76										<a href="tiki-notepad_read.php?noteId={$channels[user].noteId}&amp;remove=1">
77											{icon name='remove' _menu_text='y' _menu_icon='y' alt="{tr}Remove{/tr}"}
78										</a>
79									</action>
80								{/strip}
81							{/actions}
82						</td>
83					</tr>
84				{sectionelse}
85					<tr>
86						<td colspan="7">{tr}No notes yet{/tr}</td>
87					</tr>
88				{/section}
89				<tr>
90					<td colspan="7"><div class="form-inline">
91						<input type="submit" class="btn btn-primary btn-sm mr-2" name="merge" value="{tr}Merge selected notes into{/tr}">
92							<input type="text" class="form-control" name="merge_name" size="20"></div>
93					</td>
94				</tr>
95			</table>
96		</div>
97	</form>
98
99	{pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}
100{/if}
101
102<h2>{tr}Upload file{/tr}</h2>
103<form enctype="multipart/form-data" action="tiki-notepad_list.php" method="post">
104	<div class="form-group row">
105		<label class="col-sm-3 col-form-label">{tr}Upload file:{/tr}</label>
106		<div class="col-sm-7">
107			<input type="hidden" name="MAX_FILE_SIZE" value="10000000000000">
108			<input size="16" name="userfile1" type="file">
109		</div>
110	</div>
111	<div class="form-group row">
112		<label class="col-sm-3 col-form-label"></label>
113		<div class="col-sm-7">
114			<input type="submit" class="btn btn-primary" name="upload" value="{tr}Upload{/tr}">
115		</div>
116	</div>
117</form>
118