<item>
<title>$[GBROWSER_MUSIC]</title>
<media:thumbnail> ./guide_menu/image/Guide_Music </media:thumbnail>
<group> DB </group>
<onClick>
<script>
setmode= getCurrentSetting("$[VIEW_MODE]");
if ( setmode=="$[FILE_MODE]" )
{
subStoragePath = getStoragePath("key");
subStoragePath = subStoragePath + "DeviceSelects_Music.dat";
StatusArray = readStringFromFile(subStoragePath);
if (StatusArray == null){
ViewSel = "List";
StatusArray = pushBackStringArray(StatusArray, ViewSel);
writeStringToFile(subStoragePath, StatusArray);
}
ViewSel = getStringArrayAt(StatusArray, 0);
MMType = "Music";
APName = "GBrowserGridViewAP";
Source = "Dev";
print("select::", Source, ViewSel, MMType);
menuCmd(APName, Source, ViewSel, MMType, BltType);
}
else
{
if(DBReady == "true"){
subStoragePath = getStoragePath("key");
subStoragePath = subStoragePath + "MusicSelects.dat";
selectArray = readStringFromFile(subStoragePath);
if (selectArray == null){
selectArray = pushBackStringArray(selectArray, "List");
selectArray = pushBackStringArray(selectArray, "ByRectPlay");
selectArray = pushBackStringArray(selectArray, "All");
writeStringToFile(subStoragePath, selectArray);
}
APName = "GBrowserGridViewAP";
MMType = "Music";
SrcSel = "DB";
ViewSel = getStringArrayAt(selectArray, 0);
SortSel = getStringArrayAt(selectArray, 1);
ShowSel = getStringArrayAt(selectArray, 2);
if(ShowSel != "All"){
SortSel = "None";
}
print("select::", ViewSel, SortSel, ShowSel);
menuCmd(APName, SrcSel, ViewSel, MMType, ShowSel, SortSel, BltType);
}
}
null;
</script>
</onClick>
</item>