Mad Knight
Повторюсь не работает форма добавления
страница scjwebmaster.php выдает строчку Parse error: syntax error, unexpected $end in /var/www/domen_com/scj/templates/wm_signup.tpl on line 444
содержание wm_signup.tpl <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>SmartCJ Pro SignUp Page</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="keys" />
<meta name="description" content="desc" />
<script src='./includes/js/jquery.js'></script>
<script src='./includes/js/fast_trade_import.js'></script>
<script>
process_FTI = false;
function FTI() {
if (process_FTI) {
var data = new Array();
data = ParseText($('#fast_add').val())
if (data) FTI_fill_fields(data);
}
setTimeout('FTI()', 1000);
}
setTimeout('FTI()', 1000);
$(document).ready(function(){
$(':input').each(function() {
if ($(this).attr('id') == undefined || !$(this).attr('id') ) {
$(this).attr('id', $(this).attr('name') );
}
});
});
</script>
<style type="text/css">
body,html,p,h1,h2,h3,td,tr,table { padding:0; margin:0;}
body { background:#003366;color: #FFFFFF;font: 10pt "Trebuchet MS", Arial, Helvetica, sans-serif;}
a, a:hover, a:visited {color: #FFFF99;font: 10pt "Trebuchet MS",serif;text-decoration: underline;}
a:hover { text-decoration:none;}
.form_1 { width:580px; margin:0 auto; padding:10px 0;}
.content { background:#0059B1; border:7px solid #00468C;-webkit-border-radius: 20px;-moz-border-radius: 20px;border-radius: 20px;}
.header {background-color: #0066CC;color: #FFFFFF;font: bold 24px "Trebuchet MS",serif;padding:10px 0; text-align:center;-webkit-border-radius: 15px;-moz-border-radius: 15px;border-radius: 15px;}
#smartcjpro {color: #FFCC00;font: italic bold 24px "Trebuchet MS",serif;text-decoration: underline;}
.header a, .header a:visited, .header a:hover { text-decoration:none; }
.cont { padding:15px 15px 0; *height:1%;}
.text { padding:0 0 10px; font-size:11px;}
.cntr { text-align:center;}
.head { font-size:15pt; font-weight:normal;}
.box { background:#0050A0;-webkit-border-radius: 15px;-moz-border-radius: 15px;border-radius: 15px; padding:5px 20px;width:480px; margin:0 auto 20px;}
.b_desc {color: #84C2FF; font-size:11px; }
.tab_1 { width:100%; border:0; border-collapse:collapse;}
.tab_1 td { padding:5px 0;border-top:1px solid #006bd6;}
.inputbox {background-color: #FFFFFF;border: 0 none;font: 11px "Trebuchet MS",serif;padding-left: 3pt;width: 260px;}
select.inputbox { width:264px;}
.formstext {color: #FFFFFF;font: 14px "Trebuchet MS",serif;}
.names {color: #FFCC00;font: bold 14px "Trebuchet MS",serif;padding: 0;}
.formdescs {color: #84C2FF;font: 8pt "Trebuchet MS",serif;}
.sub_1 {background-color: #ECE9D8;border: 0 solid #003366;color: #000000;font: bold 10pt "Trebuchet MS",serif;padding-left: 3pt;width: 120px; cursor:pointer; margin:5px 0;}
.tx2 { padding-top:15px; font-size:11px;}
</style>
</head>
<body>
<?php if ($settings["auto_signup"]) { ?>
<form enctype="multipart/form-data" method="POST">
<input type="hidden" name="operation" value="webmaster" />
<div class="form_1">
<div class="content">
<div class="header">This site is powered by <a href="http://smartcj.com/"><span id="smartcjpro">SmartCJ Pro</span></a></div>
<div class="cont">
<div class="text cntr"> This site is powered by <b>SmartCJ Pro</b> traffic exchange script.<br />
If you would like to trade traffic with us, all you have to do is fill in the
form below and start sending traffic.</div>
<div class="text"><?php echo $settings['signup_trade_rules']?>
<? if ($error) { ?>
<br>
<font color='red' size=+1><?php echo $error?></font>
<? } ?>
</div>
<h2 class="head cntr">Personal Data</h2>
<div class="box">
<p class="b_desc cntr">Here is your Personal Info. This data is needed to contact you in some cases.</p>
<table class="tab_1">
<tr>
<td width="220" class="formstext">Your <span class="names">Nickname:</span></td>
<td><input type="text" name="fields[tni]" maxlength="50" size="20" value="Your NickName" onfocus="if (value=='Your NickName') {value='';}" onblur="if (value==''){value='Your NickName';}" class="inputbox" id="fields[tni]" /></td>
</tr>
<tr>
<td class="formstext">Your <span class="names">ICQ</span> # or your icq #/nick:</td>
<td><input type="text" name="fields[ti]" maxlength="50" size="20" value="ICQ #" onfocus="if (value=='ICQ #') {value='';}" onblur="if (value==''){value='ICQ #';}" class="inputbox" id="fields[ti]" /></td>
</tr>
<tr>
<td class="formstext">Your <span class="names">E-Mail</span> Address:</td>
<td><input type="text" name="fields[te]" maxlength="50" size="20" value="Email@address.com" onfocus="if (value=='Email@address.com') {value='';}" onblur="if (value==''){value='Email@address.com';}" class="inputbox" id="fields[te]" /></td>
</tr>
</table>
</div><!--/END BOX-->
<h2 class="head cntr">Traffic Settings</h2>
<div class="box">
<p class="b_desc cntr">Here is your traffic trade settings.</p>
<table class="tab_1">
<tr>
<td width="220" class="formstext"><span class="names">URL</span> you want me to send hits:<br /><span class="formdescs">Like
http://www.yourhost.com/ or
http://yourhost.com/cjpage.html</span></td>
<td><input type="text" name="fields[tu]" maxlength="200" size="40" value="http://www.yourhost.com/" onfocus="if (value=='http://www.yourhost.com/') {value='';}" onblur="if (value==''){value='http://www.yourhost.com/';}" class="inputbox" id="fields[tu]" /> </td>
</tr>
<tr>
<td class="formstext">Your <span class="names">Site Name:</span><br /><span class="formdescs">(for my toplist)</span></td>
<td><input type="text" name="fields[tn]" maxlength="50" size="40" value="Cool Site" onfocus="if (value=='Cool Site') {value='';}" onblur="if (value==''){value='Cool Site';}" class="inputbox" id="fields[tn]" /></td>
</tr>
<tr>
<td class="formstext">Your <span class="names">Site Description:</span><br /><span class="formdescs">(for my toplist)</span></td>
<td><input type="text" name="fields[tdesc]" maxlength="100" size="40" value="The Best Site" onfocus="if (value=='The Best Site') {value='';}" onblur="if (value==''){value='The Best Site';}" class="inputbox" id="fields[tdesc]" /></td>
</tr>
<tr>
<td class="formstext">Your <span class="names">Password:</span><br />
<span class="formdescs">(to protect your stats)</span></td>
<td><input type="text" name="fields[tpassword]" maxlength="100" size="40" value="password" onfocus="if (value=='password') {value='';}" onblur="if (value==''){value='password';}" class="inputbox" id="fields[tpassword]" /></td>
</tr>
<?php if (count($groups) > 0) { ?>
<tr>
<td class="formstext">Prefered <span class="names">Group</span> for your site</td>
<td>
<select name="fields[group][]" class="inputbox" id="fields[group]" <?php if (count($groups) > 1) { ?> multiple size=3 <? } ?> >
<?php
foreach ($groups as $z => $group) {
?>
<option value="<?php echo $group?>">
<?php echo $group?>
</option>
<?php } ?>
</select>
</td>
</tr>
<?php } ?>
<? if ($settings['signup_upload_logo']) { ?>
<tr>
<td class="formstext">
Select <span class="names">site logo</span>:<br />
Max size: <?php echo $settings['signup_logo_max_x']?>x<?php echo $settings['signup_logo_max_y']?></td>
</td>
<td>
<input name="userfile" type="file" class="inputbox">
</td>
</tr>
<? } ?>
<?php if ($settings['signup_textcaptcha']) { ?>
<tr>
<td class="formstext">
Please, answer a <span class="names">Question</span>:<br />
<?php echo $question?>
</td>
<td>
<input type="text" name="security_answer" maxlength="100" size="40" class="inputbox" id="security_answer" />
</td>
</tr>
<?php } ?>
</table>
</div><!--/END BOX-->
<div class="cntr text2">
<a href="http://smartcj.com/wiki/doku.php?id=fast_trade_add">Fast Trade Signup</a> (Paste Info here)<br />
<textarea onblur="process_FTI=false;" onfocus="process_FTI=true;" rows="4" cols="30" id="fast_add" name="fast_add" style="width: 70%;"></textarea><br />
Please send all hits to:<br />
<?php echo $settings['site_url']?><br />
You can contact me by e-mail: <a href="mailto:<?php echo $settings['admin_email']?>"><?php echo $settings['admin_email']?></a><br />
or ICQ: <?php echo $settings['admin_icq']?><br />
<p><input type="submit" value="Add Your Site" name="submit" id="submit" class="sub_1" /></p>
</div>
<?php
if ($settings['wm_show_network'] and count($GLOBALS['ga_sites'])) { ?>
<br><br>
<h2 class="head cntr">Network</h2>
<div class="box">
<p class="b_desc cntr">You can also add your site to other sites of our network</p>
<table class="tab_1">
<?foreach ($GLOBALS['ga_categories'] as $category_id => $cat_d) { ?>
<tr>
<td colspan=3 width="220" class="formstext"><span class="names"><?=$cat_d['name']?></span></td>
</tr>
<?foreach ($GLOBALS['ga_sites'] as $site_id => $site_d) {
if ($site_d['category'] != $category_id or !$site_d['show_on_wm_form']) continue;
?>
<tr>
<td class="formstext"><?=$site_d['name']?></td>
<td><a href='http://<?=$site_d['domain']?>/scj/scjwebmaster.php' target=_blank><?=$site_d['domain']?> SignUp </a></td>
<td><input type="checkbox" name="site_ids[]" value="<?=$site_id?>"></td>
</tr>
<? } } ?>
</table>
</div><!--/END BOX-->
<?php } ?>
<div class="text cntr tx2">
Take a look at <a href="http://www.cjwebmasters.com/">Public Blacklist</a> based on <a href="http://www.smartcj.com/">Trade Script</a></div>
</div>
</div>
</form>
<?php } else { ?>
<div class="form_1">
<div class="content">
<div class="header" >This site is powered by <a href="http://smartcj.com/"><span id="smartcjpro">SmartCJ Pro</span></a></div>
<div class="box">
<div align="center" class="text">
<h2>Signup page is temporary closed.</h2>
<font size="2" face="Verdana">You can contact me by ICQ# :
<?php echo $settings["admin_icq"]?>
or e-mail <a href='mailto:<?php echo $settings["admin_email"]?>'><?php echo $settings["admin_email"]?></a></font>
<br>
<br>
</div>
<div class="text cntr tx2">
Take a look at <a href="http://www.cjwebmasters.com/">Public Blacklist</a> based on <a href="http://www.smartcj.com/">Trade Script</a></div>
</div>
</div>
<?php } ?>
<?php if ($settings['allow_wm_stats']) { ?>
<form method="post">
<input name="operation" value="stats" type="hidden">
<p>
<div class="form_1">
<div class="content">
<h2 class="head cntr">Check Stats</h2>
<div class="box">
<p class="b_desc cntr">Type your domain and password</p>
<table class="tab_1">
<tr>
<td width="220" class="formstext">Your <span class="names">Domain:</span></td>
<td><input type="text" name="td" maxlength="50" size="20" value="" class="inputbox" /></td>
</tr>
<tr>
<td class="formstext">Your <span class="names">password</span></td>
<td><input type="text" name="tpassword" maxlength="50" size="20" value="" class="inputbox" /></td>
</tr>
</table>
</div><!--/END BOX-->
<div class="cntr text2">
<p><input type="submit" value="Check your stats" name="submit" id="submit" class="sub_1" /></p>
</div>
<div class="text cntr tx2">
Powered by <a href="http://www.smartcj.com/">Traffic Trade Script</a></div>
</div>
</div>
</form>
<?php } ?>
<?php if ($settings['wm_contact_form']) { ?>
<p>
<form method="post">
<input name="operation" value="contact_wm" type="hidden">
<div class="form_1">
<div class="content">
<h2 class="head cntr">Contact Webmaster </h2>
<? if ($error) { ?>
<br>
<font color='red' size=+1><?php echo $error?></font>
<? } ?>
<div class="box">
<p class="b_desc cntr">This messages will be sent right to webaster's email</p>
<table class="tab_1">
<tr>
<td width="220" class="formstext">Your <span class="names">Email:</span></td>
<td><input type="text" name="wm_email" maxlength="50" size="20" value="" class="inputbox" /></td>
</tr>
<tr>
<td class="formstext">Your <span class="names">Message</span></td>
<td>
<textarea style="width : 100%;" name="message" id="inputbox" cols="30" rows="4"></textarea>
</td>
</tr>
<tr>
<td class="formstext">
Please, answer a <span class="names">Question</span>:<br />
<?php echo $contact_question?>
</td>
<td>
<input type="text" name="contact_answer" maxlength="100" size="40" class="inputbox" id="contact_answer" />
</td>
</tr>
</table>
</div><!--/END BOX-->
<div class="cntr text2">
<p><input type="submit" value="Contact webmaster" name="submit" id="submit" class="sub_1" /></p>
</div>
<div class="text cntr tx2">
Powered by <a href="http://www.smartcj.com/">Traffic Trade Script</a></div>
</div>
</div>
</form>
<?php } ?>
</body>
</html>
стоит последний апдейт Build 201506030910
куда копать?
Последний раз редактировалось: Mad Knight (29/06/15 в 06:02), всего редактировалось 1 раз
exawm
LemonS:, подскажи плиз по роллингу тумб такой момент...
После подгрузки на страницу блоков тумб со следующей паги аяксом, роллинг на новых тубмах перестаёт работать (
Скрипт роллинга взят из документации
<script>
$(document).ready(function() {
$("img[id^=rot]").bind('mouseenter', function() {
$(this).attr('rotating', 1);
StartSlide($(this).attr('id'));
}).mouseleave(function() {
$(this).attr('rotating', 0);
if ($(this).attr('original_src')) $(this).attr('src', $(this).attr('original_src'));
});
});
function StartSlide(id) {
if (!$('#' + id).attr('rotating') || $('#' + id).attr('rotating') == 0) return false;
if (!$('#' + id).attr('original_src')) $('#' + id).attr('original_src', $('#' + id).attr('src'));
var images = $('#' + id).attr('original_src') + ',' + $('#' + id).attr('rel');
images = images.split(',');
var cur = $('#' + id).attr('current_img');
cur = parseInt(cur);
cur = (!cur || cur == 0) ? 1 : (cur+1);
cur = (!images[cur]) ? 0 : cur;
$('#' + id).attr('current_img', cur);
var preload = new Image();
if (cur == 0) {
preload.src = $('#' + id).attr('original_src');
} else {
preload.src = images[cur];
}
if ($('#' + id).attr('rotating')) setTimeout("ChangeSRC('"+id+"', '"+preload.src+"')", 700);
}
function ChangeSRC(id, src) {
if (!$('#' + id).attr('rotating') || $('#' + id).attr('rotating') == 0) return false;
$('#' + id).attr('src', src);
StartSlide(id);
}
</script>
Можешь поправить под аякс вариант пагинации?