Repellent
8 years ago
1 changed files with 132 additions and 0 deletions
@ -0,0 +1,132 @@ |
|||||||
|
<div class="title"> |
||||||
|
<h5>{#mod_name#}</h5> |
||||||
|
</div> |
||||||
|
<div class="widget" style="margin-top:0"> |
||||||
|
<div class="body"> |
||||||
|
<ul style="list-style: none; margin-left:0px;"> |
||||||
|
<li>{#e_cap_infomod#}</li> |
||||||
|
<li>{#e_cap_infomod1#}</li> |
||||||
|
</ul> |
||||||
|
</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> |
||||||
|
<strong class="code">{#e_cap_title#}</strong> |
||||||
|
</li> |
||||||
|
</ul> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="widget first"> |
||||||
|
<div class="head"> |
||||||
|
<h5 class="iFrames">{#e_cap_title#}</h5> |
||||||
|
<div style="float:right; margin-right:15px; margin-top:10px;"> |
||||||
|
{if ADMIN_CAPTCHA == true}<a title="{#e_cap_on_info#}" style="cursor: default" class="topleftDir btn greenBtn" href="javascript:void(0);">{#e_cap_on#}</a>{else}<a title="{#e_cap_of_info#}" style="cursor: default" class="topleftDir btn redBtn" href="javascript:void(0);">{#e_cap_of#}</a>{/if} |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
</div> |
||||||
|
<div class="mainForm" id="form"> |
||||||
|
<table cellpadding="0" cellspacing="0" width="100%" class="tableStatic"> |
||||||
|
<colgroup> |
||||||
|
<col width="180" /> |
||||||
|
<col width="*" /> |
||||||
|
<col width="*" /> |
||||||
|
<col width="*" /> |
||||||
|
<col width="*" /> |
||||||
|
<col width="*" /> |
||||||
|
<col width="*" /> |
||||||
|
<col width="*" /> |
||||||
|
<col width="*" /> |
||||||
|
</colgroup> |
||||||
|
<thead> |
||||||
|
<tr class="noborder"> |
||||||
|
<td>{#e_cap_real#}</td> |
||||||
|
<td>{#e_cap_ref#}</td> |
||||||
|
<td>{#e_cap_allow_symbol#}</td> |
||||||
|
<td>{#e_cap_count_symbol#}</td> |
||||||
|
<td>{#e_cap_fluc_amplit#}</td> |
||||||
|
<td>{#e_cap_white_noise#}</td> |
||||||
|
<td>{#e_cap_black_noise#}</td> |
||||||
|
<td>{#e_cap_spaces_symb#}</td> |
||||||
|
<td>{#e_cap_actions#}</td> |
||||||
|
</tr> |
||||||
|
</thead> |
||||||
|
<tbody> |
||||||
|
<tr> |
||||||
|
<td align="center"><span id="captcha"><img src="{$ABS_PATH}inc/captcha.php" alt="" width="120" height="60" border="0" /></span></td> |
||||||
|
<td align="center"><img id="captcha-ref" style="cursor: pointer;" src="{$ABS_PATH}modules/editcaptcha/img/ref.png" width="30" height="30" border="0" /></td> |
||||||
|
<td align="center"><input id="allow_symbols" class="mousetrap" name="allow_symbols" type="text" value="{$allow_symbols|escape}" placeholder="23456789abcdegikpqsvxyz" style="width:148px;"/><br /><br /> |
||||||
|
<strong><a href="javascript:void(0);" onclick = "allow_symbols.value = '23456789abcdegikpqsvxyz'; return false;">23456789abcdegikpqsvxyz</a></strong> |
||||||
|
</td> |
||||||
|
<td align="center"><input required id="count_symbols"class="mousetrap" name="count_symbols" type="text" value="{$count_symbols|escape}" placeholder="4,6" style="width:30px;"/><br /><br /> |
||||||
|
| <strong><a href="javascript:void(0);" onclick = "count_symbols.value = '4,4'; return false;">4,4</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "count_symbols.value = '4,5'; return false;">4,5</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "count_symbols.value = '5,5'; return false;">5,5</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "count_symbols.value = '5,6'; return false;">5,6</a></strong> | |
||||||
|
</td> |
||||||
|
<td align="center"><input required id="fluct_amplit" class="mousetrap" name="fluct_amplit" type="text" value="{$fluct_amplit|escape}" placeholder="8" style="width:21px;"/><br /><br /> |
||||||
|
| <strong><a href="javascript:void(0);" onclick = "fluct_amplit.value = '0'; return false;">0</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "fluct_amplit.value = '1'; return false;">1</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "fluct_amplit.value = '2'; return false;">2</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "fluct_amplit.value = '3'; return false;">3</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "fluct_amplit.value = '4'; return false;">4</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "fluct_amplit.value = '5'; return false;">5</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "fluct_amplit.value = '6'; return false;">6</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "fluct_amplit.value = '7'; return false;">7</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "fluct_amplit.value = '8'; return false;">8</a></strong> | |
||||||
|
</td> |
||||||
|
<td align="center"><input required id="white_noise" class="mousetrap" name="white_noise" type="text" value="{$white_noise|escape}" placeholder="1/30" style="width:36px;"/><br /><br /> |
||||||
|
| <strong><a href="javascript:void(0);" onclick = "white_noise.value = '0'; return false;">0</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "white_noise.value = '1/6'; return false;">1/6</a></strong> | |
||||||
|
</td> |
||||||
|
<td align="center"><input required id="black_noise" class="mousetrap" name="black_noise" type="text" value="{$black_noise|escape}" placeholder="1/30" style="width:36px;"/><br /><br /> |
||||||
|
| <strong><a href="javascript:void(0);" onclick = "black_noise.value = '0'; return false;">0</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "black_noise.value = '1/30'; return false;">1/30</a></strong> | |
||||||
|
</td> |
||||||
|
<td align="center"><input required id="no_spaces" class="mousetrap" name="no_spaces" type="text" value="{$no_spaces|escape}" placeholder="true" style="width:39px;"/><br /><br /> |
||||||
|
| <strong><a href="javascript:void(0);" onclick = "no_spaces.value = 'false'; return false;">false</a></strong> | |
||||||
|
<strong><a href="javascript:void(0);" onclick = "no_spaces.value = 'true'; return false;">true</a></strong> | |
||||||
|
</td> |
||||||
|
<td align="center"> |
||||||
|
<a id="btn_sub" title="{#e_cap_of_info#}" class="btn blueBtn" href="javascript:void(0);">{#e_cap_submit#}</a> |
||||||
|
</td> |
||||||
|
</tr> |
||||||
|
</tbody> |
||||||
|
</table> |
||||||
|
</div> |
||||||
|
<script type="text/javascript" language="javascript"> |
||||||
|
$("#captcha-ref").click(function() {ldelim} $("#captcha img").attr("src", '{$ABS_PATH}inc/captcha.php?refresh=' + new Date().getTime()); {rdelim}); |
||||||
|
$("#btn_sub").on('click', function call() {ldelim} |
||||||
|
var allow_symbols = $("#allow_symbols").val(); |
||||||
|
var count_symbols = $("#count_symbols").val(); |
||||||
|
var fluct_amplit = $("#fluct_amplit").val(); |
||||||
|
var white_noise = $("#white_noise").val(); |
||||||
|
var black_noise = $("#black_noise").val(); |
||||||
|
var no_spaces = $("#no_spaces").val(); |
||||||
|
if (allow_symbols.length == 0 || count_symbols.length == 0 || fluct_amplit.length == 0 || white_noise.length == 0 || black_noise.length == 0 || no_spaces.length == 0) {ldelim}alert ('Заполните все поля!'){rdelim} |
||||||
|
else {ldelim} |
||||||
|
$.ajax({ldelim} |
||||||
|
type: 'POST', |
||||||
|
url: '{$ABS_PATH}modules/editcaptcha/res.php', |
||||||
|
data: {ldelim}a:allow_symbols,b:count_symbols,c:fluct_amplit,d:white_noise,e:black_noise,f:no_spaces{rdelim}, |
||||||
|
success: function(data) {ldelim} |
||||||
|
$.alerts._overlay('hide'); |
||||||
|
$.jGrowl("{#e_cap_infomod2#}", {ldelim} |
||||||
|
header: data['header'], |
||||||
|
theme: data['theme'] |
||||||
|
{rdelim}); |
||||||
|
{rdelim}, |
||||||
|
error: function(xhr, str){ldelim} |
||||||
|
alert('Возникла ошибка: ' + xhr.responseCode); |
||||||
|
{rdelim} |
||||||
|
{rdelim}); |
||||||
|
{rdelim} |
||||||
|
{rdelim}); |
||||||
|
</script> |
Loading…
Reference in new issue