Location: PHPKode > scripts > WebsiteMemberManager > members-section/php-lib/theme-classes.php
<?php
 /**********************************************************/
class jQueryTheme{
 function updateTheme($themename,$themetype)//type: admin or member
 {
  $query = "UPDATE wmm_jquery_themes
              SET ".$themetype."_theme_name = '$themename' WHERE id='1' LIMIT 1";
  $dbc = dbc::instance();
  $result = $dbc->prepare($query);
  $result = $dbc->execute($result);
 }
 function getTheme($themetype)
 {
  $dbc = dbc::instance();
  $result = $dbc->prepare("SELECT `".$themetype."_theme_name`FROM wmm_jquery_themes WHERE id='1' ");
  $rows = $dbc->executeGetRows($result);
  $themetype.='_theme_name';
  return $rows[0][$themetype];  
 }
 function getURL()
 {
  $dbc = dbc::instance();
  $result = $dbc->prepare("SELECT `url` FROM wmm_jquery_themes WHERE id='1' ");
  $rows = $dbc->executeGetRows($result);
  return $rows[0]['url'];
 }
 function getURLInput()
 {
  $url_input=$this->getURL();
  return $url_input;
 }
 function putThemesDropdown($themetype)
 {
  echo "<select name=\"themename\" class=\"ui-tabs-nav ui-widget-header ui-corner-all\">\n";
  $handle = opendir('../JQUERY/development-bundle/themes');
  while($entry = readdir($handle))
  {
   $pos = strpos($entry, ".");//done this way to ensure more filesystems are supported
   if ($pos===false) echo "<option value=\"$entry\">$entry</option>\n";
  }
  closedir($handle);
  echo "</select>";
 }
}
?>
Return current item: WebsiteMemberManager