diff --git a/webtools/addons/public/htdocs/extensions.php b/webtools/addons/public/htdocs/extensions.php new file mode 100644 index 000000000000..32b9419bdbc4 --- /dev/null +++ b/webtools/addons/public/htdocs/extensions.php @@ -0,0 +1,66 @@ +query(" + SELECT DISTINCT + TM.ID ID, + TM.Name name, + TM.downloadcount dc + FROM + main TM + INNER JOIN version TV ON TM.ID = TV.ID + INNER JOIN applications TA ON TV.AppID = TA.AppID + INNER JOIN os TOS ON TV.OSID = TOS.OSID + WHERE + AppName = '{$sql['app']}' AND + downloadcount > '0' AND + approved = 'YES' AND + Type = 'E' + ORDER BY + downloadcount DESC + LIMIT + 5 +", SQL_ALL, SQL_ASSOC); + +$popularExtensions = $db->record; + + +// Assign template variables. +$tpl->assign( + array( 'popularExtensions' => $popularExtensions, + 'title' => $clean['app'].' Addons', + 'currentTab' => $currentTab) +); +?> diff --git a/webtools/addons/public/htdocs/themes.php b/webtools/addons/public/htdocs/themes.php new file mode 100644 index 000000000000..8d528e93c962 --- /dev/null +++ b/webtools/addons/public/htdocs/themes.php @@ -0,0 +1,66 @@ +query(" + SELECT DISTINCT + TM.ID ID, + TM.Name name, + TM.downloadcount dc + FROM + main TM + INNER JOIN version TV ON TM.ID = TV.ID + INNER JOIN applications TA ON TV.AppID = TA.AppID + INNER JOIN os TOS ON TV.OSID = TOS.OSID + WHERE + AppName = '{$sql['app']}' AND + downloadcount > '0' AND + approved = 'YES' AND + Type = 'E' + ORDER BY + downloadcount DESC + LIMIT + 5 +", SQL_ALL, SQL_ASSOC); + +$popularExtensions = $db->record; + + +// Assign template variables. +$tpl->assign( + array( 'popularExtensions' => $popularExtensions, + 'title' => $clean['app'].' Addons', + 'currentTab' => $currentTab) +); +?> diff --git a/webtools/addons/public/tpl/extensions.tpl b/webtools/addons/public/tpl/extensions.tpl new file mode 100644 index 000000000000..734d45223382 --- /dev/null +++ b/webtools/addons/public/tpl/extensions.tpl @@ -0,0 +1,7 @@ +
Description...
+ +Description...
+ +