|
|
|
|
|
для: Timurka
(03.08.2009 в 14:28)
| | function formCheck(form) JS написана способом "в лоб". Эту функцию нужно упростить до 3-4 строчек кода.
Тоже самое касается и вывода таблиц, судя по коду, информация в нее помещается из массива, а значит можно сделать вывод элементов таблицы в цикле. | |
|
|
|
|
|
|
|
для: Timurka
(03.08.2009 в 14:26)
| | >Сделал так как вы сказали:
>
><?if((C_PHOTOR)&&($i=="0")) echo ";$tm=array(C_MAXSZ);echo template($w[223],$tm);?>
> </font></span> </td>
> <td width="29">
> <?if((C_PHOTOR)&&($i=="0")) echo $w[0]; ?>
> </td>
>
|
>теперь показывает:
>
>Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /home/a6767914/public_html/add.php on line 940
>
Естественно будут ошибки. С кавычками намудрено...
<?if((C_PHOTOR)&&($i=="0")) echo ";$tm=array(C_MAXSZ);echo template($w[223],$tm);?>
</font></span> </td>
<td width='29'>
<?if((C_PHOTOR)&&($i=='0')) echo $w[0]; ?>
</td>
|
В этом коде нету конца еха, или же там продолжение? Если ехо открывается 2-йными кавычками то внутри все одинарные, или же экранируются. | |
|
|
|
|
|
|
|
для: Timurka
(03.08.2009 в 14:26)
| | вы поставили 1 кавычку, а нужно 2а апострофа (или 2е кавычки)
а насчет того что не рисует, тут лично не подскажу, весь код разбирать времени нет. ошибку мы показали где, а логически проверить код некогда. | |
|
|
|
|
|
|
|
для: speedsoft
(03.08.2009 в 13:49)
| | Попробовал, убрал... ошибок нестало, но теперь и анкета вообще не рисуется..(((( выдает пустую страницу... | |
|
|
|
|
|
|
|
для: speedsoft
(03.08.2009 в 13:51)
| | Сделал так как вы сказали:
<?if((C_PHOTOR)&&($i=="0")) echo ";$tm=array(C_MAXSZ);echo template($w[223],$tm);?>
</font></span> </td>
<td width="29">
<?if((C_PHOTOR)&&($i=="0")) echo $w[0]; ?>
</td>
|
теперь показывает:
Parse error: syntax error, unexpected T_LNUMBER, expecting ',' or ';' in /home/a6767914/public_html/add.php on line 940
| |
|
|
|
|
|
|
|
для: x64
(03.08.2009 в 13:44)
| | накрайняк, может я логики не улавливаю, замени
на
| |
|
|
|
|
|
|
|
для: Timurka
(03.08.2009 в 13:31)
| | да и вообще странная строка. Зачем условие? если выполняется то ничего не выводим, а если не выполняется, то ничего не делаем
<?if((C_PHOTOR)&&($i=="0")) echo 'ТУТ ЧТО-ТО ДОЛЖНО БЫТЬ';$tm=array(C_MAXSZ);echo template($w[223],$tm);?>
|
или вообще убери условие
<span class="desc"><font color="#336699">
<?$tm=array(C_MAXSZ);echo template($w[223],$tm);?>
</font></span> </td>
<td width="29">
<?if((C_PHOTOR)&&($i=="0")) echo $w[0]; ?>
</td>
|
| |
|
|
|
|
|
|
|
для: Timurka
(03.08.2009 в 13:31)
| | хм, а по моим подсчётам это строка
if((C_PHOTOR)&&($i=="0")) echo ;
и вопрос: echo ?? что? что выводится? если ничего быть не должно, можно поставить {} (без! точки с запятой). | |
|
|
|
|
|
|
|
Parse error: syntax error, unexpected ';' in /home/../public_html/add.php on line 938
<?php
include_once 'include/config.inc.php';
include_once 'include/options.inc.php';
include_once 'include/security.inc.php';
include_once 'include/functions.inc.php';
include_once 'templates/'.C_TEMP.'/config.php';
include_once 'templates/'.C_TEMP.'/header.php';
$errors = ''; // By default - no errors
if(!isset($a)) $a='';
if ($a == 'a') {
#################
### Check section - it very big and also very-very needed
### for correct profiles in database
#################
// Important and Need check&rewrite!
$fname=cb($fname);$lname=cb($lname);$pass=cb($pass);$rpass=cb($rpass);$email=cb($email);$url=cb($url);$icq=cb($icq);$aim=cb($aim);$phone=cb($phone);$city=cb($city);$job=cb($job);$hobby=cb($hobby);$descr=cb($descr);
// Check for numeric select
if(C_HACK1) {
if(!is_numeric($day)||!is_numeric($month)||!is_numeric($year)||!is_numeric($gender)||!is_numeric($purpose)||!is_numeric($country)||!is_numeric($marstat)||!is_numeric($child)||!is_numeric($height)||!is_numeric($weight)||!is_numeric($hcolor)||!is_numeric($ecolor)||!is_numeric($heightf)||!is_numeric($heightt)||!is_numeric($weightf)||!is_numeric($weightt)||!is_numeric($etnicity)||!is_numeric($setnicity)||!is_numeric($religion)||!is_numeric($sreligion)||!is_numeric($smoke)||!is_numeric($drink)||!is_numeric($education)||!is_numeric($sgender)||!is_numeric($agef)||!is_numeric($aget)||!is_numeric($hdyfu)) printm($w[1].'1',1);}
// Check for real data of arrays!
if(C_HACK2) {
if(($day < 0)||($day > 31)||($month < 0)||($month > 12)||($gender < 0)||($gender >= sizeof($wg))||($sgender < 0)||($sgender >= sizeof($wg))||($purpose < 0)||($purpose >= sizeof($wp))||($country < 0)||($country >= sizeof($wcr))||($marstat < 0)||($marstat >= sizeof($wm))||($child < 0)||($child >= sizeof($wc))||($height < 0)||($height >= sizeof($wh))||($weight < 0)||($weight >= sizeof($ww))||($heightf < 0)||($heightf >= sizeof($wh))||($weightf < 0)||($weightf >= sizeof($ww))||($heightt < 0)||($heightt >= sizeof($wh))||($weightt < 0)||($weightt >= sizeof($ww))||($hcolor < 0)||($hcolor >= sizeof($whc))||($ecolor < 0)||($ecolor >= sizeof($we))||($etnicity < 0)||($etnicity >= sizeof($wet))||($setnicity < 0)||($setnicity >= sizeof($wet))||($religion < 0)||($religion >= sizeof($wr))||($sreligion < 0)||($sreligion >= sizeof($wr))||($smoke < 0)||($smoke >= sizeof($ws))||($drink < 0)||($drink >= sizeof($wd))||($education < 0)||($education >= sizeof($wed))||($agef < C_AGES)||($agef > C_AGEB)||($aget < C_AGES)||($aget > C_AGEB)||($hdyfu < 0)||($hdyfu >= sizeof($wu))) printm($w[1].'2',1);}
// Check for unic. email
if (C_UNICM)
{
$result = mysql_query('SELECT count(id) as count FROM '.C_MYSQL_MEMBERS.' WHERE email = \''.$email.'\'');
$trows = mysql_fetch_array($result);
$count = $trows['count'];
if ($count != '0') $errors .= $w[45].'<br>';
}
if(!C_ID) {
$username=cb($username);
if (!ereg("^[A-Za-z0-9_@#.-]{3,64}$", $username) || empty($username)) printm($w[266]);
$result = mysql_query('SELECT count(id) as count FROM '.C_MYSQL_MEMBERS.' WHERE username = \''.$username.'\'');
$trows = mysql_fetch_array($result);
$count = $trows['count'];
if ($count != '0') $errors .= $w[267].'<br>';
}
else {
if (!empty($username))
{
printm($w[1].'5');
}
}
if (((C_FIRSTNR)||(!empty($fname)))&&((strlen($fname) > C_FIRSTNB)||(strlen($fname) < C_FIRSTNS))) {
$tm=array(C_FIRSTNS,C_FIRSTNB);
printm(template($w[3],$tm));
}
if (((C_LASTNR)||(!empty($lname)))&&((strlen($lname) > C_LASTNB)||(strlen($lname) < C_LASTNS))) {
$tm=array(C_LASTNS,C_LASTNB);
printm(template($w[4],$tm));
}
// Final checks for most real values for profiles
if (((C_BIRTHR)||(!empty($month))||(!empty($day))||(!empty($year)))&&(($month == "0")||($day == "0")||($year == "0"))) printm($w[5]);
if ((strlen($pass) > C_PASSB)||(strlen($pass) < C_PASSS)) {
$tm=array(C_PASSS,C_PASSB);
printm(template($w[6],$tm));
}
if ((C_GENDR)&&($gender == "0")) printm($w[7]);
if ((C_SGENDR)&&($sgender == "0")) printm($w[8]);
if ((C_PURPR)&&($purpose == "0")) printm($w[9]);
if ((C_CNTRR)&&($country == "0")) printm($w[10]);
if (c_email($email) == 0) printm($w[11]);
if (!empty($url)) {
$url=checkurl($url);
if (strlen($url) < 3) {$url="";printm($w[12],1);}
}
if ((!empty($icq))&&(!is_numeric($icq))) printm($w[13],1);
if ((!empty($zip))&&(!is_numeric($zip))) printm($w[288],1);
if ((!empty($aim))&&((strlen($aim) < 3)||(strlen($aim) > 300))) printm($w[14],1);
if ((C_PHONER)&&(empty($phone))) printm($w[15]);
if ((C_ZIPR)&&(empty($zip))) printm($w[288]);
if ((C_CITYR)&&(empty($city))) printm($w[16]);
if ((C_MARSR)&&($marstat == "0")) printm($w[17]);
if ((C_CHILDR)&&($child == "0")) printm($w[18]);
if ((C_HGHTR)&&($height == "0")) printm($w[19]);
if ((C_WGHTR)&&($weight == "0")) printm($w[20]);
if ((C_SHGHTR)&&($heightf == "0")) printm($w[21]);
if ((C_SHGHTR)&&($heightt == "0")) printm($w[21]);
if ((C_SWGHTR)&&($weightf == "0")) printm($w[22]);
if ((C_SWGHTR)&&($weightt == "0")) printm($w[22]);
if ((C_HAIRR)&&($hcolor == "0")) printm($w[23]);
if ((C_EYER)&&($ecolor == "0")) printm($w[24]);
if ((C_ETNR)&&($etnicity == "0")) printm($w[25]);
if ((C_RELR)&&($religion == "0")) printm($w[26]);
if ((C_SETNR)&&($setnicity == "0")) printm($w[27]);
if ((C_SRELR)&&($sreligion == "0")) printm($w[28]);
if ((C_SMOKER)&&($smoke == "0")) printm($w[29]);
if ((C_DRINKR)&&($drink == "0")) printm($w[30]);
if ((C_EDUCR)&&($education == "0")) printm($w[31]);
if ((C_JOBR)&&(empty($job))) printm($w[32]);
if ((C_SAGER)&&((empty($agef)||empty($aget)))) printm($w[33]);
if ((C_HDYFUR)&&($hdyfu == "0")) printm($w[34]);
if (C_HOBBR) {
if (empty($hobby) || trim($hobby) == "") printm($w[35]);
if (strlen($hobby) > C_HOBBB) {
$tm=array(C_HOBBB);
printm(template($w[36],$tm));
}
$e = explode(" ",$hobby);
for ($a = 0; $a < sizeof($e); $a++){
$o = strlen($e[$a]);
if ($o > C_HOBBW) {
$tm=array(C_HOBBW);
printm(template($w[37],$tm));
}
}
}
if ((C_DESCR)&&($descr) == "0") printm($w[38]);
if (strlen($descr) > C_DESCB) {
$tm=array(C_DESCB);
printm(template($w[39],$tm));
}
$e = explode(" ",$descr);
for ($a = 0; $a < sizeof($e); $a++){$o = strlen($e[$a]);
if ($o > C_DESCW) {
$tm=array(C_DESCW);
$errors .= $w[7].'<br>';
}
}
if (C_CHECK_REGISTER == '0') $cst = 7;
elseif (C_CHECK_REGISTER == '2') $cst = 1;
else $cst = 0;
$picture=array('','','');
if ((C_PHOTOR)&&((empty($HTTP_POST_FILES['file0']['name']))&&(empty($HTTP_POST_FILES['file1']['name']))&&(empty($HTTP_POST_FILES['file2']['name'])))) printm($w[41],1);
////////////// Include class for file uploading!
include_once 'classes/upload.class.php';
//////////////
$time = time();
for($p=0;$p<=2;$p++) {
$file='file'.$p;$k=$p+1;
if(!empty($HTTP_POST_FILES[$file]['name'])) {
if(!C_IMG_ERR) { // If Unavailable image upload errors with UIN
$dir = date("mY", $time);$slash="/";
if (!is_dir(C_PATH.'/members/uploads/'.$dir))
{umask(0);mkdir (C_PATH."/members/uploads/".$dir, 0777);}
} else $dir=$slash="";
$fb=date("dHis",$time);$fe=rand(0,999);$fn =$fb."-".$fe;
$intpic = $dir.$slash.$fn.'.';
$u = new Upload($file,C_MAXSZ,C_MAXWD,C_MAXHG,C_PATH.'/members/uploads/'.$intpic);
if(!$u->do_upload()) printm($u->getErrors());
$picture[$p]=$intpic.$u->getType();
}
}
$usr = (C_ID) ? '' : "'".$username."',";
mysql_query("INSERT INTO ".C_MYSQL_MEMBERS." VALUES ('', ".$usr." '".$fname."','".$lname."','".$pass."',
'".$year."-".$month."-".$day."','".$gender."',
'".$purpose."','".$country."','".$email."','".$url."',
'".$icq."','".$aim."','".$phone."','".$zip."','".$city."','".$marstat."','".$child."','".$height."','".$weight."','".$hcolor."','".$ecolor."','".$etnicity."','".$religion."','".$smoke."','".$drink."','".$education."','".$job."','".$hobby."','".$descr."','".$sgender."','".$setnicity."','".$sreligion."','".$agef."','".$aget."','".$heightf."','".$heightt."','".$weightf."','".$weightt."','".$hdyfu."','".$picture[0]."','".$picture[1]."','".$picture[2]."','".horo($month,$day)."',NOW(''),NOW(''),INET_ATON('".ip()."'),'".$cst."','0')");
$last_id = mysql_fetch_array(mysql_query("SELECT LAST_INSERT_ID() AS last_id"));
$last_id = $last_id['last_id'];
$codegen=code_gen();
if((C_CHECK_REGISTER == '1')||(C_CHECK_REGISTER == '3')) {
$str=$w[42];
mysql_query("INSERT INTO ".C_MYSQL_TEMP." VALUES ('".$last_id."',NOW(''),'".$codegen."')");
sendmail(C_ADMINM,$email,$w[43],$w[44].C_URL.'/check.php?id='.$last_id.'&code='.$codegen,'text');
}
elseif(C_CHECK_REGISTER == '2') {
$str=$w[45];
}
elseif(C_CHECK_REGISTER == '0') {
$usrn = (C_ID) ? $last_id : $username;
$str=$w[46].$usrn.$w[47].$pass;
}
printm($str);
} else {
?>
<script language="JavaScript">
<!--
function formCheck(form) {
<?if (!C_ID) {?>
if (form.username.value == "")
{alert("<?=$w[266]?>");return false;}
<?}?>
<?if (C_FIRSTNR) {$tm=array(C_FIRSTNS,C_FIRSTNB);?>
if (form.fname.value == "")
{alert("<?=template($w[3],$tm)?>");return false;}
<?}?>
<?if (C_LASTNR) {$tm=array(C_LASTNS,C_LASTNB);?>
if (form.lname.value == "")
{alert("<?=template($w[4],$tm)?>");return false;}
<?}?>
if (form.pass.value == "")
<?$tm=array(C_PASSS,C_PASSB);?>
{alert("<?=template($w[6],$tm)?>");return false;}
if (form.rpass.value == "")
{alert("<?=$w[48]?>");return false;}
if (form.pass.value != form.rpass.value)
{alert("<?=$w[49]?>");return false;}
<?if (C_BIRTHR) {?>
if ((form.month.selectedIndex=="")||(form.day.selectedIndex=="")||(form.year.selectedIndex==""))
{alert("<?=$w[5]?>");return false;}
<?}?>
<?if (C_GENDR) {?>
if (form.gender.selectedIndex=="")
{alert("<?=$w[7]?>");return false;}
<?}?>
<?if (C_SGENDR) {?>
if (form.sgender.selectedIndex=="")
{alert("<?=$w[8]?>");return false;}
<?}?>
<?if (C_PURPR) {?>
if (form.purpose.selectedIndex=="")
{alert("<?=$w[9]?>");return false;}
<?}?>
<?if (C_ZIPR) {?>
if (form.zip.value=="")
{alert("<?=$w[288]?>");return false;}
<?}?>
<?if (C_CNTRR) {?>
if (form.country.selectedIndex=="")
{alert("<?=$w[10]?>");return false;}
<?}?>
if (form.email.value != form.username.value)
{alert("<?=$w[11]?>");return false;}
<?if (C_PHONER) {?>
if (form.phone.value == "")
{alert("<?=$w[15]?>");return false;}
<?}?>
<?if (C_CITYR) {?>
if (form.city.value == "")
{alert("<?=$w[16]?>");return false;}
<?}?>
<?if (C_MARSR) {?>
if (form.marstat.selectedIndex=="")
{alert("<?=$w[17]?>");return false;}
<?}?>
<?if (C_CHILDR) {?>
if (form.child.selectedIndex=="")
{alert("<?=$w[18]?>");return false;}
<?}?>
<?if (C_HGHTR) {?>
if (form.height.selectedIndex=="")
{alert("<?=$w[19]?>");return false;}
<?}?>
<?if (C_WGHTR) {?>
if (form.weight.selectedIndex=="")
{alert("<?=$w[20]?>");return false;}
<?}?>
<?if (C_HAIRR) {?>
if (form.hcolor.selectedIndex=="")
{alert("<?=$w[23]?>");return false;}
<?}?>
<?if (C_EYER) {?>
if (form.ecolor.selectedIndex=="")
{alert("<?=$w[24]?>");return false;}
<?}?>
<?if (C_ETNR) {?>
if (form.etnicity.selectedIndex=="")
{alert("<?=$w[25]?>");return false;}
<?}?>
<?if (C_RELR) {?>
if (form.religion.selectedIndex=="")
{alert("<?=$w[26]?>");return false;}
<?}?>
<?if (C_SETNR) {?>
if (form.setnicity.selectedIndex=="")
{alert("<?=$w[27]?>");return false;}
<?}?>
<?if (C_SRELR) {?>
if (form.sreligion.selectedIndex=="")
{alert("<?=$w[28]?>");return false;}
<?}?>
<?if (C_SMOKER) {?>
if (form.smoke.selectedIndex=="")
{alert("<?=$w[29]?>");return false;}
<?}?>
<?if (C_DRINKR) {?>
if (form.drink.selectedIndex=="")
{alert("<?=$w[30]?>");return false;}
<?}?>
<?if (C_EDUCR) {?>
if (form.education.selectedIndex=="")
{alert("<?=$w[31]?>");return false;}
<?}?>
<?if (C_JOBR) {?>
if (form.job.value=="")
{alert("<?=$w[32]?>");return false;}
<?}?>
<?if (C_HOBBR) {?>
if (form.hobby.value=="")
{alert("<?=$w[35]?>");return false;}
<?}?>
<?if (C_DESCR) {?>
if (form.descr.value=="")
{alert("<?=$w[38]?>");return false;}
<?}?>
if (form.terms.checked) return true;
else {alert("<?=$w[307]?>");return false;}
<?if (C_HDYFUR) {?>
if (form.hdyfu.selectedIndex=="")
{alert("<?=$w[34]?>");return false;}
<?}?>
<?if (C_PHOTOR) {?>
if ((form.file0.value=="")&&(form.file1.value=="")&&(form.file2.value==""))
{alert("<?=$w[41]?>");return false;}
<?}?>
if (document.form.submit.action != "") {
document.form.submit.disabled=0;}
}
// -->
</script>
<body><form action="<?=filename()?>" method="post" enctype="multipart/form-data" name=form OnSubmit="return formCheck(this)">
<p>
<input type="hidden" name="l" value="<?=$l?>">
<input type="hidden" name="a" value="a">
</p>
<p>
<center>
<table border=0 cellspacing="<?=C_IBORDER?>" cellpadding="<?=C_CELLP?>" width="700" class=mes align="center">
<?if(!C_ID) {?>
<?}?>
<tr align="<?=C_ALIGN?>">
<td width="650" height="5">
<div align="right"></div>
</td>
<td height="5" width="50" bgcolor="#E4E4E4">
<div align="right"><a href="<?=C_URL?>/add.php?l=default"><img src="images/flags/default.gif" width="19" height="13" border="0" alt="english"></a>
<a href="<?=C_URL?>/add.php?l=ru"><img src="images/flags/ru.gif" width="20" height="13" alt="русский" border="0"></a></div>
</td>
</tr>
<?for($i=0;$i<=2;$i++) {$k=$i+1;?>
<?}?>
</table>
<span class=head>
<?=$w[50]?>
</span> <br>
</center>
</p>
<center>
<center>
<p>
<?=$w[299];?>
</p>
</center>
</center>
<p>
<center>
</center>
</p>
<center>
<center>
</center>
</center>
<table cellspacing="<?=C_BORDER?>" cellpadding="0" width="<?=C_WIDTH?>" bgcolor="<?=C_TBCOLOR?>" align="center">
<tr>
<td>
<table border=0 cellspacing="<?=C_IBORDER?>" cellpadding="<?=C_CELLP?>" width="<?=C_WIDTH?>" class=mes>
<?if(!C_ID) {?>
<?}?>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[51]?>
</td>
<td width="29">
<?if(C_FIRSTNR) echo $w[0];?>
</td>
<td width="500">
<input class=input type=text name=fname maxlength="<?=C_FIRSTNB?>">
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[53]?>
</td>
<td width="29">
<?if(C_LASTNR) echo $w[0];?>
</td>
<td width="500">
<input class=input type=text name=lname maxlength="<?=C_LASTNB?>">
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[264]?>
</td>
<td width="29">
<?=$w[0];?>
</td>
<td width="500">
<input class=input type=text name=username>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[306]?>
</td>
<td width="29">
<?=$w[0];?>
</td>
<td width="500">
<input class=input type=text name=email>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[54]?>
</td>
<td width="29">
<?=$w[0]?>
</td>
<td width="500">
<input class=input type=password name=pass maxlength="<?=C_PASSB?>">
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[55]?>
</td>
<td width="29">
<?=$w[0]?>
</td>
<td width="500">
<input class=input type=password name=rpass maxlength="<?=C_PASSB?>">
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251"> </td>
<td width="29"> </td>
<td width="500"> </td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[56]?>
</td>
<td width="29">
<?if(C_BIRTHR) echo $w[0];?>
</td>
<td width="500">
<select name="month" class="sinput">
<option selected value=0> ---------
<? $p=1; while(isset($wmm[$p])) {
echo '<option value="'.$p.'">'.$wmm[$p];
$p++;
}
?>
</select>
<select name="day" class="data">
<option selected value=0> -----
<? for($p=1;$p<32;$p++) {echo '<option>'.$p;}
?>
</select>
<? $y=date("Y", time());$yfrom=$y-C_AGES;$yto=$y-C_AGEB; ?>
<select name="year" class="data">
<option selected value=0> -----
<? for($p=$yto;$p<=$yfrom;$p++) {echo '<option>'.$p;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[57]?>
</td>
<td width="29">
<?if(C_GENDR) echo $w[0];?>
</td>
<td width="500">
<select name="gender" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wg[$p])) {echo '<option value="'.$p.'">'.$wg[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[58]?>
</td>
<td width="29">
<?if(C_PURPR) echo $w[0];?>
</td>
<td width="500">
<select name="purpose" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wp[$p])) {echo '<option value="'.$p.'">'.$wp[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[59]?>
</td>
<td width="29">
<?if(C_CNTRR) echo $w[0];?>
</td>
<td width="500">
<select name="country" class="input">
<? $p=0;asort($wcr);reset($wcr);
while (list ($p, $val) = each ($wcr)) {
echo '<option value="'.$p.'">'.$val;
}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[65]?>
</td>
<td width="29">
<?if(C_CITYR) echo $w[0];?>
</td>
<td width="500">
<input class=input type=text name=city>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[63]?>
<br>
<font size="1" color="#666666" face="Verdana, Arial, Helvetica, sans-serif">
<font color="#999999">
<?=$w[317]?>
</font></font></td>
<td width="29">
<?if(C_DOM) echo $w[0];?>
</td>
<td width="500">
<input class=input type=text name=aim>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[64]?>
<br>
<font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#666666">
<font color="#999999">
<?=$w[317]?>
</font></font></td>
<td width="29">
<?if(C_PHONER) echo $w[0];?>
</td>
<td width="500">
<input class=input type=text name=phone>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[61]?>
</td>
<td width="29"> </td>
<td width="500">
<input class=input type=text name=url>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[62]?>
</td>
<td width="29"> </td>
<td width="500">
<input class=input type=text name=icq>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251"> </td>
<td width="29"> </td>
<td width="500"> </td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[66]?>
</td>
<td width="29">
<?if(C_MARSR) echo $w[0];?>
</td>
<td width="500">
<select name="marstat" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wm[$p])) {echo '<option value="'.$p.'">'.$wm[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[67]?>
</td>
<td width="29">
<?if(C_CHILDR) echo $w[0];?>
</td>
<td width="500">
<select name="child" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wc[$p])) {echo '<option value="'.$p.'">'.$wc[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[68]?>
</td>
<td width="29">
<?if(C_HGHTR) echo $w[0];?>
</td>
<td width="500">
<select name="height" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wh[$p])) {echo '<option value="'.$p.'">'.$wh[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[69]?>
</td>
<td width="29">
<?if(C_WGHTR) echo $w[0];?>
</td>
<td width="500">
<select name="weight" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($ww[$p])) {echo '<option value="'.$p.'">'.$ww[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[70]?>
</td>
<td width="29">
<?if(C_HAIRR) echo $w[0];?>
</td>
<td width="500">
<select name="hcolor" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($whc[$p])) {echo '<option value="'.$p.'">'.$whc[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[71]?>
</td>
<td width="29">
<?if(C_EYER) echo $w[0];?>
</td>
<td width="500">
<select name="ecolor" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($we[$p])) {echo '<option value="'.$p.'">'.$we[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[72]?>
</td>
<td width="29">
<?if(C_ETNR) echo $w[0];?>
</td>
<td width="500">
<select name="etnicity" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wet[$p])) {echo '<option value="'.$p.'">'.$wet[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[73]?>
</td>
<td width="29">
<?if(C_RELR) echo $w[0];?>
</td>
<td width="500">
<select name="religion" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wr[$p])) {echo '<option value="'.$p.'">'.$wr[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[74]?>
</td>
<td width="29">
<?if(C_SMOKER) echo $w[0];?>
</td>
<td width="500">
<select name="smoke" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($ws[$p])) {echo '<option value="'.$p.'">'.$ws[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[75]?>
</td>
<td width="29">
<?if(C_DRINKR) echo $w[0];?>
</td>
<td width="500">
<select name="drink" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wd[$p])) {echo '<option value="'.$p.'">'.$wd[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[76]?>
</td>
<td width="29">
<?if(C_EDUCR) echo $w[0];?>
</td>
<td width="500">
<select name="education" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wed[$p])) {echo '<option value="'.$p.'">'.$wed[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[77]?>
</td>
<td width="29">
<?if(C_JOBR) echo $w[0];?>
</td>
<td width="500">
<input class=input type=text name=job>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[78]?>
</td>
<td width="29">
<?if(C_HOBBR) echo $w[0];?>
</td>
<td width="500">
<input class=input type=text name=hobby>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[79]?>
</td>
<td width="29">
<?if(C_DESCR) echo $w[0];?>
</td>
<td width="500">
<textarea class=textarea cols=20 rows=8 name=descr></textarea>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251"> </td>
<td width="29"> </td>
<td width="500"> </td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[80]?>
</td>
<td width="29">
<?if(C_SGENDR) echo $w[0];?>
</td>
<td width="500">
<select name="sgender" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wg[$p])) {echo '<option value="'.$p.'">'.$wg[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[81]?>
</td>
<td width="29">
<?if(C_SETNR) echo $w[0];?>
</td>
<td width="500">
<select name="setnicity" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wet[$p])) {echo '<option value="'.$p.'">'.$wet[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[82]?>
</td>
<td width="29">
<?if(C_SRELR) echo $w[0];?>
</td>
<td width="500">
<select name="sreligion" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wr[$p])) {echo '<option value="'.$p.'">'.$wr[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[83]?>
</td>
<td width="29">
<?if(C_SAGER) echo $w[0];?>
</td>
<td width="500">
<select name="agef" class="minput">
<? for($p=C_AGES;$p<=C_AGEB;$p++){
if($p == C_AGES) echo '<option selected>'.$p;
else echo '<option>'.$p;
}?>
</select>
-
<select name="aget" class="minput">
<? for($p=C_AGES;$p<=C_AGEB;$p++){
if($p == C_AGEB) echo '<option selected>'.$p;
else echo '<option>'.$p;
}?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251" height="25">
<?=$w[84]?>
</td>
<td width="29" height="25">
<?if(C_SHGHTR) echo $w[0];?>
</td>
<td width="500" height="25">
<select name="heightf" class="minput">
<? $p=1;while(isset($wh[$p])) {
if($p == "1") echo '<option value="'.$p.'" selected>'.$wh[$p];
else echo '<option value="'.$p.'">'.$wh[$p];
$p++;}?>
</select>
-
<select name="heightt" class="minput">
<? $p=1;while(isset($wh[$p])) {
if($p == (sizeof($wh)-1)) echo '<option value="'.$p.'" selected>'.$wh[$p];
else echo '<option value="'.$p.'">'.$wh[$p];
$p++;}?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[85]?>
</td>
<td width="29">
<?if(C_SWGHTR) echo $w[0];?>
</td>
<td width="500">
<select name="weightf" class="minput">
<? $p=1;while(isset($ww[$p])) {
if($p == "1") echo '<option value="'.$p.'" selected>'.$ww[$p];
else echo '<option value="'.$p.'">'.$ww[$p];
$p++;}?>
</select>
-
<select name="weightt" class="minput">
<? $p=1;while(isset($ww[$p])) {
if($p == (sizeof($ww)-1)) echo '<option value="'.$p.'" selected value=0>'.$ww[$p];
else echo '<option value="'.$p.'">'.$ww[$p];
$p++;}?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251"> </td>
<td width="29"> </td>
<td width="500"> </td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251">
<?=$w[86]?>
</td>
<td width="29">
<?if(C_HDYFUR) echo $w[0];?>
</td>
<td width="500">
<select name="hdyfu" class="input">
<option selected value=0> ---------
<? $p=1;while(isset($wu[$p])) {echo '<option value="'.$p.'">'.$wu[$p];$p++;}
?>
</select>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td width="251"> </td>
<td width="29"> </td>
<td width="500"> </td>
</tr>
<?for($i=0;$i<=2;$i++) {$k=$i+1;?>
<tr align="<?=C_ALIGN?>">
<td width="251" background="spacer.gif">
<?=$w[87]?>
<?=$k?>
<br>
<span class="desc"><font color="#336699">
<?if((C_PHOTOR)&&($i=="0")) echo ;$tm=array(C_MAXSZ);echo template($w[223],$tm);?>
</font></span> </td>
<td width="29">
<?if((C_PHOTOR)&&($i=="0")) echo $w[0]; ?>
</td>
<td width="500">
<div align="left">
<input class=input type=file name="file<?=$i?>">
</div>
</td>
</tr>
<?}?>
<tr align="<?=C_ALIGN?>">
<td colspan=3 align=right>
<div align="center"><span class=desc><font color="#336699"><br>
<br>
<input type="checkbox" name="terms" checked>
<?=$w[315];?>
</font></span> </div>
</td>
</tr>
<tr align="<?=C_ALIGN?>">
<td colspan=3 align=right background="spacer.gif">
<div align="center">
<input class=input type=submit value="<?=$w[89]?>" name="submit">
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
<p> </p><div align="center"></div>
<?} ?>
<br>
|
<br>
Это вот эта строчка <span class="desc"><font color="#336699">
<?if((C_PHOTOR)&&($i=="0")) echo ;$tm=array(C_MAXSZ);echo template($w[223],$tm);?>
</font></span> </td>
<td width="29">
<?if((C_PHOTOR)&&($i=="0")) echo $w[0]; ?>
</td> | |
|
|
| |
|