You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
173 lines
8.8 KiB
173 lines
8.8 KiB
8 years ago
|
<link rel="stylesheet" href="{$ABS_PATH}admin/codemirror/lib/codemirror.css">
|
||
|
|
||
|
<script src="{$ABS_PATH}admin/codemirror/lib/codemirror.js" type="text/javascript"></script>
|
||
|
<script src="{$ABS_PATH}admin/codemirror/mode/xml/xml.js"></script>
|
||
|
<script src="{$ABS_PATH}admin/codemirror/mode/javascript/javascript.js"></script>
|
||
|
<script src="{$ABS_PATH}admin/codemirror/mode/css/css.js"></script>
|
||
|
<script src="{$ABS_PATH}admin/codemirror/mode/clike/clike.js"></script>
|
||
|
<script src="{$ABS_PATH}admin/codemirror/mode/php/php.js"></script>
|
||
|
|
||
|
{literal}
|
||
|
<style type="text/css">
|
||
|
.activeline {background: #e8f2ff !important;}
|
||
|
.CodeMirror-scroll {height: 150px;}
|
||
|
</style>
|
||
|
{/literal}
|
||
|
|
||
|
<div class="title"><h5>{#RUBNAV_MODULE#}</h5></div>
|
||
|
|
||
|
<div class="widget" style="margin-top: 0px;">
|
||
|
<div class="body">
|
||
|
{#RUBNAV_MODULE_INFO#}
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="breadCrumbHolder module">
|
||
|
<div class="breadCrumb module">
|
||
|
<ul>
|
||
|
<li class="firstB"><a href="index.php" title="{#MAIN_PAGE#}">{#MAIN_PAGE#}</a></li>
|
||
|
<li><a href="index.php?do=modules&cp={$sess}">{#MODULES_SUB_TITLE#}</a></li>
|
||
|
<li>{#RUBNAV_MODULE_SETUP#}</li>
|
||
|
<li><strong class="code">{#RUBNAV_MODULE#}</strong></li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="widget first">
|
||
|
<div class="head"><h5 class="iFrames">{#RUBNAV_MODULE_SETUP#}</h5></div>
|
||
|
|
||
|
<form method="post" action="index.php?do=modules&action=modedit&mod=rubnav&moduleaction=1&cp={$sess}&sub=save" class="mainForm" id="save_rubnav">
|
||
|
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic">
|
||
|
<tr class="noborder">
|
||
|
<td colspan="2"><strong>{#RubNavTeplNext#}</strong></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><strong><a class="rightDir" title="{#RubNavLink#}" href="javascript:void(0);" onclick="textSelection('[tag:link]', '');">[tag:link]</a></strong></td>
|
||
|
<td rowspan="2">
|
||
|
<textarea style="width:400px; height:100px" name="rubnav_tmpl_next" id="rubnav_tmpl_next">{$rubnav_tmpl_next}</textarea>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><strong><a class="rightDir" title="{#RubNavLinkName#}" href="javascript:void(0);" onclick="textSelection('[tag:linkname]', '');">[tag:linkname]</a></strong></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>HTML tags</td>
|
||
|
<td>
|
||
|
|
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<ol>', '</ol>');"><strong>OL</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<ul>', '</ul>');"><strong>UL</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<li>', '</li>');"><strong>LI</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<p class="">', '</p>');"><strong>P</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<strong>', '</strong>');"><strong>B</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<em>', '</em>');"><strong>I</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<h1>', '</h1>');"><strong>H1</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<h2>', '</h2>');"><strong>H2</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<h3>', '</h3>');"><strong>H3</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<h4>', '</h4>');"><strong>H4</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<h5>', '</h5>');"><strong>H5</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<div class="" id="">', '</div>');"><strong>DIV</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<a href="" title="">', '</a>');"><strong>A</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<img src="" alt="" />', '');"><strong>IMG</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<span>', '</span>');"><strong>SPAN</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<pre>', '</pre>');"><strong>PRE</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('<br />', '');"><strong>BR</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection('\t', '');"><strong>TAB</strong></a> |
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td colspan="2"><strong>{#RubNavTeplPrev#}</strong></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><strong><a class="rightDir" title="{#RubNavLink#}" href="javascript:void(0);" onclick="textSelection2('[tag:link]', '');">[tag:link]</a></strong></td>
|
||
|
<td rowspan="2">
|
||
|
<textarea style="width:400px; height:100px" name="rubnav_tmpl_prev" id="rubnav_tmpl_prev">{$rubnav_tmpl_prev}</textarea>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td><strong><a class="rightDir" title="{#RubNavLinkName#}" href="javascript:void(0);" onclick="textSelection2('[tag:linkname]', '');">[tag:linkname]</a></strong></td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td>HTML tags</td>
|
||
|
<td>
|
||
|
|
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<ol>', '</ol>');"><strong>OL</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<ul>', '</ul>');"><strong>UL</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<li>', '</li>');"><strong>LI</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<p class="">', '</p>');"><strong>P</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<strong>', '</strong>');"><strong>B</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<em>', '</em>');"><strong>I</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<h1>', '</h1>');"><strong>H1</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<h2>', '</h2>');"><strong>H2</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<h3>', '</h3>');"><strong>H3</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<h4>', '</h4>');"><strong>H4</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<h5>', '</h5>');"><strong>H5</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<div class="" id="">', '</div>');"><strong>DIV</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<a href="" title="">', '</a>');"><strong>A</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<img src="" alt="" />', '');"><strong>IMG</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<span>', '</span>');"><strong>SPAN</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<pre>', '</pre>');"><strong>PRE</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('<br />', '');"><strong>BR</strong></a> |
|
||
|
<a href="javascript:void(0);" onclick="textSelection2('\t', '');"><strong>TAB</strong></a> |
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
</table>
|
||
|
<div class="rowElem" id="saveBtn">
|
||
|
<div class="saveBtn">
|
||
|
<input name="submit" type="submit" class="basicBtn" value="{#RUBNAV_MODULE_SAVE#}" />
|
||
|
{#RUBNAV_MODULE_OR#}
|
||
|
<input type="submit" class="blackBtn SaveEdit" name="next_edit" value="{#RUBNAV_MODULE_SAVE_NEXT#}" />
|
||
|
</div>
|
||
|
</div>
|
||
|
</form>
|
||
|
</div>
|
||
|
|
||
|
<script language="javascript">
|
||
|
var sett_options = {ldelim}
|
||
|
url: 'index.php?do=modules&action=modedit&mod=rubnav&moduleaction=1&sub=save&ajax=1&cp={$sess}',
|
||
|
dataType: 'json',
|
||
|
beforeSubmit: Request,
|
||
|
success: Response
|
||
|
{rdelim}
|
||
|
|
||
|
function Request(){ldelim}
|
||
|
$.alerts._overlay('show');
|
||
|
{rdelim}
|
||
|
|
||
|
function Response(data){ldelim}
|
||
|
$.alerts._overlay('hide');
|
||
|
$.jGrowl(data['message'], {ldelim}
|
||
|
header: data['header'],
|
||
|
theme: data['theme']
|
||
|
{rdelim});
|
||
|
{rdelim}
|
||
|
|
||
|
$(document).ready(function(){ldelim}
|
||
|
|
||
|
Mousetrap.bind(['ctrl+s', 'meta+s'], function(e) {ldelim}
|
||
|
if (e.preventDefault) {ldelim}
|
||
|
e.preventDefault();
|
||
|
{rdelim} else {ldelim}
|
||
|
e.returnValue = false;
|
||
|
{rdelim}
|
||
|
$("#save_rubnav").ajaxSubmit(sett_options);
|
||
|
return false;
|
||
|
{rdelim});
|
||
|
|
||
|
$(".SaveEdit").click(function(e){ldelim}
|
||
|
if (e.preventDefault) {ldelim}
|
||
|
e.preventDefault();
|
||
|
{rdelim} else {ldelim}
|
||
|
e.returnValue = false;
|
||
|
{rdelim}
|
||
|
$("#save_rubnav").ajaxSubmit(sett_options);
|
||
|
return false;
|
||
|
{rdelim});
|
||
|
|
||
|
{rdelim});
|
||
|
</script>
|
||
|
|
||
|
{include file="$codemirror_connect"}
|
||
|
{include file="$codemirror_editor" conn_id="" textarea_id='rubnav_tmpl_next' ctrls='$("#save_rubnav").ajaxSubmit(sett_options);' height=100}
|
||
|
{include file="$codemirror_editor" conn_id="2" textarea_id='rubnav_tmpl_prev' ctrls='$("#save_rubnav").ajaxSubmit(sett_options);' height=100}
|