define('CONTENT',$content);
echo $content;
$schema = $con->query("SELECT * FROM `web_schema` WHERE `page_id` = '$page_id' ORDER BY `sort` ASC ");
while($s = $schema->fetch_assoc()){
echo '
';
arrangePage($s['type'],$s['key_id']);
echo '';
}
function arrangePage($type,$key){
switch($type){
case 'content':
echo '
';
// echo CONTENT;
echo '
';
break;
case $type:
if(function_exists($type))
$type();
break;
}
}
function get_gallery(){
global $con;
echo '
';
$cat = $con->query("SELECT * FROM gallery_category order by seq asc");
while($c = $cat->fetch_assoc()){
var_dump($c);
exit;
echo ' '.ucwords($c['category_name']).'
';
echo '';
$get = $con->query("SELECT * FROM gallery where category_id = '".$c['id']."' order by id desc");
while($g = $get->fetch_assoc())
{
echo '
';
}
echo '
';
}
echo '