From: Andrew DeFaria Date: Mon, 5 Jun 2017 23:42:48 +0000 (-0700) Subject: Implemented sets. X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;h=3fb37fca3a2cfd094e936635616421cc52ada97d;hp=21b33f07890830b5b2550e7bc9e8934076b43435;p=songbook.git Implemented sets. --- diff --git a/Mr.lst b/Mr.lst deleted file mode 100644 index b2a4e4c..0000000 --- a/Mr.lst +++ /dev/null @@ -1,10 +0,0 @@ -Mr -Lyin' Eyes - Eagles -Norwegian Wood - Beatles -Peaceful, Easy Feeling - Eagles -Something - Beatles -Space Oddity - David Bowie -Dig a Pony - Beatles -I'm a Believer - Monkees -Maggie May - Rod Stewart -More Than Words - Extreme diff --git a/San Elijo.lst b/San Elijo.lst deleted file mode 100644 index dbc8842..0000000 --- a/San Elijo.lst +++ /dev/null @@ -1,10 +0,0 @@ -Ello -A Hard Day's Night - Beatles -Here Today - Paul McCartney -Love Her Madly - Doors -Lyin' Eyes - Eagles -Maggie May - Rod Stewart -Norwegian Wood - Beatles -Peaceful, Easy Feeling - Eagles -Revolution - Beatles -You Got a Friend - James Taylor diff --git a/Songs/Andrew's Songs.lst b/Songs/Andrew's Songs.lst new file mode 100644 index 0000000..b3bf2d9 --- /dev/null +++ b/Songs/Andrew's Songs.lst @@ -0,0 +1,60 @@ +Andrew's Songs +Across the Universe - Beatles +All You Need Is Love - ohn Lennon/Paul McCartney +Amie - Pure Prairie League +Breakdown - Tom Petty +Brown Eyed Girl - Van Morrison +Country Road - John Denver +Desperado - The Eagles +Drugstore Novels - Cast of Shadows +Fire and Rain - James Taylor +Fool You Never Knew - Tempest +Free Fallin - Tom Petty +Give a Little Bit - Roger Hodgson +Here Comes the Sun - George Harrison +Here in Heaven - Mike Fraser +Hold On - Kansas +Hotel California - Eagles +I Can See Clearly Now - Johnny Nash or Jimmy Cliff +I Still Can't Say Goodbye - Chet Atkins +I'm Your Captain - Grand Funk Railroad +Imagine - John Lennon +Kashmir - Led Zeppelin +Last Man on Earth - Alice Cooper +Leather And Lace - Stevie Nicks +Let It Be - Beatles +Listen to the Music - Doobie Brothers +Love Her Madly - Doors +Lyin' Eyes - Eagles +Maggie May - Rod Stewart +Margaritaville - Jimmy Buffett +Me and Julio Down by the Schoolyard - Paul Simon +Mother - Pink Floyd +Mrs. Robinson - Paul Simon +My Life - Tempest +Naptime - Jen Hajj +Nothing can stop us now - Tim Minchin +Peaceful, Easy Feeling - Eagles +Piano Man - Billy Joel +Questions - Moody Blues +Ramblin' Man - Allman Brothers Band +Reason to Believe - Tim Hardin (Rod Stewart) +Santa Monica - Everclear +Seems Like a Dream - Tempest +Serenade - Steve Miller +Sister Golden Hair - America +Sitting on the Dock of the Bay - Otis Redding +Space Oddity - David Bowie +Strong Enough To Win - Mike Fraser +Swingtown - Steve Miller +Take It Easy - Eagles +Turn the Page - Bob Seager +Voices - Red Shoes For Romeo +What a Wonderful World - Louis Armstrong +What I've Already Heard - Mike Fraser +Where You Take Me - Jen Hajj +Who'll Stop The Rain - Creedence Clearwater Revival +You Ain't Seen Nothing Yet - Backman Turner Overdrive +Young as You - Mike Fraser +I'm a Believer - Monkees +Daydream Believer - Monkees diff --git a/Songs/KARR.lst b/Songs/KARR.lst new file mode 100644 index 0000000..d3a3f9c --- /dev/null +++ b/Songs/KARR.lst @@ -0,0 +1,46 @@ +Locomotive Breath - Jethro Tull +Landslide - Fleetwood Mac +Jenny Jenny - Tommy Tutone +Norwegian Wood - Beatles +Peaceful Easy Feeling - Eagles +Angel +The Letter - Joe Cocker +Sweet Melisa - Allman Brothers +Can't find My Way Home - Steve Windwood +Wish You Were Here - Pink Floyd +From the Beginning - ELP +Drugstore Novels - Cast of Shadows +Tequila Sunrise - Eagles +Space Oddity - David Bowie +Nowhere Man - Beatles +Seven Bridges Road - Eagles +Stuck in the Middle With You - Stealers Wheel +Suite Judy Blue Eyes - Crosby, Stills and Nash +Dust in the Wind - Kansas +Badge +For What It's Worth +Ramblin' Man - Allman Brothers +Sister Golden Hair - America +Take It Easy - Eagles +Ventura Highway - America +Wild Nights - Van Morrison +All Right Now - Free +Blackbird - Beatles +Lucky Man - ELP +Casey Jones - Grateful Dead +Turn the Page - Bob Segar +Gold Dust Woman +Lying Eyes - Eagles +Panama Red +Something - Beatles +Best of My Love - Eagles +Southern Cross +The Weight +What I Like About You - Romantics +Let It Be - Beatles +Pink Houses - John Cougar +Can't You See - Marshall Tucker +Wagon Wheel - Darius Rucker +Under the Boardwalk - Drifters +Bring It on Home +Hold On/Your Move - Triumph/Yes diff --git a/Songs/New Songs.lst b/Songs/New Songs.lst new file mode 100644 index 0000000..f368d45 --- /dev/null +++ b/Songs/New Songs.lst @@ -0,0 +1,29 @@ +People Get Ready - Curtis Mayfield +I Can See Clearly Now - Johnny Nash +California Dreaming - Mama's and the Papa's +Mrs. Robinson - Simon and Garfunkel +All You Need is Love - Beatles +Dr. My Eyes - Jackson Browne +Crossroads - Cream +Our House - Crosby, Stills, Nash and Young +My Back Pages +Behind Blue Eyes - The Who +I Can't Tell You Why - Eagles +Wild World - Cat Stevens +Crazy Love - Poco +Evil Ways - Santana +Harvest Moon - Neil Young +Keep On Rockin' Me Baby - Steve Miller +One of These Nights - Eagles +Refugee - Tom Petty +Sandman - America +Seagull +You're So Vain - Carly Simon +What I've Already Heard - Mike Fraser +Under the Milky Way - The Church +Stray Cat Strut - Stray Cats +One Way Out - Allman Brothers +Dreams - Molly Hatchet +Funk 49 - Joe Walsh +Cherry, Cherry - Neil Diamond +Sweet Caroline - Neil Diamond diff --git a/Songs/Set 1.lst b/Songs/Set 1.lst deleted file mode 100644 index 2b7b594..0000000 --- a/Songs/Set 1.lst +++ /dev/null @@ -1,60 +0,0 @@ -Set 1 -Across the Universe - Beatles -All You Need Is Love - ohn Lennon/Paul McCartney -Amie - Pure Prairie League -Breakdown - Tom Petty -Brown Eyed Girl - Van Morrison -Country Road - John Denver -Desperado - The Eagles -Drugstore Novels - Cast of Shadows -Fire and Rain - James Taylor -Fool You Never Knew - Tempest -Free Fallin - Tom Petty -Give a Little Bit - Roger Hodgson -Here Comes the Sun - George Harrison -Here in Heaven - Mike Fraser -Hold On - Kansas -Hotel California - Eagles -I Can See Clearly Now - Johnny Nash or Jimmy Cliff -I Still Can't Say Goodbye - Chet Atkins -I'm Your Captain - Grand Funk Railroad -Imagine - John Lennon -Kashmir - Led Zeppelin -Last Man on Earth - Alice Cooper -Leather And Lace - Stevie Nicks -Let It Be - Beatles -Listen to the Music - Doobie Brothers -Love Her Madly - Doors -Lyin' Eyes - Eagles -Maggie May - Rod Stewart -Margaritaville - Jimmy Buffett -Me and Julio Down by the Schoolyard - Paul Simon -Mother - Pink Floyd -Mrs. Robinson - Paul Simon -My Life - Tempest -Naptime - Jen Hajj -Nothing can stop us now - Tim Minchin -Peaceful, Easy Feeling - Eagles -Piano Man - Billy Joel -Questions - Moody Blues -Ramblin' Man - Allman Brothers Band -Reason to Believe - Tim Hardin (Rod Stewart) -Santa Monica - Everclear -Seems Like a Dream - Tempest -Serenade - Steve Miller -Sister Golden Hair - America -Sitting on the Dock of the Bay - Otis Redding -Space Oddity - David Bowie -Strong Enough To Win - Mike Fraser -Swingtown - Steve Miller -Take It Easy - Eagles -Turn the Page - Bob Seager -Voices - Red Shoes For Romeo -What a Wonderful World - Louis Armstrong -What I've Already Heard - Mike Fraser -Where You Take Me - Jen Hajj -Who'll Stop The Rain - Creedence Clearwater Revival -You Ain't Seen Nothing Yet - Backman Turner Overdrive -Young as You - Mike Fraser -I'm a Believer - Monkees -Daydream Believer - Monkees diff --git a/Wed.lst b/Wed.lst deleted file mode 100644 index c7d00cf..0000000 --- a/Wed.lst +++ /dev/null @@ -1,9 +0,0 @@ -Wed -Drugstore Novels - Cast of Shadows -Hey Jude - Beatles -Suite Judy Blue Eyes - Crosby, Stills and Nash -Goodbye Yellow Brick Road - Elton John -The Letter - The Box Tops -Nowhere Man - Beatles -Seven Bridges Road - Eagles -What I've Already Heard - Mike Fraser diff --git a/web/displayset.php b/web/displayset.php new file mode 100644 index 0000000..111c43a --- /dev/null +++ b/web/displayset.php @@ -0,0 +1,75 @@ + + + + + + Songbook Artist + + + + + + + + + +
+Home +

Andrew DeFaria's Songbook

+ +

+
+ +
+ +"; + +$firstLine = true; + +foreach (file("$songDir/$set") as $line) { + // Skip first line which is merely the set name again + if ($firstLine) { + $firstLine = false; + continue; + } // if + + if (preg_match ("/(.*)\s+-\s+(.*)/", $line, $matches)) { + $song = trim ($matches[1]); + $artist = trim ($matches[2]); + } else { + $song = trim ($line); + $artist = ""; + } // if + + if (file_exists ("$songDir/$song.pro")) { + print "
  • "; + print basename ($song); + print ""; + } else { + print "
  • "; + print basename ($song); + } + + if ($artist <> "") { + print " - $artist"; + } // if + + print "
  • "; +} // foreach + +print ""; +?> + + + diff --git a/web/index.php b/web/index.php index 6bb6b32..536929d 100644 --- a/web/index.php +++ b/web/index.php @@ -26,8 +26,6 @@ include_once "songbook.php"; - -

    Andrew DeFaria's Songbook

    @@ -42,18 +40,19 @@ Windows. More info on this is available here. For people who must remain with paper...

    The following songs are available here. Select an artist or a song and then -Go or type in a lyric or song title into the search box. You can print the +Go or type in a lyric or song title into the search box. You can print the result if you wish to have a paper copy. If new songs are added by me or others -this page will automatically update so you can come back here and get your +this page will automatically update so you can come back here and get your copy.

    -Search:   +Search: 
    diff --git a/web/songbook.php b/web/songbook.php index a231add..cbfe933 100644 --- a/web/songbook.php +++ b/web/songbook.php @@ -1,6 +1,6 @@ "; print "Songs:  "; @@ -39,14 +42,13 @@ function songsDropdown () { } // if } // foreach - print ""; print ""; + print " "; print ""; } // songsDropdown function artistsDropdown () { - global $songs; - + $songs = getSongs(); $artists = getArtists ($songs); print "
    "; @@ -58,11 +60,31 @@ function artistsDropdown () { print ""; } // foreach - print ""; print ""; + print " "; print "
    "; } // artistsDropdown +function setsDropdown () { + $sets = getSets(); + + print "
    "; + print "Sets:     "; + print ""; + print " "; + print "
    "; +} // setsDropdown + function getArtist ($song) { $lyrics = file_get_contents ($song);