'', 'page_title' => '', 'link_id' => 0, 'link_order' => 0, 'page_link_cat' => 0, 'page_access' => 0, 'page_content' => '', 'page_keywords' => '', 'page_language' => LANGUAGE, 'page_allow_comments' => 0, 'page_allow_ratings' => 0, ]; public static function query_customPage($id = NULL) { $result = dbquery(" SELECT cp.*, link.link_id, link.link_order FROM ".DB_CUSTOM_PAGES." cp LEFT JOIN ".DB_SITE_LINKS." link on (cp.page_link_cat = link.link_cat AND ".in_group("link.link_url", "viewpage.php?page_id=")." AND ".in_group("link.link_url", "cp.page_id").") ".($id !== NULL && isnum($id) ? " WHERE page_id= '".intval($id)."' " : "")." "); return $result; } /** * List custom page administration table */ public static function listPage() { $aidlink = fusion_get_aidlink(); $locale = fusion_get_locale("", LOCALE.LOCALESET."admin/custom_pages.php"); $data = []; // now load new page $result = dbquery("SELECT page_id, page_link_cat, page_title, page_access, page_allow_comments, page_allow_ratings, page_language FROM ".DB_CUSTOM_PAGES." ORDER BY page_id ASC"); if (dbrows($result) > 0) { while ($cdata = dbarray($result)) { $data[$cdata['page_id']] = $cdata; } } $choice = ['0' => $locale['no'], '1' => $locale['yes']]; add_to_jquery(" $('.actionbar').hide(); $('tr').hover( function(e) { $('#coupon-'+ $(this).data('id') +'-actions').show(); }, function(e) { $('#coupon-'+ $(this).data('id') +'-actions').hide(); } ); $('.qform').hide(); "); echo "
".$locale['cp_100']." | \n"; echo "".$locale['cp_101']." | \n"; echo "".$locale['cp_102']." | \n"; echo "".$locale['cp_103']." | \n"; echo "".$locale['cp_104']." | \n"; echo "".$locale['cp_105']." | \n"; echo "".$locale['cp_106']." | \n"; echo "
---|---|---|---|---|---|---|
".$pageData['page_id']." | \n"; echo "".$pageData['page_title']."\n"; echo " | \n"; echo " \n"; echo "".getgroupname($pageData['page_access'])." | \n"; echo "".$displayLanguage." | \n"; echo "".$choice[$pageData['page_allow_comments']]." | \n"; echo "".$choice[$pageData['page_allow_ratings']]." | \n"; echo "".($pageData['page_link_cat'] ? $choice[1] : $choice[0])." | \n"; echo "
\n \n".$locale['458']." \n | \n";
echo "