Files
znc/modules/data/send_raw/tmpl/index.tmpl
uu1101 4376b373d8 Prepend URIPrefix to web interface links
Prefix links in templates with URIPrefix and add the input field to the
Listener editor.

The URIPrefix is provided as a top-level template variable. All URIs
have been changed to have the prefix prepended.
2014-02-16 12:45:10 +01:00

54 lines
1.6 KiB
Cheetah

<? ADDROW JSLoop HREF=/modfiles/user/send_raw/select.js ?>
<? INC Header.tmpl ?>
<form method="post" action="<? VAR URIPrefix TOP ?><? VAR ModPath ?>">
<? INC _csrf_check.tmpl ?>
<div class="section">
<h3>Send a raw IRC line</h3>
<div class="sectionbg">
<div class="sectionbody">
<div class="subsection third" id="userblock" style="display:none">
<div class="inputlabel">User:</div>
<input id="user" type="text" disabled="disabled" title="To change user, click to Network selector"/>
</div>
<div class="subsection third">
<div class="inputlabel" id="networklabel">User/Network:</div>
<select name="network" id="selectnetwork" onchange="javascript:updateUser()">
<? LOOP UserLoop ?>
<optgroup label="<? VAR Username ?>">
<? LOOP NetworkLoop ?>
<option value="<? VAR Username ?>/<? VAR Network ?>"><? VAR Network ?></option>
<? ENDLOOP ?>
</optgroup>
<? ENDLOOP ?>
</select>
</div>
<div class="subsection third">
<div class="inputlabel">Send to:</div>
<select name="send_to">
<option value="client"<? IF to_client ?> selected="yes"<? ENDIF ?>>Client</option>
<option value="server"<? IF to_server ?> selected="yes"<? ENDIF ?>>Server</option>
</select>
</div>
<div class="subsection full">
<div class="inputlabel">Line:</div>
<input type="text" name="line" value="<? VAR line ?>" />
</div>
<div class="subsection submitline">
<input type="submit" value="Send"/>
</div>
</div>
</div>
</div>
</form>
<script type="text/javascript">init();</script>
<? INC Footer.tmpl ?>