0byt3m1n1
Path:
/
data
/
applications
/
aps.bak
/
tikiwiki
/
1.9.7-31
/
htdocs
/
templates
/
[
Home
]
File: tiki-admin_integrator_rules.tpl
{* $Header: /cvsroot/tikiwiki/tiki/templates/tiki-admin_integrator_rules.tpl,v 1.20 2004/03/31 07:38:44 mose Exp $ *} <h2>{tr}Edit Rules for Repository:{/tr} {$name}</h2> <div id="page-bar"> <table><tr> <td><div class="button2"> <a href="tiki-admin_integrator.php" class="linkbut">{tr}configure repositories{/tr}</a> </div></td> <td><div class="button2"> <a href="tiki-list_integrator_repositories.php" class="linkbut">{tr}list repositories{/tr}</a> </div></td> <td> </td> <td><div class="button2"> <a href="tiki-admin_integrator.php?action=edit&repID={$repID|escape}" class="linkbut">{tr}configure this repository{/tr}</a> </div></td> <td><div class="button2"> <a href="tiki-integrator.php?repID={$repID|escape}" class="linkbut">{tr}view this repository{/tr}</a> </div></td> <td> </td> <td><div class="button2"> <a title="{tr}Add new rule{/tr}" href="tiki-admin_integrator_rules.php?repID={$repID|escape}" class="linkbut"> {tr}new rule{/tr} </a> </div></td> {if count($reps) gt 0} <td><div class="button2"> <a title="{tr}view/hide copy rules dialog{/tr}" href="javascript:flip('rules-copy-panel');" class="linkbut"> {tr}copy rules{/tr} </a> </div></td> {/if} </tr></table> </div> <br /> {if count($reps) gt 0} <div id="rules-copy-panel"> <form action="tiki-admin_integrator_rules.php?repID={$repID|escape}" method="post"> <table class="normal"><tr> <td class="formcolor">{tr}Source repository{/tr}</td> <td class="formcolor"> <select name="srcrep">{html_options options=$reps}</select> <input type="submit" name="copy" value="{tr}Copy{/tr}" /> </td> </tr> </table> </form> <br /><br /> </div> {/if} {* Add form *} <form action="tiki-admin_integrator_rules.php?repID={$repID|escape}" method="post"> <input type="hidden" name="ruleID" value="{$ruleID|escape}" /> <input type="hidden" name="repID" value="{$repID|escape}" /> <table class="normal"> <tr> <td class="formcolor"><span title="{tr}According this order rules will be applied ('0' or empty = auto){/tr}">{tr}Rule order{/tr}</span></td> <td class="formcolor"><input type="text" maxlength="2" size="2" name="ord" value="{$ord|escape}" title="{tr}According this order rules will be applied ('0' or empty = auto){/tr}" /> </td> </tr><tr> <td class="formcolor"><span title="{tr}Text to search for{/tr}">{tr}Search{/tr}</span></td> <td class="formcolor"><input type="text" name="srch" value="{$srch|escape}" title="{tr}Text to search for{/tr}" /></td> </tr><tr> <td class="formcolor"><span title="{tr}Text to replace{/tr}">{tr}Replace{/tr}</span></td> <td class="formcolor"><input type="text" name="repl" value="{$repl|escape}" title="{tr}Text to replace{/tr}" /></td> </tr><tr> <td class="formcolor"><span title="{tr}Is this regular expression or simple search/replacer{/tr}">{tr}Regex{/tr}</span></td> <td class="formcolor"> <input type="checkbox" name="type" {if $type eq 'y'}checked="checked"{/if} title="{tr}Is this regular expression or simple search/replacer{/tr}" /> </td> </tr><tr> <td class="formcolor"><span title="{tr}Is case sensitive (for simple replacer){/tr}">{tr}Case sensitive{/tr}</td> <td class="formcolor"> <input type="checkbox" name="casesense" {if $casesense eq 'y'}checked="checked"{/if} title="{tr}Is case sensitive (for simple replacer){/tr}" /> </td> </tr><tr> <td class="formcolor"><span title="{tr}subset of chars: imsxeADSXUu, which is regex modifiers{/tr}">{tr}Regex modifiers{/tr}</span></td> <td class="formcolor"> <input type="text" maxlength="20" size="20" name="rxmod" value="{$rxmod|escape}" title="{tr}subset of chars: imsxeADSXUu, which is regex modifiers{/tr}" /> </td> </tr><tr> <td class="formcolor"><span title="{tr}Human readable text description of rule{/tr}">{tr}Description{/tr}</td> <td class="formcolor"><textarea name="description" rows="4" title="{tr}Human readable text description of rule{/tr}">{$description|escape}</textarea></td> </tr><tr> <td class="formcolor"> </td> <td class="formcolor"> <input type="submit" name="save" value="{tr}Save{/tr}" /> <input type="checkbox" name="enabled" {if $enabled eq 'y'}checked="checked"{/if} title="{tr}Check to enable this rule{/tr}" /> {tr}Enabled{/tr} </td> </tr><tr> <td class="formcolor" colspan="2">{tr}Preview options{/tr}</td> </tr><tr> <td class="formcolor"><span title="{tr}Apply all rules or just this to generate preview{/tr}">{tr}Apply all rules{/tr}</td> <td class="formcolor"><input type="checkbox" name="all" {if $all eq 'y'}checked="checked"{/if} title="{tr}Apply all rules or just this to generate preview{/tr}" /></td> </tr><tr> <td class="formcolor"><span title="{tr}View source code after rules applied{/tr}">{tr}Code preview{/tr}</td> <td class="formcolor"><input type="checkbox" name="code" {if $code eq 'y'}checked="checked"{/if} title="{tr}View source code after rules applied{/tr}" /></td> </tr><tr> <td class="formcolor"><span title="{tr}Generate HTML preview{/tr}">{tr}HTML preview{/tr}</td> <td class="formcolor"><input type="checkbox" name="html" {if $html eq 'y'}checked="checked"{/if} title="{tr}Generate HTML preview{/tr}" /></td> </tr><tr> <td class="formcolor"><span title="{tr}Test file from repository to generate preview for (empty = configured start page){/tr}">{tr}File{/tr}</td> <td class="formcolor"> <input type="text" name="file" value="{$file|escape}" title="{tr}Test file from repository to generate preview for (empty = configured start page){/tr}" /> </td> </tr><tr> <td class="formcolor"> </td> <td class="formcolor"><input type="submit" name="preview" value="{tr}Preview{/tr}" /></td> </tr> </table> </form> {if (($html eq 'y') or ($code eq 'y')) and (strlen($preview_data) gt 0)} <h2>{tr}Preview Results{/tr}</h2> {if strlen($css_file) > 0} <link rel="StyleSheet" href="{$css_file}" type="text/css" /> {/if} <div class="integration_preview"> {if $code eq 'y'} <div class="codelisting"><pre>{$preview_data|escape:"html"|wordwrap:120:"\n"}</pre></div> {/if} {if $html eq 'y'} <div class="integrated-page">{$preview_data}</div> {/if} </div> {/if} <h2>{tr}Rules List{/tr}</h2> {* Table with list of repositories *} <table class="normal" id="integrator_rules"> <tr> <td class="heading" rowspan="2"><span title="{tr}Rule order{/tr}">#</span></td> <td class="heading">{tr}Search{/tr}</td> <td class="heading">{tr}Replace{/tr}</td> <td class="heading">{tr}Regex{/tr}</td> <td class="heading">{tr}Case{/tr}</td> <td class="heading">{tr}Actions{/tr}</td> </tr><tr> <td class="heading" colspan="5">{tr}Description{/tr}</td> </tr> {cycle values="odd,even" print=false} {section name=rule loop=$rules} <tr> <td class="{cycle advance=false}"{if (strlen($rules[rule].description) > 0)} rowspan="2"{/if}> {if $rules[rule].enabled ne 'y'}<s>{$rules[rule].ord|escape}</s> {else}{$rules[rule].ord|escape} {/if} </td> <td class="{cycle advance=false}">{$rules[rule].srch|escape}</td> <td class="{cycle advance=false}">{$rules[rule].repl|escape}</td> <td class="{cycle advance=false}">{$rules[rule].type|escape}</td> <td class="{cycle advance=false}">{$rules[rule].casesense|escape}</td> <td class="{if (strlen($rules[rule].description) > 0)}{cycle advance=false}{else}{cycle}{/if}"> <a href="tiki-admin_integrator_rules.php?action=edit&repID={$repID|escape}&ruleID={$rules[rule].ruleID|escape}" title="{tr}edit{/tr}"><img alt="{tr}Configure/Options{/tr}" src="img/icons/config.gif" /></a> <a href="tiki-admin_integrator_rules.php?action=rm&repID={$repID|escape}&ruleID={$rules[rule].ruleID|escape}" title="{tr}delete{/tr}"><img alt="{tr}delete{/tr}" src="img/icons2/delete.gif" /></a> </td> {* Show description as colspaned row if it is not an empty *} {if (strlen($rules[rule].description) > 0)} </tr><tr> <td class="{cycle}" colspan="5">{$rules[rule].description|escape}</td> {/if} </tr> {/section} </table> <br /><br />