Loading...
Skip to main content
Site identity, navigation, etc.
Log in
Username
Password
I forgot my password
CapsLock is on.
Log in
Stay in SSL mode
Navigation and related functionality and content
Related content
View template: tiki-directory_admin_related.tpl
Edit CSS
Template listing
{title help="Directory" url="tiki-directory_admin_related.php?parent=$parent"}{tr}Admin related directory categories{/tr}{/title} {* Display the title using parent *} {include file='tiki-directory_admin_bar.tpl'} {* Navigation bar to admin, admin related, etc *} <h2>{tr}Parent directory category:{/tr}</h2> {* Display the path adding manually the top category id=0 *} <form name="path" method="post" action="tiki-directory_admin_related.php"> {ticket} <br> <div class="mb-3 row"> <label class="col-sm-4 col-form-label"> {tr}Parent directory category{/tr} </label> <div class="col-sm-7"> <select name="parent" onchange="javascript:path.submit();" class="form-control"> {section name=ix loop=$all_categs} <option value="{$all_categs[ix].categId|escape}" {if $parent eq $all_categs[ix].categId}selected="selected"{/if}>{$all_categs[ix].path}</option> {/section} </select> </div> <div class="col-sm-7 offset-sm-4 mt-2"> <input type="submit" class="btn btn-primary btn-sm" name="go" value="{tr}Go{/tr}"> </div> </div> </form> <h2>{tr}Add a related directory category{/tr}</h2> <form action="tiki-directory_admin_related.php" method="post"> {ticket} <br> <input type="hidden" name="parent" value="{$parent|escape}"> <div class="mb-3 row"> <label class="col-sm-4 col-form-label">{tr}Directory Category:{/tr}</label> <div class="col-sm-7"> <select name="categId" class="form-control"> {section name=ix loop=$categs} <option value="{$categs[ix].categId|escape}">{$categs[ix].path}</option> {/section} </select> </div> </div> <div class="mb-3 row"> <label class="col-sm-4 col-form-label">{tr}Mutual:{/tr}</label> <div class="col-sm-7"> <input type="checkbox" name="mutual"> </div> </div> <div class="mb-3 row"> <div class="col-sm-7 offset-sm-4"> <input type="submit" class="btn btn-primary btn-sm" name="add" value="{tr}Save{/tr}"> </div> </div> </form> <br> <h2>{tr}Related directory categories{/tr}</h2> {* Display the list of categories (items) using pagination *} {* Links to edit, remove, browse the categories *} <form action="tiki-directory_admin_related.php"> {ticket} <input type="hidden" name="parent" value="{$parent|escape}"> <input type="hidden" name="oldcategId" value="{$items[user].relatedTo|default:''|escape}"> <div class="{if $js}table-responsive{/if}"> {* table-responsive class cuts off css drop-down menus *} <table class="table table-striped table-hover"> <thead> <tr> <th>{tr}Directory Category{/tr}</th> <th class="text-center">{tr}Remove{/tr}</th> <th class="text-center">{tr}Update{/tr}</th> </tr> </thead> <tbody> {section name=user loop=$items} <tr> <td> <select name="categId" class="form-control"> {section name=ix loop=$categs} <option value="{$categs[ix].categId|escape}" {if $categs[ix].categId eq $items[user].relatedTo}selected="selected"{/if}>{$categs[ix].path}</option> {/section} </select> </td> <td class="text-center"><input type="submit" class="btn btn-primary btn-sm" onclick="confirmPopup()" name="remove" value="{tr}Remove{/tr}"/></td> <td class="text-center"><input type="submit" class="btn btn-primary btn-sm" name="update" value="{tr}Update{/tr}"></td> </tr> {sectionelse} {norecords _colspan=3} {/section} </tbody> </table> </div> </form> {pagination_links cant=$cant_pages step=$prefs.maxRecords offset=$offset}{/pagination_links}
Related content
Most Popular Tags
adze
american woods
axe
broadleaf
broadleaf aspen
broadleafs
community
conifers
dendrology
eco friendly
education
froe
glossary
green
green woodworking
hammer
hard wood
hard woods
hardwoods
hickory
history
how to
joinery
literature
machinery
material processing
media
merchants
mortise
people
plane
poplar
safety
shaker
shave
society
soft woods
spokeshave
sustainable
template
tenon
terminology
tools
wood
works