| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/(Del)pathways.org.hk/en/ |
Upload File : |
<?php
require("../admin/configure.php");
$catid = (int)$_GET['catid'];
$page = trim(strtolower(mysql_real_escape_string($_GET['page'])));
$galleryid = $_GET['galleryid'];
$offset = $_GET["offset"];
$where = $_GET["where"];
$gallerytype = mysql_real_escape_string(htmlspecialchars($_GET["gallerytype"]));
?>
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>博思會 The Pathways Foundation Limited</title>
<meta name="keywords" content="Pathways,Dyslexia,Learning Support,SLD SpLD ADD ADHD,讀寫障礙,專注力不足,過度活躍症">
<meta name="description" content="博思會為非牟利註冊慈善團體,專為讀寫障礙學童提供針對性的中英數學科支援、或透過臨床心理學家、職業治療師及言語治療師為學童提供評估及輔導。此外,博思會亦為家長及教師安排講座及工作坊,對學障進行理論和實用性的探討。">
<link rel="stylesheet" type="text/css" href="../css/style.css" />
<link rel="stylesheet" type="text/css" href="../css/ddlevelsmenu-base.css" />
<link rel="stylesheet" type="text/css" href="../css/ddlevelsmenu-topbar.css" />
<script type="text/javascript" src="../js/ddlevelsmenu.js"></script>
<script type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<!-- Global site tag (gtag.js) - Google Ads: 873915644 -->
<script async src="https://www.googletagmanager.com/gtag/js?id=AW-873915644"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'AW-873915644');
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<table width="940" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" align="right" valign="top" background="../images/pagetopbg.jpg"><img src="../images/pagetopbg.jpg" width="38" height="30" align="absmiddle" />
<select name="menu1" onchange="MM_jumpMenu('parent',this,0)">
<option value="#">English</option>
<option value="../tc/<?=$page?>?page=<?=$page?>&gallerytype=<?=$gallerytype?>">繁體中文</option>
</select> </td>
</tr>
<tr>
<td height="10"></td>
</tr>
<tr>
<td><table width="940" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="220" align="left" valign="top"><a href="index.php"><img src="../images/pageimage1.jpg" width="199" height="549" border="0" /></a></td>
<td align="left" valign="top"><table width="720" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><div id="ddtopmenubar" class="mattblackmenu">
<ul>
<?
load(0, 0);
function load($p, $space)
{
$sql = "SELECT * ";
$sql .= "FROM template left outer join categories ";
$sql .= "ON template.templateid = categories.templateid ";
$sql .= "where parentid = $p ";
$sql .= "order by sortby asc ";
// echo $sql;
$result1 = mysql_query($sql);
$n=1;
$count = mysql_num_rows($result1);
while ($row = mysql_fetch_array($result1,MYSQL_ASSOC))
{
if ($space <> 0 && $n == 1)
echo "<ul id='". $row{'parentid'} ."' class='ddsubmenustyle'>";
if($row{'templateid'} == '1') {
$str = "<li><a ";
} else {
$str = "<li><a href='". $row{'templatename'} .".php?page=". $row{'templatename'} .".php&catid=". $row{'catid'} ."'";
}
$sql2 = " select * from categories where parentid = ".$row{'catid'};
$res2 = mysql_query($sql2);
if (mysql_num_rows($res2) > 0)
$str .= "rel='". $row{'catid'} ."' ";
if ($row{'menuimage'} <> ''){
$str .= "><img src='../images/". $row{'menuimage'} . ".jpg' onmouseover="."this.src='../images/". $row{'menuimage'} . "on.jpg'"." onmouseout="."this.src='../images/". $row{'menuimage'} . ".jpg'"." border='0' /><br>". $row{'catname'} . "</a>";
} else {
$str .= ">". $row{'catname'} . "</a>";
}
echo $str;
$n++;
load($row{'catid'}, $space+1);
echo "</li>";
if ($space <> 0 && $count < $n)
echo "</ul>";
}
}
?>
</ul>
</div>
<script type="text/javascript">
ddlevelsmenu.setup("ddtopmenubar", "topbar") //ddlevelsmenu.setup("mainmenuid", "topbar|sidebar")
</script> </td>
</tr>
<tr>
<td> </td>
</tr>
<?
$sql = "SELECT * ";
$sql .= "FROM gallery ";
$sql .= "where gallery.gallerytype = '". $gallerytype ."' ";
$result = mysql_query($sql);
$row = mysql_fetch_array($result,MYSQL_ASSOC);
?>
<tr>
<td height="50" class="txt"><p class="contenttxt26"><? echo $row{'gallerytype'} ?></p></td>
</tr>
<tr>
<td height="400" align="left" valign="top"><table width="200" border="0" cellpadding="0" cellspacing="0">
<?
$limit=6;
if (!$offset) $offset=0;
if (strlen($where)==0)
{
if (strlen($galleryid)<>0)
{
$query_where .= "and gallery.galleryid = ". $galleryid ." ";
}
}
else
{
$query_where = $where;
}
if (!$where) {
if (empty($one) || empty($two)) {
}
$where=$query_where;
}
$sqlx = "select count(*) ";
$sqlx .= "FROM gallery ";
$sqlx .= "WHERE gallerytype = '". $gallerytype ."' ";
$sqlx .= "$query_where ";
$sqlx = str_replace('\\','',$sqlx);
$result=mysql_query($sqlx);
list($numrec)=mysql_fetch_row($result);
$numpage=intval($numrec/$limit);
if ($numrec%$limit) {
$numpage++; // add one page if remainder
}
//echo $numcnt;
?>
<!--start here-->
<?
$sqly = "SELECT * ";
$sqly .= "FROM gallery ";
$sqly .= "WHERE gallery.gallerytype = '". $gallerytype ."' ";
$sqly .= "$query_where ";
//$sqly .= "order by productimage.sortbyimage ASC ";
$sqly .= "limit $offset,$limit";
$x = 1;
$y = 1;
echo "<tr>";
$result1 = mysql_query($sqly);
while ($row = mysql_fetch_array($result1,MYSQL_ASSOC))
{
if ($y == 1)
{
}
elseif ($y == 4)
echo "<tr>";
?>
<td width="200" valign="top" align="center" class="txt"><table width="200" border="0" cellpadding="0" cellspacing="0">
<? if ($row{'galleryfile'} <> "") { ?>
<tr>
<? if ($row{'gallerytype'} == "Photo") { ?>
<td width="200" align="center" valign="top"><a href="../admin/galleryphoto/<?=$row{'galleryfile'}?>"><img src="../admin/galleryphoto/<?=$row{'galleryfile'}?>" border='0' width='200' /></a></td>
<? } else { ?>
<td width="200" align="center" valign="top"><a href="../admin/gallerypainting/<?=$row{'galleryfile'}?>"><img src="../admin/gallerypainting/<?=$row{'galleryfile'}?>" border='0' width='200' /></a></td>
<? } ?>
</tr>
<tr>
<td width="200" height="5" align="center" valign="top"></td>
</tr>
<tr>
<td width="200" align="center" valign="top"><a href="album_view.php?page=album_view.php&galleryid=<?=$row{'galleryid'}?>&gallerytype=<?=$row{'gallerytype'}?>"><? echo $row{'galleryfilename'}?></a><br />
<br /></td>
</tr>
<? } ?>
</table></td>
<?
if ($y == 3)
echo "</tr>";
elseif ($y == 6)
echo "</tr>";
$y = $y + 1;
}
?>
<!--end here-->
</table></td>
</tr>
<tr>
<td height="50" class="txt"><? include("gallerypagenav.php"); ?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="50" align="center" class="footertxt">Copyright © 2009 The Pathways Foundation Ltd. All Rights Reserved. | Sponsored by <a href="http://www.onesolution.com.hk" target="_blank">One Solution Limited</a>. <br />
<a href="http://www.onesolution.com.hk" target="_blank"><img src="../images/webicon137w23h.jpg" width="137" height="23" border="0" /></a></td>
</tr>
</table>
</body>
</html>