0byt3m1n1
Path:
/
data
/
applications
/
aps
/
tikiwiki
/
7.0-0
/
standard
/
htdocs
/
templates
/
map
/
[
Home
]
File: tiki-map_edit.tpl
<a class="pagetitle" href="tiki-map_edit.php?mode=listing">{tr}Mapfiles{/tr}</a><br /> <a href="http://www.mapserver.org/mapfile/reference.html">http://www.mapserver.org/mapfile/reference.html</a><br /><br /> {if $mapfile}<h2>{tr}Mapfile:{/tr} {$mapfile}</h2>{/if} {if $mode eq 'listing'} <h3>{tr}Available mapfiles:{/tr}</h3> <table class="normal"> <tr> <th>{tr}Mapfile{/tr}</th> <th style="width:20%">{tr}Actions{/tr}</th> <th style="width:10%">{tr}Hits{/tr}</th> <th style="width:10%">{tr}hits last 7 days{/tr}</th> </tr> {section name=user loop=$files} {if $smarty.section.user.index % 2} <tr> <td class="odd"> <a class="link" href="tiki-map.php?mapfile={$files[user]}">{$files[user]}</a> </td> <td class="odd"> {if $tiki_p_map_edit eq 'y'} <a class="link" href="tiki-map_edit.php?mapfile={$files[user]}&mode=editing"> <img src="pics/icons/wrench.png" alt="{tr}Edit{/tr}" title="{tr}Edit{/tr}" width='16' height='16' /> </a> {/if} {if $user and $prefs.feature_user_watches eq 'y'} {if $user_watching_map[user] eq 'n'} <a href="tiki-map_edit.php?watch_event=map_changed&watch_object={$files[user]}&watch_action=add" class="icon"><img class="icon" alt="{tr}monitor this map{/tr}" title="{tr}monitor this map{/tr}" src='pics/icons/eye.png' width='16' height='16' /></a> {else} <a class="icon" href="tiki-map_edit.php?watch_event=map_changed&watch_object={$files[user]}&watch_action=remove"><img class="icon" alt="{tr}Stop Monitoring this Map{/tr}" title="{tr}Stop Monitoring this Map{/tr}" src='pics/icons/no_eye.png' width='16' height='16' /></a> {/if} {/if} </td> <td class="odd"> {$mapstats[user]} </td> <td class="odd"> {$mapstats7days[user]} </td> </tr> {else} <tr> <td class="even"> <a class="link" href="tiki-map.php?mapfile={$files[user]}">{$files[user]}</a> </td> <td class="even"> {if $tiki_p_map_edit eq 'y'} <a class="link" href="tiki-map_edit.php?mapfile={$files[user]}&mode=editing"> <img src="pics/icons/wrench.png" alt="{tr}Edit{/tr}" title="{tr}Edit{/tr}" width='16' height='16' /> </a> {/if} {if $user and $prefs.feature_user_watches eq 'y'} {if $user_watching_map[user] eq 'n'} <a class="icon" href="tiki-map_edit.php?watch_event=map_changed&watch_object={$files[user]}&watch_action=add"><img class="icon" alt="{tr}monitor this map{/tr}" title="{tr}monitor this map{/tr}" src='pics/icons/eye.png' width='16' height='16' /></a> {else} <a class="icon" href="tiki-map_edit.php?watch_event=map_changed&watch_object={$files[user]}&watch_action=remove"><img class="icon" alt="{tr}Stop Monitoring this Map{/tr}" title="{tr}Stop Monitoring this Map{/tr}" src='pics/icons/no_eye.png' width='16' height='16' /></a> {/if} {/if} </td> <td class="even"> {$mapstats[user]} </td> <td class="even"> {$mapstats7days[user]} </td> </tr> {/if} {sectionelse} <tr><td colspan="2" class="odd">{tr}No records found{/tr}</td></tr> {/section} </table> {if $tiki_p_map_create eq 'y'} <h3>{tr}Create a new mapfile{/tr}</h3> <form action="tiki-map_edit.php" method="post"> <input type="text" name="newmapfile" size="20" /> <input type="submit" name="create" value="{tr}Create{/tr}" /> {/if} {/if} {if $mode eq 'editing'} <a class="link" href="tiki-map_edit.php">{tr}Mapfile listing{/tr}</a><br /><br /> <form enctype="multipart/form-data" action="tiki-map_edit.php" method="post" id='editpageform'> <a class="link" href="tiki-map_edit.php?mapfile={$mapfile}&mode=editing">{tr}Reload{/tr}</a> <a class="link" href="tiki-map_history.php?mapfile={$mapfile}">{tr}History{/tr}</a><br /> <table class="normal"> <tr class="formcolor"> <td> <div id='edit-zone'> <div id='textarea-toolbar' style='padding:3px; font-size:10px;'> {toolbars area_id='mapdata'} </div> <textarea id='mapdata' class='wikiedit' name='pagedata' rows='{$rows}' wrap='virtual' cols='{$cols}' style='width:99%'>{$pagedata|escape}</textarea> <input type="hidden" name="rows" value="{$rows}"/> <input type="hidden" name="cols" value="{$cols}"/> <input type="hidden" name="mapfile" value="{$mapfile}" /> <input type="hidden" name="mode" value="{$mode}" /> </div> </td> </tr> </table> <div align="center"> <input type="submit" class="wikiaction" name="save" value="{tr}Save{/tr}" /> </div> </form> {if $tiki_p_map_delete eq 'y'} <hr /> <div align="center"> <form class="wikiaction" action="tiki-map_edit.php" method="get" id='editpageform'> <input type="hidden" name="mapfile" value="{$mapfile}" /> <input type="submit" name="delete" value="{tr}Delete{/tr}" /> </form> </div> {/if} <br /> <div align="center"> <table class="normal"> <tr> <td class="even"> <small> {tr}You can view this map in your browser using:{/tr} <a class="maplink" href="{$url_browse}?mapfile={$mapfile}">{$url_browse}?mapfile={$mapfile}</a><br /> </small> </td> </tr> </table> </div> {/if}