<commit_before>{* $Id$ *}
{title help="Menus" url="tiki-admin_menu_options.php?menuId=$menuId"}{tr}Admin Menu:{/tr} {$editable_menu_info.name}{/title}

<div class="navbar">
<span class="button2"><a href="tiki-admin_menus.php" class="linkbut">{tr}List menus{/tr}</a></span>
<span class="button2"><a href="tiki-admin_menus.php?menuId={$menuId}" class="linkbut">{tr}Edit this menu{/tr}</a></span>
<span class="button2"><a href="#export" class="linkbut">{tr}Export{/tr}</a></span>
<span class="button2"><a href="#import" class="linkbut">{tr}Import{/tr}</a></span>
</div>
<br />
<table><tr>
<td valign="top">
<table class="normal"><tr><td valign="top" class="odd" colspan="2">
<h2>{tr}Edit menu options{/tr}</h2>
<div style="text-align: right;">
<a href="#" onclick="toggle('weburls');toggle('urltop');hide('show');show('hide');" id="show" style="display:block;">{tr}Show Quick Urls{/tr}</a>
</div>
</td>
<td valign="top" class="even" id="urltop" style="display:none;">
<h2>{tr}Some useful URLs{/tr}</h2>
<div style="text-align: right;">
<a href="#" onclick="toggle('weburls');toggle('urltop');hide('hide');show('show');" id="hide" style="display:none;">{tr}Hide Quick Urls{/tr}</a>
</div>
</td>
</tr>
<tr><td valign="top" class="odd" colspan="2">
<form action="tiki-admin_menu_options.php" method="post">
<input type="hidden" name="optionId" value="{$optionId|escape}" />
<input type="hidden" name="menuId" value="{$menuId|escape}" />
<input type="hidden" name="offset" value="{$offset|escape}" />
 {if !empty($nbRecords)}<input type="hidden" name="nbRecords" value="{$nbRecords|escape}" />{/if}
<table>
<tr class="formcolor"><td>{tr}Name{/tr}:</td><td colspan="3"><input id="menu_name" type="text" name="name" value="{$name|escape}" size="34" /></td></tr>
<tr class="formcolor"><td>{tr}URL{/tr}:</td><td colspan="3"><input id="menu_url" type="text" name="url" value="{$url|escape}" size="34" />
<br /><em>{tr}For wiki page, use ((PageName)).{/tr}</em>
</td></tr>
<tr class="formcolor"><td>{tr}Sections{/tr}:</td><td colspan="3"><input id="menu_section" type="text" name="section" value="{$section|escape}" size="34" /><br /><em>{tr}Separate multiple sections with a comma ( , ).{/tr}</em></td></tr>
<tr class="formcolor"><td>{tr}Permissions{/tr}:</td><td colspan="3"><input id="menu_perm" type="text" name="perm" value="{$perm|escape}" size="34" /><br /><em>{tr}Separate multiple permissions with a comma ( , ).{/tr}</em></td></tr>
<tr class="formcolor"><td>{tr}Group{/tr}:</td><td colspan="3">
<select id="menu_groupname" name="groupname[]" size="4" multiple>
<option value="">&nbsp;</option>
{foreach key=k item=i from=$option_groups}
<option value="{$k}" {$i}>{$k}</option>
{/foreach}
</select>
{if $option_groups|@count ge '2'}
{remarksbox type="tip" title="{tr}Tip{/tr}"}{tr}Use Ctrl+Click to select multiple groups.{/tr}{/remarksbox}
{/if}
</td></tr>
{if $prefs.feature_userlevels eq 'y'}
<tr class="formcolor"><td>{tr}Level{/tr}:</td><td colspan="3">
<select name="level">
<option value="0"{if $level eq 0} selected="selected"{/if}>{tr}All{/tr}</option>
{foreach key=levn item=lev from=$prefs.userlevels}
<option value="{$levn}"{if $userlevel eq $levn} selected="selected"{/if}>{$lev}</option>
{/foreach}
</select>
</td>
</tr>
{/if}
<tr class="formcolor"><td>{tr}Type{/tr}:</td><td>
<select name="type">
<option value="o" {if $type eq 'o'}selected="selected"{/if}>{tr}option{/tr}</option>
<option value="s" {if $type eq 's'}selected="selected"{/if}>{tr}section level 0{/tr}</option>
<option value='1' {if $type eq '1'}selected="selected"{/if}>{tr}section level 1{/tr}</option>
<option value='2' {if $type eq '2'}selected="selected"{/if}>{tr}section level 2{/tr}</option>
<option value='3' {if $type eq '3'}selected="selected"{/if}>{tr}section level 3{/tr}</option>
<option value="r" {if $type eq 'r'}selected="selected"{/if}>{tr}sorted section level 0{/tr}</option>
<option value="-" {if $type eq '-'}selected="selected"{/if}>{tr}separator{/tr}</option>
</select>
</td>
<td>{tr}Position{/tr}:</td><td><input type="text" name="position" value="{$position|escape}" size="6" /></td></tr>
<tr class="formcolor"><td>&nbsp;</td><td colspan="3"><input type="submit" name="save" value="{tr}Save{/tr}" /></td></tr>
</table>
</form>
</td>
<td valign="top" class="even" id="weburls" style="display:none;">
<table>
<tr><td>{tr}Home{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="{$prefs.tikiIndex},{tr}Home Page{/tr}">{tr}Home Page{/tr}</option>
{if $prefs.home_blog}<option value="tiki-view_blog.php?blogId={$prefs.home_blog},{tr}Home Blog{/tr},feature_blogs,tiki_p_view_blogs">{tr}Home Blog{/tr}</option>{/if}
{if $prefs.home_gallery}<option value="tiki-browse_gallery.php?galleryId={$prefs.home_gallery},{tr}Home Image Gal{/tr},feature_galleries,tiki_p_view_image_gallery">{tr}Home Image Gallery{/tr}</option>{/if}
{if $prefs.home_file_gallery}<option value="tiki-list_file_gallery?galleryId={$prefs.home_file_gallery},{tr}Home File Gal{/tr},feature_file_galleries,tiki_p_view_file_gallery">{tr}Home File Gallery{/tr}</option>{/if}]
</select></td></tr>
<tr><td>{tr}General{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
{if $prefs.feature_stats eq 'y'}<option value="tiki-stats.php,{tr}Stats{/tr},feature_stats,tiki_p_view_stats">{tr}Stats{/tr}</option>{/if}
{if $prefs.feature_games eq 'y'}<option value="tiki-list_games.php,{tr}Games{/tr},feature_games,tiki_p_play_games">{tr}Games{/tr}</option>{/if}
{if $prefs.feature_categories eq 'y'}<option value="tiki-browse_categories.php,{tr}Categories{/tr},feature_categories,tiki_p_view_categories">{tr}Categories{/tr}</option>{/if}
{if $prefs.feature_userPreferences eq 'y'}<option value="tiki-user_preferences.php,{tr}User preferences{/tr}">{tr}User prefs{/tr}</option>{/if}
</select></td></tr>
{if $prefs.feature_wiki eq 'y'}
<tr><td>{tr}Wiki{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-index.php,{tr}Wiki Home{/tr},feature_wiki,tiki_p_view">{tr}Wiki Home{/tr}</option>
<option value="tiki-lastchanges.php,{tr}Last changes{/tr},feature_lastChanges,tiki_p_view">{tr}Last changes{/tr}</option>
<option value="tiki-wiki_rankings.php,{tr}Rankings{/tr},feature_wiki_rankings,tiki_p_view">{tr}Rankings{/tr}</option>
<option value="tiki-listpages.php,{tr}List pages{/tr},feature_listPages,tiki_p_view">{tr}List pages{/tr}</option>
<option value="tiki-index.php?page=SandBox,{tr}Sandbox{/tr},feature_sandbox,tiki_p_view">{tr}Sandbox{/tr}</option>
</select></td></tr>
{/if}
{if $prefs.feature_galleries eq 'y'}
<tr><td>{tr}Images{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-galleries.php,{tr}List galleries{/tr},feature_galleries,tiki_p_view_image_gallery">{tr}List image galleries{/tr}</option>
<option value="tiki-upload_image.php,{tr}Upload image{/tr},feature_galleries,tiki_p_upload_images">{tr}Upload{/tr}</option>
<option value="tiki-galleries_rankings.php,{tr}Gallery Rankings{/tr},feature_gal_rankings,tiki_p_view_image_gallery">{tr}Rankings{/tr}</option>
<option value="tiki-browse_gallery.php?galleryId=,{tr}Browse a gallery{/tr},feature_galleries,tiki_p_view_image_gallery">{tr}Browse a gallery{/tr}</option>
</select></td></tr>
{/if}
{if $prefs.feature_articles eq 'y'}
<tr><td>{tr}Articles{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-view_articles.php,{tr}Articles{/tr},feature_articles,tiki_p_read_article">{tr}Articles home{/tr}</option>
<option value="tiki-list_articles.php,{tr}All articles{/tr},feature_articles,tiki_p_read_article">{tr}List articles{/tr}</option>
<option value="tiki-cms_rankings.php,{tr}Rankings{/tr},feature_cms_rankings,tiki_p_read_article">{tr}Rankings{/tr}</option>
<option value="tiki-edit_submission.php,{tr}Submit{/tr},feature_submissions,tiki_p_submit_article">{tr}Submit{/tr}</option>
<option value="tiki-list_submissions.php,{tr}Submissions{/tr},feature_submissions,tiki_p_approve_submission">{tr}Submissions{/tr}</option>
</select></td></tr>
{/if}
{if $prefs.feature_blogs eq 'y'}
<tr><td>{tr}Blogs{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-list_blogs.php,{tr}List Blogs{/tr},feature_blogs,tiki_p_read_blog">{tr}List Blogs{/tr}</option>
<option value="tiki-blog_rankings.php,{tr}Rankings{/tr},feature_blog_rankings,tiki_p_read_blog">{tr}Rankings{/tr}</option>
<option value="tiki-edit_blog.php,{tr}Create blog{/tr},feature_blogs,tiki_p_create_blogs">{tr}Create blog{/tr}</option>
<option value="tiki-blog_post.php,{tr}Post{/tr},feature_blogs,tiki_p_blog_post">{tr}Post{/tr}</option>
</select></td></tr>
{/if}
{if $prefs.feature_file_galleries eq 'y'}
<tr><td>{tr}Files{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-list_file_gallery.php,{tr}File galleries{/tr},feature_file_galleries,tiki_p_view_file_gallery">{tr}File galleries{/tr}</option>
<option value="tiki-upload_file.php,{tr}Upload file{/tr},feature_file_galleries,tiki_p_upload_files">{tr}Upload file{/tr}</option>
<option value="tiki-file_galleries_rankings.php,{tr}Rankings{/tr},feature_file_galleries_rankings,tiki_p_view_file_gallery">{tr}Rankings{/tr}</option>
</select></td></tr>
{/if}
{if $prefs.feature_forums eq 'y'}
<tr><td>{tr}Forums{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-forums.php,{tr}Forums{/tr},feature_forums,tiki_p_forum_read">{tr}Forums{/tr}</option>
<option value="tiki-view_forum.php?forumId=,{tr}View a forum{/tr},feature_forums,tiki_p_forum_read">{tr}View a forum{/tr}</option>
<option value="tiki-view_forum_thread.php?forumId=&amp;comments_parentId=,{tr}View a thread{/tr},feature_forums,tiki_p_forum_read">{tr}View a thread{/tr}</option>8
</select></td></tr>
{/if}
{if $prefs.feature_faqs eq 'y'}
<tr><td>{tr}FAQs{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-list_faqs.php,{tr}FAQs{/tr},feature_faqs,tiki_p_view_faqs">{tr}FAQs{/tr}</option>
<option value="tiki-view_faq.php?faqId=,{tr}View a FAQ{/tr},feature_faqs,tiki_p_view_faqs">{tr}View a FAQ{/tr}</option>
</select></td></tr>
{/if}
{if $prefs.feature_quizzes eq 'y'}
<tr><td>{tr}Quizzes{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-list_quizzes.php,{tr}Quizzes{/tr},feature_quizzes">{tr}Quizzes{/tr}</option>
<option value="tiki-take_quiz.php?quizId=,{tr}Take a quiz{/tr},feature_quizzes">{tr}Take a quiz{/tr}</option>
<option value="tiki-quiz_stats.php,{tr}Quiz stats{/tr},feature_quizzes,tiki_p_view_quiz_stats">{tr}Quiz stats{/tr}</option>
<option value="tiki-quiz_stats_quiz.php?quizId=,{tr}Stats for a Quiz{/tr},feature_quizzes,tiki_p_view_quiz_stats">{tr}Stats for a Quiz{/tr}</option>
</select>
</td></tr>
{/if}</table>
</td></tr></table>
</td>
<td valign="top">
<h2>{tr}Preview menu{/tr}</h2>
<div class="box">
<div class="box-title">{$editable_menu_info.name}</div>
<div class="box-data">
{include file=tiki-user_menu.tpl menu_channels=$allchannels}
</div>
</div>
</td></tr></table>
<br />
<a name="options"></a>
<br /><h2>{tr}Menu options{/tr}</h2>
<div align="center">
{if $channels or ($find ne '')}
  <form method="get" action="tiki-admin_menu_options.php">
    <table class="findtable">
      <tr>
        <td>{tr}Find{/tr}</td>
        <td>
          <input type="text" name="find" value="{$find|escape}" />
          <input type="hidden" name="sort_mode" value="{$sort_mode|escape}" />
          <input type="hidden" name="menuId" value="{$menuId}" />
        </td>
        <td>
          {tr}Number of lines{/tr}
        </td>
        <td>
          <input type="text" name="nbRecords" value="{if !empty($nbRecords)}{$nbRecords}{else}{$prefs.maxRecords}{/if}" size="3" />
        </td>
        <td>
          <input type="submit" value="{tr}Find{/tr}" name="search" />
        </td>
      </tr>
    </table>
  </form>
{/if}

<form method="get" action="tiki-admin_menu_options.php">
<input type="hidden" name="find" value="{$find|escape}" />
<input type="hidden" name="sort_mode" value="{$sort_mode|escape}" />
<input type="hidden" name="menuId" value="{$menuId}" />
<input type="hidden" name="offset" value="{$offset}" />
<table class="normal">
<tr>
<th class="heading">
{if $channels}
	<script type="text/javascript">
	<!--//--><![CDATA[//><!--
	document.write("<input title=\"{tr}Select All{/tr}\" name=\"switcher\" id=\"clickall\" type=\"checkbox\" onclick=\"switchCheckboxes(this.form,'checked[]',this.checked)\"/>");
	//--><!]]>
	</script>
{/if}
</th>
<th class="heading"><a class="tableheading" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'optionId_desc'}optionId_asc{else}optionId_desc{/if}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}ID{/tr}</a></th>
<th class="heading"><a class="tableheading" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'position_desc'}position_asc{else}position_desc{/if}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}Position{/tr}</a></th>
<th class="heading"><a class="tableheading" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}Name{/tr}</a></th>
<th class="heading"><a class="tableheading" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'type_desc'}type_asc{else}type_desc{/if}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}Type{/tr}</a></th>
{if $prefs.feature_userlevels eq 'y'}
<th class="heading"><a class="tableheading" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'level_desc'}level_asc{else}level_desc{/if}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}Level{/tr}</a></th>
{/if}
<th class="heading">{tr}Action{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
{section name=user loop=$channels}
<tr>
<td class="{cycle advance=false}"><input type="checkbox" name="checked[]" value="{$channels[user].optionId|escape}"  {if $smarty.request.checked and in_array($channels[user].optionId,$smarty.request.checked)}checked="checked"{/if} /></td>
<td class="{cycle advance=false}">{$channels[user].optionId}</td>
<td class="{cycle advance=false}">{$channels[user].position}</td>
<td class="{cycle advance=false}"><a href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;optionId={$channels[user].optionId}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}"
title="{tr}Edit{/tr}">{$channels[user].name}</a>
<div style="margin-left:10px;">
{if $channels[user].url}{tr}URL{/tr}: <a href="{$channels[user].url|escape}" class="link" target="_new" title="{$channels[user].canonic}">{$channels[user].canonic|truncate:40:' ...'}</a>{/if}
{if $channels[user].section}<br />{tr}Sections{/tr}: {$channels[user].section}{/if}
{if $channels[user].perm}<br />{tr}Permissions{/tr}: {$channels[user].perm}{/if}
{if $channels[user].groupname}<br />{tr}Groups{/tr}: {$channels[user].groupname}{/if}
</div>
</td>
<td class="{cycle advance=false}">{$channels[user].type_description}</td>

{if $prefs.feature_userlevels eq 'y'}
{assign var=it value=$channels[user].userlevel}
<td class="{cycle advance=false}">{$prefs.userlevels.$it}</td>
{/if}
<td class="{cycle advance=true}">
<a class="link" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;optionId={$channels[user].optionId}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}"
title="{tr}Edit{/tr}">{icon _id='page_edit'}</a>
{if $channels[user].position > 1 }
<a class="link" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;up={$channels[user].optionId}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}#options"
title="{tr}switch with previous option{/tr}">{icon _id='resultset_up'}</a>
{/if}
{if !$smarty.section.user.last}<a class="link" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;down={$channels[user].optionId}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}#options"
title="{tr}switch with next option{/tr}">{icon _id='resultset_down'}</a>{/if}
&nbsp;&nbsp;<a class="link" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$channels[user].optionId}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}"
title="{tr}Delete{/tr}">{icon _id='cross' alt='{tr}Delete{/tr}'}</a>
</td>
</tr>
{sectionelse}
<tr><td class="odd" colspan="11"><strong>{tr}No records found.{/tr}</strong></td></tr>
{/section}
</table>
{if $channels}
<div align="left">
{tr}Perform action with checked:{/tr}
<input type="image" name="delsel" src='pics/icons/cross.png' alt={tr}Delete{/tr}' title='{tr}Delete{/tr}' />
</div>
{/if}
</form>
<br />

<div class="mini">
{if $prev_offset >= 0}
[<a class="prevnext" href="tiki-admin_menu_options.php?find={$find}&amp;menuId={$menuId}&amp;offset={$prev_offset}&amp;sort_mode={$sort_mode}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}Prev{/tr}</a>]&nbsp;
{/if}
{tr}Page{/tr}: {$actual_page}/{$cant_pages}
{if $next_offset >= 0}
&nbsp;[<a class="prevnext" href="tiki-admin_menu_options.php?find={$find}&amp;menuId={$menuId}&amp;offset={$next_offset}&amp;sort_mode={$sort_mode}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}Next{/tr}</a>]
{/if}
{if $prefs.direct_pagination eq 'y'}
<br />
{section loop=$cant_pages name=foo}
{assign var=selector_offset value=$smarty.section.foo.index|times:$prefs.maxRecords}
<a class="prevnext" href="tiki-admin_menu_options.php?find={$find}&amp;menuId={$menuId}&amp;offset={$selector_offset}&amp;sort_mode={$sort_mode}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">
{$smarty.section.foo.index_next}</a>&nbsp;
{/section}
{/if}
</div>
</div>

<br />
<a name="export"></a>
<h2>{tr}Export CSV data{/tr}</h2>
<form action="tiki-admin_menu_options.php" method="post">
<input type="hidden" name="menuId" value="{$menuId}" />
<input type="submit" name="export" value="{tr}Export{/tr}" />
</form>

<br />
<a name="import"></a>
<h2>{tr}Import CSV data{/tr}</h2>
{remarksbox type="tip" title="{tr}Tip{/tr}"}{tr}To add new options to the menu set the optionId field to 0. To remove an option set the remove field to 'y'.{/tr}{/remarksbox}
<form action="tiki-admin_menu_options.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="menuId" value="{$menuId}" />
{tr}File{/tr}: <input name="csvfile" type="file" />
<input type="submit" name="import" value="{tr}Import{/tr}" />
</form>
{*
<form action="tiki-admin_menu_options.php" method="post">
<textarea name="menudump" cols="70" rows="42">{$menudump}</textarea><br />
<input type="submit" name="action" value="{tr}Save{/tr}" />
</form>
*}
<commit_msg>more tip<commit_after>{* $Id$ *}
{title help="Menus" url="tiki-admin_menu_options.php?menuId=$menuId"}{tr}Admin Menu:{/tr} {$editable_menu_info.name}{/title}

<div class="navbar">
<span class="button2"><a href="tiki-admin_menus.php" class="linkbut">{tr}List menus{/tr}</a></span>
<span class="button2"><a href="tiki-admin_menus.php?menuId={$menuId}" class="linkbut">{tr}Edit this menu{/tr}</a></span>
<span class="button2"><a href="#export" class="linkbut">{tr}Export{/tr}</a></span>
<span class="button2"><a href="#import" class="linkbut">{tr}Import{/tr}</a></span>
</div>
<br />
<table><tr>
<td valign="top">
<table class="normal"><tr><td valign="top" class="odd" colspan="2">
<h2>{tr}Edit menu options{/tr}</h2>
<div style="text-align: right;">
<a href="#" onclick="toggle('weburls');toggle('urltop');hide('show');show('hide');" id="show" style="display:block;">{tr}Show Quick Urls{/tr}</a>
</div>
</td>
<td valign="top" class="even" id="urltop" style="display:none;">
<h2>{tr}Some useful URLs{/tr}</h2>
<div style="text-align: right;">
<a href="#" onclick="toggle('weburls');toggle('urltop');hide('hide');show('show');" id="hide" style="display:none;">{tr}Hide Quick Urls{/tr}</a>
</div>
</td>
</tr>
<tr><td valign="top" class="odd" colspan="2">
<form action="tiki-admin_menu_options.php" method="post">
<input type="hidden" name="optionId" value="{$optionId|escape}" />
<input type="hidden" name="menuId" value="{$menuId|escape}" />
<input type="hidden" name="offset" value="{$offset|escape}" />
 {if !empty($nbRecords)}<input type="hidden" name="nbRecords" value="{$nbRecords|escape}" />{/if}
<table>
<tr class="formcolor"><td>{tr}Name{/tr}:</td><td colspan="3"><input id="menu_name" type="text" name="name" value="{$name|escape}" size="34" /></td></tr>
<tr class="formcolor"><td>{tr}URL{/tr}:</td><td colspan="3"><input id="menu_url" type="text" name="url" value="{$url|escape}" size="34" />
<br /><em>{tr}For wiki page, use ((PageName)).{/tr}</em>
</td></tr>
<tr class="formcolor"><td>{tr}Sections{/tr}:</td><td colspan="3"><input id="menu_section" type="text" name="section" value="{$section|escape}" size="34" /><br /><em>{tr}Separate multiple sections with a comma ( , ).{/tr}</em></td></tr>
<tr class="formcolor"><td>{tr}Permissions{/tr}:</td><td colspan="3"><input id="menu_perm" type="text" name="perm" value="{$perm|escape}" size="34" /><br /><em>{tr}Separate multiple permissions with a comma ( , ).{/tr}</em></td></tr>
<tr class="formcolor"><td>{tr}Group{/tr}:</td><td colspan="3">
<select id="menu_groupname" name="groupname[]" size="4" multiple>
<option value="">&nbsp;</option>
{foreach key=k item=i from=$option_groups}
<option value="{$k}" {$i}>{$k}</option>
{/foreach}
</select>
{if $option_groups|@count ge '2'}
{remarksbox type="tip" title="{tr}Tip{/tr}"}{tr}Use Ctrl+Click to select multiple groups.{/tr}<br />{tr}Selecting 2 groups means that the option will be seen if the user belongs to the 2 groups. If you want the 2 groups to see the option, create 2 options with one group each.{/tr}{/remarksbox}
{/if}
</td></tr>
{if $prefs.feature_userlevels eq 'y'}
<tr class="formcolor"><td>{tr}Level{/tr}:</td><td colspan="3">
<select name="level">
<option value="0"{if $level eq 0} selected="selected"{/if}>{tr}All{/tr}</option>
{foreach key=levn item=lev from=$prefs.userlevels}
<option value="{$levn}"{if $userlevel eq $levn} selected="selected"{/if}>{$lev}</option>
{/foreach}
</select>
</td>
</tr>
{/if}
<tr class="formcolor"><td>{tr}Type{/tr}:</td><td>
<select name="type">
<option value="o" {if $type eq 'o'}selected="selected"{/if}>{tr}option{/tr}</option>
<option value="s" {if $type eq 's'}selected="selected"{/if}>{tr}section level 0{/tr}</option>
<option value='1' {if $type eq '1'}selected="selected"{/if}>{tr}section level 1{/tr}</option>
<option value='2' {if $type eq '2'}selected="selected"{/if}>{tr}section level 2{/tr}</option>
<option value='3' {if $type eq '3'}selected="selected"{/if}>{tr}section level 3{/tr}</option>
<option value="r" {if $type eq 'r'}selected="selected"{/if}>{tr}sorted section level 0{/tr}</option>
<option value="-" {if $type eq '-'}selected="selected"{/if}>{tr}separator{/tr}</option>
</select>
</td>
<td>{tr}Position{/tr}:</td><td><input type="text" name="position" value="{$position|escape}" size="6" /></td></tr>
<tr class="formcolor"><td>&nbsp;</td><td colspan="3"><input type="submit" name="save" value="{tr}Save{/tr}" /></td></tr>
</table>
</form>
</td>
<td valign="top" class="even" id="weburls" style="display:none;">
<table>
<tr><td>{tr}Home{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="{$prefs.tikiIndex},{tr}Home Page{/tr}">{tr}Home Page{/tr}</option>
{if $prefs.home_blog}<option value="tiki-view_blog.php?blogId={$prefs.home_blog},{tr}Home Blog{/tr},feature_blogs,tiki_p_view_blogs">{tr}Home Blog{/tr}</option>{/if}
{if $prefs.home_gallery}<option value="tiki-browse_gallery.php?galleryId={$prefs.home_gallery},{tr}Home Image Gal{/tr},feature_galleries,tiki_p_view_image_gallery">{tr}Home Image Gallery{/tr}</option>{/if}
{if $prefs.home_file_gallery}<option value="tiki-list_file_gallery?galleryId={$prefs.home_file_gallery},{tr}Home File Gal{/tr},feature_file_galleries,tiki_p_view_file_gallery">{tr}Home File Gallery{/tr}</option>{/if}]
</select></td></tr>
<tr><td>{tr}General{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
{if $prefs.feature_stats eq 'y'}<option value="tiki-stats.php,{tr}Stats{/tr},feature_stats,tiki_p_view_stats">{tr}Stats{/tr}</option>{/if}
{if $prefs.feature_games eq 'y'}<option value="tiki-list_games.php,{tr}Games{/tr},feature_games,tiki_p_play_games">{tr}Games{/tr}</option>{/if}
{if $prefs.feature_categories eq 'y'}<option value="tiki-browse_categories.php,{tr}Categories{/tr},feature_categories,tiki_p_view_categories">{tr}Categories{/tr}</option>{/if}
{if $prefs.feature_userPreferences eq 'y'}<option value="tiki-user_preferences.php,{tr}User preferences{/tr}">{tr}User prefs{/tr}</option>{/if}
</select></td></tr>
{if $prefs.feature_wiki eq 'y'}
<tr><td>{tr}Wiki{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-index.php,{tr}Wiki Home{/tr},feature_wiki,tiki_p_view">{tr}Wiki Home{/tr}</option>
<option value="tiki-lastchanges.php,{tr}Last changes{/tr},feature_lastChanges,tiki_p_view">{tr}Last changes{/tr}</option>
<option value="tiki-wiki_rankings.php,{tr}Rankings{/tr},feature_wiki_rankings,tiki_p_view">{tr}Rankings{/tr}</option>
<option value="tiki-listpages.php,{tr}List pages{/tr},feature_listPages,tiki_p_view">{tr}List pages{/tr}</option>
<option value="tiki-index.php?page=SandBox,{tr}Sandbox{/tr},feature_sandbox,tiki_p_view">{tr}Sandbox{/tr}</option>
</select></td></tr>
{/if}
{if $prefs.feature_galleries eq 'y'}
<tr><td>{tr}Images{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-galleries.php,{tr}List galleries{/tr},feature_galleries,tiki_p_view_image_gallery">{tr}List image galleries{/tr}</option>
<option value="tiki-upload_image.php,{tr}Upload image{/tr},feature_galleries,tiki_p_upload_images">{tr}Upload{/tr}</option>
<option value="tiki-galleries_rankings.php,{tr}Gallery Rankings{/tr},feature_gal_rankings,tiki_p_view_image_gallery">{tr}Rankings{/tr}</option>
<option value="tiki-browse_gallery.php?galleryId=,{tr}Browse a gallery{/tr},feature_galleries,tiki_p_view_image_gallery">{tr}Browse a gallery{/tr}</option>
</select></td></tr>
{/if}
{if $prefs.feature_articles eq 'y'}
<tr><td>{tr}Articles{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-view_articles.php,{tr}Articles{/tr},feature_articles,tiki_p_read_article">{tr}Articles home{/tr}</option>
<option value="tiki-list_articles.php,{tr}All articles{/tr},feature_articles,tiki_p_read_article">{tr}List articles{/tr}</option>
<option value="tiki-cms_rankings.php,{tr}Rankings{/tr},feature_cms_rankings,tiki_p_read_article">{tr}Rankings{/tr}</option>
<option value="tiki-edit_submission.php,{tr}Submit{/tr},feature_submissions,tiki_p_submit_article">{tr}Submit{/tr}</option>
<option value="tiki-list_submissions.php,{tr}Submissions{/tr},feature_submissions,tiki_p_approve_submission">{tr}Submissions{/tr}</option>
</select></td></tr>
{/if}
{if $prefs.feature_blogs eq 'y'}
<tr><td>{tr}Blogs{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-list_blogs.php,{tr}List Blogs{/tr},feature_blogs,tiki_p_read_blog">{tr}List Blogs{/tr}</option>
<option value="tiki-blog_rankings.php,{tr}Rankings{/tr},feature_blog_rankings,tiki_p_read_blog">{tr}Rankings{/tr}</option>
<option value="tiki-edit_blog.php,{tr}Create blog{/tr},feature_blogs,tiki_p_create_blogs">{tr}Create blog{/tr}</option>
<option value="tiki-blog_post.php,{tr}Post{/tr},feature_blogs,tiki_p_blog_post">{tr}Post{/tr}</option>
</select></td></tr>
{/if}
{if $prefs.feature_file_galleries eq 'y'}
<tr><td>{tr}Files{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-list_file_gallery.php,{tr}File galleries{/tr},feature_file_galleries,tiki_p_view_file_gallery">{tr}File galleries{/tr}</option>
<option value="tiki-upload_file.php,{tr}Upload file{/tr},feature_file_galleries,tiki_p_upload_files">{tr}Upload file{/tr}</option>
<option value="tiki-file_galleries_rankings.php,{tr}Rankings{/tr},feature_file_galleries_rankings,tiki_p_view_file_gallery">{tr}Rankings{/tr}</option>
</select></td></tr>
{/if}
{if $prefs.feature_forums eq 'y'}
<tr><td>{tr}Forums{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-forums.php,{tr}Forums{/tr},feature_forums,tiki_p_forum_read">{tr}Forums{/tr}</option>
<option value="tiki-view_forum.php?forumId=,{tr}View a forum{/tr},feature_forums,tiki_p_forum_read">{tr}View a forum{/tr}</option>
<option value="tiki-view_forum_thread.php?forumId=&amp;comments_parentId=,{tr}View a thread{/tr},feature_forums,tiki_p_forum_read">{tr}View a thread{/tr}</option>8
</select></td></tr>
{/if}
{if $prefs.feature_faqs eq 'y'}
<tr><td>{tr}FAQs{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-list_faqs.php,{tr}FAQs{/tr},feature_faqs,tiki_p_view_faqs">{tr}FAQs{/tr}</option>
<option value="tiki-view_faq.php?faqId=,{tr}View a FAQ{/tr},feature_faqs,tiki_p_view_faqs">{tr}View a FAQ{/tr}</option>
</select></td></tr>
{/if}
{if $prefs.feature_quizzes eq 'y'}
<tr><td>{tr}Quizzes{/tr}: </td><td><select name="wikilinks" onchange="setMenuCon(options[selectedIndex].value);return true;">
<option value=",,,">{tr}Choose{/tr} ...</option>
<option value="tiki-list_quizzes.php,{tr}Quizzes{/tr},feature_quizzes">{tr}Quizzes{/tr}</option>
<option value="tiki-take_quiz.php?quizId=,{tr}Take a quiz{/tr},feature_quizzes">{tr}Take a quiz{/tr}</option>
<option value="tiki-quiz_stats.php,{tr}Quiz stats{/tr},feature_quizzes,tiki_p_view_quiz_stats">{tr}Quiz stats{/tr}</option>
<option value="tiki-quiz_stats_quiz.php?quizId=,{tr}Stats for a Quiz{/tr},feature_quizzes,tiki_p_view_quiz_stats">{tr}Stats for a Quiz{/tr}</option>
</select>
</td></tr>
{/if}</table>
</td></tr></table>
</td>
<td valign="top">
<h2>{tr}Preview menu{/tr}</h2>
<div class="box">
<div class="box-title">{$editable_menu_info.name}</div>
<div class="box-data">
{include file=tiki-user_menu.tpl menu_channels=$allchannels}
</div>
</div>
</td></tr></table>
<br />
<a name="options"></a>
<br /><h2>{tr}Menu options{/tr}</h2>
<div align="center">
{if $channels or ($find ne '')}
  <form method="get" action="tiki-admin_menu_options.php">
    <table class="findtable">
      <tr>
        <td>{tr}Find{/tr}</td>
        <td>
          <input type="text" name="find" value="{$find|escape}" />
          <input type="hidden" name="sort_mode" value="{$sort_mode|escape}" />
          <input type="hidden" name="menuId" value="{$menuId}" />
        </td>
        <td>
          {tr}Number of lines{/tr}
        </td>
        <td>
          <input type="text" name="nbRecords" value="{if !empty($nbRecords)}{$nbRecords}{else}{$prefs.maxRecords}{/if}" size="3" />
        </td>
        <td>
          <input type="submit" value="{tr}Find{/tr}" name="search" />
        </td>
      </tr>
    </table>
  </form>
{/if}

<form method="get" action="tiki-admin_menu_options.php">
<input type="hidden" name="find" value="{$find|escape}" />
<input type="hidden" name="sort_mode" value="{$sort_mode|escape}" />
<input type="hidden" name="menuId" value="{$menuId}" />
<input type="hidden" name="offset" value="{$offset}" />
<table class="normal">
<tr>
<th class="heading">
{if $channels}
	<script type="text/javascript">
	<!--//--><![CDATA[//><!--
	document.write("<input title=\"{tr}Select All{/tr}\" name=\"switcher\" id=\"clickall\" type=\"checkbox\" onclick=\"switchCheckboxes(this.form,'checked[]',this.checked)\"/>");
	//--><!]]>
	</script>
{/if}
</th>
<th class="heading"><a class="tableheading" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'optionId_desc'}optionId_asc{else}optionId_desc{/if}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}ID{/tr}</a></th>
<th class="heading"><a class="tableheading" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'position_desc'}position_asc{else}position_desc{/if}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}Position{/tr}</a></th>
<th class="heading"><a class="tableheading" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'name_desc'}name_asc{else}name_desc{/if}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}Name{/tr}</a></th>
<th class="heading"><a class="tableheading" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'type_desc'}type_asc{else}type_desc{/if}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}Type{/tr}</a></th>
{if $prefs.feature_userlevels eq 'y'}
<th class="heading"><a class="tableheading" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={if $sort_mode eq 'level_desc'}level_asc{else}level_desc{/if}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}Level{/tr}</a></th>
{/if}
<th class="heading">{tr}Action{/tr}</th>
</tr>
{cycle values="odd,even" print=false}
{section name=user loop=$channels}
<tr>
<td class="{cycle advance=false}"><input type="checkbox" name="checked[]" value="{$channels[user].optionId|escape}"  {if $smarty.request.checked and in_array($channels[user].optionId,$smarty.request.checked)}checked="checked"{/if} /></td>
<td class="{cycle advance=false}">{$channels[user].optionId}</td>
<td class="{cycle advance=false}">{$channels[user].position}</td>
<td class="{cycle advance=false}"><a href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;optionId={$channels[user].optionId}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}"
title="{tr}Edit{/tr}">{$channels[user].name}</a>
<div style="margin-left:10px;">
{if $channels[user].url}{tr}URL{/tr}: <a href="{$channels[user].url|escape}" class="link" target="_new" title="{$channels[user].canonic}">{$channels[user].canonic|truncate:40:' ...'}</a>{/if}
{if $channels[user].section}<br />{tr}Sections{/tr}: {$channels[user].section}{/if}
{if $channels[user].perm}<br />{tr}Permissions{/tr}: {$channels[user].perm}{/if}
{if $channels[user].groupname}<br />{tr}Groups{/tr}: {$channels[user].groupname}{/if}
</div>
</td>
<td class="{cycle advance=false}">{$channels[user].type_description}</td>

{if $prefs.feature_userlevels eq 'y'}
{assign var=it value=$channels[user].userlevel}
<td class="{cycle advance=false}">{$prefs.userlevels.$it}</td>
{/if}
<td class="{cycle advance=true}">
<a class="link" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;optionId={$channels[user].optionId}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}"
title="{tr}Edit{/tr}">{icon _id='page_edit'}</a>
{if $channels[user].position > 1 }
<a class="link" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;up={$channels[user].optionId}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}#options"
title="{tr}switch with previous option{/tr}">{icon _id='resultset_up'}</a>
{/if}
{if !$smarty.section.user.last}<a class="link" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;down={$channels[user].optionId}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}#options"
title="{tr}switch with next option{/tr}">{icon _id='resultset_down'}</a>{/if}
&nbsp;&nbsp;<a class="link" href="tiki-admin_menu_options.php?menuId={$menuId}&amp;offset={$offset}&amp;sort_mode={$sort_mode}&amp;remove={$channels[user].optionId}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}"
title="{tr}Delete{/tr}">{icon _id='cross' alt='{tr}Delete{/tr}'}</a>
</td>
</tr>
{sectionelse}
<tr><td class="odd" colspan="11"><strong>{tr}No records found.{/tr}</strong></td></tr>
{/section}
</table>
{if $channels}
<div align="left">
{tr}Perform action with checked:{/tr}
<input type="image" name="delsel" src='pics/icons/cross.png' alt={tr}Delete{/tr}' title='{tr}Delete{/tr}' />
</div>
{/if}
</form>
<br />

<div class="mini">
{if $prev_offset >= 0}
[<a class="prevnext" href="tiki-admin_menu_options.php?find={$find}&amp;menuId={$menuId}&amp;offset={$prev_offset}&amp;sort_mode={$sort_mode}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}Prev{/tr}</a>]&nbsp;
{/if}
{tr}Page{/tr}: {$actual_page}/{$cant_pages}
{if $next_offset >= 0}
&nbsp;[<a class="prevnext" href="tiki-admin_menu_options.php?find={$find}&amp;menuId={$menuId}&amp;offset={$next_offset}&amp;sort_mode={$sort_mode}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">{tr}Next{/tr}</a>]
{/if}
{if $prefs.direct_pagination eq 'y'}
<br />
{section loop=$cant_pages name=foo}
{assign var=selector_offset value=$smarty.section.foo.index|times:$prefs.maxRecords}
<a class="prevnext" href="tiki-admin_menu_options.php?find={$find}&amp;menuId={$menuId}&amp;offset={$selector_offset}&amp;sort_mode={$sort_mode}{if !empty($nbRecords)}&amp;nbRecords={$nbRecords}{/if}">
{$smarty.section.foo.index_next}</a>&nbsp;
{/section}
{/if}
</div>
</div>

<br />
<a name="export"></a>
<h2>{tr}Export CSV data{/tr}</h2>
<form action="tiki-admin_menu_options.php" method="post">
<input type="hidden" name="menuId" value="{$menuId}" />
<input type="submit" name="export" value="{tr}Export{/tr}" />
</form>

<br />
<a name="import"></a>
<h2>{tr}Import CSV data{/tr}</h2>
{remarksbox type="tip" title="{tr}Tip{/tr}"}{tr}To add new options to the menu set the optionId field to 0. To remove an option set the remove field to 'y'.{/tr}{/remarksbox}
<form action="tiki-admin_menu_options.php" method="post" enctype="multipart/form-data">
<input type="hidden" name="menuId" value="{$menuId}" />
{tr}File{/tr}: <input name="csvfile" type="file" />
<input type="submit" name="import" value="{tr}Import{/tr}" />
</form>
{*
<form action="tiki-admin_menu_options.php" method="post">
<textarea name="menudump" cols="70" rows="42">{$menudump}</textarea><br />
<input type="submit" name="action" value="{tr}Save{/tr}" />
</form>
*}

{'fraction_non_alphanumeric': 0.2449220121370179, 'fraction_numerical': 0.003360248758714078, 'mean_word_length': 8.957303370786518, 'pattern_counts': {'":': 0, '<': 984, '<?xml version=': 0, '>': 990, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4639619', 'n_tokens_mistral': 15597, 'n_tokens_neox': 15109, 'n_words': 2038}