".mysql_error()); //Բազա ենք սարքում, այն դեպքում երբ չկա mysql_query("CREATE DATABASE IF NOT EXISTS `$db`") or die("Կատարվել է սխալ, բազա սարքելու ժամանակ:
".mysql_error()); // ընտրում ենք բազան mysql_select_db($db); mysql_query("set names cp1251"); //mysql_query(" INSERT INTO `1407336190-yearwork-91F0WQ444X` SELECT * FROM `sportschoollevel1` "); /* mysql_query(" UPDATE `4604793018-paymentbook` SET `year` = '2018' ") or die("Տեղի է ունեցել սխալ, տվյալների բազայում փոփոխություն կատարելու ժամանակ
".mysql_error()); */ if ($_GET['event']=="enter") { $clubname=$_POST["myclubname"]; $clubid = $_POST["myclubid"]; $coachsearch = mysql_query(" SELECT * FROM `clubs-table` WHERE `clubid` = '$clubid' and `status` = 'ok' ") or die("Կատարվել է սխալ, բազայից ինֆորմացիա ընդունելու ժամանակ:
".mysql_error()); if(mysql_num_rows($coachsearch) > 0) { $coachsearch_list = mysql_fetch_assoc($coachsearch); $clubidst=$coachsearch_list['clubid']; $clubnamest=$coachsearch_list['clubname']; if($clubnamest==$clubname and $clubidst==$clubid) {$true="ok";} else {$true="nook";} } if($true=="ok") { $login = $_POST['mylogin']; $password = $_POST['mypassword']; $coachsearch = mysql_query(" SELECT * FROM `$clubid-coaches` WHERE `psw` = '$password' and `clubname` = '$clubname' and `status` = 'ok' ") or die("Կատարվել է սխալ, բազայից ինֆորմացիա ընդունելու ժամանակ:
".mysql_error()); if(mysql_num_rows($coachsearch) > 0) { $coachsearch_list = mysql_fetch_assoc($coachsearch); $mypassword=$coachsearch_list['psw']; $myname=$coachsearch_list['name']; $mynamearm=$coachsearch_list['namearm']; $mylname=$coachsearch_list['lname']; $mylnamearm=$coachsearch_list['lnamearm']; $mynameall = "$myname"."$mylname"; $coachid = $coachsearch_list['coachid']; $clubid = $coachsearch_list['clubid']; setcookie("passwordcoach", $mypassword, time()+60*60*24*31); setcookie("namecoach", $mynameall, time()+60*60*24*31); setcookie("clubid", $clubid, time()+60*60*24*31); setcookie("idcoach", $coachid, time()+60*60*24*31); $regenter="ok"; } } if($type=="marzich") {$header="index.php?event=linker";} else {$header="trpu/index.php?event=home";} if (!isset($regenter)) {print "$back. Տվյալները ՍԽԱԼ են"; exit;} header("Location: $header"); exit; } if(isset($_GET['event'])) { // очищаем куки, если выбран выход if ($_GET['event']=="clearcooke") { setcookie("passwordcoach", "", -1); setcookie("namecoach", "", -1); setcookie("clubid", "", -1); setcookie("idcoach", "", -1); print ""; exit;}} if(isset($_GET['event'])) { // очищаем куки, если выбран выход if ($_GET['event']=="clearcookeclub") { setcookie("clubid", ""); setcookie("idcoach", ""); setcookie("namecoach", ""); setcookie("passwordcoach", ""); print ""; exit;}} include"topindex.php"; print"
"; print"

Գործընկերներ


"; include"adminadshorizon.php"; print"
"; print'
'; print'

Համակարգի նկարագրություն


'; print" "; print"
"; print"
"; print" "; print"
"; print"
"; $tubenplus = mysql_query(" SELECT * FROM `vplaylist` WHERE `status` = 'ok' and `pid` = '' and `link` != '' ORDER BY `id` DESC ") or die("Կատարվել է սխալ, բազայից ինֆորմացիա ընդունելու ժամանակ:
".mysql_error()); if(mysql_num_rows($tubenplus) > 0) {$qtubenplus=0; while($tubenplus_list = mysql_fetch_assoc($tubenplus)) {$qtubenplus++; $idnplus = $tubenplus_list['id']; $urlnplus = $tubenplus_list['link']; $fetch=explode("v=", $urlnplus); $vidID=$fetch[1]; if($qtubenplus <= 5) {print""; if($qtubenplus == 5) {print""; $qtubenplus=0;} } }} if($qtubenplus>0 and $qtubenplus<5) {$pakas=4-$qtubenplus; for ($ii=0;$ii <= $pakas;$ii++) {print""; } } print"
";print"

 

"; print'

Գրանցված ակումբներ


'; $printbg = mysql_query(" SELECT * FROM `clubs-table` WHERE `status` = 'ok' ") or die("Կատարվել է սխալ, բազայից ինֆորմացիա ընդունելու ժամանակ:
".mysql_error()); if(mysql_num_rows($printbg) > 0) { $mijgort=mysql_num_rows($printbg);$printbggumar=1; while($printbg_list = mysql_fetch_assoc($printbg)) {$printbggumar++; $clubname=$printbg_list['clubname']; $clubid=$printbg_list['clubid']; if ($printbggumar % 2 === 0) { print"";} print"

$clubname
"; } } print'
'; function printleader($id, $pid, $pnamearm, $plnamearm, $pnumber, $phasak, $tari, $alig, $blig, $clig, $dlig, $elig, $sex, $zuygkent, $users, $tr ) { print" $tr

$pnamearm $plnamearm
Խաղ. համար՝ $pnumber
Հասակ՝ $phasak սմ
Ծնն.տար.՝ $tari թ.

 

"; } function printteam($id, $pid, $pnamearm, $plnamearm, $pnumber, $phasak, $tari, $alig, $blig, $clig, $dlig, $elig, $gamepoint, $freethrowsmade, $shotmade, $shotmade3, $gameplayed, $zuygkent, $users, $tr, $td ) { if ($gameplayed == "" or $gameplayed == "0") { $freethrowsmademij = "0"; $shotmademij = "0"; $freeshotmademij = "0"; $gamepointmij = "0"; } else { $freethrowsmademij = $freethrowsmade/$gameplayed; $freethrowsmademij = round($freethrowsmademij,2); $shotmademij = $shotmade/$gameplayed; $shotmademij = round($shotmademij,2); $freeshotmademij = $shotmade3/$gameplayed; $freeshotmademij = round($freeshotmademij,2); $gamepointmij = $gamepoint/$gameplayed; $gamepointmij = round($gamepointmij,2); } print" $tr $td "; /* print" ";*/ print"

$pnamearm $plnamearm
ընդ. միավորներ $gamepoint
տուգանայիններ $freethrowsmademij
2 միավորներ $shotmademij
3 միավորներ $freeshotmademij
մեկ խաղում $gamepointmij
խաղերի քանակ $gameplayed
Խաղային համար $pnumber
Հասակ $phasak սմ
Ծնն. տարեթիվ $tari թ.

 

 

"; } print"

Ակումբի գրանցում


"; /* print"
Ակումբի անվանում
Մարզ
Քաղաք
Վարչական շրջան
Հասցե
Հեռախոսահամար
Էլ. Փոստ
Մուտքանուն
Գաղտնաբառ
Կրկնել գաղտնաբառը
Կայք
Նկարագրություն
Լօգո
 
Ղեկավարի անձնական տվյալներ
Անուն
Ազգանուն
Սեռը
Ծնն. տարեթիվ

 

"; //////////////////////// verj $qt == 0 ////////////////////// print" "; */ print'
'; print"

Գովազդ


"; include"adminadsvertical.php"; print"
"; include("theend.php"); ?>